Friday, October 23, 2015


Hello All...

gbrainy is a software on OSS to keep our brains up and running...

Install the software via synaptic package manager or via command line..

It has 4 categories or different levels of games- Logical, Mental calculations, memory trainers and verbal challenges ...

Check out the snapshot for more clarity..

Play it and keep your brains working..
Ananth S Gouri

passwd - 2

Dear All,

Continuing from the last post of "mkpasswd"

U folks need to use 'passwd' to change the password.

I can simplify things this way:

Say if your username on a UNIX machine is "telsaT"

and you have this password "test123"

mkpasswd helps you to generate random passwords... Useful many a times when we want to change our passwords on servers frequently...

As the root user - you can issue the command mkpasswd

Then give it as an input to passwd - again a command for which you need root privileges...

Similar to the command mkpasswd - some linux distributions offer a command called makepasswd

The command usage of makepasswd is:

makepasswd - which generates a random password

You can generate a random password of given length - with this below command:

makepasswd --chars 20

You can also generate a series of random passwords with the command:

makepasswd --chars 20 --count 5

Hope this post is interesting to some of you...

Thanks & Regards,
Ananth S Gouri

Thursday, October 22, 2015

Lex and Yacc

Hey All,

This post explains how to install lex and yacc onto your Linux distros and how to run small programs.

For Debian based systems - there is a package called Flex. Install it. This is the alternative for lex. Here you go - the definition from Synaptic itself:

A Flex generates as output a C source file, lex.yy.c, which defines a routine yylex().  This file is compiled and linked with the -lfl library to produce an executable. When the executable is run, it analyzes its input for occurrences of the regular expressions. Whenever it finds one, it executes the corresponding C code.

Similarly to work yacc - there is tool called Bison. Install it using synaptic.

Or you can install it via cmd line issuing the command:

sudo apt-get install flex bison

After installation, you can execute the attached program [see dropbox link -] for counting the number of consonants and vowels in a given input.

Run the lexical analyzer to create tokens from the program - a.l

Issue the below commands:

[1]flex a.l

This would create a file called lex.yy.c - A C file. Compile this C file to get your executable

[2]cc lex.yy.c -o al -ll

Finally run the executable:

[3] ./al

You should not be able to type input to the program

Type "Linux" [without quotes] and press enter.

Type Ctrl + D to see the output as shown in the below diagram.

The next post will help you to figure out how to run a yacc program.

Till then, keep reading.

Ananth S Gouri

Ubuntu 15.10 aka Wily Wirewolf - released

Dear All,

The Canonical Ubuntu 15.10 is released. Code named wily wirewolf - the amd64 version of the OS is around 1.2 gb in size.

You can download the various versions of the OS from the above link.

Also this below link provides the new features of this release:

Check it out and let me know if any one wants the DVD to shipped inside Karnataka. I can help you out for free.

PM your addresses !

Ananth S Gouri

Wednesday, October 21, 2015

Manipulating a problematic Canon CAPT driver in *nix systems

Hey Fellas,

Its been a while since I am blogging. Sorry for that. Currently I am using Debian 8.1. This is FYI !

This post is for people who have a Canon LBP**** series working printer in UNIX based systems.

If you have earlier read posts like this :

and found difficulty in manipulating ccpd - the daemon service - this post is specifically for you folks...

Canon CAPT ccpd - can print iff there are equal to or more than 2 pids...

This could be verified with the command -

sudo /etc/init.d/ccpd status 

which should show minimum of 2 pid values.

If in cases where there are less than 2 pid values, that is when the trouble starts.

You as a root user can stop the service by issuing the below command:

sudo /etc/init.d/ccpd stop

But some times this would not stop the service.

Issue this below command [1] to completely kill the service and then restart the service with the next command [2]

1. sudo pkill -9 ccpd
2. sudo /etc/init.d/ccpd restart or sudo /etc/init.d/ccpd start

After issuing the above commands - verify the status by this command related GUI

captstatusui -p LBP2900 [if your printer is LBP2900 & for other names change accordingly]

Hope this small post helps you to some extent...

If you are all facing issues with installing ccpd for your respective *nix lemme know...

Ananth D Geek !

Tuesday, December 2, 2014

Installing rtl8723be driver for a working wifi

Hey All,

If you own one of those latest Laptops and especially from Lenovo, there are chances that you have Realtek Network controller....

To check the driver your laptop needs:

Issue the command: lspci and grep for Network
lspci | grep Network

If the above command output is:

02:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device b723

Then follow the below procedure of installation:

1. First download the file given in the below link:

2. Extract the zip file

3. cd rtl8723be

4. Inside the folder issue these commands:

-> make
-> sudo make install
-> sudo modprobe rtl8723be

5. Your wifi access points should be now visible for login/auto internet.

Thanks and hope this helps you - pitch in your comments.

Ananth S Gouri

Monday, December 1, 2014

Creating a screencast in Linux

Hey All....

This post explains how to create video tutorials or a screencast in Debian based distributions.

You have too many softwares on the OSS world. But this procedure seems to be the apt way of creation.

You require these to be installed before quickly going through this post:

1. audacity
2. avidemux
3. kazam

Install 1, 2 and 3 using synaptic package manager or with the commands

1. sudo apt-get install audacity
2. sudo apt-get install avidemux
3. sudo apt-get install kazam

Steps to follow:

1. Start kazam from the run mode: 

Disable both Sound from microphone and Sound from speakers
Next capture the full screen, or the window or the area you want to cover.

Save the file in your videos - rename the file from the default kazam timing nomenclature.

2. Simultaneously start audacity and speak along while the video recording / screen recording is taking place. Save your file as mp3.

[Connect your mic and make sure your mic settings are selected in the dropdown of the audacity. ]

How to create a clear Audio file?

You need a good mic first. No matter the quality - there seems to be many a times noises like hiss, buzz or background noises.

To remove these noise:

Copy the original mp3 - duplicate it to not to lose the original file.

Copy the noise part of your audio and select Effect -> Noise Removal tool: from the top pane of audacity and click the button - Get Noise Profile

Then again Ctrl + A to the whole audio clip and again select Effect -> Noise Removal -> and click ok.

Save the new file next to your video file.

3. Last part is to blend both into 1 single piece.

This is where avidemux comes into picture.

1. Open the video first as input
2. Next open the audio in mp3 format as output
3. Save the project as either avi / mpeg format

That's it ! Go test your video !

Let me know your thoughts about screencast creation!

Ananth S Gouri