Slackware tips — quick and easy things to make the box work better

| | Comments (3) |

Here are a few quick tips to make Slackware work a bit better.

Groups for your primary user account

When creating your first user account, make sure you pick the right groups.

Slackware is a bit unusual as far as Linux distributions go in that it doesn't create a user account during the installation process.

After the installation is complete, you need to log in as root with the password you chose during the install. Then create an account with adduser. I do this before starting X:

# adduser

It's pretty simple. Just fill in the information requested.

The key is to add the right groups. In order to have control over the CD-ROM, plug-in USB drives and audio, I type in the following additional groups for my first user account (i.e. my account:

audio,disk,floppy,video,plugdev,cdrom,wheel

If and when you create additional user accounts, you can either add them to these groups or not. It's up to you. I'd probably leave out a few of these for my additional users; I don't think they'd need disk or floppy, and I wouldn't want them to have wheel.

And if you forget to add your user account to a particular group, go to /etc/group as root and add your user to the appropriate group or groups.

Note: I could do this in the console with vi, but when I'm in X, I use Mousepad. Feel free to use your favorite GUI or console editor.

I open a terminal, su to root and do this:

# mousepad /etc/group

When I'm done, I save the file in Mousepad and close the window.

Want to use sudo?

I've grown accustomed to using sudo, so I add my user account to the sudoers file *— for which you MUST use visudo and NOT a direct edit on /etc/sudoers — while logged in as root (either directly or by su to root:

# visudo

the sudoers file comes up in vi. You do know enough vi to get by don't you? I can hack my way through vi well enough, and this is one of those cases where a little experience with the default text editor in Slackware and most other systems comes in very handy.

Unless you are already somewhat proficient in vi, look for an online tutorial and figure out the difference between the edit and command modes and how to move your cursor around, delete text, etc.

Back to the sudoers file. Many Unix/Linux gurus may cringe at my advice, and I'll just say that I'm concerned here with a desktop system, not a server. For a server, especially an "important" one, permissions must be finely grained and mostly restricted, with some users getting more permissions than others.

But for a desktop box, if you as the sole or primary person maintaining the box wants to use sudo, just add yourself to the sudoers file right below root:

ROOT    ALL=(ALL)    ALL
MYUSERNAME    ALL=(ALL)    ALL

Use your user name, not MYUSERNAME, of course.

Save the file in vi (in command mode, which you reach with esc, type :wq and hit Enter), and you will be able to sudo.

I guess Ubuntu got me in the habit of using sudo, even though lots of things require su to root (like using visudo), and I like to have it at my disposal.

Get your wheel mouse working right

Even though the Slackware installer asks me what kind of mouse I have — it's a wheel mouse (you know, with the scroll wheel), it is never properly configured.

I dutifully enter IMPS/2 during the installer, but the wheel never makes the screen scroll.

So I edit /etc/X11/xorg.conf to fix the problem:

# sudo mousepad /etc/X11/xorg.conf

Then I change this:

# The available mouse protocols types that you can set below are:
#    Auto BusMouse GlidePoint GlidePointPS/2 IntelliMouse IMPS/2
#    Logitech Microsoft MMHitTab MMSeries Mouseman MouseManPlusPS/2
#    MouseSystems NetMousePS/2 NetScrollPS/2 OSMouse PS/2 SysMouse
#    ThinkingMouse ThinkingMousePS/2 Xqueue
    Option "Protocol"    "PS/2"

to this:

# The available mouse protocols types that you can set below are:
#    Auto BusMouse GlidePoint GlidePointPS/2 IntelliMouse IMPS/2
#    Logitech Microsoft MMHitTab MMSeries Mouseman MouseManPlusPS/2
#    MouseSystems NetMousePS/2 NetScrollPS/2 OSMouse PS/2 SysMouse
#    ThinkingMouse ThinkingMousePS/2 Xqueue
    Option "Protocol"    "IMPS/2"

The line I changed is in bold for emphasis.

Slapt-get

I used to update my Slackware box the old-fashioned way, by bringing down the security patches from the Slackware site by FTP and then using updatepkg to install each one individually.

Now I do two things differently: First, I use a faster mirror — anything is faster than Slack's main FTP site — and second, as of yesterday, I use slapt-get.

I got slapt-get from the GNOME Slackbuild site, and after my first attempt at installing GNOME didn't go so well, the second time I installed Slackware this go-round, I commented out the GNOME Slackbuild mirror (I can always uncomment it later) and updated my Slackware packages only. (I recommend that you get slapt-get from ... the slapt-get people, as I detail below).

Once you find and install the proper slapt-get package for your version (mine is 12.0), go into /etc/slapt-get/slapt-getrc as root to select a Slackware mirror, and, if you used the GNOME Slackbuild version of slapt-get, to comment out the GNOME Slackbuild mirror until you're ready to install GNOME, if you (or I) ever are.

At this point, I'm pretty happy with Slackware the way it is, especially with slapt-get, so I'm holding off on adding GNOME.

You could always get slapt-get from its "official" site. The easiest thing to do is to find the precompiled slapt-get package for your version of Slackware, download it and use Slackware's pkgtool utility to install it.

I haven't yet installed Gslapt, the GUI for slapt-get, but I plan to do it in the future. It's also at software.jaos.com

I've said in the past that I feel a little squirelly about using slapt-get to install NEW packages, the only reason being that I don't know enough about it, but for updating official Slackware packages, I feel really, really, really good about it.

The last time I used Slackware, I fell behind in my security updates, mostly because you need to use upgradepkg and can't make it easier by using pkgtool directly. (Believe me, there are a lot of EASY Slackware console utilities that, in some ways, make Slack a cakewalk to configure).

Once I used Wolvix, which is based on Slackware 11, and which includes slapt-get and Gslapt, I saw how easy it was to update a Slackware box. Slapt-get levels the playing field vis a vis Debian quite a bit.


3 Comments

luddite Author Profile Page said:

thanks Steven thats the sort of page I have been looking for; and doesn't seem to be readily availble.

On packages what about slackbuilds ; if you now use them how about doing a page on this ?

I haven't used Slackware in a while, and I never did get the hang of Slackbuilds. I saw that as a sign.

TheParoxysm said:

SlackBuilds are pretty easy to use.

You find one you're interested in, download the SlackBuild for it, and the source (both are linked on the page). The SlackBuild page will tell you if you need any dependencies first.

Use your archive tool of choice to unzip the SlackBuild tar.gz. Then put the source file(s) into the folder you just created by unzipping the SlackBuild. Open a terminal and elevate (su command), then:
chmod +x [NameOfTheSlackBuildFile.SlackBuild]
followed by:
./[NameOfTheSlackBuildFile.SlackBuild]

It should then tell you that you've made a package of file type .tgz or .txz in the temp folder.

Either use the command cd /temp to move to that directory, then installpkg [packageYouJustMadename.txz]
or from your current directory:
installpkg /temp/[packageYouJustMadeName.txz]

You have finished!

Leave a comment

Tech Talk column

Steven Rosenberg's weekly Tech Talk column, which appeared Saturdays in the Los Angeles Daily News through about October 2009, is available on the Daily News Technology page.

About this blog






Steven Rosenberg aims to learn what he does not know. He writes about it here.



About this Entry

This page contains a single entry by Steven Rosenberg published on June 14, 2008 3:00 AM.

I tried Slackbuilds, but I'm missing something; so I got Geany from LinuxPackages.net, and it worksls was the previous entry in this blog.

CentOS 5.2 almost here is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Recent Comments

TheParoxysm on Slackware tips — quick and easy things to make the box work better: SlackBuilds are pretty easy to use. You find one you're interested in ...

Steven Rosenberg on Slackware tips — quick and easy things to make the box work better: I haven't used Slackware in a while, and I never did get the hang of S ...

luddite on Slackware tips — quick and easy things to make the box work better: thanks Steven thats the sort of page I have been looking for; and does ...

Powered by Movable Type 4.25

Search this blog

Loading

LXer

Links

Life, the Universe and Debian
Simplify
Daily News technology
LXer
Distrowatch
Linus' Blog
David Pogue
BoingBoing
Linux Today
TuxRadar
Linux.com
Linux Planet
The Open Road
Linux Outlaws podcast
Dan Lynch
Fabian Scherschel
The VAR Guy
Larry the Free Software Guy
Chess Griffin
Linux Reality podcast
Desktop Linux
Practical Technology
Linux Devices
ZDNet
ZDNet's Storage Bits
ZDNet U.K.
iTWire
CNet News
Webware
Beyond Binary
TechCrunch
The Register
Ars Technica
Reg Developer
Computerworld
Computerworld blogs
Steven J. Vaughan-Nichols at Computerworld
Debian
Planet Debian
Debian Forums
Debian News
debianHELP
debiantutorials.org
The Debian User
Wolfgang Lonien
Debian-News.net
Debian Administration
Debian Admin
Debian Weather
Aaron Toponce
Ubuntu
Xubuntu
Kubuntu
Edubuntu
Planet Ubuntu
Ubuntu Forums
Ubuntu Geek
Works With U
OMG! Ubuntu!
I' Been to Ubuntu
Tanner Helland
Dustin Kirkland
Ubuntu UK Podcast
Ubuntu Linux Help
Popey
Linux Mint
CrunchBang Linux
OpenBSD
OpenBSD Journal
OpenBSD Ports
OpenBSD 101
Planet.OpenBSD.nu
jggimi's OpenBSD live CD
DaemonForums
BSDanywhere
Marc Balmer
Denny's OpenBSD blog
Polarwave's OpenBSD Tips and Tricks
Binary Updates for OpenBSD
Puppy Linux
Damn Small Linux
Tiny Core Linux
Lucky 13's Linux blog (lots of Tiny Core)
Lucky 13's BSD blog
PCLinuxOS
Mandriva
Red Hat
Red Hat News
Red Hat Blogs
Red Hat: Truth Happens
Red Hat Magazine
CentOS
Planet CentOS
Fedora
Planet Fedora
Fedora Forums
Fedora Docs
Join Fedora
Paul Frields
Slackware
Slackbuilds
Robby's Slackware Packages
Slackblogs
dropline GNOME for Slackware
GNOME Slackbuild
GWARE - GNOME for Slackware
Wolvix
Zenwalk Linux
Vector Linux
Slax
Splack Linux — Slackware for Sparc
Nonux
How to Forge
marc.info BSD and Linux mailing list archive
FreeBSD
FreeBSD, the Unknown Giant
A Year in the Life of a BSD Guru
NetBSD
hubertf's NetBSD Blog
PC-BSD
Daemon Forums
FreeBSD Forums
Planet FreeBSD
Evilcoder.org
miwi's Privat Blog
DragonFlyBSD
DragonFlyBSD Digest
DesktopBSD
BSD Talk podcast
BSD Magazine
Rhyous
OpenSolaris
MilaX
BeleniX
DeLi Linux
Linux Loop
Electronista
The Tech Report
Engadget
Gizmodo
Phoronix
xkcd – A webcomic of romance, sarcasm, math and language
Nixie Pixel
Technology for Mortals
Thoughts on Technology
ZaReason
System 76
Tiger Direct
NewEgg
DealExtreme

Advertisement

Other blogs

GIRLS' BASKETBALL: Inglewood High tournament of champions schedule released in Daily News High School Spotlight
U.S.-Honduras Preview in 100 Percent Soccer
President Obama Doesn't Deserve the Knock from Wall Street Occupiers in Friendly Fire
Reader E-mail Of The Day in Inside USC with Scott Wolf
Weekly Answers, Pt. 4 in Inside UCLA with Jon Gold