this post was submitted on 20 Jul 2023
16 points (94.4% liked)

Linux

48082 readers
1270 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Hi,

My Linux knowledge is not great and I am configuring computers that should be used to connect to a remote server via Remmina only.

The goal is to enable the users to connect to the remote server and to restrict their interaction with the local OS.

I installed Ubuntu server and did the following configurations :

LVM partition, encrypted

sudo apt-get install remmina

sudo adduser *username*

Autologin of *username*
	sudo nano /etc/systemd/logind.conf
		NAutoVTs=6
		ReserveVT=7
	sudo mkdir /etc/systemd/system/[email protected]/
	sudo nano /etc/systemd/system/[email protected]/override.conf
		[Service]
		ExecStart=
		ExecStart=-/sbin/agetty --noissue --autologin *username* %I $TERM
		Type=idle

Install xinit
	sudo apt install xinit
	sudo nano /etc/X11/xinit/xinitrc
		setxkbmap -layout en
		exec remmina
		Comment ". /etc/X11/Xsession"

Auto startx
	nano .profile
	Add
		#StartX Autostart
		if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
		. startx
		logout
		fi

Hide cmdlines
	sudo nano /etc/default/grub
		Edit line
			GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
	sudo update-grub
	sudo nano /etc/default/grub.d/50-curtin-settings.cfg
		Add line
			GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
	sudo update-grub

It is working almost as it needs to but as I’m not experienced I’m wondering if my configuration is a good way of achieving my goal. Could I improve something ?

Ideally I want to restrict the users ability to change the configurations of Remmina but I didn’t find a good solution yet.

It is a bit slow to boot. Maybe some useless services are being started and I could disable them ? How could I know what services are not needed by Remmina and could be disabled ? Or would it be easier for me to use a minimal distribution like Arch ? Could I still apply my configuration steps or am I going to need to change everything ?

Thanks in advance for any insight.

top 6 comments
sorted by: hot top controversial new old
[–] [email protected] 12 points 1 year ago* (last edited 1 year ago)

Don't roll your own if you can help it, just use a distribution dedicated for use as a thin client. I was co-incidentally just looking into this last week and came across ThinStation which looks really good. There are other distro's too, search for "linux thin client".

[–] [email protected] 5 points 1 year ago (1 children)

What’s the use case here?

[–] [email protected] 3 points 1 year ago (1 children)

Employees who need to connect to a windows remote desktop.

[–] [email protected] 2 points 1 year ago

You could set their users up with non-power user access on the Windows host and that should be enough to keep them from accessing OS features or things they shouldn’t.

[–] [email protected] 1 points 1 year ago

I would just set it up with normal KDE with autologin and have the home directory deleted and recreated at boot.

Should they mess up anything, just tell them to reboot

[–] [email protected] 1 points 1 year ago

You should look into distros that do this specifically, they are called kiosks. There might be a way to configure your distro of choice to be a kiosk, it is definitely a solved problem.

load more comments
view more: next ›