- Destkops
- Xfce
- # yum -y install epel-release gnome-classic-session control-center \
gnome-terminal nautilus-open-terminal liberation-mono-fonts && \
yum -y groupinstall "Xfce" "base-x" - # systemctl set-default graphical.target
- # reboot
- # yum -y install epel-release gnome-classic-session control-center \
- Xfce
- Remote Desktop Server
- Install Xfce Desktop (above)
- # yum install xrdp && systemctl enable xrdp && systemctl start xrdp && echo "xfce4-session" > ~/.Xclients && chmod a+x ~/.Xclients
- # firewall-cmd --zone=public --add-port=3389/tcp --permanent && firewall-cmd --reload
- Access email server with Windows/Linux Remote Desktop Client, and accept default configuratioin
- VNC Server
- Install Desktop (above)
- # yum install tigervnc-server tigervnc-server-minimal
- # cp -p /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
- # 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
- # systemctl daemon-reload
- # mkdir ~/.vnc
- # 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
- # chmod ugo+x ~/.vnc/xstartup
- # vncpasswd
- # systemctl enable vncserver@:1.service
- # systemctl start vncserver@:1.service
- # firewall-cmd --zone=public --add-port=5901/tcp --permanent
- # firewall-cmd --reload
- Access email server w/RealVNC vewier, TigerVNC viewer, or TightVNC viever
- Firewall
- vi firewall.sh (Edit)
- Openfire Collaboration
- # yum -y install java-1.7.0-openjdk libstdc++
- # wget -O openfire-*.rpm http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire-*.rpm
- # yum -y localinstall openfire-*.rpm
- Open firewall
- Access and configure Openfire in browser
- http://your.im.server:9090/
- Download Spark collaboration client http://www.igniterealtime.org/downloads/index.jsp
- Migration
- Download and install (above) lastest openfire version
- # systemctl stop openfire
- # rm -rf /opt/openfire
- Download and update to the latest openfire version, and copy database to new server
- # systemctl stop openfire
- # scp -rp /opt/openfire root@ip.of.new.server:/opt
- # systemctl start openfire
- # systemctl enable openfire
- # chmod -R daemon:daemon /opt/openfire (If openfire won't start)
#!/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
On new server
On old server
Back on new server
#!/bin/sh # Open ports on firewall ports=(20 21 22 25 53 80 110 113 143 443 465 587 993 995 3306 3389 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
-
Install AWS pkgs on mail server (once)
- # yum install awscli awstats Configure keys from your AWS account on mail server (once)
- # aws configure From mail server create AWS bucket for backup (once)
- # aws s3 mb s3://my-bucket --region us-west-1 Synchronize mail store to AWS
- # aws s3 sync /home/vpopmail/domains/mydomain.com s3://my-bucket/mydomain.com
- # systemctl get-default
- # systemctl list-units --type=target
- # systemctl set-default multi-user.target
- # systemctl get-default
- # reboot
runlevel5.target
UNIT LOAD ACTIVE SUB DESCRIPTION basic.target loaded active active Basic System cryptsetup.target loaded active active Encrypted Volumes getty.target loaded active active Login Prompts graphical.target loaded active active Graphical Interface local-fs-pre.target loaded active active Local File Systems (Pre) local-fs.target loaded active active Local File Systems multi-user.target loaded active active Multi-User System network.target loaded active active Network nfs.target loaded active active Network File System Server paths.target loaded active active Paths remote-fs.target loaded active active Remote File Systems slices.target loaded active active Slices sockets.target loaded active active Sockets swap.target loaded active active Swap sysinit.target loaded active active System Initialization timers.target loaded active active Timers LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type.
multi-user.target