CSx
Github Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

πŸ’» Slackware


Slackware as a virtualized system and beyond

I believe these notes are for Slackware Current (it was before 2022)

Installation

  • Lilo & Virtio

    • Exit installer > Don’t reboot..

    • cfdisk /dev/vda

      Set bootable > write > exit

    • chroot /mnt

    • ls /boot

      $KERNEL version here

    • /usr/share/mkinitrd/mkinitrd_command_generator.sh

      Might help..

    • mkinitrd -c -k 4.4.14 -f ext4 -m ext4:virtio:virtio_balloon:virtio_blk:virtio_pci:virtio_ring

    • ln -s /boot/vmlinuz-generic-4.4.14 /boot/vmlinuz

      • or

      • ln -s /boot/vmlinuz-huge-4.4.14 /boot/vmlinuz

    • vim /etc/lilo.conf

      boot=/dev/vda
      disk=/dev/vda bio=0x80 max-partitions=7
      #scrolldown# after # Linux bootable
      image = /boot/vmlinuz2
      initrd = /boot/initrd.gz
      root = /dev/vda1
      label = Linux2
      read-only
      
    • exit

      Leave chroot

    • lilo -C /mnt/etc/lilo.conf

Swap Lilo for Grub2

  • pkgtool > remove packages > lilo

  • dhcpcd

  • chroot /mnt

  • vi /etc/resolv.conf

    ++ nameserver 8.8.8.8
    
  • grub-install --target=i386-pc /dev/sdX

  • grub-mkconfig -o /boot/grub/grub.cfg

    Upgrades too

Create User

  • useradd -m -G wheel,video,audio -s user

UPDATE!

  • sudov /etc/slackpkg/blacklist

    ++ kernel-generic
    ++ kernel-generic-smp
    ++ kernel-huge
    ++ kernel-huge-smp
    ++ kernel-modules
    ++ kernel-modules-smp
    
  • sudov /etc/slackpkg/mirrors

  • slackpkg update

  • slackpkg upgrade slackpkg

  • slackpkg new-config

  • slackpkg upgrade glibc-solibs

    After new releases

  • slackpkg install-new

  • slackpkg upgrade-all

  • slackpkg clean-system

  • /usr/share/mkinitrd/mkinitrd_command_generator.sh -k newkernel

    ls /boot to grep newkernel name

Configuration

  • Virtual machine: QXL 16M

  • echo "source ~/.bashrc" >> ~/.bash_profile

  • vim ~/.bashrc

    shopt -s histappend
    HISTSIZE=20000
    HISTFILESIZE=20000
    shopt -s checkwinsize
    export PS1='\n\u@\h - [\w]\n$ '
    alias qq='exit'
    alias cls='clear'
    alias ll='ls -la'
    alias ra='ranger'
    alias sudoc='sudo chmod +x'
    alias sudor='sudo ranger'
    alias sudov='sudo vim'
    
  • xdg-user-dirs-update

    Generate desktop /home/user/.. folder stuff

  • xorgsetup

  • xwmconfig

    Not a DM config but still..

Network while Chroot(ing)

  • sudo vim /etc/resolv.conf

    ++ nameserver 8.8.8.8
    

Sbopkg Setup + Options

  • Slackbuilds.org package browser

  • wget sbopkg-x.xx.x-noarch_1_wzr.tgz

  • installpkg sbopkg-x.xx.x-noarch_1_wzr.tgz

  • sbopkg -r package

    Sync repos

  • sbopkg -s package

    Search by package

  • sbopkg -b package

    List details of package

  • sbopkg -i package

    Install package

  • sbopkg remove package

    Remove package

  • sbopkg -u

    Update sbopkg

  • sbopkg -c

    List installed packages and show updates

  • sbopkg -P

    List package cache and purge unneeded packages

  • sbopkg -p

    List installed packages

Sbopkg Examples

  • sbopkg -r

    Wait like 10min+

  • sbopkg -s '(asterisk)[Ww]allpapers(asterisk)'

  • sbopkg -i slack-wallpapers

slackbuilds.org/repository

  • echo "export TMP="$HOME/.sources/SBo"" >> $HOME/.bashrc

  • cd $HOME/.sources/slackbuilds

  • wget www.slackbuilds....tar.gz

    Slackbuild search linked Below

  • tar -xzf slackbuild.tar.gz

  • cd packagedir

  • wget www.source.tar.gz

  • sudoc package.SlackBuild

  • ./package.Slackbuild

  • cd ../SBo

  • installpkg ...SBo.tgz

  • removepkg ...SBo.tgz

  • upgradepkg ...SBo.tgz

Xorg

  • sudo xorgsetup

  • Change vesa to qxl

  • Install xf86-video-qxl

    Slackbuild search linked Below

  • sudo netconfig

    Networkmanager dependencies satisfied

  • See XrandR to set display resolutions 1600x900 and beyond, etc.

Display Manager (KDM/KDE & xrandr (!))

  • sudov /etc/inittab

    -- id:3:initdefault:
    ++ id:4:initdefault:
    

UTF-8

  • sudo cp /usr/share/zoneinfo/America/Anchorage /etc/localtime

    02-02-2023: Instead of New York? I can’t remember why..

  • sudov /etc/profile.d/lang.sh

  • sudo /etc/profile.d/lang.sh

Modernize Ruby

  • sudo slackpkg remove ruby

  • wget https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.0.tar.gz

    ruby-x.x.x.tar.gz

  • tar -xzf ruby-2.7.0.tar.gz

    ruby-x.x.x.tar.gz

  • cd ruby-2.7.0

    • ./configure

    • make

    • make install

  • sudo ln -sf /usr/local/bin/gem /usr/bin/gem

Flatpak

Chain of dependencies to

  • Requires:

  • Add Flathub

    • flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
  • groupadd flatpak

  • org.freedesktop.Platform.openh264 fails…

    This happens even with Ubuntu or Arch Linux systems

    • flatpak install flathub org.freedesktop.Platform
  • Ready for: flatpak install flathub xxx.oranization.[Pp]ackage

    Not a guarantee, but the potential to run the latest software is there

Resources