LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices

Reply
 
Search this Thread
Old 08-07-2005, 07:03 PM   #1
zhy2111314
Member
 
Registered: Aug 2005
Location: China
Distribution: redhat(Fedora Core)->Debian Sid->Slackware
Posts: 91

Rep: Reputation: 15
SLACKWARE10.1---full process from (HardDisk)installation to configuration!


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):

Code:
#visudo
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:

Code:
startx


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^_^

Last edited by zhy2111314; 08-08-2005 at 07:57 PM.
 
Old 08-07-2005, 09:39 PM   #2
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
Re: SLACKWARE10.1-full process from (HardDisk)installation to configuration!

Quote:
Originally posted by zhy2111314 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:
Uh, the kernel version is 2.4.29.............D'oh
 
Old 08-07-2005, 09:54 PM   #3
zhy2111314
Member
 
Registered: Aug 2005
Location: China
Distribution: redhat(Fedora Core)->Debian Sid->Slackware
Posts: 91

Original Poster
Rep: Reputation: 15
Re: Re: SLACKWARE10.1-full process from (HardDisk)installation to configuratio

Quote:
Originally posted by freakyg
Uh, the kernel version is 2.4.29.............D'oh
yeah,you were right , sorry
thanks

zhy2111314
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP: teTex installation & configuration muzicman82 Linux - General 1 07-25-2005 07:19 PM
top process full path toolshed Linux - Software 7 02-01-2005 04:45 PM
Suse Installation in SATA HardDisk manikantha Linux - General 5 01-23-2005 06:35 PM
Linare Linux- Installation & Configuration Questions HSLinux Linare 8 10-29-2004 07:49 AM
harddisk & network status Thorsten Linux - Software 2 08-26-2003 03:40 AM


All times are GMT -5. The time now is 06:07 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration