Crux 2.5
K (→Tipps) |
K (→mkisofs: command not found) |
||
Zeile 362: | Zeile 362: | ||
=== mkisofs: command not found === | === mkisofs: command not found === | ||
− | shell> echo "alias mkisofs=\" | + | shell> echo "alias mkisofs=\"genisoimage\"" >> ~/.bashrc |
==Probleme== | ==Probleme== |
Version vom 25. Dezember 2008, 17:11 Uhr
Crux ist ein kleines i686-optimiertes Linux für erfahrene Linux-Benutzer.
Installation
Quellen: http://crux.nu/Main/Handbook2-5
ISO besorgen (~ 258 MB)
Booten
Booten der CRUX CD, Login als root (Passwort leer lassen, mit [ENTER] bestätigen)
Tastaturbelegung ändern
bash> loadkeys de
Festplatte Partitionieren
bash> cfdisk /dev/hda
SWAP vorbereiten und aktivieren
bash> mkswap /dev/hda2 bash> swapon /dev/hda2
Partition formatieren
bash> mkreiserfs /dev/hda1
Mounten der Partition
bash> mount /dev/hda1 /mnt
Basis-System Installieren
bash> setup
Dialog verlassen über <OK>.
In das neue System wechseln
bash> setup-chroot
root Passwort setzen
bash> passwd
/etc/fstab anpassen
bash> nano /etc/fstab
# # /etc/fstab: static file system information # # <file system> <dir> <type> <options> <dump> <pass> /dev/hda1 / reiserfs defaults 0 0 #/dev/#EXT3FS_ROOT# / ext3 defaults 0 1 #/dev/#JFS_ROOT# / jfs defaults 1 1 #/dev/#XFS_ROOT# / xfs defaults 0 0 /dev/hda2 swap swap defaults 0 0 #/dev/#REISERFS_HOME# /home reiserfs defaults 0 0 #/dev/#EXT3FS_HOME# /home ext3 defaults 0 2 #/dev/#JFS_HOME# /home jfs defaults 1 2 #/dev/#XFS_HOME# /home xfs defaults 0 0 #/dev/cdrom /cdrom iso9660 ro,user,noauto,unhide 0 0 #/dev/dvd /dvd udf ro,user,noauto,unhide 0 0 /dev/fd0 /floppy auto user,noauto,sync 0 0 devpts /dev/pts devpts defaults 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 #tmp /tmp tmpfs defaults 0 0 #shm /dev/shm tmpfs defaults 0 0 usb /proc/bus/usb usbfs defaults 0 0 # End of file
/etc/rc.conf anpassen
bash> nano /etc/rc.conf
# # /etc/rc.conf: system configuration # FONT=default KEYMAP=de TIMEZONE=Europe/Berlin HOSTNAME=crux SYSLOG=sysklogd SERVICES=(net crond sshd portmap nfserver ftpd)
/etc/rc.d/net
Doku: Network-Configuration
Für dhcp, war es folgende Änderung.
bash> nano /etc/rc.d/net
start) /sbin/ifconfig lo 127.0.0.1 /sbin/dhcpcd -t 10 eth0 -h $HOSTNAME ;; stop) killall -q /sbin/dhcpcd /sbin/ifconfig lo down ;;
- Router nicht RFC-konform, folgende Änderung, hat hier geholfen.
- /sbin/dhcpcd -t 10 -h $HOSTNAME eth0 + /sbin/dhcpcd -I "" -t 10 -h $HOSTNAME eth0
nfsserver
bash> nano /etc/exports
/mp3 *(rw,sync,no_root_squash) /video0 *(rw,sync,no_root_squash) /video1 *(rw,sync,no_root_squash) /video2 *(rw,sync,no_root_squash)
/etc/hosts.allow anpassen
bash> nano /etc/hosts.allow
# # /etc/hosts.allow # # <service>: <ip> sshd:ALL portmap:ALL lockd:ALL mountd:ALL rquotad:ALL statd:ALL # End of file
Kernel
bash> cd /usr/src bash> ln -s linux-* linux bash> cd linux bash> make menuconfig
Folgendes sollte man aktivieren.
- nvram
Device Drivers ---> Character Devices ---> <*> /dev/nvram support <*> Enhanced Real Time Clock Support
- dvb
Device Drivers ---> I2C support ---> <*> I2C support
Device Drivers ---> Multimedia Devices ---> Digital Video Broadcasting Devices ---> [*] DVB For Linux <M> DVB Core Support --- Supported SAA7146 based PCI Adapters <M> AV7110 cards [*] AV7110 OSD support
- acpi
Power Management Options ---> [*] Power Management support ACPI (Advanced Configuration and Power Interface) Support ---> [*] ACPI Support [*] Sleep States
- nfs
File systems ---> Network File Systems ---> <*> NFS server support [*] Provide NFSv3 server support [*] Provide NFS server over TCP support
Device Drivers ---> Graphics support ---> <*> Support for frame buffer devices [*] VESA VGA graphics support <*> Intel 810/815 support (EXPERIMENTAL) [*] use VESA Generalized Timing Formula Console display driver support ---> [*] Video mode selection support <*> Framebuffer Console support
Device Drivers ---> Input device support ---> <*> Event interface
Device Drivers ---> <M> Parallel port support <M> PC-style hardware <M> Multi-IO cards (parallel and serial)
Device Drivers ---> Input device support ---> [*] Misc <*> PC Speaker support
Dannach.
bash> make all bash> make modules_install bash> cp arch/i386/boot/bzImage /boot/vmlinuz bash> cp System.map /boot/System.map bash> cd /boot
/etc/lilo.conf anpassen
bash> nano /etc/lilo.conf
# # /etc/lilo.conf: lilo(8) configuration, see lilo.conf(5) # lba32 install=text boot=/dev/hda1 image=/boot/vmlinuz label=CRUX root=/dev/hda1 read-only append="quiet"
Wer möchte ergänzt den Eintrag für NVRAM WakeUp.
image = /boot/bzImage.poweroff label = PowerOff
Lilo in den Master Boot Record verfrachten, mit.
bash> lilo -M /dev/hda bash> lilo
Reboot
CD entfernen.
bash> reboot
Ports - aktualisieren
Ergänzung für die /etc/hosts.
193.1.193.66 download.sourceforge.net download.sf.net dl.sourceforge.net dl.sf.net
bash> nano /etc/prt-get.conf
prtdir /usr/ports/core prtdir /usr/ports/opt prtdir /usr/ports/xorg prtdir /usr/ports/contrib
bash> nano /etc/pkgmk.conf
PKGMK_IGNORE_FOOTPRINT="yes"
bash> mv /etc/ports/contrib.rsync.inactive /etc/ports/contrib.rsync bash> ports -u bash> prt-get sysup
Dann.
bash> prt-get depinst lynx eject screen bftpd
ftpserver
bash> nano /etc/bftpd.conf
user ftp { #Any password fits. - ANONYMOUS_USER="no" + ANONYMOUS_USER="yes" }
Freigabe ist /var/ftp, gemäß des Users ftp (/etc/passwd), ansonnsten später...
bash> tail -f /var/log/bftpd
VDR installation
Port ergänzen.
# note: the order matters: the package found first is used + prtdir /usr/ports/bashy prtdir /usr/ports/core prtdir /usr/ports/opt - runscripts no + runscripts yes
shell> wget http://ronny-kornexl.homepage.t-online.de/crux/ports/bashy.httpup -P /etc/ports shell> ports -u shell> prt-get depinst vdr-install
LIRC installation
shell> prt-get depinst lirc
Für einen IR-Empfänger an COM1 sollte folgendes in der Datei stehen.
Tipps
I18n
shell> localedef -c -f UTF-8 -i de_DE de_DE.UTF-8 shell> localedef -i de_DE@euro -f ISO-8859-15 de_DE.ISO-8859-15 shell> sed -i 's:--disable-nls::' /usr/ports/core/bash/Pkgfile shell> prt-get update bash shell> prt-get lock bash
graphtft-plugin-0.0.13 - von: vdr-box (at) online (dot) de
Beschreibung für Compaq_Deskpro_EN, mit folgende Grafikkarte on Board.
shell> lspci 00:02.0 VGA compatible controller: Intel Corporation 82815 CGC [Chipset Graphics Controller] (rev 02)
Für GRUB muss der Kernel da wie folgt gestartet werden.
title=VDR-Box 2.6.18.2-5 mit fb kernel (hd0,0)/2.6.18.2-5 root=/dev/hda5 video=i810fb:vram:8,xres:1024,yres:768,bpp:16,hsync1:30,hsync2:60,vsync1:50,vsync2:80,accel
Analog für LILO.
apend="video=i810fb:vram:8,xres:1024,yres:768,bpp:16,hsync1:30,hsync2:60,vsync1:50,vsync2:80,accel"
Fonts
shell> prt-get depinst xorg-font-msttcorefonts
.bashrc
shell> echo "[ -f ~/.bashrc ] && source ~/.bashrc" >> ~/.bash_profile shell> echo "export PATH=\$PATH:/usr/local/bin" >> ~/.bashrc
mkisofs: command not found
shell> echo "alias mkisofs=\"genisoimage\"" >> ~/.bashrc