Remote Access: Difference between revisions
Jump to navigation
Jump to search
(Created page with " 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 t...") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[User_Tips_%26_Tricks#Peripheral_Software|Back]]<br> | |||
1. Remote Desktop Server | 1. Remote Desktop Server | ||
a. Install Xfce Desktop (above) | a. Install Xfce Desktop (above) | ||
Line 9: | Line 10: | ||
b. # yum install tigervnc-server tigervnc-server-minimal | b. # yum install tigervnc-server tigervnc-server-minimal | ||
c. # cp -p /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service | 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 | 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 | e. # systemctl daemon-reload | ||
f. # mkdir ~/.vnc | 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 | 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 | h. # chmod ugo+x ~/.vnc/xstartup | ||
i. # vncpasswd | i. # vncpasswd |
Latest revision as of 06:58, 25 April 2024
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