Table of Contents

Operating Systems - Linux - Distributions - Slackware - Notes

Install a .txz package from a local directory

installpkg filename.txz

Slackware 14.0

Re-enabling the huge.s kernel on 14.0/14.1 after an update resets it to hugesmp.s

Note: this may or may not be the best way to do it, but it worked for me.

Scenario:

Fix (when using the huge.s kernel):

  1. Boot from the Slackware DVD matching the version of Slackware that is installed.
  2. At the boot: prompt boot your system with:
    huge.s root=/dev/sda1 rdinit= ro

    Change /dev/sda1 to the hard disk where Slackware is installed.

  3. Log in as root.
  4. Change directory to /boot:
    cd /boot

    If you execute ls -l here you'll see that System.map, config, and vmlinuz are symbolic links to the huge-smp kernel, which is not the kernel you want.

  5. Remove System.map, config, and vmlinuz:
     rm System.map config vmlinuz
  6. Create new symbolic links to the huge kernel:
    ln -s System.map-huge-3.2.45 System.map
    ln -s config-huge-3.2.45 config
    ln -s vmlinuz-huge-3.2.45 vmlinuz

    Change 3.2.45 to the new kernel version.

  7. Run lilo without parameters:
    lilo

    Don't forget to do this as it will still boot the old kernel if you don't.

  8. Reboot.

Fix (when using the generic kernel and a custom initrd):
For example when you followed README_LVM.TXT for enabling LVM support.

  1. Boot from the Slackware DVD matching the version of Slackware that is installed.
  2. At the boot: prompt boot your system with:
    huge.s
  3. Log in as root.
  4. Start setup:
    setup
  5. Go to TARGET. This is used to quickly make the LVM lvs visible.
  6. Exit from setup
  7. Mount the lvs. Example:
    mount /dev/mapper/root--vg-root /mnt
    mount /dev/mapper/root--vg-usr /mnt/usr
    mount /dev/mapper/root--vg-var /mnt/var
    mount /dev/mapper/root--vg-tmp /mnt/tmp
    mount /dev/mapper/root--vg-home /mnt/home
    mount /dev/sda1 /mnt/boot
  8. Chroot to /mnt:
     chroot /mnt
  9. Change directory to /boot:
    cd /boot

    If you execute ls -l here you'll see that System.map, config, and vmlinuz are symbolic links to the huge-smp kernel, which is not the kernel you want.

  10. Remove System.map, config, and vmlinuz:
     rm System.map config vmlinuz
  11. Create new symbolic links to the generic kernel:
    ln -s System.map-generic-3.10.103 System.map
    ln -s config-huge-3.10.103 config
    ln -s vmlinuz-huge-3.10.103 vmlinuz

    Change 3.10.103 to the new kernel version.

  12. Create a new initrd:
    mkinitrd -c -k 3.10.103 -m ext4 -f ext4 -r /dev/root--vg-root -L

    Change 3.10.103 to the new kernel version.

  13. Edit /etc/lilo.conf to boot the new kernel and initrd. Example:
      image = /boot/vmlinuz-generic-3.10.103
        initrd = /boot/initrd.gz
        root = /dev/root--vg-root
        label = Slackware
        read-only

    Change 3.10.103 to the new kernel version.

  14. Run lilo without parameters:
    lilo

    Don't forget to do this as it will still boot the old kernel if you don't.

  15. Reboot.

Slackware 14.1

Updating

  1. Edit /etc/slackpkg/mirrors and uncomment the line for the geographically closest mirror.
  2. Update the list of (updateable) packages with:
    slackpkg update
  3. Upgrade the packages with:
    slackpkg upgrade-all
  4. Don't forget to install new packages:
    slackpkg install-new
  5. And (only) when following Slackware current: (re)install multilib to get newly added compat32 packages.
    slackpkg install multilib

    Reinstalling multitlib this way requires that slackpkg+ is installed.

NVIDIA Graphics drivers for GeForce 6800 GT

See: NVIDIA - What's a legacy driver? for a list of which driver version to use for which graphics card.

Download the NVIDIA-Linux-x86-304.125.run (or NVIDIA-Linux-x86_64-304.125.run for Slackware64).

Don't use the 304.88 version. It will not compile the NVIDIA kernel module and complain about “Kernel configuration invalid” and missing include/generated/autoconf.h and include/config/auto.conf files in nvidia-installer.log.

Install with:

sh NVIDIA-Linux-x86-304.125.run

Answer the questions asked by the ncurses based NVIDIA installer.

Modes for iiyama HM703UT Vision Master Pro 413

The HM703UT is a 17“ CRT monitor capable of more than the defualt 1024×768 resolution that the NVIDIA driver sets.

Edit /etc/X11/xorg.conf after installing the NVIDIA drivers.

Add a Modes line to the Screen section specifying the desired resolutions, like the Modes line in the following example:

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
        Modes      "1600x1200" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600"
    EndSubSection
EndSection

Installing Slackpkg+

Slackpkg+ allows installing packages on Slackware from several unofficial repositories.

Download the latest version of Slackpkg+ from Slackpkg+ - A slackpkg plugin for third-party repositories.
Install with:

installpkg slackpkg+-1.4.0-noarch-2mt.txz

Update:

slackpkg update gpg
slackpkg update

Capture Analog TV signal

The card:

[    4.563370] saa7134[0]: found at 0000:02:08.0, rev: 1, irq: 19, latency: 64, mmio: 0xfeaffc00
[    4.563526] saa7134[0]: subsystem: 11bd:002b, board: Pinnacle PCTV Stereo (saa7134) [card=26,autodetected]
[    4.563694] saa7134[0]: board init: gpio is 6000
[    4.702029] saa7134[0]: i2c eeprom 00: bd 11 2b 00 f8 f8 1c 00 43 43 a9 1c 55 d2 b2 92
[    4.702669] saa7134[0]: i2c eeprom 10: 00 f0 00 00 ff 20 ff ff ff ff ff ff ff ff ff ff
[    4.703309] saa7134[0]: i2c eeprom 20: 01 40 01 03 03 ff 03 01 08 ff 00 1c ff ff ff ff
[    4.703938] saa7134[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[    4.704569] saa7134[0]: i2c eeprom 40: ff 07 00 c0 86 ff 01 01 ff ff ff ff ff ff ff ff
[    4.705199] saa7134[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[    4.705828] saa7134[0]: i2c eeprom 60: 0c 22 17 4d 03 07 41 d2 ff ff ff ff ff ff ff ff
[    4.706459] saa7134[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff 74 50 ff ff ff ff ff ff
[    4.707090] saa7134[0]: i2c eeprom 80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[    4.707718] saa7134[0]: i2c eeprom 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[    4.708350] saa7134[0]: i2c eeprom a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[    4.708979] saa7134[0]: i2c eeprom b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[    4.709609] saa7134[0]: i2c eeprom c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[    4.710240] saa7134[0]: i2c eeprom d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[    4.710868] saa7134[0]: i2c eeprom e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[    4.711499] saa7134[0]: i2c eeprom f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[    5.130089] saa7134[0]: registered device video0 [v4l2]
[    5.130243] saa7134[0]: registered device vbi0
[    5.169108] saa7134 ALSA driver for DMA sound loaded
[    5.169234] saa7134[0]/alsa: saa7134[0] at 0xfeaffc00 irq 19 registered as card -1

Steps in VLC (tested with VLC 2.1.5 from alienbob's slackware repo):

This results in the following MRL and options: MRL:

v4l2:///dev/video0

Options:

:v4l2-standard=PAL :input-slave=alsa://hw:2,0 :v4l2-dev=/dev/video0 :v4l2-chroma=YUYV :v4l2-input=0 :v4l2-audio-input=-1 :v4l2-width=0 :v4l2-height=0 :v4l2-aspect-ratio=4\:3 :v4l2-radio-dev=/dev/radio0 :v4l2-tuner-frequency=591000 :v4l2-tuner-audio-mode=3 :no-v4l2-controls-reset :v4l2-brightness=-1 :v4l2-brightness-auto=-1 :v4l2-contrast=-1 :v4l2-saturation=-1 :v4l2-hue=-1 :v4l2-hue-auto=-1 :v4l2-white-balance-temperature=-1 :v4l2-auto-white-balance=-1 :v4l2-red-balance=-1 :v4l2-blue-balance=-1 :v4l2-gamma=-1 :v4l2-autogain=-1 :v4l2-gain=-1 :v4l2-sharpness=-1 :v4l2-chroma-gain=-1 :v4l2-chroma-gain-auto=-1 :v4l2-power-line-frequency=-1 :v4l2-backlight-compensation=-1 :v4l2-band-stop-filter=-1 :no-v4l2-hflip :no-v4l2-vflip :v4l2-rotate=-1 :v4l2-color-killer=-1 :v4l2-color-effect=-1 :v4l2-audio-volume=-1 :v4l2-audio-balance=-1 :no-v4l2-audio-mute :v4l2-audio-bass=-1 :v4l2-audio-treble=-1 :no-v4l2-audio-loudness :v4l2-set-ctrls= :live-caching=300

Steps/settings used to convert:

Convert -> Profile: Video MPEG-2 + MPGA (TS) -> Destination file -> Start.

Slackware 14.2

Booting to graphical login manager

After choosing your Windows Manager during installation or with xwmconfig.

  1. su to root.
  2. Open /etc/inittab in your favorite texteditor.
  3. Change the line
    # Default runlevel. (Do not set to 0 or 6)
    id:3:initdefault:
  4. To:
    # Default runlevel. (Do not set to 0 or 6)
    id:4:initdefault:
  5. Reboot the system. It should now start the login manager that belongs to the selected window manager.

Install ffmpeg for mp4 support in browser (for Disney+)

On a clean Slackware64 14.2 installation don't forget to install ffmpeg to support the playback of mp4 files (needed for Disney+).

  1. Download the latest slackpkg+.
  2. Install slackpkg+ with:
    su
    installpkg slackpkg+-1.7.0-noarch-10mt.txz
  3. Edit /etc/slackpkg/slackpkgplus.conf and enable the restricted repository.
  4. Update:
    slackpkg update gpg
    slackpkg update
  5. Install ffmpeg:
    slackpkg install ffmpeg
  6. Restart the browser if it was running before installing ffmpeg.
  7. mp4 files should now be playable within the browser.
    1. And Disney+ should show more than just the Disney+ logo after starting a video.