With this script you can easily browse anonymously without having to trust the incognito mode of your browser which provides little protection against nosy websites such as Facebook.
First start a chromium session with the following command
user@host:$ chromium-browser --user-data-dir=$HOME/Vorlagen/anon_chrome
Chromium will now start a new session and store all the session data in $HOME/Vorlagen/anon_chrome (~/Vorlagen is the default template folder for the German Ubuntu version). Tweak your browser to your liking, install necessary extensions (Adblock) and close the browser. Do not ever use that data-dir ever again for for real browsing. You don’t want to have any kind of user session data in that directory. If you want to be sure issue a “$ chmod -R a-w $HOME/Vorlagen/anon_chrome” to prevent anyone from accidentally writing into that directory.
The following script will now create a copy of these user settings in /tmp and create a safe and anonymous browsing session. You can even use a proxy by using the –proxy-server=”type://server:port” flag.
#!/bin/bash TEMPDIR=`mktemp -d` echo $TEMPDIR cp -r $HOME/Vorlagen/anon_chrome/* $TEMPDIR/ chromium-browser --user-data-dir=$TEMPDIR $* rm -rf $TEMPDIR