Linux Administration & Maintenance: Difference between revisions
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
* TODO: Find other documents about how to maintain a Gentoo machine, primarily for Gordon and Mark. | * TODO: Find other documents about how to maintain a Gentoo machine, primarily for Gordon and Mark. | ||
* TODO: Custom gentoo configuration stuff that we use | * TODO: Custom gentoo configuration stuff that we use<br> | ||
===Rescuing a Gentoo System=== | |||
boot from a CD, typically | |||
boot: '''gentoo''' | |||
enable swap | |||
<font color=red>livecd</font> <font color=blue>root #</font> '''swapon /dev/sda2''' | |||
mount the main (root) partition, optionally the boot partition | |||
<font color=red>livecd</font> <font color=blue>root #</font> '''mount /dev/sda3 /mnt/gentoo''' | |||
<font color=red>livecd</font> <font color=blue>root #</font> '''mount /dev/sda1 /mnt/gentoo/boot''' | |||
get some networking going | |||
<font color=red>livecd</font> <font color=blue>root #</font> '''dhcpcd &''' | |||
<font color=red>livecd</font> <font color=blue>root #</font> '''ifconfig eth0 up''' | |||
<font color=red>livecd</font> <font color=blue>root #</font> '''ifconfig''' ''(verify we got an IP)'' | |||
prepare for chrooting | |||
<font color=red>livecd</font> <font color=blue>root #</font> '''mount -t proc none /mnt/gentoo/proc''' | |||
set up a new environment root | |||
<font color=red>root</font> <font color=blue>#</font> '''chroot /mnt/gentoo /bin/bash''' | |||
<font color=red>/</font> <font color=blue>#</font> '''env-update''' | |||
<font color=red>/</font> <font color=blue>#</font> '''source /etc/profile''' | |||
Now, do your rescue work. Good luck! | |||
To back out of the chroot, and check your fix(es) | |||
<font color=red>/</font> <font color=blue>#</font> <font color=black>'''exit''' | |||
<font color=red>livecd</font> <font color=blue>root #</font> '''cd /''' | |||
<font color=red>livecd</font> <font color=blue>root #</font> '''umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo''' | |||
<font color=red>livecd</font> <font color=blue>root #</font> '''reboot''' | |||
==SUSE== | ==SUSE== |
Revision as of 23:22, 25 August 2005
Gentoo
On-Campus, we can speed installation/updates by using a local source; in your /etc/make.conf:
GENTOO_MIRRORS="http://mirror.iat.sfu.ca/gentoo/"
An alternative is to use an NFS mount, but if NFS breaks or is unavailable... :-(
- TODO: Find other documents about how to maintain a Gentoo machine, primarily for Gordon and Mark.
- TODO: Custom gentoo configuration stuff that we use
Rescuing a Gentoo System
boot from a CD, typically
boot: gentoo
enable swap
livecd root # swapon /dev/sda2
mount the main (root) partition, optionally the boot partition
livecd root # mount /dev/sda3 /mnt/gentoo livecd root # mount /dev/sda1 /mnt/gentoo/boot
get some networking going
livecd root # dhcpcd & livecd root # ifconfig eth0 up livecd root # ifconfig (verify we got an IP)
prepare for chrooting
livecd root # mount -t proc none /mnt/gentoo/proc
set up a new environment root
root # chroot /mnt/gentoo /bin/bash / # env-update / # source /etc/profile
Now, do your rescue work. Good luck!
To back out of the chroot, and check your fix(es)
/ # exit livecd root # cd / livecd root # umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo livecd root # reboot
SUSE
On-Campus, we can speed installation/updates by using a local source:
nfs://export/mirror/suse
- TODO: Instructions for install with LDAP working
- TODO: Instructions for auto-update configuration
RedHat/Fedora
- TODO: Instructions for install with LDAP working
FreeBSD
- TODO: Instructions on configuring the firewall on Dreadnought