I'm big fan of Slackware Linux, I have used it since the 9.0 version, and I am very happy with this distribution, in the beginning was challenging to setup mostly because I was a newbie, today I am installing and reviewing the recently released version 12 in my toshiba l35-sp1011
- Celeron M 1.6Ghz 1Mb cache L2
- 1.5 Gb DDR2 Ram
- 40GB 5400rpm sata HDD
- ATI mobility radeon X300, 128 Mb Ram (shared)
- ATI chipset
this release of slackware comes with many changes, from the release announcement:
- Kernel 2.6.21!!!
- XFCE 4.4.1 for the lovers of this lightweight desktop
- KDE 3.5.7 latest release of the beautiful and customizable K Desktop Environment
Installation
- hit 1 after the kernel messages end to select your keyboard layout, default is qwerty us.map (English US) or hit enter if you don't want to change it.
- login as root, there is no password
- Setup your hard disk partition layout with fdisk or the more easier cfdisk
- type setup to start the setup program
- in the installation program you can change the keyboard layout again
- addswap: this step set up your swap partition so it can be used if you don't have enough ram
- target: configure your / partition, the installer is going to ask you if you want to format the partition, or keep the existing filesystem, if you want to format the partition you can use ext2, ext3, reiserfs, jfs and xfs for the root partition.
- after this if you have fat or ntfs partition is going to ask you if you want to mount then in the file system, I have a document partition in ntfs, so I am select it and define a mount point for the partition.
- after this the installer let you choose the medium for the installation, you can use a DVD or cd for the installation, mount an existing partition that contains the files for the installation, install from a premounted partition or from a nfs directory, I select the first one, install from a cd or dvd.
- next step is to let the program search automatically for the cdrom or set it yourself, I chose automatically.
- After the program detects the cdrom it show you a list of categories of software, you can choose here what groups of software you want to install, you can chose here to install everything or only some groups
- next step is to sellect the method of installation, you can select to install everything from the categories you selected, select the programs from every categorie (menu or expert) or newbie, I select the expert and select my own selection of software, you can select the full as this is going to give you a fully functional system and surely not problematic, its the best option.
You can also choose to use a custom tagfile for a personalized installation, look for the section custom installation in this page.
after this you must wait to the programs to install, the process is very very fast, my installation was 2.1GB and was pretty fast.
Some observations are that now in the cd the categories for setup a develop machine or a server, there are no desktops in this cd, this make it a perfect option for setup a server if you need to.
in the cd 2 comes the X server, kde, xfce and the X programs, and the internalization packages for kde.
cd 3 is the extras and source for the extras cd, if you download the dvd version then all this is going to come in the dvd plus the sources for all the program
in the A series you now select if you want to install the hugesmp, huge non smp or generic kernel, this is a change, in previous releases you selected this after the installation of the packages end. - when the installation of the packages end, the setup is going to ask you to make a USB boot disk (a change, before was a floppy setup), I choose to skip the creation of the usb disk.
- Modem configuration, I skipped this one
- Installation of LILO, I choose simple, have always worked
- Selection of the resolution for LILO configuration, the default one is 1024x768x256
- Optional LILO append parameters for the kernel: blank
- LILO Destination: you can choose between Root, Floppy and MBR: MBR has worked for me always.
- Setup ask you to configure the network, choose Yes to configure
- Hostname: enter the name of your machine
- Domain: domain for the machine
- IP Address setup, you can choose between static ip, DHCP and loopback, I choose DHCP, my internet router give the IP address in my network
- DHCP hostname: in some cases you need to provide this.
- Services to Run: select the services that you want to start when the machine boot.
- Console font configuration: skipped
- Configure hardware clock: choose if the hardware clock is set to local time or UTC, in my case the machine is dual booted with M$ XP so I choose local time
- TimeZone Configuration: select your country
- Select default window manager for X: KDE!!!
- Set root password: you can skip this step if you dont want password for your root account, I choose to put one.
- Setup Complete: you can press ctrl+alt+delete to restart to your fresh new shiny and beautifully simple Slackware12!!! :P :D :) ;)
after the reboot you are welcomed to your new and shiny new Slackware 12 (oh yeah!!!!) linux, I login as root to make some changes to my system:
- change the default runlevel to 4, so when my machine start you are welcomed by the kdm instead of the console, if you want to keep the console at the start, you can start the x environment anytime by writing
#startx
to do this you need to edit the file /etc/inittab, to do this use the command
#nano /etc/inittab
you need to edit the line that says
id:3:initdefault:
to this
id:4:initdefault: - add a new system user to use as everyday account
#useradd -g users -G audio,video,cdrom -d /home/usuario/ -s /bin/bash -m usuario - add a password for my user
#passwd usuario - add usuario to the sudoers file so I can make super user actions using sudo, this is done by editing the file /etc/sudoers with the command
#nano /etc/sudoers
in the file I add the line
usuario ALL=(ALL) NOPASSWD: ALL
this allow me to make changes without having to provide my password. - you can choose some global personalizations, to make them edit the file /etc/profile, in my case I like colors for ls, and see hidden archives with l
#nano /etc/profile
add to the end of the file
alias ls="ls -sh --color=always" alias l="ls -shal --color=always"
if you want to add personalization only to your account, add them to ~/.bashrc instead.
to edit X11 configuration i edit the file /etc/X11/xorg.conf with the command
#nano /etc/X11/xorg.conf
the changes are:
- change the layout of my keyboard to spanish, to do this I add the line
Option "XkbLayout" "es" - I'm using a ATI graphics card so I change the driver to radeon instead of defaults vesa.
to do this find the section "Device" and and change the driver.
Section "Device" Identifier "VESA Framebuffer" Driver "ati" #VideoRam 4096 # Insert Clocks lines here if appropriate EndSection - Enable 1280x800 resolution of my laptop: to do this you need to add the line
Modeline "1280x800@75" 83.91 1280 1312 1624 1656 800 816 824 841
to the section "Monitor" and change to multisync by commenting a line and commenting off another, have to look like this
# HorizSync 31.5 - 50.0 HorizSync 30-64 # multisync
after this change the resolution in the file /etc/X11/xorg.conf, find the section "Screen", in the subsection "Display" change so it looks like:
Subsection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubsection
ATI Graphics Driver
OFFICIAL ATI SUPPORT IN LINUX SUCKS!!!
The official driver complaints about the X release and die.
Custom Installation
Slackware come with so many packages, And now that X is modular there is a Gazzillion of packages, and I have to machines, so select the packages for both machines is a slow process, so I have decided to create my own personalized installation dvd.
In my case I started by copying the content of the 2 cds isos of slackware and store the result in another directory that I am going to use to create the personalized iso
$mkdir slackD1 $mkdir slackD2 $mkdir mySlack $sudo mount -o loop slack12Disc1.iso slackD1 $sudo mount -o loop slack12Disc2.iso slackD2 $cd myslack $cp ../slackD1/* . -r $cp ../slackD2/* . -r
for the installation process in slackware, the installer seeks in the series directory for a file called tagfile, this is the file that the installer read to know which packages install by default, and wich ones ask for installation in newbie mode and menu.
you can make your custom tagfile and add a 3 letters MS-DOS extension, so you can select a custom tagfile installation just by supplying the extension.
what I am gonna do is change the tagfile changing the packages that I don't want to be installed to OPT and rebuilding the DVD iso to have a media that always install my prefered packages.
the format of the tagfile is this
cpio:ADD cryptsetup:OPT cups:REC cxxlibs:ADD
you can see that there is the name of the package followed by a colon and a description for obligatory (ADD), optional (OPT), and recommended (REC).
I know most of the packages, so it can be quick the process, but in slackare 12 there are so many new packages, if you don't know what is some package for you can read the description in the directory, for example if we want to know what the package cpio-2.5-i486-3.tgz does we can read cpio-2.5-i486-3.txt, it says:
cpio: cpio (backup and archiving utility) cpio: cpio: This is GNU cpio, a program to manage archives of files. This package cpio: also includes mt, a tape drive control program. cpio copies files into cpio: or out of a cpio or tar archive, which is a file that contains other cpio: files plus information about them, such as their pathname, owner, cpio: timestamps, and access permissions. The archive can be another file on cpio: the disk, a magnetic tape, or a pipe.
if you want to see all the descriptions use the command
$for name in *.txt; do less $name; done
after change the file to eliminate the packages that you don't want (4 hours later, X series is soooo Large!!!), go to directory that have the content of the Slackware cds and make a iso image with the command
mkisofs -o ../slackware-dvd.iso \ -R -J -A "Slackware Install" \ -hide-rr-moved \ -v -d -N \ -no-emul-boot -boot-load-size 32 -boot-info-table \ -sort isolinux/iso.sort \ -b isolinux/isolinux.bin \ -c isolinux/isolinux.boot \ -V "SlackDVD" .
then burn with your favorite software, in my case k3b, you can also use nero on windows.
To use your custom tagfiles, when setup ask you for a method of installation, select the option custom tag.
Atheros Wireless
My Laptop is equiped with an Atheros AR5005G 802.11abg NIC (rev 01), to install the support download the driver from atheros, in my case the driver is called madwifi-0.9.3.1.tar.bz2, the steps to set up the driver are:
- extract the driver
$tar -jxf madwifi-0.9.3.1.tar.bz2 - enter the directory of the driver
$cd madwifi-0.9.3.1 - make the kernel modules
$make - install the kernel modules
$sudo make install - insert the kernel module
$sudo /sbin/modprobe ath-pci - configure your wireless with kwifimanager :D
VMWARE Workstation/Server
Virtualization is one of those "must have" program, it enables you to to run another OS inside it, it also let you work with multi tier applications, try new software, etc.
To install VMWare on Slackware 12 get the latest version from vmware.com, Version 6 installation is similar to the installation of version 5.5, the steps for the installation are:
- get the installer from vmware (the tar.gz version)
- unpack the package
$tar -zxf VMware-whateverVersion-whateverRelease.tar.gz - enter the directory of the unpacked vmware
$cd vmware-distrib - you will need to patch version 5.x to function properly, to do it get the patch from http://ftp.cvut.cz/vmware
- $wget http://ftp.cvut.cz/vmware/vmware-any-any-update109.tar.gz
- unpack it on the vmware directory:
- $ tar -zxf vmware-any-any-update109.tar.gz
- enter the directory of the unpacked patch
$cd vmware-any-any-update109 - run the installer as root
sudo ./runme.pl
this is going to patch and then install vmware - end, you dont need to follow next steps
- run the installer as root
sudo ./vmware-install.pl - the installer is going to ask a lot of questions, just press enter and say yes to everything jajaja
$sudo /etc/init.d/vmware start
and the obligatory screenshot (linux mint bea running in vmware over slackware 12 of course).
Open Office
Damn M$ and its formats!.
Open office is the most capable office suit over linux, and its free.
Slackware Doesn't come with it but install it its a breeze
- get the rpm from openoffice.org
- unpack it
$tar -zxf OOo_2.2.0_LinuxIntel_install_en-US.tar.gz - Enter the open office unpack directory
$cd OOF680_m14_native_packed-1_en-US.9134/RPMS - install it as root:
$rpm -i --nodeps --force *.rpm - make it a symbolic link to /usr/bin
$cd /usr/bin
$sudo ln -s /opt/Openoffice.org2.2/program/soffice . - run it!
$soffice
NTFS-3G
I have a dual boot configuration, and have a "Backup unit" in ntfs, because of the limitations of fat32.
To use ntfs-3g on Slackware we will need to install fuse first, to do download the latest version from fuse.sourceforge.net
- get the latest version of fuse from fuse.sourceforge.net
- unpack it
$tar -zxf fuse-2.7.0.tar.gz - enter the directory
$cd fuse-2.7 - compile and install it
$./configure
$make
$sudo make install
- get the latest version of ntfs-3g from ntfs-3g.org
- unpack it
$tar -zxf ntfs-3g-1.616.tgz - enter the directory
$cd ntfs-3g-1.616 - compile and install it
$./configure
$make
$sudo make install - next is to change the /etc/fstab to indicate what partition you want to load with ntfs-3g
$sudo nano /etc/fstab
for example the entry would look like this
/dev/sda2 /mnt/docs ntfs-3g defaylts 1 0
problems
none of this is because of slackware of course ;)
- X11 is so modular that you may forgot some package and the desktop manager is not going to start, make sure you have installed the package
iceauth. - Use the last version of madwifi, previous versions may not compile
- Use only the latest versions of anything you want to install, Slackware is just so new!!!
Updates
- tnx to raskolnikov for the commentary on groups of my user
16 comentarios:
Thanks, that's a wonderful review and tips for better slackware 12 experience.
here's one more from me: RLocate
Rlocate - rlocate is an implementation of the "locate" command that is always up-to-date!
A. Do you want to find a file, but you don't know where it is kept (in which folder)?
B. Do you partially remember the name of a file.. but you don't know where it is?
C. Do you want instant lookup.. then USE RLocate!
D. Find is great but takes forever to find a file in a big filesystem
The solution is RLocate ;)
Since, Slackware 12, has got 2.6.21 kernel. rlocate works like charm with it. Here's how to do it. Execute each command in sequence no. 1.
http://sourceforge.net/project/showfiles.php?group_id=129555
1. wget http://jaist.dl.sourceforge.net/sourceforge/rlocate/rlocate-0.5.5.tar.gz
2. tar -zxvf rlocate-0.5.5.tar.gz
3. cd rlocate-0.5.5
4. ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
5. make; make install
6. cp contrib/rlocate.slackware /etc/rc.d/rc.rlocate
7. chmod +rx /etc/rc.d/rc.rlocate
8. sed s/"rlocated_start() {"/"rlocated_start() {\nrmmod capability\nmodprobe rlocate"/g -i /etc/rc.d/rc.rlocate
(which just adds rmmmod capability and modprobe rlocate after "rlocate start()" function)
9. sed s/"rlocated_start() {"/"rlocated_stop() {\nrmmod rlocate\nmodprobe capability"/g -i /etc/rc.d/rc.rlocate
(adds rmmod rlocate and modprobe capability for stopping of rlocate service)
10. A=`cat /etc/group|grep rlocate`; B=",$USER"; sed s/$A/$A$B/g -i /etc/group
(added the user to rlocate group which user? the user which did the SU then did the installation.)
11. rlocate -uv
12. /etc/rc.d/rc.rlocate start
13. chown root:rlocate /var/rlocate -Rvf
14. chmod ug+rx /var/rlocate/* -Rvf
15. removpkg slocate
16. rm /usr/bin/locate
17. ln -sf /usr/bin/rlocate /usr/bin/slocate
18. ln -sf /usr/bin/rlocate /usr/bin/locate
Now, you can quickly find any information with locate -i [filename] command.
example to find xorg.conf
1. rlocate -i XoRG.CO
to find important.odt (document)
2. rlocate -i important*dot
Even when you create new files, you can find them easily.
1. touch /tmp/newfile.txt
2. locate -i newfile
I'll add installing kio-locate which will make life even more easier for Slackware+KDE users!
Have fun!
Get Slackware 12.0 precompiled packages at slacky.it: visit this repository
http://www.slacky.eu/repository/slackware-12.0/
in multimedia directory, you'll find mplayer
For Xorg, you could also have run the "Xorg -configure" command and Xorg would have autogenerated and xorg.conf.new file with the necessary options for your video card in the Device section. Then all you would have done is rename the file to xorg.conf and move it to /etc/X11. About the only thing you would have to add is the settings for the Monitor.
You could have also used xorgconfig or xorgsetup to go through the steps in creating an xorg.conf file for your system.
One thing I forgot to mention. You can get the optimal settings for your card from the following site. This is how I got DRI working on my Sapphire Tech RADEON 9600XT AGP card.
http://www.free3d.org
When I select the method menu/expert of instalation for my home server, I choose the packages that i need... but then I get dependencies errors for example with httpd and not works. ¿how can i resolv this without use full instalation method?
Thanks! and sorry for my bad english...
ehmm.. if you want to use HAL storage device system in KDE (or XFCE) you need to be in the "plugdev" group, even root must be there..
Just like the poster up said, if you use dbus/hal, your user must be in the group plugdev, but to be in the cdrom group is not necessary
Congrats, very good tutorial.
Unfortunately your explanation on how to install and get VMWare 6.0 Workstation running does not work.
Thanks for this! I reinstalled my OS recently, and I'm an Open Office user. (So how to install it from the rpms was timely.)
I'm back to Linux after year of forced Win use!
And I'm back on Slackware!
In my home pc, due is a family pc, I cannot install Slackware so I... installed it on VirtualBox and it works great!!!
Yes, I cannot have advanced desktop feature but who wants 'em when you got a speedy and beautiful and renew XFCE!!!
Just a note for Italian users that want to install XFCE: there's bug in XFCE 4.4.1.
In the Xfce desktop configuration folder (it could be /etc/xdg/xfce4/desktop/) you have change the name of
/etc/xdg/xfce4/desktop/xfce-registered-categories.xml.it
in
/etc/xdg/xfce4/desktop/xfce-registered-categories.xml.ita
or XFCE desktop will crash.
Greetings for this review!
Good!!! thks for this blog.. i have Slackware 12 in my Toshiba L35 but the sound is not working... Did U fix it:D ??? or everithing is working:S
joshyro@gmail.com
Well as you say the sound doesn't function out of the box, what I have to
Sound problem slackware toshiba L35
do is to add to the file /etc/modprobe.conf the following line
options snd-hda-intel model=uniwill-m31
You can do this from the console with this simple command
echo "options snd-hda-intel model=uniwill-m31" >> /etc/modprobe.conf
hope this fix your problem.
You are officially my hero!!! I spent all day yesterday and most of today trying to set up madwifi with linux (using CLI through the whole process). I was frustrated, to say the least, each time I tried to get online and got unknown host. Until i found you... kwifimanager was the solution. I ran it, and did a few more commands with CLI (to set up dhcp) and I'm on! Thanks a MILLION!
Thanks Sobat Infonya. Sangat bermanfaat sekali. Mungkin ini bermanfaat bagi sobat :Jasa Pembuatan Website, Rental Komputer, Paket Wisata Jogja, Rental Mobil Jogja, Sewa Mobil Jogja. Terimakasih,
Publicar un comentario