if you want to know why your win7 pc wakes up automatically then just type in cmd prompt: POWERCFG -LASTWAKE my output: Aktivierungsverlaufsanzahl – 1 Aktivierungsverlauf [0] Aktivierungsquellenanzahl – 1 Aktivierungsquelle [0] Typ: Aktivierungszeitgeber Besitzer: [PROCESS] \Device\HarddiskVolume2\Windows\System32\services.exe Vom Besitzer bereitgestellter Grund: Die geplante Aufgabe “\Microsoft\Windows\Media Center\mcupdate_scheduled” wird ausgeführt. Hierzu muss der Computer reaktiviert werden. just… Continue reading Windows 7 – unwanted wake up from standby automatically
leading 0 in js
i<10?i=”00″+i:(i<100?i=”0″+i:0);
[ubuntu – konsole] deutsche tastatur einstellen
dpkg-reconfigure console-setup da latin 1 und 5 türk tastatur wählen
[ubuntu] umlaute und co
[ad] 1. Paket „localeconf“ installieren sudo apt-get install localeconf 2. Datei „/var/lib/locales/supported.d/de“ mit einem Editor bearbeiten sudo vi /var/lib/locales/supported.d/de Folgende Zeile anhängen: de_DE@euro ISO-8859-15 3. Nach dem Speichern der Datei die locales generieren sudo dpkg-reconfigure locales 4. Jetzt mit localeconf den Zeichensatz systemweit auswählen sudo dpkg-reconfigure localeconf Jetzt funktioniert in der Konsole und in jedem… Continue reading [ubuntu] umlaute und co
auth.log mitloggen – ssh zugriffe mitloggen
/etc/syslog.conf die Zeile: auth,authpriv.* -/var/log/auth.log ggf mit inotify dann checken und mails zusenden
[samba] dreambox
[global] load printers = no guest account = root log file = /tmp/smb.log security = share server string = DreamBOX network services workgroup = Dream netbios name = DreamBOX #client code page = cp850 #character set = iso-8859-1 dos charset = 1250 unix charset = ISO-8859-1 case sensitive = yes preserve case = yes short… Continue reading [samba] dreambox
[bash] password verzeichnisse anlegen
habe mal wieder ein wenig gescriptet. folgendes script legt 11110 verzeichnisse an. man könnte dies als pseudo schutz nutzen um bestimmt dateien nicht sofort sichbar zu machen… klar, wenn sich jemand mit dem pc auskennt, dann bringt das ncith viel. aber für meine freundin reichts 😀 for a in `seq 0 9`; do for b… Continue reading [bash] password verzeichnisse anlegen
hdparm und sdparm
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… Continue reading hdparm und sdparm
samba, dreambox, ufs 910 nslu2, ntfs-3g und umlaute… grrrrrr
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)… Continue reading samba, dreambox, ufs 910 nslu2, ntfs-3g und umlaute… grrrrrr
loopback device – losetup
Mit einem Loop-Device kann Dateien wie ein Gerät, z.B. eine Festplatte oder eine Partition (also ein Block Device) behandeln. Wenn eine Festplatte aus mehreren Partitionen besteht lassen sich mit Ihrem Namen /dev/sda1, /dev/sda2 ansprechen, je nachdem welches Laufwerk. Man kann ein Dump machen: dd if=/dev/sda1 of=dump und mit losetup wieder mounten: dd if=/dev/zero of=/home/test bs=1M… Continue reading loopback device – losetup
