If you are coping a file (uploading/downloading) with ssh and the connection is interrupted. Then if you need to continue to downloading/uploading the latest processed file, then you can define scpresume:
alias scpresume=”rsync –partial –progress –rsh=ssh”
and then you can use it with the same syntax used by scp.
resolvconf: Error: /etc/resolv.conf must be a symlink
fix:
/etc$ sudo ln -s /etc/resolvconf/run/resolv.conf
If you want to mirror a phpbb or other CMS that ask for an authentication, you can get the coockis from the firefox dir.
In my case is:
cp /home/gnuton/.mozilla/firefox/xxxxxx.default/cookies.sqlite .
Then convert the coockies file from sqlite to plain paper with this script
gnuton@iron:/tmp/SS$ cat SS
#!/bin/bash
#
sqlite3 $1 <<EOF
.mode tabs
.header off
select host as domain,
case substr(host,1,1)=’.’ when 0 then ‘FALSE’ else ‘TRUE’ end as flag,
path,
case isSecure when 0 then ‘FALSE’ else ‘TRUE’ end as secure,
expiry as expiration, name, value from moz_cookies;
EOF
The you have your plaintext cookies file and you can run now wget to do the job.
$ wget –load-cookies cookies.txt -m -np http://mywebsite.com
Well, in linux the best tool to take a copy of a entire website is WGet.
Scenario: To get all the pages, images and the other contents that are in a hypothetic book/ directory of a hypothetic website (eg: example.com), we can run:
wget -m -np -p http://www.example.com/book/
where “m” stands for “mirror”, “np” is “no parent” (we want only the pages in the book/ directory) and the “p” flags tells to wget taking all the resources (like images) needed to display correctly the web pages mirrored in offline mode.
Most people run a home server behind a router. If you have a dynamic IP, this could be very annoying. The server don’t know about the public IP (of the router), the router sometime don’t update the dinamic DNS. The OpenDNS settings are not valid anymore if your IP chages.
To avoid all these issues, this night I wrote a very cool script that updates DynDNS and OpenDNS at the same time.
DynDNS allows me to have a domain like my-server.dyndns.org with a dinamic IP. OpenDNS instead after a free registration and after that I added its DNS IP to my DHCP router configuration, it offers a safe browsing to my network users protecting them from several internet threats like phishing, adult sites ecc..
My server runs this script every hours via cron.
#! /bin/bash
user=MYUSER
password=MYPASSWORD
hostname=MYDNS.MYDNS.ORG
#wildcard allowed values are NOCHG, Y, N
wildcard=NOCHG
mx=NOCHG
# Y=Yes, use it as my primary mail relay. N=No, use it as backup MX record.
backmx=NOCHG
#current IP
currentIP=$( curl -s http://checkip.dyndns.org/ | grep -o “[[:digit:].]\+” )
#check
if [ "$currentIP" != "$(cat lastIP)" ]; then
echo IP changed to $currentIP
echo “$currentIP” > lastIP
#update OpenDNS
/usr/bin/curl -m 60 -u $user:$password ‘https://updates.opendns.com/account/ddns.php?’
#update DynDNS
curl -v -k -u $user:$password “https://members.dyndns.org/nic/update?hostname=$hostname&myip=$currentIP&wildcard=$wildcard&mx=$mx&backmx=$backmx”
else
echo IP not changed. It is still $currentIP
fi
Last.fm, the internet personal radio has played about 2000 songs for me since January. Since a bit the service is not free anymore. The people have to pay to use it. The fee is cheap but I think that it’s too high for the service offered. Then I decided to don’t pay money for that and I decided to explore the ocean of free music available in streaming from websites like magnatune.com, coolstreams.com and similar. I’m using amarok to listen those radios..they are already there. Amarok works great with them!
There I can find a lot of musics genres; Jazz, Rock, Blues and so on.. what’s your favorite one?
If you have children or you want to ensure to the people in your network a safe browsing, you can install squid + dansguardian.
I installed them on my home linux server. It runs Ubuntu Dapper (a very old distro)… and Installing and configuring them have been very easy.
First of all I installed squid with apt-get install squid. Then I installed dansguard with apt-get. The installation script told me that I had to modify the config file.
Then I removed the “REMOVE ME” line in the config file and i started the two new services with a /etc/init.d/squid start and then /etc/init.d/dansguard start.
Squid (the proxy) will listen for connection at the port 3128, instead the filter (dansguard) wiill listen at the port 8080.
At this point we can block the access to the port 3128 with iptable and removing every possible way to have a gateway in the net.
The people in our network are forced to use the filtered proxy to browse now.
After that I setted the proxy in my boxes everything is okay.. the children can surf the web again safely!

JackReDelleZucche
I write this post in italian just because I’ll speak about sites that provies to italian translated movies only.
So I apologize for that!
Dicevo.. ah si..
La pirateria su internet si estende su diversi fronti.. ed arrestarla da parte delle authority sarebbe un po come usare le mani per fermare una cascata. I film pubblicati in internet non sempre hanno qualita audio video di cui tutti si accontentano. Anzi io credo che nonostante si trovi tutto quel che si vuole su internet, difficile e’ trovare qualcosa con un ottima qualita.. con dolby ecc.
Motivo per il quale credo che chi si vuolegustare un film davvero deve andare al cinema o cmq prendersi un blue ray disk.
Cmq andiamo al sodo.. in Italia molti film sono indicizzati in siti come animedb.tv e http://ffinalsqualo.altervista.org/.
AnimeDB e’ usatissimo e spesso da problemi. Su ci si trova di tutto ed e’ abbastanza seguito e curato.
ffinalsqualo e’ anch’esso fatto bene. Non ho idea di quante persone partecipano al progetto.. e nn so nemmeno quanto durera.
Per il momento e’ cmq una valida alternativa nei momenti di inattivita’ di AnimeDB.
Inoltre per chi la sera nn sa che film vedersi.. ffinalsqualo e’ una manna dal cielo!
Buona visione
When I was child I loved too much watching cartoons. One of my preferred was “The Visionaries”.
I didn’t remember the name of this cartoon, just because I watched it when I was too younger and it broadcast few times. ![]()
Since yesterday I had a vague memory of it. But thanks to youtube I found the opening theme and so the name and all (?) the episodes too! ![]()
That’s cool.
Ist episode and Playlist
