Accueil > tags> Linux

Linux

Reconstruire le noyau [KuroBox]

Pour créer un noyau de 2.6.25.20Linux (non marqué) peut être utilisé dans le premier U-KuroBox Boot.
Tout d'abord, installez le programme nécessaire pour compiler.

KURO-BOX:/usr/src# aptitude install patch KURO-BOX:/usr/src# aptitude install libncurses-dev KURO-BOX:/usr/src# aptitude install bzip2 KURO-BOX:/usr/src# aptitude install module-init-tools 

Ensuite, télécharger le code source, décompressez.

 KURO-BOX:/usr/src# wget http://www.genbako.com/kurobox-sources-2.6.25.patch KURO-BOX:/usr/src# wget http://www.genbako.com/kurobox-section-mismatch2625.patch KURO-BOX:/usr/src# wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.25.20.tar.bz2 KURO-BOX:/usr/src# tar -jxpvf linux-2.6.25.20.tar.bz2 

Ensuite, appliquer un patch.

 KURO-BOX:/usr/src# cd linux-2.6.25.20 KURO-BOX:/usr/src/linux-2.6.25.20# patch -Np1 < ../kurobox-section-mismatch2625.patch KURO-BOX:/usr/src/linux-2.6.25.20# patch -Np1 < ../kurobox-sources-2.6.25.patch 

Ensuite, la préparation.

 KURO-BOX:/usr/src/linux-2.6.25.20# export ARCH=ppc KURO-BOX:/usr/src/linux-2.6.25.20# cp config_kurobox .config KURO-BOX:/usr/src/linux-2.6.25.20# make oldconfig 

Important ici pour configurer le noyau.

 KURO-BOX:/usr/src/linux-2.6.25.20# make menuconfig 
 Networking > Networking options <*> Packet socket [*] Packet socket: mmapped IO <*> Unix domain sockets < > Transformation user configuration interface [ ] Transformation sub policy support (EXPERIMENTAL) [ ] Transformation migrate database (EXPERIMENTAL) [ ] Transformation statistics (EXPERIMENTAL) <M> PF_KEY sockets [ ] PF_KEY MIGRATE (EXPERIMENTAL) (NEW) [*] TCP/IP networking [*] IP: multicasting [*] IP: advanced router Choose IP: FIB lookup algorithm (choose FIB_HASH if unsurx x [*] IP: policy routing [ ] IP: equal cost multipath (NEW) [ ] IP: verbose route monitoring (NEW) [ ] IP: kernel level autoconfiguration <M> IP: tunneling <M> IP: GRE tunnels over IP [*] IP: broadcast GRE over IP [*] IP: multicast routing [*] IP: PIM-SM version 1 support [*] IP: PIM-SM version 2 support [ ] IP: ARP daemon support (EXPERIMENTAL) [ ] IP: TCP syncookie support (disabled per default) <M> IP: AH transformation <M> IP: ESP transformation <M> IP: IPComp transformation <*> IP: IPsec transport mode <*> IP: IPsec tunnel mode <*> IP: IPsec BEET mode < > Large Receive Offload (ipv4/tcp) <*> INET: socket monitoring interface [ ] TCP: advanced congestion control ---> [*] TCP: MD5 Signature Option support (RFC2385) (EXPERIMENTAL) < > IP virtual server support (EXPERIMENTAL) (NEW) ---> < > The IPv6 protocol [ ] Security Marking [*] Network packet filtering framework (Netfilter) ---> [*] Network packet filtering debugging [*] Advanced netfilter configuration (NEW) [*] Bridged IP/ARP packets filtering (NEW) Core Netfilter Configuration ---> <M> Netfilter NFQUEUE over NFNETLINK interface <M> Netfilter LOG over NFNETLINK interface <M> Netfilter connection tracking support -*- Connection tracking flow accounting -*- Connection mark tracking support [*] Connection tracking events <M> SCTP protocol connection tracking support (EXPERIMENTAL) <M> UDP-Lite protocol connection tracking support <M> Amanda backup protocol support <M> FTP protocol support <M> H.323 protocol support <M> IRC protocol support <M> NetBIOS name service protocol support <M> PPtP protocol support <M> SANE protocol support (EXPERIMENTAL) <M> SIP protocol support <M> TFTP protocol support <M> Connection tracking netlink interface {M} Netfilter Xtables support (required for ip_tables) <M> "CLASSIFY" target support <M> "CONNMARK" target support <M> "DSCP" and "TOS" target support <M> "MARK" target support <M> "NFQUEUE" target Support <M> "NFLOG" target support <M> "NOTRACK" target support -M- "RATEEST" target support <M> "TRACE" target support <M> "TCPMSS" target support <M> "TCPOPTSTRIP" target support (EXPERIMENTAL) <M> "comment" match support <M> "connbytes" per-connection counter match support <M> "connlimit" match support" <M> "connmark" connection mark match support <M> "conntrack" connection tracking match support <M> "dccp" protocol match support <M> "dscp" and "tos" match support <M> "esp" match support <M> "helper" match support <M> "iprange" address range match support <M> "length" match support <M> "limit" match support <M> "mac" address match support <M> "mark" match support <M> "owner" match support <M> IPsec "policy" match support <M> "multiport" Multiple port match support <M> "physdev" match support <M> "pkttype" packet type match support <M> "quota" match support <M> "rateest" match support <M> "realm" match support <M> "sctp" protocol match support (EXPERIMENTAL) <M> "state" match support <M> "statistic" match support <M> "string" match support <M> "tcpmss" match support <M> "time" match support <M> "u32" match support <M> "hashlimit" match support IP: Netfilter Configuration ---> <M> IPv4 connection tracking support (required for NAT) [*] proc/sysctl compatibility with old connection tracking (NEW) <M> IP Userspace queueing via NETLINK (OBSOLETE) <M> IP tables support (required for filtering/masq/NAT) <M> "recent" match support <M> "ecn" match support <M> "ah" match support <M> "ttl" match support <M> "addrtype" address type match support <M> Packet filtering <M> REJECT target support <M> LOG target support <M> ULOG target support <M> Full NAT <M> MASQUERADE target support <M> REDIRECT target support <M> NETMAP target support <M> Basic SNMP-ALG support <M> Packet mangling <M> ECN target support <M> TTL target support <M> CLUSTERIP target support (EXPERIMENTAL) <M> raw table support (required for NOTRACK/TRACE) <M> ARP tables support <M> ARP packet filtering <M> ARP payload mangling Bridge: Netfilter Configuration ---> <M> Ethernet Bridge tables (ebtables) support <M> ebt: broute table support <M> ebt: filter table support <M> ebt: nat table support <M> ebt: 802.3 filter support <M> ebt: among filter support <M> ebt: ARP filter support <M> ebt: IP filter support <M> ebt: limit match support <M> ebt: mark filter support <M> ebt: packet type filter support <M> ebt: STP filter support <M> ebt: 802.1Q VLAN filter support <M> ebt: arp reply target support <M> ebt: dnat target support <M> ebt: mark target support <M> ebt: redirect target support <M> ebt: snat target support <M> ebt: log support <M> ebt: ulog support (OBSOLETE) < > The DCCP Protocol (EXPERIMENTAL) ---> < > The SCTP Protocol (EXPERIMENTAL) ---> < > The TIPC Protocol (EXPERIMENTAL) ---> < > Asynchronous Transfer Mode (ATM) <M> 802.1d Ethernet Bridging <M> 802.1Q VLAN Support < > DECnet Support < > ANSI/IEEE 802.2 LLC type 2 Support < > The IPX protocol < > Appletalk protocol support < > CCITT X.25 Packet Layer (EXPERIMENTAL) < > LAPB Data Link Driver (EXPERIMENTAL) < > Acorn Econet/AUN protocols (EXPERIMENTAL) < > WAN router [ ] QoS and/or fair queueing ---> Network testing ---> 
 Networking > Wireless {*} Improved wireless configuration API [*] nl80211 new netlink interface support (NEW) -*- Wireless extensions <M> Generic IEEE 802.11 Networking Stack (mac80211) Rate control algorithm selection ---> [ ] Enable packet alignment debugging (NEW) [ ] Enable debugging output (NEW) {M} Generic IEEE 802.11 Networking Stack (DEPRECATED) [ ] Enable full debugging output (NEW) -M- IEEE 802.11 WEP encryption (802.1x) < > IEEE 802.11i CCMP support (NEW) < > IEEE 802.11i TKIP encryption (NEW) < > Software MAC add-on to the IEEE 802.11 networking stack (NEW) 
 Device Drivers > Networking device support [ ] Netdevice multiple hardware queue support <M> Dummy net driver support < > Bonding driver support < > MAC-VLAN support (EXPERIMENTAL) < > EQL (serial line load balancing) support <M> Universal TUN/TAP device driver support < > Virtual ethernet pair device < > ARCnet support ---> < > PHY Device support and infrastructure ---> [*] Ethernet (10 or 100Mbit) ---> [*] Ethernet (1000 Mbit) ---> [ ] Ethernet (10000 Mbit) ---> [ ] Token Ring driver support ---> Wireless LAN ---> [ ] Wireless LAN (pre-802.11) [*] Wireless LAN (IEEE 802.11) < > Intel PRO/Wireless 2100 Network Connection (NEW) < > Intel PRO/Wireless 2200BG and 2915ABG Network Connection (NEW) < > Marvell 8xxx Libertas WLAN driver support (NEW) < > Cisco/Aironet 34X/35X/4500/4800 ISA and PCI cards (NEW) <M> Hermes chipset 802.11b support (Orinoco/Prism2/Symbol) < > Hermes in PLX9052 based PCI adaptor support (Netgear MA30 < > Hermes in TMD7160 based PCI adaptor support (NEW) < > Nortel emobility PCI adaptor support (NEW) < > Prism 2.5 PCI 802.11b adaptor support (NEW) < > Atmel at76c50x chipset 802.11b support (NEW) < > Intersil Prism GT/Duette/Indigo PCI/Cardbus (NEW) <M> USB ZD1201 based Wireless device support < > Wireless RNDIS USB support (NEW) < > Realtek 8180/8185 PCI support (NEW) <M> Realtek 8187 USB support < > ADMtek ADM8211 support (NEW) < > Softmac Prism54 support (NEW) < > Atheros 5xxx wireless cards support (NEW) < > Intel Wireless WiFi 4965AGN (NEW) < > Intel PRO/Wireless 3945ABG/BG Network Connection (NEW) <M> IEEE 802.11 for Host AP (Prism2/2.5/3 and WEP/TKIP/CCMP) [*] Support downloading firmware images with Host AP driver [*] Support for non-volatile firmware download < > Host AP driver for Prism2/2.5/3 in PLX9052 PCI adaptors < > Host AP driver for Prism2.5 PCI adaptors (NEW) < > Broadcom 43xx wireless support (mac80211 stack) (NEW) < > Broadcom 43xx-legacy wireless support (mac80211 stack) (NEW) <M> ZyDAS ZD1211/ZD1211B USB-wireless support [*] ZyDAS ZD1211 debugging < > Ralink driver support (NEW) USB Network Adapters ---> < > USB CATC NetMate-based Ethernet device support (EXPERIMENTAL) < > USB KLSI KL5USB101-based ethernet device support < > USB Pegasus/Pegasus-II based ethernet device support <M> USB RTL8150 based ethernet device support (EXPERIMENTAL) < > Multi-purpose USB Networking Framework [ ] Wan interfaces support ---> [ ] FDDI driver support [ ] HIPPI driver support (EXPERIMENTAL) < > PPP (point-to-point protocol) support < > SLIP (serial line) support [ ] Fibre Channel driver support < > Network console logging support (EXPERIMENTAL) 

Quoi qu'il en soit, enregistrer vos paramètres pour permettre à certains de la fil iptable LAN USB, IPsec, multicast, IPIP / GRE tunnel, l'interface factice, de transition, et 802.1Q VLAN.
Et enfin compiler. Pour créer un uImage ici.

 KURO-BOX:/usr/src/linux-2.6.25.20# make uImage scripts/kconfig/conf -s arch/ppc/Kconfig CHK include/linux/version.h UPD include/linux/version.h CHK include/linux/utsrelease.h UPD include/linux/utsrelease.h SYMLINK include/asm -> include/asm-ppc CC arch/ppc/kernel/asm-offsets.s ~省略~ LD .tmp_vmlinux2 KSYM .tmp_kallsyms2.S AS .tmp_kallsyms2.o LD vmlinux SYSMAP System.map SYSMAP .tmp_System.map OBJCOPY arch/ppc/boot/images/vmlinux.bin GZIP arch/ppc/boot/images/vmlinux.gz UIMAGE arch/ppc/boot/images/uImage Image Name: Linux-2.6.25.20-kurobox Created: Sat Jul 2 21:40:24 2011 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 1460604 Bytes = 1426.37 kB = 1.39 MB Load Address: 0x00000000 Entry Point: 0x00000000 Image: arch/ppc/boot/images/uImage is ready 

Continuer en toute sécurité de telle sorte que vous avez créé un uImage, fabriquer et installer le module

 KURO-BOX:/usr/src/linux-2.6.25.20# make modules KURO-BOX:/usr/src/linux-2.6.25.20# make modules_install 

Pour sauvegarder les existants pour créer uImage pour stocker

 KURO-BOX:/usr/src/linux-2.6.25.20# cd /boot KURO-BOX:/boot# ls -la drwxr-xr-x 3 root root 4096 2011-06-26 22:35 . drwxr-xr-x 21 root root 4096 2011-04-10 05:23 .. -rw-r--r-- 1 tmp-kun tmp-kun 31064 2008-05-04 22:18 .config -rw-r--r-- 1 root root 718574 2011-06-26 18:20 System.map -rw-r--r-- 1 root root 1465831 2011-06-26 22:01 uImage lrwxrwxrwx 1 tmp-kun tmp-kun 6 2011-04-10 05:25 vmlinux.UBoot -> uImage -rwxr-xr-x 1 tmp-kun tmp-kun 3063942 2008-05-04 22:18 vmlinux.bin KURO-BOX:/boot# mv System.map System.map.org KURO-BOX:/boot# mv uImage uImage.org 

UImage et la copie que vous avez créé.

 KURO-BOX:/boot# cp -p /usr/src/linux-2.6.25.20/arch/ppc/boot/images/uImage /boot KURO-BOX:/boot# cp -p /usr/src/linux-2.6.25.20/System.map /boot 

Finalement, comme celui-ci

 KURO-BOX:/boot# ls -la drwxr-xr-x 3 root root 4096 2011-06-26 22:35 . drwxr-xr-x 21 root root 4096 2011-04-10 05:23 .. -rw-r--r-- 1 tmp-kun tmp-kun 31064 2008-05-04 22:18 .config -rw-r--r-- 1 root root 718574 2011-06-26 18:20 System.map -rw-r--r-- 1 tmp-kun tmp-kun 694437 2008-05-04 22:18 System.map.org -rw-r--r-- 1 root root 1465831 2011-06-26 22:01 uImage -rw-r--r-- 1 tmp-kun tmp-kun 1432414 2008-05-04 22:18 uImage.org lrwxrwxrwx 1 tmp-kun tmp-kun 6 2011-04-10 05:25 vmlinux.UBoot -> uImage -rwxr-xr-x 1 tmp-kun tmp-kun 3063942 2008-05-04 22:18 vmlinux.bin 

Ce, après un redémarrage, contrôle démarrage.

 KURO-BOX:~# uname -a Linux KURO-BOX 2.6.25.20-kurobox #3 Sun Jun 26 21:59:59 JST 2011 ppc GNU/Linux 

Pour vérifier que la version du noyau a été mis à jour

Créer mkimage [KuroBox]

Pour compiler mkimage afin de reconstruire le noyau sous la forme d'U-Boot peut être utilisé dans

KuroBox est créé à partir de la source à 1.1.4, car ils contiennent de courant U-Boot1.1.4.
Tout d'abord, télécharger le code source, décompressez

 KURO-BOX:~# cd /usr/src/ KURO-BOX:/usr/src# wget http://prdownloads.sourceforge.net/u-boot/u-boot-1.1.4.tar.bz2 KURO-BOX:/usr/src# tar -xjvf u-boot-1.1.4.tar.bz2 KURO-BOX:/usr/src# cd u-boot-1.1.4 

Pour stocker le chemin actuel, car il semble que, parfois, faire référence à la TOPDIR $, alors.

 KURO-BOX:/usr/src/u-boot-1.1.4# export TOPDIR=`pwd` KURO-BOX:/usr/src/u-boot-1.1.4# echo $TOPDIR /usr/src/u-boot-1.1.4 

J'ai besoin de ce temps pour fabriquer des outils afin répertoire mkimage seulement.

 KURO-BOX:/usr/src/u-boot-1.1.4# cd tools KURO-BOX:/usr/src/u-boot-1.1.4/tools# make mkimage ln -s ../common/environment.c environment.c ln -s ../lib_generic/crc32.c crc32.c gcc -M -Wall -pedantic -idirafter ../include -DTEXT_BASE= -DUSE_HOSTCC environment.c img2srec.c mkimage.c crc32.c envcrc.c gen_eth_addr.c bmp_logo.c > .depend environment.c:28:20: error: config.h: No such file or directory envcrc.c:32:20: error: config.h: No such file or directory gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE= -DUSE_HOSTCC -O -c mkimage.c gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE= -DUSE_HOSTCC -O -c crc32.c gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE= -DUSE_HOSTCC -O -o mkimage mkimage.o crc32.o strip mkimage 

U-Boot-enabled noyau est créé, vous pouvez commencer sans aucun problème cette erreur, c'est qu'il mkimage.

 KURO-BOX:/usr/src/u-boot-1.1.4/tools# cp -p mkimage /usr/local/bin KURO-BOX:/usr/src/u-boot-1.1.4/tools# which mkimage /usr/local/bin/mkimage 

Mkimage est créé, puis copiés à l'emplacement et de compléter votre chemin comme / usr / local / bin.

Installation de la GCC [KuroBox]

Devez installer le CCG, et le système d'installation par défaut deux versions de 3,4 (4,3 système)

 KURO-BOX:~# aptitude install gcc gcc-3.4 

· Néanmoins, comme indiqué dans les update-alternatives pour passer Lorsque vous avez terminé l'installation, j'ai vérifié avec la commande:

 KURO-BOX:~# update-alternatives --display gcc No alternatives for gcc. 

Pas comme. Essayez de mettre tout ce qui peut être réglé avec la commande suivante, et peuvent déjà exister sous un nom différent

 KURO-BOX:~# update-alternatives --all 

Yappari pas aimé.
Donc, (. Was "gcc" et le nom du groupe) ajouter manuellement

 KURO-BOX:~# update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-3.4 34 --slave /usr/bin/cpp cpp /usr/bin/cpp-3.4 --slave /usr/bin/gcov gcov /usr/bin/gcov-3.4 KURO-BOX:~# update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.3 43 --slave /usr/bin/cpp cpp /usr/bin/cpp-4.3 --slave /usr/bin/gcov gcov /usr/bin/gcov-4.3 

Configuré pour utiliser gcc-3.4 par défaut

 KURO-BOX:~# update-alternatives --config gcc There are 2 alternatives which provide `gcc'. Selection Alternative ----------------------------------------------- * 1 /usr/bin/gcc-3.4 + 2 /usr/bin/gcc-4.3 Press enter to keep the default[*], or type selection number: 1 Using '/usr/bin/gcc-3.4' to provide 'gcc'. 

Initialisation de la KuroBox [KuroBox]

Notez quand je suis allé à réinstaller et formater le disque dur après transformé en un U-Boot (sans marque), car l'original avait été KuroBox gauche.

  1. Ce format de la <br /> HDD intentionnellement retirer le disque dur a été réalisée pour supprimer la partition avec Windows7.
    KuroBox retour à le formatage est terminé, assembler.
  2. U-Boot mode de commande pour confirmer la situation et commencer à nc
    D'un PC sous Windows nc , à condition (pour câble droit sur ​​l'interrupteur et arrière) avec un boîtier de connexion câble croisé et le général
    198.168.11.149 est réglé sur l'adresse IP du PC sous Windows, accédez au dossier de nc à partir d'une invite de commande, exécutez la commande suivante pour démarrer

     nc -v -v -n -u -s 192.168.11.149 -p 6666 192.168.11.150 6666 

    Doit être affiché comme illustré ci-dessous pour voir l'état pour ainsi 192.168.11.150 Maintenant, lorsque vous démarrez KuroBox

     U-Boot 1.1.4 LiSt 2.1.0 (Sep 21 2006 - 00:22:56) LinkStation / KuroBox CPU: MPC8245 Revision 1.4 at 196.608 MHz: 16 kB I-Cache 16 kB D-Cache DRAM: 64 MB FLASH: 4 MB ~省略~ Boot in 10 seconds ('s' to stop)... 

    Entrez le [s] ici, entrer dans le mode de commande de l'U-Boot.

     Boot in 7 seconds ('s' to stop)... s => 
  3. EM mode
     => run writeng Un-Protected 1 sectors Flash erase: first = 55 @ 0xfff70000 last = 55 @ 0xfff70000 Flash erase: Done Erased 1 sectors Copy to Flash... done => run emboot ## Booting image at ffc00000 ... ******* Product Information ******* [#k0621bb4] ---------------------------------- Product Name: KURO-BOX(IETSUNA) VER: 1.02 Date: 2004/4/16 11:46:41 ---------------------------------- Verifying checksum... OK Uncompressing kernel...done. Loading Ramdisk at 0x03C67000, end 0x03E6E647 ... OK Booting the kernel ~省略~ 

    Donc, aurait dû se leva en mode EM dans ce domaine, retirez le câble croisé pour connecter au réseau local, le DHCP est en cours d'exécution.

  4. Vérifiez l'adresse IP a été obtenue en KuroBox DHCP, procédez de la connexion en telnet.

     Kroutoshikou KURO-BOX (IETSUNA) kernel 2.4.17_kuro-box on ppc KURO-BOX login: root Password: kuro 
  5. Créer une partition
    Supprimer le disque dur toute la région

     root@KURO-BOX:~# /sbin/mfdisk -e /dev/hda delete partition 1 delete partition 2 delete partition 3 delete partition 4 create partitions... deleate all partitions. The partition table has been altered! Syncing disks. 

    (: 4 Go, pour la deuxième région SWAP: 256 Mo, la troisième région: la première aire de repos), suivie par le partitionnement

     root@KURO-BOX:~# /sbin/mfdisk -c /dev/hda Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-15798, default 1): [enter] Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-15798, default 15798): +4000M Command (m for help): n Command action  e extended  p primary partition (1-4) p Partition number (1-4): 2 First cylinder (8128-15798, default 8128): [enter] Using default value 8128 Last cylinder or +size or +sizeM or +sizeK (8128-15798, default 15798): +256M Command (m for help): n Command action  e extended  p primary partition (1-4) p Partition number (1-4): 3 First cylinder (8649-15798, default 8649): [enter] Using default value 8649 Last cylinder or +size or +sizeM or +sizeK (8649-15798, default 15798): [enter] Using default value 15798 Command (m for help): t Partition number (1-4): 2 Hex code (type L to list codes): 82 Changed system type of partition 2 to 82 (Linux swap) Command (m for help): p Disk /dev/hda: 16 heads, 63 sectors, 15798 cylinders Units = cylinders of 1008 * 512 bytes Device Boot Start  End  Blocks Id System /dev/hda1     1  8127 4095976+ 83 Linux /dev/hda2    8128  8648  262584 82 Linux swap /dev/hda3   8649 15798 3603600 83 Linux Command (m for help): w The partition table has been altered! Syncing disks. 
  6. <br Premier format /> la première région (LinuxOS) de la zone a été créée

     root@KURO-BOX:~# /sbin/mke2fs -j /dev/hda1 mke2fs 1.22, 22-Jun-2001 for EXT2 FS 0.5b, 95/08/09 Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 512000 inodes, 1023994 blocks 51199 blocks (5.00%) reserved for the super user First data block=0 32 block groups 32768 blocks per group, 32768 fragments per group 16000 inodes per group Superblock backups stored on blocks:    32768, 98304, 163840, 229376, 294912, 819200, 884736 Writing inode tables: done Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 21 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. 

    Puis la deuxième région (Swap)

     root@KURO-BOX:~# /sbin/mkswap /dev/hda2 Setting up swapspace version 1, size = 268881920 bytes 

    Enfin, la troisième région (données)

     root@KURO-BOX:~# /sbin/mke2fs -j -m 0 /dev/hda3 mke2fs 1.22, 22-Jun-2001 for EXT2 FS 0.5b, 95/08/09 Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 450688 inodes, 900900 blocks 0 blocks (0.00%) reserved for the super user First data block=0 28 block groups 32768 blocks per group, 32768 fragments per group 16096 inodes per group Superblock backups stored on blocks:    32768, 98304, 163840, 229376, 294912, 819200, 884736 Writing inode tables: done Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 28 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. 
  7. Montez la zone a été créée
     root@KURO-BOX:~# mount -t ext3 /dev/hda1 /mnt root@KURO-BOX:~# mount -t ext3 /dev/hda3 /mnt2 root@KURO-BOX:~# df -h Filesystem Size  Used Available Use% Mounted on /dev/ram0  9.5M  5.0M    4.5M  53% / /dev/hda1  3.8G 32.1M    3.6G  1% /mnt /dev/hda3  3.4G 32.1M    3.4G  1% /mnt2 
  8. Le transfert de données OS
    FTP (FileZilla pour sauver trois méthodes suivantes pour créer un dossier dans u-boot (/ dev/hda3) / mnt2 les fichiers suivants, etc)

    Après avoir vérifié le transfert.

     root@KURO-BOX:~# ls /mnt2/u-boot debian-lenny-kuroBOX-20090317.tgz kernelimage-2.6.20-kuroBOX-uImage.tgz modules-2.6.20-kuroBOX.tgz 
  9. Installation du système d'exploitation
    Elargi à (/ mnt) / dev/hda1 l'Debian5.0 (Lenny)

     root@KURO-BOX:~# cd /mnt root@KURO-BOX:~# pwd /mnt root@KURO-BOX:~# tar xvzf /mnt2/u-boot/debian-lenny-kuroBOX-20090317.tgz ~省略~ 

    Vérification / (/ mnt) dev/hda1

     root@KURO-BOX:~# ls /mnt bin home mnt sbin tmp boot lib opt selinux usr dev lost+found proc srv var etc media root sys 

    Elargi à (/ mnt / boot) / dev/hda1/boot l'image du noyau (2.6.20)

     root@KURO-BOX:~# tar xvfz /mnt2/u-boot/kernelimage-2.6.20-kuroBOX-uImage.tgz .config System.map vmlinux.UBoot uImage 

    / Vérifiez le contenu de la chaussure

     root@KURO-BOX:~# ls /mnt/boot System.map uImage vmlinux.UBoot 

    Elargi à (/ mnt / lib / modules) / dev/hda1/lib/modules le module du noyau (2.6.20)

     root@KURO-BOX:~# cd /mnt/lib/modules root@KURO-BOX:~# pwd /mnt/lib/modules root@KURO-BOX:~# tar xvzf /mnt2/u-boot/modules-2.6.20-kuroBOX.tgz ~省略~ 

    / Assurez-vous que vous avez est lib/modules/2.6.20-kurobox

     root@KURO-BOX:~# ls 2.6.20-kurobox root@KURO-BOX:~# ls 2.6.20-kurobox build modules.dep modules.pcimap kernel modules.ieee1394map modules.symbols modules.alias modules.inputmap modules.usbmap modules.ccwmap modules.isapnpmap source 
  10. vous définissez la configuration du réseau avant de redémarrer les paramètres réseau <br /> lenny, étant donné une adresse IP fixe juste au cas où

     root@KURO-BOX:~# vi /mnt/etc/network/interfaces iface eth0 inet static address 192.168.0.100 network 192.168.0.0 netmask 255.255.255.0 broadcast 192.168.0.255 gateway 192.168.0.1 iface lo inet loopback auto eth0 lo 
     root@KURO-BOX:~# vi /mnt/etc/hosts 127.0.0.1 localhost 192.168.0.100 KURO-BOX 
     root@KURO-BOX:~# vi /mnt/etc/hosts.allow #ALL: 192.168.0.0/255.255.0.0 #ALL: 127.0.0.1 ALL : ALL : ALLOW 
     root@KURO-BOX:~# vi /mnt/etc/resolv.conf search nameserver 192.168.0.1 
  11. fixer les paramètres de fstab à votre environnement

     root@KURO-BOX:~# vi /mnt/etc/fstab # /etc/fstab: static file system information. # # proc /proc proc defaults 0 0 /dev/hda2 none swap sw 0 0 /dev/ hda1 / ext3 defaults,noatime,errors=remount-ro 0 0 /dev/ hda3 /mnt ext3 defaults,noatime 0 0   root@KURO-BOX:~# vi /mnt/etc/fstab # /etc/fstab: static file system information. # # proc /proc proc defaults 0 0 /dev/hda2 none swap sw 0 0 /dev/ hda1 / ext3 defaults,noatime,errors=remount-ro 0 0 /dev/ hda3 /mnt ext3 defaults,noatime 0 0  root@KURO-BOX:~# vi /mnt/etc/fstab # /etc/fstab: static file system information. # # proc /proc proc defaults 0 0 /dev/hda2 none swap sw 0 0 /dev/ hda1 / ext3 defaults,noatime,errors=remount-ro 0 0 /dev/ hda3 /mnt ext3 defaults,noatime 0 0  root@KURO-BOX:~# vi /mnt/etc/fstab # /etc/fstab: static file system information. # # proc /proc proc defaults 0 0 /dev/hda2 none swap sw 0 0 /dev/ hda1 / ext3 defaults,noatime,errors=remount-ro 0 0 /dev/ hda3 /mnt ext3 defaults,noatime 0 0 
  12. Redémarrez par l'EM
    Ecrire la commande se termine le mode EM

     root@KURO-BOX:~# echo -n "OKOK" > /dev/fl3 

    Vérifiez que la commande peut être écrite

     root@KURO-BOX:~# dd if=/dev/fl3 bs=4 count=1 OKOK1+0 records in 1+0 records out 4 bytes transferred in 0.006583 seconds (608 bytes/sec) 

    Recommencer

     root@KURO-BOX:~# reboot 
  13. Contrôle de démarrage de Debian5.0 Lenny
    Veiller à ce que la racine après la connexion à devenir connecté à l'IP qui a déjà été fixé par telnet

     Debian GNU/Linux 5.0 KURO-BOX login: tmp-kun Password: tmp-kun ~省略~ tmp-kun@KURO-BOX:~$ suパスワード: root KURO-BOX:/home/tmp-kun# 

Lubuntu 11,04 pour installer le C7 Dynabook

Lubuntu-Lxlauncher


Installez l'édition Ubuntu Netbook 10.10 la dernière fois , mais était, était sorti changé parce que la convivialité est un problème avec le travail plus lourd.
Lubuntu est quelque chose que vous changez de bureau Gnome d'Ubuntu LXDE base.
Pour utiliser PC à une décennie de la faim éprouvée LXDE léger, puis transformé en un élégant PC un peu différent des vieux PC Pourtant, il contient également servir Launcher netbook.

Pour fournir un fichier tel que décrit ci-dessous, parce que vous n'avez pas redémarré l'Lxlauncher auto-boot.
Config / Accueil / <username> /. / Autostart / lxlauncher.desktop

 [Desktop Entry] Encoding=UTF-8 Name=Lxlauncher Comment=LXDE launcher Exec=/usr/bin/lxlauncher Terminal=false Type=Application Icon= Categories=Application;System; 

Pour installer le Ubuntu Netbook édition 10,10 Dynabook C7

Installer le Ubuntu Netbook édition 10,04 dernière note parce que il a été nécessaire de chercher à installer le Netbook Edition Ubuntu 10.10 à nouveau et il fallait revenir à l'WindowsXP, mais après cela a été fait manuellement, les paramètres de l'écran.

Il a été l'objet de xorg.conf n'est créé <br /> CyberALADDiN-T chipset fabriqué par Trident

  1. Pour lancer gedit depuis le terminal
     $ gedit ~/xorg.conf 
  2. Copiez et collez le contenu de ce qui suit

     Section "Monitor" Identifier "Generic Monitor" HorizSync 28-51 VertRefresh 43-60 EndSection Section "Screen" Identifier "Default Screen" Monitor "Generic Monitor" SubSection "Display" Depth 24 Modes "1024x768" "800x600" "640x480" EndSubSection EndSection 
  3. Copié à l'xorg.conf / etc/X11 pour sauver la
     sudo cp ~/xorg.conf /etc/X11/ 

Reconstruire le noyau dans Ubuntu 10.04

Lorsque vous compilez le noyau de l'Enfer sur Ubuntu,

  1. / Bin / sh: Argument list too long

Mc avec une erreur qui n'a pas été achevé.
J'espère que si vous pouvez diviser avec xargs, ne savent pas comment utiliser Imaichi.
«Utilisation de la m mkfile dans la commande mk, parce que la scission au sein du script très bien par son contenu, sont écrites dans un autre fichier à lire dans un fichier séparé, mais je voudrais vous êtes de passage dans un argument à lui, ce J'espère que je peux utiliser les xargs comment, si?

A décidé d'augmenter la valeur de lui-même ne peut pas être aidé parce ARG_MAX.

L'installation du package nécessaire pour reconstruire le noyau

  1. $ Sudo apt-get install build-essential
  2. $ Sudo apt-get install kernel-package libncurses5-dev libqt3-mt-dev

L'étendre à installer les sources du noyau

  1. $ Sudo apt-get install linux-source-2.6.32
  2. $ Cd / usr / src
  3. $ Sudo tar xvjf linux-source-2.6.32.tar.bz2

Les changements dans la source

  1. Ouvrir / usr/src/linux-source-2.6.32/include/linux/limits.h, augmenter la ARG_MAX

. Créer un fichier de configuration

  1. $ Cd linux-source-2.6.32
  2. $ Sudo cp / boot/config-2.6.32-23-generic. Config
  3. $ Sudo make oldconfig

Les modifications de paramètres

  1. $ Sudo make menuconfig
 Processor type and features ---> Processor familly ---> *Coer 2/newer Xeon Timer frequency ---> *300 HZ Device Drivers ---> ATA/ATAPI/MFM/RLL support ---> *generic ATA/ATAPI disk support Device Drivers ---> ATA/ATAPI/MFM/RLL support ---> *ATA disk support 

Enregistrez les modifications dans la configuration enregistrer dans un fichier suppléant, tels que de changer le.
Ouvrez le fichier à l'intérieur. Config a été achevée,
Vérifiez que vous êtes fait pour "y" au lieu de "M" est la suivante.

  • CONFIG_IDE
  • CONFIG_SCSI
  • CONFIG_EXT3

(Pour mettre en place que pour cinq ans, afin quatre CPU) paramètre de compilation parallèle

  1. $ Export Sudo CONCURRENCY_LEVEL = 5

Reconstruire le noyau

  1. $ Sudo make-kpkg clean
  2. $ Sudo make-kpkg-initrd-revision = 20100710 kernel_headers kernel_image

. Installer deb dpkg peut être si

  1. $ Cd .. /
  2. $ Sudo dpkg-i linux-image-2.6.32. ***** 20100710_i386.deb
  3. $ Sudo dpkg-i linux-headers-2.6.32. ***** 20100710_i386.deb

Recommencer

  1. $ Sudo shutdown-r now

Ne démarre pas · · ·

 Kernel Panic:VFS:*** 

Une erreur qui, pour l'instant, contient un menu de GRUB 2, puis maintenez la touche Maj enfoncée après un redémarrage,
Ne pas avoir un problème comme la section de l'initrd et mettre en place et commencer à la version que vous comparer tout fonctionnait très bien.
la création de initrd

  1. $ Cd / boot /
  2. $ Sudo mkinitramfs-o initrd.img-2.6.32. ***** 02/06/32

Contient menu de GRUB 2 à nouveau sur la touche Maj après le redémarrage,
A la fin de passer en mode édition en appuyant sur le "e" dans la section du noyau de la reconstruction

 initrd /boot/initrd.img-2.6.32.***** 

Comme pour ajouter, vous pouvez commencer quelque chose avec Ctrl + x.
Je doute que le changement de Grub2 est inutile à moins que cela se fait manuellement · · ·.
Ensuite, vérifiez la valeur de la ARG_MAX désiré
Getconf $ ARG_MAX
J'ai vérifié dans ne change pas · · ·.
Vouliez-vous dire si lourd et si le nouveau noyau
$ Sudo ulimit-Ss
J'ai exécuté l', a augmenté.
Après tout, comme je suis contente de ne pas compiler le noyau,
Fabriqué cette fois pour enlever le noyau, utilisez le noyau avait été utilisé jusqu'à présent.

L'augmentation de l'erreur de compilation du noyau se fera enfer.
Essayez de trouver une autre façon parce que c'est, c'est déjà dans la mauvaise direction que vous travaillez beaucoup.

Dossiers partagés dans VirtualBox sous Ubuntu

共有フォルダ設定

  1. Installation de l'extension
    1. Montez le CD d'installation dans les "Guest Additions" Installer "périphériques" → Le menu de la fenêtre de la machine virtuelle
    2. $ Cd / media/VBOXADDITIONS_3.2.4_62467 /
    3. $ Sudo sh-VBoxLinuxAdditions x86.run
  2. Mise en place des dossiers partagés
    1. Définissez un dossier partagé dans le "Dossier ..." partagé "dispositif" → le menu de la fenêtre de la machine virtuelle
    2. $ Sudu mkdir / mnt / share
      (Créé sur lequel monter)
    3. Partager $ Sudo mount.vboxsf / mnt / share /
      (Monter le dossier partagé)

Outils de Linux, vous pouvez utiliser pour récupérer

Notez les outils Linux, vous pouvez utiliser lorsque le système ne démarre pas pour une variété de raisons.

Trinity Rescue Kit
Très bon mais je CUI-base.

SystemRescueCd
FTP peut également être manipulée à l'essai et le disque dur dans l'interface graphique.

Rescue CD F-Secure
Haute performance de fichiers, tels que la vérification et l'intégrité de réparation de votre demande.

SafeCopy
Pouvez également copier l'erreur disque s'est produite.

Divers OS

Prenez note de l'OS on s'attend à répéter, car à oublier d'examiner chaque fois que je serais ravi de jouer avec de nombreux types de système d'exploitation de toute façon, je vais laisser à divers endroits ·.

  • Noyau monolithique
    • BSD
      • FreeBSD
        Mogul de BSD ne peut pas oublier
      • OpenSolaris
        En parlant de Solaris
    • Linux
      • INSERT
        Linux pour le sauvetage des données
      • PuppyLinux
        古いPCでも軽快に動くことを目的としたLinux
      • GentooLinux
        玄人向けのLinux
      • EcoLinux
        日本人の大学生ががんばってるLinix
      • Elive
        きれいで動きのあるGUIを提供するLinux
      • Chromium OS
        Googleの作っているLinuxベースのWebOS
      • Joli OS
        Jolicloudの作っているUbuntu LTSベースのネットブック用OS
      • Splashtop OS
        MicrosoftがDeviceVM社と組み、Linuxをベースとした軽量Webアクセス用OS
      • Damn Vulnerable Linux
        無防備極まるセキュリティ学習用Linux
      • BackTrack
        セキュリティチェック用Linux
    • Amiga
      • icaros desktop
        AmigaOS3.1 互換 AROSのディストリビューション
      • Syllable
        AtheOSの派生OS
    • MS-DOS
      • FreeDOS
        MS-DOS互換OS
  • マイクロカーネル
    • Minix
      UNIX風教育用OS
    • BeOS
      • Haiku
        今はなきBeOSの思想を引き継いだOS
    • L4
      マイクロカーネルらしさを追求した第二世代のマイクロカーネル
    • MonaOS
      2ちゃんねる発
    • MikeOS
      OSの勉強にもってこい
    • ナノカーネル
      • JNode
        ほとんどすべてをJavaで作ったOS
  • ハイブリッドカーネル
    • ReactOS
      WindowsNT互換OS
    • Plan9
      次世代Unixを志した分散OS

OS/2 や NetWareはないんだよなぁ・・・
まぁ、個人で使うことなんてないようなOSなんだけれど。

1 2

ホーム > タグ > Linux

Rechercher
Nourrir
Traduction
Japanese flagItalian flagKorean flagChinese (Simplified) flagChinese (Traditional) flagEnglish flagGerman flagFrench flagRussian flagVietnamese flagThai flag

ページの上部に戻る