I wanted to clean up my tmp directory. So I went to the /tmp directory and did sudo rm -r * in /tmp. But now I get error messages when I open an application.
For instance, when I try to open nautilus I get:
(nautilus:22457): Eel-WARNING **: GConf error:
Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See [GConf configuration system](http://www.gnome.org/projects/gconf/) for information. (Details - 1: Server ping error: IDL:omg.org/CORBA/COMM_FAILURE:1.0)
(nautilus:22457): Eel-WARNING **: GConf error:
Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See [GConf configuration system](http://www.gnome.org/projects/gconf/) for information. (Details - 1: Server ping error: IDL:omg.org/CORBA/COMM_FAILURE:1.0)
GConf warning: failure listing pairs in `/apps/nautilus/preferences': Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See [GConf configuration system](http://www.gnome.org/projects/gconf/) for information. (Details - 1: Server ping error: IDL:omg.org/CORBA/COMM_FAILURE:1.0)
(nautilus:22457): Eel-WARNING **: GConf error:
Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See [GConf configuration system](http://www.gnome.org/projects/gconf/) for information. (Details - 1: Server ping error: IDL:omg.org/CORBA/COMM_FAILURE:1.0)
and a bunch of other errors.
Similar things happen when I try to open yast:
An error occurred while loading or saving configuration information for GNOME SuperUser. Some of your configuration settings may not work properly.
Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://www.gnome.org/projects/gconf/ for information. (Details - 1: Server ping error: IDL:omg.org/CORBA/COMM_FAILURE:1.0)
Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://www.gnome.org/projects/gconf/ for information. (Details - 1: Server ping error: IDL:omg.org/CORBA/COMM_FAILURE:1.0)
Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://www.gnome.org/projects/gconf/ for information. (Details - 1: Server ping error: IDL:omg.org/CORBA/COMM_FAILURE:1.0)
Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://www.gnome.org/projects/gconf/ for information. (Details - 1: Server ping error: IDL:omg.org/CORBA/COMM_FAILURE:1.0)
Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://www.gnome.org/projects/gconf/ for information. (Details - 1: Server ping error: IDL:omg.org/CORBA/COMM_FAILURE:1.0)
Yes, you better do not do this as long as users are loged in, or even other programs are running. A perfect time to do this is at boot (not very helpfull if you do not reboot for over a year of course) when almost nothing runs. And a perfect place to configure this is with YaST > System > etc/sysconfig editor. In there goto System > Cron. There you find variables like CLEAR_TEMP_DIRS_AT_BOOTUP, TMP_DIRS_TO_CLEAN, MAX_DAYS_IN_TMP and more. Here you can define the behaviour you like to keep your /tmp tidy. It is done by a cron run at boot.
As suggested by hcw, for most desktop users, typically, you just need to set the value of MAX_DAYS_IN_TMP to “3” will do.
This means that that your temp files will be removed if they are 3 days old. (cron will do this trick).
You need to be careful if you are in a server environment and you have long running programs (or services) that may create temp files for longer sessions.
Yes you can. They are older log files (the log rotates every so many time, or on a reboot). As long as you do not think you need to search logging long ago (you can see the creation dates/times that the file was closed) you can savely rm them
No, none were symlinks. (Anyway, I ‘rm’ and 'rm -r’ed them “by hand”.)
Maybe the selection is based on the “last accessed” timestamp instead of the “last modified” timestamp ? (I’ve checked some of the old files that are left in /tmp and they have been accessed recently, mostly yesterday.)
(Wow, I’ve just spotted that there are a LOT of files in /tmp/orbit-…/ directories as well. )