Linux/Tipps/Suse

Aus VivaLV
Zur Navigation springen Zur Suche springen
Die druckbare Version wird nicht mehr unterstützt und kann Darstellungsfehler aufweisen. Bitte aktualisiere deine Browser-Lesezeichen und verwende stattdessen die Standard-Druckfunktion des Browsers.

VNC als X-Windows-Terminal mit eigenem Login

  • in YaST2/System/Editor für sysconfig Applications/Desktop/Display manager/DISPLAYMANAGER_REMOTE_ACCESS auf "yes" setzen
su
rcxdm restart
  • YaST2/Netzwerkdienste/Netzwerkdienste (inetd) starten
  • Bei Dienst vnc10/vnc11 hinzufügen:
-fp /usr/X11R6/lib/X11/fonts/misc:unscaled,/usr/X11R6/lib/X11/fonts/local,/usr/X11R6/lib/X11/fonts/75dpi:unscaled,/usr/X11R6/lib/X11/fonts/100dpi:unscaled,/usr/X11R6/lib/X11/fonts/Type1,/usr/X11R6/lib/X11/fonts/URW,/usr/X11R6/lib/X11/fonts/Speedo,/usr/X11R6/lib/X11/fonts/truetype,/usr/X11R6/lib/X11/fonts/uni,/usr/X11R6/lib/X11/fonts/CID
  • Dienst vnc10 und/oder vnc11 starten
  • neu booten (?)
  • VNCviewer verbinden mit Port 5910 bzw. 5911

Netzwerk Time-Sync einrichten als Client (ntp)

  • in YaST konfigurieren
  • Prüfen:
/usr/sbin/ntpq -c peers

Sun Java installieren (Suse 8.2)

  • installiertes JDK 1.4.1 Blackdown deinstallieren
  • JDK von Sun als .rpm.bin downloaden
chmod a+x <Datei>.rpm.bin
./<Datei>.rpm.bin
  • .rpm installieren
  • in YaST2/System/Editor für sysconfig Applications/Java/CREATE_JAVALINK auf "no" setzen
  • su
  • /etc/profile.local anlegen mit folgendem Inhalt:
JAVA_BINDIR=/usr/java/j2sdk1.4.2_02/bin
JAVA_HOME=/usr/java/j2sdk1.4.2_02
JDK_HOME=/usr/java/j2sdk1.4.2_02
JRE_HOME=/usr/java/j2sdk1.4.2_02
PATH=$PATH:/usr/java/j2sdk1.4.2_02/bin
export JAVA_BINDIR
export JAVA_HOME
export JDK_HOME
export JRE_HOME
export PATH
  • nach Neuanmelden sind die Env-Vars gesetzt
  • Java-Plugin für Mozilla 1.4 registrieren:
su
cd /opt/mozilla/lib/plugins
rm <alter Java-Plugin-Link>
ln -s /usr/java/j2sdk1.4.2_02/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so .

VMware 4.05 mit Kernel-Modulen installieren

  • Kernel-Sourcen installieren
  • Paket "km-vmware" installieren
su
cd /usr/src/kernel-modules/vmware
make -f Makefile-module
cd vmware-distrib
./vmware-install.pl
/etc/init.d/vmware stop
cd /usr/src/kernel-modules/vmware
make -f Makefile-module install
/etc/init.d/vmware start

Nvidia-Treiber installieren/deinstallieren

  • NVidia Linuxtreiber downloaden
  • Kernel-Sourcen installieren
  • Kernel-Sourcen vorbereiten:
su
cd /usr/src/linux
make cloneconfig
make prepare-all
cd /etc/X11
  • xorg.conf wegkopieren
  • alle X-Sessions beenden
  • an Root-Shell anmelden
init 3
./NVIDIA-Linux-x86-1.0-4496-pkg2.run
  • SaX2 -> OK klicken oder noch 3D-Beschleunigung konfigurieren
cd /etc/X11
  • xorg.conf: "nv" -> "nvidia"
init 5

Deinstallieren:

  • alle X-Sessions beenden
  • an Root-Shell anmelden
init 3
./NVIDIA-Linux-x86-1.0-4496-pkg2.run --uninstall
cd /etc/X11
  • xorg.conf: "nvidia" -> "nv"
init 5

Software-Installation über FTP statt CD

  • Internet-Verbindung sicherstellen
  • in YaST2 "Installationsquelle wechseln" starten
  • vorhandene Quelle CD ausschalten
  • Hinzufügen/FTP
  • Servername: ftp.gwdg.de
  • Verzeichnis: pub/linux/suse/ftp.suse.com/suse/i386/8.2

USB-Bluetooth (Suse 9.0)

Ich habe die Erfahrung gemacht, dass USB Hotplugging bei Suse 9.0 etwas wackelig ist. Daher habe ich meinen Bluetooth USB-Adapter nicht stabil zum Laufen gebracht. Dies ist daher nur als Sammlung von Notizen und Anhaltspunkten zu verstehen.

Ab Suse 9.2 ist alles stabiler und einfacher (aber hier noch nicht beschrieben).

  • Pakete "bluez-bluefw", "bluez-libs", "bluez-pan", "bluez-sdp", "bluez-utils" installieren
  • mv /bin/bluepin /bin/bluepin.bak
  • /etc/bluetooth/pin:
1234
  • /bin/bluepin:
#!/bin/bash
cat /etc/bluetooth/pin
  • chmod 777 /bin/bluepin
  • rcbluetooth restart
  • rchotplug restart
  • hciconfig -a
  • hciconfig up hci0
  • hcitool scan
  • echo 1 >/proc/sys/net/ipv4/ip_forward
  • modprobe iptable_nat
  • iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
  • sdpd
  • (sdptool add LAN) <- dund
  • sdptool browse FF:FF:FF:00:00:00
  • (/usr/local/sbin/rfcommd -s) -> krfcommd
  • rm /dev/rfcomm0
  • mknod /dev/rfcomm0 c 216 0
  • /etc/ppp/options.rfcomm0:
# You usually need this if there is no PAP authentication
noauth
# do not use modem control lines we aren't using a real serial line
local
# do not determinate local ip from hostname
noipdefault
# usefull ARP proxing
proxyarp
# Your own IP Address and the IP Address of the remote system
192.168.0.1:192.168.0.2
# And the netmask
netmask 255.255.255.0
# dns
ms-dns 147.88.1.201
# this is required for the non standard microsoft PPP negotiation
connect "sleep 2; echo -n CLIENTSERVER"

Nach dem Booten:

  • hciconfig -a
  • echo 1 >/proc/sys/net/ipv4/ip_forward
  • iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
  • dund --listen

IMAP-Server

uwimap (standardmäßig nur SSL, Port 993)
  • Pakete "fetchmail", "fetchmailconf", "procmail", "postfix", "imap" installieren
  • xterm: fetchmailconf
su
cp /home/thomas/.fetchmailrc /etc/fetchmailrc
  • /sbin/rcfetchmail editieren (-d = Pollintervall in Sekunden)
rcfetchmail start
insserv fetchmail
cd /etc/ssl/certs
openssl req -new -x509 -nodes -out imapd.pem -keyout imapd.pem -days 3650
  • Common Name = IP oder DNS-Name
  • Service imap und imaps aktivieren
rcxinetd reload
  • in YaST2/System/Editor für sysconfig Network/Mail/General/MAIL_CREATE_CONFIG auf "no" setzen
  • postfix konfigurieren mit Webmin
  • /etc/postfix/main.cf: disable_dns_lookups = yes)
Courier
  • Pakete "fetchmail", "fetchmailconf", "procmail", "postfix", "courier-imap" installieren
  • Pakete "perl-File-Tail", "perl-Net-Netmask", "perl-TimeDate" installieren
fetchmailconf
su
insserv courier-authdaemon
insserv courier-imap
rccourier-imap start
Pop-before-smtp (http://popbsmtp.sourceforge.net/)
  • Module "perl-File-Tail", "perl-Net-Netmask" und "perl-TimeDate" installieren
  • pop-before-smtp-conf.pl: Zeile mit $file_tail einkommentieren und anpassen
cp pop-before-smtp-conf.pl /etc
cp pop-before-smtp.init /etc/init.d/pop-before-smtp
cp pop-before-smtp /usr/sbin

Test:

pop-before-smtp --debug --reprocess

Wenn Fehlermeldungen mit "Net::Netmask::imaxblock" kommen, ist evtl. der mynetworks Parameter in Postfix nicht ganz OK oder nicht gesetzt. Dies kann mit "postconf mynetworks" geprüft werden. Sowas z.B. kann pop-before-smtp nicht verarbeiten:

mynetworks = 127.0.0.0/8 192.168.0.0/24 [::1]/128

In diesem Fall wird in "/etc/postfix/main.cf" eingetragen:

mynetworks = 127.0.0.0/8 192.168.0.0/24

Anschließend "postfix reload".

/etc/init.d/pop-before-smtp start
insserv pop-before-smtp
ls -la /etc/postfix/pop-before-smtp*
  • /etc/postfix/main.cf:
smtpd_recipient_restrictions = permit_mynetworks,check_client_access hash:/etc/postfix/pop-before-smtp,reject_unauth_destination
  • postfix reload


Suse 10.2

ASUS Notebook, Suspend-to-RAM ermöglichen

Bei neuerem BIOS sollte es von Haus aus funktionieren. Ansonsten ist folgendes zu ändern in /etc/pm/config:

S2RAM_OPTS="-f -a 1"
Reihenfolge der Netzwerkgeräte festlegen

Entsprechende Namen ändern in /etc/udev/rules.d/30-net_persistent_names.rules.

WLAN verbindet sich nicht nach dem Booten

Bei mir wird die ESSID nicht automatisch gesetzt, obwohl alles konfiguriert ist. Also setze ich die ESSID in /etc/init.d/boot.local:

iwconfig eth1 essid <id>
Suspend beim Schließen des Notebook-Deckels

In ~/.kde/share/config/kpowersaverc:

[General]
ActionOnLidClose=SUSPEND2RAM

Quelle: http://en.opensuse.org/Suspending_when_closing_the_laptop_lid_in_SUSE_10.2