Slackware Notes

Installation
  • Swapless setup is not a good idea, even if you have a 64 bit system. It is not needed but it is preferred since hard drives are so big and inexpensive these days.
  • Use smartctl -a /dev/sda (or whatever your drive is) to see how it's doing. If it's failing, when_failed column would show something.
  • You can find the kernel in `/usr/src/linux`.
Packages

As a quick reference:

            tar zxvf package.tar.gz
            mv package-version.tar.gz package/
            cd package
            sudo ./package.SlackBuild
            installpkg /tmp/package.SBo.tgz
          
NVIDIA

Stick with NVIDIA's package. Anything else and you risk errors. Use glxinfo if you run into any problems.

If you run into unfixable issues, reinstall:

            chmod +x
            ./NV [tab]
          

Do what it says and install and reboot at the very last step.

If composite does not work, do: `nvidia-xconfig --composite`

If your flash videos turn blueish or something similar, right click on the video and turn off hardware acceleration.

My old video card issues..

  • [Driver dilemma in KDE workspaces 4.5](http://blog.martin-graesslin.com/blog/2010/09/driver-dilemma-in-kde-workspaces-4-5/)
  • [Performance issues, one script, and call for testers](http://hugo-kde.blogspot.com/2010/09/performance-issues-one-script-and-call.html)
KDE

If you have a screen-configurations.xml in ~, you can safely delete it.

If you run into a problem with Pidgin, do this:

            removepkg pidgin
            ./configure --disable-gtkspell --disable-gstreamer --disable-meanwhile --disable-avahi --disable-nm
          

If this error is seen:

`pidgin: error while loading shared libraries: libpurple.so.0: cannot open shared object file: No such file or directory`

Do this:

            sudo ldconfig
          

There is a bug mainly in KDE 4.4. When I set my desktop to consider each page a different activity, it allows me to move my desktop. However I don't like that, so if you're experiencing something similar and need to set KDE straight:

  1. Right click -> "Desktop Activity Settings"
  2. Go to activity then set it to "Folder View."
  3. Then back to "Desktop."
  4. Exit X/KDE.
  5. Voila, no more moving the desktop.

Repeat if you have to with however many desktop you have.

Compiz Fusion

I think future Slackware / KDE will have a lot of the Compiz stuff built in. But in the event that you are building Compiz Fusion from grounds up, you need to install the following in this order:

  1. compiz-bcop
  2. libcompizconfig
  3. compizconfig-backend-kconfig
  4. compizconfig-python
  5. ccsm
  6. simple-ccsm
  7. compiz-fusion-plugins-main
  8. compiz-fusion-plugins-extra
  9. compiz-fusion-plugins-unsupported
  10. emerald
  11. emerald-themes
  12. fusion-icon
  13. kicker-compiz
  14. taskbar-compiz

The reason for 13 and 14 is because neither KDE taskbar or pager support viewports. Add `ShowAllWindows = false` to `[General]` in `/home/sif/.kde/share/config/ktaskbarrc` after installing.

If you run into problems, try this first: `compiz --replace --sm-disable --ignore-desktop-hints ccp &`

Make sure desktop icons are enabled.

When KDE+Compiz-Fusion just doesn't want to work..

Alt+F2 then paste in `kwin`.

Firefox & Thunderbird

To access the profile manager with Firefox or Thunderbird, type this:

            `firefox -profilemanager`
            `thunderbird -profilemanager`
          

The profiles are stored in: ~/.mozilla/

VLC

I don't know if this "trick" still works but..

  1. Open VLC.
  2. Ctrl + N.
  3. Type in `screen://`.
  4. Hit play.

Enjoy.

Lilo

At the time of this writing, both of the documentation that I refer to when I accidentally break my Lilo are offline! So here is my guide:

All you need is the first CD or DVD of Slackware. Any version will do but preferably the latest version if possible.

Boot with defaults.

Do this:

            mkdir /spreadlove
            mount /dev/sda1 /spreadlove
            mount --bind /proc /spreadlove/proc
            mount --bind /sys /spreadlove/sys
            mount --bind /dev /spreadlove/dev
            chroot spreadlove
            vi /etc/lilo.conf
            lilo
            exit
            reboot
          

Of course, change sda1 to something else if you know it's not sda1.

CLI

If you want something relatively random.. a quick generator for your password or something, here it is:

`dd if=/dev/random bs=1 count=16 | xxd -ps`

If you want to mount asap:

`mount -o loop image your_folder`

Remember, it's `cfdisk /dev/sda`, not `cfdisk /dev/sda1`.

To archive: `tar cfv "file.tar" file`

To compress: `tar cjpv "file.tar.bz2" file`

Speaking of tarball, in order to preserve symlink, use --preserve.

`updatedb` was useful for slocate, not sure if still is.

To clear bash: history -c && history -w

Version Specific: 12.1

My NVIDIA was not working; I got `Error: glXCreateContext failed`. This error pops up in three cases:

  1. Bad installation
  2. Overwritten proprietary driver with Xorg (say, by upgrading Xorg)
  3. Dying video card

So to fix it.. first run `glxinfo | grep -I renderer` to double check on your machine. Usually re-installing would work but in my case, my video card was fried.