| **************************
|
| REMOTE DESKTOP
|
| **************************
|
|
|
| 1) install xrdp ON GNOME DISTROS (use "remmina" as linux client) and put inside /etc/xrdp/startwm.sh:
|
|
|
| #!/bin/sh
|
| # xrdp X session start script (c) 2015, 2017, 2021 mirabilos
|
| # published under The MirOS Licence
|
|
|
| # Rely on /etc/pam.d/xrdp-sesman using pam_env to load both
|
| # /etc/environment and /etc/default/locale to initialise the
|
| # locale and the user environment properly.
|
|
|
| if test -r /etc/profile; then
|
| . /etc/profile
|
| fi
|
|
|
| if test -r ~/.profile; then
|
| . ~/.profile
|
| fi
|
|
|
| export XDG_SESSION_TYPE=x11
|
| export GDK_BACKEND=x11
|
| export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket
|
| export XDG_RUNTIME_DIR=/run/user/1000
|
| unset DBUS_SESSION_BUS_ADDRESS
|
| unset XDG_RUNTIME_DIR
|
| exec gnome-session
|
|
|
| 2) rustdesk (remote desktop similar to TeamViewer for non Gnome distros)
|
| 2.1) download rustdesk (release) as appimage and configure it as system on the other distros:
|
| https://github.com/rustdesk
|
|
|
| 2.2) configure rustdesk as service. Create .config/autostart/rustdesk.desktop with the following content:
|
|
|
| [Desktop Entry]
|
| Type=Application
|
| Name=RustDesk
|
| Exec=/path/to/rustdesk-1.3.9-x86_64.AppImage
|
| X-GNOME-Autostart-enabled=true
|
|
|
| 2.3) use x11 and NOT Wayland as default for the desktop session.
|
| For Kubuntu (KDE): System settings ---> Colors & Themes ---> Login screen (SDDM) ---> Behavior
|
|
|
| 2.4) Clients can be run with the browser: https://rustdesk.com/web/
|
|
|
| **************************
|
| GIT CREDENTIALS AT EACH BASH SESSION
|
| **************************
|
| put inside .bashrc on the distro used for devel (Currently: Debian 12)
|
|
|
|
|
| set_git_identity() {
|
| while true; do
|
| echo "Select the Git identity to configure:"
|
| echo "1) Paolo Prete"
|
| echo "2) Tamas Lex"
|
| echo "3) Francesco Rossi"
|
| echo "4) Marco Cignarella"
|
| read -p "Enter the corresponding number [1-4]: " choice
|
|
|
| case $choice in
|
| 1)
|
| name="Paolo Prete"
|
| email="paolo.prete@monozukuri.eu"
|
| break
|
| ;;
|
| 2)
|
| name="Tamas Lex"
|
| email="tamas.lex@monozukuri.eu"
|
| break
|
| ;;
|
| 3)
|
| name="Francesco Rossi"
|
| email="francesco.rossi@monozukuri.eu"
|
| break
|
| ;;
|
| 4)
|
| name="Marco Cignarella"
|
| email="marco.cignarella@monozukuri.eu"
|
| break
|
| ;;
|
| *)
|
| echo "Invalid choice. Please select a valid option [1-4]."
|
| ;;
|
| esac
|
| done
|
|
|
| git config --global user.name "$name"
|
| git config --global user.email "$email"
|
|
|
| echo "Git identity has been set:"
|
| echo "Name : $name"
|
| echo "Email: $email"
|
| }
|
|
|
|
|
| **************************
|
| OPENVPN
|
| **************************
|
| *) install openvpn-client
|
| *) copy dev4genio.ovn as /etc/openvpn/client/dev4genio.conf and add the following two lines at its end:
|
| script-security 2
|
| route-up "/bin/sh -c 'echo hello; ip route del default via 10.1.7.1'"
|
|
|
| *) enable openvpn client connection as service:
|
| sudo systemctl enable openvpn-client@dev4genio
|