TWiki
>
CF Web
>
Linux
>
DebianInCS
>
DebianInstallNotes
(2024-11-19,
MariHassanzada
)
(raw view)
E
dit
A
ttach
---+ Debian Install Notes (Obsolete) Location of Files: \\asimov.cscf.uwaterloo.ca\sysprep\SYSPRIMG\CSCF_DEB Install the split image. root wants to be /dev/hda5 (first partiton in an extended partition) and swap wants to be /dev/hda6. There may also be a single install image that contains both Debian and Windows partitions. That one is built up from the independent Windows and Debian installs, so the following notes apply in either case. You'll need a rescue CD, see RescueCD. 1 For P4P800VM motherboards, flash the BIOS to the latest stable revision. Currently the March 2005 build is known to work. 1 Boot the rescue CD - choose "Linux with no keymap". root has no password by default. 1 Mount the Linux root partition to /mnt/hd. If the machine has SATA drives, root is at /dev/sda5, otherwise it's at /dev/hda5. 1 chroot /mnt/hd (if you don't know what chroot does, you shouldn't really be trying this on your own) 1 If the machine has parallel ATA drives: 1 edit /boot/grub/menu.lst, and change all sda to hda 1 Repeat above procedure for /etc/fstab 1 While you're in fstab, edit the =/dev/hdc= line to =/dev/hda= so the automounter can properly mount CDs for the user - it's the line with =/media/cdrom0= in it. 1 Tell grub about the changed default kernel option and default boot device (see below) 1 Install grub: type "grub", then "root (hd0,4)", then "setup (hd0)". Then "quit" gets you back to prompt. 1 See the password box for passwords for Linux; you'll need them to complete the setup. 1 ONLY IF THE MACHINE WILL NOT BE USING DHCP: 1 Edit /etc/network/interfaces: * comment out the DHCP line * uncomment the remain static IP lines * change the first occurrence of xxx to your subnet 1 edit /etc/hostname replacing localhost with the system hostname 1 edit /etc/hosts adding the ip and host name of the system (ie "129.97.74.237 csgradpc49 csgradpc49.cs csgradpc49.cs.uwaterloo.ca csgradpc49.uwaterloo.ca") 1 edit /etc/resolv.conf removing 192.168.1.1 entry 1 reboot 1 *NB!* If you get an error with pivot_root during boot (and it panics and locks up) you either need to reimage the PC with something >= 0.8.8 image or else obtain a "magical initrd" disk. See Main.MikePatterson or Main.TrevorGrove for details. Essentially whatever image is on there has an initial ramdisk that is looking for parallel ATA and the machine is serial ATA, or vice versa. 1 =dpkg-reconfigure exim4-config= (to tell it about the new hostname) 1 =rm /etc/ssh/*key*= and dpkg-reconfigure ssh (to generate new host keys) 1 adduser userid - to add the user account 1 edit /etc/group and add user to all of the groups with cscf-adm in it * cd /etc && sed -e 's/:cscf-adm/:cscf-adm,userid/' group > group.new && mv group.new group 1 set root password to be same as the user account 1 do a visudo and add the user's permissions - just copy cscf-adm's Example usage to change hda to sda in menu.lst: <pre> vi /boot/grub/menu.lst %s/sda/hda/ :wq or - sed -e 's/sda/hda/' /boot/grub/menu.lst > /boot/grub/menu.new mv /boot/grub/menu.new /boot/grub/menu.lst </pre> Telling grub about changed devices: edit the file /boot/grub/menu.lst and look for the line kopt. Uncomment it and change the root= segment appropriately (hda for PATA and sda for SATA). If you need to change the default root partition (shouldn't be necessary) uncomment and change the groot= line. grub will automatically reconfigure itself the next time you boot. -- Main.MikePatterson - 06-10,14 Oct,23 Nov 2004, 06 January 2005 (with help from Main.MikeGore and Main.TrevorGrove)
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r11
<
r10
<
r9
<
r8
<
r7
|
B
acklinks
|
V
iew topic
|
WYSIWYG
|
M
ore topic actions
Topic revision: r11 - 2024-11-19
-
MariHassanzada
CF
Information in this area is meant for use by CSCF staff and is not official documentation, but anybody who is interested is welcome to use it if they find it useful.
CF Web
CF Web Home
Changes
Index
Search
Administration
Communication
Email
Hardware
HelpDeskGuide
Infrastructure
InternalProjects
Linux
MachineNotes
Macintosh
Management
Networking
Printing
Research
Security
Software
Solaris
StaffStuff
TaskGroups
TermGoals
Teaching
UserSupport
Vendors
Windows
XHier
Other Webs
CSEveryBody
Main
Sandbox
TWiki
UW
My links
People
CERAS
WatForm
Tetherless lab
Ubuntu Main.HowTo
eDocs
RGG NE notes
RGG
CS infrastructure
Grad images
Edit
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback