Wednesday, 30 October 2013

How to change Host name in Ubuntu and Linux mint.

Change Host name in Ubuntu and Linux mint.


Host name actually means that its a computer name. This post will show you how easily you can your computer name whem using Ubuntu or Linux mint. To change hosts name we are giving some terminal commands.

 Edit Host name in Ubuntu and Linux mint.


To change host name move to terminal by Ctrl – Alt – Ton your keyboard.

Then enter this command in your terminal. Then edit the name to the required name and save it.
sudo gedit /etc/hostname

change Host name in Ubuntu and Linux mint.


Next, run the commands below to open the hosts file.

 
sudo gedit /etc/hosts

change Host name in Ubuntu and Linux mint.

You should the same name that you have given in host name.

You should restart your pc

Video tutorial by our team.

How To Setup Google Public DNS Servers In Ubuntu and Linux machines

Setup Google Public DNS Servers.


Google DNS a popular DNS that which helps in getting faster browsing speed than that which is provided by ISP DNS. This DNS is having DNSSEC validation which will automatically provide better protection this also protects you from all attack by rejecting and I identifying invalid responses.

In this tutorial as we are Ubuntu geek we need faster and safer internet browsing so for that we are setting up google DNS for Ubuntu and Linux versions.

What is DNS?

I this you people actually got this question. This actually means that human-readable domain, (eg.linuxtrendz.com) into IP addresses so that they are accessible by computers.

Setting Google Public DNS Servers In Ubuntu and Linux machines.


Getting started with the tutorial

Press Ctrl – Alt – T and enter below command and run the command.

Setup Google Public DNS Servers In Ubuntu
sudo gedit /etc/dhcp/dhclient.conf

Find the below shown line and change it and make it look like this. Then save and close.

Setup Google Public DNS Servers In Ubuntu
prepend domain-name-servers x.x.x.x, y.y.y.y;

Save and restart your pc to make changed setting to be effected.

 

Another way is by moving to edit network connections.

Setup Google Public DNS Servers In Ubuntu Setup Google Public DNS Servers In Ubuntu

Edit the network connection and make connection method to ‘Automatic (DHCP) address only’

And give the google DNS

 

 

Saturday, 26 October 2013

Install VLC and configure VLC media player as default player.

Installation  & Configure VLC media player as default player.


For Ubuntu or any Linux users there are many media players to go with. But they actually don't provide correct support accordingly.

Coming to vlc mediaplayer this actully provides a great support and very easy to install. There are many benefits with Vlc media player.

Any way i want to provide all the list of open source medial player.

Here are some of the popular open-source media players for Linux users: VLC Media Player, KMPlayer, SMPlayer, SPlayer, UMPlayer, MPlyaer and a lot more that we didn't list. How would you choose which one would you go with?

As i have told in the above paragraph for me the best media player is VLC and i prefer going with that:-

And here are the installation steps to and configuring VLC media player as default one.

Installation Configure VLC media player


In Ubuntu, you can get it by running the following commands.
sudo apt-get update && sudo apt-get install vlc browser-plugin-vlc

Configure VLC media player as default player


To set VLC meadia player ad default one. Click on gear icon to get into System Settings > select Details –> Default Applications. Then set Audio and Video to VLC media playe as default one.


 

Install VLC and configure VLC media player as default player.

Configure VLC media player as default player

3

Wednesday, 16 October 2013

How to Install C and C++ Compilers in Ubuntu and testing your first C and C++ Program

Ubuntu c & C++ compiler for developers on c & C++. here in ubuntu you can easily build the things for c & c++ compilers.

Install C and C++ Compilers in Ubuntu.


Install C and C++ Compilers in Ubuntu.

Image credit

 
sudo aptitude install build-essential

This will install all the basic packages required for Compiling Your C Programs.

Now you have to open First.c file.
sudo gedit first.c

Add The following line to test your c compiler is working or not and save the file and exit.
#include <stdio.h>
int main()
{
printf ("hello ,worl\n")
return 0:
}

To compile the code you have to use following code.
cc -c first.c

That would produce an object file you may need to add to the library.

Then create an executable using the following command.
cc -o first first.c

Run the executable file using the following command.
./first

Out put will return as

Hello, world

Compiling your first C++ program.


Are you really wanted to test C++ program

For this program to execute we use g++ compiler.
You give the file extension as .cpp.
You have to create a file with First.cpp.
sudo gedit first.cpp

Add the following lines save and exit the file .
#include <iostream>
int main()
{
std::cout<< "Hello world!" << std::endl:
return 0;
}

Run your C++ Program using the following command.
g++ first.cpp -o test

 
./test

Output should show as follows

Hello World!

Tuesday, 15 October 2013

Timeshift for system restore functionality in Ubuntu.

In this article I will show you how to install TimeShift 1.0.4 on Ubuntu 13.10 Saucy Salamander, Ubuntu 13.04 Raring Ringtail, Ubuntu 12.10 Quantal Quetzal, Ubuntu 12.04 Precise Pangolin, Linux Mint 16 Petra, Linux Mint 15 Olivia, Linux Mint 14 Nadia, Linux Mint 13 Maya, Pear OS 8 and Elementary OS 0.2 Luna.


Restore Your Machine To A Previous State with Timeshift



Time shift is Linux application that provides similar functionality to time machine in mac. This actually protects your Linux system by taking snapshots for regular intervals. These snapshots can be used for getting back to the exact state when snapshot was taken.

These snapshots are taken using rsync and hard-links. The common file in snap shot are shared and this how the it saves the space. Snap shot take by Timeshift is the complete back-up of the system.

Restore Your Machine To A Previous State


 This is a very little setup. Once you are install this run it for the first time and take a snapshot, and you can enable a corn job to take snapshots at a regular intervals of time. All these snapshots take are saved system (Root) /timeshift partition. Or-else you can opt for other partition.

Boot snapshot feature.

This an ultimate feature where your PC is provides with additional level of backup take for every 30 minutes after you system started.

Excluded Files:-

TimeShift is designed to protect system files and settings. User data such as documents, pictures and music are excluded by default. This has two advantages:

You don't need to worry about your documents getting overwritten when you restore a previous snapshot.
Your music and video collection will not waste space on the backup device.

 Install timeshift in ubuntu 13.10/13.04/12.10



Open the terminal and run the following commands:-
sudo apt-add-repository -y ppa:teejee2008/ppa
sudo apt-get update
sudo apt-get install timeshift

Cheers!!!

 

 

 

Monday, 14 October 2013

How to install cinnamon 1.8 in Ubuntu 13.04

 Install cinnamon 1.8 in Ubuntu 13.04


Cinnamon is desktop environment developed by Linux mint team for Linux mint. Cinnamon desktop environment that offer more comfortable and modern features and experience to users of Ubuntu.

I love unity the default environment in Ubuntu its too good but I just want to make you try this beautiful cinnamon environment.

There are many new features included in Cinnamon 1.8 Screen-saver, Cinnamon Control Center, etc

Installing Cinnamon in Ubuntu 13.04



 
$ sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-stable 
$ sudo apt-get update
$ sudo apt-get install cinnamon nemo - See more at: http://www.unixmen.com/install-cinnamon-1-8-ubuntu-13-04/#sthash.3njEUJJt.dpuf

 

After installing Cinnamon and Nemo file manger. Just restart your PC.

Click on Ubuntu logo at the top right corner of your user name on the logon screen. You should see Cinnamon and others.

Select cinnamon and login.

Install cinnamon 1.8 in Ubuntu 13.04


Installing Cinnamon in Ubuntu 13.04


Latest version of Cinnamon 1.8 is not yet available in Ubuntu repositories hence thanks to PPA

Cheers!!!

How to add program icons to desktop in Ubuntu


Add program icons to desktop in Ubuntu



Here in this tutorial we are going to talk about . adding program shortcuts to the desktop in Ubuntu.
In Ubuntu dragging of icons will not support for all the programs this works for some programs but not for all. For instance if you drag LibreOffice Writer icon from Dash to your desktop in Ubuntu, a shortcut will be created but owned by the root user.


adding program shortcuts to the desktop in Ubuntu
Then if you double click on the icon to launch this will be returned with following error message.


This is not at all expected by beginners to use. To get out of these problems you should run these following command in terminal.



Adding program shortcuts to the desktop in Ubuntu



sudo chmod +x ~/Desktop/*.desktop

To take ownership of the icons by running the commands below.


sudo chown username ~/Desktop/*.desktop

Replace username with your account name.


Cheers!!!