User Space

After the installation has finished and you have rebooted. Login to the new system as root with the password that you set, and set about configuring your new system.

First, so that you can get into a graphical environment to do this job, create at least one user (assuming that you are the only user on your system, you need only create one). Slackware ships with the script adduser for creating new users, making the process interactive. In fact, as of Slackware 13, adduser even offers to place a new user in the appropriate groups that will enable the user to access important multimedia components such as audio, video, optical media, and so on, so take it up on that offer.

adduser allows you to customise the UID (User ID) of the user you create. If you use other GNU or BSD systems, you probably want to make your UID and username the same on your Slackermedia system as on your other systems, simply to avoid small but annoying permission problems when using external drives.

After creating a user, start a graphical environment:

# kdm; exit

At the graphical prompt, log in as the user you just created.

Boot to Desktop by Default

Since not all Slackware users actually use a graphical environment, Slackware boots to a text console by default. You can keep this behaviour, issuing the command

# kdm; exit

every time you want to use your computer (if you have nosey housemates, there is admittedly nothing quite as intimidating as a computer that looks like it's broken every time it boots), or you can alter one configuration file and have Slackware start up a desktop by default.

To change the boot behaviour, open a terminal and change the initlevel from 3 (text console, or TTY, mode) to a 4 (the mode which launches a GUI login screen) with this sed command:

$ su -c 'sed -i "s%init:3%init:4%" /etc/inittab'

From now on, when you boot up Slackware, the desktop login prompt will be launched automatically after the usual boot process is complete.

Login to the Desktop Automatically

The KDE desktop makes allowances for automatic login, so that you are able to boot your computer and be dropped straight into your desktop rather than having to log in each time.

This may be a security risk! If you are the only user of your computer in your house or studio, then auto login is a nice convenience. However, if there are other users on site, you should keep the requirement to login. You may trust someone with your life, but that does not mean that they cannot make mistakes with your data. An accidental deletion of a file, or a change in configuration, could mean huge setbacks in your work.

Do not put your mates (or your data) in such a position. For your sake and theirs, make users login to their own accounts. Linux is the original multi-user operating system, so you can make your co-workers or friends accounts of their own such that they can use the computer without accidentally changing your production environment.

To enable auto login, open System Settings and navigate to the Login Screen panel.

In the Login Screen panel, click the Convenience tab and place a check mark in the Enable Auto-Login option. Select your username from the dropdown menu, and click the Apply button in the lower right corner of the window.

KDE Desktop Configuration

The KDE desktop has a long history on Linux, and is venerated by many as the most configurable, most functional, and most integrated desktop available. The configuration options are staggering, so if anything does not work the way you expect, it can probably be changed.

Mostly, there is little or no danger in customising your desktop. Adding in heaps of additional plugins and add-ons from the internet should be done cautiously (simply for the sake of stability) but otherwise, if you see an option for something within KDE, then it's probably safe to try it.

Experienced KDE users will certainly already have their own config files that they port from one computer to another. KDE is so customisable, in fact, that it can sometimes be overwhelming, so if you are a new user, slowly build up a set of configurations as you use it. Here are some common points of interest:

Single and Double Clicks

By default, a single-click opens up files or folders on the KDE desktop. For many KDE users, this is a small yet powerful method of speeding up the user's interactions with the desktop (after all, the most common interaction you have with a file or folder is to open it, so why not make that the default action?) but for new users, it can be confusing.

dolphinclicks.jpg

Change this behaviour by launching the Dolphin file manager and opening the Configure Dolphin menu item. In the Navigation panel, select the Double-click to open files and folders option.

Icon Previews

Also in the Dolphin configuration window, in the General panel, are configuration options for whether or not you want Dolphin to remember the view settings on a per-folder basis (this is common on other desktops, but having it enabled does increase the amount of metadata being written about each location you visit), when you want to be asked for confirmation, and more.

dolphinclicks.jpg

In the Previews tab, choose what kind of files you want to have dynamically updated thumbnails or previews. Video files, photos, and images can get thumbnailed, websites can be rendered in miniature, fonts displayed, and much more.

Tooltip Overkill

KDE tends to be very verbose in its tooltips, which might be useful for new users, but after some time in KDE they become a lot less useful. If at any point you need to turn tooltips off, you can do so in two places.

In the Dolphin configuration window, in the lower half of the General panel. Deactivate the option to Show Tooltips to disable tooltips within the file management workflow (which tends to be at least half of what anyone does in a traditional desktop).

Open System Settings and click the Workspace Behaviour icon. In the Workspace Behaviour panel, navigate to the Workspace tab and deactivate the Show informational Tips.

Generally, it can be said of KDE that if you are ever in doubt, right-click; there are a profound number of options and built-in functions. Explore the desktop, explore configuration menus, and explore System Settings further and try out some of the customisations until you have configured KDE the way you feel most comfortable with it. KDE is designed to be changed, so do what you must so that your desktop stays out of your way, and helps you get things done.

GUI Root Actions

Some actions during every day maintenance will require root (or “administrative”) permission. Usually, the way to “become root” is to either log out of the desktop and log back in as root, or, more commonly, open a terminal and sign in as root and proceed with administrative tasks in a text console. If you are managing multiple Slackermedia machines and your users do not need (or should not have) admin rights on their own boxen, then this model works quite well,

If you are both the admin and the user of your own machine, you might find it inconvenient to have no way of escalating your own privileges when you need to, for instance, edit a system configuration file, or place a file in a system location. The need to do this is a lot less common than you might imagine; if you are the only user, then really everything you install or put onto the computer, at least within the GUI environment, can be placed into your home directory. But it does come up every now and again, so it's a nice feature to have.

To enable a wide variety of root actions within KDE, install the Root Actions.

This add-on includes quick access to editing files as root, changing permissions of files as root, opening a folder as root, and much more.

Manual Alternative

If you do not want to install the Root Actions add-on for whatever reason, you can build your own simple version of many of the actions with kdesu:

  1. Right-click on the K Menu and select Edit Menu.
  2. In the list on the left of the window, select the System category.
  3. Locate the Dolphin entry and click on it to select it.
  4. Click the Copy button in the top toolbar, and then the Paste button. You have now duplicated the entry for Dolphin.
  5. Select the duplicate entry for Dolphin. In the text fields on the right, provide a unique name, such as DolphinRoot (or similar). In the Command field, enter the text kdesu dolphin –bg #A86766 %i –caption 'Root Window' %u
  6. Save your changes.

In your K Menu, there will now be a new entry for DolphinRoot, which will open a DolphinRoot window as the root user. It will also paint the background of the window red, so that you are reminded that the window is dangerous and has absolutely no safety mechanism between you and a mistakenly deleted file or folder. You may adjust the colour in the menu editor, but do make it unique so that you do not mistakenly leave a root window open.

Build similar actions for other common root tasks (such as opening a terminal as root and editing a text file as root) in the same way.

Titlebar-Only Dragging

By default, KDE windows allow you to grab onto them from any number of points within the window. This can be marvelously efficient with many, if not most, applications but with multimedia applications that require nothing but random clicks and drags, it can be maddening to accidentally move your entire application window when all you meant to do is move a playhead or a brush.

Turn this behaviour off in System Settings > Application Appearance. In the Style category on the left, and activate the Applications tab. Click the Configure button.

In the Configure window, activate the General tab and click the Show Advanced Configuration Options button.

Set Windows drag mode to Drag windows from titlebar only and click the OK button to apply.

GTK and Qt Theming

Since the applications used on a diverse Linux system come from many different programmers and programming toolkits, an application's basic look sometimes varies quite a lot from the rest of the user's environment. While this is unavoidable and actually desirable in some cases (Blender's interface, for instance, one would not try to mask), sometimes a more unified look and feel helps make the system feel more integrated.

The reason this happens is not arbitrary; programming is a lot of work, so people develop toolkits and frameworks that consist of a set of widgets (window panels, buttons, menus, dialogue boxes, and so on) for other programmers to use in their applications. Otherwise, every time any programmer wanted to make an application, everything would have to start from scratch, and probably most every application would look different.

Broadly speaking, the two most popular toolkits for graphical applications on Linux are GTK (used by Mozilla Firefox, Thunderbird, Ardour, a number of soft synths, and many more) and Qt (used by the entirety of KDE itself, VLC, Qtractor, as well as by closed source applications like Maya, Nuke, Mari, and many others).

To tie together two of the most common user interface toolkits, GTK and Qt, there is a theme engine called gtk-qt-engine, which feeds into KDE's System Settings, as well as a separate front-end application gtk-chtheme (use one or the other: System Settings or gtk-chtheme; there is no need to use both since they each accomplish the same thing). These tools allow the user to change the GTK theme to something more attractive than the basic box forms of raw GTK widgets.

KDE's set of Qt widgets and styles can be configured by launching KDE's System Settings, in the Workspace Appearance and Application Appearance panels.

  • In the Workspace Appearance panel, configure and even download new window title bars (“window decoration”), the position of buttons on the title, mouse cursor theme, and more.
  • In the Application Appearance panel, click on the Style category on the left and try the different widget styles on the right.

These control the native KDE look and feel, created with the Qt toolset. If you open a non-Qt application, however, you would notice that some of your style choices will not apply to them. These, typically, are GTK applications.

Some themes exist both for Qt and GTK, while others were only developed for one or the other. One of the most common cross-toolkit themes is Cleanlooks, so if you want applications to be similar in appearance, a unified theme, that's a good choice.

Additional themes are available from http://slackbuilds.org (use “theme” as a search term). Whether you are looking for new and modern themes or that classic UNIX desktop look from the early days of Pixar and ILM, you are sure to find plenty to try.

To set the GTK theme, you must install the gtk-qt-engine. You can do this manually, or just wait until you do all of your Slackermedia installs, since it is an included dependency in the Slackermedia install list.

After you do install it, just launch System Settings and click the GTK+ Appearance icon. Set the theme and also activate the Firefox Scrollbar Fix.

Theming the Linux desktop is both easy and, as with everything in Linux, entirely open. If your art leans toward graphic design or UX, then the Linux desktop is the canvas of your dreams; there is nothing you cannot theme. The thing to remember is that the GTK and Qt toolkits each require their own themes, so anything you do, you must do twice in order to gain full integration.

Of course there are more toolkits than just GTK and Qt, but this is true of any operating system. As long as you theme for GTK and Qt, you'll get 90% of your environment, and the applications that remain are what they are: unique.

An entire book could be written on how malleable the Linux environment is in the hands of each user. The subject is worth pursuing, both on a purely aesthetic level as well as the rich set of scripting languages and every-day hacks that even non-programmers can make to improve their workflow.

The whole point of GNU Linux is to take back control of the computer, so don't be shy. Take control, ask hard questions about why an activity takes an hour when it could be done in five minutes, and develop your own shortcuts, cheats, and hacks. And if you come up with anything especially useful, share it online!

Touchpad

If you're on a laptop, there is a plugin to enable a touchpad control panel in System Settings. It's available on SlackBuilds.org.

# sport install kcm_touchpad

The configuration panel appears in the Input Devices category of System Settings.

R S Q