Archive for the ‘tutorial’ Category

My first lesson in GIMP image editor

June 1, 2010

Posted to youtube: This tutorial is VERY helpful. One suggestion: Where you mention ALPHA TO SELECTION it sounds like you are saying some exotic French word like “marchinent.” It took me an hour in Google to find a GIMP glossary which explained that you are actually saying “MARCHING ANTS” … so if you put a little pop-up in the video, then that confusion will be removed. But I watched your FAQ so I know you are overwhelmed with things to do.

NOTE: I have one other question. In the middle of the tutorial, you hover over one of the layer icons at the right and IT SUDDENLY ENLARGES. How do you make it enlarge briefly so that it is more readible?

ANSWER: I found my answer to the above question. If I left click on one of the right-most LAYER icons and HOLD down on the mouse button it enlarges.

I have a Twitter account called ReadGreatBooks which I never follow. It is automatically fed by my PLURK posts.

But now I have started following:


Miss Tricks | The Netherlands

because she is the author of a wonderful beginners tutorial on GIMP.

I am blogging this to say “Thanks” and also to relate my amusing experience (below.) I will create a tiny url of this blog post and post it in her Twitter: GIMPtricks

GIMP is a free open source image editing program which can do everything that Photoshop (proprietary $800) can do.

Here is her tutorial in Youtube:

Her English is excellent but there was one mystifying phrase which sounded like “marchients.”

Here is what I posted in Facebook:

Cant make out what she is saying.. around 4 minutes 53 seconds into the video..”I am going to be making a SELECTION around the text … clicking ALPHA TO SELECTION” … “its called a MAR-TI-ENS [this M word is what I cannot quite make out].” So if anyone plays this tutorial and can recognize this mysterious word and write it out as a comment, I would be much obliged. I the course of futile searching I did discover that a search on “ALPHA TO SELECTION” yields a number of other GIMP tutorial pages.

I searched and searched in Google, mostly on “ALPHA TO SELECTION” (which by the way yields many other useful tutorials).

I decided to search for GIMP GLOSSARY in hopes of discovering this mystifying term.

Here is the Glossary which unlocked the secret of the “MARCHING ANTS” –

Marching Ants –
The name for the dotted line which delineates a selection.

P.S. to Giri Alam on Facebook:

As I remember you are a big Ubuntu (GNU/Linux) fan. In the USA the job ads ask for experience in proprietary software such as Photoshop, Adobe In Design, Illustrator, etc. But as I will never be able to afford the $800 I decided I should just plunge in with the open source GIMP (and Scribus publishing software). It sounds like GIMP remains several releases behind Photoshop, but that just means I am using the Photoshop of several years ago. Switzerland and other countries have standardized on Linux for their school systems. I imagine that countries like India and Indonesia as well as African nations will make the Open Source choice for various practical as well as aesthetic reasons. I have even found links on how to make GIMP look and feel like Photoshop (to WEAN people away!) The fact that Gimp can be automated and customized with 3rd party plugins and Perl scripts seems like a big plus.
5:22pm GMT-5

I have watched the tutorial about 20 times, and have redone the project 6 times in an effort to really understand and remember what must be done in the exercise.

Here are the cheat notes that I need to jog my memory:

text border
right click
alpha selection
grow (by 2 pixels)
click on text border layer
change foreground color to white
click on BUCKET FILL icon
click on text image GIMPTRICKS
select NONE (to see results)
to add drop shadow
Light & Shadow
Drop Shadow (untick resizing box)
create a new layer called BORDER
select all
select SHRINK (20 pixels)

I will continue to repeat this exercise until I do not have to look at any notes.


What is actually happening when I click on the TEXT layer and click ALPHA SELECT (and then click on the text border layer…) I suppose I am PASTING what has been selected into the text border layer, but I am not certain.


Creating and storing passwords

January 4, 2010

Here is my trick for creating long, strong, memorable passwords. Lets say you like history. You pick 1066 for the Battle of Hastings and you pick Caesar’s “veni vidi viki” (this would also work with the Gettysburg Address or Lords Prayer and
the prime numbers) now veni1vidi0viki66 and to make it even stronger veNi1viDi0viKi66, capitalizing each third letter. If you need to change passwords monthly, you can rotate through the Lord’s Prayer, taking three words at a time and merging with the year you were born.

Or, you can get a free account at
pick some sign-in name like cinderella or superwoman and a long strong memorable password (using technique described above). Now you can store hundreds of passwords, links, email addresses, notes. It is encrypted on your client side BEFORE it is sent to their server. Clipperz people dont know WHO you are or what you store. You can invoke its random password generator.
You can access it from anywhere on the Internet. You can also download a read-only version to a memory stick or hard drive for when you are off line. And there are 2 methods to back up and restore.

2nd Attempt Ubuntu Multiple Local Sites Apache2

December 2, 2009

Note, my user name is always bryan, because he gave me his old machine, with a password on it, so I just keep everything the same, for convenience.

Step 1:
sudo chown bryan /var/www

Step 2: having given myself rights with that above chown command
I should be able to create folders withing /var/www
e.g. /var/www/proj1

and then invoke the 1st pg of the application by typing into the browser


I shall test this, and place the exercises from Head First PHP MySQL into a folder /var/www/proj1 and see if the exercise works

The only question that remains in my mind is whether the exercise pages will work unchanges, honoring /var/www/proj1 as the root, or whether I need to issue some other command to MAKE proj1 the default directory, or whether I have to hard code paths into all the exercise pages, which, if I do, would kind of defeat the purpose of developing a project in a folder, and then transparently moving it to some other location.

What follows is the raw text from the IRC channel where I asked my questions. I sorted through it to come up with the above, step-by-step procedure to achieve my goals.

+++ the steps WORK AND here is my email feedback to the person that gave me the valuable guidance:

You saved me HOURS of grief, and made it possible for me to now make rapid progress with my HEAD FIRST book. And Yes, I want to pay $60 for the paperback, because I want to be able to take it in the bathroom or on the subway. I want to really let all this PHP MySQL stuff sink in, and become second nature, for the simple reason that I am sick and tired of years of bondage to Micr0$oft and products like Access (or worse VISUAL FOXPRO which they finally dropped as a supported product). I figure that php mysql apache is the best choice for me, because I can kind of understand whats going on, and there is tons of documentation to make it work, but forum and IRC support (like YOUR excellent patient help).

You are CORRECT, THAT YOU did tell me what I need to know, but you did not realize that as a beginner, I cannot recognize the right answer UNTIL certain concepts sink in. Once I did the CHOWN trick you showed me, then I could navigate with the GUI, to /var/www and create a folder, proj1. Then I could navigate to my Desktop to a folder where I put two of the Head First exercises, but with the word TEST inserted in each field, so I would KNOW that it was these executing, and that I was not somehow executing the same original pages in /var/www . Now, I could NOT get Desktop/testwww/report.html to run and then correctly post with report.php and see the added record in the MySQL database with phpmyadmin.

BUT, as soon as it dawned upon me the simple steps you were saying, I copied to cloned files to /var/www/proj1 went to my folder and entered localhost/report.html, actually SAW the cloned version come up with TEST prefixed to each field, I entered data prefixed by TEST so I would see it in the mysql table,… pressed submit, and BINGO, when I did localhost/phpmyadmin and signed in, there was the new record in the sql table.

SO, you see, for a beginner, the Head First book leaves out a VERY IMPORTANT CONCEPT, about creating folders for projects in /var/www and doing the CHOWN trick once, up front, to allow access.

THANKS! And, as you will notice from my blog, when I asked the same question in IRC last week, someone thought that I wanted to do that complex business (which was CORRECT, if I wanted to access separate projects from some remote client, BUT unnecessary for my simple desktop purposes).

And here is the RAW irc chat to illustrate what a beginner may have to do to sort out the proper answers from a technically savvy person trying to help.

I am trying to set up several websites on my desktop ubuntu under Apache 2, and I have a detailed tutorial, but it says I need my IP address, but

sudo ipconfig gives me an internal, and gives me an external, any clues as to which is required, thanks

[04:08] WilliamBuell: what IP address? where do you want to reach them from?

(the answer, as it turns out, which I did not make clear to the IRC channel, is that I only want to make this stuff work from my DESKTOP, not from some remote client on the internet, which might require some ip address)

[04:08] thanks I am following this excellent tutorial on apache2 multiple sites

[04:09] I have Ubuntu desktop with LAMP installed, but can only get php pages to work in /var/www

[04:09] I want to be able to have several projects i.e /home/proj1

[04:09] WilliamBuell: that’s where they should go

[04:09] why not put them in /var/www?

(this turns out to be an EXCELLENT QUESTION!)

[04:10] the tutorial mentions IP address but does not indicate whether it is EXTERNAL from or local from

sudo ifconfig

[04:10] BECAUSE I would need a different name for each html and php page

[04:10] WilliamBuell: where are you trying to access them from? you shouldn’t need an ip address at all most likely

[04:11] suppose I am following several tutorials, with several pages with same name, they cannot BOTH be in /var/www

[04:11] why not /var/www/proj1, /var/www/proj2?

[04:11] and i dont know how to access some search path that would support /var/www/proj1

[04:12] or does apache2 lamp automatically honor any folder within www

[04:12] yes, automatically http://localhost/folder

(above is the KEY CONCEPT that I needed)

[04:12] and, if so (i am total beginner) ….

aha…. localhost/folder seems to make sense to me

[04:13] next question in TERMINAL does it matter HOW i create those folders, i mean do i have to be sudo or root

[04:13] do permissions matter?

[04:13] what would the proper command be to create the folder in /var/www would it be mkdir /home/www/
[04:14] with sudo mkdir /home/www/

[04:14] except it would be sudo mkdir /var/www/

[04:14] if i follow along with this one tutorial

[04:15] but that tutorial is talking about MULTIPLENAMEHOST

[04:15] WilliamBuell: you can cheat and do sudo chown USER /var/www

( the above is the OTHER KEY CONCEPT that I require.. and if it works, then I can navigate in a GUI file folder system and create project folders at will, without fussing with sudo permissions)

[04:15] it sounds like you are saying if I simply create a folder in /var/www/proj1 that it will work from localhost/proj1

[04:15] WilliamBuell: only on a desktop though
[04:16] WilliamBuell: correct

[04:16] i am a 60 year old total beginner, so i dont need hints like “you can cheat” I am truly lost

[04:17] so i should say from TERMINAL sudo chown bryan /var/www but… HOW DO I MAKE THE FOLDER PROJ1
[04:17] i mean the chown command is changing rights or something

[04:17] chown changes the ownership of the file
[04:17] nothing else

[04:17] WilliamBuell: oh, one you own the folder, you can go into /var/www and make whatever you want 🙂

[04:18] in other words, from terminal, what is the command to correctly creat /var/www/proj1 with all the proper user rights for apache2 to work

[04:18] BUT, whenever i go into /var/www it doesnt let me do stuff i dont think unless i am root admin

[04:18] WilliamBuell: the support here is not too great… might want to try a support channel

[04:18] WilliamBuell: yeah, that’s why I suggested owning the folder

[04:18] yeah, but you guys know this like the back of your hand

[04:19] once you do that, you can mkdir in /var/www all you wnat

[04:19] and you just cant give a beginner the command to create the folder

[04:19] WilliamBuell: if we did we would have told you straight away

[04:19] so, you say , create the folder, and then use chown to change ownership?
[04:19] and then everything will be honkey dory ok

[04:19] WilliamBuell: no, chown /var/www, then you can create all the folders you want without sudo

[04:21] ok so sudo chown bryan /var/www gives me the rights, then i should be able to navigate with the gui and create proj1

[04:21] WilliamBuell: yep 🙂

[04:21] aha… now that is making sense to this beginner brain
[04:22] and i WONT need to mess with that other tutorial
[04:22] since i only want stuff to work locally…

[04:22] WilliamBuell: right no apache configs 🙂

[04:23] BUT, second question,…. if i make a bunch of php html pages in /var/www/proj1 do I need explicit paths to the other pages, or will they default to that local directory

[04:23] and is there some command i need to issue to make /var/www/proj1 a local directory for that session

[04:23] WilliamBuell: not sure I’m following

[04:23] WilliamBuell: not sure you’re sure what you’re asking
[04:24] http://localhost basically loads what’s in /var/www

[04:24] ok… you are telling me if i do all this then from browser .. i type localhost/proj1/report.html and it comes up

[04:24] yep

[04:24] but INSIDE report.html it is going to POST to report.php

[04:24] if you have /var/www/proj1/report.html

[04:24] yeah, default is current folder

[04:24] but, it will know enough to look in var/www/proj1 without
[04:25] well, it looks in http://localhost/proj1/report.php
[04:25] or rather posts to

[04:25] aha, and the very act of launching the project as localhost/proj1 is sufficient to make that the local directory for the entier project session

[04:25] which should correspond to /var/www/proj1/report.php
[04:25] if so, that makes sense

[04:25] WilliamBuell: not sure you quite get URL vs local path
[04:25] it’s not for the session

[04:25] in other words, i dont have to HARD CODE specific addresses in each html and php…

[04:26] that’s just how it it

[04:26] WilliamBuell: that you have to do
[04:26] i want to develop something in /var/www/proj1 test it , but have it work if i move it somewhere else

[04:26] WilliamBuell: why not just have a .php file?
[04:26] why have anything .html?

[04:26] well, i dont know enough to understand your hint

[04:26] WilliamBuell: a PHP file can have HTML and PHP in it

[04:27] because, the tutorial book i am following starts with report.html posting with report.php… but now i see what you are saying

[04:27] WilliamBuell: what book?

[04:27] but, php or html, is not germain to my path question at hand

[04:27] it is a great book called HEAD FIRST php mysql, which leads you step by step, including cookie sessions

[04:28] i have in my blog links to the book

[04:28] i am buying the book for $60 tomorrow, and i already downloaded a zip file of all the source code exercises from the publisher

[04:29] WilliamBuell: do you have any programming background and are you interested in mysql>??

[04:29] i started programming in 1979, through the 1980s, with stuff like cobol, rpg, then basic, then pick

[04:29] WilliamBuell: BTW, you know you can get it as an ebook for $36

[04:29] i am not a moron

[04:30] i just have some simple questions which in reality have very simple answers, but getting straight answers from techie types is like pulling teeth
[04:31] WilliamBuell: do you like head first series?

Sending Email from PHP in Ubuntu Desktop

November 28, 2009

Re: Path of Sendmail
Open synaptic and search for sendmail. Then install it from there.

Sendmail will then be found in /usr/sbin/sendmail

; For Win32 only.
;sendmail_from =

; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
sendmail_path = /usr/sbin/sendmail -t -i

or possibly:
sendmail_path = /usr/sbin/sendmail -i -t
sendmail_path = /usr/lib/sendmail -i -t

MY PHP.INI file is located in /etc/php5/apache2

I go into TERMINAL and type

sudo gedit
It prompts me for the root password
and then I am in gedit with superadmin rights and I can navigate to the php.ini file and change it. The very first thing I ever did was to open php.ini and do SAVE AS to original.php.ini so I can always revert back to the default.

NOTE: THE synaptic mgr install of POSTFIX will remove SENDMAIL.
what worked for me was:
apt-get install postfix

and then edit php.ini
Relevant lines in /etc/php5/apache2/php.ini:

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from =

; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
sendmail_path = /usr/sbin/sendmail -t -i

and edited /etc/postfix/ and put my correct external smtp server
relayhost =

restart the services that had configuration changes

During the postfix installation, I chose the Internet Configuration. If you hover the mouse over the choice field, a tool tip will explain all the choices. I noticed that it offered me bryan-desktop as a name for the system, so I stuck with that, since it might be required, and I have no idea how to find the name of my system.

Now all I need to do is TERMINAL sudo gedit

and edited /etc/postfix/ and put my correct external smtp server
example – relayhost =

(but mine will I THINK be

restart the services that had configuration changes

OF COURSE, the first thing I do when I gedit is to
SAVE AS, close, and reopen

When I make the above mentioned chage to the file, I find:

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.


There are some significant differences between the Debian Postfix packages,
and the source from upstream:

1. The Debian install is chrooted by default.
2. Dynamically loadable map support.
3. For policy reasons:
a. SASL configuration goes in /etc/postfix/sasl
b. myhostname=/path/to/file is supported (and used) in
4. smtp_line_length_limit defaults to 0, instead of 990, in absolute
violation of the RFC. Note that mailers in the path will still
potentially split the line, though. This will be removed at some
point in the future.
5. IPV6 support is enabled: postfix listens on ipv6/ipv4 by default,
(see: inet_protocols)
6. TLS/SASL support is enabled.
7. rmail comes from sendmail, not from postfix.
8. The upstream is delivered as /usr/share/postfix/,
rather than cluttering /etc/postfix/ with comments.

Known caveats:
1. The dynamically loadable modules are not found in the chroot.
Therefore, proxy maps may require you to copy the appropriate shared
object into the chroot if you chroot the proxy service in
2. Some map types (and SASL support) require some extra configuration
(beyond what upstream indicates) to run inside the chroot. The simplest
solution for the maps is to use the proxy service, which is not chrooted.
SASL is a bit more complex, and is on the TODO list…
3. Note that the chrooted daemons open /dev/log before chrooting, so if your
syslog daemon is restarted, the daemons will be unable to reconnect to the
syslog socket, and hence being unable to log. The postfix package provides
a config snipped for the rsyslog daemon in /etc/rsyslog.d/postfix.conf to
also open a socket in /var/log/postfix/dev. For other syslog daemons, you
will also have to restart postfix after restarting the syslog daemon, or
configure it to open an additional socket.
a. For sysklogd (the default in Debian versions prior to Lenny), add
SYSLOG=”-a /var/spool/postfix/dev/log” to /etc/default/syslog.
b. For inetutils-syslogd, add SYSLOGD_OPTS=”-a /var/spool/postfix/dev/log” to


Ubuntu Apache Path Question

November 28, 2009

I successfully installed LAMP (see another blog post here for details).

I KNOW that I can place files in /var/www such as .html and .php and .css and those files will be found and executed whenever I launch the browser and type localhost/report.html (i.e. if report.html is in /var/www it will run, and if it calles report.php and that file is in /var/www it will execute.


Suppost I want to have different folders holding different applications. What do I need to do to guarantee that Apache and PhP and MySQL will execute properly when invoked by files in a different folder.

I did find THIS in google:

There’s a ‘doc_root = ‘ in php.ini.
There’s also ‘DocumentRoot “drive:/path/”‘, ‘

and ‘DirectoryIndex index.html index.php otherfile.ext’ in the

Does that mean that I should simply edit php.ini and put a search path?

SOMEONE IN KUBUNTU IRC CHANNEL told me I should google. Then they said they do not know too much but it is probably in php.ini which is a well documented file, so I took a second look and found:

; About php.ini ;
; This file controls many aspects of PHP’s behavior. In order for PHP to
; read it, it must be named ‘php.ini’. PHP looks for it in the current
; working directory, in the path designated by the environment variable
; PHPRC, and in the path that was defined in compile time (in that order).
; Under Windows, the compile-time path is the Windows directory. The
; path in which the php.ini file is looked for can be overridden using
; the -c argument in command line mode.

THIS LEADS ME TO BELIEVE THAT IF IN TERMINAL I issue cd /Desktop/testwww that perhaps that becomes the “current directory” and hence, in the browser, issuing the localhost/report.html would now look in that current directory. I will test out this theory.

I AM MAKING SLIGHT PROGRESS, because I created on Desktop testwww and I discover that the following link in the browser will open a copy of my file


so now all I need to do is copy the php there and see if it executes ok.

So far, it does not seem to work!?

[22:59] WilliamBuell: Aye; you want to go to /etc/apache2/sites-enabled/
[22:59] MenZa: that does sound familiar
[22:59] WilliamBuell: Create a config file, i.e. blah.domain.conf
[23:00] WilliamBuell: I’ll give you one of my config entries so you have something to work with

<VirtualHost *:80>
DocumentRoot "/var/www/projects.lassehavelund"
<Directory "/var/www/projects.lassehavelund">
allow from all
Options +Indexes

The Importance of Backing Up

November 23, 2009

This is not quite as eloquent as “The Importance of Being Ernest”
but it is far more important.

My total Ubuntu crash sobered me to the realization that I am not backing up everthing that I should be.

For one examble, my bookmarks on

If I click on settings there is an EXPORT feature. I download, right click on the download, choose OPEN CONTAINING FOLDER and then copy it to my USB flash drive, to a folder of MYBACKUPS to a folder called DELICIOUS to a folder dated with todays date 20091123.

And Oh, by the way, I am in Ubuntu, and they are so clever to have the time and date right on the desktop at the upper right (so unlike Windows, where I have to hover over the Date on the lower right taskbar, and half the time it does not show!)

And it never occured to me that my Ubuntu email server offers a backup and restore method.

After I finished backing up Evolution Email client (to a gz tar zip on my flash drive USB), I noticed some instability, and closed and then relaunched Evolution, but now it seems to be OK.

My post at Avira Antivirus Support Forum

November 23, 2009

Just today I received the Install Disc from your fulfillment center in Illinois, which is very speedy. I felt I would be wise to protect my investment with the small additional expense of an install CD.

The updates are super fast with the Premium Suite, and the Firewall is much less “in your face” than other firewalls which is good for my wife. I am a programmer and I enjoy interacting with a verbose firewall, but most non tech folks do not.

My question is this: In the event that her old machine crashes, I presume that I am free to reinstall Avira on a replacement machine, and that my only obligation as a user is to have it installed and active on only ONE machine at a time. Am I correct in these assumptions? I assume that every time Avira downloads or scans, your servers are aware of the license and IP address and all of that, which would make sense to control the legitimate use of the license and prevent abuse.

Several other machine in my extended family are running free Avira, and I want to report that updates are very fast and reliable. I have only had to resort to a manual update perhaps twice in the past 2 months, and those are quite speedy when they are necessary.

I post what follows simply in the spirit of friendly readable chat because we do get to know each other in these forums (but I am not seeking Ubuntu support in this post)

Regarding my Ubuntu experiments, last night at midnight, I totally crashed my Ubuntu install by experimenting with two different forms of backup,, one a tar to root, and the other a Simple Backup installed via synaptic manager, which places a mysterious folder /var/backup which is unmoveable except by some form of sudo command. I think I crashed it because I did a sudo Nautilus to launch the file manager GUI with root privileges. It did work and let me delete the /backup.tar.gz, but when I rebooted, I got fatal error messages. I realize that this forum is not the place to ask for help on such matters, but I just wanted to also let reader know my latest adventure. I stayed up all night and in 7 hours did a complete Ubuntu reinstall, based upon my elaborate notes in my wordpress blog. And I took elaborate notes on the step by step REINSTALL process, which was a better install because I learned from my first mistakes and so perhaps it is a sounder system now with ext4 rather than ext3, and the installer did its own disk format and partitioning, which did not occur during the first install.

I found the instructions for Avira install under Linux too daunting, involving kernel rebuilds, which I yet lack the skills to undertake. I did find an easy Avast install with a .deb (Debian) which is what Ubuntu likes. But it did some rather strange things both in my Wubi Ubuntu under Windows and my pure Ubuntu machine. I have decided that I do not really need antivirus or firewall on the Ubuntu machine, since each exotic program and install runs the risk to trashing the system. As far as I can see from my readings, the main reason for a linux virus scan is to protect Windows users who might receive emails, but I do not forward many emails with attachments. And Ubuntu is suppose to be farily sound with regard to firewall issues by the default nature of its install. And, now that I know I can restore the system in 7 hours, I can somewhat affort to risk not doing system backups and just backing up as much data as possible, or if I am doing a lot of MySQL Apache PhP, then just building scripts as I go, which would automatically recreate databases.

I do think I will get a large (64 gig) flash drive and practice with their option for an Ubuntu bootable flash, once I have combed google for feedback on the procedure..

Thanks, Avira Forum Members, for all your great help. I am spending a lot of time now in IRC Ubuntu chat using Konversation client, and there are usually 300 people in the channel from around the world at any time, so I take every opportunity to praiise Avira and this forum.

IRC log archives

November 22, 2009

/msg nickserv register password (your email address goes here)

7:00] [Notice] -NickServ- ***** NickServ Help *****
[17:00] [Notice] -NickServ- NickServ allows users to ‘register’ a nickname, and stop
[17:00] [Notice] -NickServ- others from using that nick. NickServ allows the owner of a
[17:00] [Notice] -NickServ- nickname to disconnect a user from the network that is using
[17:00] [Notice] -NickServ- their nickname.
[17:00] [Notice] -NickServ-
[17:00] [Notice] -NickServ- For more information on a command, type:
[17:00] [Notice] -NickServ- /msg NickServ help
[17:00] [Notice] -NickServ- For a verbose listing of all commands, type:
[17:00] [Notice] -NickServ- /msg NickServ help commands
[17:00] [Notice] -NickServ-
[17:00] [Notice] -NickServ- The following commands are available:
[17:00] [Notice] -NickServ- GHOST Reclaims use of a nickname.
[17:00] [Notice] -NickServ- GROUP Adds a nickname to your account.
[17:00] [Notice] -NickServ- UNGROUP Removes a nickname from your account.
[17:00] [Notice] -NickServ- IDENTIFY Identifies to services for a nickname.
[17:00] [Notice] -NickServ- INFO Displays information on registrations.
[17:00] [Notice] -NickServ- LISTCHANS Lists channels that you have access to.
[17:00] [Notice] -NickServ- REGISTER Registers a nickname.
[17:00] [Notice] -NickServ- SET Sets various control flags.
[17:00] [Notice] -NickServ- RELEASE Releases a services enforcer.
[17:00] [Notice] -NickServ-
[17:00] [Notice] -NickServ- Other commands: ACCESS, DROP, HELP, ID, LISTOWNMAIL, LOGOUT,
[17:00] [Notice] -NickServ- VACATION, VERIFY
[17:00] [Notice] -NickServ- ***** End of Help *****

here is how to set a new password:
/query NickServ set password hello_world …

Ubuntu Backup/Restore Plans

November 22, 2009

Konversation IRC chat client, every day I am in Kubuntu chat with 300 members active at any time (well logged in but not necessarily all talking)

I need to study/experiment with complete backup restore techniques

someone gave me this advice

for the mem stick, just mount it (i.e. on /mnt/bckstick) then tar f /mnt/bckstick/.tar

I must google and expand upon it

Today I do sweeping and mopping, but I shall add to this post, and

I also used synaptic manager to install a simply gui backup restore and i shall test that also, but a huge tar command is attractive to me.

In Kubuntu IRC (Konversation is my client) one may query bot with !
and !info

!info backup gave several links

The most useful looking link is

Brute Force Solution Using repeated SED commands

November 22, 2009

Note: there are many on line guides and tutorials on the SED filter command in Linux.

Here is just one such guide:

The above link has a tutorial section and one very useful
tutorial is at this line:

Yesterday, I decided to find an IRC channel which discusses Ubuntu.

I looked in the synaptic manager and found an install called Kubuntu

It was a simple, quick install, and gave me a wonderful GUI IRC control panel, and automatically directed me to a forum discussing Ubuntu with 300 members present in the channel from around the world.

I made friends with a fellow in Brazil who was trying to get his ethernet card to work.

Konversation has an option to continuously LOG all conversation to disk.

I leave Konversation on all day long and collect the log. But the log is filled with extraneous lines about people Joining the channel, Parting the channel, changing their Nick, etc.

I wanted to find a way, using Linux commands, to filter out everything extraneous and leave only what people actually posted, so that I may more easily study it and learn some new thing.

I looked through my Linux Pocket Guide from O’Reilly. I also googed a bit, and decided to use the SED command.

I think the important thing to remember for any beginner is that there is more than one way to skin a cat. A very experienced programmer would know how to perform this task in one line, and that one line would probably look like an equation from quantum physics, and be difficult to understand. BUT you can also accomplish your desired task using many simple steps; many simple commands each of which is easy to understand and visualize.

The following code will work and do what I want when I paste it into the TERMINAL.

sed ‘3d’ /home/bryan/logs/logtest/test.log > output1.log
sed ‘/Join/d’ /home/bryan/output1.log > output2.log
sed ‘/Mode/d’ /home/bryan/output2.log > output1.log
sed ‘/Part/d’ /home/bryan/output1.log > output2.log
sed ‘/Quit/d’ /home/bryan/output2.log > output1.log
sed ‘/Nick/d’ /home/bryan/output1.log > output2.log
sed -e ‘s/\[[^]]*\]//g’ /home/bryan/output2.log > output1.log

IN AN INSTANT AND PRODUCE output1.log as the desired result.

For ease of discussion, I shall number each line (but do not include the numbers in what you paste into TERMINAL for execution)

1. sed ‘3d’ /home/bryan/logs/logtest/test.log > output1.log
2. sed ‘/Join/d’ /home/bryan/output1.log > output2.log
3. sed ‘/Mode/d’ /home/bryan/output2.log > output1.log
4. sed ‘/Part/d’ /home/bryan/output1.log > output2.log
5. sed ‘/Quit/d’ /home/bryan/output2.log > output1.log
6. sed ‘/Nick/d’ /home/bryan/output1.log > output2.log
7. sed -e ‘s/\[[^]]*\]//g’ /home/bryan/output2.log > output1.log

The first line was my initial test of SED.
First, I copied the main IRC log to test.log
Next I issue line 1, a sed command which OMITS the first three
lines of test.log and outputs the rest to a file called
output1.log in my home directory.

Next, line 2 omits every line which has the string /Join/ and outputs the results to output2.

Line 3, omits every line which has the string /Mode/ and outputs the results to output1.

Line 4, omits every line which has the string /Quit/ and outputs the results to output1.

Line 5, omits every line which has the string /Part/ and outputs the results to output2.

Line 6, omits every line which has the string /Nick/ and outputs the results to output1.

Line 7 was the most difficult command to find in GOOGLE.
Line 7 DELETED all information occuring between left bracket [ and right bracket ] which in essence deletes all the time and date stamps.

For example, the raw log file looks something like this example excerpt:

#kubuntu (
[Friday 20 November 2009] [17:54:37] Topic The channel topic is “Official Kubuntu support | Kubuntu 9.10 Karmic Koala released! | Download your free Kubuntu 9.10 CD iso: | For pressed CDs, please ask your LoCo Team | KDE 4.3.3 for Karmic in the backports: | FAQ: | Pastes: | Chat in #kubuntu-offtopic | Please respect the Ubuntu IRC guidelines:;.
[Friday 20 November 2009] [17:54:37] Topic The topic was set by Mamarok on 2009-11-04 14:33.
[Friday 20 November 2009] [17:54:37] Channel [freenode-info] please register your nickname…don’t forget to auto-identify!
[Friday 20 November 2009] [17:54:38] Join giuseppe__ has joined this channel (
[Friday 20 November 2009] [17:54:39] there must be a server which is listening to that port. If not: what will happen to connections to the port?: nothing
[Friday 20 November 2009] [17:54:43] Mode Channel modes: topic protection, no messages from outside, no colors allowed, L, f, J
[Friday 20 November 2009] [17:54:43] Created This channel was created on 2006-11-26 01:42.
[Friday 20 November 2009] [17:55:01] so i think about to start kubuntu on sdb in virtualbox and copy file for file to kubuntu and try it out
[Friday 20 November 2009] [17:55:11] Join taki_ has joined this channel (n=quassel@


Sorry, I don’t know anything about hyperterminal
!hyper terminal
goes_de: no, not the same kde-folder. Thats wrong… suse have some individual configs
Sorry, I don’t know anything about hyper terminal
I did one Wubi install of Ubuntu on a Windows XP, and then a full Ubuntu on a Gateway tower, and now I am trying to connect via Ethernet DSL
goes_de: copy and paste will break kubuntus kde
DTsan: what exacly are ya looking for?
I tried installing iirc with synaptic manager, but no obvious way to launch it, so Konversation is much better, right on the Internet menu
does everyone here use Ubuntu? (is this a dumb question?)
WilliamBuell: I’m forced to use ubuntu at school
avihay: i need a program that acts like Hyper Terminal, perferable one that does rtv995 emulation
I am blogging step by step with each thing do in Ubuntu, so I will have documentation, and can remember later
WilliamBuell: i have found that not everyone but most do i still can’t stop laughing ubuntu kubuntu not much differnce just window manager
DTsan: something that will talk with the serial port?
ohhhh i see, kubuntu is a seperate flavor of, what, debian
does anyone here blog about ubuntu, you are welcome to look at my blog, .. it might help some beginners out
no, work over lan
to an ip address
like telnet?
avihay: where is your school located, what state, what country, I read that some countries like Switzerland are making Linux manditory
well ubuntu used to be based off of debian but now 99% on there own WilliamBuell


One more knowledgeable programmer in IRC suggested the following to me:

sed -r ‘/(Join)|(Mode)|(Part)|(Quit)|(Nick)/d’ logfile
will delete out lines with Join, Mode, Part, Quit or Nick in them