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:
To clear out your thumbnail dir, then runCode:rm -r ~/.thumbnails/*
Method 1 (Using a RAM Disk with Fixed/Limited Storage)Code:gksu gedit /etc/rc.local
Now paste this before the "exit 0"
Save... exit.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
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
Method 2 (Using Shared Memory with No Limit)Code:rm -r ~/.thumbnails/*
Now paste this before the "exit 0"
Save... exit.Code:mkdir /dev/shm/thumbnails
Now run
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.Code:mkdir /dev/shm/thumbnails && rm -r ~/.thumbnails && ln -s /dev/shm/thumbnails/ /home/username/.thumbnails
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.![]()




Adv Reply




Bookmarks