Linux/Tipps/Gentoo/Installation: Unterschied zwischen den Versionen
Linux/Tipps/Gentoo/Installation (Quelltext anzeigen)
Version vom 10. Februar 2024, 10:10 Uhr
, 10 Februar→Mail
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) (→Mail) |
||
(13 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 23: | Zeile 23: | ||
* /etc/mysql/my.cnf (bind-address) | * /etc/mysql/my.cnf (bind-address) | ||
Dann: | Dann: | ||
* '''* | * '''*key*''' in '''/etc/ssh''' löschen | ||
* [[Linux/Tipps/Allgemein#chroot|chroot]], [[Linux/Tipps/Gentoo/Kernel#Kernel_erstellen|Kernel compilieren]], Passwörter ändern mit '''passwd''' | * [[Linux/Tipps/Allgemein#chroot|chroot]], [[Linux/Tipps/Gentoo/Kernel#Kernel_erstellen|Kernel compilieren]], Passwörter ändern mit '''passwd''' | ||
* [[Linux/Tipps/Allgemein#Grub-Bootblock_installieren|Bootblock erzeugen]] | * [[Linux/Tipps/Allgemein#Grub-Bootblock_installieren|Bootblock erzeugen]] | ||
Zeile 56: | Zeile 56: | ||
'''/etc/make.conf''': | '''/etc/make.conf''': | ||
CFLAGS="-march=i686 - | CFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer -fno-ident" | ||
LDFLAGS="-Wl,-O1" | LDFLAGS="-Wl,-O1" | ||
Zeile 65: | Zeile 65: | ||
==Regionale Einstellungen== | ==Regionale Einstellungen== | ||
Quelle: http://www.gentoo.org/doc/en/guide-localization.xml | Quelle: http://www.gentoo.org/doc/en/guide-localization.xml | ||
===glibc Locales generieren=== | ===glibc Locales generieren=== | ||
Zeile 80: | Zeile 80: | ||
'''/etc/env.d/02locale''': | '''/etc/env.d/02locale''': | ||
LANG="de_DE.UTF-8" | LANG="de_DE.UTF-8" | ||
GDM_LANG="de_DE.UTF-8" | GDM_LANG="de_DE.UTF-8" | ||
LC_COLLATE="C | |||
Dann: | Dann: | ||
env-update | env-update | ||
Zeile 279: | Zeile 279: | ||
cp /usr/share/themes/QtCurve/gtk-2.0/gtkrc /etc/gtk-2.0/ | cp /usr/share/themes/QtCurve/gtk-2.0/gtkrc /etc/gtk-2.0/ | ||
Dann in '''Kontrollzentrum/Erscheinungsbild/Stil''' "QtCurve" auswählen. | Dann in '''Kontrollzentrum/Erscheinungsbild/Stil''' "QtCurve" auswählen. | ||
===Kein Popup wegen Mails beim Login=== | |||
Folgende Zeile in '''/etc/pam.d/system-login''' auskommentieren: | |||
session optional pam_mail.so | |||
==Displaymanager ändern nach kdm== | ==Displaymanager ändern nach kdm== | ||
Zeile 318: | Zeile 322: | ||
==Samba== | ==Samba== | ||
Quelle: | Quelle: https://wiki.gentoo.org/wiki/Samba/Guide | ||
Falls man eine Web-Admin-GUI ("Swat") für Samba möchte, in '''/etc/portage/package.use''': | Falls man eine Web-Admin-GUI ("Swat") für Samba möchte, in '''/etc/portage/package.use''': | ||
Zeile 368: | Zeile 372: | ||
==Mail== | ==Mail== | ||
Beschreibung einer minimalen Mail-Konfiguration, sodass Mails an '''root''' (z.B. von '''Logwatch''') an einen | Beschreibung einer minimalen Mail-Konfiguration, sodass Mails an '''root''' (z.B. von '''Logwatch''') an einen Benutzer auf einem anderen Rechner (z.B. auf dem Mailserver) umgeleitet werden. | ||
'''/etc/mail/aliases''': | '''/etc/mail/aliases''': | ||
Zeile 387: | Zeile 391: | ||
rc-update add postfix default | rc-update add postfix default | ||
Komplettes Mailsystem einrichten, siehe z.B. [http://gentoo-wiki.com/HOWTO_Email_System_for_the_Home_Network hier]. | |||
===Postfix mit Dovecot=== | |||
'''/etc/dovecot/dovecot.conf''': | |||
protocols = imap lmtp | |||
'''/etc/dovecot/conf.d/10-master.conf''': | |||
service lmtp { | |||
unix_listener /var/spool/postfix/private/dovecot-lmtp { | |||
group = postfix | |||
mode = 0600 | |||
user = postfix | |||
} | |||
} | |||
'''/etc/postfix/main.cf''': | |||
mailbox_transport = lmtp:unix:private/dovecot-lmtp | |||
'''/etc/dovecot/conf.d/10-auth.conf''': | |||
auth_username_format = %Ln | |||
Optionaler Support für Plugins:<br> | |||
'''/etc/dovecot/conf.d/20-lmtp.conf''': | |||
protocol lmtp { | |||
postmaster_address = postmaster@domainname # required | |||
mail_plugins = quota sieve | |||
} | |||
Dann Dovecot und Postfix neu starten. | |||
Info: | |||
* https://doc.dovecot.org/configuration_manual/howto/postfix_dovecot_lmtp/ | |||
* https://serverfault.com/questions/658703/postfix-%E2%86%92-dovecot-lmtp-user-does-not-exist-uiddomain | |||
==D-Bus== | ==D-Bus== | ||
Zeile 432: | Zeile 467: | ||
genkernel --splash=livecd-2007.0 --no-clean all | genkernel --splash=livecd-2007.0 --no-clean all | ||
oder (kleinere initrd): | oder (kleinere initrd): | ||
genkernel --splash=livecd-2007.0 --splash-res=1280x1024 --no-clean all | |||
bzw. | |||
genkernel --splash=livecd-2007.0 --splash-res=1024x768 --no-clean all | genkernel --splash=livecd-2007.0 --splash-res=1024x768 --no-clean all | ||
bzw. | |||
genkernel --splash=livecd-2007.0 --splash-res=800x600 --no-clean all | |||
'''/dev/tty1''' beim Booten verfügbar machen: | '''/dev/tty1''' beim Booten verfügbar machen: | ||
mkdir /temp | mkdir /temp | ||
Zeile 459: | Zeile 498: | ||
Weitere Informationen: http://gentoo-wiki.com/HOWTO_Xorg_and_Fonts | Weitere Informationen: http://gentoo-wiki.com/HOWTO_Xorg_and_Fonts | ||
==Logging aufsplitten== | |||
Quellen: http://gentoo-wiki.com/Syslog-ng, http://forums.gentoo.org/viewtopic-p-4522832-highlight-.html, http://archives.neohapsis.com/archives/postfix/2006-02/0673.html | |||
Standardmäßig wird mit syslog-ng alles nach '''/var/log/messages''' geloggt. Dies kann man auch aufsplitten. In diesem Fall aufplitten in '''mail''', '''mail.info''', '''mail.warn''', '''mail.err''', '''cron.log''', '''messages'''. | |||
'''/etc/syslog-ng/syslog-ng.conf''' (komplett): | |||
# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo,v 1.7 2007/08/02 04:52:18 mr_bones_ Exp $ | |||
# | |||
# Syslog-ng default configuration file for Gentoo Linux | |||
# contributed by Michael Sterrett | |||
options { | |||
chain_hostnames(off); | |||
sync(0); | |||
# The default action of syslog-ng 1.6.0 is to log a STATS line | |||
# to the file every 10 minutes. That's pretty ugly after a while. | |||
# Change it to every 12 hours so you get a nice daily update of | |||
# how many messages syslog-ng missed (0). | |||
stats(43200); | |||
}; | |||
source src { | |||
unix-stream("/dev/log" max-connections(256)); | |||
internal(); | |||
file("/proc/kmsg"); | |||
}; | |||
destination messages { file("/var/log/messages"); }; | |||
filter f_messages { level(info..warn) | |||
and not facility(mail, news, cron); }; | |||
log { source(src); filter(f_messages); destination(messages); }; | |||
# By default messages are logged to tty12... | |||
destination console_all { file("/dev/tty12"); }; | |||
# ...if you intend to use /dev/console for programs like xconsole | |||
# you can comment out the destination line above that references /dev/tty12 | |||
# and uncomment the line below. | |||
#destination console_all { file("/dev/console"); }; | |||
#cron configuration | |||
destination cron { file("/var/log/cron.log"); }; | |||
filter f_cron { facility(cron); }; | |||
log { source(src); filter(f_cron); destination(cron); flags(final); }; | |||
# mail configuration | |||
destination mail { file("/var/log/mail"); }; | |||
filter f_mail { facility(mail); }; | |||
log { source(src); filter(f_mail); destination(mail); }; | |||
destination mailinfo { file("/var/log/mail.info"); }; | |||
destination mailwarn { file("/var/log/mail.warn"); }; | |||
destination mailerr { file("/var/log/mail.err"); }; | |||
filter f_info { level(info); }; | |||
filter f_warn { level(warn); }; | |||
filter f_err { level(err); }; | |||
log { source(src); filter(f_mail); filter(f_info); destination(mailinfo); }; | |||
log { source(src); filter(f_mail); filter(f_warn); destination(mailwarn); }; | |||
log { source(src); filter(f_mail); filter(f_err); destination(mailerr); }; | |||
#log { source(src); destination(messages); }; | |||
log { source(src); destination(console_all); }; | |||
'''/etc/logrotate.d/syslog-ng''' (ergänzen): | |||
/var/log/cron.log { | |||
sharedscripts | |||
postrotate | |||
/etc/init.d/syslog-ng reload > /dev/null 2>&1 || true | |||
endscript | |||
} | |||
/var/log/mail /var/log/mail.warn /var/log/mail.err /var/log/mail.info { | |||
sharedscripts | |||
postrotate | |||
/etc/init.d/syslog-ng reload > /dev/null 2>&1 || true | |||
endscript | |||
} | |||
Dann: | |||
* touch /var/log/mail.warn | |||
* touch /var/log/mail.err | |||
* touch /var/log/mail.info | |||
* /etc/init.d/syslog-ng restart | |||
==Bluetooth== | ==Bluetooth== | ||
Zeile 491: | Zeile 616: | ||
net-wireless/bluez-utils ~x86 | net-wireless/bluez-utils ~x86 | ||
net-wireless/kdebluetooth ~x86 | net-wireless/kdebluetooth ~x86 | ||
'''/etc/portage/package.use''': | |||
net-wireless/bluez-utils old-daemons | |||
Dann: | Dann: | ||
emerge bluez-libs bluez-utils bluez-firmware kdebluetooth | emerge bluez-libs bluez-utils bluez-firmware kdebluetooth |