s.a. Kurz-Referenz: /usr/share/doc/apt-dpkg-ref/ apt-dpkg-ref.html
apt-cache cdrom, apt-cache search –full
<pattern>
apt-get install <pkg> (downloads pkg and all
its dependencies and installs / upgrades them)
apt-get update (--dry-run) run before upgade !], apt-get upgrade (--dry-run)
dpkg -L <pkg> (list files from this pkg
installed on my system)
dpkg-reconfigure <pkg>
dpkg
–get-selections
debconf <pkg>, gpmconfig
dpkg -i
<pkg.deb> (installs a Debian package file; e.g. one that you
downloaded manually)
dpkg -S <pkg> Search for a filename
from installed packages
update-alternatives
------------
aptitude,
dselect
------------
to install s.u. !
------------
base-config, language-env, /usr/lib/locale, /usr/share/locale, /etc/language-de, /etc/locale.gen, /etc/locale.nopurge
kbdconfig oder loadkeys /usr/share/keymaps/i386/quertz/de-latin1-nodeadkeys.kmap.gz oder de-latin1.kmap.gz, (alt: /usr/lib/kbd/keytables/de-latin1-nodeadkeys.map, )
boottime: /etc/console/boottime.kmap.gz (alt: /etc/kbd/defaul.map)
Terminal-Console Zeichensalat: reset;
-------------
wwwconfig-common:
Debian-web-auto configuration
-------------
modprobe -k <modul>, lsmod, rmmod,
insmod
/etc/modules.conf generated by update-modules
(cats all files in /etc/modules/), kann dadurch von Programmen besser
angepaßt werden als eine einzige große Datei,
übersichtlicher. Alle alias werden geladen !
modconf
konfiguriert ebenfalls /etc/modules.conf, needs whiptail for
dialogs
/etc/modules = list of modules the kernel loads at
start
s.a. /usr/src/kernel-sourcexxx/Documentation/sound
i810_audio
alias char-major-14
ess
post-install ess /sbin/modprobe -k esssolo1
ac97 codec:
i810_audio
entsprechendes Kernel-Src-Paket installieren,
evtl. libncurses installieren fuer “make
menuconfig”
/usr/src/linux: .config konfigurieren: make
menuconfig
(fakeroot) make-kpkg --revision kernel_image, dann
pkg normal installieren mit:
dpkg --install
kernel_image-2.4.18_angepasst.1_i386.deb
bei
SCSI oder bei ext3: param –initrd angeben.
Achtung!,
evtl. /lib/modules derselben version sichern !
make dep; make clean; make bzImage; make modules; make install; make modules_install
workbone o.k. (pkg. “fonty” deinstall, reboot, dann Zeichen wieder ok)
-- ! -- xmms -- !! (pkgs.: xmms, xmms-cdread, xmms-infopipe) funktioniert nicht !
gnome-media o.k.
xcdroast – X-CD-Writer-Software (needs:
cdda2wav, cdrecord, mkisofs), Param -n: verhindert Pruefung
Versionen + MindestBildschirmAuflösung 1024 px.
SCSI–Emulation
einrichten bei ATAPI-Laufwerken
s.
/usr/share/doc/xcdroast/README.atapi + FAQ.
Beispiel: 1 x
Adaptec 2940 + ide-scsi, 1 cd-reader + 1 cdwriter:
bei System-Start mit Lilo Kernel Param übergeben: append=”hdc=ide-scsi hdd=ide-scsi ”
Eintrag in modules.conf über
/etc/modules:
neue Datei ide-scsi:
options ide-cd
ignore=”hdc hdd”
pre-install sg modprobe ide-scsi
alias
erstellen:
alias scsi_hostadapter aic7xxx
alias
scsi_hostadapter1 aic7xxx
alias scsi_hostadapter2
ide-scsi
anpassen:
/etc/fstab;
/dev/cdrom bzw.
/etv/dvd, in /dev/ mit Link cdrom bzw. dvd auf scd0 bzw. sr0 und
scd1 bzw. sr1 verweisen.
nach Neustart testen mit: cdrecord -scanbus
gtoaster – a GUI for creating CDs (needs: cdda2wav, cdrecord, mkisofs, sax)
doc: http://localhost:631/sum.html (software users manual)
http://localhost:631/sam.html (software admin manual)
Pakete: net/cupsys, cupsys-client, cupsys-bsd
??? gimpprint-locales, Epson: escputil
config: http://localhost:631/admin oder lpadmin
lpoptions
par-printer: lp0
kommerz. Treiber: http://www.easysw.com/printpro
Uebersicht unterstuetzter Drucker: http://gimp-print.sourceforge.net
Standard-Printer einstellen: debian/apps/tools/X printing panel
Mail Transport Agent z.B. exim:
1. mail
empfangen/sammeln (SMTP) und anfügen an Benutzer-Queue =
mailserver (Dämon!) (nach Aufruf)
2. mail verschicken an
relay-SMTP-server = mailclient (nach Aufruf oder als Dämon)
z.B.
- exim (eximconfig = conf-prg) (manual:
/usr/share/doc/exim/spec.txt.gz bzw.
/usr/share/doc/exim-tls/spec.txt.gz oder auch
/usr/share/doc/exim/manual.html/spec.html
)
RewriteConfiguration: schreibt envelop um! Params setzen, damit
die Header nicht auch umgeschrieben werden! Sammelt von MUA erstellte
mail in /var/spool/exim/input, verschickt automatisch oder manuell.
In /var/spool/exim/msg sind messages z.B. über frozen files,
Liste mit mailq zu sehen, Header mit exim -Mvh <DateiName>.
Teste exim (s. spec.txt Nr. 4.14): exim -bV (VERSION); exim -v -bt gerd (address testing mode); mailq (== exim -bp, exim verhält sich wie mailq, der Link /usr/bin/mailq auf exim ist identisch, prüft Warteschlange); exim -brw gerd@mt10.eden.sbr (testet address rewriting); Log: tail -f /var/log/exim/mainlog; exim -q (exim einmalig starten, vorher diesen Dienst beenden, in /etc/init.d bzw. in /etc/initd.conf mit “update-inetd --disable smtp” und ;) (opt. -f == force); exim -bs (exim als smtp Server: mittels smtp mail-übergabe von fetchmail in mailbox); exim -bd (exim als Daemon smtp Server im background)
- smail, qmail, sendmail (sendmail.cfg ist keine ASCII-Datei: Spaces + TABs relevant!), postfix
Wartende mails sind in /var/(spool/)mail (oder
/var/spool/queue), klassische Prgs. erzeugen eine Datei pro
User mit allen seinen mails darin (MailSpoolDatei), benötigt MUA
+ MTA, darin auch Systemmeldungen!
Rechner, die nicht dauernd
online sind und mails empfangen können, benötigen Prg. zum
Abholen und Übergeben der mails an rechnereigenen MTA, wenn MTU
das nicht kann, z.B. fetchmail (POP, IMAP).
Mail Delivery Agent (mail ausliefern)
z.B.
exim, smail, sendmail
Mail User Agent (mail schreiben und lesen)
z.B.
mutt, pine, elm, mailx
mail: cfg: /etc/mail.rc, ~/.mailrc; Postbox: /var/mail/*, old mail: ~/mbox
mutt: cfg: ~/.muttrc oder ~/.mutt/muttrc,
/etc/Muttrc;
/usr/share/doc/mutt/html/manual.html
Vorsicht!
verwendet /etc/email-addresses zur Namensumsetzung lokaler Namen
balsa: cfg:
needs existing file
/var/mail/<username> (may be empty, or user must be member of
“mail”-group to generate it)
Envelop: infos für MTA, wird von MTA entfernt + Header/mail
procmail: (process mail),
fetchmail-ssl: mail abholen, weiterleiten
(POP, IMAP), fetchmailconf
running fetchmail: Aufruf wird sowohl
in init.d als auch in cron.d installiert !
nur wenn
/etc/fetchmailrc existiert, wird init.d ausgeführt: nur dann
fetchmail als Daemon!
fetchmail -c -f <rc-file> ; shows how
many mails are waiting on the server
fetchmail -k -t 60 -f
~/.fetchmailrc-gmx ; keeps mails, returns after timeout of 60 secs,
reads configfile
needed packages: gnome-session
(gnome-panel), gnome-help, gnome-control-center, nautilus
Def:
desktop = gnome-session , panel = window-manager
(Einstellen in gnome-control-center)
Panel: Programme +
Debian Menüs: in /var/lib/gnome
~/.gnome-desktop/
Dateien + Ordner auf dem Desktop
install in /usr/lib/mozilla/plugins: libflashplayer.so, flashplayer.xpt
install-min: xserver-common, xserver-xfree86, xbase-clients, (alien NVIDIA-Cards,) xfonts-base, aterm o.ä., twm o.ä.
see: /usr/share/doc/xfree86-common/README.debian.gz, FAQ, man X; man XF86Config
update-alternatives --display|config|auto x-window-manager
( /etc/alternatives/x-window-manager, /var/lib/dpkg/alternatives/x-window-manager,
/usr/bin/x-window-manager )
cfg v4.0: dpkg-reconfigure xserver-xfree86, (XFree86
-configure, (xf86cfg ) bad)
User-cfg: .xinitrc ergaenzen:
test ... /etc/alternatives/x-window-manager ...
Start mit: xdm oder startx, vorher evtl. !!! gpm -k !!!
dpkg-reconfigure
xserver-xfree86
prg: xf86config, X -probeonly, dexconf?,
xvidtune ! , debconf Xwrapper
xmodmap -pke (shows key-bindings), xev (shows event)
Manuals: X, XF86Config, XF86Config-4, XFree86
Ctrl-Alt-BkSpace abschalten in XF86Config mit DontZap: s. Kofler S. 300;
s. Hein: Linux Systemadministration S. 282
(see: /usr/share/doc/HOWTO/en-html/Remote-X-Apps-6.html):
|
|
|
|
|
|
~/.Xauthority
evtl. erst erzeugen;
cookie nach client host
transportieren:
Shared Home Directories
By the Remote Shell, rsh
Manually, by Telnet
Using the Cookie
An X
application on dark.matt.er, such as xfig above, will automatically
look in ~/.Xauthority there for the cookie to
authenticate itself with.
SSH
To turn on X forwarding over ssh, use
the command line switch -X or write the following in
your local ssh configuration file:
Host remote.host.nam
ForwardX11 yesThe ssh server (
sshd) at the
remote end automatically sets DISPLAY to point to its
end of the X forwarding tunnel. The remote tunnel end gets its own
cookie; the remote ssh server generates it for you and puts it in
~/.Xauthority there. So, X authorisation with ssh is
fully automatic.
update-menus
startx -e mc
startx -- -bpp 16 :1 vt8
host/unix:D.S means screen S on display D of host host; the X server for this display is
listening at UNIX domain socket /tmp/.X11-unix/XD (so it's only reachable from host).
pppconfig, pon [provider] [arguments], poff
[arguments] [provider]
/etc/chatscripts, /etc/ppp
einrichten:
Dateisystem unmounten ! tune2fs -j /dev/hdaX; mount -t ext3
/dev/hdaX /mnt/somewhere;
- format a partition as ext3 (as
always it will be also usable as ext2 partion):
mke2fs -j
/dev/hdaX; tune2fs -c 40 /dev/hdax
/etc/fstab: fs-type: auto bei
neuerem Kernel
- to convert your partion back to ext2 just do
the following on an unmounted partition:
tune2fs -O
^has_journal /dev/hdaX, to be on the safe side you should force a
fsck run on this partition afterwards: fsck.ext2 -f /dev/hdaX
installation: samba, samba-common, smbclient,
smbfs
/etc/samba/smb.conf: “passwort verschlüsseln” wenn
Windows-clients, (w95 allerdings kann das nicht!)
testparm: testet smb.conf ob o.k.
z.B. “smbclient --user Gerd -L mt10” (wie FTP
zeilenorientiert und interaktiv),
“smbmount //mt10/gerd
/mnt/mt10 -o username=gerd,password=xxx,rw” oder
“mount -t
smbfs -o username=gerd,password=xxx,rw //mt10/gerd /mnt/mt10” (wie
mit mount Datei-System einbinden)
smbpasswd: stellt Paßwort ein in /etc/samba/smbpasswd
nfs muß geladen sein: “modprobe -v -k
nfs”
portmap muß laufen !
/etc/hosts.allow
konfigurieren, s.o. muß z.B. min. enthalten: portmap:
192.168.
/etc/hosts.deny konfigurieren
rpcinfo -p zeigt die
RPC-Services von localhost (udp, tcp)
rpcinfo -u localhost Prg-Nr.
zeigt, ob udp-Service verfügbar
showmount -e localhost zeigt
die freigegebenen DIRs
/etc/exports:
##/
192.168.*(ro,no_root_squash,nohide) # !!! falsch !!!
/
192.168.0.0/16(ro,no_root_squash,nohide)
/mnt/hda1
192.168.0.0/16(ro,no_root_squash,nohide)
/home
*.eden.sbr(rw,no_root_squash)
nach export-Aenderung: “/etc/init.d/nfs-kernel-server reload”
nfs muß geladen
sein
portmap
mounten:
/etc/fstab: mt13:/ /mnt/mt13
nfs noauto,user,exec,intr,bg,soft,suid,rw 0 0
oder:
mount -v -t
nfs -o nohide,nolock,rsize=4096,wsize=4096,soft,intr 192.168.178.20:/
/mnt/test
(kein Zugriff auf Laufwerke mgl., die auf remote host gemounted sind, wenn nicht in exports explizit freigegeben, z.B. /dev/hda1 192.168.178.0/24(rw,no_root_squash), “nohide” testen, funktioniert nicht?, lock meist wichtig)
umssync -r 99 -R 99 <path>
!!! Achtung
!!! wenn ---linux.--- nicht vorhanden und DIR umbenannt wird:
wird gelöscht !!!
entweder fest im Kernel oder Module.
USB Chipset ermitteln: lspci; Details mit: lspci mit den
Optionen -v -s und der entsprechenden ID, z.B. lspci -v -s
00:07.2
wichtige Module: usbcore.o und entweder usb-uhci.o oder
usb-ohci-hcd.o. Weiterhin müssen die gewünschten Treiber,
also beispielsweise scanner.o oder printer.o geladen werden.
z.B.: für Memory Stick:
- 1.
Module laden: sd_mod, usb-uhci, usb-storage;
2. usbdevfs mounten:
(mount -t usbdevfs none /proc/bus/usb); oder
fstab: none
/proc/bus/usb usbdevfs defaults 0 0
3. USB-Stick mounten: mount
-v -t [vfat | umsdos] /dev/sda1
/usbstick
Massenspeicher-Konfiguration:
Dieser Treiber
(usb-storage) kann mit einer Vielzahl von Geräten
benutzt werden. Dies kommt daher, daß eine Verbindung zum
SCSI-Treiber im Kernel hergestellt wird, Sie müssen daher auch
den SCSI Support im Kernel aktivieren. Sie können dann auf
USB-Diskettenlaufwerke, Zip-Laufwerke, LS120-Laufwerke und USB
CD-ROMs zugreifen. Muß dann gemountet werden.
Installierte fonts anzeigen: xlsfonts
zurueckschreiben mit :
dd if=./MBR.org of=/dev/hda bs=512 count=1
zum Booten sind 446 bytes relevat, Rest: Part.Tabelle
ifconfig lo 127.0.0.1
route add -net 127.0.0.0
ifconfig eth0 ${IPADDR} broadcast ${BROADCAST}
netmask ${NETMASK}
route add -net ${NETWORK}netmask
${NETMASK}
z.B. route add -net ${192.168.3.0} netmask
${255.255.255.0} dev eth0
route add default gw ${GATEWAY} metric
1
z.B. route add default gw 192.168.3.15 metric 1
evtl. ip forwarding aktivieren
|
alien 2 192.168.13.222/24 |
eth0 ------> |
<------ eth0 |
saturn 10.13.0.1/24 |
# evtl. hostroute legen, damit kernel erkennt, wo er route einrichten
soll
route add -host 10.13.0.1 eth0
# Network gateway route,
evtl. kann hostroute wieder gelöscht werden
route add -net
10.13.0.0/24 gw 10.13.0.1 eth0
# Network default route legen
route add default gw 192.168.13.222 eth0
# löschen mgl.,
da doppelt:
route del -net 192.168.13.0/24 gw 192.168.13.222 eth0
route del -host 192.168.13.222 eth0
konfigurieren:
hosts.allow:
ssh sshd : ALL@ALL :
ALLOW
ALL : 127.0.0.1 LOCAL : ALLOW
ALL : 192.168.
ALL :
ALL@ALL : DENY
hosts.deny:
ALL: PARANOID
server: aufrufen: portmap; rpc.mountd; rpc.nfsd
client:
- commands: ssh -l gerd 192.168.10.13, scp
gerd@192.168.10.13:/home/aaa /home/bbb
- ~/.ssh/known_hosts oder
/etc/ssh/known_hosts (contains public-keys of trusted hosts, as in
host:/etc/ssh_host_rsa_key.pub, compares the keys), mod: 644. ???
-
/etc/shosts.equiv oder ~/shosts.equiv (to permit hosts directly
access, RSA authent. required), mod: 644 ???
-
/etc/ssh/ssh_config: HostbasedAuthentication yes
- ssh: s.a. DAHB, sftp !!!
default: 3des
e.g. ssh -l gerd 192.168.10.13
ifconfig, ping, arp -a (arp = Address Resolution Protocoll), route, traceroute
Datum setzen (in Manfred)
mit date -u
<Zeichenkette>
s. "date --help", Zeichenkette dort
erklaert bei Param -u
linux:/home# date |
fdformat /dev/fd0h1440 (low level), mformat a: | mkfs | mke2fs /dev/fd0 (filesystem)
daemon_list : client_list [ shell_command ]
z.B. ALL : 192.168.
DIRs: /usr/X11/lib/X11/icewm/*xpm,
/usr/share/doc/icewm-common/html/icewm.html
icewm.html umbenannt:
icewm-0.html
password, restricted: password muss nur eingegeben
werden, wenn params eingegeben werden
ohne prompt:
Umschalt-Feststelltaste druecken oder Umschalt-Taste gedrückt
halten: Boot-Menue erscheint
lists open files, e.g. “lsof | grep LISTEN” to list all open files that listen on a port
exim: eximconfig; s.o. MTA
druckt nicht ? hat Probs mit pkg xprt, stattdessen xprt-xprintorg
installieren !
bookmarks: gnono
password (change user or group password,
Gültigkeitsdauer setzen etc.)
change (frueheste
Password-aenderung: shadow col 4)
perl, perl-tk,
Spelling: unter Extras/Optionen/Spracheinstellungen/Lingustik/Verfügbare Sprachmodule/...SpellChecker mit Bearbeiten aktivieren
circus-linux: !!!
xboing: !!
ketm: ! shoot them all: Jagtflugzeuge , correct path
/usr/games/ketm -f !, Help: -h
hatman: - frisst Punkte,
Menue Instruktionen or Edit: crash ( needs
libggi-target-aa/-fbdev/-svgalib/-x )
moon-buggy: -- ASCII
penguin-command: !! Außerirdische zerstören
Städte
DoomLegacy: ! BallerSpiel
Gnibbles: !
snake
KAsteroid: - Asteroiden abschießen, teilen
sich
KDE SpaceDuel: - 2 JagtFlugzeuge umkreisen Planet,
schießen
X Overkill: ! ASCII
! - ! - nicht
verständlich: netmaze: --
! - ! - läuft nicht:
gltron, xkoules
/var/doc
fdmount
wmmount
selectwm
filerunner
showmount: prueft NFS-System on remote host
rdate: Zeit vom remote-host holen mit RFC868 Protokoll
timezoneconf: Zone, Tag, Stunde setzen