How To Install Gentoo From Live Cd
Installing Gentoo Linux (Alive CD 2005.1)
Overview
Gentoo Linux ia a special flavor of Linux that can exist automatically optimized and customized for simply most any application or need. Extreme performance,
configurability and a summit-notch user and developer community are all hallmarks of the Gentoo feel.
Thanks to a applied science chosen Portage, Gentoo Linux can become an platonic secure server, development workstation, professional desktop, gaming system, embedded solution or something else -- whatever you demand information technology to be.
This is a short installation log for Gentoo (2005.one).
Gentoo Reference Platform GRP
The Gentoo Reference Platform, from at present on abbreviated to GRP, is a snapshot of prebuilt packages users (that ways you!) can install during the installation of Gentoo to speed up the installation process. The GRP consists of all packages required to have a fully functional Gentoo installation. They are not just the ones you demand to have a base installation upwardly to speed in no fourth dimension, only all lengthier builds (such as KDE, xorg-x11, GNOME, OpenOffice, Mozilla, ...) are available as GRP packages too.
Still, these prebuilt packages aren't maintained during the lifetime of the Gentoo distribution. They are snapshots released at every Gentoo release and make it possible to have a functional environment in a short corporeality of time. You lot can so upgrade your system in the background while working in your Gentoo environment.
How Portage Handles GRP Packages
Your Portage tree - the collection of ebuilds (files that incorporate all data near a package, such equally its description, homepage, sourcecode URLs, compilation instructions, dependencies, etc.) - must be synchronised with the GRP ready: the versions of the available ebuilds and their accompanying GRP packages must match.
For this reason yous will have to install a Portage snapshot instead of synchronising Portage with the latest available tree if you want to use the GRP installation method.
Installation Log
Burn the downloaded Image to CD-ROM
If you utilise Nero CD-Burner:
Copy ISO Files to your local PC
Click Menu: File
Click Carte du jour: Burn down Image
Select the ISO Image and start buring
Initial Setup from CD
Download the Universal Installation CD chosen install-x86-universal-2005.1.iso and fire it on CD, so boot from the CD, and beginning the SSH-Daemon:
/etc/init.d/sshd offset
passwd rootLoad Swiss-German Keyboard Mapping:
cd /usr/share/keymaps/i386/qwertz
loadkeys sg-latin1
Loading ./sg-latin1.map.gzShow loaded Modules:
lsmod
One thousandodule Size Used past
ipv6 185472 12
floppy 44912 0
rtc 8488 0
evdev 6368 0
aic79xx 204988 0
e1000 63652 0
parport_pc 27876 0
parport 22088 1 parport_pc
ahci 7604 0
sata_qstor 6100 0
sata_uli 4368 0
sata_sis 4240 0
sata_sx4 9716 0
sata_nv 5620 0
sata_via 5364 0
sata_svw 4596 0
sata_sil 5620 0
sata_promise 6900 0
libata 27700 x ahci,sata_qstor,sata_uli,sata_sis,sata_sx4,
sata_nv,sata_via,sata_svw,sata_sil,sata_promise
dm_mirror 15320 0
dm_mod 38080 1 dm_mirror
sbp2 16920 0
ohci1394 25812 0
ieee1394 59704 2 sbp2,ohci1394
sl811_hcd 9392 0
ohci_hcd 15384 0
uhci_hcd 23936 0
usb_storage 47680 0
usbhid 25696 0
ehci_hcd 22872 0
usbcore 75064 7 sl811_hcd,ohci_hcd,uhci_hcd,usb_storage,usbhid,ehci_hcd
Manual Network Configuration
When the Installation CD boots, it tries to detect all your hardware devices and loads the appropriate kernel modules (drivers) to back up your hardware. In the vast majority of cases, it does a very good task. However, in some cases, it may not auto-load the kernel modules you need.
If cyberspace-setup eth0 failed, then it is possible that your network bill of fare wasn't found immediately. This means you may have to load the advisable kernel modules manually.
To find out what kernel modules nosotros provide for networking, employ ls:
ls /lib/modules/`uname -r`/kernel/drivers/net
If you detect a commuter for your network menu, use modprobe to load the kernel module:
(Equally an example, we load the pcnet32 module)
modprobe pcnet32
To check if your network card is now detected, employ ifconfig. A detected network bill of fare would result in something similar this:
ifconfig eth0
Disk Configuration
fdisk /dev/sda
fdisk /dev/sdbWe need to make this sectionalisation bootable. Type 'a' to toggle the bootable flag on this sectionalization. If yous press p again, you will notice that an * is placed in the "Boot" cavalcade. To salve the segmentation layout and exit fdisk, type 'due west' .
Command (one thousand for help): p
Deejay /dev/sda: 36.vii GB, 36703934464 bytes
255 heads, 63 sectors/track, 4462 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytesDevice Kicking Outset Terminate Blocks Id System
/dev/sda1 * i 200 1606468+ 83 Linux
/dev/sda2 201 1024 6618780 82 Linux swap
/dev/sda3 1025 4462 27615735 83 Linux
Create EXT3 Filesystems
mke2fs -j /dev/sda1
mke2fs -j /dev/sda3
mke2fs -j /dev/sdb1
Activate the Bandy Segmentation
mkswap /dev/sda2
swapon /dev/sda2
Mount the Partitions
mount /dev/sda3 /mnt/gentoo
mkdir /mnt/gentoo/kicking
mount /dev/sda1 /mnt/gentoo/kicking
mkdir /mnt/gentoo/proc
mount -t proc none /mnt/gentoo/proc
mkdir /mnt/gentoo/u01
mountain /dev/sdb1 /mnt/gentoo/u01
Using Phase iii from the LiveCD
cd /mnt/gentoo
ls /mnt/cdrom/stages
tar -xvjpf /mnt/cdrom/stages/stage3-<subarch>-2005.1.tar.bz2
Installing a Portage Snapshot and Source Lawmaking from LiveCD
ls /mnt/cdrom/snapshot
cd /mnt/gentoo
tar -xvjf /mnt/cdrom/snapshot/portage-<date>.tar.bz2 -C /mnt/gentoo/usr
Copy Source Code Archives
mkdir -p /mnt/gentoo/usr/portage/distfiles
cp /mnt/cdrom/distfiles/* /mnt/gentoo/usr/portage/distfiles/
Configuring the Compile Options
To optimize Gentoo, you tin set a couple of variables which bear upon Portage behaviour. All those variables tin can be ready every bit environment variables (using consign) but that isn't permanent. To keep your settings, Portage provides you with /etc/brand.conf, a configuration file for Portage. It is this file we will edit now.
nano -westward /mnt/gentoo/etc/make.conf Employ="apache2 berkdb -canna -cdr -cjk -bonobo -dvd -dvdr readline imap
java qt kde ldap maildir ssl mbox mysql pam perl sasl zlib
X -arts -nas -esd -arts -gtk -gnome -alsa"CHOST="i686-pc-linux-gnu"
Chrooting
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
Chrooting is done in three steps. Offset we will change the root from / (on the installation medium) to /mnt/gentoo (on your partitions) using chroot. Then we will create a new surround using env-update, which essentially creates surroundings variables. Finally, we load those variables into retentiveness using source.
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
Create an Optimized Kernel
Manually configuring a kernel is ofttimes seen equally the most difficult procedure a Linux user always has to perform. Nothing is less true -- later configuring a couple of kernels you lot don't even remember that information technology was difficult ;)
cd /etc
ln -sf /usr/share/zoneinfo/Europe/Zurich /etc/localtimeHowever, one matter is true: you must know your system when you start configuring a kernel manually. Most information can be gathered by viewing the contents of /proc/pci (or past using lspci if available). You lot tin can also run lsmod to run into what kernel modules the Installation CD uses (information technology might provide y'all with a prissy hint on what to enable).
cd /usr/src
emerge gentoo-sources
ls -50 /usr/src/linuxcd /usr/src/linux
make menuconfig
make
make modules_install
cp Arrangement.map /boot/System.map-2.6.12-Akadia
cp curvation/i386/boot/bzImage /boot/kernel-2.half-dozen.12-Akadia
cp .config /boot/ kernel-2.half-dozen.12-Akadia.cfgcd /boot
ls -fiftylrwxrwxrwx 1 root root i Sep 2 18:07 boot -> ./
drwxr-xr-x 2 root root 1024 Sep ii 23:fourteen grub/
-rw-r--r-- i root root 1582003 Sep iii eleven:31 kernel-2.6.12-Akadia
-rw-r--r-- 1 root root 31989 Sep 3 11:52 kernel-two.6.12-Akadia.cfg
-rw-r--r-- ane root root 37800 Sep two 18:29 kernel-two.six.12-CDROM.cfg
drwx------ 2 root root 12288 Sep one 20:11 lost+found/
lrwxrwxrwx ane root root 24 Sep ii 23:sixteen System.map -> Organisation.map-two.6.12-Akadia
-rw-r--r-- 1 root root 765778 Sep 3 eleven:31 System.map-2.vi.12-Akadia50inux Base Driver for the Intel(R) PRO/1000 Family of Adapters (e1000)
i. Move the base driver tar file to the directory of your option.
/usr/local/src/e1000.2. Untar/unzip archive:
tar zxf e1000-5.7.6.tar.gz
3. Change to the driver src directory:
cd e1000-5.seven.6/src/
4. Compile the driver module:
make
make installThe binary will exist installed equally:
/lib/modules/<KERNEL VERSION>/kernel/drivers/internet/e1000/e1000.[k]o
Y'all should list the modules you want automatically loaded in /etc/modules.autoload.d/kernel-ii. 6.
find /lib/modules/2.half dozen.xi-gentoo-r3 -type f -iname '*.o' -or -iname '*.ko'
cd /etc/modules.autoload.d
nano -w kernel-2.six
e1000
Filesystem Information
cd /etc
cp fstab fstab.orig
nano -w /etc/fstab/dev/sda3 / ext3 defaults ane 1
/dev/sda1 /kick ext3 defaults ane 2
/dev/sda2 swap bandy defaults 0 0
/dev/sdb1 /u01 ext3 defaults 1 3
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
/dev/fd0 /mnt/floppy auto noauto 0 0
none /var/tempfs tmpfs defaults 0 0
due southhm /dev/shm tmpfs nodev,nosuid,noexec 0 0
Hostname, Domainname
Setup Hostname in /etc/conf.d/hostname
HOSTNAME="quasar"
Setup the DNS Domainname in /etc/conf.d/domainname
DNSDOMAIN="hsz.akadia.com"
Networking
nano -w /etc/conf.d/cyberspace
config_eth0=( "192.168.138.111 netmask 255.255.255.0 broadcast 192.168.138.255" )
config_eth1=( "192.168.138.112 netmask 255.255.255.0 broadcast 192.168.138.255" )
routes_eth0=( "default via 192.168.138.1" )rc-update add cyberspace.eth0 default
If yous have several network interfaces, yous need to create the appropriate net.eth1, net.eth2 etc. initscripts for those. You tin can use ln to exercise this:
cd /etc/init.d
ln -s net.eth0 net.eth1
rc-update add cyberspace.eth1 default
Swiss German Keyboard
Setup Keyboard in /etc/conf.d/keymaps
KEYMAP="sg-latin1"
Setup Symblic Link for i386 Libs
cd /usr/lib/gcc-lib
ln -s i686-pc-linux-gnu i386-pc-linux-gnulrwxrwxrwx 1 root root 17 Sep 19 10:38 i386-pc-linux-gnu -> i686-pc-linux-gnu/
drwxr-xr-10 3 root root 4096 Jul 30 13:53 i686-pc-linux-gnu/
System Tools
emerge sysklogd 1>/u01/emerge-sysklogd.log 2>&1
rc-update add sysklogd defaultsally vixie-cron ane>/u01/emerge-vixie-cron.log 2>&1
rc-update add vixie-cron default
Bootloader
emerge --usepkg grub
chow
Probing devices to guess BIOS drives. This may have a long fourth dimension.grub> root (hd0,0)
Filesystem blazon is ext2fs, partition type 0x83
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yeah
Checking if "/kick/grub/stage2" exists... yes
Checking if "/boot/chow/e2fs_stage1_5" exists... yep
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 22 sectors are embedded.
succeeded
Running "install /kick/grub/stage1 (hd0) (hd0)1+22 p (hd0,0)/boot/grub/stage2 /boot/grub/card.lst"... succeeded
Done.grub> quit
cd /kick/grub
cat grub.condefault 0
timeout 30
splashimage=(hd0,0)/chow/splash.xpm.gztitle=Gentoo Linux 2.6.12
root (hd0,0)
kernel /kernel-2.six.12-Akadia root=/dev/sda3
Password for Root
passwd root
Reboot !
Install precompiled packages from CD-ROM 2 (packages-x86-2005.1.iso)
The 2d CD only contains precompiled packages and can be used to install software after a succesfull Gentoo Installation. To install Gentoo, you only need CD-1, simply if you lot want OpenOffice.org, Mozilla, KDE, GNOME etc. without having to compile every unmarried one of them, you lot need CD-ii too.
mkdir -p /usr/portage/packages/All
mount /mnt/cdrom
cd /mnt/cdrom/All
cp * /usr/portage/packages/AllCopy the file my_installed_packages to /root
Install the Packages
cd /usr/portage/packages/All
for i in `cat /root/my_installed_packages.txt`
do
sally --usepkg $i 1>/u01/emerge-$i.log 2>&ane
done env-update && source /etc/profile
Boosted Tools (not on CD-ROM 1 or 2)
sally ntp one>/u01/emerge-ntpd.log two>&1
Edit /etc/ntp.conf, /etc/conf.d/ntpd
rc-update add ntpd defaultemerge telnet-bsd 1>emerge-telnet 2>&1
emerge bind i>emerge-bind.log 2>&1
sally bind-tools 1>emerge-bind-tools.log 2>&one
sally mailx 1>sally-mailx.log 2>&1
sally samba i>emerge-samba.log two>&i
emerge vacation 1>emerge-vacation.log two>&i
Installing X
The configuration file of Xorg is called xorg.conf and it resides in /etc/X11. The Xorg-X11 package provides an example configuration equally /etc/X11/xorg.conf.example which you can employ to create your ain configuration.
Generating an xorg.conf file
Xorg -configure
Be sure to read the last lines printed on your screen when Xorg has finished probing your hardware. If information technology tells you it failed at some indicate, you're forced to manually write an xorg.conf file. Assuming that it didn't fail, it volition have told you that it has written /root/xorg.conf.new ready for you to exam.
Testing the xorg.conf.new file
X -config /root/xorg.conf.new
Installing KDE or Gnome
Edit /etc/rc.conf
# KDE
DISPLAYMANAGER="kdm"
XSESSION="kde-3.1.iii"
# Gnome
DISPLAYMANAGER="gdm"
XSESSION="gnome"
Installing KDE login manager
rc-update add xdm default
Courier IMAP
emerge courier-imap 1>emerge-courier-imap.log two>&i
rc-update add courier-imapd defaultcd /etc/courier-imap
vi imapd
==> Accost=0
==> MAXDAEMONS=200
==> MAXPERIP=10
==> MAILDIR=Maildircd /etc/courier/authlib
==> authmodulelist="authpam authshadow"
vi autsdaemonrc
==> daemons=i
==> DEBUG_LOGIN=0To avoid repeated letters in syslog: "Failed to create cache file: maildirwatch (user) Error: Input/output error" you msut start the File Access Monitor daemon (famd). Courier was compiled with File Amending Monitor (FAM), just FAM is not running, or is non configured. If you lot have FAM installed y'all tin add together it to a runlevel and beginning it. Some FAM configuration use portmapper, and so you will need to have portmap running also.
rc-update add famd default
Squirrelmail
See INSTALL file in install directory!
- Install webserver and PHP4 (at to the lowest degree 4.0.6).
- Install IMAP server (run into docs of that server).
- Unpack the SquirrelMail package in a spider web-attainable location.
- Select a data-dir and attachment dir, outside the webtree (due east.g. in /var).
The data-dir (for user prefs) should be owned by the user the webserver
runs as (eg world wide web-information). The attachment dir (for uploading files equally
attachments) should exist file fashion 0730 and in the same group as the
webserver.- Run config/conf.pl from the command line. Use the D option to load
predefined options for specific IMAP servers, and edit at least the
Server Settings and General Options (datadir).Download squirrelmail from http://www.squirrelmail.org/
cd /u01
tar xzvf squirrelmail-1.4.3a.tar.gz
ln -s squirrelmail-i.4.3a.tar webmail
cd webmail/config
perl ./conf.plChange your Organization, Server, and Binder settings for squirrelmail.
At present you should be able to login to squirrelmail, once more - with your full e-mail address,
and apply your new webmail setup.<?php
/**
* SquirrelMail Configuration File
* Created using the configure script, conf.pl
*/global $version;
$config_version = '1.4.3';
$config_use_color = ii;$org_name = "";
$org_logo = SM_PATH . 'images/sm_logo.png';
$org_logo_width = '308';
$org_logo_height = '111';
$org_title = "Akadia Webmail (SquirrelMail) $version";
$signout_page = '';
$frame_top = '_top';$provider_uri = 'https://world wide web.akadia.com';
$provider_name = 'Akadia';$motd = "";
$squirrelmail_default_language = 'en_US';
$domain = 'akadia.com';
$imapServerAddress = '192.168.136.200';
$imapPort = 143;
$useSendmail = fake;
$smtpServerAddress = '192.168.136.200';
$smtpPort = 25;
$sendmail_path = '/usr/sbin/sendmail';
$pop_before_smtp = false;
$imap_server_type = 'courier';
$invert_time = false;
$optional_delimiter = '.';$default_folder_prefix = '';
$default_move_to_trash = true;
$trash_folder = 'INBOX.Trash';
$sent_folder = 'INBOX.Sent';
$draft_folder = 'INBOX.Drafts';
$default_move_to_sent = truthful;
$default_save_as_draft = true;
$show_prefix_option = false;
$list_special_folders_first = truthful;
$use_special_folder_color = true;
$auto_expunge = true;
$default_sub_of_inbox = true;
$show_contain_subfolders_option = false;
$default_unseen_notify = two;
$default_unseen_type = one;
$auto_create_special = true;
$delete_folder = false;
$noselect_fix_enable = imitation;$default_charset = 'iso-8859-1';
$data_dir = SM_PATH . 'data/';
$attachment_dir = $data_dir;
$dir_hash_level = 0;
$default_left_size = '150';
$force_username_lowercase = simulated;
$default_use_priority = true;
$hide_sm_attributions = true;
$default_use_mdn = truthful;
$edit_identity = true;
$edit_name = truthful;
$allow_thread_sort = false;
$allow_server_sort = fake;
$allow_charset_search = true;
$uid_support = true;$theme_css = 'https://www.akadia.com/docroot/css/website.css';
$theme_default = 0;
$theme[0]['PATH'] = SM_PATH . 'themes/default_theme.php';
$theme[0]['Name'] = 'Default';
$theme[1]['PATH'] = SM_PATH . 'themes/plain_blue_theme.php';
$theme[1]['Proper noun'] = 'Plain Bluish';
$theme[2]['PATH'] = SM_PATH . 'themes/sandstorm_theme.php';
$theme[2]['NAME'] = 'Sand Tempest';
$theme[three]['PATH'] = SM_PATH . 'themes/deepocean_theme.php';
$theme[3]['NAME'] = 'Deep Ocean';
$theme[4]['PATH'] = SM_PATH . 'themes/slashdot_theme.php';
$theme[4]['NAME'] = 'Slashdot';
$theme[5]['PATH'] = SM_PATH . 'themes/purple_theme.php';
$theme[5]['Name'] = 'Regal';
$theme[half-dozen]['PATH'] = SM_PATH . 'themes/forest_theme.php';
$theme[6]['NAME'] = 'Forest';
$theme[7]['PATH'] = SM_PATH . 'themes/ice_theme.php';
$theme[7]['Name'] = 'Water ice';
$theme[8]['PATH'] = SM_PATH . 'themes/seaspray_theme.php';
$theme[8]['Proper noun'] = 'Sea Spray';
$theme[9]['PATH'] = SM_PATH . 'themes/bluesteel_theme.php';
$theme[9]['Proper noun'] = 'Bluish Steel';
$theme[10]['PATH'] = SM_PATH . 'themes/dark_grey_theme.php';
$theme[10]['Proper name'] = 'Dark Grey';
$theme[eleven]['PATH'] = SM_PATH . 'themes/high_contrast_theme.php';
$theme[xi]['NAME'] = 'High Contrast';
$theme[12]['PATH'] = SM_PATH . 'themes/black_bean_burrito_theme.php';
$theme[12]['NAME'] = 'Blackness Bean Burrito';
$theme[13]['PATH'] = SM_PATH . 'themes/servery_theme.php';
$theme[13]['NAME'] = 'Servery';
$theme[14]['PATH'] = SM_PATH . 'themes/maize_theme.php';
$theme[fourteen]['Name'] = 'Maize';
$theme[15]['PATH'] = SM_PATH . 'themes/bluesnews_theme.php';
$theme[15]['NAME'] = 'BluesNews';
$theme[16]['PATH'] = SM_PATH . 'themes/deepocean2_theme.php';
$theme[xvi]['Proper noun'] = 'Deep Ocean 2';
$theme[17]['PATH'] = SM_PATH . 'themes/blue_grey_theme.php';
$theme[17]['Proper noun'] = 'Blueish Grey';
$theme[18]['PATH'] = SM_PATH . 'themes/dompie_theme.php';
$theme[xviii]['Proper noun'] = 'Dompie';
$theme[nineteen]['PATH'] = SM_PATH . 'themes/methodical_theme.php';
$theme[19]['NAME'] = 'Methodical';
$theme[20]['PATH'] = SM_PATH . 'themes/greenhouse_effect.php';
$theme[20]['Proper name'] = 'Greenhouse Effect (Changes)';
$theme[21]['PATH'] = SM_PATH . 'themes/in_the_pink.php';
$theme[21]['Name'] = 'In The Pink (Changes)';
$theme[22]['PATH'] = SM_PATH . 'themes/kind_of_blue.php';
$theme[22]['NAME'] = 'Kind of Blue (Changes)';
$theme[23]['PATH'] = SM_PATH . 'themes/monostochastic.php';
$theme[23]['Name'] = 'Monostochastic (Changes)';
$theme[24]['PATH'] = SM_PATH . 'themes/shades_of_grey.php';
$theme[24]['Proper noun'] = 'Shades of Grey (Changes)';
$theme[25]['PATH'] = SM_PATH . 'themes/spice_of_life.php';
$theme[25]['Proper noun'] = 'Spice of Life (Changes)';
$theme[26]['PATH'] = SM_PATH . 'themes/spice_of_life_lite.php';
$theme[26]['Name'] = 'Spice of Life - Lite (Changes)';
$theme[27]['PATH'] = SM_PATH . 'themes/spice_of_life_dark.php';
$theme[27]['NAME'] = 'Spice of Life - Dark (Changes)';
$theme[28]['PATH'] = SM_PATH . 'themes/christmas.php';
$theme[28]['NAME'] = 'Holiday - Christmas';
$theme[29]['PATH'] = SM_PATH . 'themes/darkness.php';
$theme[29]['NAME'] = 'Darkness (Changes)';
$theme[30]['PATH'] = SM_PATH . 'themes/random.php';
$theme[30]['NAME'] = 'Random (Changes every login)';
$theme[31]['PATH'] = SM_PATH . 'themes/midnight.php';
$theme[31]['Proper noun'] = 'Midnight';
$theme[32]['PATH'] = SM_PATH . 'themes/alien_glow.php';
$theme[32]['Name'] = 'Alien Glow';
$theme[33]['PATH'] = SM_PATH . 'themes/dark_green.php';
$theme[33]['NAME'] = 'Dark Light-green';
$theme[34]['PATH'] = SM_PATH . 'themes/penguin.php';
$theme[34]['NAME'] = 'Penguin';
$theme[35]['PATH'] = SM_PATH . 'themes/minimal_bw.php';
$theme[35]['Name'] = 'Minimal BW';$default_use_javascript_addr_book = false;
$addrbook_dsn = '';
$addrbook_table = 'address';$prefs_dsn = '';
$prefs_table = 'userprefs';
$prefs_user_field = 'user';
$prefs_key_field = 'prefkey';
$prefs_val_field = 'prefval';
$no_list_for_subscribe = false;
$smtp_auth_mech = 'none';
$imap_auth_mech = 'login';
$use_imap_tls = simulated;
$use_smtp_tls = faux;
$session_name = 'SQMSESSID';@include SM_PATH . 'config/config_local.php';
/**
* Make sure in that location are no characters after the PHP closing
* tag below (including newline characters and whitespace).
* Otherwise, that character volition crusade the headers to be
* sent and regular output to begin, which volition majorly screw
* things upwardly when we endeavor to send more headers later on.
*/
?>cd /u01/webmail
chown -R apache:apache datacd /u01/webmail/images
==> Create your own sm_logo.pngcd /u01/webmail/src
==> Edit: login.php for your needscd /etc/apache2/conf/
==> Edit commonapache2.conf
### Common server configuration.
###
User apache
Group apache ###
### ServerAdmin: Your accost, where problems with the server should be
### e-mailed. This address appears on some server-generated pages, such
### equally error documents.
###
ServerAdmin martin.zahn@akadia.com ###
### DocumentRoot: The directory out of which y'all will serve your
### documents. By default, all requests are taken from this directory, but
### symbolic links and aliases may be used to bespeak to other locations.
### Do Non Modify THIS ONE, USE apache2.conf.
###
#DocumentRoot /u01/httpd/htdocs
DocumentRoot /u01/webmailTest-it: http://192.168.136.200
Enable SU (Switching to Superuser)
Add User to Grouping bike in /etc/group
bike::10:root,zahn,gaechter,kse,dubuis,egli,zenger
Networking
Searching for provided Network Modules
ls /lib/modules/`uname -r`/kernel/drivers/cyberspaceLoading the desired Module
modprobe e1000Add Static Routes in /etc/conf.d/local.beginning
route add -net 193.247.121.192/28 gw 192.168.138.1 eth0
road add -net 217.193.130.248/29 gw 192.168.138.five eth0Setup eth0 interface with IP and Gateway
ifconfig eth0 192.168.138.35 broadcast 192.168.138.255 netmask 255.255.255.0 upwards
route add default gw 192.168.138.1Setup Host using DPCP in /etc/conf.d/net
iface_eth0="dhcp"
Disklables
In one case you have created and formated a partition, you should assign it a label using the e2label control. This allows you to add the division to /etc/fstab using a label instead of using a device path. If there are partitions whose label you are unsure of, type the following command:
/sbin/tune2fs -l /dev/sda1 | grep book
Filesystem volume name: /bootLabel the Sectionalization
/sbin/e2label /dev/sda1 /bootOnce yous have assigned each partition a label, add the partitions to /etc/fstab.
Label=/boot /kick ext3 defaults i 2
Filesystem Creation
ext2: mke2fs /dev/sda3
ext3: mke2fs -j /dev/sda3
reiserfs: mkreiserfs /dev/sda3
Activating the Swap Partition
mkswap /dev/due southda2
swapon /dev/southwardda2
Utilize flags
Allows the user complete command over what kinds of features and support are built in to the installed applications.Do not having install things which you exercise non really need. And how, exactly, does Gentoo achieve this? By defining USE settings. Essentially, these are keywords that define options used on a system-wide basis to configure applications during their compilation procedures.
A list of available global Apply-flags can be found in /usr/portage/profiles/use.desc
Declare permanent USE-flags
Defaults in: /etc/make.contour/brand.defaults
Setting your own Utilise flags in: /etc/make.conf
Check electric current USE Flags:
emerge info
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad
mikmod mmx mpeg ncurses nls pdflib png quicktime ...
Viewing the used USE-flags for a certain Bundle
emerge --pretend --verbose apache
Calculating dependencies ...done!
[ebuild R ] net-www/apache-ii.0.47 +berkdb +gdbm +ldap
Gentoo query packet tool(qpkg)
The qpkg utlity is role of the Gentoo's Gentoolkit assistants scripts. qpkg allows yous to manage the packages installed on your box.
Installation of qpkg
sally gentoolkit
Examples
Show me all installed packages and its versions:
qpkg -I -fiveShow me all uninstalled packages and its versions:
qpkg -U -vProve me installed packages belonging to category net-misc:
qpkg -I -v -g net-miscGive me some descriptive information related to the package snort:
qpkg -i snortTestify me all packages belonging to category net-misc, note that packages marked with an "*" denote installed packages:
qpkg -thousand net-miscListing the content of a given parcel:
qpkg -fifty snortLet me know what package netstat belongs to, note that for this to piece of work you lot must provide the full path to the file you are interested on, hence which netstat.:
qpkg -f `which netstat`Evidence me duplicate packages on my box and some extra info:
qpkg -d -vvPermit me know what packages depend on, say, mysql:
qpkg -q mysqlVerify mysql and exercise non hesitate to prove verbose info:
qpkg -c -v mysql
Environment Variables
The /etc/env.d Directory
To centralise the definitions of environment variables, Gentoo introduced the /etc/env.d directory. Inside this directory you lot will find a number of files, such as 00basic, 05gcc, etc. which contain the variables needed by the application mentioned in their proper noun.
The env-update Script
Several files in /etc/env.d define the PATH variable. This is non wrong: when yous run env-update, it will append the several definitions before it updates the environment variables, thereby making it piece of cake for packages (or users) to add their own environment variable settings without interfering with the already existing values. The env-update script will suspend the values in the alphabetical social club of the /etc/env.d files. This is why many of the files in /etc/env.d brainstorm with a number When you run env-update, the script will create all environment variables and place them in /etc/profile.env (which is used by /etc/profile). It volition besides excerpt the data from the LDPATH variable and use that to create /etc/ld.so.conf. Afterwards this, it volition run ldconfig to recreate the /etc/ld.and then.cache file used past the dynamical linker. If you want to notice the effect of env-update immediately after you run it, execute the following command to update your surround.
Updating the environs
env-update && source /etc/contour
Resolving bundle conflicts
Imagine this situation when you try to emerge a package:
emerge xfree
C
alculating dependencies ...washed! !!! Mistake: the x11-libs/xft package conflicts with another package.
!!! both can't be installed on the same organization together.
!!! Please employ 'emerge --pretend' to make up one's mind blockers.
Okay, here is the problem: we tin can't sally xfree because there is a conflict with the xft (installed) package. Permit's try to resolve the disharmonize.
emerge -p xfree
These are the packages that I would merge, in order: Calculating dependencies ...done!
[blocks B ] x11-libs/xft (from pkg x11-base/xfree-iv.iii.0-r3)
[ebuild Due north ] x11-base of operations/xfree-4.three.0-r3
[ebuild U ] x11-libs/xft-2.0.1-r2 [2.0.1]
As you tin can encounter xft is blocking xfree equally [blocks B ] points.
From emerge man pages:
Blockers are defined when two packages will clobber each others files, or otherwise
cause some grade of breakage in your arrangement. However, blockers usually do not demand
to be simultaneously emerged considering they usually provide the same functionality.
So to resolve the conflict proceed as follows:
sally unmerge xft
And there should exist no blocking package now...
emerge -p xfree
These are the packages that I would merge, in order:
Calculating dependencies ...washed!
[ebuild N ] x11-base/xfree-4.3.0-r3
Now proceed equally usual...
emerge xfr
Source: https://www.akadia.com/services/gentoo_linux_2005.1.html
Posted by: waterhousesomiskill.blogspot.com

configurability and a summit-notch user and developer community are all hallmarks of the Gentoo feel.
0 Response to "How To Install Gentoo From Live Cd"
Post a Comment