Added x2go CT

This commit is contained in:
2021-10-07 19:56:54 +00:00
parent b5d5531133
commit d2026f5d03
12 changed files with 367 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
String[] ImgVariantList = ['minimal', 'default', 'jenkinsbuilder', 'imgbuilder', 'jenkins', 'mysql' , 'pihole' , 'collabora' , 'jellyfin' , 'domoticz' , 'omadaV3' , 'docker' , 'smb' , 'tvheadend' ] String[] ImgVariantList = ['minimal', 'default', 'jenkinsbuilder', 'imgbuilder', 'jenkins', 'mysql' , 'pihole' , 'collabora' , 'jellyfin' , 'domoticz' , 'omadaV3' , 'docker' , 'smb' , 'tvheadend' , 'x2go' ]
pipeline { pipeline {
agent { label 'LXCBuilder' } agent { label 'LXCBuilder' }

View File

@@ -930,6 +930,13 @@ files:
variants: variants:
- smb - smb
#FileForX2go
- path: /opt/Setup
generator: copy
source: CT-Files/x2go
variants:
- x2go
packages: packages:
manager: apt manager: apt
update: true update: true
@@ -950,6 +957,7 @@ packages:
- docker - docker
- smb - smb
- tvheadend - tvheadend
- x2go
#Https Repo pkgs #Https Repo pkgs
- packages: - packages:
@@ -964,6 +972,7 @@ packages:
- docker - docker
- smb - smb
- tvheadend - tvheadend
- x2go
#Minimal pkgs #Minimal pkgs
- packages: - packages:
@@ -1137,6 +1146,50 @@ packages:
variants: variants:
- tvheadend - tvheadend
#X2go pkgs
- packages:
- gnome-themes-extra
- xfce4-session
- xfce4-settings
- xfce4-panel
- xfconf
- xfdesktop4
- xfwm4
- xserver-xorg
- gvfs
- x2goserver
- x2goserver-extensions
- x2goserver-fmbindings
- x2goserver-xsession
- thunar
- lxterminal
- mousepad
- file-roller
- librsvg2-common
- ncurses-term
- filezilla
- google-chrome-stable
- firefox-esr
- mc
- xterm
- nedit
- nano
- clusterssh
- libreoffice-writer
- libreoffice-impress
- libreoffice-calc
- libreoffice-l10n-nl
- libreoffice-help-nl
- okular
- remmina
- remmina-plugin-rdp
- remmina-plugin-rdp
- remmina-plugin-vnc
- remmina-plugin-spice
action: install
variants:
- x2go
repositories: repositories:
- name: sources.list - name: sources.list
url: |- url: |-
@@ -1200,6 +1253,13 @@ packages:
variants: variants:
- tvheadend - tvheadend
#GoogleChrome Repo
- name: google-chrome.list
url: |-
deb [signed-by=/usr/share/keyrings/GoogleChrome-archive-keyring.gpg arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
variants:
- x2go
actions: actions:
- trigger: post-unpack - trigger: post-unpack
action: |- action: |-
@@ -1249,6 +1309,7 @@ actions:
- domoticz - domoticz
- omadaV3 - omadaV3
- smb - smb
- x2go
- trigger: post-packages - trigger: post-packages
action: |- action: |-
@@ -1343,5 +1404,13 @@ actions:
variants: variants:
- tvheadend - tvheadend
#GoogleChrome Repo key
- trigger: post-unpack
action: |-
#!/bin/sh
curl --retry 7 --retry-delay 5 -L -s https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /usr/share/keyrings/GoogleChrome-archive-keyring.gpg
variants:
- x2go
mappings: mappings:
architecture_map: debian architecture_map: debian

View File

@@ -0,0 +1,2 @@
xterm*background: black
xterm*foreground: lightgray

View File

@@ -0,0 +1,14 @@
[Desktop Entry]
Version=1.0
Type=Application
Exec=exo-open --launch FileManager %u
Icon=org.xfce.filemanager
StartupNotify=true
Terminal=false
Categories=Utility;X-XFCE;X-Xfce-Toplevel;
OnlyShowIn=XFCE;
X-XFCE-MimeType=inode/directory;x-scheme-handler/trash;
X-AppStream-Ignore=True
Name=File Manager
Comment=Browse the file system
X-XFCE-Source=file:///usr/share/applications/xfce4-file-manager.desktop

View File

@@ -0,0 +1,14 @@
[Desktop Entry]
Version=1.0
Type=Application
Exec=exo-open --launch WebBrowser %u
Icon=web-browser
StartupNotify=true
Terminal=false
Categories=Network;X-XFCE;X-Xfce-Toplevel;
OnlyShowIn=XFCE;
X-XFCE-MimeType=x-scheme-handler/http;x-scheme-handler/https;
X-AppStream-Ignore=True
Name=Web Browser
Comment=Browse the web
X-XFCE-Source=file:///usr/share/applications/exo-web-browser.desktop

View File

@@ -0,0 +1,13 @@
[Desktop Entry]
Version=1.0
Type=Application
Exec=exo-open --launch TerminalEmulator
Icon=utilities-terminal
StartupNotify=true
Terminal=false
Categories=Utility;X-XFCE;X-Xfce-Toplevel;
OnlyShowIn=XFCE;
X-AppStream-Ignore=True
Name=Terminal Emulator
Comment=Use the command line
X-XFCE-Source=file:///usr/share/applications/exo-terminal-emulator.desktop

View File

@@ -0,0 +1,13 @@
[Desktop Entry]
Name=Mousepad
Comment=Simple Text Editor
GenericName=Text Editor
Exec=mousepad %F
Icon=accessories-text-editor
Terminal=false
StartupNotify=true
Type=Application
Categories=Utility;TextEditor;GTK;
MimeType=text/plain;
X-Desktop-File-Install-Version=0.23
X-XFCE-Source=file:///usr/share/applications/mousepad.desktop

View File

@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-panel" version="1.0">
<property name="configver" type="int" value="2"/>
<property name="panels" type="array">
<value type="int" value="1"/>
<property name="panel-1" type="empty">
<property name="position" type="string" value="p=8;x=960;y=1059"/>
<property name="length" type="uint" value="100"/>
<property name="position-locked" type="bool" value="true"/>
<property name="icon-size" type="uint" value="16"/>
<property name="size" type="uint" value="26"/>
<property name="plugin-ids" type="array">
<value type="int" value="1"/>
<value type="int" value="2"/>
<value type="int" value="3"/>
<value type="int" value="4"/>
<value type="int" value="5"/>
<value type="int" value="6"/>
<value type="int" value="7"/>
<value type="int" value="8"/>
<value type="int" value="9"/>
<value type="int" value="10"/>
<value type="int" value="11"/>
<value type="int" value="12"/>
<value type="int" value="13"/>
</property>
</property>
</property>
<property name="plugins" type="empty">
<property name="plugin-1" type="string" value="applicationsmenu">
<property name="custom-menu" type="bool" value="false"/>
</property>
<property name="plugin-2" type="string" value="launcher">
<property name="items" type="array">
<value type="string" value="15797758814.desktop"/>
</property>
</property>
<property name="plugin-3" type="string" value="launcher">
<property name="items" type="array">
<value type="string" value="15797759346.desktop"/>
</property>
</property>
<property name="plugin-4" type="string" value="launcher">
<property name="items" type="array">
<value type="string" value="15797759488.desktop"/>
</property>
</property>
<property name="plugin-5" type="string" value="launcher">
<property name="items" type="array">
<value type="string" value="16336291841.desktop"/>
</property>
</property>
<property name="plugin-6" type="string" value="separator">
<property name="style" type="uint" value="0"/>
</property>
<property name="plugin-7" type="string" value="tasklist">
<property name="grouping" type="uint" value="1"/>
</property>
<property name="plugin-8" type="string" value="separator">
<property name="expand" type="bool" value="true"/>
<property name="style" type="uint" value="0"/>
</property>
<property name="plugin-9" type="string" value="pager">
<property name="rows" type="uint" value="1"/>
</property>
<property name="plugin-10" type="string" value="separator">
<property name="style" type="uint" value="0"/>
</property>
<property name="plugin-11" type="string" value="systray">
<property name="show-frame" type="bool" value="false"/>
<property name="square-icons" type="bool" value="true"/>
</property>
<property name="plugin-12" type="string" value="separator">
<property name="style" type="uint" value="0"/>
</property>
<property name="plugin-13" type="string" value="clock">
<property name="mode" type="uint" value="2"/>
<property name="digital-format" type="string" value="%R"/>
</property>
</property>
</channel>

View File

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-session" version="1.0">
<property name="general" type="empty">
<property name="FailsafeSessionName" type="empty"/>
<property name="LockCommand" type="empty"/>
<property name="SessionName" type="string" value="Default"/>
<property name="SaveOnExit" type="bool" value="false"/>
</property>
<property name="sessions" type="empty">
<property name="Failsafe" type="empty">
<property name="IsFailsafe" type="empty"/>
<property name="Count" type="empty"/>
<property name="Client0_Command" type="empty"/>
<property name="Client0_Priority" type="empty"/>
<property name="Client0_PerScreen" type="empty"/>
<property name="Client1_Command" type="empty"/>
<property name="Client1_Priority" type="empty"/>
<property name="Client1_PerScreen" type="empty"/>
<property name="Client2_Command" type="empty"/>
<property name="Client2_Priority" type="empty"/>
<property name="Client2_PerScreen" type="empty"/>
<property name="Client3_Command" type="empty"/>
<property name="Client3_Priority" type="empty"/>
<property name="Client3_PerScreen" type="empty"/>
<property name="Client4_Command" type="empty"/>
<property name="Client4_Priority" type="empty"/>
<property name="Client4_PerScreen" type="empty"/>
</property>
</property>
</channel>

View File

@@ -0,0 +1,103 @@
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfwm4" version="1.0">
<property name="general" type="empty">
<property name="activate_action" type="string" value="bring"/>
<property name="borderless_maximize" type="bool" value="true"/>
<property name="box_move" type="bool" value="false"/>
<property name="box_resize" type="bool" value="false"/>
<property name="button_layout" type="string" value="O|SHMC"/>
<property name="button_offset" type="int" value="0"/>
<property name="button_spacing" type="int" value="0"/>
<property name="click_to_focus" type="bool" value="true"/>
<property name="cycle_apps_only" type="bool" value="false"/>
<property name="cycle_draw_frame" type="bool" value="true"/>
<property name="cycle_raise" type="bool" value="false"/>
<property name="cycle_hidden" type="bool" value="true"/>
<property name="cycle_minimum" type="bool" value="true"/>
<property name="cycle_preview" type="bool" value="true"/>
<property name="cycle_tabwin_mode" type="int" value="0"/>
<property name="cycle_workspaces" type="bool" value="false"/>
<property name="double_click_action" type="string" value="maximize"/>
<property name="double_click_distance" type="int" value="5"/>
<property name="double_click_time" type="int" value="250"/>
<property name="easy_click" type="string" value="Alt"/>
<property name="focus_delay" type="int" value="250"/>
<property name="focus_hint" type="bool" value="true"/>
<property name="focus_new" type="bool" value="true"/>
<property name="frame_opacity" type="int" value="100"/>
<property name="frame_border_top" type="int" value="0"/>
<property name="full_width_title" type="bool" value="true"/>
<property name="horiz_scroll_opacity" type="bool" value="false"/>
<property name="inactive_opacity" type="int" value="100"/>
<property name="maximized_offset" type="int" value="0"/>
<property name="mousewheel_rollup" type="bool" value="true"/>
<property name="move_opacity" type="int" value="100"/>
<property name="placement_mode" type="string" value="center"/>
<property name="placement_ratio" type="int" value="20"/>
<property name="popup_opacity" type="int" value="100"/>
<property name="prevent_focus_stealing" type="bool" value="false"/>
<property name="raise_delay" type="int" value="250"/>
<property name="raise_on_click" type="bool" value="true"/>
<property name="raise_on_focus" type="bool" value="false"/>
<property name="raise_with_any_button" type="bool" value="true"/>
<property name="repeat_urgent_blink" type="bool" value="false"/>
<property name="resize_opacity" type="int" value="100"/>
<property name="scroll_workspaces" type="bool" value="true"/>
<property name="shadow_delta_height" type="int" value="0"/>
<property name="shadow_delta_width" type="int" value="0"/>
<property name="shadow_delta_x" type="int" value="0"/>
<property name="shadow_delta_y" type="int" value="-3"/>
<property name="shadow_opacity" type="int" value="50"/>
<property name="show_app_icon" type="bool" value="false"/>
<property name="show_dock_shadow" type="bool" value="true"/>
<property name="show_frame_shadow" type="bool" value="true"/>
<property name="show_popup_shadow" type="bool" value="false"/>
<property name="snap_resist" type="bool" value="false"/>
<property name="snap_to_border" type="bool" value="true"/>
<property name="snap_to_windows" type="bool" value="false"/>
<property name="snap_width" type="int" value="10"/>
<property name="vblank_mode" type="string" value="auto"/>
<property name="theme" type="string" value="Default"/>
<property name="tile_on_move" type="bool" value="true"/>
<property name="title_alignment" type="string" value="center"/>
<property name="title_font" type="string" value="Sans Bold 9"/>
<property name="title_horizontal_offset" type="int" value="0"/>
<property name="titleless_maximize" type="bool" value="false"/>
<property name="title_shadow_active" type="string" value="false"/>
<property name="title_shadow_inactive" type="string" value="false"/>
<property name="title_vertical_offset_active" type="int" value="0"/>
<property name="title_vertical_offset_inactive" type="int" value="0"/>
<property name="toggle_workspaces" type="bool" value="false"/>
<property name="unredirect_overlays" type="bool" value="true"/>
<property name="urgent_blink" type="bool" value="false"/>
<property name="use_compositing" type="bool" value="false"/>
<property name="workspace_count" type="int" value="1"/>
<property name="wrap_cycle" type="bool" value="true"/>
<property name="wrap_layout" type="bool" value="true"/>
<property name="wrap_resistance" type="int" value="10"/>
<property name="wrap_windows" type="bool" value="true"/>
<property name="wrap_workspaces" type="bool" value="false"/>
<property name="zoom_desktop" type="bool" value="true"/>
<property name="workspace_names" type="array">
<value type="string" value="Workspace 1"/>
<value type="string" value="Workspace 2"/>
<value type="string" value="Workspace 3"/>
<value type="string" value="Workspace 4"/>
<value type="string" value="Workspace 5"/>
<value type="string" value="Workspace 6"/>
<value type="string" value="Workspace 7"/>
<value type="string" value="Workspace 8"/>
<value type="string" value="Workspace 9"/>
<value type="string" value="Workspace 10"/>
<value type="string" value="Workspace 11"/>
<value type="string" value="Workspace 12"/>
<value type="string" value="Workspace 13"/>
<value type="string" value="Workspace 14"/>
<value type="string" value="Workspace 15"/>
<value type="string" value="Workspace 16"/>
<value type="string" value="Workspace 17"/>
<value type="string" value="Workspace 18"/>
</property>
</property>
</channel>

View File

@@ -0,0 +1,17 @@
#!/bin/bash
#Hide mail button in application menu
sed -i -e 's/OnlyShowIn/NotShowIn/g' /usr/share/applications/xfce4-mail-reader.desktop
#Hide 'Thunar bulk rename' button in application menu
echo "NotShowIn=XFCE;" >> /usr/share/applications/thunar-bulk-rename.desktop
#Set default webrowser to 'Gooogle Chrome'
update-alternatives --set x-www-browser /usr/bin/google-chrome-stable
#Set default terminal to 'LxTerminal'
update-alternatives --set x-terminal-emulator /usr/bin/lxterminal
#Setup default home with 'XFCE' configs
mv -f /opt/Setup/Configs/Skel/* /opt/Setup/Configs/Skel/.[!.]* /etc/skel/
mkdir /etc/skel/.ssh
rm -rf /opt/Setup/Configs/Skel

View File

@@ -30,6 +30,7 @@ This can be done on a Minimal debian CT (make sure to enable nesting) on the new
| docker | Debian | Docker container service | | docker | Debian | Docker container service |
| smb | Debian | Samba server | | smb | Debian | Samba server |
| tvheadend | Debian | Tvheadend server | | tvheadend | Debian | Tvheadend server |
| x2go | Debian | Remote xfce desktop accessable via X2go |
| gitea | Alpine | Gitea server | | gitea | Alpine | Gitea server |
| nginx | Alpine | Nginx server for reverse-proxy use | | nginx | Alpine | Nginx server for reverse-proxy use |
| ddns | Alpine | DDNS client configured for OVH/OVH-Cloud | | ddns | Alpine | DDNS client configured for OVH/OVH-Cloud |
@@ -65,7 +66,7 @@ AptCacherNG
MailBackup* MailBackup*
~FileShelter~ Not supported in debian 11 /transfer.sh As alternative ~FileShelter~ Not supported in debian 11 /transfer.sh As alternative
WS(x2go-xfce)
**End original list** **End original list**
@@ -228,3 +229,8 @@ cd /iscsi/<server-iqn>/tpg1/luns
create <device> create <device>
exit exit
``` ```
## x2go
* Add a user by typing `adduser <username>`
* Set key auth only `sed -i -e '/PasswordAuthentication/c\PasswordAuthentication no' -e '/ChallengeResponseAuthentication/c\ChallengeResponseAuthentication no' /etc/ssh/sshd_config`
* Set ssh port `sed -i -e '/Port 22/c\Port <PortNr>' /etc/ssh/sshd_config`