[X2Go-User] Change TMPDIR from /tmp to /app

2022-02-03 Thread Sherry Leithner
x2go creates large files in /tmp/.x2go-username when a session is saved. This 
is causing us difficulty because /tmp is filling up and no users can log in. 
Our /tmp directory is too small and I don't have access to increase it. We need 
to change the default tmp directory from /tmp to /app.

I have set TMPDIR in my .profile, /etc/profile and also in /etc/x2go/Xsession 
to /app

.profile
 export TMPDIR=/app/

Xsession variables

initialize variables for use by all session scripts
OPTIONFILE=/etc/x2go/Xsession.options

SYSRESOURCES=/etc/x2go/Xresources

USRRESOURCES=$HOME/.Xresources-x2go

SYSSESSIONDIR=/etc/x2go/Xsession.d

USERXSESSION=$HOME/.xsession-x2go

USERXSESSIONRC=$HOME/.xsessionrc-x2go

ALTUSERXSESSION=$HOME/.Xsession-x2go

ERRFILE="${HOME}/.xsession-x2go-${cur_hostname}-errors"

TMPDIR=/app

The session still creates the tmp files in /tmp

The x2go process which is running:

leithner 16137 1 0 11:23 ? 00:00:00 sshfs -o 
idmap=user,uid=1007,gid=1001,default_permissions,ServerAliveInterval=300,IdentityFile=/home/leithner/.x2go/ssh/key.p14092,UserKnownHostsFile=/home/leithner/.x2go/ssh/key.p14092.ident
 SLeithne@127.0.0.1:/cygdrive/C/Users/SLeithne/X2GO~1/S-2E61~1/spool 
/tmp/.x2go-leithner/spool/C-leithner-50-1643045018_stDXFCE_dp32 -p 50660

leithner@entrada:/app$ echo $TMPDIR
 /app

Where should I be changing this variable? Can it be changed?

Thank you for any help.

Sherry Leithner
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user


Re: [X2Go-User] Change TMPDIR from /tmp to /app

2022-01-27 Thread Ulrich Sibiller
On Thu, Jan 27, 2022 at 3:17 PM Sherry Leithner
 wrote:
>
> x2go creates large files in /tmp/.x2go-username when a session is saved. This 
> is causing us difficulty because /tmp is filling up and users cannot log in. 
> Our /tmp directory is too small and I don't have access to increase it 
> currently. We need to change the default tmp directory from /tmp to /app.

What do you mean by "large"? I currently have 25 sessions lying around
in /tmp and they are 14MB in total. The largest one is 6.4MB.  Is that
really a problem?

We had a bug a while ago where /tmp/.x2go-username/C-*/session.log
grew to some GB (see
https://www.mail-archive.com/x2go-user@lists.x2go.org/msg04107.html)
but this is fixed in the current release nx-libs 3.5.99.26.

Uli


>
> I have set TMPDIR in my .profile, /etc/profile  and also in 
> /etc/x2go/Xsession to /app
>
> .profile
> export TMPDIR=/app/
>
> Xsession variables
>
> initialize variables for use by all session scripts
> OPTIONFILE=/etc/x2go/Xsession.options
>
> SYSRESOURCES=/etc/x2go/Xresources
>
> USRRESOURCES=$HOME/.Xresources-x2go
>
> SYSSESSIONDIR=/etc/x2go/Xsession.d
>
> USERXSESSION=$HOME/.xsession-x2go
>
> USERXSESSIONRC=$HOME/.xsessionrc-x2go
>
> ALTUSERXSESSION=$HOME/.Xsession-x2go
>
> ERRFILE="${HOME}/.xsession-x2go-${cur_hostname}-errors"
>
> TMPDIR=/app
>
> The session still creates the tmp files in /tmp
>
> The x2go process which is running:
>
> leithner 16137 1 0 11:23 ? 00:00:00 sshfs -o 
> idmap=user,uid=1007,gid=1001,default_permissions,ServerAliveInterval=300,IdentityFile=/home/leithner/.x2go/ssh/key.p14092,UserKnownHostsFile=/home/leithner/.x2go/ssh/key.p14092.ident
>  SLeithne@127.0.0.1:/cygdrive/C/Users/SLeithne/X2GO~1/S-2E61~1/spool 
> /tmp/.x2go-leithner/spool/C-leithner-50-1643045018_stDXFCE_dp32 -p 50660
>
> leithner@entrada:/app$ echo $TMPDIR
>  /app
>
> Where should I be changing this variable? Can it be changed?
>
> Thank you for any help.
>
> Sincerely,
>
> Sherry Leithner
> Computer Systems Specialist
> Petroleum Abstracts
> At The University of Tulsa
> 918-631-3011
> Cell: 918-691-1738
> ___
> x2go-user mailing list
> x2go-user@lists.x2go.org
> https://lists.x2go.org/listinfo/x2go-user
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user


[X2Go-User] Change TMPDIR from /tmp to /app

2022-01-27 Thread Sherry Leithner
x2go creates large files in /tmp/.x2go-username when a session is saved. This 
is causing us difficulty because /tmp is filling up and users cannot log in. 
Our /tmp directory is too small and I don't have access to increase it 
currently. We need to change the default tmp directory from /tmp to /app.

I have set TMPDIR in my .profile, /etc/profile  and also in /etc/x2go/Xsession 
to /app

.profile
export TMPDIR=/app/

Xsession variables

initialize variables for use by all session scripts
OPTIONFILE=/etc/x2go/Xsession.options

SYSRESOURCES=/etc/x2go/Xresources

USRRESOURCES=$HOME/.Xresources-x2go

SYSSESSIONDIR=/etc/x2go/Xsession.d

USERXSESSION=$HOME/.xsession-x2go

USERXSESSIONRC=$HOME/.xsessionrc-x2go

ALTUSERXSESSION=$HOME/.Xsession-x2go

ERRFILE="${HOME}/.xsession-x2go-${cur_hostname}-errors"

TMPDIR=/app

The session still creates the tmp files in /tmp

The x2go process which is running:

leithner 16137 1 0 11:23 ? 00:00:00 sshfs -o 
idmap=user,uid=1007,gid=1001,default_permissions,ServerAliveInterval=300,IdentityFile=/home/leithner/.x2go/ssh/key.p14092,UserKnownHostsFile=/home/leithner/.x2go/ssh/key.p14092.ident
 SLeithne@127.0.0.1:/cygdrive/C/Users/SLeithne/X2GO~1/S-2E61~1/spool 
/tmp/.x2go-leithner/spool/C-leithner-50-1643045018_stDXFCE_dp32 -p 50660

leithner@entrada:/app$ echo $TMPDIR
 /app

Where should I be changing this variable? Can it be changed?

Thank you for any help.

Sincerely,

Sherry Leithner
Computer Systems Specialist
Petroleum Abstracts
At The University of Tulsa
918-631-3011
Cell: 918-691-1738
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user