KDE and /tmp

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

KDE and /tmp

Postby sez » Fri Jun 14, 2013 20:06

Hi,

I think there's a configuration issue with KDE in Sabayon that's hopefully easy to solve. On the announcement for the latest Sabayon, there's this statement:

/tmp is now mounted on a very small tmpfs with nodev,noexec,nosuid options by default for greater security. Some exotic programs that insist on writing to /tmp may fail to run and they should be fixed upstream. Writing to /tmp is bad, and you should not use any software that behaves like this.


Unfortunately, it seems that one of the supported desktops, KDE, behaves like this. I was poking through System Settings and trying to install different splash screens, plasma themes, etc, and it seems that KDE downloads these into /tmp before unpacking them. I kept running out of space on /tmp trying to install a simple theme.

I'm thinking that there must be some way to tell KDE to use a different directory for /tmp, but I haven't been able to figure out how. Does anybody know how to do this? And if we can figure this out, probably it should be set as the default for new Sabayon installations, so that new users don't run into this.

Does anybody have an idea how to redirect KDE's use of /tmp to somewhere else? I was thinking $USER/tmp might be a good place.

Thanks!
sez
Baby Hen
 
Posts: 13
Joined: Tue Mar 06, 2012 16:57

Re: KDE and /tmp

Postby dunsurfin » Sun Jun 16, 2013 19:55

I can't answer your question but I dealt with the issue by editing /etc/fstab

http://forum.sabayon.org/viewtopic.php?f=57&t=30066
Self-righteousness is a loud din raised to drown the voice of guilt within us - Eric Hoffer

Don't believe what it says on the right - I am anything but sagely; More oniony!
dunsurfin
Sagely Hen
 
Posts: 1333
Joined: Sun Jan 07, 2007 21:38
Location: Newcastle upon Tyne UK

Re: KDE and /tmp

Postby sez » Tue Jun 18, 2013 17:49

Yeah; I did the same thing, but I don't think that's the "Sabayon" way. I looked at the configuration of my work machine (running Netrunner, based on Kubuntu), and saw that I have various symlinks in my .kde folder:

cache-[hostname] -> /var/tmp/kdecache-[user name]
socket-[hostname] -> /var/tmp/ksocket-[user name]
tmp-[hostname] -> /var/tmp/kde-[user name]

All three folders in /var/tmp have stuff in them. So I started googling, and I found this:

http://techbase.kde.org/KDE_System_Admi ... rary_Files

I created one of the symlinks and rebooted, but it doesn't look like any files are being created in /var/tmp/kde-[user name]. But I think I'm on the right track.

I respectfully suggest that perhaps whatever KDE configuration exists in other distros to redirect /tmp over to /var/tmp needs to be done for Sabayon, especially if Sabayon wants to restrict the size of /tmp.
sez
Baby Hen
 
Posts: 13
Joined: Tue Mar 06, 2012 16:57

Re: KDE and /tmp

Postby manifesto » Tue Jun 18, 2013 22:23

On mine I have :
Code: Select all
sabayon ~ # ls /var/tmp
alsaconf.cards  binpkgs  emerge-webrsync  entropy  kdecache-kdm  kdecache-pierre  kdecache-root

Sockets are in /tmp but this dont take space.
in home dir (.kde4) :
On mine I have :
I did not tune anything and I have many of this links (for all distros I share home dir with ):
Code: Select all
lrwxrwxrwx 1   15 21 févr. 20:26 tmp-calculate -> /tmp/kde-pierre
lrwxrwxrwx 1   15 21 oct.   2012 tmp-linux-59at.site -> /tmp/kde-pierre
lrwxrwxrwx 1   15 23 mai   20:52 tmp-localhost -> /tmp/kde-pierre
lrwxrwxrwx 1   15 24 oct.   2012 tmp-archx64 -> /tmp/kde-pierre
lrwxrwxrwx 1   15 25 avril 01:26 tmp-manjarox64 -> /tmp/kde-pierre
lrwxrwxrwx 1   15 26 sept.  2012 tmp-sabayon -> /tmp/kde-pierre
lrwxrwxrwx 1   15 28 sept.  2012 tmp-bootstrap -> /tmp/kde-pierre
lrwxrwxrwx 1   15 31 janv. 23:28 tmp-Rosa64 -> /tmp/kde-pierre
lrwxrwxrwx 1   19 14 avril  2012 socket-sabayon -> /tmp/ksocket-pierre
lrwxrwxrwx 1   19 15 mai    2012 socket-bootstrap -> /tmp/ksocket-pierre
lrwxrwxrwx 1   19 18 juil.  2012 socket-chakra-x64 -> /tmp/ksocket-pierre
lrwxrwxrwx 1   19 21 févr. 20:26 socket-calculate -> /tmp/ksocket-pierre
lrwxrwxrwx 1   19 21 oct.   2012 socket-linux-59at.site -> /tmp/ksocket-pierre
lrwxrwxrwx 1   19 23 mai   20:52 socket-localhost -> /tmp/ksocket-pierre
lrwxrwxrwx 1   19 24 oct.   2012 socket-archx64 -> /tmp/ksocket-pierre
lrwxrwxrwx 1   19 25 avril 01:26 socket-manjarox64 -> /tmp/ksocket-pierre
lrwxrwxrwx 1   19 31 janv. 23:28 socket-Rosa64 -> /tmp/ksocket-pierre
lrwxrwxrwx 1   24 21 févr. 20:26 cache-calculate -> /var/tmp/kdecache-pierre
lrwxrwxrwx 1   24 21 oct.   2012 cache-linux-59at.site -> /var/tmp/kdecache-pierre
lrwxrwxrwx 1   24 23 mai   20:52 cache-localhost -> /var/tmp/kdecache-pierre
lrwxrwxrwx 1   24 24 oct.   2012 cache-archx64 -> /var/tmp/kdecache-pierre
lrwxrwxrwx 1   24 25 avril 01:26 cache-manjarox64 -> /var/tmp/kdecache-pierre
lrwxrwxrwx 1   24 26 sept.  2012 cache-sabayon -> /var/tmp/kdecache-pierre
lrwxrwxrwx 1   24 28 sept.  2012 cache-bootstrap -> /var/tmp/kdecache-pierre
lrwxrwxrwx 1   24 31 janv. 23:28 cache-Rosa64 -> /var/tmp/kdecache-pierre
manifesto
Growing Hen
 
Posts: 167
Joined: Mon Jul 19, 2010 22:21

Re: KDE and /tmp

Postby sez » Wed Jun 19, 2013 0:31

Well, the only difference I can think of is that I have Sabayon only on this machine, and no other distro. If you're sharing a home dir with other distros, maybe one of them created the symlinks?
sez
Baby Hen
 
Posts: 13
Joined: Tue Mar 06, 2012 16:57

Re: KDE and /tmp

Postby manifesto » Wed Jun 19, 2013 8:56

As you can see the links do include the hostname with says which OS did what.
If you check further on the kde doc you can see :
Code: Select all
Cache Files
Symlink: $KDEHOME/cache-$HOSTNAME
Default destination: /var/tmp/kdecache-$USER/

which looks relevant of the situation I am in.
I checked on another PC with gentoo and it is same situation.
manifesto
Growing Hen
 
Posts: 167
Joined: Mon Jul 19, 2010 22:21


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 3 guests