Tricks

rsync mit anderen port

rsync -av --progress --inplace --rsh='ssh -p8023' somefile user@host:somedir/

ssh reverse tunnel

ssh -f -N -R 2200:137.129.154.15:22 icg181@enix.icg.kfa-juelich.de

ssh -p2200 pommrich@localhost

Debugging using netconsole

Debugging_using_netconsole.html

Sprache aendern

env LANG=de_DE.ISO8859-1 program

.deb-Pakete installieren

dpkg -i paket

Synaptic Touch Pad anpassen

in

/etc/X11/xorg.conf

Option "SHMConfig" "true" Option "AccelFactor" "0.2" Option "MaxSpeed" "0.8"

Ausschalten beim Runterfahren UNGETESTET

append="acpi=off apm=power_off"

to /etc/grub.conf and 

apm power_off=1

in /etc/modules
funkioniert nicht.

SMART

Not starting S.M.A.R.T. daemon smartd, disabled via /etc/default/smartmontools

backports installieren

aptitude -t etch-backports install "package" oder einfach im aptitude bei version die backport-version raussuchen.

CD-Brenner identifizieren

wodim -inq dev=/dev/hdc
wodim -scanbus dev=/dev/hdc

brennen

#Datei in CD-root auf MultisessionCD brennen

burn -D -m -p tricks.txt

ONLINE-FUCHS FAQ

  1. Ich möchte die "isdnutils" nicht installieren, da ich ein Modem nutze!
    • Geben Sie bei der Installation unter Debian als User "root" folgenden Befehl ein: $: dpkg -i ONLINE-FUCHS_debian_v1*.deb --force-depends
  2. Wie kann ich "isdnutils, ntpdate" automatisch mit installieren?
    • Geben Sie bei der Installation unter Debian als User "root" folgenden Befehl ein:

      $: dpkg -i ONLINE-FUCHS_debian_v1*.deb && apt-get -f install Damit werden die fehlenden Pakete (isdnutils, ntpdate) automatisch aufgelöst und aus dem Debian Repository nachinstalliert.

  3. Wie kann ich die Software updaten?
    • Installieren Sie einfache die neue Version, wie unter Installation beschrieben! Ihre Einstellung, Kostenübersicht und Tarifdatenbank geht nicht verloren.
  4. Während der Einwahl in das Internet macht das Modem komische Geräusche?
    • Sie können das Modem stumm schalten, in dem Sie den Inititialisierungsbefehl ATM0 im Modemskript (/usr/share/ONLINE-FUCHS/scripts/modemeinwahl.sh) einfügen.
  5. Wie kann ich den Modem Timout hoch setzen?

      Sie können den Modem Timeout verändern, in dem Sie das Modemskript (/usr/share/ONLINE-FUCHS/scripts/modemeinwahl.sh) den TIMEOUT z.B. von 30 auf 60 hoch setzen.
  1. Die Internetverbindung kommt scheinbar zu stande - es erfolgt aber kein Tarif Update!
    • Deaktivieren Sie andere Netzwerkschnittstellen mit z.B. "ifdown eth0".
  2. Ich finde den Prozess nicht, um das Programm manuell zu killen?
    • Der Prozess ist "case sensitive" und heißt: ONLINE-FUCHS
  3. Wie kann ich die Software komplett entfernen?
    • Zur Deinstallation geben Sie als user "root" auf der Kommandozeile den folgenden Befehl ein, für
      • Debian: dpkg --purge onlinefuchs
      • SuSE: rpm -erase onlinefuchs

Compose-Taste

Option "XkbOptions" "compose:caps"

Laptop mode

sudo laptop_mode start
sudo emacs /etc/laptop-mode/laptop-mode.conf

ISO mounten

mount -o loop /Pfad/zur/ISO-Datei/CD.iso /media/iso

sudoers anpassen

--------------------------------------------------------------------------------------------------------
# Uncomment to allow people in group wheel to run all commands
# %wheel        ALL=(ALL)       ALL

# Same thing without a password
# %wheel        ALL=(ALL)       NOPASSWD: ALL

# Users in group www are allowed to  edit httpd.conf and ftpd.conf
# using sudoedit, or sudo -e, without a password.
# %www          ALL=(ALL)       NOPASSWD: 
sudoedit /etc/httpd.conf, /etc/ftpd.conf

# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now
--------------------------------------------------------------------------------------------------------

Wie wär's mit %group1 ALL=/usr/bin/rsync,/usr/local/bin/script1 NOPASSWD: 
ALL ? (ungetestet)

Architektur rausfinden

#include <stdio.h>

int main(){
  
  printf("%u Bit-System",sizeof(unsigned long)*8);
  return 0;
}

Pakete und ihre Herkunft auflisten

aptitude -F '%p %t' search '~i'

fsck.vfat -artvV /dev/ydx

http://blog.pim-philips.ch/?p=87

libproj 4

http://members.verizon.net/~vze2hc4d/proj4/

nmap scan windose xp

mephisto@gerichtsaal:~$ sudo nmap -O  -sT 192.168.178.22

Starting Nmap 4.53 ( http://insecure.org ) at 2008-02-10 18:31 CET
Interesting ports on 192.168.178.22:
Not shown: 1712 closed ports
PORT    STATE SERVICE
135/tcp open  msrpc
139/tcp open  netbios-ssn
No exact OS matches for host (If you know what OS is running on it, see http://i
nsecure.org/nmap/submit/ ).
TCP/IP fingerprint:
OS:SCAN(V=4.53%D=2/10%OT=135%CT=1%CU=38393%PV=Y%DS=1%G=Y%TM=47AF34F6%P=i686
OS:-pc-linux-gnu)SEQ(SP=FD%GCD=1%ISR=10C%TI=I%TS=0)OPS(O1=M1D8NW0NNT00NNS%O
OS:2=M1D8NW0NNT00NNS%O3=M1D8NW0NNT00%O4=M1D8NW0NNT00NNS%O5=M1D8NW0NNT00NNS%
OS:O6=M1D8NNT00NNS)WIN(W1=8110%W2=8110%W3=8110%W4=8110%W5=8110%W6=805C)ECN(
OS:R=Y%DF=Y%T=FF%W=8110%O=M1D8NW0NNS%CC=N%Q=)T1(R=Y%DF=Y%T=FF%S=O%A=S+%F=AS
OS:%RD=0%Q=)T2(R=N)T3(R=Y%DF=Y%T=FF%W=805C%S=O%A=S+%F=AS%O=M1D8NW0NNT00NNS%
OS:RD=0%Q=)T3(R=Y%DF=Y%T=FF%W=805C%S=O%A=O%F=A%O=NNT11%RD=0%Q=)T3(R=Y%DF=Y%
OS:T=FF%W=805C%S=O%A=O%F=AS%O=M1D8NW0NNT00NNS%RD=0%Q=)T4(R=Y%DF=N%T=FF%W=0%
OS:S=A%A=O%F=R%O=%RD=0%Q=)T5(R=Y%DF=N%T=FF%W=0%S=Z%A=S+%F=AR%O=%RD=0%Q=)T6(
OS:R=Y%DF=N%T=FF%W=0%S=A%A=O%F=R%O=%RD=0%Q=)T7(R=Y%DF=N%T=FF%W=0%S=Z%A=S+%F
OS:=AR%O=%RD=0%Q=)U1(R=Y%DF=N%T=FF%TOS=0%IPL=B0%UN=0%RIPL=G%RID=G%RIPCK=G%R
OS:UCK=G%RUL=G%RUD=G)IE(R=N)


Network Distance: 1 hop

OS detection performed. Please report any incorrect results at http://insecure.o
rg/nmap/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 16.787 seconds

Linux umkopieren

http://de.opensuse.org/SDB:SuSE_Linux_umkopieren http://www.faqs.org/docs/Linux-mini/Hard-Disk-Upgrade.html

xsensors benutzen

To make the sensors modules behave correctly, add these lines to
/etc/modules:

#----cut here----
# I2C adapter drivers
i2c-piix4
# Chip drivers
adm1021
#----cut here----

The WLAN network interface

auto wlan0 iface wlan0 inet dhcp pre-up iwconfig wlan0 essid >NETZNAME< wpa-driver wext wpa-ssid >NETZNAME< ap-scan 1 scan-ssid 1 wpa-psk >11111111111122222222223333333333444444444444444< wpa-pairwise TKIP wpa-group TKIP

Installierte Pakete aus backports anzeigen

grep-status -sPackage,Version -F Status 'installed' -a -F Version 'bp'

oder kürzer

grep-status -nsPackage -F Status 'installed' -a -F Version 'bp'

vkeybd

timidity -iA& vkeybd --device alsa& aconnect -o|-i aconnect 130:0 128:0

WLAN-codes

Client Reason Code...Description...Meaning 0...noReasonCode...Normal operation. 1...unspecifiedReason...Client associated but no longer authorized. 2...previousAuthNotValid...Client associated but not authorized. 3...deauthenticationLeaving...The access point went offline, deauthenticating the client. 4...disassociationDueToInactivity...Client session timeout exceeded. 5...disassociationAPBusy...The access point is busy, performing load balancing, for example. 6...class2FrameFromNonAuthStation...Client attempted to transfer data before it was authenticated. 7...class2FrameFromNonAssStation...Client attempted to transfer data before it was associated. 8...disassociationStaHasLeft...Operating System moved the client to another access point using non-aggressive load balancing. 9...staReqAssociationWithoutAuth...Client not authorized yet, still attempting to associate with an access point. 99...missingReasonCode...Client momentarily in an unknown state.

Converting text files between Windows and UNIX

Von: http://linuxreviews.org/quicktips/txt_doc2unix/

Converting text files between Windows format to UNIX format and vice versa

The way textfiles are formatted differs between Windows and Unix. If you open a textfile made in notepad under unix you will find that it has ^M where there should be a new line.

Convert a text file from Windows/dos to unix:

Convert a text file from unix to Windows/dos:

Wikinger: Tricks (zuletzt geändert am 2012-11-20 20:27:00 durch Robert)