Slackware-15.0 qcow2 images howto

  1. Upload your chosen qcow2 image to your VPS/VDS/DS provider as a custom image.
  2. VNC to the server with the VNC address given to you by your provider. I use TigerVNC for my VNC client.
  3. Login to the server with user: "root" and password: "slacker".
  4. Change the password to something more secure with the "passwd" command.
  5. Create a user to login with "useradd -m username", then create a password for that user with "passwd username".
    Once logged in as this user you can become root by "su - root", and entering root's password. If you're a daredevil
    and want to login as root, then edit /etc/ssh/sshd_config with "mc" to allow root login.
  6. Next we need to setup our network by setting your static ip and gateway in /etc/rc.d/rc.inet1.conf:
    1. You'll need to get your static ipv4 ip with prefix, and your ipv4 gateway address from your VPS provider.
    
        Your ipv4 address with prefix will be in the form of "111.222.33.444/55". Your gateway will be in the form of "111.222.333.4".
        
        Note! If you want ipv6 support, then you'll need your ipv6 address from your provider. As far as I know the ipv6 gateway will 
        always be "fe80::1 dev eth126"
        
    2. Next you'll need to edit /etc/rc.d/rc.inet1.conf:
    
         I use "mc" to do all my editing from the commandline. 
         It's a lot easier and less time consuming than anything else.
    
    # IPv4 config options for eth126: 
    IFNAME[0]="eth126" # This should be the network device name given on all Slackware Linux VPS's, as far as I know.  
    IPADDRS[0]=""            # Put the static ipv4 ip address with prefix at the end here, given to you by your provider.
    USE_DHCP[0]="no"                        
    GATEWAY=""               # Put the ipv4 gateway given to you by your provider here.
    Note! The below ipv6 config is optional. This is for if you want to utilize ipv6 and ipv4 on your server.
    # IPv6 config options for eth126:
    IP6ADDRS[0]=""                                # Put the ipv6 address given to you by your provider here.  
    GATEWAY6="fe80::1 dev eth126" # This should be the ipv6 gateway for all Slackware Linux VPS's, as far as I know. 
      
    USE_SLAAC[0]="no"
    USE_DHCP6[0]="no"
    # Generic options for eth126:
    DHCP_HOSTNAME[0]=""
    
  7. Then reboot and login to your remote server with the SSH client PuTTY:
  8. Run "timeconfig" to set your timezone.
  9. Next resize the 20gb partition to the max of the drive it is on by:
    /usr/local/sbin/auto_resize.sh
    
    The above command is safe, and you should now be using the full capacity of the hard drive.
  10. Set your /etc/HOSTNAME and /etc/hosts files with echo commands below.
    Adjust to match your FQDN.
    echo "mail.example.org" > /etc/HOSTNAME
    
    echo "127.0.0.1 localhost
    127.0.0.1 mail.example.org mail
    ::1 localhost" > /etc/hosts
    
  11. Do a Slackware system upgrade:
    slackpkg update
    slackpkg upgrade-all
    
    If the full system upgrade included a kernel upgrade then run:

    "lilo" at the command prompt if lilo is your bootloader.
    "grub-mkconfig -o /boot/grub/grub.cfg" if grub is your bootloader.

    Then reboot

  12. Install SlackerMail with the install script.

    You should be set with a Slackware-15.0 system using the full disk, and ready to install SlackerMail if you want. You can
    also use these qcow2 images for a fully upgraded and ready to run Slackware system for any purpose you want. It's way
    easier and faster than doing the DVD iso install. I always use one of these images when setting up a SlackerMail mail server.

    You could also do a manual install of the SlackerMail mailserver if you want, but it will take 10-20 hours to complete, where
    the SlackerMail install script will take 5-6 minutes. Go here if you want to do the manual install.

  13. After Install:
    1. Run "mc" at the command prompt, and go to /root/SlackerMail/SlackerMail.setup to get the Webmin password. To copy
        the Webmin password in "mc" hold shift + left click the mouse button and drag it over what you want to copy, then release
        and paste that into the Webmin login box. 
    
    2. Copy the DKIM key in /root/SlackerMail/the-slacker.org.pub.txt, and enter it in the DNS Zone for your server at your provider. 
        I've formated the long DKIM key to be entered at contabo.com, but you may need to enter it differently at a different provider.
        
    3. You'll probably want to change from self signed certs to Let's Encrypt certs. Go to Let's Encrypt Setup.
    






Powered by: Slackware64-15.0 Slackware Lunux Apache v2.4.68 Apache SlackerMail v0.65.2 SlackerMail

Please send any feedback to: wjack@the-slacker.com