MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

  • Slackware
  • Slackware64

Contents

  1. Slackware64
    1. Installation of Slackware64 14.0 in VirtualBox
    2. Portuguese console keyboard
    3. Enable login by KDM
    4. Change VESA frame buffer resolution to 1280x960
    5. xterm with Zenburn look and font size 14
    6. X configuration for 1280x960
    7. Enable network DHCP client eth0
    8. VirtualBox port forward
    9. Java installation
    10. Tomcat installation
    11. JBoss 5.1.0
    12. Glassfish 4.0
    13. Mysql
    14. Bash settings
    15. VirtualBox guest additions
    16. Apache Maven installation
    17. Change display to 1600x900x32
    18. Netbeans 7.4
    19. Squirrel
    20. Thunderbird
    21. vi
    22. Emacs
    23. Multilib 32-bit
    24. Skype installation
    25. Apply portuguese keyboard on connecting a keyboard
    26. Install the VM in a Lenovo Thinkpad L440 Core i5
    27. Portable VirtualBox
    28. Packages updates Slackware64 14.1
    29. Packages updates Slackware64 14.2
    30. Update kernel
    31. LVM + virtualbox
    32. Packages updates Slackware64 15.0
    33. Slackpkg update kernel 5.15.139

Slackware64

64 bit version of Slackware

Installation of Slackware64 14.0 in VirtualBox

Physical machine: HP EliteBook 8470p core i5

Virtual machine:

  • Memory 6GB //4GB
  • Disc 64 GB
  • Video memory 128 MB
  • Settings
    • System
      • Processor
        • Enable PAE/NX:true

        • Nr Processors: 3 #2
      • Acceleration
        • Enable VT-x/AMD-V: true
        • Enable nested paging: true
    • General
      • Advanced
        • Mini-Toolbar: disabled # Ctrl+F

Steps:

  • Boot from DVD ISO of Slackware64
  • Choose keyboard pt-latin1
  • Login with root
  • cfdisk
  • new, primary, size 64719
  • new, primary, size 4002.97
  • Set sda1 as bootable
  • type sda1, 83, Linux
  • type sda1, 82, Linux swap
  • write, yes, quit
  • setup, addswap, sda2
  • check bad blocks? no
  • select sda1, format quick, ext4 filesystem
  • Install from CD or DVD, auto, /dev/sr0
  • All packages, full
  • skip USB bootstick
  • Simple LILO, frame buffer 1024x768x64K
  • UTF-8 console? yes
  • MBR LILO destination
  • Mouse imps2
  • Gpm? No
  • Network? no
  • Services, rc.fuse, rc.inetd, rc.messagebus, rc.syslog, rc.sshd
  • Custom screen fonts? no
  • Hardware clock set to UTC
  • Timezone: Europe/Lisbon
  • xinitrc.wmaker
  • Root pass? yes
  • Reboot
  • In Virtualbox export the virtual machine as a OVA file

Portuguese console keyboard

Create the file /etc/rc.d/rc.keymap:

   1 #!/bin/sh
   2 # Load the keyboard map.  More maps are in /usr/share/kbd/keymaps.
   3 if [ -x /usr/bin/loadkeys ]; then
   4  /usr/bin/loadkeys pt-latin1.map
   5 fi

Enable login by KDM

Edit the file /etc/inittab and change the initlevel from 3 to 4

id:4:initdefault

Edit the file /etc/kde/kdm/Xsetup and add the line

setxkbmap pt
xrandr --output VGA-1 --mode 1366x768

Change VESA frame buffer resolution to 1280x960

Edit the file /etc/lilo.conf

vga = 844

Run lilo -C /etc/lilo.conf to update LILO config on the MBR.

xterm with Zenburn look and font size 14

Create file ~/.Xresources:

xterm*foreground: rgb:F6/F3/E8
xterm*background: rgb:40/40/40
xterm*font: *-fixed-*-*-*-14-*

Reload the definitions with xrdb ~/.Xresources

X configuration for 1280x960

DontZap as true disables the Ctrl+Alt+Backspace (Hard reset X).

Section "Module"
    Load        "dbe"   # Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection
    Load        "type1"
    Load        "freetype"
    Load       "glx"
EndSection

Section "Files"
    FontPath   "/usr/share/fonts/local/"
    FontPath   "/usr/share/fonts/misc/"
    FontPath   "/usr/share/fonts/OTF/"
    FontPath   "/usr/share/fonts/TTF/"
    FontPath   "/usr/share/fonts/Type1/"
    FontPath   "/usr/share/fonts/CID/"
    FontPath   "/usr/share/fonts/Speedo/"
    FontPath   "/usr/share/fonts/75dpi/:unscaled"
    FontPath   "/usr/share/fonts/100dpi/:unscaled"
    FontPath   "/usr/share/fonts/75dpi/"
    FontPath   "/usr/share/fonts/100dpi/"
    FontPath   "/usr/share/fonts/cyrillic/"
EndSection

Section "ServerFlags"
EndSection

Section "InputDevice"
    Identifier  "Keyboard1"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "PS/2"
    Option "Device"      "/dev/mouse"
EndSection

Section "Monitor"
    Identifier  "My Monitor"
    HorizSync   31.5 - 50.0
    VertRefresh 40-90
EndSection

Section "Device"
    Identifier  "VESA Framebuffer"
    Driver      "vesa"
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "VESA Framebuffer"
    Monitor     "My Monitor"
   DefaultDepth 24
    Subsection "Display"
        Depth       8
        Modes "1152x864" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes "1152x864" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes "1280x960" "1152x864" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       32
        Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
    EndSubsection
EndSection
Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

Section "ServerFlags"
    Option "DontZap" "true"
EndSection

Enable network DHCP client eth0

Edit the file /etc/rc.d/rc.inet1.conf

   1 # Config information for eth0:
   2 IPADDR[0]=""
   3 NETMASK[0]=""
   4 USE_DHCP[0]="yes"
   5 DHCP_HOSTNAME[0]=""

VirtualBox port forward

  • Network
  • NAT
  • Port forwarding
    • Rule1
    • TCP
    • Host port 2222
    • Guest port 22

Java installation

  • Get from Oracle jdk-6u39-linux-x64.bin
  • mv jdk-6u39-linux-x64.bin /usr/java
  • ./jdk-6u39-linux-x64.bin # run it
  • Change /etc/profile

   1 export JAVA_HOME="/usr/java/jdk1.6.0_39" 
   2 PATH="(...):JAVA_HOME/bin"

Get also http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-linux-x64.tar.gz

   1 cp jdk-7u60-linux-x64.tar.gz /usr/java
   2 cd /usr/java
   3 tar xvzf jdk-7u60-linux-x64.tar.gz

Tomcat installation

   1 mkdir -p /usr/local/tomcat
   2 wget http://mirrors.fe.up.pt/pub/apache/tomcat/tomcat-7/v7.0.54/bin/apache-tomcat-7.0.54.tar.gz
   3 tar xvzf apache-tomcat-7.0.54.tar.gz
   4 useradd tomcat
   5 chown tomcat * -R
   6 chgrp users * -R

Edit /usr/local/tomcat/conf/tomcat-users.xml

   1   <role rolename="admin"/>
   2   <role rolename="manager"/>
   3   <role rolename="manager-gui"/>
   4   <user username="admin" password="12345678" roles="admin,manager,manager-gui"/>

Start and stop tomcat with user tomcat:

  • /usr/local/tomcat/bin/startup.sh
  • /usr/local/tomcat/bin/shutdown.sh

JBoss 5.1.0

   1 adduser jboss # pass 12345678
   2 cd /usr/local/
   3 unzip jboss-5.1.0.GA.zip #
   4 ln -s jboss-5.1.0.GA jboss
   5 cp jboss_init_redhat.sh /etc/init.d
   6 mv /etc/init.d/jboss_init_redhat.sh /etc/init.d/jboss
   7 ln -s /usr/java/jdk1.6.0_39 /usr/local/jdk
   8 chmod 755 /etc/init.d/jboss 
   9 cd /usr/local/jboss
  10 chown jboss * -R
  11 chgrp users * -R
  12 /etc/init.d/jboss start # as root, JBoss should run in jboss user context
  13 /etc/init.d/jboss stop # as root, JBoss should run in jboss user context
  14 

Default runlevels (2 3 4 5):

   1 ln -s /etc/init.d/jboss /etc/rc2.d/S99jboss
   2 ln -s /etc/init.d/jboss /etc/rc2.d/K10jboss
   3 ln -s /etc/init.d/jboss /etc/rc3.d/S99jboss
   4 ln -s /etc/init.d/jboss /etc/rc3.d/K10jboss
   5 ln -s /etc/init.d/jboss /etc/rc4.d/S99jboss
   6 ln -s /etc/init.d/jboss /etc/rc4.d/K10jboss
   7 ln -s /etc/init.d/jboss /etc/rc5.d/S99jboss
   8 ln -s /etc/init.d/jboss /etc/rc5.d/K10jboss

In the file /etc/init.d/jboss change JBOSS_CONF from default to all

Glassfish 4.0

   1 mkdir -p /opt/appsrv 
   2 wget http://download.java.net/glassfish/4.0/release/glassfish-4.0.zip
   3 unzip glassfish-4.0.zip
   4 cd glassfish-4.0
   5 chown vitor *- R
   6 chgrp users *- R
   7 nano bin/asadmin

   1 AS_INSTALL=`dirname "$0"`/../glassfish
   2 AS_INSTALL_LIB="$AS_INSTALL/lib"
   3 . "${AS_INSTALL}/config/asenv.conf"
   4 AS_JAVA=/usr/java/jdk1.7.0_60
   5 JAVA_HOME==/usr/java/jdk1.7.0_60
   6 #Depends upon Java from ../config/asenv.conf
   7 if [ ${AS_JAVA} ]; then
   8     JAVA=${AS_JAVA}/bin/java
   9 fi
  10 
  11 exec "$JAVA" -jar "$AS_INSTALL_LIB/client/appserver-cli.jar" "$@"
  • bin/asadmin start-domain # if first time set the admin pass
  • Access http://localhost:4848

Mysql

   1 chmod 755 /etc/rc.d/rc.mysqld
   2 mysql_install_db --user=mysql
   3 chown -R mysql.mysql /var/lib/mysql
   4 /etc/rc.d/rc.mysqld start
   5 mysql_secure_installation
   6 # set root password: Y
   7 # Remove anonymous users: Y
   8 # Disallow root login remotely? [Y/n] Y
   9 # Remove test database and access to it? [Y/n] Y
  10 # Reload privilege tables now? [Y/n] Y
  11 mysql -p
  12 show databases;
  13 exit

Bash settings

File ~/.bashrc

   1 alias ls='ls --color'
   2 #PS1="\D{%Y-%m-%d}T\A \u@\H:\w \r\n\$"
   3 #PS1="\e[0;33m\]\D{%Y-%m-%d}T\A\[\e[m\]\r\n\e[0;32m\]\u@\H:\w\$\[\e[m\] "
   4 PS1="\e[0;33m\]\D{%Y-%m-%d}T\A\[\e[m\] \e[0;32m\]\u@\H:\w\r\n\$\[\e[m\] "
   5 
   6 export PATH="/home/vitor/narwhal/bin:$PATH"
  • source ~/.bashrc

VirtualBox guest additions

  • Insert guest additions CD image

   1 mount /dev/sr0 /mnt/cdrom
   2 cd /mnt/cdrom
   3 ./VBoxLinuxAdditions.run

Avoids mouse jumping around on X.

Also when using the guest VM, press Ctrl+I to disable mouse integration, to avoid mouse jumping around.

Apache Maven installation

   1 cd /usr/local
   2 wget http://archive.apache.org/dist/maven/binaries/apache-maven-3.2.1-bin.tar.gz
   3 tar xvzf apache-maven-3.2.1-bin.tar.gz
   4 ln -s apache-maven-3.2.1-bin maven
   5 # Add /usr/local/maven/bin to PATH on /etc/profile or ~./bashrc
   6 

Change display to 1600x900x32

Run VBoxManage in the host

  • VBoxManage setextradata "Slack64v14" "CustomVideoMode1" "1600x900x32"

Change /etc/lilo.conf

  • vga=864

Change /etc/X11/xorg.org to have "1600x900" in the several modes.

  • Modes "1600x900" "1152x864" "1024x768" "800x600" "640x480"

Netbeans 7.4

Java/Netbeans

Squirrel

Squirrel

Thunderbird

Move the local folder to ~/ThunderbirdMail.

vi

vim Zenburn

Emacs

Emacs Zenburn

Multilib 32-bit

http://www.slackware.com/~alien/multilib/

As root:

  • lftp -c 'open http://slackware.com/~alien/multilib/ ; mirror -c -e 14.1'

  • cd 14.1
  • upgradepkg --reinstall --install-new *.t?z
  • upgradepkg --install-new slackware64-compat32/*-compat32/*.t?z

Reboot

Skype installation

   1 wget http://download.skype.com/linux/skype-4.3.0.37.tar.bz2
   2 mkdir /usr/local/skype
   3 cp skype-4.3.0.37.tar.bz2 /usr/local/skype/
   4 cd  /usr/local/skype/
   5 tar xvif skype-4.3.0.37.tar.bz2
   6 cd /usr/local/skype/skype-4.3.0.37
   7 mv * ../
   8 cd ..
   9 rmdir skype-4.3.0.37
  10 chmod 755 skype
  11 # I agree
  12 

Apply portuguese keyboard on connecting a keyboard

Sometimes a USB keyboard can disconnect and connect on it's own, and loose the settings. Check the file to see if the settings are applied /var/log/Xorg.0.log

/etc/X11/xorg.conf.d/keyboard.conf

Section "InputClass"
    Identifier         "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    #MatchProduct       "keyboard"
    Option  "XkbLayout"  "pt"
EndSection

Install the VM in a Lenovo Thinkpad L440 Core i5

Init with runlevel 1

Linux init=/bin/bash root=/dev/sda1 rw

Changes in display

Run VBoxManage in the host

  • VBoxManage setextradata "Slack64v14" "CustomVideoMode1" "1366x768x32"

/etc/X11/xorg.conf

Section "Module"
    Load        "dbe"   # Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

    Load        "type1"
    Load        "freetype"
    Load       "glx"
EndSection

Section "Files"
    FontPath   "/usr/share/fonts/local/"
    FontPath   "/usr/share/fonts/misc/"
    FontPath   "/usr/share/fonts/OTF/"
    FontPath   "/usr/share/fonts/TTF/"
    FontPath   "/usr/share/fonts/Type1/"
    FontPath   "/usr/share/fonts/CID/"
    FontPath   "/usr/share/fonts/Speedo/"
    FontPath   "/usr/share/fonts/75dpi/:unscaled"
    FontPath   "/usr/share/fonts/100dpi/:unscaled"
    FontPath   "/usr/share/fonts/75dpi/"
    FontPath   "/usr/share/fonts/100dpi/"
    FontPath   "/usr/share/fonts/cyrillic/"
EndSection

Section "ServerFlags"
EndSection

Section "InputDevice"
    Identifier  "Keyboard1"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "PS/2"
    Option "Device"      "/dev/mouse"
EndSection

Section "InputClass"
    Identifier "Mouse1"
    MatchIsPointer "on"
    Option "Emulate3Buttons" "on"
EndSection

Section "Monitor"
    Identifier  "My Monitor"
    HorizSync   31.5 - 50.0
    VertRefresh 40-90
EndSection

Section "Device"
    Identifier  "VESA Framebuffer"
    Driver      "vboxvideo"
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "VESA Framebuffer"
    Monitor     "My Monitor"

   DefaultDepth 24

    Subsection "Display"
        Depth       8
        Modes  "1366x768" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes  "1366x768" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes  "1366x768"  "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       32
        Modes  "1366x768"  "1024x768" "800x600" "640x480"
    EndSubsection
EndSection
Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"

EndSection
Section "ServerFlags"
    Option "DontZap" "true"
EndSection

Changes in sound settings

  • Change from Host audio driver from Null to Windows Direct Sound
  • Audio controller: ICH AC97

Pidgin-sipe build

   1 cd /tmp
   2 wget http://slackbuilds.org/slackbuilds/14.1/network/pidgin-sipe.tar.gz
   3 tar xvzf pidgin-sipe.tar.gz
   4 cd pidgin-sipe
   5 wget http://downloads.sourceforge.net/sipe/pidgin-sipe-1.13.3.tar.bz2
   6 su
   7 ./pidgin-sipe.SlackBuild 
   8 installpkg /tmp/pidgin-sipe-1.13.3-x86_64-2_SBo.tgz # [[attachment:pidgin-sipe-1.13.3-x86_64-2_SBo.tgz]]
   9 

Local DNS

  • chattr -i /etc/resolv.conf
  • nano /etc/resolv.conf

domain bitarus.allowed.org
nameserver 127.0.0.1
  • chattr +i /etc/resolv.conf

Named/bind configuration in /etc/named.conf

options {
 directory "/var/named";
 // Google DNS servers
 forwarders{8.8.8.8;8.8.4.4;}; 
};

// a caching only nameserver config
zone "." IN {
 type hint;
 file "caching-example/named.root";
};

zone "localhost" IN {
 type master;
 file "caching-example/localhost.zone";
 allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
 type master;
 file "caching-example/named.local";
 allow-update { none; };
};

logging {
  channel my_named_channel {
  file "/tmp/named.log";
  // syslog info;
  // Set the severity to dynamic to see all the debug messages.
  severity dynamic;
  print-time yes;
  print-severity yes;
  print-category yes;
 };
 category queries {   my_named_channel; };
 category client {   my_named_channel; };
 category default { default_syslog; };
};

Start/stop with /etc/rc.d/rc.bind start /etc/rc.d/rc.bind stop

Portable VirtualBox

http://www.vbox.me/

Portable-VirtualBox is a free and open source software tool that lets you run any operating system from a usb stick without separate installation.

VirtualBox needs several kernel drivers installed and needs to start several services: if the drivers and services are not already installed you’ll need administrator rights to run Portable-VirtualBox.

Packages updates Slackware64 14.1

  • Check patches/packages and patches/PACKAGES.TXT for the desired Slackware version.
  • URL for Slackware 14.1 ftp://ftp.slackware.com/pub/slackware/slackware64-14.1/patches/

Get packages to be updated

   1 mkdir -p ~/Downloads/slack6414_1patches
   2 cd ~/Downloads/slack6414_1patches
   3 wget ftp://ftp.slackware.com/pub/slackware/slackware64-14.1/patches/PACKAGES.TXT
   4 cat PACKAGES.TXT | grep "PACKAGE NAME" | awk '//{print $3}'| sed 's/.txz//g' | xargs -i ls /var/log/packages/{} &> /tmp/out.txt ;mkdir -p /tmp/packages;cd /tmp/packages; cat /tmp/out.txt | grep cannot | awk '//{print $4}' | sed 's/\/var\/log\/packages\///g' | sed 's/://g' | xargs -i wget ftp://ftp.slackware.com/pub/slackware/slackware64-14.1/patches/packages/{}.txz
   5 mv * ~/Downloads/slack6414_1patches

Packages updates Slackware64 14.2

  • Check patches/packages and patches/PACKAGES.TXT for the desired Slackware version.
  • URL for Slackware64 14.2 ftp://ftp.slackware.com/pub/slackware/slackware64-14.2/patches/

Get packages to be updated

   1 # as root
   2 URL_PATCHES=ftp://ftp.slackware.com/pub/slackware/slackware64-14.2/patches/
   3 PATCHES_FOLDER=~/Downloads/slack14_2_64patches
   4 mkdir -p $PATCHES_FOLDER
   5 cd $PATCHES_FOLDER
   6 rm PACKAGES.TXT*
   7 wget $URL_PATCHES/PACKAGES.TXT
   8 head PACKAGES.TXT
   9 
  10 cat PACKAGES.TXT | grep "PACKAGE NAME" | awk '//{print $3}'| sed 's/.txz//g' | xargs -i ls /var/log/packages/{} &> /tmp/outpatches.txt ;mkdir -p /tmp/packages;cd /tmp/packages; cat /tmp/outpatches.txt | grep cannot | awk '//{print $4}' | sed 's/\/var\/log\/packages\///g' | sed 's/://g' | sed "s/'//g" | xargs -i wget $URL_PATCHES/packages/{}.txz
  11 
  12 # should only have the missing patches to install 
  13 cd /tmp/packages
  14 ls *.txz | xargs -i upgradepkg {} 
  15 mv * $PATCHES_FOLDER

Update kernel

   1 function get_packages
   2 {
   3   cd /tmp/packages
   4   BASE=http://ftp.rnl.tecnico.ulisboa.pt/pub/slackware/slackware64-14.2/patches/packages/linux-4.4.172
   5   wget $BASE/kernel-firmware-20190118_a8b75ca-noarch-1.txz
   6   wget $BASE/kernel-generic-4.4.172-x86_64-1.txz
   7   wget $BASE/kernel-headers-4.4.172-x86-1.txz
   8   wget $BASE/kernel-huge-4.4.172-x86_64-1.txz
   9   wget $BASE/kernel-modules-4.4.172-x86_64-1.txz
  10   wget $BASE/kernel-source-4.4.172-noarch-1.txz
  11 }
  12 
  13 function update
  14 {
  15   cp /etc/lilo.conf /etc/lilo.conf.old20190305
  16   ls /boot
  17   cd /tmp/packages
  18   upgradepkg kernel-*.txz
  19   # uname -a says Linux c850d 4.4.14 #1 SMP
  20   /usr/share/mkinitrd/mkinitrd_command_generator.sh -k 4.4.172 | bash
  21   ls /boot
  22   cat /etc/lilo.conf | grep image
  23   echo "Check content, image should have kernel 4.4.172"
  24   read
  25   echo "Going to execute lilo"
  26   lilo
  27   mv *.txz /root/Downloads/slack14_2_64patches
  28 }
  29 
  30 get_packages
  31 #update
  32 

LVM + virtualbox

  • Logical Volume Manager
  • https://en.wikipedia.org/wiki/Logical_Volume_Manager_(Linux)

  • http://www.unixwerk.eu/linux/slack/lvm2root.html

   1 wget http://ftp.slackware.com/pub/slackware-iso/slackware64-14.2-iso/slackware64-14.2-install-dvd.iso
   2 # http://www.slackware.com/~alien/archive/13.1/README_LVM.TXT
   3 # virtualbox 
   4 # Slack64LVM
   5 # new linux other linxu 64-bit 
   6 # 512 RAM
   7 # VDI fixed size 10GB 
   8 # start 
   9 # select slackware64-14.2-install-dvd.iso
  10 # start 
  11 # boot: <enter>
  12 # 1, select keyboard 
  13 # qwerty/pt.map 
  14 # 1 <enter>
  15 # root 
  16 # create 2 partitions ...
  17 fdisk /dev/sda 
  18 # n p 1 +512M
  19 # n p 2 +9.5G
  20 # t 2 L 8e 
  21 # w
  22 # LVM stuff 
  23 pvcreate /dev/sda2
  24 vgcreate sysvg /dev/sda2
  25 lvcreate -L 9G -n root sysvg
  26 pvscan 
  27 # setup 
  28 # target 
  29 # /dev/sysvg/root 
  30 # quick format, ext 4
  31 # /dev/sda1 
  32 # quick format, ext4 
  33 # mount point /boot 
  34 
  35 # fstab 
  36 # /dev/sysvg/root for the root directory (/) 
  37 # /dev/sda1 for /boot 
  38 # mount point /boot 
  39 # install from dvd 
  40 # auto 
  41 # package A N 
  42 # full 
  43 # skip simple ok 
  44 # no utf8 
  45 # mbr 
  46 # imps2 
  47 # no gpm
  48 # configure net, yes 
  49 # hostname darkstar example.org dhcp yes 
  50 # inetd ssh syslog messagebus 
  51 # no custom fonts 
  52 # utc no hw clock 
  53 # no reboot 
  54 
  55 chroot /mnt 
  56 $( /usr/share/mkinitrd/mkinitrd_command_generator.sh -r )
  57 # /boot/initrd.gz 
  58 cat /etc/lilo.conf | grep -v "#"
  59 vi /etc/lilo.conf
  60 image = /boot/vmlinuz-generic 
  61   # comment root 
  62   # root=
  63   initrd=/boot/initrd.gz 
  64   label=Linuxtest
  65 
  66 lilo
  67 exit 
  68 reboot 
  69 # login
  70 df -h # used 959M
  71 ping www.sapo.pt 
  72 
  73 # Install guest additions
  74 mount /dev/sr0 /mnt/cdrom
  75 cd /mnt/cdrom
  76 ./VBoxLinuxAdditions.run 
  77 reboot 

Packages updates Slackware64 15.0

   1 sudo bash
   2 URL_PATCHES=ftp://ftp.slackware.com/pub/slackware/slackware64-15.0/patches/
   3 PATCHES_FOLDER=~/Downloads/slack15_0_64patches
   4 mkdir -p $PATCHES_FOLDER
   5 cd $PATCHES_FOLDER
   6 rm PACKAGES.TXT*
   7 wget $URL_PATCHES/PACKAGES.TXT
   8 head PACKAGES.TXT
   9 cat PACKAGES.TXT | grep "PACKAGE NAME" | awk '//{print $3}'| sed 's/.txz//g' | xargs -i ls /var/log/packages/{} &> /tmp/outpatches.txt ;mkdir -p /tmp/packages;cd /tmp/packages; cat /tmp/outpatches.txt | grep cannot | awk '//{print $4}' | sed 's/\/var\/log\/packages\///g' | sed 's/://g' | sed "s/'//g" | xargs -i wget $URL_PATCHES/packages/{}.txz 
  10 cd /tmp/packages
  11 ls *.txz | xargs -i /sbin/upgradepkg {} 
  12 mv * $PATCHES_FOLDER
  13 exit

Slackpkg update kernel 5.15.139

   1 slackpkg update
   2 slackpkg upgrade-all
   3 /usr/share/mkinitrd/mkinitrd_command_generator.sh -k 5.15.139
   4 mkinitrd -c -k 5.15.139 -f ext4 -r /dev/sda5 -m usb-storage:ums-realtek:ehci-hcd:ehci-pci:jbd2:mbcache:crc32c_intel:crc32c_generic:ext4 -u -o /boot/initrd.gz
   5 /sbin/mkinitrd -c -k 5.15.139 -f ext4 -r /dev/sda5 -m usb-storage:ums-realtek:ehci-hcd:ehci-pci:jbd2:mbcache:crc32c_intel:crc32c_generic:ext4 -u -o /boot/initrd.gz
   6 /sbin/lilo
   7 reboot
   8 uname -a
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01