středa 26. listopadu 2008

GPRS with SE K790i via Blootooth on ubuntu by T-Mobile CZ

apt-get install gnome-ppp

hcitool scan # find mobile MAC address
sdptool search DUN
sudo rfcomm bind /dev/rfcomm0 00:1F:E4:04:D2:1C 1


modem is here :-) /dev/rfcomm0


.wvdial.conf
[Dialer Defaults]
Modem = /dev/rfcomm0
ISDN = off
Modem Type = Analog Modem
Baud = 230400
Init = ATZ
Init2 = AT+CGDCONT=1,"IP","internet.t-mobile.cz"
Init3 =
Init4 =
Init5 =
Init6 =
Init7 =
Init8 =
Init9 =
Phone = *99***1#
Phone1 =
Phone2 =
Phone3 =
Phone4 =
Dial Prefix =
Dial Attempts = 1
Dial Command = ATM1L3DT
Ask Password = off
Password = ubuntu
Username = ubuntu
Auto Reconnect = off
Abort on Busy = off
Carrier Check = on
Check Def Route = on
Abort on No Dialtone = off
Stupid Mode = off
Idle Seconds = 0
Auto DNS = on
;Minimize = on
;Dock = on
;Do NOT edit this file by hand!


GRUB Splash Images description

Návod na konverzi obrázků pro grub

http://linux.softpedia.com/get/System/Boot/GRUB-Splash-Images-15967.shtml

Úprava obrázku pro boot loader Grub pomoci ImageMagic.

convert -resize 640x480 -colors 14 image.png image.xpm && gzip image.xpm


pondělí 17. listopadu 2008

středa 5. listopadu 2008

Find a exec cmd

chmod -R 655 /dir aplikuje práva i na adresáře, což je nežádoucí. Je možno použít find a jím vykonávat chmod.

find /tmp/ -name "*.txt" -exec chmod 400 "{}" \;

find /tmp/ -type d -exec chmod 755 "{}" \;

find /tmp/ -type c -exec chmod 664 "{}" \;

find /tmp/ -type d | xargs -n 1 chmod 775

Dale poznamka jak mazat pomoci find?

find dir/ -name CVS -exec rm -rf "{}" \;