Monthly Archive for March, 2007

Linux Screen vs Firefox

I may seem like a Linux Evangelist, a post after another about Linux again. Ok, hopefully tomorrow I’ll something different but I’ll try to make my point brief here.

Screen
- a terminal multiplexor with VT100/ANSI terminal emulation
- screen manager with VT100/ANSI terminal emulation

Firefox
- lightweight web browser based on Mozilla
- a Web browser for X11 derived from the Mozilla browser

(descriptions shown from aptitude and man respectively).

What’s the difference?
Screen is mainly text based while Firefox is graphical.

The similarities I observe.
Firefox has tabs, Screen has multiple / multiplexed shells in a single terminal / window.
Firefox 2 (or with Session Extension) can restore sessions, Screen can detach/attach/resume running sessions

IMHO, Screen will be the thing you want for remote shell administration or monitor processes, in a shell-based, vi/e-macs text style interface.

I recommend these articles for further reading on screen.

http://www.rackaid.com/resources/tips/linux-screen.cfm

http://www.linuxjournal.com/article/6340
http://gentoo-wiki.com/TIP_Using_screen

(If you want more graphical, search x11vnc, vino, freenx)

As a last fun tip, I apply a technique taught by my piano teacher on the computer keyboard. Extension the thumb to depress more than 1 key at the same time. I use Alt-Win-Tab for All-Workspaces-Circular-Task-Switcher.

There is a screen on:
85.http.Zz (Detached)
1 Socket in /var/run/screen/See-ya.

Ubuntu Tweaks (Part 2 - Repository and Packaging)

Continued from Part 1 of my series on Ubuntu tweaking.

When I first planned to run Ubuntu 6.10 “Edgy Eft”, many reviews on the net showed that not everyone is happy, some whom might think its not edgy enough, some who had their systems broken because they tried to upgrade.

Remember one of my reason I installed Ubuntu? The nature of Ubuntu and its community makes it easy to use, customise and repair the system. In this post, I would show ways to play with your ubuntu system- using apt, guides on the net, and using some other packaging or unified installation software.

Ubuntu

Apts
Apt (Advanced Packaging Tool) was perhaps the reason why many chose Debian. The Ubuntu repositories could then be the very reason that others like me chose ubuntu. Apt-get, Aptitude are very useful and powerful commands to play with. However after trying Ubuntu Synaptic Package Manager for time, I love it for these reasons:

- It has a gui (Graphical User Interface) for those who wouldn’t even touch a shell.
- Its really easy to add, disable, delete sources
- Easy to find, mark and install many packages at one go
- Download packages simultaneously, with ability to resume, making downloads faster
- Notifies you of updates and easy to access via its tray icon.

Even now I use Synaptic a lot and recommend it, apt-get and aptitude are still as important and good to learn and use. Read about aptitude versus apt-get

Finding Ubuntu Repositories
Having nice repository sources is perhaps all you need for a long time. Using these packages, I find that it is even easier to search and install software compared to Windows.

1st, you can uncomment the less official but supported ubuntu sources from /etc/sources.list or preferably do so in Synaptic. Next try out source-o-matic a Ubuntu source.list generator which produces a source list based on selection of criteria you chose. Ubuntu geek has a source list for Edgy Eft which is worth taking a look. Lastly for sources, for the more adventurous, I would recommend Treviño source list which including many packages compiled by him.

Other Debian Packages
Automatix is an Automated GUI installation script which installs the common software people demands. Read here as their official site seems down.

When using lots of “super-cow powers” apts, dun forget they are basically Debian packages. Finding and downloading debian packages is a very simple way to install applications. See GetDeb - Click And Run - Software Portal

Other Packaging
One of Apt/Deb uses is that they are a solution to dependencies. However, it is not the only solution around. Many package management exists for other distros - portage (emerge) for Gentoo, packman for ArkLinux, rpm for Redhat… There are some which are distro independent.

Klik, its another innovative web-based click and install software manager. From its webpage, “Klik strives to be the easiest way to download and run software, without installation”. I love the way you install Klik, with at most 2 lines (in user mode without the dollar signs):


$ sudo apt-get install binutils libstdc++5 rpm gnome-about # for (k)Ubuntu
$ wget klik.atekon.de/client/install -O -|sh

Autopackage - Easy Linux Software Installations for both users and developers. “Autopackage doesn’t need to be downloaded or installed. When you install your first package, Autopackage will install itself automatically.” Check out their package listings

Zero Install system is a caching network filesystem, to make software installation completely automatic. This decentralised installation systems has been made to work with the Rox Desktop

Lastly, if you were to experiment building from sources, you would like to work with the command, esp. tar, cvs, svn, git. CVS (Concurrent Versioning System), SVN (Subversion), GIT(distributed revision control file system project) are also repositories system at a different level.

CheckInstall is a software which helps you keep track of installations done using make install, and creates distro based uninstallations like dpkg on debian.

Welcome to the addictive world of Linux software.

Mogrify - Batch Resizing for Images on Linux

I always tell others even though the Linux shell looks very backwards (thinking Ms-Dos 6.11 anyone?), experienced users can do much more in shorter time with their keyboards than others with their mouse with even the most most advanced graphical applications.

Take for example I would like to resize a folder of photos to half its resolution so I can upload it on the net. I only need issue a command

mogrify -resize 50% *.jpg

while it takes more a few more clicks on some useful software like IfranView on Windows for example (Using its batch convert feature. Which other software can you think of which does that?).

Visit ImageMagick’s site on using more of mogrify features or issue mogrify -help.

Article Repository

I’m considering the different php solutions for building a Christian article database.

1. Solutions out there?
2. Blog
3. From scratch

PDF

Platform running on is: XAMPP

1. Existing solutions
My impression tells me they are usually either too general or specialized for my needs.
General in a CMS-typed like Mambo and Specialised stuff are dull university projects which do not usually have too nice an interface.

Next option please.

2. Blog-based solution
As usual, our friend WORDPRESS is recalled. 2.1.2 the latest release for now.

Its seems a good solution as it has already some of the features needed - Writing posts easily, Categories, Search.

Others need some research, customisation and building. * means recommended links

a) Keywords tagging + search
http://vapourtrails.ca/wp-keywords

b) Providing Word and PDF formats for download.
i) HTML to Word
* http://conort.googlepages.com/generate-word-from-php

ii) HTML to PDF
* http://www.rustyparts.com/pdf.php
http://www.digitaljunkies.ca/dompdf/about.php
http://www.easysw.com/htmldoc/pdf-o-matic.php?source

iii) Plugins
* http://www.zirona.com/software/wp-to-pdf/
* http://wp2pdf.sourceforge.net/
http://www.pdf24.org/blog/two-wordpress-pdf-plugins/

3. From scratch.
Why hurt myself when I have better alternatives like above?

**Lost in thoughts as usual**

Window Shopping for a Viola

My aim was to buy to a bow, a music stand and check out the price if I were to buy a viola.

1st stop supposed to be Gremacy. After realising Bus 7, instead of Bus 197 which I should be on, wouldn’t go to Tanjong Katong Road, I alighted and run against the rain towards Tanjong Katong Complex for my supposed 2nd stop:

Synwin. I tried a couple of violas from the china made - $500 - $1500, and the german made $2800 to $3800. I left the shop buying a 16″ viola bow for $90 and a music stand for $16.

I took the walk thru the Istena Park from Doby Gaut Mrt station towards Merien Shopping Centre. Thats the first time I been to Music Essentials after they moved from the Specialist Shopping Centre. They sell mainly Eastman instruments, an American company which moved their production to China.

For the sound quality you get from those instruments, its hard to get for a lower prices. I thought I would get the $800 16 inch viola if I really decided to get one.

Next stop. Shopping for a piano teacher to prepare myself for a sponsored Grade 8 exam?