A How to access Windows partitions under Linux.
#mkdir / mnt / win
Create a loading point directory WIN, like CDROM, FLOPPY load point directory is under / mNT.
#mount -t vfat / dev / hda? / mnt / win
/ dev / hda? You can use #fdisk -l to view the corresponding Windows
Division, Mount.
-t
The option is given a partition format.
-o
If you want to display the Chinese file name, you can use the -o iocharset = CP936 option.
The / etc / fstab file is some file system loaded by Linux when startup, you can also write it in:
E.G.
/ dev / hda? / mnt / win vfat defaults, ocharset = cp936 0 0
B There is a line ID: 5: INitDefault 5: Log in in a graphic way.
3: Log in in text.
More detailed explanations can read this file.
C configuring x window, changing resolution .. You can also setup commands with many system configuration options. (Shi Key: Ctrl Alt " ") and CTRL Alt "-")
D Switching WM (Window Manager) Window Manager can use the switchDesktop command.
#SwitchDesk Gnome Or #SwitchDesk KDE, the virtual terminal in X can be selected with #SwitchDesk in the graphical interface.
There is also a way to create a .xinitrc file in your own $ HOME (#echo $ home directory.
#CD
#vi .xinitrc
EXEC GNOME-session
: x
Press the ESC key to enter ": x" to save exit.
E filename.tar.bz2 file Using TAR XJVF FileName.tar.bz2 command until you.
TAR.GZ packaging process general installation method:
#CD / TMP
#tar xvzf ... / file.tar.gz
#CD file
#. / configure
#make
#make install
Take a look at its readme or install
The program for RPM packaging is installed with rpm -ivh file.rpm. -e Uninstall.
Upgrade with the -UVH option. -Fvh update, only the version of the old version of the RPM exists in the system will be upgraded. The -UVH option is not installed regardless of the old version in the system.
The query uses the -Q option, -v is the verification option, which can be used in combination with the following options:
-l lists the list of installation files.
-i package information.
-p package.
-f file.
-d lists document files.
Such as:
RPM -Q Mozilla; rpm -ql mozilla; rpm -qi mozilla
RPM -QPL Mozilla ... rpm; rpm -qpi mozilla..rpm
The above command must ensure that the current directory has Mozilla ... rpm.
RPM -QF / USR / BIN / MOZILLA
Look at this file belongs to that package.
RPM -VA verifies all packages; rpm -vf / bin / vi; rpm -vp mozilla ... rpm; rpm -v mozilla.
......
G You can use the following three ways to get a command help.
#command --help
THIS IS SIMPLY.
#info command
#man command
H may encounter a dependency problem when installing an RPM package.
E.g:
#CD / MNT / CDROM / RedHat / RPMS
# rpm -ivh kdemultimedia-2.2-4
Error: Faild Dependencies
TIMIDITY is needed by kdemultimedia-2.2-4
LibZRTSKDE.SO .... libdcop.so.1 ...
.....
I don't recommend it to ignore the dependency problem with --Nodeps option, may not be able to run.
To put these files first, it belongs to that rpm package?
You can search for RPMFind.Net search to determine RPM packages, download and install.
Or search for installation in CDROM, let's introduce a shell program to help you search for RPM packs that contain dependencies.
For pkg in * .rpm
DO
RPM -PQL $ PKG | GREP $ 1> / dev / Null && Echo $ PKG
DONE
Write it into FFRPM
#CHMOD U X FFRPM
#cp ffrpm / bin
#CD / MNT / CDROM / RedHat / RPMS
#frpm findfile
Please see this link for details:
http://www.linuxforum.net/forum/showflat.php?cat=&board=newbie&number=141576&page=&view=&sb=&o=&vc=1
G Upgrade the kernel method, thank CCIE!
Before Make MenuConfig, go under / usr / incrude
#RM-FR SCSI ASM Linux
#LN -S / USR / SRC / Linux / Include / Linux Linux
#LN -S / USR / SRC / Linux / include / ASM-I386 ASM
#LN -S / USR / SRC / Linux / include / SCSI SCSI
Here are three ways to configure the kernel #make config, # make menuconfig, # make Xconfig - this runs under X.
Then, Make Dep, Make Clean, Make Bzimage, Make Make, Make Modules_Install
Copy /usr/src/linux/system.map to / boot, copy BZIMAGE to / Boot. Modify /etc/lilo.conf (if you use lilo), run / sbin / lilo -v.
H Configure the mouse to use the mouseconfig command, use the roller to modify the following two files:
/ etc / sysconfig / mouse
Change it to:
Fullname = "Microsoft - Intellimouse (PS / 2)"
MouseType = "IMPS2"
Xemu3 = "no"
XMOUSETYPE = "IMPS / 2"
Thank GYWX
Or modify / etc / x11 / xf86config-4
Section "InputDevice"
Identifier "mouse0"
Driver "mouse"
Option "protocol" "IMPS / 2"
Option "Device" "/ dev / psaux"
Option "ZAXISMApping" "4 5"
Option "emulate3buttons" "no"
Endsection
You can also choose the mouse model in Mouseconfig to select Microsoft's smart rat or logitech's mouseman.
J Run the LILO command each time you modify the /etc/lilo.conf file, write it to the MBR.
For example, you have to launch WIN defaults:
Prompt
Timeout = 50DEFAULT = WINME
Boot = / dev / hda
MAP = / boot / map
INSTALL = / boot / boot.b
Message = / boot / message
Linear
Image = / boot / vmlinuz-2.4.7-10
Label = Linux
INITRD = / boot / initrd-2.4.7-10.img
Read-only
root = / dev / hda7
Other = / dev / hda1
Optional
Label = WinMe
K enters X, if the screen is 歪, of course, you can directly adjust the monitor, but may conflict with WIN, you can also adjust, adjust it, and record some of the following parameters: hdisplay: 1024 hsyncstart: 1098 hsyncend: 1188 htotal: 1376
Vdisplay: 768 vSyncStart: 769 vsyncend: 772 Vtotal: 808
Pixel Clock (MHz): 94.50
Horizontal Sync (KHz): 68.68
Vertical Sync (HZ): 85.00
Modify / etc / x11 / xf86config-4 files are as follows:
Section "Monitor"
Identifier "___a770"
Vendorname "unknown"
ModelName "Unknown"
HorizSync 68.68
Vertrefresh 85.00
Option "DPMS"
# 1024x768 @ 85 hz, 68.68 kHz hsync / * This sentence is a comment, no * /
Modeline "1024x768" 94.50 1024 1092 1188 1376 768 769 772 808 HSYNC VSYNC
Endsection
L Adding WIN will cause LILO, GRUB to be invalid, can not boot Linux from MBR, then there is a startup disk is very important, you can enter Linux, for Lilo, enter #lilo -v -v -v, for grub , Enter # grub-install / dev / hda, you can. '