<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Linux-Noob Forums - Gentoo]]></title>
		<link>https://www.linux-noob.com/forums/</link>
		<description><![CDATA[Linux-Noob Forums - https://www.linux-noob.com/forums]]></description>
		<pubDate>Wed, 29 Apr 2026 20:18:14 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Grub wont boot after a kernel upgrade]]></title>
			<link>https://www.linux-noob.com/forums/thread-424.html</link>
			<pubDate>Tue, 28 Sep 2010 10:50:43 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=2079">EzMe</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-424.html</guid>
			<description><![CDATA[<br />
Hi all,<br />
<br />
 <br />
<br />
I've got a weird problem with my gentooserver after upgrading my kernel with genkernel. For some reason it wont boot anymore. When i try to boot it says: <br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>Grub loading Stage1.5<br />
Grub loading, please wait...</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Then grub hangs up indefinetely.<br />
<br />
 <br />
<br />
So, i booted from a gentoo liveCD, setted up my network and sshd and logged into it. After that: <br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>swapon /dev/sda2<br />
mount /dev/sda3 /mnt/gentoo<br />
mount /dev/sda1 /mnt/gentoo/boot<br />
mount -t proc none /mnt/gentoo/proc<br />
mount -o bind /dev /mnt/gentoo/dev<br />
cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
then chroot to the system<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>chroot /mnt/gentoo /bin/bash<br />
env-update<br />
source /etc/profile<br />
export PS1="(chroot) &#36;PS1"</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
After that i updated /etc/mtab sinds Grub needs this: <br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>cp /proc/mounts /etc/mtab</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
My partition table:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>(chroot) livecd / # fdisk -l<br />
<br />
Disk /dev/sda: 33.8 GB, 33820286976 bytes<br />
255 heads, 63 sectors/track, 4111 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Sector size (logical/physical): 512 bytes / 512 bytes<br />
I/O size (minimum/optimal): 512 bytes / 512 bytes<br />
Disk identifier: 0x277b277a<br />
<br />
&nbsp;&nbsp;Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocks&nbsp;&nbsp; Id&nbsp;&nbsp;System<br />
/dev/sda1&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 40131&nbsp;&nbsp; 83&nbsp;&nbsp;Linux<br />
/dev/sda2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;37&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;257040&nbsp;&nbsp; 82&nbsp;&nbsp;Linux swap / Solaris<br />
/dev/sda3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;38&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4111&nbsp;&nbsp;&nbsp;&nbsp;32724405&nbsp;&nbsp; 83&nbsp;&nbsp;Linux<br />
<br />
Disk /dev/sdb: 500.1 GB, 500107862016 bytes<br />
255 heads, 63 sectors/track, 60801 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Sector size (logical/physical): 512 bytes / 512 bytes<br />
I/O size (minimum/optimal): 512 bytes / 512 bytes<br />
Disk identifier: 0x00000000<br />
<br />
Disk /dev/sdb doesn't contain a valid partition table<br />
(chroot) livecd / #</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
After that i tried reinstalling Grub: <br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>(chroot) livecd grub # grub-install /dev/sda<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Installation finished. No error reported.<br />
This is the contents of the device map /boot/grub/device.map.<br />
Check if this is correct or not. If any of the lines is incorrect,<br />
fix it and re-run the script `grub-install'.<br />
<br />
(fd0)&nbsp;&nbsp; /dev/fd0<br />
(hd0)&nbsp;&nbsp; /dev/sda<br />
(hd1)&nbsp;&nbsp; /dev/sdb<br />
(chroot) livecd grub #</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
 <br />
<br />
(/boot is on sda1) <br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>grub<br />
grub&gt; root (hd0,0)<br />
Filesystem type is ext2fs, partition type 0x83<br />
<br />
grub&gt; setup (hd0)<br />
Checking if "/boot/grub/stage1" exists... yes<br />
Checking if "/boot/grub/stage2" exists... yes<br />
Checking if "/boot/grub/e2fs_stage1_5" exists... yes<br />
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...&nbsp;&nbsp;17 sectors are embedded.<br />
succeeded<br />
Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,0)/boot/grub/stage2<br />
/boot/grub/menu.lst"... succeeded<br />
Done.<br />
<br />
grub&gt; quit</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
I wiped my MBR to make sure that the new info get's installed:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>dd if=/dev/zero of=/dev/sda bs=446 count=1</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
But still the same problem.<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>(chroot) livecd / # grub --version<br />
grub (GNU GRUB 0.97)</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>(chroot) livecd / # fdisk -l<br />
<br />
Disk /dev/sda: 33.8 GB, 33820286976 bytes<br />
255 heads, 63 sectors/track, 4111 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Sector size (logical/physical): 512 bytes / 512 bytes<br />
I/O size (minimum/optimal): 512 bytes / 512 bytes<br />
Disk identifier: 0x00000000<br />
<br />
&nbsp;&nbsp;Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocks&nbsp;&nbsp; Id&nbsp;&nbsp;System<br />
/dev/sda1&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 40131&nbsp;&nbsp; 83&nbsp;&nbsp;Linux<br />
/dev/sda2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;37&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;257040&nbsp;&nbsp; 82&nbsp;&nbsp;Linux swap / Solaris<br />
/dev/sda3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;38&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4111&nbsp;&nbsp;&nbsp;&nbsp;32724405&nbsp;&nbsp; 83&nbsp;&nbsp;Linux<br />
<br />
Disk /dev/sdb: 500.1 GB, 500107862016 bytes<br />
255 heads, 63 sectors/track, 60801 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Sector size (logical/physical): 512 bytes / 512 bytes<br />
I/O size (minimum/optimal): 512 bytes / 512 bytes<br />
Disk identifier: 0x00000000<br />
<br />
Disk /dev/sdb doesn't contain a valid partition table</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
/boot<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>total 7867<br />
drwxr-xr-x&nbsp;&nbsp;4 root root&nbsp;&nbsp;&nbsp;&nbsp;1024 Sep 27 14:46 .<br />
drwxr-xr-x 20 root root&nbsp;&nbsp;&nbsp;&nbsp;4096 Mar 26&nbsp;&nbsp;2010 ..<br />
-rw-r--r--&nbsp;&nbsp;1 root root 1444015 Sep 27 14:22 System.map-genkernel-x86-2.6.34-gentoo-r6<br />
drwxr-xr-x&nbsp;&nbsp;2 root root&nbsp;&nbsp;&nbsp;&nbsp;1024 Sep 27 14:24 grub<br />
-rw-r--r--&nbsp;&nbsp;1 root root 3401991 Sep 27 14:22 initramfs-genkernel-x86-2.6.34-gentoo-r6<br />
-rw-r--r--&nbsp;&nbsp;1 root root 3154656 Sep 27 14:23 kernel-genkernel-x86-2.6.34-gentoo-r6<br />
drwx------&nbsp;&nbsp;2 root root&nbsp;&nbsp; 12288 Sep 27 14:12 lost+found</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
/boot/grub<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>total 231<br />
drwxr-xr-x 2 root root&nbsp;&nbsp; 1024 Sep 27 14:24 .<br />
drwxr-xr-x 4 root root&nbsp;&nbsp; 1024 Sep 27 14:46 ..<br />
-rw-r--r-- 1 root root&nbsp;&nbsp;&nbsp;&nbsp;197 Sep 27 14:18 default<br />
-rw-r--r-- 1 root root&nbsp;&nbsp;&nbsp;&nbsp; 45 Sep 27 14:18 device.map<br />
-rw-r--r-- 1 root root&nbsp;&nbsp; 8692 Sep 27 14:18 e2fs_stage1_5<br />
-rw-r--r-- 1 root root&nbsp;&nbsp; 7820 Sep 27 14:18 fat_stage1_5<br />
-rw-r--r-- 1 root root&nbsp;&nbsp; 7088 Sep 27 14:18 ffs_stage1_5<br />
-rw-r--r-- 1 root root&nbsp;&nbsp;&nbsp;&nbsp;271 Sep 27 14:26 grub.conf<br />
-rw-r--r-- 1 root root&nbsp;&nbsp; 7088 Sep 27 14:18 iso9660_stage1_5<br />
-rw-r--r-- 1 root root&nbsp;&nbsp; 8676 Sep 27 14:18 jfs_stage1_5<br />
lrwxrwxrwx 1 root root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;9 Sep 27 14:20 menu.lst -&gt; grub.conf<br />
-rw-r--r-- 1 root root&nbsp;&nbsp; 7292 Sep 27 14:18 minix_stage1_5<br />
-rw-r--r-- 1 root root&nbsp;&nbsp; 9684 Sep 27 14:18 reiserfs_stage1_5<br />
-rw-r--r-- 1 root root&nbsp;&nbsp;33856 Sep 27 14:24 splash.xpm.gz<br />
-rw-r--r-- 1 root root&nbsp;&nbsp;&nbsp;&nbsp;512 Sep 27 14:18 stage1<br />
-rw-r--r-- 1 root root 107808 Sep 27 14:18 stage2<br />
-rw-r--r-- 1 root root&nbsp;&nbsp; 7344 Sep 27 14:18 ufs2_stage1_5<br />
-rw-r--r-- 1 root root&nbsp;&nbsp; 6692 Sep 27 14:18 vstafs_stage1_5<br />
-rw-r--r-- 1 root root&nbsp;&nbsp; 9524 Sep 27 14:18 xfs_stage1_5</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
grub.conf<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>default 0<br />
timeout 10<br />
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz<br />
<br />
title Gentoo Linux 2.6.34-gentoo-r6<br />
root (hd0,0)<br />
kernel /boot/kernel-genkernel-x86-2.6.34-gentoo-r6 root=/dev/ram0 init=/linuxrc real_root=/dev/sda3<br />
initrd /boot/initramfs-genkernel-x86-2.6.34-gentoo-r6</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
fstab:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>/dev/sda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ext2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;defaults,noatime&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1 2<br />
/dev/sda2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; none&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;swap&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;swap&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 0<br />
/dev/sda3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ext3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;noatime&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 1<br />
<br />
/dev/cdrom&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/mnt/cdrom&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;auto&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;noauto,user&nbsp;&nbsp;&nbsp;&nbsp; 0 0<br />
<br />
/dev/sdb&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/home/big&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; auto&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;noatime&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 0<br />
<br />
shm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /dev/shm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tmpfs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nodev,nosuid,noexec&nbsp;&nbsp;&nbsp;&nbsp; 0 0<br />
proc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/proc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;defaults&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 0</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
lspci:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>(chroot) livecd / # lspci<br />
00:00.0 Host bridge: Silicon Integrated Systems [siS] 645xx (rev 02)<br />
00:01.0 PCI bridge: Silicon Integrated Systems [siS] Virtual PCI-to-PCI bridge (AGP)<br />
00:02.0 ISA bridge: Silicon Integrated Systems [siS] SiS963 [MuTIOL Media IO] (rev 04)<br />
00:02.1 SMBus: Silicon Integrated Systems [siS] SiS961/2 SMBus Controller<br />
00:02.3 FireWire (IEEE 1394): Silicon Integrated Systems [siS] FireWire Controller<br />
00:02.5 IDE interface: Silicon Integrated Systems [siS] 5513 [iDE]<br />
00:02.7 Multimedia audio controller: Silicon Integrated Systems [siS] AC'97 Sound Controller (rev a0)<br />
00:03.0 USB Controller: Silicon Integrated Systems [siS] USB 1.1 Controller (rev 0f)<br />
00:03.1 USB Controller: Silicon Integrated Systems [siS] USB 1.1 Controller (rev 0f)<br />
00:03.2 USB Controller: Silicon Integrated Systems [siS] USB 1.1 Controller (rev 0f)<br />
00:03.3 USB Controller: Silicon Integrated Systems [siS] USB 2.0 Controller<br />
00:04.0 Ethernet controller: Silicon Integrated Systems [siS] SiS900 PCI Fast Ethernet (rev 91)<br />
00:07.0 RAID bus controller: Silicon Image, Inc. SiI 3512 [sATALink/SATARaid] Serial ATA Controller (rev 01)<br />
00:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)<br />
01:00.0 VGA compatible controller: nVidia Corporation NV28 [GeForce4 Ti 4200 AGP 8x] (rev a1)</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
file -s /dev/sd*<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>livecd ~ # file -s /dev/sd*<br />
/dev/sda:&nbsp;&nbsp;x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, stage2 address 0x2000, stage2 segment 0x200; partition 2: ID=0x82, starthead 0, startsector 80325, 514080 sectors; partition 3: ID=0x83, starthead 0, startsector 594405, 65448810 sectors, code offset 0x48<br />
/dev/sda1: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, 1st sector stage2 0x9041, code offset 0x48<br />
/dev/sda2: Linux/i386 swap file (new style) 1 (4K pages) size 64259 pages<br />
/dev/sda3: x86 boot sector, LInux i386 boot LOader<br />
/dev/sdb:&nbsp;&nbsp;Linux rev 1.0 ext3 filesystem data (needs journal recovery) (large files)<br />
livecd ~ #</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
No idea where to look for anymore <img src="https://www.linux-noob.com/forums/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" />YOu guys got any idea..? TIA!<br />
<br />
 <br />
<br />
Grt EzMe<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
Hi all,<br />
<br />
 <br />
<br />
I've got a weird problem with my gentooserver after upgrading my kernel with genkernel. For some reason it wont boot anymore. When i try to boot it says: <br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>Grub loading Stage1.5<br />
Grub loading, please wait...</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Then grub hangs up indefinetely.<br />
<br />
 <br />
<br />
So, i booted from a gentoo liveCD, setted up my network and sshd and logged into it. After that: <br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>swapon /dev/sda2<br />
mount /dev/sda3 /mnt/gentoo<br />
mount /dev/sda1 /mnt/gentoo/boot<br />
mount -t proc none /mnt/gentoo/proc<br />
mount -o bind /dev /mnt/gentoo/dev<br />
cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
then chroot to the system<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>chroot /mnt/gentoo /bin/bash<br />
env-update<br />
source /etc/profile<br />
export PS1="(chroot) &#36;PS1"</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
After that i updated /etc/mtab sinds Grub needs this: <br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>cp /proc/mounts /etc/mtab</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
My partition table:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>(chroot) livecd / # fdisk -l<br />
<br />
Disk /dev/sda: 33.8 GB, 33820286976 bytes<br />
255 heads, 63 sectors/track, 4111 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Sector size (logical/physical): 512 bytes / 512 bytes<br />
I/O size (minimum/optimal): 512 bytes / 512 bytes<br />
Disk identifier: 0x277b277a<br />
<br />
&nbsp;&nbsp;Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocks&nbsp;&nbsp; Id&nbsp;&nbsp;System<br />
/dev/sda1&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 40131&nbsp;&nbsp; 83&nbsp;&nbsp;Linux<br />
/dev/sda2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;37&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;257040&nbsp;&nbsp; 82&nbsp;&nbsp;Linux swap / Solaris<br />
/dev/sda3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;38&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4111&nbsp;&nbsp;&nbsp;&nbsp;32724405&nbsp;&nbsp; 83&nbsp;&nbsp;Linux<br />
<br />
Disk /dev/sdb: 500.1 GB, 500107862016 bytes<br />
255 heads, 63 sectors/track, 60801 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Sector size (logical/physical): 512 bytes / 512 bytes<br />
I/O size (minimum/optimal): 512 bytes / 512 bytes<br />
Disk identifier: 0x00000000<br />
<br />
Disk /dev/sdb doesn't contain a valid partition table<br />
(chroot) livecd / #</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
After that i tried reinstalling Grub: <br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>(chroot) livecd grub # grub-install /dev/sda<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Unknown partition table signature<br />
Installation finished. No error reported.<br />
This is the contents of the device map /boot/grub/device.map.<br />
Check if this is correct or not. If any of the lines is incorrect,<br />
fix it and re-run the script `grub-install'.<br />
<br />
(fd0)&nbsp;&nbsp; /dev/fd0<br />
(hd0)&nbsp;&nbsp; /dev/sda<br />
(hd1)&nbsp;&nbsp; /dev/sdb<br />
(chroot) livecd grub #</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
 <br />
<br />
(/boot is on sda1) <br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>grub<br />
grub&gt; root (hd0,0)<br />
Filesystem type is ext2fs, partition type 0x83<br />
<br />
grub&gt; setup (hd0)<br />
Checking if "/boot/grub/stage1" exists... yes<br />
Checking if "/boot/grub/stage2" exists... yes<br />
Checking if "/boot/grub/e2fs_stage1_5" exists... yes<br />
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...&nbsp;&nbsp;17 sectors are embedded.<br />
succeeded<br />
Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,0)/boot/grub/stage2<br />
/boot/grub/menu.lst"... succeeded<br />
Done.<br />
<br />
grub&gt; quit</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
I wiped my MBR to make sure that the new info get's installed:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>dd if=/dev/zero of=/dev/sda bs=446 count=1</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
But still the same problem.<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>(chroot) livecd / # grub --version<br />
grub (GNU GRUB 0.97)</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>(chroot) livecd / # fdisk -l<br />
<br />
Disk /dev/sda: 33.8 GB, 33820286976 bytes<br />
255 heads, 63 sectors/track, 4111 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Sector size (logical/physical): 512 bytes / 512 bytes<br />
I/O size (minimum/optimal): 512 bytes / 512 bytes<br />
Disk identifier: 0x00000000<br />
<br />
&nbsp;&nbsp;Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocks&nbsp;&nbsp; Id&nbsp;&nbsp;System<br />
/dev/sda1&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 40131&nbsp;&nbsp; 83&nbsp;&nbsp;Linux<br />
/dev/sda2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;37&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;257040&nbsp;&nbsp; 82&nbsp;&nbsp;Linux swap / Solaris<br />
/dev/sda3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;38&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4111&nbsp;&nbsp;&nbsp;&nbsp;32724405&nbsp;&nbsp; 83&nbsp;&nbsp;Linux<br />
<br />
Disk /dev/sdb: 500.1 GB, 500107862016 bytes<br />
255 heads, 63 sectors/track, 60801 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Sector size (logical/physical): 512 bytes / 512 bytes<br />
I/O size (minimum/optimal): 512 bytes / 512 bytes<br />
Disk identifier: 0x00000000<br />
<br />
Disk /dev/sdb doesn't contain a valid partition table</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
/boot<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>total 7867<br />
drwxr-xr-x&nbsp;&nbsp;4 root root&nbsp;&nbsp;&nbsp;&nbsp;1024 Sep 27 14:46 .<br />
drwxr-xr-x 20 root root&nbsp;&nbsp;&nbsp;&nbsp;4096 Mar 26&nbsp;&nbsp;2010 ..<br />
-rw-r--r--&nbsp;&nbsp;1 root root 1444015 Sep 27 14:22 System.map-genkernel-x86-2.6.34-gentoo-r6<br />
drwxr-xr-x&nbsp;&nbsp;2 root root&nbsp;&nbsp;&nbsp;&nbsp;1024 Sep 27 14:24 grub<br />
-rw-r--r--&nbsp;&nbsp;1 root root 3401991 Sep 27 14:22 initramfs-genkernel-x86-2.6.34-gentoo-r6<br />
-rw-r--r--&nbsp;&nbsp;1 root root 3154656 Sep 27 14:23 kernel-genkernel-x86-2.6.34-gentoo-r6<br />
drwx------&nbsp;&nbsp;2 root root&nbsp;&nbsp; 12288 Sep 27 14:12 lost+found</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
/boot/grub<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>total 231<br />
drwxr-xr-x 2 root root&nbsp;&nbsp; 1024 Sep 27 14:24 .<br />
drwxr-xr-x 4 root root&nbsp;&nbsp; 1024 Sep 27 14:46 ..<br />
-rw-r--r-- 1 root root&nbsp;&nbsp;&nbsp;&nbsp;197 Sep 27 14:18 default<br />
-rw-r--r-- 1 root root&nbsp;&nbsp;&nbsp;&nbsp; 45 Sep 27 14:18 device.map<br />
-rw-r--r-- 1 root root&nbsp;&nbsp; 8692 Sep 27 14:18 e2fs_stage1_5<br />
-rw-r--r-- 1 root root&nbsp;&nbsp; 7820 Sep 27 14:18 fat_stage1_5<br />
-rw-r--r-- 1 root root&nbsp;&nbsp; 7088 Sep 27 14:18 ffs_stage1_5<br />
-rw-r--r-- 1 root root&nbsp;&nbsp;&nbsp;&nbsp;271 Sep 27 14:26 grub.conf<br />
-rw-r--r-- 1 root root&nbsp;&nbsp; 7088 Sep 27 14:18 iso9660_stage1_5<br />
-rw-r--r-- 1 root root&nbsp;&nbsp; 8676 Sep 27 14:18 jfs_stage1_5<br />
lrwxrwxrwx 1 root root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;9 Sep 27 14:20 menu.lst -&gt; grub.conf<br />
-rw-r--r-- 1 root root&nbsp;&nbsp; 7292 Sep 27 14:18 minix_stage1_5<br />
-rw-r--r-- 1 root root&nbsp;&nbsp; 9684 Sep 27 14:18 reiserfs_stage1_5<br />
-rw-r--r-- 1 root root&nbsp;&nbsp;33856 Sep 27 14:24 splash.xpm.gz<br />
-rw-r--r-- 1 root root&nbsp;&nbsp;&nbsp;&nbsp;512 Sep 27 14:18 stage1<br />
-rw-r--r-- 1 root root 107808 Sep 27 14:18 stage2<br />
-rw-r--r-- 1 root root&nbsp;&nbsp; 7344 Sep 27 14:18 ufs2_stage1_5<br />
-rw-r--r-- 1 root root&nbsp;&nbsp; 6692 Sep 27 14:18 vstafs_stage1_5<br />
-rw-r--r-- 1 root root&nbsp;&nbsp; 9524 Sep 27 14:18 xfs_stage1_5</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
grub.conf<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>default 0<br />
timeout 10<br />
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz<br />
<br />
title Gentoo Linux 2.6.34-gentoo-r6<br />
root (hd0,0)<br />
kernel /boot/kernel-genkernel-x86-2.6.34-gentoo-r6 root=/dev/ram0 init=/linuxrc real_root=/dev/sda3<br />
initrd /boot/initramfs-genkernel-x86-2.6.34-gentoo-r6</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
fstab:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>/dev/sda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ext2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;defaults,noatime&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1 2<br />
/dev/sda2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; none&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;swap&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;swap&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 0<br />
/dev/sda3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ext3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;noatime&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 1<br />
<br />
/dev/cdrom&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/mnt/cdrom&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;auto&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;noauto,user&nbsp;&nbsp;&nbsp;&nbsp; 0 0<br />
<br />
/dev/sdb&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/home/big&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; auto&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;noatime&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 0<br />
<br />
shm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /dev/shm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tmpfs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nodev,nosuid,noexec&nbsp;&nbsp;&nbsp;&nbsp; 0 0<br />
proc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/proc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;defaults&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 0</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
lspci:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>(chroot) livecd / # lspci<br />
00:00.0 Host bridge: Silicon Integrated Systems [siS] 645xx (rev 02)<br />
00:01.0 PCI bridge: Silicon Integrated Systems [siS] Virtual PCI-to-PCI bridge (AGP)<br />
00:02.0 ISA bridge: Silicon Integrated Systems [siS] SiS963 [MuTIOL Media IO] (rev 04)<br />
00:02.1 SMBus: Silicon Integrated Systems [siS] SiS961/2 SMBus Controller<br />
00:02.3 FireWire (IEEE 1394): Silicon Integrated Systems [siS] FireWire Controller<br />
00:02.5 IDE interface: Silicon Integrated Systems [siS] 5513 [iDE]<br />
00:02.7 Multimedia audio controller: Silicon Integrated Systems [siS] AC'97 Sound Controller (rev a0)<br />
00:03.0 USB Controller: Silicon Integrated Systems [siS] USB 1.1 Controller (rev 0f)<br />
00:03.1 USB Controller: Silicon Integrated Systems [siS] USB 1.1 Controller (rev 0f)<br />
00:03.2 USB Controller: Silicon Integrated Systems [siS] USB 1.1 Controller (rev 0f)<br />
00:03.3 USB Controller: Silicon Integrated Systems [siS] USB 2.0 Controller<br />
00:04.0 Ethernet controller: Silicon Integrated Systems [siS] SiS900 PCI Fast Ethernet (rev 91)<br />
00:07.0 RAID bus controller: Silicon Image, Inc. SiI 3512 [sATALink/SATARaid] Serial ATA Controller (rev 01)<br />
00:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)<br />
01:00.0 VGA compatible controller: nVidia Corporation NV28 [GeForce4 Ti 4200 AGP 8x] (rev a1)</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
file -s /dev/sd*<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>livecd ~ # file -s /dev/sd*<br />
/dev/sda:&nbsp;&nbsp;x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, stage2 address 0x2000, stage2 segment 0x200; partition 2: ID=0x82, starthead 0, startsector 80325, 514080 sectors; partition 3: ID=0x83, starthead 0, startsector 594405, 65448810 sectors, code offset 0x48<br />
/dev/sda1: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, 1st sector stage2 0x9041, code offset 0x48<br />
/dev/sda2: Linux/i386 swap file (new style) 1 (4K pages) size 64259 pages<br />
/dev/sda3: x86 boot sector, LInux i386 boot LOader<br />
/dev/sdb:&nbsp;&nbsp;Linux rev 1.0 ext3 filesystem data (needs journal recovery) (large files)<br />
livecd ~ #</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
No idea where to look for anymore <img src="https://www.linux-noob.com/forums/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" />YOu guys got any idea..? TIA!<br />
<br />
 <br />
<br />
Grt EzMe<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Nvida TwinView HDMI and S-Video]]></title>
			<link>https://www.linux-noob.com/forums/thread-722.html</link>
			<pubDate>Mon, 23 Mar 2009 17:18:56 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=3289">G__</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-722.html</guid>
			<description><![CDATA[<br />
Hello,<br />
<br />
 <br />
<br />
I just hit my 2 year anniversary as a noob with Linux.<br />
<br />
I want to apologize in advance since this post may be a bit long, I have been at this for a week and am at a stalemate. I hope the Moderators don't mind all this detail in my question.<br />
<br />
I am working with a HTPC (Home Theater PC) box using GenToo.  This is not MythTV but a system using GenToo mainly for home theater use and is a bit stripped down.  The folks that designed the system and package feel that TwinView cannot be done properly on their system and do not give technical support for TwinView.  They were surprised I got this far with it.<br />
<br />
 <br />
<br />
The motherboard is a MSI K9MGM3 v1 with a Nvidia 6150 chipset for the video.  The MB has HDMI out which I am using and it has Component(RGB) and S-Video out.  The TV sizes are a Vizio 42 inch fed via HDMI and the Samsung 19 inch is fed video from a 2.4GHz A/V transmitter/receiver setup to another room of the house, S-Video is used for this.<br />
<br />
What I am trying to accomplish is to have S-Video and HDMI out at the same time.  At this time I have it working but the S-Video out is not correct.  The first two images are showing the Option "MetaModes" "1920x1080 , 720x480".  The second set of images is using a suggested setting of "MetaModes" "1080i , 1080i" which seems not to be the normal option.   Using this setting got it a bit closer on the S-Video out.  The main reason I am going through all this is that I would like to send the A/V throughout the house to different TVs.  I am not worried about HD when watching this system.  I have been in kind of a hurry to set all this up since I may soon be stuck in a wheelchair here and setting this up at a later time may be out of the question.  I will place the xorg code in the post below.  Any help would be greatly appreciated and thank you in advance.<br />
<br />
 <br />
<br />
"MetaModes" "1920x1080 , 720x480"<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Vizio</span><br />
<br />
<img src="http://i144.photobucket.com/albums/r161/wcjz/vizio160.jpg" loading="lazy"  alt="[Image: vizio160.jpg]" class="mycode_img" /><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Samsung</span><br />
<br />
<img src="http://i144.photobucket.com/albums/r161/wcjz/Samsung160.jpg" loading="lazy"  alt="[Image: Samsung160.jpg]" class="mycode_img" /><br />
<br />
 <br />
<br />
"MetaModes" "1080i , 1080i"<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Vizio</span><br />
<br />
<img src="http://i144.photobucket.com/albums/r161/wcjz/1080ivizio160.jpg" loading="lazy"  alt="[Image: 1080ivizio160.jpg]" class="mycode_img" /><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Samsung</span><br />
<br />
<img src="http://i144.photobucket.com/albums/r161/wcjz/1080iSamsung160.jpg" loading="lazy"  alt="[Image: 1080iSamsung160.jpg]" class="mycode_img" /><br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
Hello,<br />
<br />
 <br />
<br />
I just hit my 2 year anniversary as a noob with Linux.<br />
<br />
I want to apologize in advance since this post may be a bit long, I have been at this for a week and am at a stalemate. I hope the Moderators don't mind all this detail in my question.<br />
<br />
I am working with a HTPC (Home Theater PC) box using GenToo.  This is not MythTV but a system using GenToo mainly for home theater use and is a bit stripped down.  The folks that designed the system and package feel that TwinView cannot be done properly on their system and do not give technical support for TwinView.  They were surprised I got this far with it.<br />
<br />
 <br />
<br />
The motherboard is a MSI K9MGM3 v1 with a Nvidia 6150 chipset for the video.  The MB has HDMI out which I am using and it has Component(RGB) and S-Video out.  The TV sizes are a Vizio 42 inch fed via HDMI and the Samsung 19 inch is fed video from a 2.4GHz A/V transmitter/receiver setup to another room of the house, S-Video is used for this.<br />
<br />
What I am trying to accomplish is to have S-Video and HDMI out at the same time.  At this time I have it working but the S-Video out is not correct.  The first two images are showing the Option "MetaModes" "1920x1080 , 720x480".  The second set of images is using a suggested setting of "MetaModes" "1080i , 1080i" which seems not to be the normal option.   Using this setting got it a bit closer on the S-Video out.  The main reason I am going through all this is that I would like to send the A/V throughout the house to different TVs.  I am not worried about HD when watching this system.  I have been in kind of a hurry to set all this up since I may soon be stuck in a wheelchair here and setting this up at a later time may be out of the question.  I will place the xorg code in the post below.  Any help would be greatly appreciated and thank you in advance.<br />
<br />
 <br />
<br />
"MetaModes" "1920x1080 , 720x480"<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Vizio</span><br />
<br />
<img src="http://i144.photobucket.com/albums/r161/wcjz/vizio160.jpg" loading="lazy"  alt="[Image: vizio160.jpg]" class="mycode_img" /><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Samsung</span><br />
<br />
<img src="http://i144.photobucket.com/albums/r161/wcjz/Samsung160.jpg" loading="lazy"  alt="[Image: Samsung160.jpg]" class="mycode_img" /><br />
<br />
 <br />
<br />
"MetaModes" "1080i , 1080i"<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Vizio</span><br />
<br />
<img src="http://i144.photobucket.com/albums/r161/wcjz/1080ivizio160.jpg" loading="lazy"  alt="[Image: 1080ivizio160.jpg]" class="mycode_img" /><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Samsung</span><br />
<br />
<img src="http://i144.photobucket.com/albums/r161/wcjz/1080iSamsung160.jpg" loading="lazy"  alt="[Image: 1080iSamsung160.jpg]" class="mycode_img" /><br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Just Installed Gentoo]]></title>
			<link>https://www.linux-noob.com/forums/thread-1278.html</link>
			<pubDate>Tue, 03 Jul 2007 08:16:15 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=1118">Navrax</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1278.html</guid>
			<description><![CDATA[<br />
Can anyone help? I just finished installing gentoo and like....it loads, i can log in BUT I CAN'T READ SHIT!<br />
<br />
 <br />
<br />
What would cause this ?<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
Can anyone help? I just finished installing gentoo and like....it loads, i can log in BUT I CAN'T READ SHIT!<br />
<br />
 <br />
<br />
What would cause this ?<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Enlightenment E17]]></title>
			<link>https://www.linux-noob.com/forums/thread-1572.html</link>
			<pubDate>Thu, 01 Mar 2007 19:04:42 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=740">znx</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1572.html</guid>
			<description><![CDATA[<br />
So I did this for <a href="http://&lt;___base_url___&gt;/index.php?showtopic=2775" target="_blank" rel="noopener" class="mycode_url">Debian</a> users, helped <a href="http://&lt;___base_url___&gt;/index.php?showtopic=2774" target="_blank" rel="noopener" class="mycode_url">Fedora</a> users find the RPMs, yet I don't have either of those as my standard desktop!<br />
<br />
 <br />
<br />
Instead I am a Gentoo user. So here is a howto for gentoo. It is really simple actually thanks to vapier making some nice ebuilds. First off whilst enlightenment was in the main portage tree it has recently be demoted to its own personal tree. So we must add an overlay.<br />
<br />
 <br />
<br />
Lets get started, install the utility <span style="font-style: italic;" class="mycode_i">layman</span> (<span style="font-weight: bold;" class="mycode_b">Note</span>: <span style="font-style: italic;" class="mycode_i">subversion</span> might need installed as well):<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># emerge -av layman<br />
...<br />
# echo "source /usr/portage/local/layman/make.conf" &gt;&gt; /etc/make.conf<br />
# layman --fetch<br />
# layman --list<br />
....<br />
* enlightenment&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [Subversion] (source: http://overlays.gentoo.org...)<br />
....<br />
# layman --add enlightenment</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Now you have the overlay setup. You can install enlightenment and its various packages (you may require to unmask stuff).<br />
<br />
 <br />
<br />
One of the really good things about gentoo is (unlike the Fedora and Debian examples) it works from the CVS directly. Gentoo will download and install fresh from the CVS every time you update. Nice!<br />
<br />
 <br />
<br />
Two things to note, to update the new enlightenment overlay use:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># layman -S</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Also this is all development code, so you must understand that it might break/crash etc, however my experience has been solid. It no longer crashes from me anymore.<br />
<br />
 <br />
<br />
Enjoy!<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
So I did this for <a href="http://&lt;___base_url___&gt;/index.php?showtopic=2775" target="_blank" rel="noopener" class="mycode_url">Debian</a> users, helped <a href="http://&lt;___base_url___&gt;/index.php?showtopic=2774" target="_blank" rel="noopener" class="mycode_url">Fedora</a> users find the RPMs, yet I don't have either of those as my standard desktop!<br />
<br />
 <br />
<br />
Instead I am a Gentoo user. So here is a howto for gentoo. It is really simple actually thanks to vapier making some nice ebuilds. First off whilst enlightenment was in the main portage tree it has recently be demoted to its own personal tree. So we must add an overlay.<br />
<br />
 <br />
<br />
Lets get started, install the utility <span style="font-style: italic;" class="mycode_i">layman</span> (<span style="font-weight: bold;" class="mycode_b">Note</span>: <span style="font-style: italic;" class="mycode_i">subversion</span> might need installed as well):<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># emerge -av layman<br />
...<br />
# echo "source /usr/portage/local/layman/make.conf" &gt;&gt; /etc/make.conf<br />
# layman --fetch<br />
# layman --list<br />
....<br />
* enlightenment&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [Subversion] (source: http://overlays.gentoo.org...)<br />
....<br />
# layman --add enlightenment</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Now you have the overlay setup. You can install enlightenment and its various packages (you may require to unmask stuff).<br />
<br />
 <br />
<br />
One of the really good things about gentoo is (unlike the Fedora and Debian examples) it works from the CVS directly. Gentoo will download and install fresh from the CVS every time you update. Nice!<br />
<br />
 <br />
<br />
Two things to note, to update the new enlightenment overlay use:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># layman -S</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Also this is all development code, so you must understand that it might break/crash etc, however my experience has been solid. It no longer crashes from me anymore.<br />
<br />
 <br />
<br />
Enjoy!<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[My Gentoo Installation (Work in Progress)]]></title>
			<link>https://www.linux-noob.com/forums/thread-1585.html</link>
			<pubDate>Wed, 21 Feb 2007 22:15:04 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=393">mechtn</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1585.html</guid>
			<description><![CDATA[<br />
My Gentoo Installation (Work in Progress)<br />
<br />
 <br />
<br />
I've finally decided to really dedicate myself to learning Linux and using Linux more than I currently do.  The first step is taking the main computer (my laptop) that I use all the time and converting it from Windows XP to Gentoo.<br />
<br />
 <br />
<br />
Laptop Specs<br />
<br />
Dell Inspiron 6400<br />
<br />
Intel T7400 - Core 2 Duo 2.16Ghz<br />
<br />
1GB of RAM<br />
<br />
60GB Hard Drive<br />
<br />
ATI X1400 Video Card<br />
<br />
Conexant HDA D110 MDC V.92 Modem<br />
<br />
Broadcom 440x 10/100 Integrated Contoller<br />
<br />
Intel PRO/Wireless 3945ABG Network Connection<br />
<br />
Standard SD Host contoller (Secure Digital Card)<br />
<br />
SigmaTel High Definition Audio Codec<br />
<br />
Intel USB2 Enhanced Host Controller<br />
<br />
 <br />
<br />
So, I started doing this research to figure out some common things that I'm going to have to know when I do my gentoo installation based on these specs.   So far I've determined, thanks to the help of #gentoo on irc.freenode.net that i'll need to use the following for my processor to take full advantage of it.  Special Thanks to FunnyMan3595 for his help!<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>CHOST="i686-pc-linux-gnu"<br />
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"<br />
MAKEOPTS="-j3"<br />
CXXFLAGS="&#36;{CFLAGS}"<br />
<br />
USE Flags = mmxext sse2</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
It was suggested to use -march=prescott because it 'might' be faster, however Intel recommends -march=nocona.  I found that prescott was origionally suggested in a gentoo forums debate for core duo processors.  Since then Core 2 Duo has come out and it's recommended nocona.  Another note I found was "As of GCC 4.3, you can set -march to "core2". This also enables the SSSE3 instruction set, also new in 4.3. However, gcc 4.3 is only available in the gentoo 'toolchain' overlay and given it's stability level (pre-alpha) you'd be mad to use that right now."<br />
<br />
 <br />
<br />
You can continue to watch the <a href="http://gentoo-wiki.com/Safe_Cflags#Intel_Core_2_Solo.2FDuo.2FQuad_.28Allendale.2C_Conroe.2C_Merom.2C_Kesfield.29_and_Xeon_51xx.2F53xx_.28Woodcrest.2C_Clovertown.29" target="_blank" rel="noopener" class="mycode_url">Gentoo Safe_Cflags</a> page for updates.<br />
<br />
 <br />
<br />
From here I'm going to continue my research on other applications I plan to run and what flags or options I'll need to use to customize my system for the best performance.  More to come....<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
My Gentoo Installation (Work in Progress)<br />
<br />
 <br />
<br />
I've finally decided to really dedicate myself to learning Linux and using Linux more than I currently do.  The first step is taking the main computer (my laptop) that I use all the time and converting it from Windows XP to Gentoo.<br />
<br />
 <br />
<br />
Laptop Specs<br />
<br />
Dell Inspiron 6400<br />
<br />
Intel T7400 - Core 2 Duo 2.16Ghz<br />
<br />
1GB of RAM<br />
<br />
60GB Hard Drive<br />
<br />
ATI X1400 Video Card<br />
<br />
Conexant HDA D110 MDC V.92 Modem<br />
<br />
Broadcom 440x 10/100 Integrated Contoller<br />
<br />
Intel PRO/Wireless 3945ABG Network Connection<br />
<br />
Standard SD Host contoller (Secure Digital Card)<br />
<br />
SigmaTel High Definition Audio Codec<br />
<br />
Intel USB2 Enhanced Host Controller<br />
<br />
 <br />
<br />
So, I started doing this research to figure out some common things that I'm going to have to know when I do my gentoo installation based on these specs.   So far I've determined, thanks to the help of #gentoo on irc.freenode.net that i'll need to use the following for my processor to take full advantage of it.  Special Thanks to FunnyMan3595 for his help!<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>CHOST="i686-pc-linux-gnu"<br />
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"<br />
MAKEOPTS="-j3"<br />
CXXFLAGS="&#36;{CFLAGS}"<br />
<br />
USE Flags = mmxext sse2</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
It was suggested to use -march=prescott because it 'might' be faster, however Intel recommends -march=nocona.  I found that prescott was origionally suggested in a gentoo forums debate for core duo processors.  Since then Core 2 Duo has come out and it's recommended nocona.  Another note I found was "As of GCC 4.3, you can set -march to "core2". This also enables the SSSE3 instruction set, also new in 4.3. However, gcc 4.3 is only available in the gentoo 'toolchain' overlay and given it's stability level (pre-alpha) you'd be mad to use that right now."<br />
<br />
 <br />
<br />
You can continue to watch the <a href="http://gentoo-wiki.com/Safe_Cflags#Intel_Core_2_Solo.2FDuo.2FQuad_.28Allendale.2C_Conroe.2C_Merom.2C_Kesfield.29_and_Xeon_51xx.2F53xx_.28Woodcrest.2C_Clovertown.29" target="_blank" rel="noopener" class="mycode_url">Gentoo Safe_Cflags</a> page for updates.<br />
<br />
 <br />
<br />
From here I'm going to continue my research on other applications I plan to run and what flags or options I'll need to use to customize my system for the best performance.  More to come....<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[iptable problem kernel 2.6.16-r3]]></title>
			<link>https://www.linux-noob.com/forums/thread-2016.html</link>
			<pubDate>Wed, 26 Apr 2006 05:13:04 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=200">enigma</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-2016.html</guid>
			<description><![CDATA[<br />
I've just installed kernel 2.6.16-r3 on my gentoo box, only to run in to a strange problem...<br />
<br />
 <br />
<br />
rivendale ~ # /etc/init.d/iptables start<br />
<br />
 * Loading iptables state and starting firewall ...<br />
<br />
FATAL: Module ip_tables not found.<br />
<br />
iptables-restore v1.3.4: iptables-restore: unable to initializetable 'nat'<br />
<br />
 <br />
<br />
Error occurred at line: 2<br />
<br />
Try `iptables-restore -h' or 'iptables-restore --help' for more informat  [ !! ]<br />
<br />
 <br />
<br />
I recieved the following error while booting into this new kernel so I then checked to see if it was set as a module...<br />
<br />
 <br />
<br />
rivendale ~ # grep -i netfilter /usr/src/linux/.config<br />
<br />
 <br />
<br />
CONFIG_NETFILTER=y   <span style="font-weight: bold;" class="mycode_b">&lt;-------</span><br />
<br />
# CONFIG_NETFILTER_DEBUG is not set<br />
<br />
# Core Netfilter Configuration<br />
<br />
# CONFIG_NETFILTER_NETLINK is not set<br />
<br />
# CONFIG_NETFILTER_XTABLES is not set<br />
<br />
# IP: Netfilter Configuration<br />
<br />
 <br />
<br />
then i did the following:<br />
<br />
 <br />
<br />
rivendale ~ # echo "ip_tables" &gt;&gt; /etc/modules.autoload.d/kernel-2.6.16-gentoo-r3 &amp;&amp; modules-update<br />
<br />
 <br />
<br />
rivendale ~ #  modprobe ip_tables<br />
<br />
FATAL: Module ip_tables not found.<br />
<br />
 <br />
<br />
i'd appreciate any ideas on how to fix this little problem thanks in advance...<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
I've just installed kernel 2.6.16-r3 on my gentoo box, only to run in to a strange problem...<br />
<br />
 <br />
<br />
rivendale ~ # /etc/init.d/iptables start<br />
<br />
 * Loading iptables state and starting firewall ...<br />
<br />
FATAL: Module ip_tables not found.<br />
<br />
iptables-restore v1.3.4: iptables-restore: unable to initializetable 'nat'<br />
<br />
 <br />
<br />
Error occurred at line: 2<br />
<br />
Try `iptables-restore -h' or 'iptables-restore --help' for more informat  [ !! ]<br />
<br />
 <br />
<br />
I recieved the following error while booting into this new kernel so I then checked to see if it was set as a module...<br />
<br />
 <br />
<br />
rivendale ~ # grep -i netfilter /usr/src/linux/.config<br />
<br />
 <br />
<br />
CONFIG_NETFILTER=y   <span style="font-weight: bold;" class="mycode_b">&lt;-------</span><br />
<br />
# CONFIG_NETFILTER_DEBUG is not set<br />
<br />
# Core Netfilter Configuration<br />
<br />
# CONFIG_NETFILTER_NETLINK is not set<br />
<br />
# CONFIG_NETFILTER_XTABLES is not set<br />
<br />
# IP: Netfilter Configuration<br />
<br />
 <br />
<br />
then i did the following:<br />
<br />
 <br />
<br />
rivendale ~ # echo "ip_tables" &gt;&gt; /etc/modules.autoload.d/kernel-2.6.16-gentoo-r3 &amp;&amp; modules-update<br />
<br />
 <br />
<br />
rivendale ~ #  modprobe ip_tables<br />
<br />
FATAL: Module ip_tables not found.<br />
<br />
 <br />
<br />
i'd appreciate any ideas on how to fix this little problem thanks in advance...<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[1 Year On - Gentoo Review]]></title>
			<link>https://www.linux-noob.com/forums/thread-2130.html</link>
			<pubDate>Sat, 25 Feb 2006 01:40:42 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=1120">djsmiley2k</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-2130.html</guid>
			<description><![CDATA[<br />
From back in secondry school i wanted to do things differently, i wanted to stand out from the crowd that little bit, just to make sure that i was counted and not just part of whatever happened. <br />
<br />
My first expirence with a computer which i remember, and which wasn't just messing around on websites playing games (didn't we all do this!) or taking direct orders from a teacher was in the first week of school. The teacher knew that if they tried to teach these 30 or so young boys, about these amazing machines without first letting them run wild then they would get no where. So we were given free reign on the computers for a hour, allowed to do what we liked.<br />
<br />
Many played games, or viewed websites and signed up to email accounts and the like. I sat in the corner of the room and started up some editor named "Turtle Edit" or something simuler. I managed to write a program which took the input from a user, ask for a even number and then swear at them if it wasn't even.<br />
<br />
 <br />
<br />
Now to the present day, computers have got faster and faster before our very eyes, and with this they have become so much more complicated. After those first few weeks of "IT" at school we had no more lessions with computers, and so i had looked for another way to learn, for this i eventually had a Cyrix 300 at home and i learnt to dismantle and rebuild this with ease.<br />
<br />
 <br />
<br />
Problem was, it was still running at the same slow speed, with the same boring O/S. Windows 95. I didn't like the idea of being with the "norm" but it was something i stuck with until Feb 2005.<br />
<br />
 <br />
<br />
I had a windows system which i wasn't fond of, and some spare space and a spare hard disk. I moved all my data off the spare hard disk so it was nice and empty so i could install suse.<br />
<br />
This great idea didn't last long. I had all the cables connected and for some reason suse refused to do any kind of install, sometimes it would get half way then refuse to update. Sometimes it would refuse to boot outright, but eitherway it wasn't going to happen.<br />
<br />
 <br />
<br />
From this i was annoyed, i had heard so many great things about linux, and how it should work on any box i choose to try it on. It was meant to blow my mind and break me out of the mould that windows had created for me, to free me from windows constaints, and instead i was stuck with a "Source not found" message leaving me totally bewildered.<br />
<br />
I then left it a few days, and once again plucked up my courage and downloaded a mandrake CD. At the time on BT Dialup downloading a ISO would take all night easily, so to do this was a big thing. I took my new Mandrake disk and plompted it into the disk drive..... Nothing. It refused to boot, just like suse.<br />
<br />
 <br />
<br />
Now i was really amused and baffled, i had tried two linux distros, both which i had heard great things about, and yet nither booted. I decided that i needed extra help, i contacted my local lug (Linux user group) whom at first assisted me, but then slowly started to turn against me for whatever reason (sometimes it would be because my spelling was off, sometimes because i forgot to mention something), but slowly but surely they pushed me away.<br />
<br />
Strangely, they were my blessing, how could they dare to treat me so badly after i had entered their world? I was shocked and horrified at how nasty they had been, but i decided there and then that i WOULD get linux working, and it WOULD be with this machine.<br />
<br />
 <br />
<br />
I went in search of the fastest way of installing linux on my machine and found two options, a debian net install, or gentoo. I talked to various people on IRC and they all pretty much gave me the same answer, debian was far eaiser to install than gentoo.<br />
<br />
 <br />
<br />
So i went for it, the debian install it was....<br />
<br />
 <br />
<br />
It appered to be going peachy up until the point at which i had to choose sources. I went off to the family PC so i could find out what i was doing. The documetnation i found was beyond awful in some places. It was hard to read and didn't flow, plus most of it said it was out of date, and was going to be updated, but none of it appered to actually be upto date. I sighed and went back to my computer and tried to work through selecting packages my self, but without knowing what i was really doing.<br />
<br />
 <br />
<br />
I ended up with a half dead system, which may or maynot of been easily fixed, but i was once again put off. I turned off my computer and it sat there for about 2 weeks. At uni at the time i had a programming assignment, and someone suggested that we look at installing linux, so that we had some idea how computers worked with logic and other things along these lines.<br />
<br />
I rushed home and popped back onto irc....<br />
<br />
 <br />
<br />
One guy, whom has my upmost respect was almost... waiting for me. He greeted me as he does and we chatted for awhile, i then announced that i was planning to install gentoo, and his answer was "I hope you can read". Little did i know how much that was going to mean.<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
From back in secondry school i wanted to do things differently, i wanted to stand out from the crowd that little bit, just to make sure that i was counted and not just part of whatever happened. <br />
<br />
My first expirence with a computer which i remember, and which wasn't just messing around on websites playing games (didn't we all do this!) or taking direct orders from a teacher was in the first week of school. The teacher knew that if they tried to teach these 30 or so young boys, about these amazing machines without first letting them run wild then they would get no where. So we were given free reign on the computers for a hour, allowed to do what we liked.<br />
<br />
Many played games, or viewed websites and signed up to email accounts and the like. I sat in the corner of the room and started up some editor named "Turtle Edit" or something simuler. I managed to write a program which took the input from a user, ask for a even number and then swear at them if it wasn't even.<br />
<br />
 <br />
<br />
Now to the present day, computers have got faster and faster before our very eyes, and with this they have become so much more complicated. After those first few weeks of "IT" at school we had no more lessions with computers, and so i had looked for another way to learn, for this i eventually had a Cyrix 300 at home and i learnt to dismantle and rebuild this with ease.<br />
<br />
 <br />
<br />
Problem was, it was still running at the same slow speed, with the same boring O/S. Windows 95. I didn't like the idea of being with the "norm" but it was something i stuck with until Feb 2005.<br />
<br />
 <br />
<br />
I had a windows system which i wasn't fond of, and some spare space and a spare hard disk. I moved all my data off the spare hard disk so it was nice and empty so i could install suse.<br />
<br />
This great idea didn't last long. I had all the cables connected and for some reason suse refused to do any kind of install, sometimes it would get half way then refuse to update. Sometimes it would refuse to boot outright, but eitherway it wasn't going to happen.<br />
<br />
 <br />
<br />
From this i was annoyed, i had heard so many great things about linux, and how it should work on any box i choose to try it on. It was meant to blow my mind and break me out of the mould that windows had created for me, to free me from windows constaints, and instead i was stuck with a "Source not found" message leaving me totally bewildered.<br />
<br />
I then left it a few days, and once again plucked up my courage and downloaded a mandrake CD. At the time on BT Dialup downloading a ISO would take all night easily, so to do this was a big thing. I took my new Mandrake disk and plompted it into the disk drive..... Nothing. It refused to boot, just like suse.<br />
<br />
 <br />
<br />
Now i was really amused and baffled, i had tried two linux distros, both which i had heard great things about, and yet nither booted. I decided that i needed extra help, i contacted my local lug (Linux user group) whom at first assisted me, but then slowly started to turn against me for whatever reason (sometimes it would be because my spelling was off, sometimes because i forgot to mention something), but slowly but surely they pushed me away.<br />
<br />
Strangely, they were my blessing, how could they dare to treat me so badly after i had entered their world? I was shocked and horrified at how nasty they had been, but i decided there and then that i WOULD get linux working, and it WOULD be with this machine.<br />
<br />
 <br />
<br />
I went in search of the fastest way of installing linux on my machine and found two options, a debian net install, or gentoo. I talked to various people on IRC and they all pretty much gave me the same answer, debian was far eaiser to install than gentoo.<br />
<br />
 <br />
<br />
So i went for it, the debian install it was....<br />
<br />
 <br />
<br />
It appered to be going peachy up until the point at which i had to choose sources. I went off to the family PC so i could find out what i was doing. The documetnation i found was beyond awful in some places. It was hard to read and didn't flow, plus most of it said it was out of date, and was going to be updated, but none of it appered to actually be upto date. I sighed and went back to my computer and tried to work through selecting packages my self, but without knowing what i was really doing.<br />
<br />
 <br />
<br />
I ended up with a half dead system, which may or maynot of been easily fixed, but i was once again put off. I turned off my computer and it sat there for about 2 weeks. At uni at the time i had a programming assignment, and someone suggested that we look at installing linux, so that we had some idea how computers worked with logic and other things along these lines.<br />
<br />
I rushed home and popped back onto irc....<br />
<br />
 <br />
<br />
One guy, whom has my upmost respect was almost... waiting for me. He greeted me as he does and we chatted for awhile, i then announced that i was planning to install gentoo, and his answer was "I hope you can read". Little did i know how much that was going to mean.<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Gentoo Installation]]></title>
			<link>https://www.linux-noob.com/forums/thread-2143.html</link>
			<pubDate>Tue, 21 Feb 2006 10:16:27 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=387">jsn06</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-2143.html</guid>
			<description><![CDATA[If you don<br />
]]></description>
			<content:encoded><![CDATA[If you don<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Conky!]]></title>
			<link>https://www.linux-noob.com/forums/thread-2156.html</link>
			<pubDate>Tue, 14 Feb 2006 22:57:51 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=740">znx</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-2156.html</guid>
			<description><![CDATA[<br />
OK .. first.. lets show you WHY you might want to do this <img src="https://www.linux-noob.com/forums/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
 <br />
<br />
&lt;a class="ipsAttachLink ipsAttachLink_image" href="&lt;fileStore.core_Attachment&gt;/post-798-1139953495.png" data-fileid="477"&gt;[img]&lt;fileStore.core_Attachment&gt;/post-798-1139953495.png[/img]&lt;/a&gt;<br />
<br />
This is my conky <img src="https://www.linux-noob.com/forums/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" />  You can see that this is weighted towards gentoo users<br />
<br />
 <br />
<br />
Ok, first the preparation. I will assume that you have conky installed (<span style="font-style: italic;" class="mycode_i">yum install conky</span>, <span style="font-style: italic;" class="mycode_i">emerge conky</span>, most systems have it now).<br />
<br />
 <br />
<br />
Ok so we need to create a couple of scripts to help create the output. If you aren't a gentoo user, skip these.<br />
<br />
 <br />
<br />
If you don't have a local user bin folder then you should make it:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>mkdir ~/bin</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
<span style="font-style: italic;" class="mycode_i">~/bin/emerge-current.sh</span><br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#!/bin/bash<br />
# emerge-current.sh by Hellf[i]re<br />
#<br />
# This script is designed to read the name of the last package compiled.<br />
#<br />
# As this script does read the entirety of emerge.log, it will be rather<br />
# heavy on the CPU.&nbsp;&nbsp;It shouldn't be enough to be noticable on newer (2.0Ghz+)<br />
# processors, but it still should not be run more often than every 30 seconds.<br />
#<br />
# Usage:<br />
# .conkyrc:&nbsp;&nbsp;&nbsp;&nbsp; &#36;{execi [time] /path/to/script/emerge-current.sh}<br />
#<br />
# Usage Example<br />
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#36;{execi 30 /home/youruser/scripts/emerge-current.sh}<br />
<br />
tail -n 50 /var/log/emerge.log |&#92;<br />
tac |&#92;<br />
grep 'Compiling' |&#92;<br />
head |&#92;<br />
sed -e 's/.*(//' |&#92;<br />
sed -e 's/::.*)//' |&#92;<br />
head -n 1 |&#92;<br />
cut -d &#92;) -f 1</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
<span style="font-style: italic;" class="mycode_i">~/bin/emerge-progress.sh</span><br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#!/bin/bash<br />
# source: Jeremy_Z @ forums.gentoo.org http://forums.gentoo.org/viewtopic-t-351806-postdays-0-pos<br />
torder-asc-start-550.html<br />
#<br />
# This script will report the progress of the last emerge command run.&nbsp;&nbsp;It <br />
# reports the TOTAL percentage complete - not the percentage of the current<br />
# package.&nbsp;&nbsp;For example, if there are 110 packages currently being emerged, and<br />
# it is on the 55th package, it will report 50.<br />
#<br />
# Usage:<br />
# .conkyrc:&nbsp;&nbsp;&nbsp;&nbsp; &#36;{execibar [time] /path/to/script/emerge-progress.sh}<br />
#<br />
# Usage Example<br />
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#36;{execibar 30 /home/youruser/scripts/emerge-progress.sh}<br />
<br />
tail -n 50 /var/log/emerge.log |&#92;<br />
tac |&#92;<br />
grep -v "Starting retry" |&#92;<br />
grep -iE '([0-9]* of [0-9]*)' -o -m 1 |&#92;<br />
sed -e 's/&#92;(.*&#92;) of &#92;(.*&#92;)/&#92;1 &#92;2/' |&#92;<br />
awk '{print 100.0*&#36;1/&#36;2}'</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
<span style="font-style: italic;" class="mycode_i">~/bin/emerge-status.sh</span><br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#!/bin/bash<br />
#<br />
# emerge-status.sh by Hellf[i]re<br />
#<br />
# This script will report the current status of portage.<br />
#<br />
# Usage:<br />
# .conkyrc:&nbsp;&nbsp;&nbsp;&nbsp; &#36;{execi [time] /path/to/script/emerge-current.sh}<br />
#<br />
# Usage Example<br />
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#36;{execi 30 /home/youruser/scripts/emerge-current.sh}<br />
#<br />
# Known Bugs:<br />
#&nbsp;&nbsp;1) If there are two emerges running at once, when the first one finishes <br />
#&nbsp;&nbsp;&nbsp;&nbsp; running, the script will report the current status as "Completed".<br />
#&nbsp;&nbsp;2) If there is a emerge running and you run a search, the script will<br />
#&nbsp;&nbsp;&nbsp;&nbsp; report the current status as "Completed", until the running emerge<br />
#&nbsp;&nbsp;&nbsp;&nbsp; moves to the next package, or itself completes.<br />
#&nbsp;&nbsp;The reasons for this are twofold - one, it's a feature;) and two, there<br />
#&nbsp;&nbsp;would be far too much parsing required to find out the current status of<br />
#&nbsp;&nbsp;every command which is run in parallel.<br />
<br />
STATUS=`tail -n 15 /var/log/emerge.log |&#92;<br />
grep -iE "Compiling|Cleaning|AUTOCLEAN|completed|search|terminating|rsync" |&#92;<br />
cut -d ' ' -f "2-" |&#92;<br />
grep -Ev 'Finished&#92;.|Cleaning up&#92;.&#92;.&#92;.' |&#92;<br />
tail -n 1`<br />
<br />
#echo "&#36;STATUS"<br />
<br />
if [ "`echo "&#36;STATUS" | grep -i compiling`" != "" ]; then echo Compiling<br />
elif [ "`echo "&#36;STATUS" | grep -i cleaning`" != "" ]; then echo Cleaning<br />
elif [ "`echo "&#36;STATUS" | grep -i autoclean`" != "" ]; then echo Autoclean<br />
elif [ "`echo "&#36;STATUS" | grep -i sync`" != "" ]; then echo Syncing<br />
elif [ "`echo "&#36;STATUS" | grep -i search`" != "" ]; then echo Searching<br />
elif [ "`echo "&#36;STATUS" | grep -i completed`" != "" ]; then echo Completed<br />
elif [ "`echo "&#36;STATUS" | grep -i terminating`" != "" ]; then echo Completed<br />
fi</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
<span style="font-style: italic;" class="mycode_i">~/bin/lastsync.pl</span><br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#!/usr/bin/perl<br />
use Date::Manip;<br />
<br />
&#36;date = `grep "Sync completed" /var/log/emerge.log | tail -n1 | cut -c-10`;<br />
&#36;date = &amp;DateCalc("Jan 1, 1970&nbsp;&nbsp;00:00:00 GMT",&#36;date);<br />
&#36;date = UnixDate("&#36;date","%A %H:%M");<br />
print "&#36;date";</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Right thats those out of the way. Major thanks to the respective authors!<br />
<br />
 <br />
<br />
Now onto the <span style="font-style: italic;" class="mycode_i">~/.conkyrc</span>:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># ~/.conkyrc<br />
<br />
background yes<br />
use_xft no<br />
on_bottom yes<br />
font 6x10<br />
update_interval 5.0<br />
total_run_times 0<br />
own_window no<br />
own_window_transparent yes<br />
double_buffer yes<br />
minimum_size 180 5<br />
draw_shades yes<br />
draw_outline no<br />
draw_borders no<br />
stippled_borders 8<br />
border_margin 4<br />
border_width 1<br />
default_color white<br />
default_shade_color black<br />
default_outline_color black<br />
alignment top_right<br />
gap_x 12<br />
gap_y 12<br />
no_buffers yes<br />
uppercase no<br />
cpu_avg_samples 2<br />
net_avg_samples 2<br />
override_utf8_locale no<br />
use_spacer no<br />
<br />
<br />
TEXT<br />
&#36;{color #98c2c7}&#36;nodename&nbsp;&nbsp; linux-&#36;kernel&#36;{alignr}&#36;{time %T}&#36;color<br />
<br />
&#36;{color #98c2c7}SYSTEM&#36;color<br />
 &#36;{color #ffcb48}UPTIME&#36;color &#36;uptime&#36;{alignr}&#36;{color #ffcb48}LOAD&#36;color &#36;loadavg<br />
 &#36;{color #ffcb48}CPU&#36;color&nbsp;&nbsp;&nbsp;&nbsp;&#36;cpu%&#36;{alignr}&#36;{color #ffcb48}FREQ&#36;color &#36;freq_dyn_g / &#36;freq_g<br />
&#36;{color #000000}&#36;{cpugraph cpu0 32,255 104e8b 0077ff}<br />
 &#36;{color #ffcb48}RAM&#36;color&nbsp;&nbsp;&nbsp;&nbsp;&#36;mem / &#36;memmax &#36;{color #7f8ed3}&#36;{membar}&#36;color<br />
 &#36;{color #ffcb48}SWAP&#36;color&nbsp;&nbsp;&#36;swap / &#36;swapmax &#36;{color #7f8ed3}&#36;{swapbar}&#36;color<br />
<br />
&#36;{color #98c2c7}NETWORK&#36;color<br />
 &#36;{color #ffcb48}PING&#36;color&nbsp;&nbsp;mute&#36;{execi 50 sh -c "ping -q -c5 mute | tail -n 2 | head -n 1 | cut -d',' -f3" }<br />
 &#36;{color #ffcb48}DOWN&#36;color&nbsp;&nbsp;&#36;{downspeed eth0} k/s &#36;{offset 80}&#36;{color #ffcb48}UP&#36;color &#36;{upspeed eth0} k/s<br />
&#36;{color #000000}&#36;{downspeedgraph eth0 32,125 104e8b 0077ff} &#36;{color #000000}&#36;{upspeedgraph eth0 32,125 104e8b 0077ff}<br />
<br />
&#36;{color #98c2c7}STORAGE&#36;color<br />
 root &#36;{fs_used /} / &#36;{fs_size /} &#36;{color #7f8ed3}&#36;{fs_bar /}&#36;color<br />
<br />
&#36;{color #98c2c7}PROCESSES&#36;color<br />
&#36;{color #ffcb48}NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PID&nbsp;&nbsp;&nbsp;&nbsp; CPU%&nbsp;&nbsp; MEM%&#36;color<br />
&#36;{color #007700}&#36;{top name 1} &#36;{top pid 1} &#36;{top cpu 1} &#36;{top mem 1}&#36;color<br />
&#36;{top name 2} &#36;{top pid 2} &#36;{top cpu 2} &#36;{top mem 2}<br />
&#36;{top name 3} &#36;{top pid 3} &#36;{top cpu 3} &#36;{top mem 3}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#36;{color #ffcb48}PROC&#36;color&nbsp;&nbsp;&#36;processes&#36;{alignr}&#36;{color #ffcb48}RUN&#36;color &#36;running_processes<br />
 &#36;{color #ffcb48}MEM USAGE&#36;color<br />
&#36;{color #007700}&#36;{top_mem name 1} &#36;{top_mem pid 1} &#36;{top_mem cpu 1} &#36;{top_mem mem 1}&#36;color<br />
&#36;{top_mem name 2} &#36;{top_mem pid 2} &#36;{top_mem cpu 2} &#36;{top_mem mem 2}<br />
&#36;{top_mem name 3} &#36;{top_mem pid 3} &#36;{top_mem cpu 3} &#36;{top_mem mem 3}<br />
<br />
&#36;{color #98c2c7}PORTAGE&#36;color<br />
 &#36;{color #ffcb48}LAST SYNC&#36;color &#36;{execi 300 /home/znx/bin/lastsync.pl}<br />
 &#36;{color #ffcb48}LAST 3&#36;color<br />
&#36;{execi 50 genlop -lnu | sed -e 's/.*&#92;([&gt;&lt;]&#92;+&#92;)/&nbsp;&nbsp;&nbsp;&nbsp;&#92;1/' | tail -n 3 | tac}<br />
 &#36;{color #ffcb48}CURRENT&#36;color<br />
&gt; &#36;{color #98c2c7}&#36;{execibar 30 /home/znx/bin/emerge-progress.sh}&#36;color<br />
&gt; &#36;{execi 30 /home/znx/bin/emerge-current.sh}<br />
&gt; &#36;{execi 30 /home/znx/bin/emerge-status.sh}</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
<span style="font-weight: bold;" class="mycode_b">NOTE</span> if you are not using gentoo remove the lines at the end of the <span style="font-style: italic;" class="mycode_i">~/.conkyrc</span> from PORTAGE down to the end. And if you <span style="font-weight: bold;" class="mycode_b">ARE</span> then switch the "/home/znx/bin" for your user. <img src="https://www.linux-noob.com/forums/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
 <br />
<br />
Thats it.. start up conky and it will run. If you are using KDE/Gnome you will need to tamper with them to make it work because conky doesn't work well with them yet.<br />
<br />
 <br />
<br />
<a href="http://conky.sf.net" target="_blank" rel="noopener" class="mycode_url">Conky's Home</a> where I sourced the script and 99% of the idea to the production of this layout.<br />
<br />
 <br />
<br />
Weeeeee.. just a quick jaunt.. ask questions if you have any<br />
<br />
 <br />
<br />
OH .. <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&#36;{color #ffcb48}PING&#36;color&nbsp;&nbsp;mute&#36;{execi 50 sh -c "ping -q -c5 mute | tail -n 2 | head -n 1 | cut -d',' -f3" }</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
This line is used to ping another system in my local network, you can either edit the name "mute" to be another machine, or remove the line as it will loose 100% of its packets.<br />
<br />
 <br />
<br />
See below for information about securing the genlop command.<br />
<br />
 <br />
<br />
<span style="font-size: 4pt;" class="mycode_size">Updated to fix mistakes found by dragon_788, many thanks!</span><br />
<br />
<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.linux-noob.com/forums/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=404" target="_blank" title="">conky.png</a> (Size: 142.44 KB / Downloads: 0)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[<br />
OK .. first.. lets show you WHY you might want to do this <img src="https://www.linux-noob.com/forums/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
 <br />
<br />
&lt;a class="ipsAttachLink ipsAttachLink_image" href="&lt;fileStore.core_Attachment&gt;/post-798-1139953495.png" data-fileid="477"&gt;[img]&lt;fileStore.core_Attachment&gt;/post-798-1139953495.png[/img]&lt;/a&gt;<br />
<br />
This is my conky <img src="https://www.linux-noob.com/forums/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" />  You can see that this is weighted towards gentoo users<br />
<br />
 <br />
<br />
Ok, first the preparation. I will assume that you have conky installed (<span style="font-style: italic;" class="mycode_i">yum install conky</span>, <span style="font-style: italic;" class="mycode_i">emerge conky</span>, most systems have it now).<br />
<br />
 <br />
<br />
Ok so we need to create a couple of scripts to help create the output. If you aren't a gentoo user, skip these.<br />
<br />
 <br />
<br />
If you don't have a local user bin folder then you should make it:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>mkdir ~/bin</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
<span style="font-style: italic;" class="mycode_i">~/bin/emerge-current.sh</span><br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#!/bin/bash<br />
# emerge-current.sh by Hellf[i]re<br />
#<br />
# This script is designed to read the name of the last package compiled.<br />
#<br />
# As this script does read the entirety of emerge.log, it will be rather<br />
# heavy on the CPU.&nbsp;&nbsp;It shouldn't be enough to be noticable on newer (2.0Ghz+)<br />
# processors, but it still should not be run more often than every 30 seconds.<br />
#<br />
# Usage:<br />
# .conkyrc:&nbsp;&nbsp;&nbsp;&nbsp; &#36;{execi [time] /path/to/script/emerge-current.sh}<br />
#<br />
# Usage Example<br />
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#36;{execi 30 /home/youruser/scripts/emerge-current.sh}<br />
<br />
tail -n 50 /var/log/emerge.log |&#92;<br />
tac |&#92;<br />
grep 'Compiling' |&#92;<br />
head |&#92;<br />
sed -e 's/.*(//' |&#92;<br />
sed -e 's/::.*)//' |&#92;<br />
head -n 1 |&#92;<br />
cut -d &#92;) -f 1</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
<span style="font-style: italic;" class="mycode_i">~/bin/emerge-progress.sh</span><br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#!/bin/bash<br />
# source: Jeremy_Z @ forums.gentoo.org http://forums.gentoo.org/viewtopic-t-351806-postdays-0-pos<br />
torder-asc-start-550.html<br />
#<br />
# This script will report the progress of the last emerge command run.&nbsp;&nbsp;It <br />
# reports the TOTAL percentage complete - not the percentage of the current<br />
# package.&nbsp;&nbsp;For example, if there are 110 packages currently being emerged, and<br />
# it is on the 55th package, it will report 50.<br />
#<br />
# Usage:<br />
# .conkyrc:&nbsp;&nbsp;&nbsp;&nbsp; &#36;{execibar [time] /path/to/script/emerge-progress.sh}<br />
#<br />
# Usage Example<br />
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#36;{execibar 30 /home/youruser/scripts/emerge-progress.sh}<br />
<br />
tail -n 50 /var/log/emerge.log |&#92;<br />
tac |&#92;<br />
grep -v "Starting retry" |&#92;<br />
grep -iE '([0-9]* of [0-9]*)' -o -m 1 |&#92;<br />
sed -e 's/&#92;(.*&#92;) of &#92;(.*&#92;)/&#92;1 &#92;2/' |&#92;<br />
awk '{print 100.0*&#36;1/&#36;2}'</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
<span style="font-style: italic;" class="mycode_i">~/bin/emerge-status.sh</span><br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#!/bin/bash<br />
#<br />
# emerge-status.sh by Hellf[i]re<br />
#<br />
# This script will report the current status of portage.<br />
#<br />
# Usage:<br />
# .conkyrc:&nbsp;&nbsp;&nbsp;&nbsp; &#36;{execi [time] /path/to/script/emerge-current.sh}<br />
#<br />
# Usage Example<br />
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#36;{execi 30 /home/youruser/scripts/emerge-current.sh}<br />
#<br />
# Known Bugs:<br />
#&nbsp;&nbsp;1) If there are two emerges running at once, when the first one finishes <br />
#&nbsp;&nbsp;&nbsp;&nbsp; running, the script will report the current status as "Completed".<br />
#&nbsp;&nbsp;2) If there is a emerge running and you run a search, the script will<br />
#&nbsp;&nbsp;&nbsp;&nbsp; report the current status as "Completed", until the running emerge<br />
#&nbsp;&nbsp;&nbsp;&nbsp; moves to the next package, or itself completes.<br />
#&nbsp;&nbsp;The reasons for this are twofold - one, it's a feature;) and two, there<br />
#&nbsp;&nbsp;would be far too much parsing required to find out the current status of<br />
#&nbsp;&nbsp;every command which is run in parallel.<br />
<br />
STATUS=`tail -n 15 /var/log/emerge.log |&#92;<br />
grep -iE "Compiling|Cleaning|AUTOCLEAN|completed|search|terminating|rsync" |&#92;<br />
cut -d ' ' -f "2-" |&#92;<br />
grep -Ev 'Finished&#92;.|Cleaning up&#92;.&#92;.&#92;.' |&#92;<br />
tail -n 1`<br />
<br />
#echo "&#36;STATUS"<br />
<br />
if [ "`echo "&#36;STATUS" | grep -i compiling`" != "" ]; then echo Compiling<br />
elif [ "`echo "&#36;STATUS" | grep -i cleaning`" != "" ]; then echo Cleaning<br />
elif [ "`echo "&#36;STATUS" | grep -i autoclean`" != "" ]; then echo Autoclean<br />
elif [ "`echo "&#36;STATUS" | grep -i sync`" != "" ]; then echo Syncing<br />
elif [ "`echo "&#36;STATUS" | grep -i search`" != "" ]; then echo Searching<br />
elif [ "`echo "&#36;STATUS" | grep -i completed`" != "" ]; then echo Completed<br />
elif [ "`echo "&#36;STATUS" | grep -i terminating`" != "" ]; then echo Completed<br />
fi</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
<span style="font-style: italic;" class="mycode_i">~/bin/lastsync.pl</span><br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#!/usr/bin/perl<br />
use Date::Manip;<br />
<br />
&#36;date = `grep "Sync completed" /var/log/emerge.log | tail -n1 | cut -c-10`;<br />
&#36;date = &amp;DateCalc("Jan 1, 1970&nbsp;&nbsp;00:00:00 GMT",&#36;date);<br />
&#36;date = UnixDate("&#36;date","%A %H:%M");<br />
print "&#36;date";</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Right thats those out of the way. Major thanks to the respective authors!<br />
<br />
 <br />
<br />
Now onto the <span style="font-style: italic;" class="mycode_i">~/.conkyrc</span>:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># ~/.conkyrc<br />
<br />
background yes<br />
use_xft no<br />
on_bottom yes<br />
font 6x10<br />
update_interval 5.0<br />
total_run_times 0<br />
own_window no<br />
own_window_transparent yes<br />
double_buffer yes<br />
minimum_size 180 5<br />
draw_shades yes<br />
draw_outline no<br />
draw_borders no<br />
stippled_borders 8<br />
border_margin 4<br />
border_width 1<br />
default_color white<br />
default_shade_color black<br />
default_outline_color black<br />
alignment top_right<br />
gap_x 12<br />
gap_y 12<br />
no_buffers yes<br />
uppercase no<br />
cpu_avg_samples 2<br />
net_avg_samples 2<br />
override_utf8_locale no<br />
use_spacer no<br />
<br />
<br />
TEXT<br />
&#36;{color #98c2c7}&#36;nodename&nbsp;&nbsp; linux-&#36;kernel&#36;{alignr}&#36;{time %T}&#36;color<br />
<br />
&#36;{color #98c2c7}SYSTEM&#36;color<br />
 &#36;{color #ffcb48}UPTIME&#36;color &#36;uptime&#36;{alignr}&#36;{color #ffcb48}LOAD&#36;color &#36;loadavg<br />
 &#36;{color #ffcb48}CPU&#36;color&nbsp;&nbsp;&nbsp;&nbsp;&#36;cpu%&#36;{alignr}&#36;{color #ffcb48}FREQ&#36;color &#36;freq_dyn_g / &#36;freq_g<br />
&#36;{color #000000}&#36;{cpugraph cpu0 32,255 104e8b 0077ff}<br />
 &#36;{color #ffcb48}RAM&#36;color&nbsp;&nbsp;&nbsp;&nbsp;&#36;mem / &#36;memmax &#36;{color #7f8ed3}&#36;{membar}&#36;color<br />
 &#36;{color #ffcb48}SWAP&#36;color&nbsp;&nbsp;&#36;swap / &#36;swapmax &#36;{color #7f8ed3}&#36;{swapbar}&#36;color<br />
<br />
&#36;{color #98c2c7}NETWORK&#36;color<br />
 &#36;{color #ffcb48}PING&#36;color&nbsp;&nbsp;mute&#36;{execi 50 sh -c "ping -q -c5 mute | tail -n 2 | head -n 1 | cut -d',' -f3" }<br />
 &#36;{color #ffcb48}DOWN&#36;color&nbsp;&nbsp;&#36;{downspeed eth0} k/s &#36;{offset 80}&#36;{color #ffcb48}UP&#36;color &#36;{upspeed eth0} k/s<br />
&#36;{color #000000}&#36;{downspeedgraph eth0 32,125 104e8b 0077ff} &#36;{color #000000}&#36;{upspeedgraph eth0 32,125 104e8b 0077ff}<br />
<br />
&#36;{color #98c2c7}STORAGE&#36;color<br />
 root &#36;{fs_used /} / &#36;{fs_size /} &#36;{color #7f8ed3}&#36;{fs_bar /}&#36;color<br />
<br />
&#36;{color #98c2c7}PROCESSES&#36;color<br />
&#36;{color #ffcb48}NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PID&nbsp;&nbsp;&nbsp;&nbsp; CPU%&nbsp;&nbsp; MEM%&#36;color<br />
&#36;{color #007700}&#36;{top name 1} &#36;{top pid 1} &#36;{top cpu 1} &#36;{top mem 1}&#36;color<br />
&#36;{top name 2} &#36;{top pid 2} &#36;{top cpu 2} &#36;{top mem 2}<br />
&#36;{top name 3} &#36;{top pid 3} &#36;{top cpu 3} &#36;{top mem 3}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#36;{color #ffcb48}PROC&#36;color&nbsp;&nbsp;&#36;processes&#36;{alignr}&#36;{color #ffcb48}RUN&#36;color &#36;running_processes<br />
 &#36;{color #ffcb48}MEM USAGE&#36;color<br />
&#36;{color #007700}&#36;{top_mem name 1} &#36;{top_mem pid 1} &#36;{top_mem cpu 1} &#36;{top_mem mem 1}&#36;color<br />
&#36;{top_mem name 2} &#36;{top_mem pid 2} &#36;{top_mem cpu 2} &#36;{top_mem mem 2}<br />
&#36;{top_mem name 3} &#36;{top_mem pid 3} &#36;{top_mem cpu 3} &#36;{top_mem mem 3}<br />
<br />
&#36;{color #98c2c7}PORTAGE&#36;color<br />
 &#36;{color #ffcb48}LAST SYNC&#36;color &#36;{execi 300 /home/znx/bin/lastsync.pl}<br />
 &#36;{color #ffcb48}LAST 3&#36;color<br />
&#36;{execi 50 genlop -lnu | sed -e 's/.*&#92;([&gt;&lt;]&#92;+&#92;)/&nbsp;&nbsp;&nbsp;&nbsp;&#92;1/' | tail -n 3 | tac}<br />
 &#36;{color #ffcb48}CURRENT&#36;color<br />
&gt; &#36;{color #98c2c7}&#36;{execibar 30 /home/znx/bin/emerge-progress.sh}&#36;color<br />
&gt; &#36;{execi 30 /home/znx/bin/emerge-current.sh}<br />
&gt; &#36;{execi 30 /home/znx/bin/emerge-status.sh}</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
<span style="font-weight: bold;" class="mycode_b">NOTE</span> if you are not using gentoo remove the lines at the end of the <span style="font-style: italic;" class="mycode_i">~/.conkyrc</span> from PORTAGE down to the end. And if you <span style="font-weight: bold;" class="mycode_b">ARE</span> then switch the "/home/znx/bin" for your user. <img src="https://www.linux-noob.com/forums/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
 <br />
<br />
Thats it.. start up conky and it will run. If you are using KDE/Gnome you will need to tamper with them to make it work because conky doesn't work well with them yet.<br />
<br />
 <br />
<br />
<a href="http://conky.sf.net" target="_blank" rel="noopener" class="mycode_url">Conky's Home</a> where I sourced the script and 99% of the idea to the production of this layout.<br />
<br />
 <br />
<br />
Weeeeee.. just a quick jaunt.. ask questions if you have any<br />
<br />
 <br />
<br />
OH .. <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&#36;{color #ffcb48}PING&#36;color&nbsp;&nbsp;mute&#36;{execi 50 sh -c "ping -q -c5 mute | tail -n 2 | head -n 1 | cut -d',' -f3" }</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
This line is used to ping another system in my local network, you can either edit the name "mute" to be another machine, or remove the line as it will loose 100% of its packets.<br />
<br />
 <br />
<br />
See below for information about securing the genlop command.<br />
<br />
 <br />
<br />
<span style="font-size: 4pt;" class="mycode_size">Updated to fix mistakes found by dragon_788, many thanks!</span><br />
<br />
<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.linux-noob.com/forums/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=404" target="_blank" title="">conky.png</a> (Size: 142.44 KB / Downloads: 0)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[fbdesk]]></title>
			<link>https://www.linux-noob.com/forums/thread-2348.html</link>
			<pubDate>Sat, 05 Nov 2005 18:15:00 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=200">enigma</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-2348.html</guid>
			<description><![CDATA[<br />
I've been trying to use fbdesk using the following tutorial:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>http://fluxbox.sourceforge.net/fbdesk/</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
I get the following errors when running it:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>elrond@rivendale ~ &#36; fbdesk -rc ~/.fluxbox/fbdesk<br />
/home/elrond/.fluxbox/styles/Cthulhain<br />
Loading: [/home/elrond/.fluxbox/fbdesk.icons]<br />
Warning: Empty icon file, creating one icon.<br />
Load pixmap failed! ()<br />
Using default pixmap<br />
Warning: Failed to save icons to file: /home/elrond/.fluxbox/fbdesk.icons<br />
Warning: Failed to save icons to file: /home/elrond/.fluxbox/fbdesk.icons</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
As you can probably tell the tutorial is not very detailed on where this information goes, or how to set it up. From what i have gathered it all goes in the init of ~/.fluxbox/init. After doing so you add the icond to ~/.fluxbox/fbdesk.icons. The problem is it never saves or uses the actual icons you tell it to, instead it uses a default icon...<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
I've been trying to use fbdesk using the following tutorial:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>http://fluxbox.sourceforge.net/fbdesk/</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
I get the following errors when running it:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>elrond@rivendale ~ &#36; fbdesk -rc ~/.fluxbox/fbdesk<br />
/home/elrond/.fluxbox/styles/Cthulhain<br />
Loading: [/home/elrond/.fluxbox/fbdesk.icons]<br />
Warning: Empty icon file, creating one icon.<br />
Load pixmap failed! ()<br />
Using default pixmap<br />
Warning: Failed to save icons to file: /home/elrond/.fluxbox/fbdesk.icons<br />
Warning: Failed to save icons to file: /home/elrond/.fluxbox/fbdesk.icons</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
As you can probably tell the tutorial is not very detailed on where this information goes, or how to set it up. From what i have gathered it all goes in the init of ~/.fluxbox/init. After doing so you add the icond to ~/.fluxbox/fbdesk.icons. The problem is it never saves or uses the actual icons you tell it to, instead it uses a default icon...<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[libGL error]]></title>
			<link>https://www.linux-noob.com/forums/thread-2349.html</link>
			<pubDate>Sat, 05 Nov 2005 16:56:43 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=200">enigma</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-2349.html</guid>
			<description><![CDATA[<br />
i've just emerged bzflag when running the following command as normal user:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>/usr/games/bin/bzflag</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
its returns the following errors:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>libGL error: open DRM failed (Operation not permitted)<br />
libGL error: reverting to (slow) indirect rendering</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Now on the other hand if I run the game as root, it loads everything fine and works like a charm. Just as normal user it lags like no tommorow because of the libGL issue.<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
i've just emerged bzflag when running the following command as normal user:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>/usr/games/bin/bzflag</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
its returns the following errors:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>libGL error: open DRM failed (Operation not permitted)<br />
libGL error: reverting to (slow) indirect rendering</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Now on the other hand if I run the game as root, it loads everything fine and works like a charm. Just as normal user it lags like no tommorow because of the libGL issue.<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[howto create the 'service' command]]></title>
			<link>https://www.linux-noob.com/forums/thread-2533.html</link>
			<pubDate>Wed, 27 Jul 2005 13:49:48 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=740">znx</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-2533.html</guid>
			<description><![CDATA[<br />
I've always sort of liked the 'service' command that comes with redhat, so I created my own:<br />
<br />
 <br />
<br />
Create a file (as root) /usr/sbin/service<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#!/bin/sh<br />
<br />
set -e<br />
<br />
/etc/init.d/&#36;1 &#36;2 &#36;3</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Done.. <img src="https://www.linux-noob.com/forums/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
 <br />
<br />
Example usage:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>service mysql start<br />
service mysql stop<br />
service sshd start</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Always one for making completions I did this too, mind this is gentoo aimed a little (the secondary option)<br />
<br />
 <br />
<br />
Place this in ~/.bashrc or /etc/bash.bashrc (or /etc/bash_completion.d/service for gentoo users)<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># a function for the autocompletion of the service command.<br />
<br />
_service_fn()<br />
{<br />
 # set some local variables<br />
 local cur prev<br />
<br />
 COMPREPLY=()<br />
 cur=&#36;{COMP_WORDS[COMP_CWORD]}<br />
 prev=&#36;{COMP_WORDS[COMP_CWORD-1]}<br />
<br />
 #if only one completion or a option is being requested<br />
 #then complete against various options<br />
 if [ &#36;COMP_CWORD -eq 1 ]; then<br />
COMPREPLY=( &#36;( compgen -W "&#36;(ls /etc/init.d)" &#36;cur ))<br />
 elif [ &#36;COMP_CWORD -eq 2 ]; then<br />
COMPREPLY=( &#36;( compgen -W "start stop restart pause zap status ineed iuse needsme usesme broken" &#36;cur ))<br />
 else<br />
COMPREPLY=( &#36;( compgen -f &#36;cur ))<br />
 fi<br />
<br />
 return 0<br />
}<br />
<br />
#setup the completion<br />
complete -F _service_fn service</code></div></div><br />
<br />
<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
I've always sort of liked the 'service' command that comes with redhat, so I created my own:<br />
<br />
 <br />
<br />
Create a file (as root) /usr/sbin/service<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#!/bin/sh<br />
<br />
set -e<br />
<br />
/etc/init.d/&#36;1 &#36;2 &#36;3</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Done.. <img src="https://www.linux-noob.com/forums/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
 <br />
<br />
Example usage:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>service mysql start<br />
service mysql stop<br />
service sshd start</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Always one for making completions I did this too, mind this is gentoo aimed a little (the secondary option)<br />
<br />
 <br />
<br />
Place this in ~/.bashrc or /etc/bash.bashrc (or /etc/bash_completion.d/service for gentoo users)<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># a function for the autocompletion of the service command.<br />
<br />
_service_fn()<br />
{<br />
 # set some local variables<br />
 local cur prev<br />
<br />
 COMPREPLY=()<br />
 cur=&#36;{COMP_WORDS[COMP_CWORD]}<br />
 prev=&#36;{COMP_WORDS[COMP_CWORD-1]}<br />
<br />
 #if only one completion or a option is being requested<br />
 #then complete against various options<br />
 if [ &#36;COMP_CWORD -eq 1 ]; then<br />
COMPREPLY=( &#36;( compgen -W "&#36;(ls /etc/init.d)" &#36;cur ))<br />
 elif [ &#36;COMP_CWORD -eq 2 ]; then<br />
COMPREPLY=( &#36;( compgen -W "start stop restart pause zap status ineed iuse needsme usesme broken" &#36;cur ))<br />
 else<br />
COMPREPLY=( &#36;( compgen -f &#36;cur ))<br />
 fi<br />
<br />
 return 0<br />
}<br />
<br />
#setup the completion<br />
complete -F _service_fn service</code></div></div><br />
<br />
<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Desktop]]></title>
			<link>https://www.linux-noob.com/forums/thread-2766.html</link>
			<pubDate>Mon, 04 Apr 2005 12:28:21 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=36">Ritter</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-2766.html</guid>
			<description><![CDATA[<br />
[img]&lt;___base_url___&gt;/uploads/emoticons/default_ph34r.png[/img] It's a dual monitor desktop, so you might have to scroll to see the whole thing.<br />
<br />
<img src="http://edie.candlefire.org/~ritter/desktop-01.jpg" loading="lazy"  alt="[Image: desktop-01.jpg]" class="mycode_img" /><br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
[img]&lt;___base_url___&gt;/uploads/emoticons/default_ph34r.png[/img] It's a dual monitor desktop, so you might have to scroll to see the whole thing.<br />
<br />
<img src="http://edie.candlefire.org/~ritter/desktop-01.jpg" loading="lazy"  alt="[Image: desktop-01.jpg]" class="mycode_img" /><br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Hosting your own domain on Gentoo!]]></title>
			<link>https://www.linux-noob.com/forums/thread-2889.html</link>
			<pubDate>Thu, 27 Jan 2005 22:51:38 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=153">square</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-2889.html</guid>
			<description><![CDATA[<br />
This tutorial is for gentoo.. for a more general/fedora one try this by Jy:<br />
<br />
 <br />
<br />
<a href="http://&lt;___base_url___&gt;/index.php?showtopic=694" target="_blank" rel="noopener" class="mycode_url">[/url][url=&lt;___base_url___&gt;/index.php?showtopic=694]</a><a href="http://&lt;___base_url___&gt;/index.php?showtopic=694" target="_blank" rel="noopener" class="mycode_url">[/url][url=&lt;___base_url___&gt;/index.php?showtopic=694]https://www.linux-noob.com/forums/index.php?showtopic=694</a><br />
<br />
 <br />
<br />
otherwise for a more gentoo way...carry on reading...<br />
<br />
 <br />
<br />
before i say any more... i wanna say HI! its been a while since i've spent enough time online to write a tutorial.. but here goes.. i'm using Gentoo 2.6-gentoo-r6 here we go..<br />
<br />
 <br />
<br />
 <br />
<br />
 <br />
<br />
First off.. we need to install bind..and bind-tools (for dig/nslookup which we'll use near the end)<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>women root # emerge bind bind-tools</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
 <br />
<br />
this shouldnt take long.. i didnt have any dependencies so it was pretty quick.. you might want to add <span style="font-style: italic;" class="mycode_i">-pv</span> to see if there are gonna be loads and if you need to use <span style="font-style: italic;" class="mycode_i">USE </span> if you dont want things installed like so:<br />
<br />
 <br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>women root # emerge bind bind-tools -pv</code></div></div> <br />
These are the packages that I would merge, in order:<br />
 <br />
Calculating dependencies ...done!<br />
 <br />
[ebuild <br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
This tutorial is for gentoo.. for a more general/fedora one try this by Jy:<br />
<br />
 <br />
<br />
<a href="http://&lt;___base_url___&gt;/index.php?showtopic=694" target="_blank" rel="noopener" class="mycode_url">[/url][url=&lt;___base_url___&gt;/index.php?showtopic=694]</a><a href="http://&lt;___base_url___&gt;/index.php?showtopic=694" target="_blank" rel="noopener" class="mycode_url">[/url][url=&lt;___base_url___&gt;/index.php?showtopic=694]https://www.linux-noob.com/forums/index.php?showtopic=694</a><br />
<br />
 <br />
<br />
otherwise for a more gentoo way...carry on reading...<br />
<br />
 <br />
<br />
before i say any more... i wanna say HI! its been a while since i've spent enough time online to write a tutorial.. but here goes.. i'm using Gentoo 2.6-gentoo-r6 here we go..<br />
<br />
 <br />
<br />
 <br />
<br />
 <br />
<br />
First off.. we need to install bind..and bind-tools (for dig/nslookup which we'll use near the end)<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>women root # emerge bind bind-tools</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
 <br />
<br />
this shouldnt take long.. i didnt have any dependencies so it was pretty quick.. you might want to add <span style="font-style: italic;" class="mycode_i">-pv</span> to see if there are gonna be loads and if you need to use <span style="font-style: italic;" class="mycode_i">USE </span> if you dont want things installed like so:<br />
<br />
 <br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>women root # emerge bind bind-tools -pv</code></div></div> <br />
These are the packages that I would merge, in order:<br />
 <br />
Calculating dependencies ...done!<br />
 <br />
[ebuild <br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[too cool]]></title>
			<link>https://www.linux-noob.com/forums/thread-3022.html</link>
			<pubDate>Mon, 06 Dec 2004 04:58:30 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=7">P38</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-3022.html</guid>
			<description><![CDATA[<br />
Found in the gentoo forums:<br />
<br />
 <br />
<br />
To have a fallback IP address in case dhcp fails during your startup, set the following:<br />
<br />
 <br />
<br />
Edit /etc/conf.d/net.NIC and set up the following lines:<br />
<br />
 <br />
<br />
ifconfig_ethX="dhcp"<br />
<br />
 <br />
<br />
dhcpcd_ethX="-t 20"     # tells your dhcp-client to time out after 20 seconds<br />
<br />
 <br />
<br />
ifconfig_fallback_eth0="&lt;static IP&gt; netmask &lt;netmask&gt; broadcast &lt;broadcast&gt;"<br />
<br />
 <br />
<br />
 <br />
<br />
This can come in handy if you want the machine to fail-over to a set ip address.<br />
<br />
 <br />
<br />
P38<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
Found in the gentoo forums:<br />
<br />
 <br />
<br />
To have a fallback IP address in case dhcp fails during your startup, set the following:<br />
<br />
 <br />
<br />
Edit /etc/conf.d/net.NIC and set up the following lines:<br />
<br />
 <br />
<br />
ifconfig_ethX="dhcp"<br />
<br />
 <br />
<br />
dhcpcd_ethX="-t 20"     # tells your dhcp-client to time out after 20 seconds<br />
<br />
 <br />
<br />
ifconfig_fallback_eth0="&lt;static IP&gt; netmask &lt;netmask&gt; broadcast &lt;broadcast&gt;"<br />
<br />
 <br />
<br />
 <br />
<br />
This can come in handy if you want the machine to fail-over to a set ip address.<br />
<br />
 <br />
<br />
P38<br />
<br />
]]></content:encoded>
		</item>
	</channel>
</rss>