Tuesday, July 1, 2008

reading comics

Scanned comics are usually saved in the .cbr format, which is essentially an .rar archive (akin to a zip file).

The Evince document reader which is installed by default with Ubuntu, can read these .cbr files, but only in conjunction with the 'unrar' program, which is not installed by default with Ubuntu.

To make matters just a tad more difficult, you won't find 'unrar' by searching in Synaptic or Add/remove programs. Instead you have to use a command line:

sudo apt-get install unrar

Once that's installed, all those .cbr files will open in Evince. You'll also see icons showing the front cover of each comic in Nautilus.

Some recommended settings for Evince (under 'View' in the top menu):
* check 'Best fit';
* uncheck 'Continuous';
* F11 to toggle full screen view

By the way, if you're not treating scans as 'samples' and then buying the comics you like, you're doing the wrong thing. You're effectively killing the comics industry.

Thursday, May 1, 2008

En Avant!

Installing Avant was even easier in Hardy Heron. All I had to do was search for 'avant' in 'Add/Remove programs' (or Synaptic), then install the package returned.

Drag launchers from the top menu to the dock. Right click on very top right of the dock (this can be tricky) for preferences. Choose auto-hide under General. On the same tab, choose 3D spotlight turn in the icon effects drop down. On the Bar Appearance tab, choose 3D look.

To auto-start on logon, go to System-> Preferences-> Sessions-> Startup Programs, and add 'avant-window-navigator' as a command.

To add a place or location (home folder or a drive for example) to the dock, create a new launcher on the dock using the command "nautilus" (without the quotes). If you want to add a different location other than your home folder, use the command: nautilus /path/to/your/location . Close AWN and restart it, to see your location launcher.

[Note - to curve the dock, don't set gconf-editor->apps->avant-window-navigator->bar->bar_angle to -1 (from the default 45). It doesn't work in AWN manager either.]

Wednesday, April 30, 2008

Kiba-dock returns

Ubuntu on Inspiron 1501 was again the saviour. This method still works in Hardy Heron, with one exception - the systray icon. So here, with my tweak, are the steps:

1. Uninstall any current installation by searching for kiba and akamaru in Synapatic.
2. Delete any kiba-dock folders in home and usr/share.
3. In terminal (less the asterisk which marks each new entry)-
* sudo apt-get install automake1.9 build-essential cvs libpango1.0-dev libgtk2.0-dev libgconf2-dev libglitz-glx-dev librsvg2-dev checkinstall libglade2-dev
* wget http://usuarios.lycos.es/abrahamtamayo/kiba-dock-0.1.tar.bz2
* tar -xf kiba-dock-0.1.tar.bz2
* cd kiba-dock
* ./autogen.sh
* make
* make install-schemas
* sudo make install
* kiba-dock
4. in System/Preferences/Sessions/start-up add Kiba-dock with command 'kiba-dock'
5. right click on nascent blue dock to open the settings app
6. drag launchers to dock from top menu (including drop-downs)

Note - kiba-dock will only start from the command line 'kiba-dock' or on logon (start up)

Tweaking the settings

The first thing I did was change all the background colours for the dock and text to whites and greys and reduce the opacity of each to 30%. I prefer the default background option to the gradient because you get an interesting 'carousel' effect as you run your mouse along the dock. I also removed the border from the text background.

The default model for the launchers is 'dock'. I tried 'wobbly' but that made all the launcher icons bunch up. 'Spring for all' immediately scattered them across the screen. 'Rope' works well. But I prefer the independent springing of each launcher when you grab and release, so I've stuck with the 'dock' model. The default distance for 'rope' is 10.5. Adjusting that doesn't affect the 'dock' model. On the 'effects' tab, I left 'rotate' on execute and mouseover unchecked because corners tend to get cut off with this effect. The default pulsar is 'e17 pulse'. 'Zoom' is also good - rather like the Mac OSX dock zoom. 'Pulse' is less compelling. The default zoom factor is 2 for Pulsar and 1.3 for Zoom. Adjusting that to 3 made the animation lag a little under Zoom and made e-17 pulse unworkable. Bottom line - defaults were best. Under the 'dock' tab, I enabled auto-hide on the tab of the same name.

Tuesday, April 29, 2008

on Bluefish and other HTML editors

'Projects' doesn't appear to be a terribly useful concept in Bluefish. It doesn't allow the user to search and/or replace within a project. And there's no ftp utility to upload or synchronise a project. In any case, Bluefish remembers the directories you've navigated to previously and shows those in the drop down list. So I wouldn't bother creating a project.

To search (and replace) within a site, you have to open all its files. To do that, navigate to the base directory, then right click it and choose 'open advanced'. Then choose '.html' (or .js, .css etc as the case may be) and click 'ok'.

There is however a more convenient way to go about this. When using 'Open advanced...', place the bit of text you're searching for in the 'Contains pattern' field, before clicking 'ok'. Bluefish will then open only those files that contain the bit of text you want to find (and replace).

To set Firefox as the default browser in which to open the current html document, open Preferences/External programs then click 'add' in the Browser tab. Click left and enter 'Firefox' then click right and enter 'firefox -remote 'openURL' || firefox %s&'. Delete all the other browsers.

Quanta Plus is another worthy html editor. However, its installation requires all sorts of KDE libraries that in my opinion bloat a trim and taut Ubuntu system.

There's some useful info on other web development software at http://www.micahcarrick.com/09-28-2007/web-development-linux.html

FTP falls short

Is it Optusnet? I recall that others have succeeded in accessing their sites via FTP through Nautilus in Ubuntu. But I've never had any luck. And the story is no different with Hardy Heron.

I tried several times via Nautilus (Places/Connect to Server/FTP with login) and the story is the same each time - I get through initially but after a few seconds the "Unable to display folders. Connection has been reset by the peer". Who is the peer - Optusnet? And why reset? Do they detect connections from Linux PCs and then reject those?

BTW - I note from the Optusnet site that the port used for FTP is 21. But setting that made no difference.

I just found a long discussion I had about this very issue on the Whirlpool forum 9 months back - http://forums.whirlpool.net.au/forum-replies.cfm?t=759644

Apparently Nautilus FTP to Optusnet works for some, but not for me.

Progress made! FTP is successful via a downloaded app - gFTP if I set the mode to active (passive is default). The upshot of this thread - http://ubuntuforums.org/showthread.php?t=54436 is that Nautilus attempts FTP in passive mode, which Optuszoo doesn't like. Apparently a means of switching between active and passive mode may be added to a future version of Nautilus. It's a registered bug.

To change mode in gFTP from its main menu, choose FTP/Options/FTP, then uncheck 'passive file transfers'. To save a local directory listing, navigate to the directory then choose 'save directory listing' under 'Local' in the top menu. Note - the folder may not show up in the drop-down list until you reopen the app.

Monday, April 28, 2008

the Glass icons have no clothes

Here's how to get all Glass icons to show in Hardy Heron:
1. Open Nautilus with root permission (terminal - sudo nautilus)
2. Extract the Glass Icons tar.gz file into /usr/share/icons folder (extract in source folder then copy across).
3. Go to /usr/share/icons/glass-icons/scalable/filesystems/ and right click the gnome-fs-directory.svg file and select the Make Link option. This will create a link and you rename that link folder.svg.
4. Do the same with these other files:
- gnome-fs-trash-full.svg -> user-trash-full.svg
- gnome-fs-trash-empty.svg -> user-trash.svg
- gnome-fs-home.svg -> user-home.svg
- gnome-fs-client.svg -> computer.svg
- gnome-fs-web.svg -> applications-internet.svg
- gnome-fs-desktop.svg -> user-desktop.svg
- gnome-fs-server.svg -> network-workgroup.svg
- devices/gnome-dev-harddisk.svg -> drive-harddisk.svg
- devices/gnome-dev-disc-dvdrw.svg -> drive-optical.svg
- devices/gnome-dev-removable.svg -> drive-removable-media.svg
5. Customize a theme by choosing Glass Icons;
6. Reboot (or change icon theme and then change back)

Sunday, April 27, 2008

Blubuntu and screenlets

Tombuntu has a useful article on turning Ubuntu blue.

* install blubuntu-look via Synaptic;
* open Appearance Preferences from the System->Preferences->Appearance menu and select Blubuntu;
* to use the GDM login theme as well, open Login Window Preferences from the System->Administration->Login Window menu andd Select Blubuntu from the list of themes (under the second tab);
* in same window, change background colour to blue of wallpaper (#5284C2)
* if Cairo clock is installed, uninstall it;
* in Advanced desktop effects manager, enable widget layer;
* install screenlets via Synaptic;
* open Screenlets from System->Preferences;
* open Screenlets manager from system/preferences;
* select start at login;
* select Clock and then 'launch/add' at right
* set timezone to Australia/Sydney;
* add Gmail screenlet;
* adjust size to 50% (options/scale .5);
* change update interval to 300;
* enter account name and password, clicking 'apply' each time;

add intenational locations to Gnome clock
* click 'locations' then 'edit';
* enter sydney, London and New York

revert to Ubunty Human theme
* set background colour to #DAB082 (in System->Administration->Login Window menu)