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 ip address (with prefix) and gateway from your VPS provider:
    
        Your ip 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".
        
    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 eth0: 
    #IFNAME[0]="eth126"                        # uncomment
    #IPADDRS[0]="111.222.333.44/55"  # uncomment and put your static ip address with prefix here. 
    #USE_DHCP[0]="no"                            # uncomment
    #GATEWAY="111.222.333.4"              # uncomment and put your gateway here.
    # IPv6 config options for eth0:
    IP6ADDRS[0]=""
    USE_SLAAC[0]=""
    USE_DHCP6[0]=""
    # Generic options for eth0:
    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" > /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.63.1 SlackerMail

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