XRDP: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<source lang="bash">
<syntaxhighlight lang="bash">
sudo apt install xrdp
sudo apt install xrdp
sudo systemctl status xrdp
sudo systemctl status xrdp
sudo systemctl enable --now xrdp
sudo systemctl enable --now xrdp
</source>
</syntaxhighlight>


<source lang="bash">
<syntaxhighlight lang="bash">
tee ${HOME}/.xsessionrc >/dev/null <<'EOF'
tee ${HOME}/.xsessionrc >/dev/null <<'EOF'
export GNOME_SHELL_SESSION_MODE=ubuntu
export GNOME_SHELL_SESSION_MODE=ubuntu
Line 11: Line 11:
export XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
export XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
EOF
EOF
</source>
</syntaxhighlight>
 
==Power » Lid » Switch==
<syntaxhighlight lang="bash">
cat <<'EXE' | sudo bash
sed -i 's|#HandleLidSwitch=suspend|HandleLidSwitch=ignore|' /etc/systemd/logind.conf
systemctl restart systemd-logind.service
EXE
</syntaxhighlight>
----
<syntaxhighlight lang="bash">
cat <<'EXE' | sudo bash
sed -i 's|HandleLidSwitch=ignore|#HandleLidSwitch=suspend|' /etc/systemd/logind.conf
systemctl restart systemd-logind.service
EXE
</syntaxhighlight>


==Playground==
==Playground==
Line 43: Line 58:
  sudo nmcli con
  sudo nmcli con
  sudo nmcli dev
  sudo nmcli dev
|-
| colspan="3" |
----
|-
| valign="top" |
sudo loginctl list-sessions
sudo loginctl kill-session c1
sudo loginctl kill-user ${USER}


| valign="top" colspan="2"|
sudo apt install xorg gnome gnome-shell --no-install-recommends
sudo apt install xorg gnome gnome-shell
sudo nmcli dev wifi rescan
|-
| colspan="3" |
----
|-
| valign="top" |
| valign="top" |
  sudo nmcli dev wifi rescan
  sudo vim /etc/xrdp/startwm.sh
test -x  /etc/X11/Xsession
exec    /etc/X11/Xsession
 
| valign="top" colspan="2"|
sudo powerprofilesctl set performance
powerprofilesctl get
powerprofilesctl


|}
|}
Line 54: Line 93:
* [https://askubuntu.com/questions/1407444/ xRDP » Ubuntu 22.04 Headless Remote Desktop]
* [https://askubuntu.com/questions/1407444/ xRDP » Ubuntu 22.04 Headless Remote Desktop]
* [https://askubuntu.com/questions/1442514/ xRDP » Ubuntu Gnome Default Remote Desktop]
* [https://askubuntu.com/questions/1442514/ xRDP » Ubuntu Gnome Default Remote Desktop]
* [https://www.digitalocean.com/community/tutorials/how-to-enable-remote-desktop-protocol-using-xrdp-on-ubuntu-22-04 xRDP » Enable Remote Desktop Protocol]
* [[Linux Virtual Display for iPad Pro]]
* [[Linux Virtual Display for iPad Pro]]
* [https://cloudzy.com/blog/gnome-remote-desktop/ RDP Gnome Remote Desktop]
* [https://cloudzy.com/blog/gnome-remote-desktop/ RDP Gnome Remote Desktop]
Line 77: Line 117:
* [[Apple iPad Pro]]
* [[Apple iPad Pro]]
* [[Thunderbolt]]
* [[Thunderbolt]]
* [[Remmina]]
* [[X11VNC]]
* [[X11VNC]]



Latest revision as of 13:07, 29 November 2025

sudo apt install xrdp
sudo systemctl status xrdp
sudo systemctl enable --now xrdp
tee ${HOME}/.xsessionrc >/dev/null <<'EOF'
export GNOME_SHELL_SESSION_MODE=ubuntu
export XDG_CURRENT_DESKTOP=ubuntu:GNOME
export XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
EOF

Power » Lid » Switch

cat <<'EXE' | sudo bash
sed -i 's|#HandleLidSwitch=suspend|HandleLidSwitch=ignore|' /etc/systemd/logind.conf
systemctl restart systemd-logind.service
EXE

cat <<'EXE' | sudo bash
sed -i 's|HandleLidSwitch=ignore|#HandleLidSwitch=suspend|' /etc/systemd/logind.conf
systemctl restart systemd-logind.service
EXE

Playground

systemctl start bluetooth
2388px × 1668px
1194px ×  834px
sudo apt install tlp
sudo bluetooth off
sudo bluetooth on
sudo apt install bluez-tools
bt-device -i MagicMouse2
bt-device -l

sudo nmcli dev wifi con 'ChorkeOrg_2.4GHz' password 'sadaqah!'
sudo nmcli dev wifi con 'ChorkeInc' password 'sadaqah!'
sudo nmcli dev wifi con 'ChorkeOrg' password 'sadaqah!'
sudo nmcli dev wifi
sudo nmcli con
sudo nmcli dev

sudo loginctl list-sessions
sudo loginctl kill-session c1
sudo loginctl kill-user ${USER}
sudo apt install xorg gnome gnome-shell --no-install-recommends
sudo apt install xorg gnome gnome-shell
sudo nmcli dev wifi rescan

sudo vim /etc/xrdp/startwm.sh
test -x  /etc/X11/Xsession
exec     /etc/X11/Xsession
sudo powerprofilesctl set performance
powerprofilesctl get
powerprofilesctl

References