|
发表于 2006-2-6 13:20:49
|
显示全部楼层
不错,谢谢。网站内容很多。
就是速度慢了点。我把相关内容发到这里给自己留备份。希望你不要见怪。
What I do it all
by Haiyong Zheng flyzhy.org <> Sun Feb 5 16:14:50 CST 2006
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
安装slackware前后,我都做了些什么呢,下面跟我来看看吧^_^
安装
准备
硬件
CPU
[flyzhy]@[FlyZhy][~](0)$cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 8
model name : Pentium III (Coppermine)
stepping : 10
cpu MHz : 997.734
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse
bogomips : 1997.38
RAM
[flyzhy]@[FlyZhy][~](0)$cat /proc/meminfo
MemTotal: 247380 kB
MemFree: 7996 kB
Buffers: 18764 kB
Cached: 65736 kB
SwapCached: 260 kB
Active: 196044 kB
Inactive: 26452 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 247380 kB
LowFree: 7996 kB
SwapTotal: 289160 kB
SwapFree: 287508 kB
Dirty: 0 kB
Writeback: 0 kB
Mapped: 183800 kB
Slab: 12532 kB
CommitLimit: 412848 kB
Committed_AS: 243372 kB
PageTables: 860 kB
VmallocTotal: 786412 kB
VmallocUsed: 6588 kB
VmallocChunk: 778096 kB
hda
[flyzhy]@[FlyZhy][~](0)$dmesg|grep "^hda"
hda: Maxtor 6E040L0, ATA DISK drive
hda: max request size: 128KiB
hda: 80293248 sectors (41110 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(100)
hda: cache flushes supported
hdd
[flyzhy]@[FlyZhy][~](0)$dmesg|grep "^hdd"
hdd: SAMSUNG CDRW/DVD SM-316B, ATAPI CD/DVD-ROM drive
hdd: ATAPI 40X DVD-ROM CD-R/RW drive, 8192kB Cache
hdd: CHECK for good STATUS
Video Card
VGA compatible controller: Trident Microsystems CyberBlade/i1
Others
[flyzhy]@[FlyZhy][~](0)$lspci
00:00.0 Host bridge: VIA Technologies, Inc. VT8601 [Apollo ProMedia] (rev 05)
00:01.0 PCI bridge: VIA Technologies, Inc. VT8601 [Apollo ProMedia AGP]
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 40)
00:07.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:07.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 1a)
00:07.4 Bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 40)
00:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
01:00.0 VGA compatible controller: Trident Microsystems CyberBlade/i1 (rev 6a)
[flyzhy]@[FlyZhy][~](0)$lsusb
Bus 001 Device 002: ID 0d8c:000c C-Media Electronics, Inc.
Bus 001 Device 001: ID 0000:0000
其他详细信息
[flyzhy]@[FlyZhy][~](0)$sudo lspci -v
00:00.0 Host bridge: VIA Technologies, Inc. VT8601 [Apollo ProMedia] (rev 05)
Flags: bus master, medium devsel, latency 8
Memory at e0000000 (32-bit, prefetchable) [size=64M]
Capabilities: [a0] AGP version 2.0
00:01.0 PCI bridge: VIA Technologies, Inc. VT8601 [Apollo ProMedia AGP] (prog-if 00 [Normal decode])
Flags: bus master, 66Mhz, medium devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
Memory behind bridge: e4000000-e6ffffff
Prefetchable memory behind bridge: 10000000-100fffff
Capabilities: [80] Power Management version 2
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 40)
Subsystem: VIA Technologies, Inc. VT82C686/A PCI to ISA Bridge
Flags: bus master, stepping, medium devsel, latency 0
Capabilities: [c0] Power Management version 2
00:07.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) (prog-if 8a [Master SecP PriP])
Subsystem: VIA Technologies, Inc. VT82C586/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE
Flags: bus master, medium devsel, latency 32
I/O ports at e000
Capabilities: [c0] Power Management version 2
00:07.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 1a) (prog-if 00 [UHCI])
Subsystem: VIA Technologies, Inc. (Wrong ID) USB Controller
Flags: bus master, medium devsel, latency 32, IRQ 11
I/O ports at e400
Capabilities: [80] Power Management version 2
00:07.4 Bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 40)
Subsystem: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI]
Flags: medium devsel
Capabilities: [68] Power Management version 2
00:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RT8139
Flags: bus master, medium devsel, latency 32, IRQ 11
I/O ports at ec00 [size=256]
Memory at e8000000 (32-bit, non-prefetchable) [size=256]
Expansion ROM at 10100000 [disabled] [size=64K]
Capabilities: [50] Power Management version 2
01:00.0 VGA compatible controller: Trident Microsystems CyberBlade/i1 (rev 6a) (prog-if 00 [VGA])
Subsystem: Trident Microsystems CyberBlade/i1
Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 10
Memory at e5800000 (32-bit, non-prefetchable) [size=8M]
Memory at e6000000 (32-bit, non-prefetchable) [size=128K]
Memory at e5000000 (32-bit, non-prefetchable) [size=8M]
Expansion ROM at 10000000 [disabled] [size=64K]
Capabilities: [80] AGP version 2.0
Capabilities: [90] Power Management version 1
[flyzhy]@[FlyZhy][~](0)$sudo lsusb -v
Bus 001 Device 002: ID 0d8c:000c C-Media Electronics, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0d8c C-Media Electronics, Inc.
idProduct 0x000c
bcdDevice 1.00
iManufacturer 0
iProduct 1 C-Media USB Headphone Set
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 253
bNumInterfaces 4
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 1 Audio
bInterfaceSubClass 1 Control Device
bInterfaceProtocol 0
iInterface 0
AudioControl Interface Descriptor:
bLength 10
bDescriptorType 36
bDescriptorSubtype 1 (HEADER)
bcdADC 1.00
wTotalLength 100
bInCollection 2
baInterfaceNr( 0) 1
baInterfaceNr( 1) 2
AudioControl Interface Descriptor:
bLength 12
bDescriptorType 36
bDescriptorSubtype 2 (INPUT_TERMINAL)
bTerminalID 1
wTerminalType 0x0101 USB Streaming
bAssocTerminal 0
bNrChannels 2
wChannelConfig 0x0003
Left Front (L)
Right Front (R)
iChannelNames 0
iTerminal 0
AudioControl Interface Descriptor:
bLength 12
bDescriptorType 36
bDescriptorSubtype 2 (INPUT_TERMINAL)
bTerminalID 2
wTerminalType 0x0201 Microphone
bAssocTerminal 0
bNrChannels 1
wChannelConfig 0x0001
Left Front (L)
iChannelNames 0
iTerminal 0
AudioControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 3 (OUTPUT_TERMINAL)
bTerminalID 6
wTerminalType 0x0301 Speaker
bAssocTerminal 0
bSourceID 9
iTerminal 0
AudioControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 3 (OUTPUT_TERMINAL)
bTerminalID 7
wTerminalType 0x0101 USB Streaming
bAssocTerminal 0
bSourceID 8
iTerminal 0
AudioControl Interface Descriptor:
bLength 7
bDescriptorType 36
bDescriptorSubtype 5 (SELECTOR_UNIT)
bUnitID 8
bNrInPins 1
baSource( 0) 10
iSelector 0
AudioControl Interface Descriptor:
bLength 10
bDescriptorType 36
bDescriptorSubtype 6 (FEATURE_UNIT)
bUnitID 9
bSourceID 15
bControlSize 1
bmaControls( 0) 0x01
Mute
bmaControls( 1) 0x02
Volume
bmaControls( 2) 0x02
Volume
iFeature 0
AudioControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 6 (FEATURE_UNIT)
bUnitID 10
bSourceID 2
bControlSize 1
bmaControls( 0) 0x43
Mute
Volume
Automatic Gain
bmaControls( 1) 0x00
iFeature 0
AudioControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 6 (FEATURE_UNIT)
bUnitID 13
bSourceID 2
bControlSize 1
bmaControls( 0) 0x03
Mute
Volume
bmaControls( 1) 0x00
iFeature 0
AudioControl Interface Descriptor:
bLength 13
bDescriptorType 36
bDescriptorSubtype 4 (MIXER_UNIT)
bUnitID 15
bNrInPins 2
baSourceID( 0) 1
baSourceID( 1) 13
bNrChannels 2
wChannelConfig 0x0003
Left Front (L)
Right Front (R)
iChannelNames 0
bmControls 0x00
iMixer 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 1
bNumEndpoints 1
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 9
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 9
Transfer Type Isochronous
Synch Type Adaptive
Usage Type Data
wMaxPacketSize 0x00c8 bytes 200 once
bInterval 1
bRefresh 0
bSynchAddress 0
AudioControl Endpoint Descriptor:
bLength 7
bDescriptorType 37
bDescriptorSubtype 1 (EP_GENERAL)
bmAttributes 0x01
Sampling Frequency
bLockDelayUnits 1 Milliseconds
wLockDelay 1 Milliseconds
AudioStreaming Interface Descriptor:
bLength 7
bDescriptorType 36
bDescriptorSubtype 1 (AS_GENERAL)
bTerminalLink 1
bDelay 1 frames
wFormatTag 1 PCM
AudioStreaming Interface Descriptor:
bLength 14
bDescriptorType 36
bDescriptorSubtype 2 (FORMAT_TYPE)
bFormatType 1 (FORMAT_TYPE_I)
bNrChannels 2
bSubframeSize 2
bBitResolution 16
bSamFreqType 2 Discrete
tSamFreq[ 0] 48000
tSamFreq[ 1] 44100
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 1
bNumEndpoints 1
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 9
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 5
Transfer Type Isochronous
Synch Type Asynchronous
Usage Type Data
wMaxPacketSize 0x0064 bytes 100 three times
bInterval 1
bRefresh 0
bSynchAddress 0
AudioControl Endpoint Descriptor:
bLength 7
bDescriptorType 37
bDescriptorSubtype 1 (EP_GENERAL)
bmAttributes 0x01
Sampling Frequency
bLockDelayUnits 0 Undefined
wLockDelay 0 Undefined
AudioStreaming Interface Descriptor:
bLength 7
bDescriptorType 36
bDescriptorSubtype 1 (AS_GENERAL)
bTerminalLink 7
bDelay 1 frames
wFormatTag 1 PCM
AudioStreaming Interface Descriptor:
bLength 14
bDescriptorType 36
bDescriptorSubtype 2 (FORMAT_TYPE)
bFormatType 1 (FORMAT_TYPE_I)
bNrChannels 1
bSubframeSize 2
bBitResolution 16
bSamFreqType 2 Discrete
tSamFreq[ 0] 48000
tSamFreq[ 1] 44100
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 3
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Devices
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 bytes 4 three times
bInterval 32
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.00
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 50
Bus 001 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.15 uhci_hcd
iProduct 2 UHCI Host Controller
iSerial 1 0000:00:07.2
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 bytes 2 twice
bInterval 255
软件
光盘
这个很简单,只需要下载两个iso文件,验证md5以后,刻成安装盘就可以了,关于刻录,很简单,我常用的刻录命令就是:
[flyzhy]@[FlyZhy][~](0)$sudo cdrecord dev=ATAPI -scanbus
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 J?rg Schilling
cdrecord: Warning: Running on Linux-2.6.15
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
Warning: Using ATA Packet interface.
Warning: The related Linux kernel interface code seems to be unmaintained.
Warning: There is absolutely NO DMA, operations thus are slow.
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) *
0,1,0 1) 'SAMSUNG ' 'CDRW/DVD SM-316B' 'T300' Removable CD-ROM
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
#cdrecord -v -eject speed=8 dev=ATAPI:0,1,0 fs=8m -data xxx.iso
另外要注意在下载的时候只需要下载slackware-version-install-dx.iso,而slackware-version-source-dx.iso则不需要下载。
硬盘
硬盘安装需要事先有一个windows的fat32盘(恐怕ntfs格式的不可以,最好是fat32的),在这里使用grub for dos+slackware source tgz的方法安装。下载grub020p.zip。需要的文件:
Grub for dos(grub020p)
bzImage from kernels\bare.i\ of slackware-10.1-install-d1.iso
initrd.img from isolinux\ of slackware-10.1-install-d1.iso
slackware-10.1-install-d1.iso
[slackware-10.1-install-d2.iso] 可选
放置如下:
c:\grub020p\
c:\grub.exe(从grub020p\中提取出来)
c:\slkboot\bzImage
c:\slkboot\initrd.img
c:\slackware\从slackware-10.1-install-d1.iso 和 slackware-10.1-install-d2.iso中的slackware目录中提取出来的所有文件 或者 下载slackware-current/slackware/下的所有文件
也可以分开放置:
c:\grub020p\
c:\grub.exe(从grub020p\中提取出来)
c:\slkboot\bzImage
c:\slkboot\initrd.img
d:\slackware\从slackware-10.1-install-d1.iso 和 slackware-10.1-install-d2.iso中的slackware目录提取出来的所有文件 或者 下载slackware-current/slackware/下的所有文件
修改c:\boot.ini,添加一行:
c:\grldr="GRUB"
重启。
slackware下载地址:
http://slackware.at/data/
http://www.slackware.com/getslack/
http://www.abnormalpenguin.com/slackware-mirrors.php
http://iso.linuxquestions.org/distro.php?distro=1
http://www.tlm-project.org/
安装
光盘
把刻好的第一张光盘放入光驱,设置bios从光驱启动后,根据提示用root登录,然后用cfdisk分区,按照提示和自己的需要(软件需要)进行安装。
硬盘
硬盘安装是在前面进行硬盘准备重启后,选择 GRUB 进入grub界面,然后进行如下操作:
... ...
grub>kernel (hd0,0)/slkboot/bzImage root=/dev/hda1
... ...
grub>initrd (hd0,0)/slkboot/initrd.img
... ...
grub>boot
... ...
接下来的操作跟光盘安装如出一辙。
补充
硬盘分区需要至少有一个根/分区和一个swap分区,通常swap分区大小为内存的两倍,但通常300M到500M之间就足够了,可以根据自己的情况来选择。关于硬盘分区的概念可以查阅 这里。下面是我的分区情况:
[flyzhy]@[FlyZhy][~](0)$sudo fdisk -l
Disk /dev/hda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 12 96358+ 83 Linux
/dev/hda2 13 48 289170 82 Linux swap
/dev/hda3 49 4388 34861050 83 Linux
/dev/hda4 4389 4998 4899825 83 Linux
[flyzhy]@[FlyZhy][~](0)$df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 34G 22G 12G 66% /
/dev/hda1 92M 9.2M 78M 11% /boot
在安装的过程中会经过分区,选定swap分区,挂载其他分区,选择安装软件(这里比较重要,因为后面我用到的软件一定要在这里选择才行,不过如果没有选择也可以装完系统后再安装),配置上网方式,设置hostname等,选择启动选项(/etc/rc.d/rc.xxx),设置root密码,等等。
其他相关知识:
非常好的slackware安装指引(图文,英文)
系统引导过程及硬盘分区结构论述
系统引导管理器GRUB,为初学者指南
SlackWare10.1从(硬盘)安装到配置(包括升级)全过程)
配置
基本配置
创建新用户
前面安装完后会提示设置root密码,都设置好后重启,然后就进入我们的新系统了,这时我们首先通过root登录,然后新建用户和用户组,设置新用户的家目录以及相应的配置文件,步骤如下:
#groupadd flyzhy
#cd /home
#mkdir flyzhy
#chmod 755 flyzhy
#useradd -g flyzhy -s /bin/bash flyzhy
#chown flyzhy:flyzhy /home/flyzhy
#passwd flyzhy
*** ***(flyzhy 密码)
~/.vimrc 和 /etc/sudoers
安装的时候选择sudo软件,然后利用命令#visudo让普通用户不用输入root密码就具有root权限(先配置vim格式):
#cp /usr/share/vim/vim63/vimrc_example.vim ~/.vimrc
#cat ~/.vimrc
... ...
endif " has("autocmd")
"colorscheme evening
colorscheme blue
"colorscheme darkblue
"colorscheme delek
"colorscheme desert
"colorscheme elflord
"colorscheme koehler
"colorscheme morning
"colorscheme murphy
"colorscheme pablo
"colorscheme peachpuff
"colorscheme ron
"colorscheme shine
"colorscheme torte
"colorscheme zellner
#visudo
or
#vim /etc/sudoers
#cat /etc/sudoers
... ...
root ALL=(ALL) ALL
flyzhy ALL=(ALL) NOPASSWD:ALL
... ...
配置文件: [$HOME/.vimrc]
配置新用户
新用户flyzhy创建后就可以新开一个控制台(利用Ctrl+Alt+F2~6或Alt+F2~6),用flyzhy登录,然后配置用户flyzhy:
$cd
$wget http://www.flyzhy.org/web/backup/config/flyzhy/.vimrc
$wget http://www.flyzhy.org/web/backup/config/flyzhy/.bash_profile
$wget http://www.flyzhy.org/web/backup/config/flyzhy/.bashrc
配置文件: [$HOME/.vimrc] [$HOME/.bash_profile] [$HOME/.bashrc]
汉字汉化
安装配置完后就需要进行汉化,在这里方法很简单,先修改/etc/profile.d/lang.sh,然后下载字体,配置文件,只需要简单几步就可以得到英文界面,中文输入的配置了:
/etc/profile.d/lang.sh
$sudo vim /etc/profile.d/lang.sh
$cat /etc/profile.d/lang.sh
... ...
export LANG=en_US
export LC_CTYPE=zh_CN
G_BROKEN_FILENAMES=1
... ...
export LC_COLLATE=C
... ...
$wget http://www.flyzhy.org/web/backup/softL/slackfonts/fonts.tar.bz2
$tar xvfj fonts.tar.bz2
$sudo mv fonts /usr/share/fonts
/etc/X11/xorg.conf
$sudo vim /etc/X11/xorg.conf
$cat /etc/X11/xorg.conf
... ...
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
# FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/local/"
# FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
# FontPath "/usr/X11R6/lib/X11/fonts/cyrillic/"
FontPath "/usr/share/fonts/"
... ...
#让鼠标滚轮可以滑动,如果你是usb鼠标,那么在安装完的时候必须选择usb鼠标,详细看这里
Identifier "Mouse1"
Driver "mouse"
Option "rotocol" "IMPS/2"
Option "Device" "/dev/mouse"
Option "ZAxisMapping" "4 5"
... ...
/etc/fonts/fonts.conf
$sudo vim /etc/fonts/fonts.conf
$cat /etc/fonts/fonts.conf
... ...
<!--
This expression is added by Akito Hirai<akito@kde.gr.jp> for convenience.
It can be used to make artificial bold versions in client libraries/applications.
-->
<match target="font">
<test name="weight">
<const>medium</const>
</test>
<test target="pattern" name="weight" compare="more">
<const>medium</const>
</test>
<edit name="weight" mode="assign">
<if>
<more>
<name>spacing</name>
<const>proportional</const>
</more>
<const>demibold</const>
<const>bold</const>
</if>
</edit>
</match>
<match target="font">
<test name="pixelsize" compare="less_eq">
<double>16</double>
</test>
<test name="pixelsize" compare="more_eq">
<double>8</double>
</test>
<edit name="antialias" mode="assign">
<bool>f</bool>
</edit>
</match>
$cd /usr/share/fonts/
$sudo mkfontscale
$sudo mkfontdir
/etc/gtk/gtkrc.zh_CN
$cat /etc/gtk/gtkrc.zh_CN
style "gtk-default-zh-cn" {
fontset = "-bitstream-bitstream vera serif-medium-r-*-*-14-*-*-*-*-*-*-*,\
-misc-*-medium-r-*-*-16-*-*-*-*-*-gbk-0"
}
class "GtkWidget" style "gtk-default-zh-cn"
/etc/gtk-2.0/gtkrc
$cat /etc/gtk-2.0/gtkrc
style "user-font" {
font_name="Bitstream Vera Sans 9"
font_name="simsun 14" }
class "*" style "user-font"
$qtconfig
配置文件: [/etc/profile.d/lang.sh] [/etc/X11/xorg.conf] [/etc/fonts/fonts.conf] [/etc/gtk/gtkrc.zh_CN] [/etc/gtk-2.0/gtkrc]
FVWM
我使用的是FVWM,而slackware自带的fvwm版本太旧,因此我通常下载 libstroke 和 FVWM最新版 重新编译:
$cd && mkdir software && cd software/
$wget http://flyzhy.org/web/backup/sof ... ke-0.5.1fvwm.tar.gz
$wget http://flyzhy.org/web/backup/softL/fvwm/fvwm-2.5.14.tar.bz2
$tar xvfz libstroke-0.5.1fvwm.tar.gz
$cd libstroke-0.5.1fvwm
$./configure && make && sudo make install && cd ../
$tar xvfj fvwm-2.5.14.tar.bz2
$cd fvwm-2.5.14
$./configure && make && sudo make install && cd ../
#如果在这里可能编译不过去可以加参数 --disable-bidi
安装fcitx
$wget http://www.flyzhy.org/web/backup/softL/fcitx-3.1.1.tar.bz2
$tar xvfj fcitx-3.1.1.tar.bz2 && cd fcitx-3.1.1
$./configure && make && sudo make install && cd ../
$cat ~/.xinitrc
... ...
# start some nice programs
export GTK_IM_MODULE=xim
export XMODIFIERS="@im=fcitx"
fcitx 2>&1 /dev/null
... ...
安装habak
$wget http://flyzhy.org/web/backup/softL/fvwm/imlib2-1.2.1.tar.gz
$wget http://flyzhy.org/web/backup/softL/fvwm/habak-0.2.5.tar.gz
$tar xvfz imlib2-1.2.1.tar.gz
$cd imlib2-1.2.1
$./configure && make && sudo make install && cd ../
$tar xvfz habak-0.2.5.tar.gz
$cd habak-0.2.5
$make && sudo cp habak /usr/local/bin/ && cd ../
安装torsmo
$wget http://www.flyzhy.org/web/backup/softL/torsmo/torsmo-0.18.tar.gz
$tar xvfz torsmo-0.18.tar.gz
$cd torsmo-0.18 && ./configure && make && sudo make install && cd ../
$cd
$wget http://www.flyzhy.org/web/backup/config/flyzhy/.torsmorc
$cd software/
$wget -r -k -p -np http://www.flyzhy.org/web/backup/config/flyzhy/.torsmo
$mv www.flyzhy.org/web/backup/config/flyzhy/.torsmo ~/
安装rxvt-unicode
$wget http://www.flyzhy.org/web/backup/softL/rxvt-unicode-7.2.tar.bz2
$tar xvfj rxvt-unicode-7.2.tar.bz2
$cd rxvt-unicode-7.2 && ./configure && make && sudo make install && cd ../
$wget http://www.flyzhy.org/web/backup/config/flyzhy/.Xresources && mv .Xresources ~/
安装firefox
$wget http://www.flyzhy.org/web/backup/softL/firefox-1.5.tar.gz
$tar xvfz firefox-1.5.tar.gz
$sudo mv firefox /usr/local/share/
$sudo ln -s /usr/local/share/firefox/firefox /usr/local/bin/firefox
安装gaim
$wget http://www.flyzhy.org/web/backup/softL/gaim/gaim-1.5.0.tar.bz2
$wget http://www.flyzhy.org/web/backup/softL/gaim/nspr-4.6.1.tar.gz
$wget http://www.flyzhy.org/web/backup/softL/gaim/nss-3.10.tar.gz
$sudo mkdir /usr/include/nspr /usr/include/nss
$tar xvfz nspr-4.6.1.tar.gz
$sudo cp -r nspr-4.6.1/include/* /usr/include/nspr && sudo cp nspr-4.6.1/lib/* /usr/lib/
$tar xvfz nss-3.10.tar.gz
$sudo cp -r nss-3.10/include/* /usr/include/nss && sudo cp nss-3.10/lib/* /usr/lib/
$tar xvfj gaim-1.5.0.tar.bz2
$cd gaim-1.5.0 && ./configure --with-nspr-includes=/usr/include/nspr --with-nspr-libs=/usr/lib --with-nss-includes=/usr/include/nss --with-nss-libs=/usr/lib && make && sudo make install && cd ../
安装stardict
词典下载
$wget http://www.flyzhy.org/web/backup ... 2.4.6-i486-1pin.tgz
$sudo installpkg stardict-2.4.6-i486-1pin.tgz
$wget http://www.flyzhy.org/web/backup ... tardict-all.tar.bz2
$tar xvfj stardict-all.tar.bz2 && cd stardict
$for i in $(ls); do sudo tar xvfj $i -C /usr/share/stardict/dic/ ; done
$cd ../
安装OpenOffice
$wget http://www.flyzhy.org/web/backup/softL/OOO/OOO-Install.iso
#mount -o loop OOO-Install.iso /mnt/iso
#mkdir ~/ooo
#cp /mnt/iso/packages/zh-CN/* ~/ooo/
#./run
... ...
#cat run
#!/bin/bash
for f in `ls *.rpm`; do rpm2targz $f; done
for f in `ls *.rpm`; do rm $f; done
for f in `ls *.tar.gz`; do tar xzf $f; done
for f in `ls *.tar.gz`; do rm $f; done
#mv openoffice.org2.0 /usr/local/share/
$echo $PATH
/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin:/usr/games:/sbin:/usr/local/sbin:/usr/sbin:/opt/bin:/usr/share/texmf/bin:/usr/lib/jre1.5.0_04/bin:/usr/local/share/openoffice.org2.0/program:/home/flyzhy/bin/monsterz-0.6.1
安装rox-filter
$cd ~/software
$wget http://www.flyzhy.org/web/backup/softL/fvwm/rox-2.4.tgz
$tar xvfz rox-2.4.tgz
$cd rox-2.4 && ./configure && make && sudo make install && cd ../
fvwm配置文件
$wget http://flyzhy.org/interest/soft/config/fvwm.tar.bz2
$tar xvfj fvwm.tar.bz2 -C ~/
其他相应配置文件: [$HOME/.xinitrc] [$HOME/.torsmorc|$HOME/.torsmos/fan2.sh|$HOME/.torsmos/hdatemp.sh|$HOME/.torsmos/seti.sh|$HOME/.torsmos/temp1.sh|$HOME/.torsmos/temp2.sh|$HOME/.torsmos/VBat.sh|$HOME/.torsmos/Vcorel.sh|$HOME/.torsmos/weather.sh] [$HOME/.Xresources]
内核配置
bootsplash
下载内核,然后下载相应的bootsplash补丁,打上补丁。
unicon
下载与所用内核相对应的unicon补丁,然后给内核打补丁,由于先前打了bootsplash的补丁所以会产生冲突,因此会有两处补丁失败,在这里可以手动修改 drivers/video/console/bitblit.c 和 drivers/video/console/fbcon.c。
下载和安装
linux-2.6.15.tar.bz2
bootsplash-3.1.6-2.6.15.diff
vd_unicon-kernel-fonts-20040205.patch
vd_unicon-kernel-20060103-2.6.15.patch
drivers/video/console/bitblit.c
drivers/video/console/fbcon.c
/usr/src/linux/.config
#cp linux-2.6.15.tar.bz2 bootsplash-3.1.6-2.6.15.diff vd_unicon-kernel-fonts-20040205.patch vd_unicon-kernel-20060103-2.6.15.patch bitblit.c fbcom.c .config /usr/src/
#cd /usr/src/
#tar xvfj linux-2.6.15.tar.bz2 && rm -rf linux && ln -sf linux-2.6.15 linux && cd linux
#patch -p1 > ../bootsplash-3.1.6-2.6.15.diff
#patch -p1 > ../vd_unicon-kernel-fonts-20040205.patch
#patch -p1 > ../vd_unicon-kernel-20060103-2.6.15.patch
#cp /usr/src/bitblit.c /usr/src/fbcom.c /usr/src/linux/drivers/video/console/
#cp /usr/src/.config /usr/src/linux
#make menuconfig
#make
#make modules_install
#cp /usr/src/linux/arch/i386/boot/bzImage /boot/kernel-2.6.15
#cp /usr/src/linux/System.map /boot/System.map-2.6.15
#cp /usr/src/linux/.config /boot/config-2.6.15
#wget http://www.flyzhy.org/web/backup ... -10.2-i486-2kta.tgz
#installpkg bootsplash-10.2-i486-2kta.tgz
#wget http://www.flyzhy.org/web/backup/config/etc/rc.d/rc.splash
#wget http://www.flyzhy.org/web/backup/config/etc/rc.d/rc.bootsplash
#wget http://www.flyzhy.org/web/backup/config/etc/rc.d/rc.local
#cp rc.splash rc.bootsplash rc.local /etc/rc.d/
#/sbin/splash -s -f /etc/bootsplash/themes/current/config/bootsplash-800x600.cfg > /boot/initrd-800x600
配置文件: [/etc/rc.d/rc.splash] [/etc/rc.d/rc.bootsplash] [/etc/rc.d/rc.local]
#wget http://www.flyzhy.org/web/backup ... 0.0.20050707.tar.gz
#tar xvfz unicon-tools-0.0.0.20050707.tar.gz
#cd unicon-tools-0.0.0.20050707 && ./configure && make && make install
#wget http://www.flyzhy.org/web/backup/config/etc/rc.d/rc.unicon
#wget http://www.flyzhy.org/web/backup/config/etc/rc.d/rc.local
#cp rc.unicon rc.local /etc/rc.d/
#mknod /dev/unikey c 10 202
#chmod 640 /dev/unikey
... ...
#/usr/local/bin/unicontrol --gbk
配置文件: [/etc/rc.d/rc.unicon] [/etc/rc.d/rc.local]
#wget http://www.flyzhy.org/web/backup/config/boot/lilo.bmp
#cat /etc/lilo.conf
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda
#message = /boot/boot_message.txt
prompt
timeout = 60
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 800x600x256
#vga = 771
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
bitmap = /boot/lilo.bmp
bmp-colors = 15,,0,5,,15
bmp-table = 59,5,1,18
bmp-timer = 66,28,6,8,0
# End LILO global section
# Linux bootable partition config begins
image = /boot/kernel-2.6.15
initrd = /boot/initrd-800x600-dragon
append = "video=vesafb:ywrap,mtrr splash=verbose"
# append = "splash=silent" # switch to verbose pressing F2 key
vga = 788
root = /dev/hda3
label = SLK2615
read-only
image = /boot/vmlinuz
vga = 771
root = /dev/hda3
label = Linux
read-only
# Linux bootable partition config ends
#lilo
/etc/lilo.conf
bootsplash for slackware kernel-2.6.12!
Themes
其他软件配置
MPlayer安装
安装mplayer
$cd ~/software
$wget http://flyzhy.org/web/backup/sof ... 1.0pre7try2.tar.bz2
$wget http://flyzhy.org/web/backup/sof ... ll-20050412.tar.bz2
$wget http://flyzhy.org/web/backup/sof ... ws-all-20050412.zip
$wget http://flyzhy.org/web/backup/sof ... e.2005.11.11.tar.gz
$wget http://flyzhy.org/web/backup/sof ... -iso-8859-1.tar.bz2
$wget http://flyzhy.org/web/backup/sof ... gb2312-ming.tar.bz2
$wget http://ftp5.mplayerhq.hu/mplayer/Skin/iTunes-1.1.tar.bz2
$tar xvfj all-20050412.tar.bz2 && sudo mkdir /usr/local/lib/codecs && sudo cp all-20050412/* /usr/local/lib/codecs/
$unzip windows-all-20050412.zip && sudo mkdir /usr/local/lib/codecs_windows && sudo cp windows-all-20050412/* /usr/local/lib/codecs_windows
$tar xvfz live.2005.11.11.tar.gz && cd live && ./genMakefile linux && make && sudo mkdir /usr/local/lib/codecs_live && sudo cp -r * /usr/local/lib/codecs_live && cd ../
$tar xvfj MPlayer-1.0pre7try2.tar.bz2 && cd MPlayer-1.0pre7try2 && ./configure --enable-gui --enable-freetype --enable-xmms --enable-menu --enable-live --with-livelibdir=/usr/local/lib/codecs_live --with-codecsdir=/usr/local/lib/codecs --with-win32libdir=/usr/local/lib/codecs_win32 | tee outfile_configure && make && sudo make install && cd ../
optional: [--disable-gcc-checking --language=zh_CN]
$tar xvfj gb2312-ming.tar.bz2 && sudo cp -r gb2312-ming /usr/local/share/mplayer/font/ && cd /usr/local/share/mplayer/font/ && sudo ln -s gb2312-ming font && cd ~/software
$mkdir ~/.mplayer && ln -s /usr/share/fonts/simsun.ttf ~/.mplayer/subfont.ttf
$tar xvfj Blue-1.4.tar.bz2 && sudo cp -r Blue /usr/local/share/mplayer/Skin/ && cd /opt/share/mplayer/Skin/ && sudo ln -s Blue default && cd ~/software/MPlayer-1.0pre7try2/etc/
$sudo cp example.conf /usr/local/share/mplayer/etc/config
$sudo cp codecs.conf /usr/local/share/mplayer/etc/
$sudo cp input.conf /usr/local/share/mplayer/
$cp input.conf ~/.mplayer/
配置文件: [$HOME/.mplayer/config] [$HOME/.mplayer/gui.conf]
TeX/LaTeX中文解决方案
slackware 10.2默认安装的是tetex-3.0-i486-1.tgz,安装完后会在/usr/share/生成两个目录:
/usr/share/texmf - $TEXMFMAIN
/usr/share/texmf-var - $VARTEXMF
为此我们自己创建一个自己的目录作为$TEXMFLOCAL - #mkdir -p /usr/share/texmf-local
这样就组成了完整的TDS(TeX Directory Structure),关于TeX的TDS可以参考 王垠写的TDS目录结构,另外,这里有一份 详细的英文TDS介绍。然后修改PATH,添加路径/usr/share/texmf/bin。
配置字体
下载 gbkfonts(生成字体程序),这个是 王垠基于 energy (obase@163.net) 的源程序改进的一个用来从 TTF 汉字字体生成 TeX 使用的汉字 Type1 字体的转换软件,同时还可以生成很多 TeX 系统程序需要的配置文件。
Windows 版本 0.1 下载
Linux 版本 0.3 下载。有人使用很老的 glibc 可能会出现版本不兼容的问题,如果你不想自己编译,可以下载一个静态连接的版本,直接设置可执行后就可以运行。
Solaris 版本 0.2 下载
事实上下载 Linux 版本 0.3后,解压缩,里面有个可执行文件gbkfonts就可以直接在slackware下用了,如果你嫌麻烦就直接下载这个版本,然后解压缩,提取里面的gbkfonts就够了。然后:
$cd
$sudo mkdir -p /usr/share/texmf-local
$mkdir ~/TeX && cd ~TeX/
$wget http:/www.flyzhy.org/web/backup/TeX/gbkfonts
$chmod +x gbkfonts && sudo cp gbkfonts /usr/local/bin/
$wget http://www.flyzhy.org/web/backup/TeX/hanzi.tar.gz
$tar xvfz hanzi.tar.gz
$cd hanzi && mkdir fontsgenerate && cd fontsgenerate
$wget http://www.flyzhy.org/web/backup/TeX/run_gbkfonts
$chmod +x run_gbkfonts && ./run_gbkfonts
$sudo cp -r ~/TeX/hanzi/fontsgenerate/* /usr/share/texmf-local/
安装CJK宏包
下载CJK宏包的最新版,然后做些复制工作即可。
$cd ~/TeX
$wget http://www.flyzhy.org/web/backup/TeX/cjk-current.tar.gz
$tar xvfz cjk-current.tar.gz
$sudo cp -r ~/TeX/cjk-current/texinput/* /usr/share/texmf-local/tex/latex/CJK/
让dvips支持中文
配置文件以让dvips等支持中文。
$cd /usr/share/texmf-local
$sudo echo "p +/usr/share/texmf-local/cjk.map" >> /usr/share/texmf/dvips/config/config.ps
$sudo cp cid-x.map dvipdfm/config/
$sudo cp pdftex.cfg pdftex/config/
$sudo vim /usr/share/texmf/web2c/texmf.cnf
$cat /usr/share/texmf/web2c/texmf.cnf
... ...
% Device-independent font metric files.
VFFONTS = .;$TEXMF/fonts/vf//
TFMFONTS = .;{$TEXMF/fonts,$VARTEXFONTS}/tfm//;/usr/share/texmf-local/fonts/tfm//
... ...
% PostScript Type 1 outline fonts.
T1FONTS = .;$TEXMF/fonts/type1//;/usr/share/texmf-local/fonts/type1//
% PostScript AFM metric files.
AFMFONTS = .;$TEXMF/fonts/afm//;/usr/share/texmf-local/fonts/afm//
% TrueType outline fonts.
TTFONTS = .;$TEXMF/fonts/truetype//;/usr/share/texmf-local/fonts/type1//
$sudo /usr/share/texmf/bin/mktexlsr
Xpdf配置
根据Linuxsir的一位兄弟的帖子,可以显示中文及中文书签的xpdf安装如下:
$mkdir ~/xpdf && cd ~/xpdf
$wget http://flyzhy.org/web/backup/softL/xpdf/xpdf-3.00-cjk.tar.gz
$tar zxvf xpdf-3.00-cjk.tar.gz
$cd xpdf
$tar zxvf xpdf-3.00.tar.gz
$cd xpdf-3.00
$patch -Np1 -i ../xpdf-3.00-freetype_2.1.7_hack-1.patch
$patch -Np0 -i ../xpdf-3.0-cjk-font.diff
$patch -Np0 -i ../xpdf-cjk-fix.diff
$cd xpdf
$patch -Np0 -i ../../xpdf-3.00pl1.patch
$cd ..
$./configure --prefix=/usr --sysconfdir=/etc --with-freetype2-includes=/usr/include/freetype2
$make
$sudo make install
$sudo mkdir -p /usr/share/xpdf/chinese-simplified
$cd ~/xpdf && wget http://flyzhy.org/web/backup/sof ... e-simplified.tar.gz
$tar xvfz xpdf-chinese-simplified.tar.gz
$sudo cp -r xpdf-chinese-simplified/* /usr/share/xpdf/chinese-simplified/
$echo "xpdf*.fontList: -*-bitstream vera sans-medium-r-normal--14-*-*-*-*-*-iso8859-1; -misc-stkaiti-medium-r-normal--14-*-*-*-*-*-gbk-0:" >> ~/.Xresources
$xrdb -merge ~/.Xresources
$HOME/.xpdfrc
$HOME/.Xresources
全部配置文件
$wget -r -p -np -k http://www.flyzhy.org/web/backup/config
--------------------------------------------------------------------------------
Feb 06, 2006 last modified
Copyright (c) 2005, 2006 Haiyong Zheng | flyzhy.org AT OUC |
|