Tuesday, June 26, 2007

Boring notes of day to day Linux

These are just some notes from my last asterisk installation (done on may 15th but notes lost between all the desktop files) and they are here because man is the only animal that stumbles on the same rock and even worst I am far away to grew up.

a) Usefull installations for debian:

apt-get install mc bzip2 zip unzip ngrep iproute less

b) Some detatails on debian networking:

Networking:

rbast:/etc/network# pwd
/etc/network
rbast:/etc/network# more interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
rbast:/etc/network#


Could be changed to:
This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 10.0.2.51
netmask 255.255.255.0
gateway 10.0.2.254


c) how to open bz2 files (I always forget!!!)

tar -xjvf asterisk_settings.tar.bz2

d) I got an autoconf error

autonf error: solved by installing atuconf (apt-get) and running make config.

232 make
233 make config
234 make install
235 history


e) I got a cc1plus error

Asterisk installation: Got an error related to cc1plus while doing the .configuration. I apt-geted the packaged and worked.

apt-get install build-essential


f) Finally booting Asterisk at start time:

147 cd /etc/init.d/
148 cp /usr/src/asterisk-1.4.4/contrib/init.d/rc.debian.asterisk ./asterisk
149 ls
150 update-rc.d asterisk defaults

It should display the following output:

rbast:/etc/init.d# update-rc.d asterisk defaults
Adding system startup for /etc/init.d/asterisk ...
/etc/rc0.d/K20asterisk -> ../init.d/asterisk
/etc/rc1.d/K20asterisk -> ../init.d/asterisk
/etc/rc6.d/K20asterisk -> ../init.d/asterisk
/etc/rc2.d/S20asterisk -> ../init.d/asterisk
/etc/rc3.d/S20asterisk -> ../init.d/asterisk
/etc/rc4.d/S20asterisk -> ../init.d/asterisk
/etc/rc5.d/S20asterisk -> ../init.d/asterisk
rbast:/etc/init.d# history

Monday, June 25, 2007

Must have applications for your Windows PC

Below is a list of applications that do my work and windows experience more easy. They are not sorted in any particular order and note that they are all light applications, no hundreds of MB involved.

Total commander - http://www.ghisler.com/
A clon of the famous Norton commander used long time ago (yes I am that old and also you can have mc on your Linux) that you can use to manage your files, ftp, connect to other boxes, etc. Visit the website and go back in time where things were simpler.


Cerberus - http://www.cerberusftp.com/
An FTP server easy and quickly to run on you pc.

Snagit - http://www.techsmith.com/screen-capture.asp
A must have if you have to send documents with manuals or showing users what to do. Easily capture your screen, edit it, modified it, copy it and just send it or paste it or save it in whichever format you want.

Textpad - http://www.textpad.com/
A text editor to replace the old notepad on which you cannot do much. If you deal with logs and simple files and want to do searchs, compares, replaces, etc. this is the tool for you (other textedit or vim for windows but I always go back to Textepad).

Putty - http://www.chiark.greenend.org.uk/~sgtatham/putty/
Not sure if this is the right site where to download it but Google for it. A great and complete telnet and ssh and others. Very useful to replace the windows telnet.

Videolan - http://www.videolan.org/
This is to reproduce video files of all types (almost) very easy to use with some extra features as to stream your movie to your friends if they are on the same network.

Synergy - http://synergy2.sourceforge.net/
If you have 2 pcs or more you can just use 1 keyboard and mouse to control both systems. I have my desktop and my laptop in the office and I use my normal keyboard for both, it shares memory so copy paste can be copy and no more having several mouse laying around not knowing which one to use and occupying all your desktop space.

Foxit pdf reader - http://www.foxitsoftware.com/pdf/rd_intro.php
This is not a must but aren't you tired of downloading 70MB to read a 30K pdf!!. This is a PDF reader free to use, there is a pay option for a writer but I don't need it yet. One day Adobe would need to launch a light version of their app that consumes less memory also.

Other applications I sue are the CoolEdit, RealVNC (or any vnc clon), WinSPC3 and ActivePorts.

Ok that is my list for the time being, I would have to go through my start/programs menu to find out more but if I have to find them then they are not essential.

Good luck!!

Sunday, June 24, 2007

Benjamin Franklin's Thirteen Virtues

One of the things I would like to take from Benjamin Franklin are the virtudes that he tried to follow. I have a lot of work to do on most of them, but it simpler now that I have identify them.

1. TEMPERANCE. Eat not to dullness; drink not to elevation.
2.
SILENCE. Speak not but what may benefit others or yourself; avoid trifling conversation.
3.
ORDER. Let all your things have their places; let each part of your business have its time.
4.
RESOLUTION. Resolve to perform what you ought; perform without fail what you resolve.
5.
FRUGALITY. Make no expense but to do good to others or yourself; i.e., waste nothing.
6.
INDUSTRY. Lose no time; be always employ'd in something useful; cut off all unnecessary actions.
7.
SINCERITY. Use no hurtful deceit; think innocently and justly, and, if you speak, speak accordingly.
8.
JUSTICE. Wrong none by doing injuries, or omitting the benefits that are your duty.
9.
MODERATION. Avoid extreams; forbear resenting injuries so much as you think they deserve.
10.
CLEANLINESS. Tolerate no uncleanliness in body, cloaths, or habitation.
11.
TRANQUILLITY. Be not disturbed at trifles, or at accidents common or unavoidable.
12.
CHASTITY. Rarely use venery but for health or offspring, never to dulness, weakness, or the injury of your own or another's peace or reputation.
13.
HUMILITY. Imitate Jesus and Socrates.


(is there something wrong that I liked the virtudes of somebody who lived +200 years ago when slavery was still in practice?... also if you think about it, the world lives by 10 rules that were given to us +2000 and other +6000 and even longer)

Book - Benjamin Franklin An American Life


I read Walter Isaacson book about Benjamin Franklin - note I am not american and english is not my first language! - and I have to say that I like it.

I am not a writer, critic and I am consider myself a normal human being with my own mind. I think the book was more about Benjamin Franklin on the american revolution (then the "An American Life" of the title makes sense) that a biography of this really interesting man. You can argue that this life was america and I agree on that. Everybody has the right to his own opinion right?

I recommend this book to everybody and one can lear a lot from it (or at least a few things depending on how commited and inteligent you are, in my case.. I just learned a little). As said the book focused more on Franklin's part on the American Independence, how from a loyal royalist became a patriot and help the US to get it idependence. (In my opinion a change more induced by the "practicallity of it" that the book mentioned he always focus on rather on actually believing it).

You can also learn about his family and scientific work, how he thought, worked and specially wrote. It is amazing how good (always in a practical way) he was writting and how much he wrote, ok no every idiot (: has his own blog but for back then this man really knew how to express ideas, how to influence people and how to tell the truth.

I didn't like how John Adams, Thomas Jefferson and Washington were portrayed (does that word exists?) and I didn't share Franklin's view about family.

In general I admire the guy, would buy him a beer as the book say but would not spend my christmas with him as I like to be with my family.

Funny thing at the same time I read this book I saw the movie called the "Shooter" (ok a blockbuster type of movie full of explosions with a die hard type of hero) and on it near the end the poor underdog hero confronts a US "sitting" senator about his actions and this says: "There are no sides.... there are republican and democrats there are haves and haves not... This is a country where a secretary of defense can go on tv and tell the american public that this is about freedom is not about oil" so ok, this is a movie but how far is from the true?

Again read this book or any other biography of Franklin, after this I am looking forward to read about Washington and Edison.

Testing Google Docs!

This is a test of google docs direct posting to blogger. It is an nice alternative to the blogpost post manager and google is full of utils to make your net experience more control by them!


So at this moment I am using.



Blogspot... where I publish (not very often) what I do (that means I need to do more).
Must have? Not really, you can use other servers.



Docs. Will become a must very shortly. Word and Excel like formats available on the web? No more loosing files due hard disk failures? No more forgetting the file at home? Sharing it with a team? Great features, a little concern about security (you would not put your company salary here yet) and would like to see a feature like automatic archive (imagine go back to all previous version of the same file).



Picasa. Having see how useful this is. Now you can have a blog and a flog?. I used to have Flirck (just testing on one of my first posts) but was limited on the amount of files per month or size. Let's see if this gives me the freedon (and remains FREE) to upload more files to share with family and friends.


Talk. Ok another hotmail messenger, yahoo messenger, icq, skype client kind of thing and I get lost between them. (I am using skype to test vxml, google talk never, hotmail messenger friends, yahoo meseenger work, icq I lost my account long time ago).
Must have? Not really Keep using your old clients and skype if you want to talk on voip



Calendar. A nice calendar to have on the web, maybe it can be connected to Orkut.
Must have? Yes if you want to get out of outlook calendar. Yahoo has another one but don't use it so much.



Desktop. This is a client install for search on my hd and add some gadgets (calendar) on my desktop (that looks a lot as Windows Vista gadgets.. the previous version had a white background).
Must have? Yes. Looking for files or emails is easier and faster.


Toolbar. Nice to have, just add features to your IE or Firefox.



Gmail. Once you create an account you can activate everything so not used atm but nice. Note that people used to pay for having one of the invitations to gmail when it was still on beta. The 1GB (or more) that provides is great but how many accounts does a person really needs. I wish they could all have pop3 like in the old days.


And that is not all, if you go to the google homepage and choose "more" (on the search bar) you have more things to install. I use a lot maps and images and remember that now google have youtube database of vidoes.