Slackware 13 - The Odyssey
1 Attachment(s)
My name is Josh and this is my first post here at LQ.
Below is a post I've written about the past week of my life: Objective: To chronicle my installation of Slackware 13 and configuration of a usable and attractive desktop environment. Purpose: To help others who are new to Slackware and to get advice from the community. History: I have been using Linux for several years as a second operating system with dual boot setup WinXP/Ubuntu. My interest has been purely of a hobbyist nature until a recent decision to use GNU/Linux as the primary/sole OS on my laptop. I have most recently been using *buntu based (Ubuntu/Kubuntu/Xubuntu) distros for various reasons, but mostly the community was attractively active. My decision to install Slackware 13 was made after installing Kubuntu and using it for about 2 weeks. I began to dislike the relative instability of it's 'stable' releases and updates (the constant updates and bug fixes seemed to break my machine more often than not) and began to search the internet for something more rock solid and less automated. After reading several opinion pieces on the subject I came to the decision that Slackware 13 offered more of what I was looking for than other "top" distros. Also, the opportunity to be more "hands on" was appealing. Rig: HP Pavilion dv5000 Laptop nvidia GeForce Go 7400 Intel Centrino Duo 1.8ghz 1 Gb RAM 80 Gb SATA HDD Installation: There are several guides to the initial installation of Slackware 13. I read many of them before installing, and I suggest you google it first because: a) the installation process is 'old school' and not at all similar to the LiveCD installs of other distros you may be accustomed to. b) this is your first opportunity to make a mistake. I downloaded the installation DVD here: http://www.slackware.com/getslack/ I set my Boot order in BIOS to CD first and the DVD booted me to the installation shell. From here I used cfdisk to partition my hard drive. I created a SWAP partition of twice my ram (2gb) which I read somewhere was a good guideline. I have no idea if double your ram is still a good guideline but for some reason it has stuck in my mind so I have continued to use it. I dedicated the rest of my drive to a standard Linux partition. Note: During the install I chose EXT4 for my file system. The installation was a bit intimidating. The lack of a GUI environment and plethora of options made me feel somehow more of a computer genius after a successful completion. While performing it, I was transported back to 1999 and my first installation of Redhat Linux. I was terriably afraid of making a mistake, as I remember painful missteps in that early attempt at installing. I chose KDE as my default Desktop Environment. Truthfully the installation was straightforward and informative enough to help if you get stuck on your choices. A couple of the guides I read beforehand are: http://xlayn.blogspot.com/2009/07/sl...d-64-bits.html and http://www.howtoforge.com/the_perfec...op_slackware12 (which is for Slackware 12, but I HIGHLY recommend reading as it helped me a great deal) Post Installation: The first thing I did after the installation completed and I logged in as root was execute: Code:
adduser josh Next I added my user name to the sudo list by editing the /etc/sudoers file (note: visudo did not work for me, and so I eventually used pico): Code:
pico sudoers Code:
josh All=(All)All Starting X: Next I wanted to get X up and running so I typed: Code:
startx I decided error messages were bad, especially in root, so I closed the errors, logged out of X and dropped to command line. I typed: Code:
logout This time there were no errors. Even now, if I log into X as Root, I get these same errors. I have experienced no problems running X as a normal user and have no clue why I get them as Root. I do not use X as Root and advise anyone who reads this not to, not because of the errors I experienced but because there is no point, and it is by and large a dangerous habit to get into. Wifi and the Internet: Now that X was up and running, I wanted to get online. I hit the ADD WIDGET button on my desktop and could not find 'Network Manager' which I have used for some time in the past on Kubuntu installations. I did a bit of reading and was pointed to the /EXTRAS folder on my installation DVD where I found a folder called wicd. I copied the WICD folder to my /home directory and opened a terminal in KDE (under Utilities in the K-Launcher). I executed a 'SU' command and entered my password to switch to Root. Then I entered the following from my /home/wicd directory: Code:
installpkg wicd-1.6.2.1-i486-1.txz After a reboot into KDE the wicd icon was in my system tray. With a click I was able to search for and detect my wireless router and clicking the connect button got me online. NOTE: It is important to note that wicd weirdly detects some non-hidden networks as hidden networks and will not connect to them. I have found and have used the following commands to connect to these misidentified networks: Code:
iwconfig wlan0 essid JoshWireless followed by: Code:
dhcpcd wlan0 Update/Installation of Programs and SlackBuilds.org: Slackware 13 comes with plenty of pre-installed programs and apps, but I needed to install a few more to make my life easier. I wanted: Updated Slackware Packages from Slackware.com The Nvidia Driver - Necessary to get my graphics card working properly and to enable desktop effects. Daisy Plasma Applet - A attractive 'OSX' style app launcher. OpenOffice - A very good alternative to KOffice (the pre-installed office software on Slackware 13) Flash-Plugin for Firefox - Necessary to view Flash media in Firefox. Conky - Highly customizable system monitor and much more. Adobe Reader - .pdf reader by Adobe. Skype - VoIP client. Wine - Runs Microsoft Windows applications in Linux without a Virtual Machine. Yakuake - Drop-down 'Quake-style' terminal for KDE. VLC - THE Video Player imho. GTK-QT-Engine - Conforms GTK apps to match your QT themes in KDE. To update my included Slackware 13 packages I did the following which is a direct quote from http://www.howtoforge.com/the_perfec...slackware12_p3: Quote:
Code:
wget ftp://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware/patches/packages/*.txz Code:
upgradepkg *.txz After the update, I found http://www.SlackBuilds.org I am very impressed with this site. Apparently Slackware 13 users and developers have repackaged the source of lots of software you might want to use (I haven't come across anything I wanted that it didn't have) into tarballs that are designed for use with the 'installpkg' package manager mentioned above. To me this is great because it will help keep my computer well organized and properly managed if I install everything strictly with 'installpkg' Steps to using SlackBuilds.org: 1) Download the SlackBuild archive to your /home directory. (or subfolder like mine home/josh/Downloads/slacbuilds), 2) Download the source (convieniently found on the same page as the SlackBuild archive), 3) Open Dolphin and extract the SlackBuild Archive by right clicking on the the archive and using the 'detect subfolder' option, 4) Move the source code tarball to the SlackBuild Archive folder you just unzipped, 5) Open a terminal and switch to root with SU command, 6) Run the SlackBuild script and the intallpkg command: *I have used yakuake as my example bellow* Switch directories to the extracted slackbuild folder Code:
cd /home/josh/Downloads/slackbuilds/yakuake Code:
./yakuake.SlackBuild Code:
cd /tmp Code:
installpkg yakuake-2.9.6-i486-1_SBo.tgz All of the above instructions can be found in the How-To section of the SlackBuilds.org website. *A Few Notes: I used SlackBuilds for all of the programs and apps listed at the beginning of this section including: The Nvidia Driver (Don't forget to install Nvidia-Kernel as well as Nvidia-Driver from SlackBuilds.org, after installing the Driver then the kernel slackbuild scripts, the driver started fine I now have all the cool desktop effects you could ask for) Daisy Plasma Applet (installed with no setup or problems) OpenOffice (installed with no setup or problems) Flash-Plugin for Firefox (installed with no setup or problems) Conky (see section bellow on conky) Adobe Reader (installed with no setup or problems) Skype (installed with no setup or problems) Wine (after installing wine I also installed: q4wine which is a graphical interface for wine) Yakuake (to configure Yakuake I added the -l tag to the 'command' box under the 'General' tab, ie: '/bin/bash -l') GTK-QT-Engine (makes GTK programs conform to QT themes in KDE4, I installed the package, I think it's working but I'm not sure how to confirm it exactly, everything looks uniform, including Firefox, and that is my basis for saying it is in fact working, any help or suggestions about this would be welcome) VLC (installed with no setup or problems) Sbopkg After installing all of the packages listed here, I was introduced to a program named 'Sbopkg' Sbopkg is a program you run from terminal that syncs your computer with the Slackbuilds.org website, allows you to search/browse Slackbuilds.org, searches Slackbuild.org for potential updates to currently installed SlackBuilds and downloads/builds/installs packages from the comfort of a simple to use 'curse' style interface (curse is old school graphics in terminal, like the installer you use to install Slackware 13) Sbopkg comes in an already ready already package: Sbopkg Slackware Package Download the above into your home directory, then run the following as superuser: Code:
installpkg sbopkg-0.30.1-noarch-1-cng.tgz Code:
sbopkg (Thanks Escaflown for the suggestion) RunLevel 4 Once I finished the major installs that I wanted, I switched the default runlevel for my linux install to runlevel 4. I did this by editing the /etc/inittab file: Code:
pico /etc/inittab Switching from runlevel 3 to runlevel 4 automatically boots you into an X environment. *Note: ctl-alt-f6 switches to a terminal session in case X is somehow broken or not loading properly and you need to get back to a command prompt. To switch back to X use ctl-alt-f7. Reorginization of Desktop It took me an hour or so to setup my KDE desktop to my liking. Essentially I turned on the Daisy Widget and set it to Horizontal mode from round. Then I added my /home folder to the desktop with the 'Folder View' Widget in the style of Kubuntu 9.4. I relocated my taskbar from the bottom of my screen to the top and added all of the widgets that had previously been on the bottom (now removed) taskbar to the (new) top taskbar. I'm very pleased with the look of it. Sound Initially I didn't have to configure ALSA manually after my installation, but I would point you to http://www.howtoforge.com/the_perfec...slackware12_p2 for an easy to follow tutorial. I did have one hiccup with my sound: It is too soft. Not so soft that I can't hear it, but much softer than it is supposed to be. I ran: Code:
alsamixer Next (still as super user) I executed the following: Code:
alsactl store I then exited out of super user: Code:
exit TouchPad & HAL Slackware 13 knew how to operate my Logitech wirelss mouse out of the box with no setup. (All buttons worked including 'back' and 'forward' buttons as well as the mouse wheel scroll function) Unfortunately my TouchPad on my laptop lacked the scroll functionality usually associated with the right side of the TouchPad. To fix this I read Lufbery's Thread where w1k0 detailed a .fdi script for HAL. If I'm not mistaken, HAL breaks the configuration of your X settings into individual files as opposed to the "old" xorg.conf single file for all settings. I created a new text document in my home directory named 'x11-synaptics.fdi' in dolphin by right clicking -> Create New -> Text File. When prompted for the name I typed in x11-synaptics.fdi After this I opened my new file and inserted the following code (thanks to w1k0): Code:
<?xml version="1.0" encoding="ISO-8859-1"?> Code:
mv x11-synaptics.fdi /etc/hal/fdi/policy After which I rebooted, and voila: Scroll functionality in TouchPad! Thanks Lufbery for pointing me in the right direction. Firewall and iptables At the suggestion of hoodooman I've been giving some time to finding an effective firewall for my Slackware 13 laptop. This seemed very important for me because using unsecure public wifi networks is going to be one of the intended functions of my laptop. After a very short time of reading on the subject I learned that 'iptables' is a pre-installed program which, if configured correctly, will act as a very strong firewall for my system. First I looked for a graphical KDE friendly configuration tool for iptables. But, the more I looked into the issue, the more I came across pre-made scripts that configured iptables for you. I liked the idea of a script I could edit and adjust as I learned more on the subject. Soon I ran across RC.FIREWALL by author/maintainer Scott Bartlett. (Thanks samac for your post in this thread: http://www.linuxquestions.org/questi...64-13.-762195/) I downloaded the firewall_install.sh (v1.1) from the above link. I then followed these instructions from the RC.FIREWALL website: Quote:
After installing the firewall, I restarted my computer. If you read the start-up text as it scrolls up your screen after the reboot you should see a few lines indicating that your firewall is being started on your machine. I logged into KDE and opened firefox. I navigated to Gibson Research and selected the 'File Sharing/Common Ports/Service Ports' tests which all reported: Quote:
Conky I have always wanted to get Conky up and running on my desktop but never had the time. I have never been satisfied with the System Monitor Plasmoid Widget and have always liked the look of Conky in screenshots of various Linux desktops. First I downloaded the SlackBuild as outlined above. Second I downloaded the .conkyrc file from: http://sqdnguns.deviantart.com/art/S...onky-104492049 and saved it into my /home directory. I decided this was a good starting point for my Conky because it was written for a slackware machine and didn't include weather or other scripts to get it up and running. After some adjustment I have come up with the following .conkyrc file: Code:
# Hack your own Conky, don't leech, LEARN!! Code:
conky so I shut conky down: Code:
pkill conky Code:
#!/bin/bash Quote:
PRESTO! Conky is working and transparent. Only a few problems: a) It is registering my CPU frequencies as 1ghz each which is incorrect. b) I also appear to be running two instances of Conky, which I believe has to do with the my .conky_start.sh script c) In addition, I can't seem to get the downspeedgraph to graph anything. I'd also like to get the weather running in Conky and also for Conky to display the name and information about songs playing in Amarock. Currently this is what I'm working on. My next post will include a screenshot of my current Desktop. El Fin? Well, that about catches everyone up to speed. Please offer suggestions on things I should be including on my Slackware 13 machine or advice on Conky or anything I've talked about here or maybe haven't talked about. This is my first experience with Slackware and I'd like to make it the Best Little Linux Box in town. If you've made it this far, thanks for taking the time. I plan on updating this thread over time in Work-In-Progress style. **Edit: Fixed some errors and attached a screenshot of my Desktop! |
Quote:
|
A very nice HOWTO for newcomers to Slackware.I would suggest a chapter on setting up Slackware for your location/language and also some security tips to provide a more comprehensive guide,eg packages to install such as chkrootkit and firewall.Also a part on keeping slack up to date with Slackpkg.Good stuff though.
|
Welcome to LQ!
You might want to consider this as a Linux Answer. Thanks, it looks good |
Thanks
Thanks for the suggestions and welcome! I am interested in adding programs to make my computer more secure, but haven't given the time to looking at what programs would best secure my laptop, especially while connected to wireless networks I don't have control over (coffee houses/school/libraries etc.) any suggestions would be welcome, meanwhile I'll do some internet research. The only thing I know about regional/language settings at this point is that that (strangely) is the place in kde settings that you change your clock from 24-hour to 12-hour am/pm. Sound Initially I didn't have to configure ALSA manually after my installation, but I would point you to http://www.howtoforge.com/the_perfec...slackware12_p2 for an easy to follow tutorial. I do have one hiccup with my sound: It is too soft. Not so soft that I can't hear it, but much softer than it is supposed to be. I ran: Code:
alsamixer As soon as I adjusted my master volume with the Volume +/- on my laptop keyboard, PCM jumped down to 12 again. I read over my rc.alsa file and PCM appears to be set to 90%. So I dropped to root and ran: Code:
alsaconf I'll edit this post with more info as I find it. ** EDIT Foolishly I failed to save my alsamixer settings: Code:
alsactl store Adding this section to the body of the original post. |
great job!
|
Jpcrow,
This is an excellent introduction to Slackware that will be a valuable resource for new users. How well is your mouse or touch pad working? One of the changes in Slackware 13 is that one generally doesn't need an xorg.conf file any more to correctly set up video and mouse. Further, if one wants to do something special, one can use a HAL policy to do it. I have a short thread about setting up a HAL policy to get my Thinkpad scroll button to work. I you want to fine-tune your mouse, that may be a good place to start. Regards, |
That is a great write up - I just wish it existed when I started out!
Only one comment, it's best to use a mirror or better still a torrent rather than download ISOs from slackware.com. |
Thanks Lufbery
The scroll functions of my touchpad were infact not working. Usually I use a Logitech wireless mouse (the scroll button on my mouse functioned correctly without adjustment) but not always, and it bothered me that the scroll on the touchpad did not work. After reading your thread I made a x11-synaptics.fdi file and this solved the problem. I'm adding how to do this to the main article |
Quote:
By the way, are you a Penn Stater? I noticed you chose the PSU CAC link as your mirror for updates. Regards, |
I'm from Texas! I go to a UT school.
I just checked Slackware.com and the reason I chose PSU CAC was because it was the first ftp on the list and I'm lazy! Thanks for the help with HAL, next I'll be putting together a script on turning the touchpad on and off, I've done this before but I'll have to track down the tutorial I used last time. |
@jpcrow: your article is very helpful.
@conky section ~/.kde/share/config/plasma-appletsrc does not work on my laptop (transparency), but when i change plasma-appletsrc to plasma-desktop-appletsrc, it works. my start conky script is #!/bin/sh feh --bg-scale "`grep 'wallpaper=' ~/.kde/share/config/plasma-desktop-appletsrc | tail --lines=1 | sed 's/wallpaper=//'`/contents/images/1280x800.jpg" conky |
Good job. Very nice step by step tutorial. sbopkg should be added as a good companion for slackbuilds.org
|
Quote:
|
thach.trung.ngoc,
do you find that you have multiple instances of conky running? right now a ctl+esc shows me 5 instances running... I guess on top of one another. I ask because I'm wondering if it's my startup script that is launching multiples or what? |
i found only one instance of conky running
But one thing is very weird, whenever i click on desktop, conky disappear. I dont know how to fix it |
Added a section on Sbopkg, I left in the the instructions on manually installing SlackBuilds because I'm glad I learned how to do that first, but sbopkg is a welcome addition. Thanks for the suggestion Escaflown.
Still working on conky (about to test out thach.trung.ngoc's startup script) and reading reviews of security software. |
One thing I see you didn't mention is switching to a -generic kernel from the default huge kernel.
This is recommended but not necessary. /boot/README.initrd is a good place to start. |
Solved the issue of multiple Conky instances. Every time I logged out of KDE4 the session manager was saving my session, and every time I logged back in it was starting a new conky instance.
Simple solution: System Settings -> Advanced -> Session Manager -> 'Start with and empty session' |
Quote:
Code:
#!/bin/bash |
Hi,
Welcome to LQ & Slackware! Quote:
Your writing style and techniques will aid new users too Slackware. I hope you will have one of the 'Best Little Linux Boxen in town'. Meaning that you should share with friends and others. :) That laptop will be singing for you for a long time! Again, Welcome and I for one am looking forward to your additions here on the Slackware LQ Forum. :hattip: Just a few links to aid you in the future; SlackwareŽ Essentials SlackwareŽ Basics Linux Documentation Project Rute Tutorial & Exposition Linux Command Guide Utimate Linux Newbie Guide LinuxSelfHelp Getting Started with Linux Advanced Bash-Scripting Guide Virtualiation- Top 10 The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links! |
Feel free to reference this post.
I'm glad to help others who are new like me. All written out in a row like this, its hard to realize this took me several days to figure everything out. (Well, still figuring out.) It was alot of fun and I encourage 1st timer Slackers to read as much as possible while they create their own experience with Slackware 13. |
Hi,
Quote:
Hopefully your Slackware experiences continue. Especially with the sharing part. I know that's one of my driving points is to aid those that are unaware and sometimes frustrated. As for the reading part, I too think everyone should continue to grow therefore reading will be at the forefront. Recently I had a individual who was referenced a wiki by 'Alien Bob'. The OP came back with that the pages were to complicated and could not continue. Alien Bob's wiki and other information is straight forward with limited tech speak. Written for understanding for everyone. I stated as such to the OP and said if he could not understand that then hand holding would do him no good since instructions would be along the same. My point is to reinforce your statement about 'reading'. Documentation can be dry but the Slackware team is good at writing the information for understanding therefore the first place anyone should go for Slackware issues is the Documentation. I look forward to working with you or assisting you in the future as I'm sure our paths will cross. :) :hattip: |
Added a section on installing RC.FIREWALL on my machine. Thanks hoodooman and samac for getting me thinking about setting up a firewall and pointing me to a solid iptables configuration script.
Thanks Scott Bartlett for a great firewall, and thanks ledow for preserving this for the future. |
Quote:
http://imgs.xkcd.com/comics/cautionary.png |
Good writeup, Josh. A few points here and there:
Quote:
Using visudo instead of editing the file directly allows for syntax checking of the file before it's written out to disk. Quote:
Quote:
Quote:
|
1 Attachment(s)
Quote:
|
Quote:
Josh, You've done a great job with your write-up and with keeping it up-to-date. Thanks, |
Josh,
Perfect write up/tutorial. I am up and running and have a far better understanding of a lot of topics. Kudos. |
Excellent work! :hattip:
I was actually think of doing something similar now that I have some time over the Holidays. Perhaps I won't. Granted, I did want to add some sort of intro to the Linux commands as well. |
Just wanted to say thanks for the write up. I've used your work several times as a reference with setting up my slack system. After looking at manual iptables configuration vs. rc.firewall I just had to say thank you. Iptables IS something I actually want to take the time to understand, but at this moment I don't have those hours to dedicate. rc.firewall has me at "superstealth" according to Gibson research, while keeping all my lan services in tact in about 10 minutes from download to tested.
Thanks. It's nice to have all this slack-noob reference in a single place. |
A remarkably useful thread Josh. Thanks very much :)
One question about the firewall stuff. You say this: Quote:
Once again, this is one of the most useful threads I've seen, it's helped me a lot :) Thanks again, mute |
Superbly laid out post, thanks for chronically your efforts. Many thanks from those of us who go through the same trials. There are some great pointers here, thanks!
|
Quote:
Nice to see someone using my .conkyrc :) If you want to get rid of all the 0's from the Slackware version that is called upon in the script, edit the /etc/slackware-version file. I have changed mine to "Slackware64 13.0" |
Quote:
Code:
{execi 999 cat /etc/slackware-version | cut -c 1-14} This way no need to modify release version and everytime you upgrade the version will automatically be updated. |
"KDE started up and I was greeted with some Akondai error messages and KDE Migrator errors." This was caused because your Akondai was using MySQL which won't allow root login. So, as long as you are using root login, you will met the error.
Sum it up, please ignore the error when you login root GUI. |
Howdy from TX,
Happy holidays, and thanks for all the posts, A quick thanks to SqdnGuns: Quote:
Also, thanks for the info hughszg, Quote:
Thanks to everyone who posted! Have a great 2010, -Josh |
I'd just like to say thanks for this thread and all its wonderful replies from a brand new slacker. This thread pretty much served as my guide to getting slackware 13 installed on my eeepc.
Heres a screenshot of what i've come up with Thanks everyone! :) |
nice topic.Thank you.
|
All times are GMT -5. The time now is 02:29 AM. |