Linux servers upgrading + new setup

Discussion in 'Other Operating Systems' started by Revenger, May 7, 2019.

  1. Revenger

    Revenger Member

    Joined:
    Aug 7, 2002
    Messages:
    3,853
    Location:
    Armadale / Perth
    I have my Linux server HP N36L microserver on Centos 6.9 and Virtualmin and it's pretty much EOL with extended support support has moved to Centos 7 now.

    Also because Centos 6 is lacking the newer PHP, MySQL and other packages which is becoming a requirement I had to install those manually on my system.
    As well I run XRDP which is isn't perfect I have to re-run the service etc each time I reboot to get it running again and scripts doesn't send the messages to webmin to show if the services are started stopped etc.
    Also I have transmission installed and a few other things I tested.

    So basically I kinda should be updating my server at some stage.

    I am loathed to run Centos 7 due to not having latest packages and having to clean install each time a new major version is released.

    Ubuntu Server I was originally using but I got many panics and system crashes so I moved to Centos 7 and it's been stable.

    I also want to run a minimal gui for GUI software Jdownloader etc and spent ages getting XRDP going which works but isn't perfect.

    So any advice on how to do this easily and be able to have hassle free upgrades?

    I can backup Virtualmin/Webmin configs easily enough.
    I have a Synology NAS I can setup and use as a temp VM.
    XRDP no idea what I am going to do about that I could just run a local X but I don't have a monitor attached to the videocard.
     
    Last edited: May 7, 2019
  2. waltermitty

    waltermitty Member

    Joined:
    Feb 19, 2016
    Messages:
    902
    Location:
    BRISBANE
    If you're just running downloading apps, just use docker, install alpine, docker and be done with it
     
    darknebula likes this.
  3. OP
    OP
    Revenger

    Revenger Member

    Joined:
    Aug 7, 2002
    Messages:
    3,853
    Location:
    Armadale / Perth
    Not too helpful as I run web servers as well as DNS etc.

    I had a look there are 3 main a-list supported systems by web/virtualmin.

    Centos, Ubuntu, Debian.

    I'll give a Debian a test in a VM as that's probably what I'll end up going to.

    Centos as mentioned has older packages for Apache Mysql etc, Ubuntu was unstable for me so Debian seems like it's the go.

    Any advice for moving over to a new temporary and new install on my sever let me know.

    As well as a light weight GUI system or proper xrdp setup.
     
    Last edited: May 7, 2019
  4. waltermitty

    waltermitty Member

    Joined:
    Feb 19, 2016
    Messages:
    902
    Location:
    BRISBANE
    Why do you need a GUI? Why do you need webmin? Just use SSH. You can run nameservers in docker. Use Portainer if you want a web UI.
     
    darknebula likes this.
  5. OP
    OP
    Revenger

    Revenger Member

    Joined:
    Aug 7, 2002
    Messages:
    3,853
    Location:
    Armadale / Perth
    Well Web/virtual is a easy to use GUI etc.

    Sure I could go all CLI with scripts etc and I am not putting it down as its great for those that can and like to have that level of power user control but for me I want to use what I have in a easy to use way same as jdownloader and any other gui stuff there are headless versions but prefer the gui as the headless remote phone/web interface seems to crash a bit and at my pc easier to use the GUI in a xrdp etc.

    It's just how I like to do things as i'm not a complete command line power user and wouldn't know where to start with creating all my own virtual host and other scripts etc so I like the fact I can do it all in a gui manage the domains, bind, samba etc etc.
     
  6. OP
    OP
    Revenger

    Revenger Member

    Joined:
    Aug 7, 2002
    Messages:
    3,853
    Location:
    Armadale / Perth
    I have a VM of Debian 9.9 on my NAS I am setting up and learning and so far seems to be going okish.

    I have Virtualmin back in with my web servers.
    Instead of XVFB I am using Nomachine with its virtual display server with IceWM for the window manager instead of Fluxbox this time as it is a bit more complete than fluxbox with default options.

    I currently have a setup list going of commands for post install, installing all the stuff I need/want as well as commands to run.
    I dunno how I would make this into a script to autorun if I wanted to but its only 1 pc when I change my server over.

    What I am doing is setting up a the VM then I will switch the web server to that while I redo the HP N36L server then switch the servers back once thats complete with its setup.

    In IceWM I noticed fonts seem a bit blurry in xterm any idea how I can fix this seems to be the bolding?
    While moving the terminal windows colours appear to be ok but this comes back when stopped.
    (Update: turned out to be a setting in nomachine client side hardware decoding)

    icewm.PNG

    Any ideas on server apps I might like to run on the GUI etc.
    Lightweight file manager or something.
    I use Jdownloader and have GsmartControl as a extra nice way to keep a check on hdd's.
    (Before anyone points out yes I know you can run Jdownloader headless though you need to use their webui or app, all request data is transferred through their server and its a but unstable and drops out alot with connecting as I know from the remote client on my phone, but the gui is a darn good site downloader so why I run a virtual x server with it)

    Overall the VM setup is going alright and I will continue to monitor and test stuff before moving it onto my actual server.
     
    Last edited: May 19, 2019 at 8:34 PM
  7. Statitica

    Statitica Member

    Joined:
    Dec 29, 2009
    Messages:
    3,184
    Location:
    Lae, Morobe, PNG
    Honestly, if I was going to running a remote desktop session regularly, I'd be inclined to use the MATE DE, and install X2GO with mate-bindings.

    As for how to make it into a script: pretty much just save your list of commands in sequential order as a .sh file, and then run it with
    Code:
    bash <filename>.sh
    More information on that here: http://matt.might.net/articles/bash-by-example/
     
  8. OP
    OP
    Revenger

    Revenger Member

    Joined:
    Aug 7, 2002
    Messages:
    3,853
    Location:
    Armadale / Perth
    I like a minimal window manager as I only do a few things in it mainly just Jdownloader for managing downloads, so I don't really need a full de for my needs keeps resources lower and simpler etc, IceWM seems to be a good for me this time instead of Fluxbox.

    Yea was thinking that for a install script and will look at that it's just a post install thing to setup what I want on the server.

    As currently I have this listed with a couple files I would need to copy to the system and options like the initial su and password to get it going plus the chmod +x etc on downloaded files, also a couple other commands like the xresources file and the command to run to change the Xterm colours to remove that bold which makes text unreadable etc I am learning about now.

    Code:
    apt-get install sudo
    adduser mark sudo
    apt-get install git
    apt-get install curl
    apt-get install mc
    apt-get install htop
    apt-get install icewm
    apt-get install dh-autoreconf
    apt-get install gsmartcontrol
    
    wget http://software.virtualmin.com/gpl/scripts/install.sh
    ./install.sh
    apt-get update
    apt-get install webmin-virtualmin-google-analytics libapache2-mod-perl2
    
    wget http://download.nomachine.com/download/6.6/Linux/nomachine_6.6.8.5_amd64.deb
    sudo dpkg -i nomachine_6.6.8.5_amd64.deb
    
    ICEWM themes
    -------------------------------
    git clone https://github.com/bbidulock/icewm-extra-themes.git
    cd icewm-extra-themes
    ./autogen.sh
    ./configure --prefix=/usr --sysconfdir=/etc
    make V=0
    make DESTDIR="$pkgdir" install
    -------------------------------
    
    (Generate IceWM menu)
     icewm-menu-fdo
    
     

Share This Page