hdparm und sdparm

bash No Comments »

sind beides sehr mächtige tools, hier schonmal was nützliches:

Additionally you can shorten the time after which the drive spins down using sdparm in the following way:
sdparm –set=SCT=3600 /dev/sda
This will set the time till spin down (SCT = Standby ConditionTimer) to 6 minutes (= 3600 tenth of a second).

hdparm -y /dev/sdb1
direkt in standby schicken

samba, dreambox, ufs 910 nslu2, ntfs-3g und umlaute… grrrrrr

bash No Comments »

samba:
[global]
dos charset = cp1250
unix charset = ISO-8859-15
server string = NSLU2
security = SHARE
obey pam restrictions = Yes
guest account = guest_account # user sollte exisiteren
syslog = 0
max stat cache size = 64
ldap ssl = no

——–
bash:
modprobe nls_iso8859_15 (installieren, falls nicht vorhanden)
depmod -a (permanent machen)

apt-get install locales
dpkg-reconfigure locales
auswählen: de_DE@euro

ggf: export LC_ALL=de_DE@euro
unten darauf achten, dass man locale genauso wählt, sonst ncihts mit äöü :D

ntfs-3g:
/etc/fstab:
/dev/sdb1 /media/share ntfs-3g defaults,locale=de_DE@euro 0 0

share von server aus:
mount -t cifs -o user=egal //IP_NSLU2_SAMBA/share /media/share

festplatte sollte man dann so mounten:
mount -o rw,locale=de_DE@euro /dev/sdb1 /media/share/ -t ntfs-3g

puhhhhhhh !

Create swap

bash, linux No Comments »

dd if=/dev/zero of=/hdd/swap bs=1M count=400
mkswap /hdd/swap
swapon /hdd/swap
/etc/fstab
/hdd/swap swap swap defaults 0 0

[xp/linux routing] add route

routing, windows No Comments »

win:
route print (check current routes)

route add 192.168.0.0 mask 255.255.255.0 10.4.0.1
(192.168.0.0/24 is now reachable via 10.4.0.1) 

 

linux:
route
route add -net 192.168.0.0 netmask 255.255.255.0 gw 10.4.0.1 

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in