to check my apache log against browsers used I got some tips and came about that command:
zcat access.log.6.gz|awk '{print $12}'|sort|uniq -c|sort -g
and this I can easily visualize
most popular browser?
backup staff homesites
I needed to backup staff members’ homepages located at homedirs and access by Apache’s http://site/~name
so tar.gz the whole /home, but:
- users got some private stuff in the $HOMEs
- their $HOME/public_html is what I need to backup, but they got some large files in there
so…
find home -perm /004 -size -5M -type f -print0 | xargs -0 tar -rvf home.tar
-perm is for ‘readable to all’ files; size <5MB; type – only files (since tar is appending (r) and not creating (c) new archive with each file! )
the last hour was about dealing with files containing whitespaces, since xargs got each argument seperated by any whitespace… so -0 is for arguments seperated by null and -print0 is for listing files terminated by a null character instead of by whitespace
Java Security, a Tomcat i MySQL
prawie tydzień prób i błędów uruchomienia prostej JSP z dostępem do MySQL na Tomcat‘cie 5.5 na Ubuntu i Debian‘ie…
i okazuje się, że szukałem opcji TOMCAT5_SECURITY=no w /etc/init.d/tomcat5.5
no ładnie
słuchaj, to do ciebie
chciałem przenieść w końcu phpmyadmin’a na https, no i godzina z życiorysu, bo jest drobna różnica między zrobieniem tego na Ubuntu i na Debianie… na tym drugim 3-a ręcznie wpisać Listen 443 do /etc/apache2/ports.conf
import?
próbowałem zaimportować mój blog z Moodle i ZSI przez RSS, ale importowały się same daty…
żeby z bloggera coś zaimportować, to potrzeba zainstalować php5-curl, ale coś nie ma go na oficjalnych serwerach Debiana…
ale poza tym działa… może aktualności ZSI na tym zrobić? tylko lokalizację polską najpierw…