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 / 8771
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
Subject Poster Date
     Re: skimpydog-gentoo skimpydog 2009/12/29 19:46
       Re: skimpydog-gentoo skimpydog 2010/5/15 19:27
         Re: skimpydog-gentoo skimpydog 2010/11/23 22:33
 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