网上搜来的,谢谢作者,原始地址在
http://www.cs.cornell.edu/~scs49/install_linux.html
互联网就是好阿
Installing Linux Distro Fedora Core 4 on Dell Inspiron 700m Laptop
* How to get Fedora Core 4
* . . . Download
* . . . Partition
* . . . . . . . . . Digital Wolf adds
* . . . . . . . . . Some tips by Kambiz
* . . . Installation
* . . . Configuration
* . . . . . . Setting up the wireless networking
* . . . . . . . . . Tips for Intel Pro Wireless 2200 and setting up closed and encrypted wi-fi
* . . . . . . . . . Guido Maneman adds...
* . . . . . . Screen Resolution
* . . . . . . Sound
* . . . . . . Accessing Windows files
* . . . . . . Installing Realplayer
* . . . . . . . . . Some tips by Ganesh - New
* . . . . . . . . . Some tips by Venkatesh
* . . . . . . Plugins - java and flash
* . . . Software Suspend a.k.a. Hibernate
* . . . Playing movies and listening to MP3s
* . . . Hard disk performance tuning and solving the heating up problem
* . . . Bug fix to get a console by hitting Alt+Ctrl+Fn (Bug 160470)
* Feedback
* Links
* Thanks to...
I've spent a lot of time installing and configuring Fedora Core 4 on my Dell Inspiron 700m. I decided to write this down for my own reference and so that you all don't spend your valuable time on things which I learnt the hard way.
How to get Fedora Core 4
Download
* Download the official Fedora 4 Core installation images from: Fedora Core website
* Check the SHA1 signature of all the files downloaded using some program like SHA1files
* After verifying the signature, burn the CDs / DVDs. Use any of the tools mentioned on http://www.petri.co.il/how_to_write_iso_files_to_cd.htm for doing that.
Partition
For partitioning, I downloaded Knoppix, burnt it on a CD and then ran ntfsresize. However, I think there might be a simpler way. If you find one let me know.
Digital Wolf adds
I happen to have access to ghost and a usb hard drive. my laptop's hd is 60gb and was partitioned as a C: drive for XP Pro. The usb drive is 40gb. I cleaned up my 60gb, ghosted it to the 40gb (booting into BartPE with ghost installed), then re-ghosted it back. When ghosting it back, I am given the option to resize the partition its going on. I selected 40gb and was left with 20gb for my linux.
Some tips by Kambiz
in response to the partitioning section check out http://www.sysresccd.org/ I find it a very useful disk aside from it's ability to resize partitions (NTFS too) because of it's other uses. Here's the description of it: SystemRescueCd is a linux system on a bootable cdrom for repairing your system and your data after a crash. It also aims to provide an easy way to carry out admin tasks on your computer, such as creating and editing the partitions of the hard disk. It contains a lot of system utilities (parted, partimage, fstools, ...) and basic ones (editors, midnight commander, network tools). It aims to be very easy to use: just boot from the cdrom, and you can do everything. The kernel of the system supports most important file systems (ext2/ext3, reiserfs, xfs, jfs, vfat, ntfs, iso9660), and network ones (samba and nfs).
Installation
* Pop in the CD (or DVD) in your drive and restart your computer. Make sure that the BIOS settings are set to boot from the CD (or DVD). On Dell Inspiron 700m, when the "DELL" boot up screen flashes up, press F12. Go to Boot devices and change the first boot device.. TODO.
* On restarating, the CD will boot and Fedora Core 4 installer will start. Follow the instructions.
* Make sure you select the Development tools and deselect Helix Player during the installation.
Configuration
OK, so here is where the fun begins! ;-) Almost all of the following require you to be root.
Setting up the wireless networking
I have Intel Pro Wireless 2100 card in my 700m. To check which one you have, run:
#lspci | grep Wireless
which should give an output like:
02:01.0 Network controller: Intel Corporation PRO/Wireless LAN 2100 3B Mini PCI Adapter (rev 04)
If you get an output which says the adapter is 2200, then scroll down for some tips regarding that.
1. Download the IPW2100 Firmware from: http://ipw2100.sourceforge.net/firmware.php. (I used v0.55) Extract all the files to the /lib/firmware directory.
2. Download the IPW2100 driver files from http://ipw2100.sourceforge.net/. I used version 1.1.0. Make sure you use a version ending with .0 since only these are the stable ones.
3. Extract all the files to a directory and run #make. After that run #make install to install the driver.
4. Copy this file as /etc/sysconfig/network-scripts/ifcfg-eth1
5. Reboot your computer (you can issue the #reboot command on the terminal for this) and wireless networking should now be working.
6. I also found the Wifi-radar utility very useful for managing my wifi connections in GNOME. Download it from: http://www.bitbuilder.com/wifi_radar/
Tips for Intel Pro Wireless 2200 and setting up closed and encrypted wi-fi
Here are some tips from Thomas Savarimuthu:
Actually, i had an Intel 2200 BG mini PCI card and hence i had to guess (from IPW2100 URL) and find the right URL for IPW2200 - http://ipw2200.sourceforge.net. Even though i downloaded the correct firmware, i had trouble connecting to my office wireless network, since it is a closed and encrypted wi-fi network. So, i knew that i had to explicitely declare the SSID and WEP KEY in a config file, but i don't know which files to edit and what parameters to add. After a quick search i found the necessary information from one of the reference link you mentioned in the bottom of your page. He had mentioned about the parameters and configuration files to edit.
I had to add the following parameters into /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
IPV6INIT=no
ONBOOT=yes
USERCTL=yes ( if you want non-root user to start/shut this port)
PEERDNS=yes
BOOTPROTO=dhcp
TYPE=Wireless
ESSID="xxxxx" (put your closed network name)
CHANNEL=1
MODE=Managed
SECURITY=Restricted ( in cased of WEP key in "Shared" security mode)
and create a new file /etc/sysconfig/network-scripts/keys-eth1 to add the corresponding WEP key as below:
KEY=XXXXXXXX (HEX or STRING)
More over the IPW2200 driver available in the kernel-2.6.11 works fine if i just download and copy the corresponding firmware to /lib/firmware .
Guido Maneman adds...
I was fiddling around with getting wireless lan to work.
Thomas Savarimuthu told you to put SECURITY=Restricted ( in cased of WEP key in "Shared" security mode) in /etc/sysconfig/network-scripts/ifcfg-eth1, but this doesn't work.
I found a hint in http://www.redhat.com/archives/rhl-beta-list/2003-July/msg00848.html , removed SECURITY=Restricted in /etc/sysconfig/network-scripts/ifcfg-eth1 and added KEY="restricted 12345678901234567890123456" to /etc/sysconfig/network-scripts/keys-eth1
Screen Resolution
To get the screen resolution of 1280x800 (the default for Dell Inspiron 700m) follow these steps:
* Download 855Resolution package from http://perso.wanadoo.fr/apoirier/ I used version 0.4
* Extract the contents in any directory and run #make to compile the package. After that, run #make install to install it. Make sure you have the C compiler and other libraries installed. (Thanks to James McIntosh for pointing this out).
* Run #gtf 1280 800 60 to get a modeline for your laptop. On my laptop it gives:
# 1280x800 @ 60.00 Hz (GTF) hsync: 49.68 kHz; pclk: 83.46 MHz
Modeline "1280x800_60.00" 83.46 1280 1344 1480 1680 800 801 804 828 -HSync +Vsync
* Copy the Modeline to your /etc/X11/xorg.conf file in the Monitor section. You can refer to my xorg.conf (Note: You can use a simple editor like gedit to edit a file, e.g. #gedit /etc/X11/xorg.conf &. The & at the end of the command runs the program in the background, so that you can keep using the terminal).
* In the Modes listed in the Screen section of xorg.conf, add "1280x800". I also removed all other modes from the line.
* Run #855resolution -l which gives an output like :
855resolution version 0.4, by Alain Poirier
Chipset: 855GM (id=0x35808086)
VBIOS type: 2
VBIOS Version: 3104
Mode 30 : 640x480, 8 bits/pixel
Mode 32 : 800x600, 8 bits/pixel
Mode 34 : 1024x768, 8 bits/pixel
Mode 38 : 1280x1024, 8 bits/pixel
Mode 3a : 1600x1200, 8 bits/pixel
Mode 3c : 1920x1440, 8 bits/pixel
Mode 41 : 640x480, 16 bits/pixel
Mode 43 : 800x600, 16 bits/pixel
Mode 45 : 1024x768, 16 bits/pixel
Mode 49 : 1280x1024, 16 bits/pixel
Mode 4b : 1600x1200, 16 bits/pixel
Mode 4d : 1920x1440, 16 bits/pixel
Mode 50 : 640x480, 32 bits/pixel
Mode 52 : 800x600, 32 bits/pixel
Mode 54 : 1024x768, 32 bits/pixel
Mode 58 : 1280x1024, 32 bits/pixel
Mode 5a : 1600x1200, 32 bits/pixel
Mode 5c : 1920x1440, 32 bits/pixel
Mode 7c : 1280x800, 8 bits/pixel
Mode 7d : 1280x800, 16 bits/pixel
Mode 7e : 1280x800, 32 bits/pixel
* We are interested in mode 7d or 7e (not tried) as these are 1280x800 modes. So run, #855resolution 7d 1280 800 and you should get an output like:
855resolution version 0.4, by Alain Poirier
Chipset: 855GM (id=0x35808086)
VBIOS type: 2
VBIOS Version: 3104
** Patch mode 7d to resolution 1280x800 complete
which means everything is OK. Don't worry, you won't see any changes in your screen right now.
* Now we have to ensure that this is run everytime you start X. So add the following to your /etc/rc.local file:
if [ `runlevel | cut -f2 -d' '` -eq 5 ]; then
#runscript
855resolution 7d 1280 800
fi
* Now restart your computer and you should see much better resolution of 1280x800.
Sound
* To enable sound from your laptop, run #alsamixer.
* Scroll to the rightmost colum using the right arrow and hit m. (i.e. turn it on)
* Exit the program by pressing Esc. Sound should now be working.
* You might also want to configure the volume buttons on the keyboard (Fn + F5 - Mute, Fn + F6 - Volume Down and Fn + F7 - Volume Up). This is very simple to do in GNOME. Go to Desktop -> Preferences -> Keyboard shortcuts and here specify these keys for the corresponding actions.
Accessing Windows files
The following applies only if you have an NTFS partition on which windows is running. To check that, run #fdisk -l | grep NTFS If you see a line like
/dev/hda2 * 7 2456 19679625 7 HPFS/NTFS
, then it means that you are having your windows ntfs partition on /dev/hda2.
I will now explain how to read files from the ntfs partition.
* Download the linux ntfs kernel module from http://prdownloads.sourceforge.net/linux-ntfs/kernel-module-ntfs-2.6.11-1.1369_FC4-2.1.22-0.rr.6.0.i686.rpm and install it.
* Next, run #/sbin/modprobe ntfs. There should be no output. Now you are all set.
* Now, to mount the windows partition, run
#mkdir /mnt/windows
#mount /dev/hda2 /mnt/windows -t ntfs -r -o umask=0222
* Now #ls /mnt/windows/ should show you your windows files. Note that you can only read from the partition, you can't write to it. There are other modules available which can write to ntfs too, but I haven't tried them since I don't want to take the risk.
Installing Realplayer
* Before installing realplayer, you need some libraries. Run #yum -y -install compat-libstdc++-33 to get the libraries.
* Download RPM from www.real.com and install it.
* Restart firefox.
* Check if real player is working by listening to BBC Radio. (Note: Not all sites may work. See workaround below)
Some sites like www.raaga.com do not work in spite of this. I've tried my best, but there seems to be no way of getting them to work, so I had to use a workaround. Do this only if there are some sites which do not work, otherwise you should be all set.
o Download and install wine from http://winehq.org/site/download-rh. I am using the i686 package of wine 20050524.
o Run #wine. It will create default directories, etc.
o Copy this file as your wine config file, i.e. save it as ~/.wine/config
o Download the windows installer of firefox and install it by opening it with wine. Start it using wine (You may have to give a command like # wine /root/.wine/drive_c/Program\ Files/Mozilla\ Firefox/firefox.exe , and install realplayer (windows version) from www.real.com through it. (At the end of installation, real player hangs, but after restarting, everything works ok for me).
o Now this installation of firefox should be able to play all sorts of internet radios, etc. (At least, it plays raaga.com and smashits.com for me!)
o If you find a better solution, please let me know!
Some tips by Ganesh - New
Realplayer plugin incompatibility with firefox arises due to the fact that firefox is compiles with gcc > 3.2 where as the stock realplayer download from real.com is compiled with gcc 3.2.
The solution to this problem is finding realplayer compiled with gcc > 3.2. here is the link to such a realplayer version ......... it is not the latest release, but works with raaga.com, musicindiaonline.com and smashits.com https://helixcommunity.org/download.php/954/RealPlayer-10.0.3-rc1-rhel4.src.rpm.tar.bz2
installation is kind of warped. rpm puts the install.bz2 in /usr/src/redhat/SOURCES .... so make sure /usr/src/redhat/SOURCES directory exists.
anyway here are the steps
tar -jxvf RealPlayer-10.0.3-rc1-rhel4.src.rpm.tar.bz2
rpm -ivh --nodeps RealPlayer-10.0.3-rc1-rhel4.src.rpm
mkdir realplayer
cd realplayer
tar -jxvf /usr/src/redhat/SOURCES/install.bz2
Some tips by Venkatesh
I too have been having a lot of problems for the last four months on getting raaga.com to work on my linux box. A few minutes ago it started working and I thought I should write to you the feedback. This is WITHOUT using Wine.
First, my configuration. I've a Dell Inspiron 1150 laptop since eight months. No problems with this box - it works well.
In Jan 2005 I installed Linux Fedora Core 2.0 on this box (dual-boot, XP Home on the other partition). The default Mozilla that came with this FC2 dist is version 1.6. I downloaded RealPlayer and JDK and got raaga.com to work.
Usually the Red Hat Network comes up time and again for autoupdation, and it installed Mozilla 1.7.3.
Thereafter, raaga.com stopped working! After that I didn't know what happened.
After four months of (trivial, naive) fighting I just got a new installation of FC2 on the same box, to work. Here are some points to consider.
1. Mozilla 1.6 is compiled with gcc 3.2; therefore we need to ensure that our gcc libs are 3.2 and above. I've got 3.3 as part of the default install -- no problems
2. It is Java 1.4.2 that is compatible with gcc 3.2 and above. I am not sure about Java 1.5 (aka 5.0) and its compatibility. I had to uninstall Java 1.5 and reinstall Java 1.4.2 just for the sake of raaga.com! After installation, the plugin had to be linked with the subdirectory ns6-gcc32 and not the default ns6.
3. The docs in Mozilla-->Help-->Plugins clearly suggest downloading and installing RealPlayer VERSION 10.0.0.297. I had earlier been trying with RealPlayer Gold which was not effective. Upon trying today with 10.0.0.297, it worked.
I suspect we need to pay careful attention to the version numbers and the gcc/glibc that was used to compile, and its compatibilities.
Hope these points help to some extent. Please write back if you could get your box to play raaga.com without using Wine.
Plugins - java and flash
* Download the java plugin JRE 1.5 Update 3 from sun from : http://java.sun.com/j2se/1.5.0/download.jsp. Download the Linux self extracting file (ends with .bin). Do not download the .rpm package! Read the Fedora Core 4 release notes if you want to know why.
* Run #chmod +x jre-1_5_0_03-linux-i586.bin and then #./jre-1_5_0_03-linux-i586.bin to install the plugin.
* Move the package to /opt/ directory by running #mv jre1.5.0_03 /opt/
* Next make a symbolic link for firefox to recognize the plugin. #ln -s /opt/jre1.5.0_03/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so More details at: http://plugindoc.mozdev.org/faqs/java.html#Linux
* To install the flash plugin, just visit any page with flash content on it. Firefox shows a message on top of the page saying that some plugins are required for the page. Click on the link and install flash.
Software Suspend a.k.a. Hibernate
Here's how to get your box to hibernate and wake up as in Windows.
* Get the hibernate rpm from Matthias Hensler's page: http://mhensler.de/swsusp/download/hibernate-1.08-1.i386.rpm and install the package.
* Save this file as /etc/hibernate/hibernate.conf
* Get the kernel rpm corresponding to Fedora Core 4 : http://mhensler.de/swsusp/download/kernel-2.6.11-1.1369_FC4_cubbi8_swsusp2.i686.rpm and install it
* Edit /etc/grub.conf and add resume2=swap:/dev/??? (i.e. your swap drive) to the end of the kernel line. For example, look at my grub.conf Note that your swap drive may be different.
* Run the following commands:
# cd /root/ && mkdir myinitrd/ && cd myinitrd/ (create temporary directory)
# gzip -dc < /boot/initrd-2.6.11-1.1369_FC4_cubbi8_swsusp2.img|cpio -i (unpack the current initrd) # gedit init & (edit the init-file and include these two lines after mount -t sysfs ... and before echo Creating /dev: echo Activating software suspend echo > /proc/software_suspend/do_resume
# find . | cpio -o -c | gzip -9 > /boot/initrd-2.6.11-1.1369_FC4_cubbi8_swsusp2.img (create the new initrd)
# cd .. && rm -rf myinitrd/ (Cleanup)
* Now you can reboot with your new kernel. To hibernate, run #hibernate
Playing movies and listening to MP3s
I use xmms for listening to mp3s and xine for viewing DVDs, etc. You may also need the MPlayer package to play Windows media files. Here's how to get it.
* Download this file as /etc/yum.conf
* Run #yum --enablerepo freshrpms install xine xmms mplayer
* By default, because of licensing issues, Fedora Core 4 does not ship with MP3 decoders. Get one from: http://www.gurulabs.com/goodies/downloads.php (Note: The rpm for fedora core 3 works fine).
* Also get the mplayerplug-in which allows windows media to be played in a browser from: http://mplayerplug-in.sourceforge.net/download.php (Again, the Fedora Core 3 rpm worked fine for me)
Hard disk performance tuning and solving the heating up problem
At this point everything was working fine, except that my laptop was unusually hot (as compared to Windoze). It turns out that although CPU throttling is inbuilt in the kernel (and works fine), hard disk is not put in the 'spin down' mode automatically.
Here's what I've done till now:
* Edit /etc/sysconfig/harddisks and add -m16 to the EXTRA_PARAMS line. Alternatively, uncomment the line MULTIPLE_IO=16 (Suggested by Stephen Lau). This will reduce the hard disk usage and considerably reduces power consumption. For more details see #man hdparm.
* Download and install Laptop Mode Tools. Download the tarball; installation is easy: just run #./install in the directory where you extracted all the files. I am still experimenting with it's options, so keep checking this page for updates.
Bug fix to get a console by hitting Alt+Ctrl+Fn (Bug 160470)
I could not get a terminal by hitting Alt+Ctrl+Fn (for example try Alt+Ctrl+F1). It turns out that this is a documented bug on bugzilla: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=160470. To fix this bug, download this file as /usr/X11R6/lib/modules/libvgahw.a and restart. Now the problem should be fixed.
Feedback
Please send me any comments, corrections and suggestions at : scs49 at cornell dot edu. All corrections/suggestions will be acknowledged. My only aim of maintaining this page is to make life easier for other people.
Links
Here are a few useful links
* Mauriat Miranda's Personal Fedora Core 4 Installation Guide
* Installing Fedora Core 3 (Linux) on Dell 700m by Mike
* Software Suspend with Linux and Fedora Core - M. Hensler
* TuxMobil: Linux with Laptops, Notebooks, PDAs, Mobile Phones and Portable Computers
Thanks to...
* Stephen Lau for pointing out some broken links and some tips regarding hdparm.
* All other contributors. Keep your tips coming in and I will keep updating this page!
Last updated: November 01 2005
The latest version of this document can be found at : http://www.cs.cornell.edu/~scs49/install_linux.html
Built with gvim on a Dell Inspiron 700m running Fedora Core 4
Valid HTML 4.0!
StatCounter - Free Web Tracker and Counter