
Feb 21, 2004 by Javantea
Getting a new hard drive is a bit of a task. I got my new 120 GB hard drive Friday. I spent half of the day messing around with it and the rest playing Enemy Territory. There was an error caused by the new hard drive. One might guess that getting a new hard drive is a 5 minute process, but not when you decide to replace your old hard drive with this new hard drive. It's like a drive crash without the unpleasantness of pressure but with the pressure of getting everything working. I'd like to list my procedure for all those who don't know how to install Linux on a blank hard drive.
It's a bit of a list, but it is not rocket science.
- Put Slackware CD into CD-ROM.
- Configure BIOS to boot off CD-ROM.
- Press return when given a Slackware screen.
- Press return when asked for keyboard layout.
- Type root at the login.
- Type
cfdisk /dev/hda
at the prompt. - Delete any current partition.
- Add a 20000 MB Linux Partition.
- Add a 100000 MB Linux Partition.
- Add a 1024 MB Linux Partiton.
- Change the third Partiton to type 83, Swap.
- Write partition table to disk. Wait 1 minute.
- Type
setup
at the prompt. - Go to
ADD SWAP
. - Allow it to detect swap /dev/hda3 and format. Wait 1 minute.
- Go to
TARGET
. - Allow it to detect primary partition /dev/hda1 and format. Wait 1 minute.
- Allow it to detect primary partition /dev/hda2.
- Make the partition control /home .
- Allow it to format. Wait 1 minute.
- Go to
SOURCE
- Pick "Install from CD-ROM" and allow it to detect CD-ROM.
- Go to
SELECT
- Check all boxes.
- Go to
INSTALL
- Pick "full" from the Prompting Mode screen. Wait 15 minutes. Switch CDs. Wait 10 minutes.
- At the Install Linux Kernal screen, pick 'cdrom'.
- Pick bare.i kernel.
- At the Make Bootdisk screen, choose continue.
- Pick US/Pacific time zone.
- Set hardware clock to local time.
- At the LILO screen, pick simple.
- Pick 1024x768x256 frame buffer console.
- Pick MBR.*
- Write Hostname as 'ASLinWS01'.
- Write domain name as 'altsci.com'
- Pick KDE as Window Manager.
- Choose a secure password for your root password.
- Do not forget your password. Do not write it down. Think about it again and again and again.
- Exit.
- Press Ctrl-Alt-Delete.
- Remove CD-ROM from drive before boot.
- Hopefully LILO will boot up. If not, you probably forgot to pick MBR at the LILO. Time to mess around with LILO.
- Use the Slackware CD-ROM as a boot disk if LILO doesn't work. It has instructions on how to boot.
- Login as root with your secure password.
- Run
groupadd developers
- Run
adduser
- User name is 'jvoss' for me, different for you.
- Type in the info you know. Give the user group 'users' with subgroup 'developers'.
- Run
passwd jvoss
- Give user a secure password.
- Run
exit
- Login as user created earlier.
- Run
xf86config
- Give it what it wants. Major things are: mouse, monitor frequencies, video card drivers, and resolution/colors. Yes, it is hard, but yes it does work.
- Run
startx
- Depending on your setup, you may need to do many strange things to get XF86 to work. If you use nVidia, you'll need to download closed source drivers from http://nVidia.com/ to get 3d acceleration and such.
Problem: No sound in Enemy Territory.
Solution:
Problem: Webpage gone.
Solution: Copy old /etc/apache/httpd.conf to new.
Problem: Webpage error.
Solution: Download PHP source and use:
Problem: no access to /pub/javantea
Solution:
Solution:
su; chmod a+rw /dev/dsp
Problem: Webpage gone.
Solution: Copy old /etc/apache/httpd.conf to new.
Problem: Webpage error.
Solution: Download PHP source and use:
./configure --with-mysql --with-dom
--with-zlib --with-apxs=/usr/sbin/apxs && make && su && make install
Problem: no access to /pub/javantea
Solution:
su; chown jvoss:developers /pub
There you have it. If you have a different system, you need to change some of the data above. But I think it's useful to have a list of things that do not take every possible situation into account. If a person is stuck, they can look at this and say, well Jav did it this way, so that must be what I am missing.
Figuring out how to recompile PHP took me a long time (a week of fiddling, I remember). Until Slackware compiles in XML DOM into PHP, it will not be a turnkey solution to employ XML DOM in PHP websites. Of course, Slackware users know how to complile Linux programs as complex as PHP to make it happen. I am one and you should be too.


Permalink
-
Leave a Reply
Comments: 0
Leave a reply »