skimppimppin along! NEWS   FORUM   DOWNLOAD   LINKS    
HOME ACCOUNT PRIVATE MESSAGE  
Login
Username:

Password:


Lost Password?

Register now!

Main Menu

Search

skimpydog.com Forum Index
   Gentoo Base
  skimpydog-gentoo

Browsing this Thread:   1 Anonymous Users

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread Rated:  3 Votes
skimpydog-gentoo
#1
Webmaster
Joined: 2007/6/10
From Dallas, TX
Posts: 79
Level : 7
HP : 0 / 170
MP : 26 / 8767
EXP : 83
Group:
Webmasters
Registered Users
Offline
I can't give away all of everything with this - so you will have to either know what you are doing, or ask questions.

USE AT YOUR OWN RISK!! I will not be responsible if you lose all of your data because you didn't backup anything you might need first!!

"skimpydog-gentoo" is a custom build of Gentoo Linux (as are all customizable), and you may have a copy of it as well.

The installation is as easy as:

0: Boot to Gentoo Live CD (or what ever linux distro - even a live Linux system; you will need to be at a terminal prompt:
;~># _

1: Create your partitions ("swap", "/boot", "/"
See what partitions are currently created:
Example Output:
# fdisk -l

Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000db369

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1        2611    20972826    7  HPFS/NTFS
/dev/hda3   *        2612        2742     1052257+  83  Linux
/dev/hda4            2743       14593    95193157+   f  W95 Ext'd (LBA)
/dev/hda5            2743        2867     1004031   82  Linux swap / Solaris
/dev/hda6            2868       10737    63215743+  83  Linux
/dev/hda7           10738       14593    30973288+   7  HPFS/NTFS
Edit the disk:
# fdisk /dev/hda

Command (m for help): p

Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000db369

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1        2611    20972826    7  HPFS/NTFS
/dev/hda3   *        2612        2742     1052257+  83  Linux
/dev/hda4            2743       14593    95193157+   f  W95 Ext'd (LBA)
/dev/hda5            2743        2867     1004031   82  Linux swap / Solaris
/dev/hda6            2868       10737    63215743+  83  Linux
/dev/hda7           10738       14593    30973288+   7  HPFS/NTFS

Command (m for help): m
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

Command (m for help): q

-- Once you make changes in fdisk, they are not applied until you write the changes. If you intend to run multiple operating systems, DO NOT DELETE WHAT YOU NEED!!
**For example do not delete your c:\ drive if you intend to continue to run Windows as well.**
-- If this is an empty hard drive, or if the data on your hard drive is disposable, then you may make any necessary changes and do not have to worry about data loss.
--- I advise to have no less than 40GB setup for your "/" partition assuming you do not have multiple partitions for "/var", "/usr", "/usr/local", "/tmp" etc... If you utilize multiple partitions, be sure to allocate enough space for the partitions so you do not run out of space and have to resize the partitions.
-- If you require to resize your hard disk, I advise to use GParted. GParted may be obtained to put on CD, or USB flash drive. Simply boot to GParted instead of the Gentoo LiveCD for example, and resize the partitions. Then you may boot back to the LiveCD (which may offer more tools) and proceed with the installation once you have dedicated disk space for the install.

Partition sizes (these may be changed as long as they are not too small):
1GB - "/boot"
2GB - "swap space" (Virtual RAM which is much slower than RAM)
40GB - "/"

Be sure to enable swap:
# mkswap /dev/hda2

Turn on Swap:
# swapon /dev/hda2


Mount the partitions:
# mkdir /mnt/gentoo
# mount /dev/hda3 /mnt/gentoo
# mkdir /mnt/gentoo/boot
# mount /dev/hda1 /mnt/gentoo/boot
# cd /mnt/gentoo


2: Download the image (Located in the downloads, you can "wget" it if you know the url [You have to login first to view the downloads]). There are several large files that need to be downloaded (the last one is smaller).
# wget http://thelocation1 http://thelocation2 http://thelocation3

Verify the MD5 checksum is correct against the downloaded files (the hash is on the download page for the file):
# md5sum Gentoo-BackUp.10.11.2010.tar.bz2.*

Then merge these into one large file:
# cat Gentoo-BackUp.10.11.2010.tar.bz2.* > Gentoo-BackUp.10.11.2010.tar.bz2

Verify the MD5 checksum is correct against the final output file (the hash is on the download page for the file):
# md5sum Gentoo-BackUp.10.11.2010.tar.bz2


3: Extract image to the new "/"
# pwd
/mnt/gentoo
# ls
boot Gentoo-BackUp.10.11.2010.tar.bz2 lost+found
# tar xvpfj Gentoo-BackUp.10.11.2010.tar.bz2 -C ./


4: Install Grub
While you are booted to to gentoo Live CD::
# mount /dev/sda3 /mnt/gentoo
# mount /dev/sda1 /mnt/gentoo/boot
# mount -t proc none /mnt/gentoo/proc
# mount -o bind /dev /mnt/gentoo/dev
# chroot /mnt/gentoo
# env-update
# source /etc/profile

# grub
> find /boot/grub/stage1
> root (hdX,X)
> setup (hd0)
> quit

Example for editing /boot/grub/grub.conf
# vi /boot/grub/grub.conf
...
timeout 30
default 2
fallback 1
splashimage=/boot/grub/splash.xpm.gz

title Gentoo Linux
kernel (hd0,0)/boot/kernel-genkernel-x86-2.6.28-gentoo-r6 root=dev/ram0 init=linuxrc ramdisk=8192 real_root=/dev/hda4 vga=791 splash=silent
initrd (hd0,0)/boot/initramfs-genkernel-x86-2.6.28-gentoo-r6

title Windows
rootnoverify (hd0,2)
chainloader +1


5: Edit /etc/fstab
# vi /etc/fstab
...
/dev/hda1               /boot           ext3            noatime         1 2
/dev/hda3               /               ext3            noatime         0 1
/dev/hda2               none            swap            sw              0 0
/dev/cdrom              /mnt/cdrom      auto            exec,ro,user,noauto             0 0
#/dev/fd0               /mnt/floppy     auto            noauto          0 0
#/dev/hda7              /mnt/BackUp     ntfs            auto,uid=1000,gid=1000  1 2


6: Set your hostname:
# hostname HostName-YouWant
# vi /etc/conf.d/hostname


7: Setup Networking:
# vi /etc/conf.d/net.eth{1,2,3...}
# cd /etc/init.d/ ; ln -s net.lo net.{1,2,3}


8: Setup Video
-- This part can be tricky if you are not familiar with xorg, and related drivers & config files.
There are basically 2 parts to this, or more required to get your Video Hardware Acceleration working (even if you are just running the x11 drivers, not the proprietary drivers)
First, look at the available options (what's currently built in):
# eselect opengl list
You should see your options labeled:
[0] xorg-x11 *
[1] Nvidia
[2] mesa-cvs
[3] ati

If you don't see what you need listed, whereas you are running a totally different video card, or would like to use proprietary drivers (such as for a dual head card to keep hardware acceleration across both screens), then you will need to build these in, and edit the config files for xorg appropriately.

Then to set the opengl option:
# eselect opengl set 0

The Last thing that will need to be done is to make sure your /etc/X11/xorg.conf is configured properly for your Graphics Options as well.
- With skimpydog-gentoo I have built up a couple xorg.conf.*'s (located at /etc/X11/) as examples for using Intel, and nVidia cards with single and Dual Head.

Boot!!
reboot
Eject the CD when propmted

*If you receive errors upon boot, I will advise to review all of your settings based upon where it's messing up. It is possible your LiveCD reads your HardDisk as "hda", and the booted system reads your HardDisk as "sda"; you may be required to boot back to the LiveCD and modify these changes until you figure out what your computer requires - and if a kernel rebuild will be necessary, such as if your SCSI drivers are not built into the kernel.
You may be required to edit "/etc/fstab", and "/boot/grub/grub.conf" to meet your systems requirements if the system does not boot. These options are limitless, so pay close attention to detail.


This is full blown with compiz, MythTV, and other bells and whistles. Great for a laptop as there are many wifi tools already built in (as this was originally built on my notebook).

8: Change root password!!!
When you first login, use the username and password of root/p4ssw0rd!, you can change this once booted into the OS with:
# passwd root


9: Change MySQL password
# mysqladmin -u root -p'p4ssw0rd!' password NEWPASSWORD


10: Create regular User
To create a user, once booted or chrooted, run the script:
# sh /root/add_user.sh

-- this is a simple bash, and perl script that will grab the contents of "/etc/skel" while it creates the user. When you login with this user under X, it will default boot into gnome.
-- Using the add_user.sh script will also create the user to be nested in the required groups to be able to access resources

11: Configure your Sound card
As root, you will need to run ldconfig
$ su
Password:
# alsaconf

-- If you are told that user is not a part of the suoders list, then you will need to add the user to the list of suoders in /etc/group:
# vi /etc/group
append to the line:
wheel:x:10:root,USERNAME,USERNAME2

-- You will need to log-out and log-in for the changes to take effect.
exit



Since this has framebuffer support built in, you may want to reference the "/root/howto_rebuild_kernel-2.6.30-gentoo-r8" as reference, as well as using the .config with the kernel, by utilizing --oldconfig so you can keep relatively the same build making changes as necessary.

The default kernel is built for a P4, and is easily changed for other architectures as well.

I have the packages built around an Intel based ChipSet, with Intel Video utilizing the XFree86 drivers.

As there are no two systems that operate the same (unless you have several of the same chassis models, and you are copying this between them once you have one of them operating properly), there is a great chance you will need to tweak the configurations in every regard. This is not difficult as much as you may be required to boot to a LiveCD to make changes to the newly created environment in order to have a bootable system.
Posted on: 2009/10/29 17:37
Create PDF from Post Print
Top
Re: skimpydog-gentoo
#2
Webmaster
Joined: 2007/6/10
From Dallas, TX
Posts: 79
Level : 7
HP : 0 / 170
MP : 26 / 8767
EXP : 83
Group:
Webmasters
Registered Users
Offline
INSTALLER:

So this is an installer I have been working on, and I'm sure I can add more, and prolly fix a few bugs as I'm sure they exist as the more times I install this, I see more functionality that can be added, so please bear with me and I'll add functionality as time goes.

It's a simple bash script that can be run from a USB drive, or built onto a CD.

Create the script:
vi /home/skimpydog-gentoo-installer.sh

It should contain the following, and it may be modified to fit your needs:
#!/bin/bash
# Written by skimpydog
clear ; 
selection=
until [ "$selection" = "00" ]; do
    echo ""
    echo "$(tput setaf 7)$(tput bold)skimpydog Gentoo Installer and Profile BackUp Tool for Minimal Live DVD:"
    echo "Ver 1.3$(tput sgr 0)"
    echo ""
    echo "$(tput setaf 6)$(tput bold)Create Partitions and Format$(tput sgr 0)"
    echo "$(tput setaf 3)-- 1 - fdisk, mkfs.ext3 and mkswap$(tput sgr 0)"
    echo "$(tput setaf 6)$(tput bold)Mount partitions to /mnt/gentoo$(tput sgr 0)"
    echo "$(tput setaf 3)-- 2 - Mount Disk(s) in /mnt/gentoo$(tput sgr 0)"
    echo "$(tput setaf 6)$(tput bold)Gentoo Installation$(tput sgr 0)"
    echo "$(tput setaf 3)-- 3 - Decompress Image ~1-3 hour(s) - Depending on the speed of the computer (/mnt/gentoo/)$(tput sgr 0)"
    echo "$(tput setaf 6)$(tput bold)Prepare environment$(tput sgr 0)"
    echo "$(tput setaf 3)-- 4 - Prep for chroot (chroot /mnt/gentoo)$(tput sgr 0)"
    echo "$(tput setaf 6)$(tput bold)Grub setup steps$(tput sgr 0)"
    echo "$(tput setaf 3)-- 5 - Grub setup steps once chrooted...$(tput sgr 0)"
    echo ""
    echo "$(tput setaf 6)$(tput bold)Users and Passwords$(tput sgr 0)"
    echo "$(tput setaf 3)-- 6 - Echo Default root passwd$(tput sgr 0)"
    echo "$(tput setaf 3)-- 7 - Creating new Users$(tput sgr 0)"
    echo ""
    echo "$(tput setaf 6)$(tput bold)BackUp - This should only be run from the LiveDVD$(tput sgr 0)"
    echo "$(tput setaf 3)-- 20 - Mount BackUp Destination (Use Step 2 before running)$(tput sgr 0)"
    echo "$(tput setaf 3)-- 21 - BackUp profiles from a system that you have mounted to /mnt/gentoo (Use step 2, and 20 before running)$(tput sgr 0)"
    echo ""
    echo "$(tput setaf 6)$(tput bold)UnMount or prepare to reboot$(tput sgr 0)"
    echo "$(tput setaf 3)-- 01 - Attempt to unmount everything this script may have mounted!!$(tput sgr 0)"
    echo ""
    echo "$(tput setaf 3)00 - exit this installer$(tput sgr 0)"
    echo ""
    echo -n "$(tput setaf 1)$(tput bold)Enter numeric selection: $(tput sgr 0)"
    read selection
    echo ""
    case $selection in
    1 ) clear ;
        echo "$(tput setaf 6)$(tput bold)Be sure you make a <swap> partition, set the type of FileSystem to be used, and to set the boot partition to be bootable!$(tput sgr 0)" ;
	echo "---";
        echo "$(tput setaf 6)Normally this will be such as:$(tput sgr 0)";
        echo "";
        echo "$(tput setaf 7)$(tput bold)/dev/sda1 -> /boot == +200M - Type 83 (Linux EXT3 FileSystem)";
        echo "/dev/sda2 -> <swap> == +1024M - Type 82 (Linux Swap FileSystem)";
        echo "/dev/sda3 -> / == Rest of Drive (No Smaller than 10GB) - Type 83 (Linux EXT3 FileSystem)$(tput sgr 0)";
        echo "------";
	echo "$(tput setaf 6)Using fdisk once it's loaded, after you choose the disk to edit:";
	echo "p = Print Current partition Table"
	echo "d = Delete Partition"
	echo "n = New Partition";
	echo "t = Change FileSystem Type";
	echo "a = toggle bootable flag"
	echo "m = help$(tput sgr 0)";
	echo "------";
	fdisk -l ;
	echo "";
        echo "$(tput setaf 6)Choose a disk to edit for the installation - (ex. /dev/sda), then fdisk will launch...:$(tput sgr 0)" ;
	echo "------";
	read disk ; fdisk $disk ;
	clear ;
	fdisk -l ;
	echo "" ;
	echo "------";
	echo "$(tput setaf 6)Which partition is '/' ?$(tput sgr 0)" ;
	echo "";
	read root ; mkfs.ext3 $root ;
	clear ; fdisk -l ;
	echo "";
        echo "------";
	echo "$(tput setaf 6)which partition is /boot ?$(tput sgr 0)" ;
	echo "";
	read boot ; mkfs.ext3 $boot ;
	clear ; fdisk -l ;
	echo "";
        echo "------";
	echo "$(tput setaf 6)Which partition is <swap> ?$(tput sgr 0)" ;
	echo "";
	read swap ; mkswap $swap ; swapon $swap ; clear ;;
    2 ) clear ; mkdir -p /mnt/gentoo;
    		echo "" ;
    		echo "$(tput setaf 6)mkdir -p /mnt/gentoo$(tput sgr 0)" ;
    		echo "....." ;
	fdisk -l ;
	echo "";
	echo "$(tput setaf 6)Choose your '/' partition (ex. /dev/sda3):$(tput sgr 0)" ;
	echo "";
	read root ; mount $root /mnt/gentoo/ ;
		echo "" ;
		echo "$(tput setaf 6)mount $root /mnt/gentoo/$(tput sgr 0)" ;
	echo "$(tput setaf 6)Please confirm your '/boot' partition (ex /dev/sda1) :$(tput sgr 0)" ;
		read boot ; mkdir -p /mnt/gentoo/boot/ ;
		mount $boot /mnt/gentoo/boot/ ;
		echo "" ;
		echo "$(tput setaf 6)mount $boot /mnt/gentoo/boot/$(tput sgr 0)" ;
	echo "$(tput setaf 6)Swap should already be enabled, let's be sure:$(tput sgr 0)" ;
		echo "$(tput setaf 6)Which partition is '<swap>' ?$(tput sgr 0)" ;
		read swap ; swapon $swap ; clear ;;
    3 ) clear ;
	echo "$(tput setaf 6)The compressed skimpydog-gentoo-01.23.2012.tar.bz2 on the root of the DVD:$(tput sgr 0)" ;
	echo "$(tput setaf 6) -- If You have not already mounted the partitions, you should do so at this time...$(tput sgr 0)" ;
	echo "";
	mount | grep /mnt/gentoo
	echo "";
	echo "";
	echo "$(tput setaf 7)^^^ $(tput setaf 6)If the line above this line is empty, then the partitions are not mounted."
	echo "Does this look Correct?$(tput sgr 0)" ;
	echo "";
	echo "$(tput setaf 1)[yes/no] - Type in 'yes' or 'no'...$(tput sgr 0)" ;
	echo "$(tput setaf 7)-- Answers other than 'yes' will take you back to the menu....$(tput sgr 0)"
	echo "$(tput setaf 7)--- [This is to Protect your computer in case You are not ready, or if you are unsure...]$(tput sgr 0)";
	echo -n "";
	read lookmounted ; 
	        if [ $lookmounted == "yes" ] ; then
        	        tar xvfjp /mnt/cdrom/skimpydog-gentoo-01.23.2012.tar.bz2 -C /mnt/gentoo/ ;
			clear ;
        	else
			clear ; 
                	echo "$(tput setaf 6)Going back...$(tput sgr 0)" ;
			echo "$(tput setaf 6)Be sure to mount the partitions before continuing...$(tput sgr 0)" ;
			echo "$(tput setaf 1)Returning to Menu:" ; echo "...4" ; sleep 1 ; echo "..3" ; sleep 1 ; echo ".2" ; sleep 1 ; echo "1$(tput sgr 0)" ; sleep 1 ; 
			clear ;
        	fi
	;;
    4 ) clear ; 
	echo "$(tput setaf 6)Preping Chroot..." ; sleep 2 ;
	mount -t proc none /mnt/gentoo/proc ;
    		echo "" ;
    		echo "mount -t proc none /mnt/gentoo/proc" ;
    	mount -o bind /dev /mnt/gentoo/dev ;
		echo "mount -o bind /dev /mnt/gentoo/dev" ;
		echo "" ;
		echo "..." ;
		echo "You may chroot at this time." ;
		echo "First exit this application..." ;
		echo "Then run:" ;
		echo "chroot /mnt/gentoo" ;
		echo "..." ;
        echo "After you chroot /mnt/gentoo, be sure to issue the following commands:" ;
                echo "" ;
                echo "env-update" ;
                echo "source /etc/profile$(tput sgr 0)" ; clear ;;

    5 ) clear ;
	echo "$(tput setaf 6)Once you are chrooted, perform the following for the grub installation:" ;
	echo "";
	echo "grub";
	echo "find /boot/grub/stage1";
	echo "root (hdX,X)";
	echo "setup (hd0)";
	echo "quit";
	echo "";
	echo "Sleeping for 10 seconds while you read/write, copy this if you need......$(tput sgr 0)" ; sleep 10 ; clear;;
    6 ) clear ;
	echo "$(tput setaf 6)The default root password is:";
	echo "";
	echo "p455w0rd!";
	echo "";
	echo "If you need to change this, while you are chrooted, type in:";
	echo "";
	echo "passwd root";
	echo "";
	echo "Sleeping for 10 seconds while you read/write, copy this if you need......$(tput sgr 0)" ; sleep 10 ; clear ;;
    7 ) clear ;
	echo "$(tput setaf 6)There are two methods for creating new users:";
	echo "";
	echo "1: sh /home/scripts/add_user.sh";
	echo "2: useradd USERNAME";
	echo "";
	echo "To change a users password, use the passwd command as follows:";
	echo "passwd USERNAME";
	echo "";
	echo "Sleeping for 10 seconds while you read/write, copy this if you need......$(tput sgr 0)" ; sleep 10 ; clear ;;
    20 )  clear ; 
		echo "$(tput setaf 6)BackUp - Please note:$(tput sgr 0)";
		echo "";
		echo "$(tput setaf 1)When performing the BackUp Operation, there are a few constraints that should be noted, and understood.$(tput sgr 0)";
		echo "";
		echo "$(tput setaf 7)1: The BackUp location (where you are backing up to) should have MORE diskspace available than the entire size of the /home [partition|directory].";
		echo "2: You may BackUp to a Hard Disk, or USB device as long as it is larger than '/home' there should be no issues.";
		echo "-- it would be a wise idea to NOT have the BackUp destination as a drive you wish to format, or destroy$(tput sgr 0)";
		echo "$(tput setaf 6)This script will attempt to mount your BackUp destination to /mnt/BackUp$(tput sgr 0)";
		echo "";
		echo "$(tput setaf 6)This may take a moment to calculate...$(tput sgr 0)";
		echo "------";
                echo -n "$(tput setaf 6)Total Size of '/home':  $(tput sgr 0)";
		du -hs /mnt/gentoo/home;
		echo "";
		echo "------";
		echo "";
		echo "$(tput setaf 6)Available partitions:$(tput sgr 0)";
			fdisk -l;
		echo "------ ___ ------";
		echo "";
		echo "$(tput setaf 6)Please choose a partition to mount for your BackUp destination [Ex: /dev/sdb1]:$(tput sgr 0)";
		read BackUpDestination;
		echo "$(tput setaf 6)mkdir /mnt/BackUp$(tput sgr 0)";
			mkdir /mnt/BackUp;
		echo "$(tput setaf 6)mount $BackUpDesination /mnt/BackUp$(tput sgr 0)";
			mount $BackUpDesination /mnt/BackUp ; sleep 3 ; clear ;;
    21 )  clear ;
		echo "$(tput setaf 6)Copy profiles from Mounted system?$(tput sgr 0)";
    		echo "$(tput setaf 6)Compressing /mnt/gentoo/etc/{passwd,group,shadow,gshadow} to /mnt/BackUp$(tput sgr 0)";
		tar cvpjf /mnt/BackUp/passwd.tar.bz2 /mnt/gentoo/etc/passwd;
		tar cvpjf /mnt/BackUp/group.tar.bz2 /mnt/gentoo/etc/group;
		tar cvpjf /mnt/BackUp/shadow.tar.bz2 /mnt/gentoo/etc/shadow;
		tar cvpjf /mnt/BackUp/gshadow.tar.bz2 /mnt/gentoo/etc/gshadow;
		tar cvpjf /mnt/BackUp/home-BackUp.tar.bz2 /mnt/BackUp/home ; clear ;;
    01 ) clear ;
		echo "$(tput setaf 6)umount everything this script provides:$(tput sgr 0)";
    		umount /mnt/gentoo/boot ;
    		umount /mnt/gentoo/proc;
		umount /mnt/gentoo/dev;
		umount /mnt/gentoo/sys;
		umount /mnt/gentoo;
		umount /mnt/BackUp ; clear ;;
    00 ) exit ;;
    * ) echo "$(tput setaf 1)Please choose an option:$(tput sgr 0)"
    esac
done


Execute the script:
sh /home/skimpydog-gentoo-installer.sh
Posted on: 2009/12/29 19:46
Create PDF from Post Print
Top
Re: skimpydog-gentoo
#3
Webmaster
Joined: 2007/6/10
From Dallas, TX
Posts: 79
Level : 7
HP : 0 / 170
MP : 26 / 8767
EXP : 83
Group:
Webmasters
Registered Users
Offline
Assuming you are using skimpydog-gentoo, or not but you are using gentoo, and you replace your NIC, or copy your existing OS to another computer, and you notice the NIC now has the name of "eth1", or "eth2" or even a higher number; but you want your NIC to be "eth0" as it is the only NIC.

As stated after compiling udev:

 * If after the udev update removable devices or CD/DVD drives
 * stop working, try re-emerging HAL before filling a bug report
 * 
 * persistent-net does assigning fixed names to network devices.
 * If you have problems with the persistent-net rules,
 * just delete the rules file
 * 	rm /etc/udev/rules.d/70-persistent-net.rules
 * and then reboot.
 * 
 * This may however number your devices in a different way than they are now.


so; rm /etc/udev/rules.d/70-persistent-net.rules
Posted on: 2010/5/15 19:27
Create PDF from Post Print
Top
Re: skimpydog-gentoo
#4
Webmaster
Joined: 2007/6/10
From Dallas, TX
Posts: 79
Level : 7
HP : 0 / 170
MP : 26 / 8767
EXP : 83
Group:
Webmasters
Registered Users
Offline
So you know, you start screwing around with a few things, and forget to do a revdep-rebuild every so often after making a lot-o-changes...

Gentoo username # revdep-rebuild 
 * Configuring search environment for revdep-rebuild

 * Checking reverse dependencies
 * Packages containing binaries and libraries broken by a package update
 * will be emerged.

 * Collecting system binaries and libraries
 * Found existing 1_files.rr
 * Collecting complete LD_LIBRARY_PATH
 * Found existing 2_ldpath.rr.
 * Checking dynamic linking consistency
[ 100% ]                 

 * Dynamic linking on your system is consistent... All done.


This may be problematic, and if it is, work with what you can. If you are new to working with Gentoo, or linux for that, if this cannot rebuild with out errors; inotherwords you cannot complete the revdep-rebuild (once packages are re-emerged), you may want to look into sanitizing your "/etc/portage/package.*", for example:

username@Gentoo ~ $ grep "/" /etc/portage/package.*
/etc/portage/package.keywords:dev-python/compizconfig-python 
/etc/portage/package.keywords:x11-wm/compiz 
/etc/portage/package.keywords:x11-wm/compiz-fusion 
/etc/portage/package.keywords:x11-plugins/compiz-plugins-main
/etc/portage/package.keywords:x11-plugins/compiz-plugins-extra
/etc/portage/package.keywords:x11-plugins/compiz-plugins-unsupported
/etc/portage/package.keywords:x11-wm/emerald 
/etc/portage/package.keywords:x11-themes/emerald-themes 
/etc/portage/package.keywords:x11-apps/ccsm 
/etc/portage/package.keywords:x11-libs/libcompizconfig 
/etc/portage/package.keywords:x11-libs/compizconfig-backend-gconf 
/etc/portage/package.keywords:x11-libs/compizconfig-backend-kconfig4 
/etc/portage/package.keywords:x11-libs/compiz-bcop
/etc/portage/package.keywords:x11-apps/simple-ccsm
/etc/portage/package.keywords:x11-apps/fusion-icon
/etc/portage/package.keywords:#app-admin/system-tools-backends
/etc/portage/package.keywords:#app-admin/system-tools
/etc/portage/package.keywords:dev-libs/liboobs
/etc/portage/package.keywords:=www-client/chromium-bin-9999 **
/etc/portage/package.keywords:=media-video/ffmpeg-0.5_p22846
/etc/portage/package.keywords:dev-util/intltool
/etc/portage/package.keywords:dev-libs/protobuf
/etc/portage/package.keywords:x11-themes/mythtv-themes-extra
/etc/portage/package.keywords:x11-themes/mythtv-themes
/etc/portage/package.keywords:media-tv/mythtv
/etc/portage/package.keywords:media-plugins/mythvideo
/etc/portage/package.keywords:media-plugins/mythnews
/etc/portage/package.keywords:media-plugins/mythmusic
/etc/portage/package.keywords:media-plugins/mythgallery
/etc/portage/package.keywords:media-plugins/mythbrowser
/etc/portage/package.keywords:media-plugins/mythgame
/etc/portage/package.keywords:media-plugins/mytharchive
/etc/portage/package.keywords:www-apps/mythweb
/etc/portage/package.keywords:app-misc/lirc ~x86

/etc/portage/package.mask:>sys-kernel/gentoo-sources-2.6.28-r6
/etc/portage/package.mask:>x11-libs/libdrm-2.4.18_pre20100211-r1
/etc/portage/package.mask:>media-libs/mesa-7.7.1
/etc/portage/package.mask:>x11-drivers/nvidia-drivers-174.0.0

/etc/portage/package.mask.old:>dev-lang/python-2.8
/etc/portage/package.mask.old:>dev-python/pycairo-1.4.12
/etc/portage/package.mask.old:#>sys-fs/udev-126
/etc/portage/package.mask.old:>dev-python/gnome-python-base-2.26.1
/etc/portage/package.mask.old:>dev-python/gnome-desktop-python-2.26.0
/etc/portage/package.mask.old:>dev-python/libgnomecanvas-python-2.26.1
/etc/portage/package.mask.old:>dev-python/libgnomeprint-python-2.26.0
/etc/portage/package.mask.old:>media-sound/alsa-utils-1.0.17
/etc/portage/package.mask.old:>dev-python/gnome-python-desktop-base-2.26.0
/etc/portage/package.mask.old:>dev-python/gnome-keyring-python-2.26.0
/etc/portage/package.mask.old:>dev-python/libwnck-python-2.26.0
/etc/portage/package.mask.old:>gnome-base/gnome-control-center-2.26.0-r1
/etc/portage/package.mask.old:>gnome-base/gnome-2.26.3
/etc/portage/package.mask.old:>gnome-base/gnome-panel-2.26.3
/etc/portage/package.mask.old:>gnome-base/gnome-menus-2.26.2
/etc/portage/package.mask.old:>gnome-base/gnome-desktop-2.26.3
/etc/portage/package.mask.old:>gnome-base/nautilus-2.26.4-r1
/etc/portage/package.mask.old:>gnome-base/librsvg-2.26.0
/etc/portage/package.mask.old:>gnome-base/gnome-settings-daemon-2.26.1-r2
/etc/portage/package.mask.old:>gnome-base/gnome-keyring-2.26.3
/etc/portage/package.mask.old:>gnome-extra/gnome-screensaver-2.26.1-r1
/etc/portage/package.mask.old:>gnome-extra/gnome-media-2.26.0-r1
/etc/portage/package.mask.old:>gnome-extra/evolution-exchange-2.26.3
/etc/portage/package.mask.old:>gnome-extra/gconf-editor-2.26.0
/etc/portage/package.mask.old:>gnome-extra/deskbar-applet-2.26.2-r1
/etc/portage/package.mask.old:>gnome-extra/at-spi-1.26.0
/etc/portage/package.mask.old:>gnome-extra/bug-buddy-2.26.0
/etc/portage/package.mask.old:>media-video/totem-2.26.5-r1
/etc/portage/package.mask.old:>media-sound/sound-juicer-2.26.2
/etc/portage/package.mask.old:#>x11-drivers/xf86-video-intel-2.6.3-r1
/etc/portage/package.mask.old:#>x11-base/xorg-server-1.5.3-r6
/etc/portage/package.mask.old:>=x11-drivers/nvidia-drivers-174.0.0
/etc/portage/package.mask.old:>=sys-apps/baselayout-1.12.11.2
/etc/portage/package.mask.old:>media-libs/gst-plugins-base-0.10.29
/etc/portage/package.mask.old:>media-libs/gstreamer-0.10.29
/etc/portage/package.mask.old:>media-libs/libcanberra-0.22
/etc/portage/package.mask.old:>www-client/epiphany-2.26.3-r4
/etc/portage/package.mask.old:#>dev-libs/glib-2.24.1-r1
/etc/portage/package.mask.old:>dev-libs/glib-2.22.4
/etc/portage/package.mask.old:>x11-libs/gtk+-2.18.6
/etc/portage/package.mask.old:>x11-libs/libwnck-2.26.2-r2
/etc/portage/package.mask.old:>app-editors/gedit-2.26.3-r1
/etc/portage/package.mask.old:>mail-client/evolution-2.26.3
/etc/portage/package.mask.old:>app-cdr/brasero-2.26.3

/etc/portage/package.unmask:=app-admin/gnome-system-tools-2.20.0
/etc/portage/package.unmask:=app-admin/system-tools-backends-2.6.1-r1
/etc/portage/package.unmask:=dev-libs/liboobs-2.20.0
/etc/portage/package.unmask:=media-sound/alsa-utils-1.0.21-r1
/etc/portage/package.unmask:=media-tv/v4l-dvb-hg-0.1-r3
/etc/portage/package.unmask:=gnome-extra/nautilus-cd-burner-2.24.0
/etc/portage/package.unmask:#=gnome-base/eel-2.24.1

/etc/portage/package.use:gnome-base/gnome-sesion branding
/etc/portage/package.use:mail-mta/exim ssl sasl exiscan-acl ldap
username@Gentoo ~ $ 


You can have a pretty hefty /etc/make.conf (I had to break the txt formatting for this, so do beware):
username@Gentoo ~ $ cat /etc/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
CFLAGS="-O2 -march=i686 -pipe"
CXXFLAGS="-O2 -march=i686 -pipe"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i686-pc-linux-gnu"
USE="fontconfig static-libs PYTHON_DEPEND vhosts thumbnail
 gstreamer  networkmanager wmf iphone device-mapper sqlite
 gdu policykit ppds syslog mbx nss session  jack lirc 
elibc_glibc kernel_linux lirc_devices_hauppauge userland_GNU
 x86 lirc_devices_mceusb2 na_dd na_dtv na_icons tv_check 
hashlib imagemagick extras gmplayer tv v4l v4l2 fame mjpeg
 encode aqua_theme dv lame analogtv dvbplayer dvbsetup 
dvdarchive dvdchapjump dvlfriendlyfnames iptv qt3support 
additions bindist sse2 threads fbcondecor flac mad ogg 
theora vorbis dvb Azur Cobalt Djoole Glattering I_Cairo 
MacOSX TapisVert Ubuntu Verde Wood -gnome-keyring latex3 
music omega pstricks publishers science tex4ht xetex xindy 
builder texlive exif bonjour ipod musicbrainz bash-
completion bluetooth gphoto2 fuse chaplin dvdr dvdrip a52 
cdaudio cdda wavpack wma sndfile fam resolvconf dhcpcd mail 
powermanager shortcuts showDesklets showDesktop slider 
stacks switcher systray terminal tomboy weather wifi xmms 
alsaMixer clock cpusage dustbin gauge-test Cairo-Penguin 
Dbus logout netspeed compiz-icon win32codecs gnomecd sound 
dri autoipd usb xv xvid consolekit compiz-fusion themes 
rendering gnome-integration divx subtitles quicktime 
realmedia wmp en_US gmedia branding emerald mmx mikmod 
cleartype directfb joystick glitz svg english gd samba gnome
 zip pcre posix json spl mysql apache2 php ffmpeg raw 
win32codex ftp mg2 cgi spell xml bzip2 tar.gz acpi curl pdf 
dvdread avi mpg mpeg jadetex truetype vim mp3 utils -selinux
 java Xaw3d laptop dvd cups zlib jpeg jpeg2k gif bmp png jpg
 python dbus tetex hal gtk gnome opengl cairo -arts -qt3 qt4
 -kde alsa cdr e16 enlightenment X glibc Locales 
mdnsresponder-compat"
INPUT_DEVICES="keyboard mouse evdev synaptics vmmouse joystick virtualbox"
VIDEO_CARDS="intel radeon nv voodoo fbdev sis tdfx trident 
vesa vmware glint nvidia"
LINGUAS="en_US en"
CAMERAS="adc65 agfa_cl20 aox barbie canon casio_qv 
clicksmart310 digigr8 digita dimagev dimera3500 directory 
enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a 
kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200
 konica konica_qm150 largan lg_gsm mars mustek 
panasonic_coolshot panasonic_dc1000 panasonic_dc1580 
panasonic_l859 pccam300 pccam600 polaroid_pdc320 
polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung 
sierra sipix_blink sipix_blink2 sipix_web2 smal sonix 
sony_dscf1 sony_dscf55 soundvision spca50x sq905 stv0674 
stv0680 sx330z template topfield toshiba_pdrm11"

DVB_CARDS="cx18 cx231xx cx23885"
source /usr/local/portage/layman/make.conf
PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /usr/local/portage/ /usr/local/portage/cairo-dock-overlay/"
# Accept any license
ACCEPT_LICENSE="*"
LIRC_DEVICES="hauppauge"

username@Gentoo ~ $ 
Posted on: 2010/11/23 22:33
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.
Links