Every action there is equal and opposite reaction.

Latest

Ubuntu Tip: How To Launch Programs In The Background From A Terminal Window

ubuntulogo.jpgWhen running programs from an terminal window in Ubuntu, the program process will run in the foreground, occupying the terminal session that started the program. Until the program ends or is closed, you can not start other applications as long as this process is running in the foreground. While you can open another terminal window or use the screen command, Bash shell provides an easier function known as job control that will allow multiple programs to run in the background and return control to the terminal window on Ubuntu.

To use job control and allow programs to return control back to the terminal window, commands entered should be followed with the ampersand character &For example, you want to open Firefox. From the command line you would type:

firefox &

Firefox will open in the background and the terminal window control will be returned allowing you to continue working in the terminal window. If you want to open another program or run a script, you can enter the command follow by &

For longer running programs started in the background, which do not need user input, job control commands can be executed that can show status, suspend, bring a program to the foreground, and return to background.

In the screen shot below, Firefox and Terminal server client applications were started in the background. Executing the jobs command displays all running jobs started in the background.

ubuntujobs1.png

To bring the first program started in the background – Firefox, to the foreground and then suspend the process, execute
fg %1
followed by Ctrl+Z

ubuntujobs2.png

To resume Firefox in the background, execute bg %1

ubuntujobs3.png

Below are all options that can be used with job control:

jobs [-lnprs] [jobspec]
jobs -x command [arguments]

The first form lists the active jobs. The options have the following meanings:

-l
List process IDs in addition to the normal information.

-n
Display information only about jobs that have changed status since the user was last notified of their status.

-p
List only the process ID of the job’s process group leader.

-r
Restrict output to running jobs.

-s
Restrict output to stopped jobs.

If jobspec is given, output is restricted to information about that job. If jobspec is not supplied, the status of all jobs is listed.

If the `-x’ option is supplied, jobs replaces any jobspec found in command or arguments with the corresponding process group ID, and executes command, passing it arguments, returning its exit status.

bg [jobspec]

Resume the suspended job jobspec in the background, as if it had been started with `&’. If jobspec is not supplied, the current job is used. The return status is zero unless it is run when job control is not enabled, or, when run with job control enabled, if jobspec was not found or jobspec specifies a job that was started without job control.

fg [jobspec]

Resume the job jobspec in the foreground and make it the current job. If jobspec is not supplied, the current job is used. The return status is that of the command placed into the foreground, or non-zero if run when job control is disabled or, when run with job control enabled, jobspec does not specify a valid job or jobspec specifies a job that was started without job control.

Ctrl +Z Suspend (stop, but not quit) a process running in the foreground (suspend).

Ctrl +C Interrupt (terminate and quit) a process running in the foreground.

Ardour: A Multichannel Digital Audio Workstation For Mixing, Editing And Recording Instrument Tracks – Ubuntu

Ardour is a free cross platform digital audio workstation software that allows users to edit, mix, and record Instrument tracks. It can also be used as an audio mastering environment. Here are some of its features:

In this guide we will see how to install Ardour on Ubuntu 11.10/11.04, older versions of Ubuntu are also supported by Ardour.

Ardour Installation

To install Ardour on Ubuntu 11.10/11.04, run this command:

sudo apt-get install ardour

To get the latest version of Ardour (currently 2.8.12), you can upgrade the current version with this PPA:

sudo add-apt-repository ppa:pmjdebruijn/ardour-release
sudo apt-get update
sudo aptitude upgrade ardour

[Note]: If the aptitude command is not installed, use this command to install it: sudo apt-get install aptitude


Screenshot:

Install Cinelerra in Ubuntu 12.04 & 12.10

This simple tutorial is going to show you how to install Cinelerra & Cinelerra-CV (Community Version) in Ubuntu using PPA.

Cinelerra is a professional video editor and compositor for Linux. It is produced by Heroine Virtual, and is free software. Cinelerra includes support for very high-fidelity audio and video: it processes audio using 64 bits of precision, and can work in both RGBA and YUVA color spaces, using floating-point and 16-bit integer representations, respectively. It is resolution and frame rate-independent, meaning that it can support video of any speed and size. The application has a wide range of features.

Install Cinelerra in Ubuntu using PPA:

Cinelerra team PPA provides latest stable packages for Ubuntu 12.10, 12.04, 11.10, 11.04, 10.10, and 10.04.

  • To install Cinelerra, hit Ctrl+Alt+T to open up a terminal window, copy and paste this command into terminal and hit enter to add the PPA:
    sudo add-apt-repository ppa:cinelerra-ppa/ppa

    Then update and install:

    sudo apt-get update
    sudo apt-get install cinelerra

  • To install Cinelerra-CV, run following commands:
    sudo add-apt-repository ppa:cinelerra-ppa/cinelerra-cv

    Then update and install:

    sudo apt-get update
    sudo apt-get install cinelerra-cv

Once installed, launch from the dash home. For Cinelerra tutorials click here.

Enjoy!

controlling brightness in linux

  1. Open a terminal (Ctrl + Alt + T).
  2. Then type sudo nano /etc/default/grub. It will ask for your password. Type it in.
  3. Around the 11th line, there will be something like: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash". Change it to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"
  4. Save the file by Ctrl+O followed by Ctrl+X. Then run sudo update-grub in the terminal.
  5. Reboot and see if backlight adjustment works. If not, undo the changes you did above, by invoking the text editor as in steps 1 and 2.

Hope it helps.

controlling brightness in linux

  1. Open a terminal (Ctrl + Alt + T).
  2. Then type sudo nano /etc/default/grub. It will ask for your password. Type it in.
  3. Around the 11th line, there will be something like: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash". Change it to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"
  4. Save the file by Ctrl+O followed by Ctrl+X. Then run sudo update-grub in the terminal.
  5. Reboot and see if backlight adjustment works. If not, undo the changes you did above, by invoking the text editor as in steps 1 and 2.

Hope it helps.

touchpad like mac on windows

Get Mac-Like Scrolling and Gestures on a Windows Laptop

Once you’ve used the hand-helping, time-saving, two-finger scrolling and three-finger gestures on a MacBook, a standard Windows trackpad can feel kind of, well, dead. Here’s how to get total finger control with a tiny app, or go further with a driver swap.

 

Let’s put this out there right away: This won’t give you the Mac’s pinch-to-zoom or rotation powers, but it will give you nearly everything else. Also, I tested this out on just one laptop, a ThinkPad T61p, and the more complex version of this trick relies on unofficial—some might even say hacked—drivers for Synaptics touchpads. Most every non-Mac laptop ships with a Synaptics touchpad, and various bloggers and forum users with different laptop builds have reported it working. You may experience some quirks or buggy behavior, and if you opt for the full driver replacement, you’ll have to avoid upgrading that driver to keep everything in place. But the benefits for those who do a lot of browsing or document editing are pretty significant, and the likelihood of an absolutely crucial trackpad update is fairly slim.

If you only want simple two-finger scrolling in your web browser without having to mess with your touchpad drivers, follow this post through only the (very simple) first section. If you’d like to get configurable two-finger, three-finger, circular and gesture-based actions on your laptop, we’ll dive into that in just a bit.

The Simple Two-Finger Scrolling Fix

Get Mac-Like Scrolling and Gestures on a Windows LaptopTwo-Finger-Scroll is a tiny little utility that doesn’t require installation, configuration, or anything, really, other than a double-click to launch. On most trackpads, running two-finger-scroll will simply make dragging two fingers up and down on your trackpad scroll a window with a vertical tracking bar up and down, as if you were moving the middle scroll wheel up and down.

Get Mac-Like Scrolling and Gestures on a Windows LaptopIf that vertical two-finger scrolling is all you want, and you want it to stick around the next time you restart Windows, check your system tray. It might be hidden away, but there should be a TwoFingerScroll icon that you can right-click to turn on and off, and right-click to select “Settings.” In the settings, you can have TwoFingerScroll start with Windows, but you can also do a lot more. Check out the next tab, “Scrolling,” where you can set up exactly how your two-finger scrolling should work. In my own case, I kept the speed and acceleration defaults, disabled “Keep scrolling on edges,” and switched to “Smooth” for the Scroll Mode. I haven’t really broken them in and figured out what exactly I like, because, hey, two-finger scrolling in Windows is entirely new to me.

Get Mac-Like Scrolling and Gestures on a Windows LaptopHead to the next tab to the right, and you’ll see that you can actually manage two and three-finger tapping from TwoFingerScroll. I haven’t played with these features as much, but if your trackpad has a middle button function, or an equivalent “Button4” and “Button5,” you can set a two, three, or “two plus one” (two fingers together, one just outside) tap to do what those buttons would normally do. I could see these functions being helpful for quick right-clicking or, perhaps, triggering an Escape key or the like, but I’ve generally left this section well enough alone. If you know of some clever uses for multi-finger taps, do tell in the comments!

Sick of TwoFingerScroll, or not seeing it do much good? Disable it from the system tray and uninstall it the way you would any program. If disabling temporarily doesn’t seem to work, kill it by hitting Ctrl+Shift+Esc, selecting the Processes tab, and clicking End Process with TwoFingerScroll.exe selected.

The Whole Shebang: Gestures, Three Fingers, and More

Want to get a bit more in control of your scrolling, and add features like circular scrolls and three-finger swipes and gestures? You’ll need to install a modified version of the Synaptics drivers your laptop likely uses.

Uninstall your existing Synaptics drivers, or the touchpad/trackpad drivers your laptop manufacturer provided, by heading to Control Panel, selecting “Uninstall a program” under the Programs heading, and removing those choices that relate to your trackpad control. You can also use an app like Revo Uninstaller Free to hunt down those drivers if they don’t appear, or are hard to discern, in your Add/Remove Programs dialog. You might have to restart after your uninstall, and it might be the first of a few restarts.

To get multi-finger gestures on your trackpad, you’re going to install a set of trackpad drivers that were intended for a certain netbook in a foreign locale, but which have been modified for more general use. The drivers I installed on my ThinkPad came from a packaged dubbedsynaptics_v10.2.4.0_allOS_modded_b2.zip, and I grabbed them from a file sharing service linked at the My Digital Life blog, where you can also find 64-bit specific drivers, if needed. If that free file hosting service doesn’t work for you, or you want to try and avoid the annoying 60-second download delay, run a Google search for that package, and be sure to scan the download ZIP file for viruses before you install it.

Get Mac-Like Scrolling and Gestures on a Windows LaptopExtract the files from the ZIP package you downloaded, double-click the Setup file to start the installation process, and if you’re asked to verify that you want to install an “untrusted” or unverified driver, go ahead and do so. Once you’re through the setup process, you’ll likely be asked to restart once again. Allow your system to restart. When you boot up again, you may be asked if you’re sure you want to allow programs related to your Synaptics driver installation to run on your system, seeing as how they were downloaded from the internet and all. Un-check the boxes in the lower-left that ask something akin to “Always ask for this type of file,” and you won’t see these prompts on your next start-up.

Open a browser, or a document with enough vertical content to scroll up and down, and see what happens when you slide two fingers up or down. If you’re scrolling, hey, that’s great! If not, you may still need to install TwoFingerScroll to manually enable your own two-finger scrolling.

Get Mac-Like Scrolling and Gestures on a Windows LaptopNow, the good stuff. Head to Control Panel, into the “Hardware and Sound” section, and select “Mouse.” The farthest-right tab should have a red icon and read “Device Settings.” Make sure Synaptics Touchpad is selected in that tab, then hit the “Settings” button below it. You’ll see a whole realm of options there to explore and customize. The new stuff that you’ll want to pay close attention to is in a few places:

  • Under Pointer Motion, a selection namedSticky Borders, which controls what happens when you scroll to the edges of a window.
  • Virtual Scrolling, where you may want to turn off the edge-of-trackpad scrolling that you’d been using before.
  • Under the Pointer Motion heading, a sub-section named Momentum, which provides Apple-like scrolling based on scroll speed.
  • Three-Finger Gestures and its sub-sections, Top and Bottom, which relate to what happens when you drag three fingers up or down, respectively. I prefer to use these gestures as page back and forward in a browser.
  • Two-Finger Gestures, where you can get fancy and add actions to diagonal drags, left-to-right and right-to-left flicks, and the like.

To repeat what was stated up top, you won’t find any pinch-to-zoom or rotate gestures—at least on the laptop I was using. Your mileage may vary, but that doesn’t seem to be something that made the transition to these modified drivers. Also remember that you should consciously check your Windows Updates, or other updating software provided with your laptop, to make sure your Synaptics drivers stay put in this modified version.
 

WordPress on linux

Step1:First install LAMP on your system .

Step2: Create a database for WordPress and an user who has all privileges for accessing.
So open terminal and type :

mysql -u root -p
mysql> CREATE DATABASE wordpress;
mysql> CREATE USER wpuser;
mysql> SET PASSWORD FOR wpuser = PASSWORS(“wppassword“);
mysql> GRANT ALL PRIVILEGES ON wordpress.* TO wpuser@localhost IDENTIFIED BY ‘wppassword’;
mysql> FLUSH PRIVILEGES;

Step3:Download WordPress from http://wordpress.org/download
Step4:Move the wordpress directory to the root directory of Apache web site, /var/www/ as
Open terminal and then type

sudo tar -xvzf wordpress-2.9.2.tar.gz -C /var/www

Step5:Now in wordpress directory, rename the wp-config-sample.php file to wp-config.php as
Open terminal and then type

sudo mv wp-config-sample.php wp-config.php

Step6: Now open the terminal type:

sudo gedit /var/www/wordpress/wp-config.php

Change putyourdbnamehere to wordpress.
Change usernamehere to wpuser.
Change yourpasswordhere to the wppassword.

Enjoy,Congrats you have installed wordpress.

LAMP

1:Install Apache

1. Open up the Terminal (Applications > Accessories > Terminal).
2. Copy/Paste the following line of code into Terminal and then press enter:

sudo apt-get install apache2

3. The Terminal will then ask you for you’re password, type it and then press enter.

Testing Apache

To make sure everything installed correctly we will now test Apache to ensure it is working properly.

1. Open up any web browser and then enter the following into the web address:

http://localhost/

You should see a folder entitled apache2-default/. Open it and you will see a message saying “It works!” , congrats to you!

2:Install PHP

In this part we will install PHP 5.
Step 1. Again open up the Terminal (Applications > Accessories > Terminal).
Step 2. Copy/Paste the following line into Terminal and press enter:

sudo apt-get install php5 libapache2-mod-php5

Step 3. In order for PHP to work and be compatible with Apache we must restart it. Type the following code in Terminal to do this:

sudo /etc/init.d/apache2 restart


Test PHP

To ensure there are no issues with PHP let’s give it a quick test run.
Step 1. In the terminal copy/paste the following line:

sudo gedit /var/www/testphp.php

This will open up a file called testphp.php.
Step 2. Copy/Paste this line into the testphp.php file:


Step 3. Save and close the file.
Step 4. Now open you’re web browser and type the following into the web address:

http://localhost/testphp.php

A page will be pop up .
Congrats you have now installed both Apache and PHP!

3:Install MySQL

Step 1. Once again open up the amazing Terminal and then copy/paste this line:

sudo apt-get install mysql-server

Step 2. This is where things may start to get tricky. Begin by typing the following into Terminal:

mysql -u root -p

Following that copy/paste this line
mysql> SET PASSWORD FOR ‘root’@’localhost’ = PASSWORD(‘yourpassword’);
(Make sure to change yourpassword to a password of your choice.)

4:INSTALL PHPMYADMIN

step1. open the terminal copy and paste following command and then enter

sudo apt-get install phpmyadmin

step2. Now type the following

http://localhost/phpmyadmin

If this does not work, then you can do the following to include the phpMyadmin-shipped Apache configuration into Apache:
step3.Type the following command in terminal

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf

step 4.Now type following

sudo /etc/init.d/apache2 reload

Step5. Test again your phpmyadmin ,type following:

http://localhost/phpmyadmin

Thats all ,You have successfullly installed LAMP

OSM

Open Street Map is a free editable map of the whole world. It is made by people like you. Open Street Map allows you to view, edit and use geographical data in a collaborative way from anywhere on Earth. Open Street Map has been praised for being more detailed than maps compiled by big companies like Google and Microsoft,yahoo and its creators hope that with thousands of editors, it will be more accurate.

 

GPS (Global Positioning System)

This is a GPS device that is used to make a Map.The Global Positioning System (GPS) is a U.S. space-based radio navigation system that provides reliable positioning, navigation, and timing services to civilian users on a continuous worldwide basis — freely available to all. For anyone with a GPS receiver, the system will provide location and time. GPS provides accurate location and time information for an unlimited number of people in all weather, day and night, anywhere in the world.

 

JOSM (Java Open Street Map Editor)

JOSM is the “Java OpenStreetMap Editor”, a desktop application originally developed by Immanuel Scholz and currently maintained by Dirk Stöcker. JOSM is an editor for OpenStreetMap written in Java 1.5. The current version supports stand alone GPX tracks, GPX track data from the OSM database and existing nodes, line segments and metadata tags from the OSM database.You can download JOSM from there

Steps to Make a Map

1:Mark the points with GPS device
2:Upload the Map
3:Edit a Map (JOSM)
4:Use the Map

Difference Between Google,Yahoo and Open Street Map

I made a Map of Dugri Phase-1 just in 3 hours.It was very interesting experience.There is a Lot of Difference Between My Map and Yahoo and Google Map of Dugri Phase-1.You Can find the Difference Between the Map of yahoo,Google and Open Street here.

kannel

Kannel is a compact and very powerful open source WAP and SMS gateway.This time i got a chance to implement it.I was perplex  and was surprised why the deveolpers of it haven’t documented it even they are using it since decades.So i am documenting it so that others can take a quick start and do not face the problems that i faced.Please follow it step by step and ask if you get any problem anywhere.
I am going to explain how to compile,install and configure it.My System is Ubuntu(10.04).Just follow these steps.

1) Open terminal and install it
sudo apt-get install build-essential bison libxml2-dev libmysqld-dev

Now install it.
sudo apt-get install libtool
Now download the source code of kannel from Click to download 

2) Compile and Install it now as:
./configure
make
make install 

3)Now you need configuration files .Download those from here Click to download 
Now make the changes as per your own needs e.g change the Phone/Modem name as per your’s etc.

4) Attach your phone/modem to your computer and select Pc suite or Nokia mode option.
Note:You should know at which port your phone or modem is connected so use ‘dmesg’ command to know it. 

5) Start the bearerbox and smsbox by issuing the following commands in different terminals.
For bearbox:
sudo bearerbox -v 1 /path-to-config file

For Sms-box:
sudo smsbox -v 1 /path-to-config file 

Now Kannel is configured and you are ready to use it.You can now send sms from browser (Url).Use following url and make your changes for username and password and paste it in browser’s url and then enter.Message will be send to the given number.
Url is:
http://127.0.0.1:13018/cgi-bin/sendsms?username=your-username&password=your-password&to=+91-Enter a number to which you want to send a sms&text=Hello+world

Done!!!