[X2Go-User] x2go server on debian: readonly partition
richard lucassen
mailinglists at lucassen.org
Mon May 2 09:20:26 CEST 2022
On Mon, 2 May 2022 08:44:34 +0530
Vikas Rawal <vikasrawal at gmail.com> wrote:
> > To mitigate the issue, I would suggest using tmpfs for /tmp - RAM
> > does not wear out.
>
> Could one specify where x2go keeps its tmp files? In that case, a
> separate tmpfs mount for it would solve the problem. Unless keeping
> all of /tmp on a tmpfs is recommended.
As said before, x2gocleansessions writes 4 files to /tmp each 2 seconds.
What I did is add a TMPDIR variable to the shell init script (I run
sysV):
/etc/init.d/x2goserver
mkdir -p -m 700 /tmp/x2go
export TMPDIR=/tmp/x2go
The reason I use a subdir on /tmp is that if you write in /tmp the /tmp
dir itself is modified (run 'stat /tmp/') and now everything takes
place on a ramdisk.
And /tmp/ runs on tmpfs in /etc/fstab:
tmpfs /tmp tmpfs defaults 0 0
Maybe you may want to create a wrapper script in case you do not run
sysV.
R.
--
richard lucassen
https://contact.xaq.nl/
More information about the x2go-user
mailing list