Linux/Tipps/Suse: Unterschied zwischen den Versionen

4.059 Bytes hinzugefügt ,  30. Dezember 2006
keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 90: Zeile 90:
* Verzeichnis: pub/linux/suse/ftp.suse.com/suse/i386/8.2
* 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"
* Links:
** http://www.grinta.net/howto/bluez-ipaq.html
** http://iserver.hta.fhz.ch/~iathalma/projects/bluetooth/Linux_Bluetooth_Lan_Gateway/Linux_Bluetooth_Lan_Gateway.html
** http://www.holtmann.org/linux/bluetooth/
** http://geewiz.teamlinux.de/artikel/linuxbluetooth
** http://www.harbaum.org/till/palm/bluetooth/
** http://www.heddley.com/edd/2002/03/04/linuxBlade-howto.html
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




1.075

Bearbeitungen