1. Destkops
    1. Xfce
      1. # yum -y install epel-release
      2. # yum -y groupinstall "X Window System" xfce
      3. # yum -y install gnome-classic-session control-center gnome-terminal nautilus-open-terminal liberation-mono-fonts
      4. # unlink /etc/systemd/system/default.target
      5. # ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
      6. # reboot
  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. Install Desktop (above)
    2. # yum install tigervnc-server tigervnc-server-minimal
    3. # cp -p /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
    4. # perl -pi -e 's/^User=<USER>/User=root/g; s/=\/home\/<USER>/=\/root/g; s/^ExecStart=.*/ExecStart=\/sbin\/runuser -l root -c "\/usr\/bin\/vncserver %i -geometry 1280x800"/g' /etc/systemd/system/vncserver@:1.service
    5. # systemctl daemon-reload
    6. # printf '%s\n\n%s\n%s\n%s\n' '#!/bin/sh' 'unset SESSION_MANAGER' 'unset DBUS_SESSION_BUS_ADDRESS' 'exec /bin/sh /etc/xdg/xfce4/xinitrc' > ~/.vnc/xstartup
    7. # chmod ugo+x ~/.vnc/xstartup
    8. # vncpasswd
    9. # systemctl enable vncserver@:1.service
    10. # systemctl start vncserver@:1.service
    11. # firewall-cmd --zone=public --add-port=5901/tcp --permanent
    12. # firewall-cmd --reload

  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