Go to page | 1 2 3  Next
 Post subject: Log files/directories in ~/tmp in 2009.1
PostPosted: Thu Nov 05, 2009 7:52 am 
   
I am getting these kind of directories in ~/tmp:

~/tmp/virtual-charlie.3HNF1Z

I am also getting files like this in ~/tmp:

4ab02852955a7

Which contains:

PPD-Adobe: "4.3"
*%
*% For information on using this, and to obtain the required backend
*% script, consult http://www.linuxprinting.org/
*%
*% This file is published under the GNU General Public License
*%
*% PPD-O-MATIC (3.0.0 or newer) generated this PPD file. It is for use
with


Any idea what I can do to have these generated in /tmp instead of ~/tmp?
Also when they are moved to /tmp will they be deleted as necessary when
old?

Thanks in advance,
Charlie


 
 Post subject: Re: Log files/directories in ~/tmp in 2009.1
PostPosted: Thu Nov 05, 2009 7:52 am 
On Wed, 04 Nov 2009 18:52:19 -0500, Charlie wrote:
Quote:
~/tmp/virtual-charlie.3HNF1Z

I am also getting files like this in ~/tmp:

Sounds like you may have been playing with some environment
variables. Check by doing a
env | grep -i $USER/tmp

Quote:
Any idea what I can do to have these generated in /tmp instead of ~/tmp?

Maybe, maybe not.

Quote:
Also when they are moved to /tmp will they be deleted as necessary when
old?

No idea about anything which cleans out based on age of file.

Only variables I know of controlling where temp files are created are
the ones I set in my global environment. I like placing the files in
~/tmp so that .bash_logout can clean them out upon logout.

export TMP=$HOME/tmp
export TMPDIR=$TMP
export TEMP=$TMP

export GCONF_TMPDIR=$TMPDIR
export KDETMP=$TMP
export KDEVARTMP=$TMPDIR


 
 Post subject: Re: Log files/directories in ~/tmp in 2009.1
PostPosted: Thu Nov 05, 2009 7:52 am 
On Wed, 04 Nov 2009 19:55:32 -0500, Charlie wrote:
Quote:
Here is what I get:

[charlie@localhost ~]$ env | grep -i $USER/tmp
TMPDIR=/home/charlie/tmp
SCREENDIR=/home/charlie/tmp
TMP=/home/charlie/tmp

Well there you are, TMPDIR and TMP point to your ~/tmp
I have no knowledge about which app(s) uses SCREENDIR

Quote:
Maybe my .bash_logout is not doing it's job? My .bash_logout only has 1
line:

# ~/.bash_logout

clear

Looks normal.

Quote:
Any ideas?

About what? You want .bash_logout to clean $HOME/tmp, add

/bin/rm -fr $HOME/tmp/*

As for TMPDIR, SCREENDIR, TMP, need to find where you set them or you
can try unset to clear the environment variables.


 
 Post subject: Re: Log files/directories in ~/tmp in 2009.1
PostPosted: Thu Nov 05, 2009 7:52 am 
On Wed, 04 Nov 2009 20:27:43 -0500, Charlie wrote:
Quote:
Unless I fat fingered something somewhere I don't remember setting these. I
don't normally mess with the environment variables. It should be a standard
install. Should these point to /tmp instead of ~/tmp?

I just booted 2009.1 and those are automagically set for you.

Just a reminder, /tmp is not going to be cleaned out unless you have
made some kind of system adjustment.

Quote:
I looked at .bash_profile and tmp isn't mentioned there. What other files
should I look in?

Depends on how you login, Gui login or startx, type of desktop manager,...

Typical Non-gui login order of execution is
/etc/profile which sources /etc/profile.d/*.sh scripts
~/.bash_profile which sources ~/.bashrc
~/.bashrc sources /etc/bashrc

Normal startx on Mandriva kdm for kde.

sysclientrc=/etc/X11/xinit/xinitrc
sysserverrc=/etc/X11/xinit/xserverrc


xinit $clientargs -- $serverargs
exec /etc/X11/Xsession $*
sets language, merges in X resources from
sysresources=/etc/X11/Xresources
userresources=$HOME/.Xresources
userresources2=$HOME/.Xdefaults
set /etc/sysconfig/desktop
DISPLAYMANAGER=kdm
DESKTOP=KDE4
for i in /etc/X11/xinit.d/*


Then of course there is

/etc/xdg/autostart, /usr/share/autostart,
/etc/X11/xinit.d, /etc/X11/Xsession, /etc/X11/Xsession.d


 
 Post subject: Re: Log files/directories in ~/tmp in 2009.1
PostPosted: Thu Nov 05, 2009 7:52 am 
On Wed, 04 Nov 2009 21:37:36 -0500, Charlie wrote:
Quote:
I autologin to kde on startup. I found an option to clean /tmp on boot in
the Control Center (boot->setup->advanced)

If I am not mistaken, that puts tmp in ram. Fill up that tmp space and
your system gets slower when having to use swap to disk.

Quote:
however getting these
files/directories to appear in /tmp instead of ~/tmp seem difficult.

Not that hard if you use your own environment setup file.

Quote:
I guess there is no setting in the Control Center to do this?

That is correct.

I created /etc/profile.d/xx_local.sh to set my own environment
In your case you would click up a terminal, su - root
cat > /etc/profile.d/xx_local.sh
#!/bin/bash
export TMP=/tmp
export TMPDIR=/tmp

Ctl+d <------- that is a control and d key to close the cat command.


chmod +x /etc/profile.d/xx_local.sh

Next login should show those environment variables set to /tmp.

You still have the problem of cleaning /tmp instead of ~/tmp


 
 Post subject: Re: Log files/directories in ~/tmp in 2009.1
PostPosted: Thu Nov 05, 2009 8:55 am 
Bit Twister wrote:

Quote:
On Wed, 04 Nov 2009 18:52:19 -0500, Charlie wrote:

~/tmp/virtual-charlie.3HNF1Z

I am also getting files like this in ~/tmp:

Sounds like you may have been playing with some environment
variables. Check by doing a
env | grep -i $USER/tmp

Here is what I get:

[charlie@localhost ~]$ env | grep -i $USER/tmp
TMPDIR=/home/charlie/tmp
SCREENDIR=/home/charlie/tmp
TMP=/home/charlie/tmp


Quote:
Any idea what I can do to have these generated in /tmp instead of ~/tmp?

Maybe, maybe not.

Also when they are moved to /tmp will they be deleted as necessary when
old?

No idea about anything which cleans out based on age of file.

Only variables I know of controlling where temp files are created are
the ones I set in my global environment. I like placing the files in
~/tmp so that .bash_logout can clean them out upon logout.

export TMP=$HOME/tmp
export TMPDIR=$TMP
export TEMP=$TMP

export GCONF_TMPDIR=$TMPDIR
export KDETMP=$TMP
export KDEVARTMP=$TMPDIR

Maybe my .bash_logout is not doing it's job? My .bash_logout only has 1
line:

# ~/.bash_logout

clear

Any ideas?


 
 Post subject: Re: Log files/directories in ~/tmp in 2009.1
PostPosted: Thu Nov 05, 2009 9:27 am 
Bit Twister wrote:

Quote:
On Wed, 04 Nov 2009 19:55:32 -0500, Charlie wrote:

Here is what I get:

[charlie@localhost ~]$ env | grep -i $USER/tmp
TMPDIR=/home/charlie/tmp
SCREENDIR=/home/charlie/tmp
TMP=/home/charlie/tmp

Well there you are, TMPDIR and TMP point to your ~/tmp
I have no knowledge about which app(s) uses SCREENDIR


Maybe my .bash_logout is not doing it's job? My .bash_logout only has 1
line:

# ~/.bash_logout

clear

Looks normal.

Any ideas?

About what? You want .bash_logout to clean $HOME/tmp, add

/bin/rm -fr $HOME/tmp/*

As for TMPDIR, SCREENDIR, TMP, need to find where you set them or you
can try unset to clear the environment variables.

Unless I fat fingered something somewhere I don't remember setting these. I
don't normally mess with the environment variables. It should be a standard
install. Should these point to /tmp instead of ~/tmp?

I looked at .bash_profile and tmp isn't mentioned there. What other files
should I look in?


 
 Post subject: Re: Log files/directories in ~/tmp in 2009.1
PostPosted: Thu Nov 05, 2009 10:37 am 
Bit Twister wrote:

Quote:
On Wed, 04 Nov 2009 20:27:43 -0500, Charlie wrote:

Unless I fat fingered something somewhere I don't remember setting these.
I don't normally mess with the environment variables. It should be a
standard install. Should these point to /tmp instead of ~/tmp?

I just booted 2009.1 and those are automagically set for you.

Just a reminder, /tmp is not going to be cleaned out unless you have
made some kind of system adjustment.

I looked at .bash_profile and tmp isn't mentioned there. What other files
should I look in?

Depends on how you login, Gui login or startx, type of desktop manager,...

Typical Non-gui login order of execution is
/etc/profile which sources /etc/profile.d/*.sh scripts
~/.bash_profile which sources ~/.bashrc
~/.bashrc sources /etc/bashrc

Normal startx on Mandriva kdm for kde.

sysclientrc=/etc/X11/xinit/xinitrc
sysserverrc=/etc/X11/xinit/xserverrc


xinit $clientargs -- $serverargs
exec /etc/X11/Xsession $*
sets language, merges in X resources from
sysresources=/etc/X11/Xresources
userresources=$HOME/.Xresources
userresources2=$HOME/.Xdefaults
set /etc/sysconfig/desktop
DISPLAYMANAGER=kdm
DESKTOP=KDE4
for i in /etc/X11/xinit.d/*


Then of course there is

/etc/xdg/autostart, /usr/share/autostart,
/etc/X11/xinit.d, /etc/X11/Xsession, /etc/X11/Xsession.d

I autologin to kde on startup. I found an option to clean /tmp on boot in
the Control Center (boot->setup->advanced) however getting these
files/directories to appear in /tmp instead of ~/tmp seem difficult. I guess
there is no setting in the Control Center to do this?


 
 Post subject: Re: Log files/directories in ~/tmp in 2009.1
PostPosted: Thu Nov 05, 2009 2:56 pm 
On Thu, 05 Nov 2009 15:12:47 +0100, Aragorn wrote:
Quote:
I believe that in Mandriva - at least, it used to be like that in the
older Mandrake releases

I just checked 10.1, 2008.1, 2009.0, 2009.1 and 2010.0 and none of the
-free- installs have ~/tmp as links in /etc/skel or user account.


 
 Post subject: Re: Log files/directories in ~/tmp in 2009.1
PostPosted: Thu Nov 05, 2009 3:43 pm 
Charlie writes:

Quote:
I am getting these kind of directories in ~/tmp:

~/tmp/virtual-charlie.3HNF1Z

I am also getting files like this in ~/tmp:

4ab02852955a7

Which contains:

Probably files you downloaded with your browser.


Quote:
PPD-Adobe: "4.3"
*%
*% For information on using this, and to obtain the required backend
*% script, consult http://www.linuxprinting.org/
*%
*% This file is published under the GNU General Public License
*%
*% PPD-O-MATIC (3.0.0 or newer) generated this PPD file. It is for use
with


Quote:
Any idea what I can do to have these generated in /tmp instead of ~/tmp?
Also when they are moved to /tmp will they be deleted as necessary when
old?

Thanks in advance,
Charlie


 
Go to page | 1 2 3  Next





SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list
  0x61.com 2009-2010 - Internet Forums and much more!