Archive for the ‘linux’ Category

Default system browser

1 May 2006

Debian FAQs explain how to manage many packages that provide different versions of a program, both of which provide the same core functionality. Today I learnt how to use update-alternatives to choose Swiftfox as my default system browser.
I installed Swiftfox in /usr/local/swiftfox, so here it is: 

update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/local/swiftfox/swiftfox 90
update-alternatives --config x-www-browser

Do it as root. You can replace the value "90" with a most appropriate value.

technorati tags: , , ,

Advertisements

Building Firefox on my old laptop

29 April 2006

#1

I followed this resource .

I changed a line – like this:

ac_add_options --enable-optimize="-O3 -march=pentium-m -mtune=pentium-m -pipe -ftracer -fomit-frame-pointer"

I also added these lines:

ac_add_options --enable-static

ac_add_options --disable-shared

Building begin: 02.53 AM …

…Building end: 07.15 AM

Result:

../../dist/lib/components/libgfx_gtk.a(nsDrawingSurfaceGTK.o): In function `nsDrawingSurfaceGTK::~nsDrawingSurfaceGTK()':nsDrawingSurfaceGTK.cpp:(.text+0x7d6): undefined reference to `XftDrawDestroy'
:nsDrawingSurfaceGTK.cpp:(.text+0x80f): undefined reference to `XftDrawDestroy'

collect2: ld returned 1 exit status

make[4]: *** [firefox-bin] Error 1

make[4]: Leaving directory `/home/intersezioni/mozilla/firefox-bin/browser/app'

make[3]: *** [libs] Error 2

make[3]: Leaving directory `/home/intersezioni/mozilla/firefox-bin/browser'

make[2]: *** [tier_99] Error 2

make[2]: Leaving directory `/home/intersezioni/mozilla/firefox-bin'make[1]: *** [default] Error 2make[1]: Leaving directory `/home/pinna/mozilla/firefox-bin'make: *** [build] Error 2

# 2

I read the "gtk 2.8 builds are broken due to missing xft dependencies" bugzilla page

I'm going to disable pango support, add three lines as suggested by Marco Perez and try again.


(…some hours later…)

No errors in

make -f client.mk build
 

This is the output of

make -C firefox-bin/browser/installer/ :
Creating package directory...

rm -f -rf ../../dist/xpt

/usr/bin/perl -I/home/pinna/mozilla/xpinstall/packager -e 'use Packager; \

Packager::Copy("../../dist", "../../dist/firefox", \

packages-static", "unix", 1, 0, 1);'

Error: package file "SCALAR(0x814c684)" is not a file or is unreadable.

See '-e --help' for more information.

Exiting...

make[1]: *** [firefox-1.5.0.2.en-US.linux-i686.tar.gz] Error 4

make[1]: Leaving directory `/home/pinna/mozilla/firefox-bin/browser/installer'

make: *** [all] Error 2

make: Leaving directory `/home/pinna/mozilla/firefox-bin/browser/installer'

Automatic update to latest Flock Testing build via crontab

27 March 2006

don’t do this if you want to give feedback to Flock development.

Note: to be modified according to http://tinderbox.flock.com/builds/linux/latest/

When I start Flock, I choose between two different buttons. The first points to Flock 0.5.13, while the second points to the latest build.

I added a crontab entry in order to get every hour the latest Flock linux build. It downloads the compressed archive from http://tinderbox.flock.com/builds , then uncompresses the archive and places it into my home directory.
I’m not a programmer. It really should be written differently.

This is just one line:

51 * * * * wget -r -nH –cut-dirs=3 –directory-prefix=/home/intersezioni/ http://tinderbox.flock.com/builds/linux/latest/flock-0.7.en-US.linux-i686.tar.gz; rm -rf /home/intersezioni/flock/ ; tar xzf /home/intersezioni/flock-0.7.en-US.linux-i686.tar.gz -C /home/intersezioni

Have a look to crontab use. “51 * * * * ” means that it will run at 0.51 AM, 1.51 AM, etc.

The second Flock button points to:
/home/intersezioni/flock/flock

It seems working. Having Flock updated while I’m using it doesn’t seem break anything, and refreshing the about: page shows the update itself.
However, I guess I should achieve the same aim with a better crontab entry.
Any tips?

If you leave helpful comments, I shall sacrify a lamb for your sake.

Defend Free Software and Open Source

3 December 2005

Flock is free software. Public laws shouldn’t hinder open source projects, free software and basic personal rights. Software patents laws will do it. This seems to be a bad news about this kind of public laws:
France Hostile To Open Source Software?

What will Flock staff and community do about this issue?

Here are some examples of free software projects against software patents:

Open source developers step up anti-patent campaign

technorati tags: ,

Importing bookmarks to Flock from other browsers: a workaround

30 November 2005

at the moment, importing bookmarks into favorites includes making them available in del.icio.us. see bugs 1244 and 625.

if you feel comfortable with your bookmarks being public, you may want to import them in del.icio.us so you can also manage them via Flock. in order to mass-import bookmarks from a browser into del.icio.us, you will have to run a perl script. you obviously will need also your del.icio.us username and password.

note: using this script will remove preexistent flock favorites. this may also eat all of the cheese in your house! so back-up what has to be back-upped.

read this page and download delicious-import script. give a look at the script code, you will find useful options about line 75 (Release 1.4: 10 May 2005).

export your bookmarks from a browser to a html file.

if you want to, choose a tag to mark the bookmarks you’re going to import. i’ll use “import-tag” here.
if you don’t specify a tag, the script will mark your bookmarks with a “.imported” tag.
if you prefer not to tag the bookmarks you’re going to import, use “” as a tag – that is, an empty tag.

note that if you divided your bookmarks into folders, the name of the folders will be imported into del.icio.us as a tag, and every bookmark from that folder will be tagged with that tag.

run delicious-import script. the syntax should be something like that:

perl delicious-import.pl -u yourusername -p yourpassword -t import-tag -l -x -z /path/to/yourbookmarksfile.html

wait the upload to be completed and start flock. you will be asked “do you want to share your favorites?”. in order to get del.icio.us bookmarks imported, you have to answer “yes” and setup your del.icio.us account in flock. you can do this using the Edit / Preferences menu and choosing Web Services.
flock will import your bookmarks. please note that it will remove preexistent flock favorites (the standard ones are: Getting StartedFlockFlock FeedsFlock Feedback)
later, i unsuccessfully tried to delete my del.icio.us bookmarks tagged with “import-tag”. the script deleted also others bookmarks: it deleted all of my bookmarks, minus one. i ran the script using these options:

perl delicious-import.pl -u yourusername -p yourpassword -t import-tag -D -x

however, other similar tests were successful (i changed the order of the delicious-import script options, but i really don’t know if that was the reason of precedent failure. however i put the -t option at the end of the command).
technorati tags: