SLACKWARE is an advanced GNU/Linux distribution which maintain principle of KISS(Keep It Simple, Stupid) and released by Patrick Volkerding. The newest version is Slackware Linux 10.1(Kernel Version is 2.4.39 and including 2.6.10 as testing) which you can get via the following sites:
http://slackware.at/data/slackware-10.1-iso/
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/
the first site is quoted from
http://www.linuxsir.org/ and the others are quoted from
http://distrowatch.com
Then I will show you howto install it and howto config it basically. When you first install it, maybe it cannot display Chinese normally, so I write this article in English.
According to the posts on the forum(
http://www.linuxsir.org) I know the installation mainly have two methods that are installation from CD/DVD and installation from Hard Drive Partition. The CD/DVD installation is easier than Hard Drive Partition installation, so here you will see the process of Hard Drive Partition installation based on Windows(fat32).
1,Preparation
The First main work of Preparation is that you must divide the Hard Disk correctly. SlackWare needs a Linux Swap(which is about double size of your PC's memory by suggestion) and a partition to install SlackWare(it may be primary or logical partition).It's better to divide them from you whole Hard Disk before installation.
The Second main work of Preparation is that you must download the
slackware-10.1-install-d1.iso and
slackware-10.1-install-d2.iso correctly. That means you must check them by
slackware-10.1-install-d1.iso.md5 and
slackware-10.1-install-d2.iso.md5 that are provided by the corresponding site.
grub020p(
Grub For Dos)
Remember: It is very important to keep the two isos correctly.
The Third main work of Preparation is that you must place the installing files correctly.
The files needed as follows:
Quote:
Originally Posted by zhy
Dos Booting Floppy(if you have no FD, see here hiweed)
Grub for dos
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]
|
*[ ] means it is not necessary.
The files placed as follows:
Quote:
Originally Posted by zhy
c:\grub020p\
c:\grub.exe(extract from grub020p\)
c:\slkboot\bzImage
c:\slkboot\initrd.img
c:\slack\here are the files extracted from slackware-10.1-install-d1.iso and slackware-10.1-install-d2.iso
|
Note: c partition is not the only option of the Hard Drive Partition to prepare for the installation(for example you can replace all of c: with d: or e: etc. Also you can replace only c: of c:\slack\here are the files extracted from
slackware-10.1-install-d1.iso and
slackware-10.1-install-d2.iso with d:.)
2,Installation
After the preparation we will enter the stirring procedure-installation.In fact, it's very easy in the precondition of well preparation.
First,reboot the system and put the DOS booting floppy into FD(floppy drive). Here it must be real DOS environment. And in DOS type commands as follows:
Code:
A:\C:
C:\grub.exe
......
grub>kernel (hd0,0)/slkboot/bzImage root=/dev/hda1
......
grub>initrd (hd0,0)/slkboot/initrd.img
......
grub>boot
......
Then use root as the default administrator and put "setup"to install SlackWare according to the prompt it gives.
The whole process of installation refers to here(including the installing pictures):
zzj666
After the installation you must be sure to install lilo into MBR to boot Windows and Linux.
3,Configuration
As far as I know, the Installation of SLK is easy but the Configuration to newbies is very tough. That's only because you are not familiar with her. If you can control her masterly, then the world of SLK belongs to you^_^
Fisrt, add an
new user and a
new group:
Code:
#groupadd zhy
#cd /home
#mkdir zhyfly
#chmod 644 zhyfly
#useradd -g zhy -p ****** -s /bin/bash zhyfly
use sudo to give zhyfly execute commands as root(make sure to select sudo during installation):
open sudoers and add "zhyfly ALL=(ALL) NOPASSWD:ALL" .
Second, config the /etc/ files:
/etc/fstab
Code:
/dev/hda4 swap swap defaults 0 0
/dev/hda3 / reiserfs defaults 1 1
/dev/hda1 /mnt/fatc vfat defaults,rw,users,dmask=000,fmask=0111,umask=000,codepage=936,iocharset=cp936 1 0
/dev/hda5 /mnt/fatd vfat defaults,rw,users,dmask=000,fmask=0111,umask=000,codepage=936,iocharset=cp936 1 0
/dev/hda6 /mnt/nte ntfs rw,users,umask=000,nls=cp936 1 0
/dev/hda7 /mnt/ntf ntfs rw,users,umask=000,nls=cp936 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
/etc/profile.d/lang.sh
add the following two sentences after "export LANG=en_US"
Code:
export LC_CTYPE=zh_CN
G_BROKEN_FILENAMES=1
Third, config ~/.bashrc:
/root/.bashrc
Code:
#!/bin/bash
# This should go in your ~/.bashrc file
# The end version for all uesrs (root or general users)
# Your system is $os which should be linux, bsd or unix
case $(uname -s) in
Linux) os=linux ;;
*[Bb][Ss][Dd]) os=bsd ;;
*) os=unix ;;
esac
# ANSI color definition
# Attribute:
# 0-off 1-bold(bright) 2-light(default) 4-underline 5-twinkle 7-reversal
# ForeGround:
# 30-black 31-red 32-green 33-yellow 34-blue 35-magenta 36-bluer 37-white
# BackGround:
# 40-black 41-red 42-green 43-yellow 44-blue 45-magenta 46-bluer 47-white
# Format: \033[Attribute;ForeGround;BackGroundm
# ie:
# NORMAL="\[\033[0m\]"
# BRIGHT_MAGENTA_RED="\[\033[1;35;41m\]"
# Define the bash prompt respectly by $UID
if [ $UID -eq 0 ]; then
# root (blue background with red foreground)
# Format: [root]@[host][dir](last_command_return)#
export PS1="\[\033[1;31;44m\][\u]@[\h]\[\033[1;31;44m\][\w](\$?)#\[\033[0m\]"
umask=022
export PATH="/usr/bin:/bin:/usr/local/bin:/sbin:/usr/local/sbin:/usr/X11R6/bin:/usr/games"
alias rm="rm -i"
alias cp="cp -i"
alias mv="mv -i"
else
# general users (magenta background with yellow foreground)
# Format: [user]@[host][dir](last_command_return)$
export PS1="\[\033[1;33;45m\][\u]@[\h]\[\033[1;33;45m\][\w](\$?)\$\[\033[0m\]"
export PATH="/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin:/usr/games:/sbin"
alias reboot="sudo reboot"
alias halt="sudo halt"
alias cat="sudo cat"
fi
# Tab Completion
set show-all-if-ambiguous on
set visible-stats on
# If this is an xterm set the title to user@host:dir
case $TERM in
xterm*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}:${PWD}\007"'
;;
*)
;;
esac
# Configuration of locale and input(fcitx)
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
export LANG="en_US"
export LC_CTYPE="zh_CN"
export GTK_IM_MODULE=xim
export XMODIFIERS="@im=fcitx"
fcitx &>/dev/null
# Display ls-color according to your $os
# --classify : executable files end with *
# directories end with /
if [ "$os" = "linux" ]; then
alias ls='/bin/ls --color=auto --classify'
elif [ -x /usr/local/bin/ls ]; then
alias ls='/usr/local/bin/ls --color=auto --classify'
else
alias ls='/bin/ls -F'
fi
# Other aliases
# ls
alias ll="ls -l"
alias la="ls -a"
alias lla="ls -all"
# ps
case $os in
linux)
alias psa='ps axo "user,pid,ppid,%cpu,%mem,tty,stime,state,command"'
;;
bsd)
alias psa='ps axo "user,pid,ppid,%cpu,%mem,tty,start,state,command"'
;;
unix)
alias psa='ps -A -o "user,pid,ppid,ty,stime,s,comm"'
;;
esac
# END
/home/zhyfly/.bashrc
Code:
#!/bin/bash
# This should go in your ~/.bashrc file
# The end version for all uesrs (root or general users)
# Your system is $os which should be linux, bsd or unix
case $(uname -s) in
Linux) os=linux ;;
*[Bb][Ss][Dd]) os=bsd ;;
*) os=unix ;;
esac
# ANSI color definition
# Attribute:
# 0-off 1-bold(bright) 2-light(default) 4-underline 5-twinkle 7-reversal
# ForeGround:
# 30-black 31-red 32-green 33-yellow 34-blue 35-magenta 36-bluer 37-white
# BackGround:
# 40-black 41-red 42-green 43-yellow 44-blue 45-magenta 46-bluer 47-white
# Format: \033[Attribute;ForeGround;BackGroundm
# ie:
# NORMAL="\[\033[0m\]"
# BRIGHT_MAGENTA_RED="\[\033[1;35;41m\]"
# Define the bash prompt respectly by $UID
if [ $UID -eq 0 ]; then
# root (blue background with red foreground)
# Format: [root]@[host][dir](last_command_return)#
export PS1="\[\033[1;31;44m\][\u]@[\h]\[\033[1;31;44m\][\w](\$?)#\[\033[0m\]"
umask=022
export PATH="/usr/bin:/bin:/usr/local/bin:/sbin:/usr/local/sbin:/usr/X11R6/bin:/usr/games"
alias rm="rm -i"
alias cp="cp -i"
alias mv="mv -i"
else
# general users (magenta background with yellow foreground)
# Format: [user]@[host][dir](last_command_return)$
export PS1="\[\033[1;33;45m\][\u]@[\h]\[\033[1;33;45m\][\w](\$?)\$\[\033[0m\]"
export PATH="/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin:/usr/games:/sbin"
alias reboot="sudo reboot"
alias halt="sudo halt"
alias cat="sudo cat"
fi
# Tab Completion
set show-all-if-ambiguous on
set visible-stats on
# If this is an xterm set the title to user@host:dir
case $TERM in
xterm*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}:${PWD}\007"'
;;
*)
;;
esac
# Configuration of locale and input(fcitx)
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
export LANG="en_US"
export LC_CTYPE="zh_CN"
export GTK_IM_MODULE=xim
export XMODIFIERS="@im=fcitx"
fcitx &>/dev/null
# Display ls-color according to your $os
# --classify : executable files end with *
# directories end with /
if [ "$os" = "linux" ]; then
alias ls='/bin/ls --color=auto --classify'
elif [ -x /usr/local/bin/ls ]; then
alias ls='/usr/local/bin/ls --color=auto --classify'
else
alias ls='/bin/ls -F'
fi
# Other aliases
# ls
alias ll="ls -l"
alias la="ls -a"
alias lla="ls -all"
# ps
case $os in
linux)
alias psa='ps axo "user,pid,ppid,%cpu,%mem,tty,stime,state,command"'
;;
bsd)
alias psa='ps axo "user,pid,ppid,%cpu,%mem,tty,start,state,command"'
;;
unix)
alias psa='ps -A -o "user,pid,ppid,ty,stime,s,comm"'
;;
esac
# END
then you can startx use the new user:
Fourth, config xorg:
Code:
[zhyfly@zhy2fly ~]$xorgconfig
select the approtiate option according to your own Hardware of your PC.
(including keyboard, mouse, monitor, video card, etc.)
After that you must modify
/etc/X11/xorg.conf mannually to make your three wheels mouse word normally.
modify
Code:
Option "Protocol" "PS/2"
to
Code:
Option "Protocol" "IMPS/2"
and add the following sentence
Code:
Option "ZAxisMapping" "4 5"
Then install Chinese fonts from the
attachment.
Code:
installpkg fontconfig-2.2.1-i486-1.Firefly.tgz
After that and Ctrl+Alt+Backspace to reboot X, you will see your English Environment and
Chinese Display:)
4,Upgrade Kernel
Download the necessary files for upgrading kernel provided by SlackWare from here:
http://slackware.at/data/slackware-c...nux-2.6.11.11/
Files:
Code:
README.initrd
kernel-generic-2.6.11.11-i486-1.tgz
kernel-modules-2.6.11.11-i486-1.tgz
kernel-source-2.6.11.11-noarch-1.tgz
alsa-driver-1.0.9b_2.6.11.11-i486-1.tgz
kernel-headers-2.6.11.11-i386-1.tgz
kernel-headers.WARNING
First you must read README.initrd and kernel-headers.WARNING.
Here I post my upgrading process(or refer to here
http://distrowatch.com/weekly.php?issue=20040628#1):
Code:
[zhyfly@zhy2fly linux2611]$sudo installpkg kernel-generic-2.6.11.11-i486-1.tgz
......
[zhyfly@zhy2fly linux2611]$sudo installpkg kernel-modules-2.6.11.11-i486-1.tgz
......
[zhyfly@zhy2fly linux2611]$cd /boot
[zhyfly@zhy2fly boot]$sudo mkinitrd -c -k 2.6.11.11 -m reiserfs
[zhyfly@zhy2fly boot]$
modify /etc/lilo.conf
Code:
......
# Linux bootable partition config begins
image = /boot/vmlinuz-generic-2.6.11.11
initrd = /boot/initrd.gz
root = /dev/hda3
label = SLK261111
read-only
image = /boot/vmlinuz
root = /dev/hda3
label = SLK2429
read-only
# Linux bootable partition config ends
# Windows bootable partition config begins
other = /dev/hda1
label = Windows
table = /dev/hda
# Windows bootable partition config ends
At last run:
Code:
[zhyfly@zhy2fly etc]$sudo lilo
Added SLK261111 *
Added SLK2429
Added Windows
[zhyfly@zhy2fly etc]
OK,Enjoy it^_^