If you're like me, you have some pictures that would best not be stored unencrypted in your thumbnails dir. So here's a way to make Ubuntu keep thumbnails in RAM instead of on the disk.
Run:
Code:
rm -r ~/.thumbnails/*
To clear out your thumbnail dir, then run
Code:
gksu gedit /etc/rc.local
Method 1 (Using a RAM Disk with Fixed/Limited Storage)
Now paste this before the "exit 0"
Code:
/sbin/mke2fs -q -m 0 /dev/ram0
/bin/mount /dev/ram0 /home/username/.thumbnails
/bin/chmod 777 /home/username/.thumbnails
/bin/chmod +t /home/username/.thumbnails
/etc/init.d/gdm restart
Save... exit.
Since this method has limited storage, if you don't restart for a long time, the dir may fill up and Nautilus will stop making new thumbnails. The simple way to fix this is to run
Code:
rm -r ~/.thumbnails/*
Method 2 (Using Shared Memory with No Limit)
Now paste this before the "exit 0"
Code:
mkdir /dev/shm/thumbnails
Save... exit.
Now run
Code:
mkdir /dev/shm/thumbnails && rm -r ~/.thumbnails && ln -s /dev/shm/thumbnails/ /home/username/.thumbnails
Since this method has no limit on storage, it will keep making thumbnails until you run out of RAM. This shouldn't really be a problem unless you *never* restart.
Now obviously you have to replace "username" with your own name in all the commands.
Once you've completed the steps, restart.
There you go, you should now have no worries about anyone seeing what kind of pictures/videos you've been watching.
Bookmarks