Crux 2.4
K (→Installscript) |
K (→/etc/rc.d/net) |
||
(58 dazwischenliegende Versionen von 8 Benutzern werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
+ | Crux ist ein kleines i686-optimiertes Linux für erfahrene Linux-Benutzer. | ||
+ | |||
==Installation== | ==Installation== | ||
− | Quellen: http://crux.nu/Main/Handbook2- | + | Quellen: http://crux.nu/Main/Handbook2-4 |
− | ===ISO besorgen (~ | + | ===ISO besorgen (~ 246 MB)=== |
http://crux.nu/Main/Download | http://crux.nu/Main/Download | ||
Zeile 67: | Zeile 69: | ||
usb /proc/bus/usb usbfs defaults 0 0 | usb /proc/bus/usb usbfs defaults 0 0 | ||
− | # End of | + | # End of file |
</pre> | </pre> | ||
Zeile 81: | Zeile 83: | ||
TIMEZONE=Europe/Berlin | TIMEZONE=Europe/Berlin | ||
HOSTNAME=crux | HOSTNAME=crux | ||
+ | SYSLOG=sysklogd | ||
SERVICES=([[Crux#/etc/rc.d/net|net]] crond sshd portmap [[Crux#nfsserver|nfserver]] [[Crux#ftpserver|ftpd]]) | SERVICES=([[Crux#/etc/rc.d/net|net]] crond sshd portmap [[Crux#nfsserver|nfserver]] [[Crux#ftpserver|ftpd]]) | ||
====/etc/rc.d/net==== | ====/etc/rc.d/net==== | ||
− | Doku: [http://crux.nu/Main/Handbook2- | + | Doku: [http://crux.nu/Main/Handbook2-4#ntoc53 Network-Configuration] |
− | Für '''dhcp''', war es folgende Änderung | + | Für '''dhcp''', war es folgende Änderung. |
bash> vim /etc/rc.d/net | bash> vim /etc/rc.d/net | ||
<pre> | <pre> | ||
start) | start) | ||
− | |||
/sbin/ifconfig lo 127.0.0.1 | /sbin/ifconfig lo 127.0.0.1 | ||
/sbin/dhcpcd -t 10 eth0 -h $HOSTNAME | /sbin/dhcpcd -t 10 eth0 -h $HOSTNAME | ||
Zeile 100: | Zeile 102: | ||
;; | ;; | ||
</pre> | </pre> | ||
+ | |||
+ | * 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==== | ====nfsserver==== | ||
Zeile 120: | Zeile 127: | ||
sshd:ALL | sshd:ALL | ||
+ | portmap:ALL | ||
+ | lockd:ALL | ||
+ | mountd:ALL | ||
+ | rquotad:ALL | ||
+ | statd:ALL | ||
# End of file | # End of file | ||
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===Kernel=== | ===Kernel=== | ||
bash> cd /usr/src | bash> cd /usr/src | ||
− | bash> ln -s * linux | + | bash> ln -s linux-* linux |
bash> cd linux | bash> cd linux | ||
bash> make menuconfig | bash> make menuconfig | ||
− | + | Folgendes sollte man aktivieren. | |
* '''nvram''' | * '''nvram''' | ||
Zeile 154: | Zeile 152: | ||
* '''dvb''' | * '''dvb''' | ||
+ | |||
+ | Device Drivers ---> | ||
+ | I2C support ---> | ||
+ | <*> I2C support | ||
Device Drivers ---> | Device Drivers ---> | ||
Zeile 179: | Zeile 181: | ||
[*] Provide NFSv3 server support | [*] Provide NFSv3 server support | ||
[*] Provide NFS server over TCP support | [*] Provide NFS server over TCP support | ||
+ | |||
+ | * '''[[framebuffer]]''' | ||
+ | |||
+ | 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 | ||
* '''[[remote-plugin]]''' | * '''[[remote-plugin]]''' | ||
Zeile 202: | Zeile 216: | ||
bash> make all | bash> make all | ||
bash> make modules_install | bash> make modules_install | ||
− | bash> cp arch/i386/boot/bzImage /boot/vmlinuz-2.6. | + | bash> cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.23.9 |
− | bash> cp System.map /boot/System.map-2.6. | + | bash> cp System.map /boot/System.map-2.6.23.9 |
+ | bash> cd /boot | ||
+ | bash> ln -s vmlinuz-2.6.23.9 vmlinuz | ||
===/etc/lilo.conf anpassen=== | ===/etc/lilo.conf anpassen=== | ||
Zeile 216: | Zeile 232: | ||
install=text | install=text | ||
boot=/dev/hda1 | boot=/dev/hda1 | ||
− | image=/boot/vmlinuz | + | image=/boot/vmlinuz |
label=CRUX | label=CRUX | ||
root=/dev/hda1 | root=/dev/hda1 | ||
Zeile 243: | Zeile 259: | ||
Ergänzung für die '''/etc/hosts'''. | Ergänzung für die '''/etc/hosts'''. | ||
− | 193.1.193.66 | + | 193.1.193.66 download.sourceforge.net download.sf.net dl.sourceforge.net dl.sf.net |
bash> vim /etc/prt-get.conf | bash> vim /etc/prt-get.conf | ||
Zeile 249: | Zeile 265: | ||
prtdir /usr/ports/core | prtdir /usr/ports/core | ||
prtdir /usr/ports/opt | prtdir /usr/ports/opt | ||
+ | prtdir /usr/ports/xorg | ||
prtdir /usr/ports/contrib | prtdir /usr/ports/contrib | ||
</pre> | </pre> | ||
Zeile 260: | Zeile 277: | ||
bash> ports -u | bash> ports -u | ||
bash> prt-get sysup | bash> prt-get sysup | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Dann. | Dann. | ||
− | bash> prt-get depinst lynx | + | bash> prt-get depinst lynx eject screen bftpd |
====ftpserver==== | ====ftpserver==== | ||
Zeile 279: | Zeile 287: | ||
user ftp { | user ftp { | ||
#Any password fits. | #Any password fits. | ||
− | + | - ANONYMOUS_USER="no" | |
+ | + ANONYMOUS_USER="yes" | ||
} | } | ||
</pre> | </pre> | ||
Zeile 287: | Zeile 296: | ||
bash> tail -f /var/log/bftpd | bash> tail -f /var/log/bftpd | ||
− | === | + | ===VDR installation=== |
Port ergänzen. | Port ergänzen. | ||
Zeile 296: | Zeile 305: | ||
prtdir /usr/ports/core | prtdir /usr/ports/core | ||
prtdir /usr/ports/opt | prtdir /usr/ports/opt | ||
+ | |||
+ | - runscripts no | ||
+ | + runscripts yes | ||
</pre> | </pre> | ||
}} | }} | ||
<pre> | <pre> | ||
− | shell> wget http:// | + | shell> wget http://ronny-kornexl.homepage.t-online.de/crux/ports/bashy.httpup -P /etc/ports |
shell> ports -u | shell> ports -u | ||
− | shell> prt-get depinst | + | shell> prt-get depinst vdr-install |
</pre> | </pre> | ||
+ | |||
+ | ===[[LIRC]] installation=== | ||
+ | shell> prt-get depinst lirc | ||
+ | |||
+ | Für einen IR-Empfänger an COM1 sollte folgendes in der Datei stehen. | ||
+ | |||
+ | {{Box Datei|/etc/modules.conf| | ||
+ | <pre> | ||
+ | alias char-major-61 lirc_serial | ||
+ | </pre> | ||
+ | }} | ||
==Tipps== | ==Tipps== | ||
− | === | + | ===I18n=== |
− | + | 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 [[Beispielkonfiguration_-_Compaq_Deskpro_EN|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 {{wikipedia|GRUB}} muss der Kernel da wie folgt gestartet werden. | ||
+ | |||
+ | {{Box Datei|/boot/grub/menu.lst| | ||
+ | <pre> | ||
+ | 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 | ||
+ | </pre> | ||
+ | }} | ||
+ | |||
+ | Analog für {{wikipedia|LILO}}. | ||
+ | |||
+ | {{Box Datei|/etc/lilo.conf| | ||
+ | <pre> | ||
+ | apend="video=i810fb:vram:8,xres:1024,yres:768,bpp:16,hsync1:30,hsync2:60,vsync1:50,vsync2:80,accel" | ||
+ | </pre> | ||
+ | }} | ||
− | === | + | ===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 | |
==Probleme== | ==Probleme== | ||
Zeile 322: | Zeile 370: | ||
[[Kategorie:Distributionen]] | [[Kategorie:Distributionen]] | ||
− | {{i18n|Crux 2. | + | {{i18n|Crux 2.4}} |
Aktuelle Version vom 1. Januar 2009, 12:03 Uhr
Crux ist ein kleines i686-optimiertes Linux für erfahrene Linux-Benutzer.
[Bearbeiten] Installation
Quellen: http://crux.nu/Main/Handbook2-4
[Bearbeiten] ISO besorgen (~ 246 MB)
[Bearbeiten] Booten
Booten der CRUX CD, Login als root (Passwort leer lassen, mit [ENTER] bestätigen)
[Bearbeiten] Tastaturbelegung ändern
bash> loadkeys de
[Bearbeiten] Festplatte Partitionieren
bash> cfdisk /dev/hda
[Bearbeiten] SWAP vorbereiten und aktivieren
bash> mkswap /dev/hda2 bash> swapon /dev/hda2
[Bearbeiten] Partition formatieren
bash> mkreiserfs /dev/hda1
[Bearbeiten] Mounten der Partition
bash> mount /dev/hda1 /mnt
[Bearbeiten] Basis-System Installieren
bash> setup
Dialog verlassen über <OK>.
[Bearbeiten] In das neue System wechseln
bash> mount --bind /dev /mnt/dev bash> mount --bind /tmp /mnt/tmp bash> mount -t proc proc /mnt/proc bash> mount -t sysfs none /mnt/sys bash> chroot /mnt /bin/bash
[Bearbeiten] root Passwort setzen
bash> passwd
[Bearbeiten] /etc/fstab anpassen
bash> vim /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
[Bearbeiten] /etc/rc.conf anpassen
bash> vim /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)
[Bearbeiten] /etc/rc.d/net
Doku: Network-Configuration
Für dhcp, war es folgende Änderung.
bash> vim /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
[Bearbeiten] nfsserver
bash> vim /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)
[Bearbeiten] /etc/hosts.allow anpassen
bash> vim /etc/hosts.allow
# # /etc/hosts.allow # # <service>: <ip> sshd:ALL portmap:ALL lockd:ALL mountd:ALL rquotad:ALL statd:ALL # End of file
[Bearbeiten] 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-2.6.23.9 bash> cp System.map /boot/System.map-2.6.23.9 bash> cd /boot bash> ln -s vmlinuz-2.6.23.9 vmlinuz
[Bearbeiten] /etc/lilo.conf anpassen
bash> vim /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
[Bearbeiten] Reboot
CD entfernen.
bash> reboot
[Bearbeiten] 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> vim /etc/prt-get.conf
prtdir /usr/ports/core prtdir /usr/ports/opt prtdir /usr/ports/xorg prtdir /usr/ports/contrib
bash> vim /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
[Bearbeiten] ftpserver
bash> vim /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
[Bearbeiten] 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
[Bearbeiten] LIRC installation
shell> prt-get depinst lirc
Für einen IR-Empfänger an COM1 sollte folgendes in der Datei stehen.
[Bearbeiten] Tipps
[Bearbeiten] I18n
shell> sed -i 's:--disable-nls::' /usr/ports/core/bash/Pkgfile shell> prt-get update bash shell> prt-get lock bash
[Bearbeiten] 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"
[Bearbeiten] Fonts
shell> prt-get depinst xorg-font-msttcorefonts
[Bearbeiten] .bashrc
shell> echo "[ -f ~/.bashrc ] && source ~/.bashrc" >> ~/.bash_profile shell> echo "export PATH=\$PATH:/usr/local/bin" >> ~/.bashrc