unix:linux:debian:terminalserver
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
unix:linux:debian:terminalserver [2024/07/22 22:48] – created rodolico | unix:linux:debian:terminalserver [2024/07/23 00:59] (current) – rodolico | ||
---|---|---|---|
Line 2: | Line 2: | ||
There are several ways to create a Linux terminal server. This is only one, but it is fairly simple. It utilizes [[https:// | There are several ways to create a Linux terminal server. This is only one, but it is fairly simple. It utilizes [[https:// | ||
+ | |||
+ | Pro's: Simple to set up for a few users. Each user has their own VNC port. With TigerVNC, VNC session automatically resizes. | ||
+ | |||
+ | Con's: Difficult to maintain for more than 5-10 users, as you must assign each user a separate VNC port. | ||
+ | |||
+ | ===== Do a base install, with GUI ===== | ||
+ | |||
+ | Do a standard Devuan install. When you are on the Software Selection screen, choose //Devuan desktop environment//, | ||
+ | |||
+ | ===== Set up ===== | ||
+ | |||
+ | ==== Install Packages ==== | ||
+ | |||
+ | Install lightdm, xinetd and tigervnc server (may already be installed) | ||
+ | <code bash>apt install lightdm xinetd tigervnc-standalone-server | ||
+ | </ | ||
+ | |||
+ | During install, it will ask which to use, slim or lightdm. Choose lightdm. | ||
+ | |||
+ | Also, tigervnc-viewer is not required, but I use it a lot on my terminal servers. | ||
+ | |||
+ | ==== Configure lightdm and xinetd ==== | ||
+ | Edit the file **/ | ||
+ | < | ||
+ | [XDMCPServer] | ||
+ | enabled=true | ||
+ | port=177 | ||
+ | </ | ||
+ | |||
+ | Create a file **/ | ||
+ | < | ||
+ | service baseline | ||
+ | { | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | |||
+ | service user1 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | You can create as many of these stanzas as you like. The main thing is making sure each //service// name is unique, and the port associated is also. Feel free to change // | ||
+ | |||
+ | Also, I start my ports at some weird number. VNC defaults to 5900, but I'm making the base 5950 in this example. That all but guarantees I will not conflict if I'm using port forwarding on the workstation to get someplace else. | ||
+ | |||
+ | ===== Restart ===== | ||
+ | |||
+ | I'm sure there is some set of steps I can go through to reset slim to lightdm, and I know you can tell xinetd to reset with <code bash> | ||
+ | |||
+ | ===== Test ===== | ||
+ | |||
+ | Make a connection with the command <code bash> | ||
+ | |||
+ | ===== Going from here ===== | ||
+ | |||
+ | Add users to the terminal server the normal way (adduser as root), then modify / | ||
+ | |||
+ | Also, note that the parameters I documented here are not anywhere near the full range of parameters the server accepts. See [[https:// | ||
+ | |||
+ | Remember, this is just one way of doing it. You can vary what I've done here by not using the stanza' | ||
+ | |||
+ | Have fun! |
unix/linux/debian/terminalserver.1721706499.txt.gz · Last modified: 2024/07/22 22:48 by rodolico