linux:slack_4system
This is an old revision of the document!
Table of Contents
Slackware System
Useful system level notes.
Listing Packages
Run ls -l output on /var/log/packages
# ls -l /var/log/packages
Find package files for installed packages
for pkg in `ls /var/log/packages/` ; do pkg_file=`find /home/share/slackware/slackware64-14.2/ -name "${pkg}.txz"` ; [ -f "$pkg_file" ] && continue ; echo "Cannot find file for $pkg" ; done
Find installation log for standard packages
for pkg in `find /home/share/slackware/slackware64-14.2/slackware64 -name "*.txz" | sort` ; do base=`basename $pkg` ; name=${base%.*} ; test="/var/log/packages/$name" ; [ -f "$test" ] && continue ; echo "Cannot find file for $test" ; done
To list currently installed packages (to be used in my1live)
- get all installed packages
# slackview file --name pkgs.txt --installed --insert
- sort based on software sets
# slackview file --name pkgs.txt --sort
- remove those already selected for my1live
slackview file --name pkgs.txt --dups curr.list
- rename pkgs.txt to my1live list (e.g. XXmore.list)
Building Custom Kernel
- run shell script (getlinux)
- select version, download source
- extract at
/usr/src/
(e.g. linux-4.4.199) - copy a config from
/boot
# cp /boot/config-generic? > .config
- use that config
# make oldconfig
- configure build
# make menuconfig
- build the kernel
# make -j4 bzImage
- build/install modules
# make -j4 modules && make modules_install
modules_install
requires root, obviously!
- copy (as root) kernel
cp arch/x86/boot/bzImage /boot/vmlinuz-generic-4.14.12 cp System.map /boot/System.map-generic-4.14.12 cp .config /boot/config-generic-4.14.12
- generate initrd if using generic
mkinitrd -c -k 4.14.12 -f ext4 -r /dev/sda3 -m ext4 -u -o /boot/initrd.gz
- a useful initrd generator script IS available
- run
/usr/share/mkinitrd/mkinitrd_command_generator.sh
- then run the generated/recommended command
- checkout the
-P
option if required
linux/slack_4system.1736648729.txt.gz · Last modified: by azman