MX & MEPIS Community Forum

Linux operating systems based on Debian Stable
View unanswered posts | View unsolved topics | View active topics |



Reply to topic  [ 26 posts ]  Go to page 1, 2, 3  Next
I'm In Need of a Null Directory 
Author Message
Forum Veteran
Forum Veteran
User avatar

Joined: Mon Feb 12, 2007 1:45 pm
Posts: 5738
Location: Penn's Woods
Has thanked: 837 times
Have thanks: 680 times
Post # 298293
Post I'm In Need of a Null Directory  [Solved]
I would like to create a null directory similar to /dev/null that I could symlink to the ~/.thumbnails/large and ~/.thumbnails/normal directories. Over the course of a day, Dolphin fills both of these directories with garbage. I tried changing permissions to make them read-only, but then my ~/.xsession-errors file fills up as Dolphin repeatedly tries to write to read-only directories.

My aim is to let Dolphin write to ~/.thumbnails directories, but make both of them black holes. Does anyone have a suggestion on how to do this?

_________________
MX-14; 3.12-0.bpo.1-686-pae kernel using 4GB RAM
2.4GHz AMD Athlon 4600+
NVidia GeForce 6150 LE; 304.121 Display Driver
You didn't slow down because you're old; you're old because you slowed down.


Thu Apr 05, 2012 7:50 pm
Profile
Forum Guide
Forum Guide
User avatar

Joined: Mon Jun 30, 2008 8:06 pm
Posts: 2952
Has thanked: 52 times
Have thanks: 376 times
Post # 298300
Post Re: I'm In Need of a Null Directory
symlink the large and normal directories to /dev/null might work...

EDIT: if you have THAT MANY files being added to these directories, setting these to some black hole like /dev/null or something similar may result in a performance hit.

using a tool like bleachbit, like rich suggested, may well be the better option


Last edited by GoManutd on Thu Apr 05, 2012 9:29 pm, edited 1 time in total.



Thu Apr 05, 2012 9:03 pm

GoManutd thanked by: joany
Profile
Administrator
User avatar

Joined: Wed Jul 12, 2006 2:17 pm
Posts: 10964
Location: Rochester NY
Has thanked: 898 times
Have thanks: 1566 times
Post # 298303
Post Re: I'm In Need of a Null Directory
Off topic, but I use bleachbit to delete the .thumbnail directories on a regular basis, along with other crud that builds up.

_________________
Forum Rules
Guide - How to Ask for Help
Link to Wiki
Rich

Acer Laptop V5-572G: Intel i5, 12 GIG mem, nVidia GT720M/Intel integrated graphics
MX-14.3
Kubuntu 14.10, KDE 4.14.1
Virtualbox: Windows 7


Thu Apr 05, 2012 9:11 pm
Profile
Forum Regular
Forum Regular
User avatar

Joined: Sat Jul 15, 2006 4:47 am
Posts: 298
Has thanked: 47 times
Have thanks: 20 times
Post # 298311
Post Re: I'm In Need of a Null Directory
I just used Bleachbit, only to find that most web sites (using Seamonkey) then visited failed to load graphics. Logging off and on again immediately solved that.

_________________
Asus K55A i7 laptop 6GB RAM, 500GB SATA HDD, turbo-boost 3.1Ghz::
Win7 64 bit - eek!::
Intel graphics, UEFI and GPT::
HP Deskjet 3050 wireless::
Image


Fri Apr 06, 2012 6:39 am
Profile
Administrator
User avatar

Joined: Wed Jul 12, 2006 2:17 pm
Posts: 10964
Location: Rochester NY
Has thanked: 898 times
Have thanks: 1566 times
Post # 298312
Post Re: I'm In Need of a Null Directory
matelot wrote:
I just used Bleachbit, only to find that most web sites (using Seamonkey) then visited failed to load graphics. Logging off and on again immediately solved that.

Bleachbit is highly configurable. Apparently an option was enabled that caused your issue. Not sure which, one, maybe browser cache.

_________________
Forum Rules
Guide - How to Ask for Help
Link to Wiki
Rich

Acer Laptop V5-572G: Intel i5, 12 GIG mem, nVidia GT720M/Intel integrated graphics
MX-14.3
Kubuntu 14.10, KDE 4.14.1
Virtualbox: Windows 7


Fri Apr 06, 2012 6:41 am
Profile
Forum Veteran
Forum Veteran
User avatar

Joined: Mon Feb 12, 2007 1:45 pm
Posts: 5738
Location: Penn's Woods
Has thanked: 837 times
Have thanks: 680 times
Post # 298314
Post Re: I'm In Need of a Null Directory
GoManutd wrote:
symlink the large and normal directories to /dev/null might work...

EDIT: if you have THAT MANY files being added to these directories, setting these to some black hole like /dev/null or something similar may result in a performance hit.

using a tool like bleachbit, like rich suggested, may well be the better option

I set up symlinks to /dev/null and that seems to work, although I'm a little leery about changing the attributes from directories to files. I'll keep a close eye on ~/.xsession-errors to see if errors pile up as a result.

EDIT:

Duplicate copies of the same .png files pile up in the ~/.thumbnails directories, causing them to bloat beyond reason. This seems totally pointless, and performance doesn't suffer by defeating this. I believe ~/.thumbnails is a carry-over from the time when computers were slow and RAM was limited. With today's fast, modern computers with huge RAM capacities, it just isn't necessary to cache image files this way.

I used bleachbit once, and my desktop immediately became unstable. Restoring partition images of /home and / fixed the problem, but I don't want to repeat that experience.

_________________
MX-14; 3.12-0.bpo.1-686-pae kernel using 4GB RAM
2.4GHz AMD Athlon 4600+
NVidia GeForce 6150 LE; 304.121 Display Driver
You didn't slow down because you're old; you're old because you slowed down.


Last edited by joany on Fri Apr 06, 2012 8:41 am, edited 1 time in total.



Fri Apr 06, 2012 7:36 am
Profile
Administrator
User avatar

Joined: Wed Jul 12, 2006 2:17 pm
Posts: 10964
Location: Rochester NY
Has thanked: 898 times
Have thanks: 1566 times
Post # 298315
Post Re: I'm In Need of a Null Directory
joany wrote:
GoManutd wrote:
symlink the large and normal directories to /dev/null might work...

EDIT: if you have THAT MANY files being added to these directories, setting these to some black hole like /dev/null or something similar may result in a performance hit.

using a tool like bleachbit, like rich suggested, may well be the better option

I set up symlinks to /dev/null and that seems to work, although I'm a little leery about changing the attributes from directories to files. I'll keep a close eye on ~/.xsession-errors to see if errors pile up as a result.

I used bleachbit once, and my desktop immediately became unstable. Restoring partition images of /home and / fixed the problem, but I don't want to repeat that experience.

Never had an issue with bleachbit running as user or root.

_________________
Forum Rules
Guide - How to Ask for Help
Link to Wiki
Rich

Acer Laptop V5-572G: Intel i5, 12 GIG mem, nVidia GT720M/Intel integrated graphics
MX-14.3
Kubuntu 14.10, KDE 4.14.1
Virtualbox: Windows 7


Fri Apr 06, 2012 7:58 am
Profile
Forum Veteran
Forum Veteran
User avatar

Joined: Mon Feb 12, 2007 1:45 pm
Posts: 5738
Location: Penn's Woods
Has thanked: 837 times
Have thanks: 680 times
Post # 298316
Post Re: I'm In Need of a Null Directory
richb wrote:
Never had an issue with bleachbit running as user or root.

Users' experiences are somewhat mixed, as doing a search on "bleachbit" in these forums shows.

_________________
MX-14; 3.12-0.bpo.1-686-pae kernel using 4GB RAM
2.4GHz AMD Athlon 4600+
NVidia GeForce 6150 LE; 304.121 Display Driver
You didn't slow down because you're old; you're old because you slowed down.


Fri Apr 06, 2012 8:46 am
Profile
Administrator
User avatar

Joined: Wed Jul 12, 2006 2:17 pm
Posts: 10964
Location: Rochester NY
Has thanked: 898 times
Have thanks: 1566 times
Post # 298318
Post Re: I'm In Need of a Null Directory
joany wrote:
richb wrote:
Never had an issue with bleachbit running as user or root.

Users' experiences are somewhat mixed, as doing a search on "bleachbit" in these forums shows.

I suspect it is what options one chooses to enable. Some are quite draconian in "cleaning". And I would agree if you enable an option that may cause serious issues the application is not that safely used.

Keep us posted on the result of your /dev/null solution. I dislike the buildup of those thumbnail files as well and a different solution would be welcome.

_________________
Forum Rules
Guide - How to Ask for Help
Link to Wiki
Rich

Acer Laptop V5-572G: Intel i5, 12 GIG mem, nVidia GT720M/Intel integrated graphics
MX-14.3
Kubuntu 14.10, KDE 4.14.1
Virtualbox: Windows 7


Fri Apr 06, 2012 8:52 am
Profile
Forum Veteran
Forum Veteran
User avatar

Joined: Wed Jul 12, 2006 2:26 pm
Posts: 7348
Has thanked: 408 times
Have thanks: 2426 times
Post # 298321
Post Re: I'm In Need of a Null Directory
You might create a simple script to remove files in the ~/.thumbnails/large & ~/.thumbnails/normal directories (like the one below) and have it run as a cron job at whatever interval you want (daily, hourly, every 15 minutes, etc).

Code:
#!/bin/bash

rm  ~/.thumbnails/large/*
rm  ~/.thumbnails/normal/*


I don't have that much experience in setting up cron jobs but it doesn't look too difficult. I found one guide here: http://www.cyberciti.biz/faq/how-do-i-a ... unix-oses/. Btw, is there a KDE4 program for creating/managing cron jobs?


Fri Apr 06, 2012 9:24 am

kmathern thanked by: richb
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 26 posts ]  Go to page 1, 2, 3  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.