1. Destkops
    1. Gnome
      1. # yum -y groupinstall "X Window System"
      2. # yum -y install gnome-classic-session control-center gnome-terminal nautilus-open-terminal liberation-mono-fonts
      3. # unlink /etc/systemd/system/default.target
      4. # ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
    2. Xfce
      1. # yum -y groupinstall "X Window System"
      2. # yum -y groupinstall Xfce
      3. # unlink /etc/systemd/system/default.target
      4. # ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
      5. vi ~/.vnc/xstartup (Edit)
      6.     #exec /etc/X11/xinit/xinitrc (Comment)
            exec /bin/sh /etc/xdg/xfce4/xinitrc (Add)
        
  2. Firewall
    1. vi firewall.sh (Edit)
    2.  #!/bin/sh
       # Open ports on firewall
       ports=(20 21 22 25 53 80 110 113 143 443 465 587 993 995 3306 5901 5222 5223 7777 9090 9091)
       for index in ${!ports[*]}
       do
          echo -n "Opening tcp port: ${ports[$index]} : "
          tput setaf 2
          firewall-cmd --zone=public --add-port=${ports[$index]}/tcp --permanent
          tput sgr0
          if [ "${ports[$index]}" = "5222" ] || [ "${ports[$index]}" = "5223" ] || [ "${ports[$index]}" = "7777" ] || [ "${ports[$index]}" = "9090" ] || [ "${ports[$index]}" = "9091" ]
          then
             echo -n "Opening udp port: ${ports[$index]} : "
             tput setaf 2
             firewall-cmd --zone=public --add-port=${ports[$index]}/udp --permanent
             tput sgr0
          fi
       done
       echo -n "Reload firewall settings : "
       tput setaf 2
       firewall-cmd --reload
       tput sgr0
      
  3. VNCserver (with root login)
    1. # yum install tigervnc-server
    2. # cp -p /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
    3. # vncserver
    4. # ps aux | grep vnc
    5. # kill 'pid' (of vncserver)
    6. # vi /etc/systemd/system/vncserver@:1.service (Edit)
    7.     [Unit]
          Description=Remote desktop service (VNC)
          After=syslog.target network.target
      
          [Service]
          Type=forking
          # Clean any existing files in /tmp/.X11-unix environment
          ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i  /dev/null 2>&1 || :'
          ExecStart=/sbin/runuser -l root -c "/usr/bin/vncserver %i -geometry 1280x800"
          PIDFile=/root/.vnc/%H%i.pid
          ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i  /dev/null 2>&1 || :'
          [Install]
          WantedBy=multi-user.target
      
    8. # systemctl enable vncserver@:1.service
    9. # systemctl start vncserver@:1.service

  4. Openfire Collaboration
    1. # yum -y install java-1.7.0-openjdk libstdc++.i686
    2. # wget -O openfire-*.rpm http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire-*.rpm
    3. # yum -y localinstall openfire-*.rpm
    4. Open firewall
    5.  #!/bin/sh
      
       for port in 5222 5223 7070 7443 5269 5275 5276 5262 5263 9090 9091 7777 5229
       do
          echo -n "Opening port: $port : "
          tput setaf 2
          firewall-cmd --zone=public --add-port=$port/tcp --permanent
          tput sgr0
       done
       firewall-cmd --reload
      
    6. Access and configure Openfire in browser
      1. http://your.im.server:9090/
      2. Download Spark collaboration client http://www.igniterealtime.org/downloads/index.jsp

  5. AWS cloud backup
    1. # yum install awscli awstats
    2. # aws configure
    3. # aws s3 mb s3://my-bucket --region us-west-1
    4. # aws s3 sync /home/vpopmail/domains/mydomain.com s3://my-bucket/mydomain.com