GnutonLogo

Archive for the 'Uncategorized' Category

Installing KUbuntu Linux from USB drive

Sunday, March 14th, 2010

Since my new barebone doesn’t have any CD/DVD reader, I had to install linux via USB HDD.
I hadn’t find a good documentation about this topic, then I’ve decided to write this little post.
Well… things are pretty simple:
1) Install “unetbootin” with “apt-get” or from http://unetbootin.sourceforge.net/
2) Download latest version of KUbuntu from KUbuntu.org
3) plug your usb mass storage device (usb dongle or HDD)
4) format it with mkfs.ex3 /dev/sdX where X is the letter of your device
(to know that letter you could read last dmesg lines)
5) run unetbootin
6) select the image
7) click “Create” 8) unplug the usb device from the first linux box and plug it in to the barebone.
9) Switch the barebone on.
10) Press F8 (If you have an ASUS motherboard) to boot from USB
11) grub will say that it can’t load “linux” kernel
12) to run your image write this: “ubnkern ubninit boot=casper BOOT=casper nopersistent rw

That’s all. Good installation! ;D

Text Adventures or Interactive Fiction

Tuesday, December 15th, 2009

Today I found an Interactive fiction interpreter running in several platforms… and of course Linux is one of them…
After trying it in my linux box I tried to compile it for my N900. Still there are some issues compiling JAM (a replacement for make) for X86 target…

The interpreter is called Gargoyle and it claims to be able read all kind of IF file types.

Ubuntu packages are available here: https://launchpad.net/~radix/+archive/ppa
A lot of Quests are available… use google to find them…

My first post written with ScribeFire

Sunday, November 22nd, 2009

This is a test post written with a Firefox add-on..

Edit webpages with in your web browser

Wednesday, June 24th, 2009

There are some javascript tricks able to enable the hidden design mode.
To do that you just need to put this: “javascript:document.body.contentEditable%20=%20′true’;%20document.designMode=’on’;%20void%200″ in your address bar and you can switch it off with “javascript:document.body.contentEditable%20=%20′false’;%20document.designMode=’off’;%20void%200″

The latest command doesn’t work in Firefox3.
These commands should instead should work in Firefox3 too:
“javascript:document.body.contentEditable=”true”;void0″ and “javascript:document.body.contentEditable=”false”;void0″

Resume scp transfers

Monday, June 22nd, 2009

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.

resolv.conf must be a symlink

Monday, June 22nd, 2009

resolvconf: Error: /etc/resolv.conf must be a symlink
fix:
/etc$ sudo ln -s /etc/resolvconf/run/resolv.conf

Mirrorin a website + cookies

Saturday, May 30th, 2009

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

Mirroring a website n Linux

Friday, May 1st, 2009

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.

Goodbye Last.fm, Welcome Magnatune.com!

Thursday, April 30th, 2009

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?

Ss. Messa on-line

Sunday, November 16th, 2008

Googlando sembra quasi impossibile trovare una messa in stream! Dall estero non e’ facile vedere la RAI, dato che bloccano gli IP esteri ed al moment non conosco funzionanti e abbastanza veloci Proxy italiani che mi permettano la visione.

Una messa con A/V di qualita la potete seguire in stream su Sat2000.

La Ss. Messa e’ trasmessa la Domenica alle 10:55 (Orario italiano) a seguire l’Angelus del Santo Padre.

Buona visione.