Remote Access
Jump to navigation
Jump to search
1. Remote Desktop Server a. Install Xfce Desktop (above) b. # yum install xrdp && systemctl enable xrdp && systemctl start xrdp && echo "xfce4-session" > ~/.Xclients && chmod a+x ~/.Xclients c. # firewall-cmd --zone=public --add-port=3389/tcp --permanent && firewall-cmd --reload d. Access email server with Windows/Linux Remote Desktop Client, and accept default configuratioin
2. VNC Server a. Install Desktop (above) b. # yum install tigervnc-server tigervnc-server-minimal c. # cp -p /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service d. # 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 e. # systemctl daemon-reload f. # mkdir ~/.vnc g. # 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 h. # chmod ugo+x ~/.vnc/xstartup i. # vncpasswd j. # systemctl enable vncserver@:1.service k. # systemctl start vncserver@:1.service l. # firewall-cmd --zone=public --add-port=5901/tcp --permanent m. # firewall-cmd --reload n. Access email server w/RealVNC vewier, TigerVNC viewer, or TightVNC viever