XRDP: Difference between revisions
Jump to navigation
Jump to search
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
< | <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 | ||
</ | </syntaxhighlight> | ||
< | <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 | ||
</ | </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 66: | Line 81: | ||
exec /etc/X11/Xsession | exec /etc/X11/Xsession | ||
| valign="top" | | valign="top" colspan="2"| | ||
sudo powerprofilesctl set performance | |||
powerprofilesctl get | |||
powerprofilesctl | |||
|} | |} | ||
| Line 101: | 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
|
|
||
|
| ||