Automaticaly add piwik code to end of page
3. 4. 2011 12:29 | Linux | Komentáře nejsou povolenyAddpiwik is nice app for Apache module mod_ext_filter:
http://software.maexotic.de/piwik/addpiwik/
my xfce keyborad layout setup
7. 1. 2011 12:15 | Linux | Komentáře nejsou povoleny/etc/default/console-setup:
XKBMODEL="pc105"
XKBLAYOUT="us,cz"
XKBVARIANT=",qwerty"
XKBOPTIONS="lv3:ralt_switch"
renaming multiple files in bash
17. 12. 2010 12:00 | Linux | Komentáře nejsou povolenyOn CentOS:
for i in *.mp3 ; do j=`echo $i | sed 's/asdf/zxcv/g'`; mv -f "$i" "$j"; done
On Debian:
rename 's/asdf/zxcv/g' *.mp3
synchronize Google calendar with Orage
7. 6. 2010 13:21 | Linux | Komentáře nejsou povolenyadd this to your crontab:
wget -nH -rK -q -O /home/$USERNAME/.local/share/orage/gmail.ics $PRIVATE_URL
and then add file /home/$USERNAME/.local/share/orage/gmail.ics as an external source to Orage.
N900 upgrade with minimal work
2. 6. 2010 16:04 | Linux | Komentáře nejsou povolenyhttp://tablets-dev.nokia.com/nokia_N900.php
backup your setting via backup tool
dpkg --get-selections > /home/user/MyDocs/installed
flash your n900
sudo flasher-3.5 -F RX-51_2009SE_1.2009.42-11_PR_COMBINED_MR0_ARM.bin -f -R
N900: While holding the u key, connect the N900 to your computer via USB. Wait until you see a dim screen on your N900 with a Nokia logo in the middle of your screen with an USB icon in the top right corner.
restore settings via backup tool
install rootsh
apt-get update
dpkg --set-selections < /home/user/MyDocs/installed
apt-get -u dselect-upgrade
talk.maemo.org/showthread.php?t=47846
So A2DP is causing sound policy problems and needs to be fixed. In the meantime, one can disable it by uncommenting and changing the "Disabled=" line in /etc/bluetooth/audio.conf to be:
Disable=Control,Source,Sink
Automatic pause MOC player when gnome screensaver runs
29. 12. 2009 15:06 | Linux, PC, Programing | Komentáře nejsou povolenyI want to pause my MOC player when i locked my NB, here is a little script which i run on startup:
#!/usr/bin/perl my $cmd = "dbus-monitor --session \"type='signal',interface='org.gnome.ScreenSaver',member='ActiveChanged'\""; open (IN, "$cmd |"); while () { if (m/^\s+boolean true/) { system ("mocp --pause"); } elsif (m/^\s+boolean false/) { system ("mocp --unpause"); } }
Pripojeni na Harcove v Debianu
24. 9. 2008 18:58 | Ze života | Komentáře nejsou povolenytak pro zacatek je potreba nainstalovat wpa_supplicant
apt-get install wpasupplicant
popripade muzete nainstalovat i wpagui pro graficke rozhrani, ale je to zbytecne.
stahneme si certifikaty z http://www.cesnet.cz/pki/cs/ch-CRT-CRL.html nekam do PC ja je mam v /etc/certificates
mkdir /etc/certificates
cd /etc/cesrtificates
wget http://www.cesnet.cz/pki/certs/cesnet-ca.cz.pem.crt
wget http://www.cesnet.cz/pki/certs/cesnet-ca.cz.crt
dale nastavime /etc/wpa_supplicant.conf bud rucne nebo utilitkou wpa_gui
ctrl_interface=/var/run/wpa_supplicant
network={
key_mgmt=IEEE8021X
eap=PEAP
pairwise=CCMP TKIP
group=CCMP TKIP
identity="jmeno.prijmeni@tul.cz"
password="xxxx"
ca_cert="/etc/certificates/cesnet-ca.cz.pem.crt"
phase1="peaplabel=0"
phase2="auth=MSCHAPV2"
}
no a nakonec nastavime v /etc/network/interfaces
iface eth0 inet dhcp
wpa-conf /etc/wpa_supplicant.conf
wpa-driver wired
tim nam spojeni nabehne bez problemu po spusteni
Novej server
26. 8. 2008 15:57 | server | Komentáře nejsou povolenyNo tak se mi dostal do ruky novej server, je asi tak 6x vykonejsi nez ten puvodni, oba disky maji normalni zvyk oproti tomu ze staryho serveru kterej uz je jednou nohou v kremikovym nebi, dokonce ma i gigabitovou sitovku, snad vydrzi bezet dlouho
Panorama
12. 5. 2008 19:34 | Ze života | Komentáře nejsou povoleny[photopress:panorama_1.jpg,thumb,pp_image]
Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds.
Valid XHTML and CSS. ^Top^










