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!!!

Friday, 11 October 2013

How To Install Google chrome in Ubuntu through command line.

Guys want to install Google chrome in your Ubuntu versions then here is a tutorial exclusively how to install Google chrome in Ubuntu. So move to Google chrome download page  and download deb installer.

Google chrome one of the most popular browser where every one likes to use it.

Then here is the chrome tutorial guys for you.

Install Google chrome in Ubuntu Google chrome download page.



Install Google chrome in Ubuntu through command line.


 Google chrome download page Download page

If you are comfortable with Google chrome download page then use that or else you can move to this command line operation of how to install Google chrome in Ubuntu.

 Install Google chrome in Ubuntu through command line.



Users who are comfortable using the command line console, use the commands below to download Google Chrome.

Change directory to temp.
cd /tmp

For the 32-bit version of Google Chrome in Ubuntu , use the link below.
wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb

For the 64-bit version of Google Chrome in Ubuntu , use the link below.
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

after downloading to install Google chrome  in Ubuntu copy and paste this command
sudo dpkg -i google-chrome*; sudo apt-get -f install

Now we are done with this tutorial. search for Google chrome in Unity Dash then you will find that

Cheers!!!

Extract rar files in Ubuntu 13.04 / 12.10 / 12.04 & upcoming versions


Extract RAR files in Ubuntu.



Guys do you have any problem while extracting a RAR file. Then here is clear and neat tutorial of How to Extract RAR files in Ubuntu 13.04 / 12.10 / 12.04. in this tutorial we are using a third party apps to unrar files like unrar and 7-Zip to extract RAR files in Ubuntu 13.04 / 12.10 / 12.04 / 11.10 which is free to use.
You have the similar problem I think.

 Extract rar files in Ubuntu 13.04 / 12.10 / 12.04 & upcoming versions


Then there is no command this situation.

To install unrar which is one of my favorites.


Run the below command to install unrar.
sudo apt-get install unrar

And give the password of your user account when it is prompted.


That’s it you are done with all the things now you can successful extract or open RAR files in your system.

Cheerss!!!!!!

Monday, 7 October 2013

Do you really like exit terminal after n seconds of interval of Inactivity-Ubuntu/Linux Mint

Exit the Terminal after 'n' Seconds


Here in this tip we are going to show how to exit terminal after n seconds of interval of Inactivity. This will work on all the Ubuntu and Linux mint version. So here we are going to get stared to force the terminal to close after n seconds of inactivity.

exit terminal after n seconds of interval of Inactivity

Now here you should edit  /etc/profile with this command
sudo gedit /etc/profile

Add following lines of code at the end of this file.

# Exit Terminal
TMOUT=400
export TMOUT

I have set for 400 seconds and you can set your own time here.

Sunday, 6 October 2013

Log off current user account from the Unity launcher under Ubuntu 13.04/12.10


Log off current user account from the Unity launcher.



This is a tip to show how easily and quickly Log off current user account from the Unity launcher under Ubuntu 13.04/12.10. This can be done by installing a simple bash script.

To install Log off current user account from the Unity launcher move to Terminal



sudo add-apt-repository ppa:upubuntu-com/apps 
sudo apt-get update
sudo apt-get install logout-session

To install Log off current user account from the Unity launcher move to TerminalNow search in unity dash for "Logout Session" and drag the icon to the unity launcher.


That’s it you are done with your work guys.


Now onwards you can turn off the current user by using this button.

Saturday, 5 October 2013

Get Deepin Software Center Version 3.0 for Ubuntu 13.10/13.04/12.10/12.04/Linux Mint 15/14/13


Deepin Software Center:-


Deepin Software Center




Install Deepin Software Center 3.0 or 2.1 in Ubuntu 13.10 Saucy/Ubuntu 13.04 Raring/Ubuntu 12.10 Quantal/Ubuntu 12.04 Precise/Linux Mint 15/14/13/Other Ubuntu derivatives
Deepin Software Center 2.1 version is available for Ubuntu 11.10/11.04/Linux Mint 12/11.

 

Deepin Software Center an good software center that allows the parallel downloads.

This also helps in resuming download, update notifications, this also helps in cache clearing.

This has got a good colorful skins where every fall in love with it. This can be changed according to your interest.

Deepin Software Center provides about 2,600 decent applications for easy installation and uninstallation.

This supports one-click installation mechanism.

You can download multiple applications at a time and helps in clearing up cached packages.

Now you have both 3.0 and 2.1 available for Ubuntu/Linux Mint. This also available other Ubuntu based version.

Features of Deepin Software Center:-


Features of Deepin Software Center




Regularly updated featured application list on home page

This gives an easy way to choose and install a software. With just one-click.

This is also powered win multithreaded download in back ground.

This automatically cleans cashed packages to get more space.

Install Linux Deepin Software Center (Version 3.0) in Ubuntu 13.10/13.04/12.10/12.04/11.10/11.04/Linux Mint 15/14/13/12/11/ open Terminal (Press Ctrl+Alt+T) and copy the following commands in the Terminal:

 
sudo add-apt-repository ppa:noobslab/deepin-sc
sudo apt-get update
sudo apt-get install deepin-software-center

Install Linux Deepin Software Center (Version 2.1) in Ubuntu 13.10/13.04/12.10/12.04/Linux Mint 15/14/13 open Terminal (Press Ctrl+Alt+T) and copy the following commands in the Terminal:
sudo add-apt-repository ppa:noobslab/deepin-sc
sudo apt-get update
sudo apt-get install deepin-software-center-2

credits to Noobslab

CHEERS!!!

Thursday, 3 October 2013

How to Enable Login as Root in Ubuntu 12.04Precise Pangolin/11.10 Oneiric Ocelot.

Enable root login.


Hi guys do you really want to enable root login in Ubuntu 12.04? As this not recommended, but it’s still possible to login with the root or the administrator account, here in this tutorial we are going to show you How to enable root login.

Why this mechanism is not preferred because small mistake while root login may cause risks to login as root. And here is complete tutorial where Still if you are willing to login as root then continue with the below steps.

To Enable root, open Terminal and enter following commands:
sudo passwd root
sudo sh -c 'echo "greeter-show-manual-login=true" >> /etc/lightdm/lightdm.conf'

  Enable Login as Root in Ubuntu 12.04Precise Pangolin/11.10 Oneiric Ocelot.



Cheers!!!

Wednesday, 2 October 2013

How to INSTALL CINNAMON DESKTOP IN DEBIAN/FEDORA/OPENSUSE

 CINNAMON DESKTOP FOR DEBIAN/FEDORA/OPENSUSE.


linux (1)

Cinnamon an open source interface for Linux desktop environments. Similar like GNOME. This is truly based on GNOME shell user interface. This is having many advanced and innovative features, and same way this also provides the traditional experience.

 INSTALL CINNAMON DESKTOP IN DEBIAN/FEDORA/OPENSUSE


I can say the best of Cinnamon layout is similar to GNOME 2. This is flexible and features lots and lots of themes, applets, desklets and extensions for greater customization.

To install Cinnamon desktop in Debian open Terminal and enter following commands:
su -
echo deb http://packages.linuxmint.com/ debian main import backport upstream romeo >> /etc/apt/sources.list
apt-get install linuxmint-keyring
apt-get update
apt-get install cinnamon

To install Cinnamon desktop in Fedora open Terminal and enter following commands:
sudo yum update
sudo yum install -y cinnamon

To install Cinnamon desktop in OpenSuse 12.2 open Terminal and enter following commands:
zypper ar http://download.opensuse.org/repositories/GNOME:/Cinnamon/12.2/GNOME:Cinnamon.repo
zypper refresh
zypper in cinnamon

To install Cinnamon desktop in OpenSuse 12.1 open Terminal and enter following commands:
zypper ar http://download.opensuse.org/repositories/GNOME:/Cinnamon/12.1/GNOME:Cinnamon.repo
zypper refresh
zypper in cinnamon

Cheers!!!

SKYPE FOR FEDORA 19/18/17/16/15/CENT OS/REDHAT 6.X

SKYPE FOR FEDORA 19/18/17/16/15/CENT OS/REDHAT 6.X in installation process.


Skype is medium that allows the people to communicate with each other by messaging or video calling. This Skype also provides services to phone calls on the telephone network. And the best feature any on Skype network can call for free of charge and there is no limit of call time. This Skype charge the people for calling to mobiles and landlines. So today we are going to install this best Skype on Fedora 19/18/17/16/15/Cent OS/RedHat 6.x.

SKYPE FOR FEDORA 19/18/17/16/15/CENT OS/REDHAT 6.X


To install Skype in Fedora open Terminal and enter following commands in Terminal:

su && yum -y install qtwebkit.i686 qt-mobility.i686 alsa-lib.i686 libXv.i686 libXScrnSaver.i686 qt-x11.i686
wget http://download.skype.com/linux/skype-4.1.0.20-fedora.i586.rpm
rpm -ivh skype-4.1.0.20-fedora.i586.rpm

To install Skype in CentOS/RedHat open Terminal and enter following commands in Terminal:

su && yum install alsa-lib.i686 fontconfig.i686 freetype.i686 glib2.i686 libSM.i686 libXScrnSaver.i686 libXi.i686 libXrandr.i686 libXrender.i686 libXv.i686 libstdc++.i686 pulseaudio-libs.i686 qt.i686 qt-x11.i686 zlib.i686
wget http://download.skype.com/linux/skype_static-4.0.0.8.tar.bz2
mkdir /opt/skype
tar xvf skype_static* -C /opt/skype --strip-components=1
cd /usr/lib
ln -s libtiff.so.3 /usr/lib/libtiff.so.4
ln -s /opt/skype/skype.desktop /usr/share/applications/skype.desktop
ln -s /opt/skype/icons/SkypeBlue_48x48.png /usr/share/icons/skype.png
ln -s /opt/skype/icons/SkypeBlue_48x48.png /usr/share/pixmaps/skype.png
touch /usr/bin/skype
chmod 755 /usr/bin/skype

Now enter following command to open text file and copy the following code in text file:

nano /usr/bin/skype

 

#!/bin/sh
export SKYPE_HOME="/opt/skype"
$SKYPE_HOME/skype --resources=$SKYPE_HOME $*

Cheers!!!

How to install VLC media player in Fedora and centos.

VLC media player in Fedora and centos.


Install VLC media player in Fedora 18/17/16/15/14/13/12 and on CentOS/other Distributions from VLC source code

Vlc media player (initially VideoLAN Client) is highly portable player for playing various audio and video formats, and this works with all the DVDs,VCDs. And various streaming protocols.

Install VLC media player in Fedora 18/17/16/15/14/13/12 and on CentOS/other Distributions from VLC source code


For features info

To install VLC in any Fedora open Terminal and enter following commands:
su
rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
yum install vlc mozilla-vlc

To install VLC in CentOS/other Distro open Terminal and enter following commands:
su
yum install gcc dbus-glib-devel* lua-devel* libcddb
wget http://download.videolan.org/pub/videolan/vlc/2.0.5/vlc-2.0.5.tar.xz
tar -xf vlc-2.0.5.tar.xz && cd vlc-2.0.5
./configure –prefix=/opt/vlc
make
su -c "make install"

 Cheers!!!