Crux 2.4

Aus VDR Wiki
Version vom 1. Januar 2009, 13:03 Uhr von Anonymous (Diskussion | Beiträge)

(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

Crux ist ein kleines i686-optimiertes Linux für erfahrene Linux-Benutzer.

Inhaltsverzeichnis

Installation

Quellen: http://crux.nu/Main/Handbook2-4

ISO besorgen (~ 246 MB)

http://crux.nu/Main/Download

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> 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

root Passwort setzen

bash> passwd

/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

/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)

/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

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)

/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

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

/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

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> 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

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

VDR installation

Port ergänzen.

Datei
/etc/prt-get.conf
  # 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.

Datei
/etc/modules.conf
alias char-major-61 lirc_serial


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 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.

Datei
/boot/grub/menu.lst
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.

Datei
/etc/lilo.conf
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

Probleme

Links

  1. Homepage
In anderen Sprachen