Friday, October 26, 2012

How to enable hibernation in Ubuntu 12.04 lts [Solved]

After upgrading to Precice Pangolin - Ubuntu 12.04 lts, I was unable to hibernate my machine by default. I googled it and found a solution(It worked for me.)

To check whether hibernate is supported, Open a terminal and type:

pm -hibernate

after entering this, your system will attempt a hibernate.

to enable hibernation, open a terminal and type the following line and press enter.

sudo gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla

insert the following content

[Re-enable hibernate by default]
save and exit.
restart the system once and hibernation will be enabled. 

Monday, June 25, 2012

How to Upgrade ubuntu 11.04/10.04 to Ubuntu 12.04 easy guide

Hi all, Many of the users follow the custom of installing a fresh copy of ubuntu 12.04 by erasing the previous installation. If you want to keep your files and compatible installations from your previous installation still here in your new installation, you must go for an upgrade instead of a new installation.

99 percentage of upgrades leads to success, but if you have ultimate important information., please back up before starting the process. this guide is for the ones who like to choose the upgrade from USB option.

You have to download an ISO image from ubuntu's  download page. and then go to your previous installation, choose administration->create a startup disk.

This will show a window where you can select the image and the target usb disk.

Then, proceed with the steps and the system will prompt you to enter password for some two three times.

The process of creating a startup disk  may take a few minutes to complete. after the startup disk creation finished, restart your system with boot from usb enabled.

After some time the machine will boot from the startup disk, and will show a live session of ubuntu running in you machine.

Bowse through the menu's and check whether everything is working fine.

There will be an icon Install ubuntu in your live session's desktop you can trigger the installation process by double clicking it.

After few steps it will show the below screen.

ubuntu 11.04 to 12.04 upgrade
Do not forget to select the upgrade option

 Choose the upgrade option as shown in the picture and proceed with the installation. it is preferred to connect to the Internet as well as power source to make the installation smooth. if you are connected to the Internet, Some additional plug-ins and drivers may be downloaded. bu this will make the installation bit time consuming because the Os may download some updates if there is a working net connection.

Saturday, May 26, 2012


To export mp3 files in audacity we need a special mp3 library called lame. To install this, it is very simple follow these procedures to export mp3 files in audacity and enjoy a great mp3 experience.

  1. Open the “Synaptic” software-package manager.
  • In GNOME (the default desktop environment for Ubuntu and many other systems), you can find it by clicking on the “System” menu at the top of the screen, and then choosing “Administration”.
  • In KDE (the desktop environment for Kubuntu and many other systems), there will be a similar menu accessible from the bottom-left of the screen.
  • In all desktop environments, you can open up a command-line terminal and type “gksu synaptic” or “sudo synaptic”.
  • Enter your Ubuntu user password when asked for it.
  • In the Synaptic window, choose “Settings”, then “Repositories”.
  • In the "Ubuntu Software" tab, check the box for Software restricted by legal or copyright issues (“multiverse”), and then the Close button
  • Back in the main Synaptic Window, type “lame” in the "Quick search" box
  • The search results will show the packages “lame” and “libmp3lame0” at the top of the list. Mark both for installation (by double-clicking).
  • Click the "Apply" button, and on “OK” to any warnings that come up.
  • The LAME software will automatically download and install. Close the Synaptic window when it has finished.

Thursday, May 17, 2012

Upgrade ubuntu to 12.04

Ubuntu provides the flexibility of upgrading from an older version to a new supported version. You don't need to install it fresh to use  new Ubuntu this guide helps you to upgrade to Ubuntu 12.04 from an older version.You can directly upgrade to Ubuntu 12.04 LTS ("Precise Pangolin") from Ubuntu 11.10 ("Oneiric Ocelot") or 10.04 LTS ("Lucid Lynx").

Why upgrade

Why should you upgrade instead of performing a clean install of a supported version? Some don't like to perform new installations when there is a possibility to upgrade. The advantage of this is that you can keep your current configuration without having to change much. This is often the case in production environments where you don't want to lose a machine just because it needs a higher OS version.

Upgrade from 11.10 to 12.04 LTS and 10.04 LTS to 12.04 LTS

Network Upgrade for Ubuntu Desktops 11.10 to 12.04 LTS (Recommended)

You can easily upgrade over the network with the following procedure.
  1. Run the Update Manager application from the Unity Dash
  2. In Update Manager, click the Settings... button, and enter your password to start the Software Sources application.
  3. Select the sub menu Updates from the Software Sources application.
  4. Check the "Release upgrade - Show new distribution releases" drop down to make sure "Normal releases" is selected, and change it if otherwise.
  5. Close the Software Sources application and return to Update Manager.
  6. In Update Manager, click the Check button to check for new updates.
  7. If there are any updates to install, use the Install Updates button to install them, and press Check again after that is complete.
  8. A message will appear informing you of the availability of the new release.
  9. Click Upgrade.
  10. Follow the on-screen instructions.

Network Upgrade for Ubuntu Desktops 10.04 LTS to 12.04 LTS (Recommended)

Note that the page under says: "It is generally recommended that users of Ubuntu 10.04 LTS wait until the first point release, due in July, before upgrading." Follow the instructions there if you want to upgrade earlier since the following instructions will probably not work until then.
You can easily upgrade over the network with the following procedure.
  1. Open the Update Manager application from the SystemAdministration menu.
  2. In Update Manager, click the Settings... button, and enter your password to start the Software Sources application.
  3. Select the sub menu Updates from the Software Sources application.
  4. Check the "Release upgrade - Show new distribution releases" drop down to make sure "Long term support releases only" is selected, and change it if otherwise.
  5. Close the Software Sources application and return to Update Manager.
  6. In Update Manager, click the Check button to check for new updates.
  7. If there are any updates to install, use the Install Updates button to install them, and press Check again after that is complete.
  8. A message will appear informing you of the availability of the new release.
  9. Click Upgrade.
  10. Follow the on-screen instructions. 

Upgrading Using the Alternate CD/DVD

Use this method if the system being upgraded is not connected to the Internet.
  1. Download the alternate installation CD from
  2. Burn the ISO to a CD and insert it into the CD-ROM drive of the computer to be upgraded.
    • If the ISO file is on the computer to be upgraded, you could avoid wasting a CD by mounting the ISO as a drive with a command like (please make sure that the path to the iso file in the second command reflects where you file is located in your computer, also the Desktop folder may have a different name if you are using Ubuntu in a language different than English):
      sudo mkdir -p /media/cdrom
      sudo mount -o loop ~/Desktop/ubuntu-12.04-alternate-i386.iso /media/cdrom
  3. A dialog will be displayed offering you the opportunity to upgrade using that CD.
  4. Follow the on-screen instructions.
If the upgrade dialog is not displayed for any reason, you may also run the following command using Alt+F2:
gksu "sh /media/cdrom/cdromupgrade"
Or in Kubuntu run the following command using Alt+F2:
kdesudo "sh /media/cdrom/cdromupgrade"

Upgrading from a Torrent

If you're familiar with torrents and have an ISP that doesn't limit them, you can download the upgrade much more quickly. You'll also be sharing your bandwidth with other Ubuntu users and helping to reduce the load on the servers, which is especially beneficial on release days when the server overload causes problems.
Just visit, and download the appropriate torrent file for the alternate installation CD, found in the list towards the bottom of the page. (It will have a filename like ubuntu-12.04-alternate-i386.iso.torrent.) Load it into your BitTorrent client, and after it is done downloading the ISO, follow the alternate CD upgrade instructions.
Detailed instructions in a blog post and in a forum thread.

Thursday, April 26, 2012

Ubuntu 12.04 released!

Its precise stylish and secure. Much awaited ubuntu 12.04 stable version is released. Happy news is this LTS version comes with handful of new features along with five years official support. Here is the link to the release homepage.

Wednesday, April 25, 2012

Ubuntu 12.04 precice pangolin features.

Ubuntu 12.04 precise pangolin is expected to be releasing tomorrow, sources confirmed that 12.04 LTS is coming with loads of new features along with a fresh Kernel.

The Head Up Display or HUD is the prime change in Upcoming 12.04 LTS

HUD is a new way to quickly search and access any desktop application’s and indicator’s menu,” HUD can be accessed by pressing the Alt key and typing in a description of what you want to do. The software will then return a set of corresponding entries, including some fuzzy matching, the project team says. Over time, it also learns from your previous choices to make the search more and more accurate.

Power Savings

Definitely power saving is the important change after HUD. 12.04 enabled with RC6--the technology that allows GPUs to go into a very low power consumption state when the GPU is idle--is now enabled by default for Sandy Bridge systems. The result can be improvements of between 40 and 60 percent in power usage under idle loads.

Clickpad or Trackpad support

Ubuntu 12.04 now includes support for ClickPads, On which the physical button is integrated into the trackpad surface. Coming in Ubuntu's next release will be support for Apple Magic Trackpads and more devices, the Ubuntu team says.

Improved language support

When users install new software through the Ubuntu Software Center, the corresponding language support packages--including translations and spell check modules--are now installed automatically as well. reduces user effort to install them manually after software installation.

New Kernel

Stable release of Precise Pangolin,  includes the 3.2.0-17.27 Ubuntu kernel, which is based on version 3.2.6 of the upstream stable Linux kernel.

Updated Unity 

In this new release, the "Appearance" panel in the software's system settings lets you more easily configure some properties of Unity. For bookmark users, the Unity launcher now also includes Nautilus quicklist support.

Along with the above changes Ubuntu 12.04 coming with New version of Libre office and as usual, Rhythmbox as Default music Player

Tuesday, April 24, 2012

Ubuntu 12.04 release date

Normally Ubuntu releases every 6 months. The ubuntu 12.04 LTS aka Precise Pangolin will be releasing on 26th April 2012. apart from the early LTS versions Precise Pangolin will be coming with 5 years of support.
the beta version is already available for download. you can download ubuntu 12.04 LTS here. 

Friday, April 13, 2012

[Solved] Ubuntu 12.04 blinking screen on startup

After installing Ubuntu 12.04 beta version, if you are getting a blinking screen, probably it will be the problem with hardware. it is advised to choose try ubuntu before installing it to check whether the OS is working without any problem.

try the following steps if you are facing this issue. 

nomodeset, which is needed for some graphic cards that otherwise boot in to a black screen or corrupted splash, acpi_osi= to fix lcd backlight and other problems, and noapic and nolapic to work around various ACPI BIOS issues. In this how to I will explain briefly what this is and how to do it. 

The newest kernels have moved the video mode setting into the kernel. So all the programming of the hardware specific clock rates and registers on the video card happen in the kernel rather than in the X driver when the X server starts.. This makes it possible to have high resolution nice looking splash (boot) screens and flicker free transitions from boot splash to login screen. Unfortunately, on some cards this doesnt work properly and you end up with a black screen. Adding the nomodeset parameter instructs the kernel to not load video drivers and use BIOS modes instead until X is loaded. 

Note that this option is sometimes needed for nVidia cards when using the default "nouveau" drivers. Installing proprietary nvidia drivers usually makes this option no longer necessary, so it may not be needed to make this option permanent, just for one boot until you installed the nvidia drivers.

This option frequently solves problems with LCD backlight, fan control problems and misreporting of thermal events. What I understand it does (but corrections are welcome), is prevent the kernel from reporting to the bios that its any windows version the bios asks for. By default, the kernel pretends to be all windows versions, that way we are certain the bios executes all the code needed to initialize the hardware. Unfortunately, some bioses contain fixes to fix problems with specific windows versions (notably vista) that arent needed or dont work for other OS's. Setting

(nothing behind the = sign) as boot option makes the kernel not respond to osi queries.

If the bios has provisions for Linux, you can also try

Or you can try 
acpi_osi="Windows 2006"
To make the kernel pretend its vista and make the bios execute routines on machines that require them.

This disables ACPI completely. 
Note: this may not work with all computers and will disable a lot of useful (or even needed) features. In some cases it may even disable some crucial features, like.. fans. Be careful with this option, it might cause your machine to overheat if the fans no longer turn. Think of this as a last resort. Also note some machines requireacpi=ht instead.

Noapic and nolapic
noapic and nolapic kernel options instruct the kernel to not use certain programmable interrupt controllers. To understand what that means exactly requires a deep knowledge of PC hardware, I will not go in to that here, Ill limit myself to saying on some bioses, especially for older systems, there are problems in the implementation of this and it may be necessary to disable either or both to cure a wide range of obscure problems, often but not always related to keyboard and mouse and power management (standby/resume issues).

In some cases kernel drivers can not be loaded due to a lack of virtual addressing space on 32 bit systems. Logs will show errors like. 

allocation failed: out of vmalloc space - use vmalloc=<size> to increase size.

thanks for p4man who explained this here. 

Wednesday, April 11, 2012

Ubuntu 12.04 is now on its final beta

ubuntu 12.04
ubuntu 12.04 is here
Here is a good news for ultimate ubuntu lovers. Ubuntu the much avaited 12.04 long term support is now all set to release. now the final beta version of ubuntu 12.04 LTS is available here. 

Saturday, February 25, 2012

Ubuntu is all set to go Mobile: Ubuntu for android

This time ubuntu stunned the mobile world by announcing a future concept of carrying a desktop within your very smart android phone.

A full Ubuntu desktop, on your docked Android phone thats what ubuntu desktop for android. which means ubuntu is ready to launch their solution for android phones, which enables a powerful android phone a desktop when docked. a keyboard and mouse duo can also be associated with this andro ubuntu desktop. why  carry two devices when you can do it all with your dual core android phone.

Canonicals words about the new venture. "we’ve brought Android together with Ubuntu, the world’s favourite free operating system, to give you a full productivity desktop that fits in your pocket. Android for the phone experience, Ubuntu for the desktop, all on one device, running at the same time."

 So forget the office PC. Just dock your corporate phone and enjoy Ubuntu. Anywhere. One address book. One set of bookmarks. One place for your text messages and email. No more typing on a tiny screen when all you want is a keyboard and a mouse. Seamless integration of your desktop and mobile worlds. Brilliant.

Users will want at least one dock, complete with monitor, keyboard and mouse. Many will want two of each - one for the office and one for the home. And mobile users will opt for clamshell devices that give them a laptop experience whenever they need it - on the train, on the plane or in meetings.

Desktop productivity goes well beyond the keyboard, monitor and mouse. Imagine projectors with a phone dock built in, so you can carry less to your presentations. And imagine TVs that become home PCs when you dock your phone: perfect for the emerging market where LTE will be the normal way for new users to connect to the Internet.

get more details here. 

Tuesday, February 21, 2012

Ubuntu Cloud Computing Video

Hi all it is sure that ubuntu cloud makes cloud computing for small business simpler than ever. Ubuntu has a handful of features in their enterprice cloud platform. It enables a small business solutions to stay updated in technology with cost effective solutions. While surfing through the web, I found this video on ubuntu clous computing. follow the link or copy and paste the url in your address bar. They are offering this video in many formats. Hope this will be useful for those ones who is thinking about ubuntu enterprise cloud.

Monday, January 16, 2012

Must have apps / software for ubuntu

Ubuntu comes with handful of free applications which satisfies use of a regular user. but for those ones looking for the extra quotient, there are plenty of applications available in the web, as a ubuntu user from 4.10, I am listing some must have software a Ubuntu user must have.

As ubuntu is used by netisons, Browsers are the most used application in any linux distro. most of the popular browsers are available for ubuntu too. here is the most used bowsers.

Google chrome:
Firefox is coming with ubuntu. but google chrome is the most preferred  browser, anyone can download chrome from googles download mirrorsfor free of cost.
Opera is the next option for a big number of web users. opera, firefox and chrome are now sharing the market of browsers with huge shares. we can also install Internet explorer in ubuntu using Wine. Wine will be described later in this post.

Wine is translation layer which is capable of running Windows applications.  Though not all applications can be installed using WINE, yet it is the best choice for some Windows only software to run under Ubuntu.  Learn more about WINE at

Media Players
Everyone needs a fine media player in his machine. for ubuntu, Movie player comes built in but VLC is the Best options Because it does not require any additional plugins to open any files VLC works fine with most of the media formats. click here for more about VLC

SMPlayer another multimedia player for Ubuntu which is available in ubuntu software center for free of cost. SMPlayer is basically a Qt based MPlayer front-end. SMPlayer remembers the settings of all files you play. Smplayer also features a video resume function So, when you restart a video after quitting SMPlayer, it will start from the exact same position. click this link to Install SMPlayer from Ubuntu Software Center.
Media Management
Kino video editor: Kino: Kino is an ideal video editing application on Ubuntu.  It supports firewire to capture video from your camcorder and to transfer videos from them for editing purpose as well. Vfx can also be added, though initially it feels a little hard to work with this.  Definitely a must have for all video editors. Get kino

GIMP Image Editor: GIMP ican do anything adobe photoshop can do,in short GIMP is Adobe Photoshop for in Linux but FREE.    You can  even extend its capabilities with free plug-ins.

Audacity: Audacity is a free, easy-to-use and multilingual audio editor and recorder for Windows, Mac OS X, GNU/Linux and other operating systems.
You can use Audacity to Record live audio, Convert tapes and records into digital recordings or CDs, Edit Ogg Vorbis, MP3, WAV or AIFF sound files, Cut, copy, splice or mix sounds together and Change the speed or pitch of a recording etc. get GIMP

Office suite OpenOffice is the Linux alternative for Microsoft Office on Windows.  OOo came as the default Office application on Linux till last year.  It is very powerful office suite which includes Word (Word Processor), Excel (Spreadsheet), Presentation, Drawing, Database and other applications.  Other than that you can install add-ons too to make it even more powerful.

Calibre ebook managerCalibre E-book Library Management

Calibre manages your e-book collection for you. Calibre is a free and open source tool as well. It even supports e-book syncing with a variety of popular e-book readers out there.
Install Calibre from Ubuntu Software Center

Calibre manages your e-book collection for you. Calibre is a free and open source tool as well. It even supports e-book syncing with a variety of popular e-book readers out there.Install Calibre from Ubuntu Software Center


FileZilla Client is a fast and reliable cross-platform FTP, FTPS and SFTP client with lots of useful features and an intuitive graphical user interface. It is not only easy to use but also boasts load of features like IPv6 support, Drag and drop, pause and resume file transfer and remote file editing etc.
Bluefish : Bluefish is a powerful HTML editor targeted towards programmers and web designers, with many options to write websites, scripts and programming code. Bluefish supports many programming and markup languages, and it focuses on editing dynamic and interactive websites.
KompoZer is a complete web authoring system that combines web file management and easy-to-useWYSIWYG web page editing. KompoZer is designed to be extremely easy to use, making it ideal for non-technical computer users who want to create an attractive, professional-looking web site without needing to know HTML or web coding.

Wednesday, January 11, 2012

[Solved] Ubuntu Hibernate not working

For some laptop models, ubuntu installations show up by not hibernate in expected way. I have dug up in google about this issue and found some solutions.

this post.was the most relevant one thanks to the author,

make a script under /etc/pm/sleep.d/. 

sudo gedit /etc/pm/sleep.d/20_custom-ehci_hcd
paste the following code into the file you have just created:

#inspired by

DRIVERS="ehci xhci" # ehci_hcd, xhci_hcd

unbindDev() {
  echo -n > $DEV_LIST 2>/dev/null
  for driver in $DRIVERS; do
    for dev in `ls $DDIR 2>/dev/null | egrep "^$HEX+:$HEX+:$HEX"`; do
      echo -n "$dev" > $DDIR/unbind
      echo "$driver $dev" >> $DEV_LIST

bindDev() {
  if [ -s $DEV_LIST ]; then
    while read driver dev; do
      while [ $((MAX_BIND_ATTEMPTS)) -gt 0 ]; do
          echo -n "$dev" > $DDIR/bind
          if [ ! -L "$DDIR/$dev" ]; then
            sleep $BIND_WAIT
    done < $DEV_LIST
  rm $DEV_LIST 2>/dev/null

case "$1" in
  hibernate|suspend) unbindDev;;
  resume|thaw)       bindDev;;
save the file and exit back to terminal.
Give execution permission:
sudo chmod 755 /etc/pm/sleep.d/20_custom-ehci_hcd
Now your system must work well with hibernate option.

Tuesday, January 10, 2012

Macubuntu, make ubuntu look like macOsX: for 10.04 and 10.10

some of unix lovers want to get the entire Mac OSX look in Ubuntu. For that, you can use Macbuntu a ubuntu customization script which is very easy to use.

 Macbuntu is not only  a theme. It can also install: Global Menu, Docky, Ubuntu-Tweak, Cheese, Compiz Extras and will change the look of the Login screen, Metacity, set Compiz effects and modify the top panel completely.

To install Macbuntu, you can either manually download the archive, extract it and then run the "" script via a terminal or copy/paste the following commands in a terminal to download and run it:

for Ubuntu 10.04

open terminal and execute the following commands

wget -O /tmp/Macbuntu-10.04.tar.gz
tar xzvf /tmp/Macbuntu-10.04.tar.gz -C /tmp
cd /tmp/Macbuntu-10.04/

for Ubuntu 10.10

wget -O /tmp/Macbuntu-10.10.tar.gz
tar xzvf /tmp/Macbuntu-10.10.tar.gz -C /tmp
cd /tmp/Macbuntu-10.10/

follow the instructions and answer the questions to complete the installation.
restart your computer and enjoy the new looks of your computer.

How to set up a firewall in ubuntu

To protect your computer against unauthorized access by people on the Internet or your network,you can set up a firewall in your ubuntu. Firewalls block connections to your computer from unknown sources, which helps to prevent security breaches. If you use a router to connect to the Internet, the router may already have a firewall configured which regulates connections from the Internet to your network.

following post briefs the set up procedure of firewalls in ubuntu.

Most users will prefer to use Gufw, which is a graphical user interface program to configure UFW(uncomplicated firewall).

Click the below link to install and enable Gufw:

then the below shown dialogue box appears.

click on launch application and agree to install the package.

Now, to start Gufw, choose System → Administration → Firewall configuration

To enable the firewall, simply check the box next to Enabled under Actual Status.
The default configuration is to deny connections. This means that a program attempting to connect to your computer will be denied. Certain programs or services which use the internet may require you to add an exception.
To add an exception:
  1. Click Add.
  2. You can choose from Preconfigured options for common programs and services, or you can manually add port exceptions in the Simple or Advanced tabs.
  3. To find out what type of exception a particular program requires, you should consult the help for that program.

[Solved] ubuntu asks for keyring password whenever user log in.

Problem: Ubuntu gnome(especially ubuntu 10.04) keeps on asking me to enter keyring password for each time I log in to my system. It is irritating to enter password twice as prt of the login process. Here is the solution.

You may be asked for a password every time you log in so that you can connect to a network. You can stop this from happening like so:

Right click the Network Manager icon and go to Edit Connections.

Go to the Wireless tab, select the connection you are using and click Edit.

Check Available to all users and click Apply. Enter your password when asked.

The next time you log in, you should not need to enter your password in order to connect to your network connection.

Monday, January 2, 2012

[Solved] connecting your Samsung Galaxy Tab with ubuntu

Like all other android devices, galaxy tab also  can be connected with Ubuntu Linux. you can simply connect your galaxy tab via its data cable provided. you can connect your tab in mass storage mode as well as you can tether your galaxy tabs internet connection through USB. unlike ipad, contents can be simply copied from your computer running Ubuntu to you tablet, if you connected your tab in mass storage mode.

Another awesome feature comes with your Android tablet is, you can tether you internet connection using the internal WiFi device, that turns your tablet into a mobile AP, this link provides more info about android to Ubuntu internet sharing.

Ubuntu server, a cost effective solution

Ubuntu server is the ideal solution for you if you are looking forward into deploy you business with latest technology but in a cost effective way. whether you want to deploy a webfarm or a cloud ubuntu has its solutions for you.

Ubuntu releases every six months, but its release cycle is stable as you can depend on it, it is recommended to choose LTS (long term support editions). which will be the most stable releases and will get free updates to a long term as up-to 3 years. and you can upgrade to next LTS version, all for free.

Ubuntu server supports almost all the hardware and software. and definitely this makes an optimal businessman to go for ubuntu server.

Choosing Ubuntu Server helps you bring the best that open source can offer to your business - a strategy that's driving the world's most successful organisations.
  • No licence fees
  • Free upgrades
  • The latest and greatest applications
Also, ubuntu offers techincal support from canonical, its makers and the largest ubuntu service provider with  a cost as low as $320 per server per year.

to read more about ubuntu server follow this link. Ubuntu opnsource server

[Solved] Installing C and C++ compilers in Ubuntu

Definitely you will be in need of a compiler collection if any bit of you is a programmer. Like all Linux flavours, Ubuntu is also enables users with native C and CPP programming facility.

to install the compilers if they are not installed run the following code in Terminal.

sudo aptitude install build-essential

This will install essential compiler collection , usually gcc in your ubuntu installation. Now all you need is to create your C program and compile it. to open a file from terminal, type

vi program1.c and press enter.

you will be provided with the most popular vi editor after typing your code, type

Esc  :  wq and pres enter.

then type

gcc -o out program1.c and press enter

the output executable will be saved as, out and to execute the latter, type

./out and press enter. that's all.

you can also use gedit(GUI text editor) to type in your programs. to compile the same, cd to the directory in which the program is saved and repeat last two steps