|
楼主 |
发表于 2009-1-4 13:18:58
|
显示全部楼层
呵呵,借用一下位置给自己做个备忘:
lenovo E42L笔记本
slackware 12.2
root@wang:~# fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x624aa2e0
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1274 10233373+ 7 HPFS/NTFS
/dev/sda2 1275 19457 146054947+ f W95 Ext'd (LBA)
/dev/sda5 1275 2432 9301603+ 7 HPFS/NTFS
/dev/sda6 2433 4864 19535008+ 7 HPFS/NTFS
/dev/sda7 4865 7296 19535008+ 7 HPFS/NTFS
/dev/sda8 7297 11120 30716248+ b W95 FAT32
/dev/sda9 11121 11382 2104483+ 82 Linux swap
/dev/sda10 11383 11513 1052226 83 Linux
/dev/sda11 11514 12166 5245191 83 Linux
/dev/sda12 12167 14777 20972826 83 Linux
/dev/sda13 14778 15430 5245191 83 Linux
/dev/sda14 15431 19457 32346846 83 Linux
root@wang:~# df -lh
文件系统 容量 已用 可用 已用% 挂载点
/dev/root 5.0G 488M 4.2G 11% /
/dev/sda10 1012M 53M 908M 6% /boot
/dev/sda12 20G 4.2G 15G 23% /usr
/dev/sda13 5.0G 174M 4.6G 4% /var
/dev/sda14 31G 206M 29G 1% /home
/dev/sda1 9.8G 3.6G 6.3G 37% /mnt/win-c
/dev/sda5 8.9G 1.7G 7.3G 19% /mnt/win-d
/dev/sda6 19G 2.1G 17G 12% /mnt/win-e
/dev/sda7 19G 15G 3.7G 81% /mnt/win-f
/dev/sda8 30G 4.1G 26G 14% /mnt/win-g
tmpfs 1007M 0 1007M 0% /dev/shm
root@wang:~#
从硬盘安装
1、在C盘根目录下新建文件夹sl.
2、解压缩系统ISO文件至win下的G盘(dev/sda8)的sl文件夹中,复制/sl/isolinux/initrd.img以及/sl/kernels/hugesmp.s/bzImage(双核CPU选择这个){单核则选/sl/kernels/huge.s/bzImage}到C盘sl目录下。
3、解压缩grub4dos,复制grldr及grub.exe文件至C盘(dev/sda1)根目录下。
4、修改C盘根目录下的boot.ini文件(先去掉文件的只读属性):
在文件的最后添加一行:
C:\GRLDR="Grub for SlackWare"
5、保存文件,重启计算机。
6、在启动菜单上选择Ggrub for slackware选项,进入grub命令提示符:
grub>
在提示符后操作:
grub>kernel /sl/bzImage
grub>initrd /sl/initrd.img
grub>boot
至此开始引导slackware内核。按照常规方式安装系统。
至选择安装源一步时,选择“从硬盘的一个分区安装”:依次输入:
/dev/sda8(选择安装包所在的分区)
/sl/slackware(选择安装包的位置)
至安装完成。
安装完成后的设置
1、修改/etc/X11/xorg.conf:
1.1、# The available mouse protocols types that you can set below are:
# Auto BusMouse GlidePoint GlidePointPS/2 IntelliMouse IMPS/2
# Logitech Microsoft MMHitTab MMSeries Mouseman MouseManPlusPS/2
# MouseSystems NetMousePS/2 NetScrollPS/2 OSMouse PS/2 SysMouse
# ThinkingMouse ThinkingMousePS/2 Xqueue
Option "rotocol" "IMPS/2"
Option "Buttons" "5"
Option "ZAxisMapping" "4 5" #修改成这样使支持鼠标滚轮
1.2、将有关显卡设置的内容修改成如下:
# **********************************************************************
# Graphics device section
# **********************************************************************
# Any number of graphics device sections may be present
Section "Device"
Identifier "intel"
Driver "intel"
EndSection
# **********************************************************************
# Screen sections
# **********************************************************************
# Any number of screen sections may be present. Each describes
# the configuration of a single screen. A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.
Section "Screen"
Identifier "Screen 1"
Device "intel"
Monitor "My Monitor"
这样intel X3100显卡就能正常驱动了,重启计算机后,显示分辨率就自动变成了1280x800。
2、修改/etc/profile.d/lang.sh成如下:
#!/bin/sh
# Set the system locale. (no, we don't have a menu for this ;-)
# For a list of locales which are supported by this machine, type:
# locale -a
# en_US is the Slackware default locale:
#export LANG=en_US
export LANG=zh_CN.UTF-8
export LC_ALL=zh_CN.UTF-8
G_BROKEN_FILENAMES=1
这样进入KDE桌面后中文就能正常显示了。
3、修改/etc/fstab文件成如下:
/dev/sda1 /mnt/win-c ntfs-3g locale=zh_CN.UTF-8,umask=000 1 0
/dev/sda5 /mnt/win-d ntfs-3g locale=zh_CN.UTF-8,umask=000 1 0
/dev/sda6 /mnt/win-e ntfs-3g locale=zh_CN.UTF-8,umask=000 1 0
/dev/sda7 /mnt/win-f ntfs-3g locale=zh_CN.UTF-8,umask=000 1 0
/dev/sda8 /mnt/win-g vfat defaults 1 0
添加了locale=zh_CN.UTF-8,这样所挂载的WIN分区中的中文名的文件和目录就能正常显示了。
4、修改/etc/inittab文件如下:
# These are the default runlevels in Slackware:
# 0 = halt
# 1 = single user mode
# 2 = unused (but configured the same as runlevel 3)
# 3 = multiuser mode (default Slackware runlevel)
# 4 = X11 with KDM/GDM/XDM (session managers)
# 5 = unused (but configured the same as runlevel 3)
# 6 = reboot
# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:
这样启动时直接下入X系统。
系统基本能正常使用。
选择lilo启动菜单进入linux时,显示loading linux..............................................很慢的解决方法:
修改/etc/lilo.conf:
在其中加入一行:
compact
重启即可。
安装firefox的flash插件:
解压缩install_flash_player_10_linux.tar.gz包得到libflashplayer.so
#cp libflashplayer.so /usr/lib/mozilla/plugins/ |
|