Bing Wallpaper and Lockscreen script

Here is a simple script to update your wallpaper and your lockscreen every two hours!


# Bing wallpapers
# Cesário Garcia Mil-Homens

# 1. Execute this script the first time and set "bingwallpaper.jpg" as wallpaper and lockscreen
# 2. Config $wallpaperPath (line 13 of this script) for the full path of where you want "bingwallpaper.jpg" to be (it should be on the user Pictures folder)
# 3. On the terminal execute the following script, this will check for new updates every two hours
# crontab -l | { cat; echo "0 */2 * * * /bin/bash /home/cesario/Programs/ >/dev/null 2>&1"; } | crontab -


wget -q --spider

if [ $? -eq 0 ]; then
    echo "Online"
	imageName=$(curl -s "" | grep -o -m 1 "/az/hprichbg/rb/.*._1366x768.jpg")
		if [ -e $wallpaperPath"/"$imageName"_1366x768.jpg" ]
			echo "$imageName found."
			echo "$imageName not found."
			wget ""$imageName"_1366x768.jpg" -P $wallpaperPath
			cp $wallpaperPath"/"$imageName"_1366x768.jpg" $wallpaperPath"/"bingwallpaper.jpg
    echo "Offline"

Share WiFi via Ethernet on Ubuntu 17.10

There is a hidden method to share your WiFi over Ethernet in the latest Gnome.

  1. Type nm-connection-editor in your terminal.
  2. Add a shared network connection by pressing the Add button.
  3. Choose Ethernet from the list and press Create.
  4. Click IPv4 Settings in the left.
  5. Choose Shared to other computers by clicking the Method drop-down menu.
  6. Enter a new name like Shared WiFi LAN as the Connection name at the top

Dislocker script

This script aims to mount a Bitlocker encrypted drive in linux.
The binaries can be downloaded at


# Dislocker binary can be downloaded from
# All credits to Cesário Garcia Mil-Homens -

if [ ! -d "/media/mount" ] && [ ! -d "/media/bitlocker" ]; then
        sudo mkdir /media/bitlocker
        sudo mkdir /media/mount
        sudo fdisk -l
        read -n1 -r -p "Press any key to continue..." key
        echo "Insert volume and partition eg. sdaX"
        read volume
        echo "Enter password"
        read -s password
        sudo dislocker -V /dev/$volume -u$password -- /media/bitlocker
        sudo mount /media/bitlocker/dislocker-file /media/mount/ -o loop
        echo "Press u to umount device"
        read key
        if echo "$key" | grep -iq "^u" ;then
                sudo umount /media/mount
                sudo umount /media/bitlocker

Ubuntu Linux 12.04 LTS – World Wide VPN’s

In Windows you can get free VPN software like Anchor Free, SoftFlux and Expat Shield.
But what about Linux?

US –
US –
UK –

So how can we create a VPN that gives us the country IP we want?

So things we will install

  • Vidalia – Vidalia offers a graphical user interface to start and stop Tor, view its status at a glance, and monitor its bandwidth usage.
  • Tor – Tor is a connection-based low-latency anonymous communication system which addresses many flaws in the original onion routing design.
  • Privoxy – Privoxy is a non-caching web proxy with advanced filtering capabilities for enhancing privacy, modifying web page data and HTTP headers, controlling access, and removing ads and other obnoxious Internet junk.

Let’s install them on terminal (Ctrl + Alt + t)

sudo apt-add-repository ppa:ubun-tor/ppa
sudo apt-get update
sudo apt-get install tor privoxy vidalia

If you want a UK ip everytime you start Tor open Vidalia and go to “View the network”. Here you will see a bunch of relays, sort them by country and copy the nicknames of wich you want to look like the ones below.

ExitNodes TorLand2, TorLand1, TorLand5, st0nerhenge, c00psTOR, EnfluraneNode, microlah, YoureOnCCTV, hamtor
StrictExitNodes 1

Go to terminal

sudo gedit /etc/tor/torrc

Insert the lines you created save and exit.

Start tor

tor &

Go to Network GUI -> Proxy

Socks Server:
Port: 9050

If you want to logoff the VPN set proxy to none and stop tor

sudo killall tor

PBLS4Lin v1.0 – Peerblock for Linux and Transmission

Um script para linux que permite utilizar as listas do Peerblock.
Estas listas podem ser utilizadas no Transmission.


#This script creates the same lists as peerblock, it outputs a file that you
#can use on Transmission under Edit -> Preferences -> Privacy -> Blocklist. In the first time copy the
#http link and use it. All lists are from
#This script was created by Cesário Garcia Mil-Homens - just for the fun.
#PBLS4Lin - v1.0


#Insert here the dir where is your Dropbox/Google Drive/etc public folders or you local server with apache
#Using Dropbox
#Using localhost

#Insert here your own temporary download folder, do not use /tmp


echo "Peerblock Lists - Automatic Uptades for Transmission"
echo "My destination folder is $destination_folder and my temporary download folder is $temp is this correct? (y/n)"

function download() {
	sudo cd $temp
	sudo wget -O - "" > bt_ads.txt.gz
	sudo wget -O - "" > bt_level1.txt.gz
	sudo wget -O - "" > bt_spyware.txt.gz
	sudo gunzip *.gz

function combine() {
	sudo cat bt_ads.txt bt_level1.txt bt_spyware.txt > peerblock.txt
	sudo rm bt_ads.txt
	sudo rm bt_level1.txt
	sudo rm bt_spyware.txt

function upload() {
	sudo mv -f peerblock.txt $destination_folder

read op

case $op in
	y) download; combine; upload;;
	*) exit;;