Contact Form

Name

Email *

Message *

1

Blogger Tricks.

2

Mobile Tricks.

3

Software Carkes.

4

Computers Tricks.

5

.

Saturday, 1 November 2014

How to Reset Root Password in Ubuntu

In this digital age, we have to deal with a lot of usernames and passwords. There are many a times we forget some of these passwords and have a hard time to recover/reset them. There can also be many other reasons to reset passwords . Some of such reasons are :-
  • You got physical access to a linux ubuntu machine and you don’t know the password of the account.
  • You have lot many passwords to remember and you forget the linux machine password.
Today we will tell you how to reset your Ubuntu machine password.
First of all boot you ubuntu machine.
Select the recovery mode. This mode will help us to reset the ubuntu user accounts password (even root password)
recovery mode option
Now wait for the linux kernel to load.
You will get now get a screen having various options.
Select root- drop to root shell prompt. And press OK.

recovery mode menu
As you know with root account priviledges you can do anything in the ubuntu machine (I mean anything). So please be careful in using these commands.
Use the command following command to know the username.
  • ls /home
This command will give a list of all users of the ubuntu machine. Linux is case sensitive so take care of this thing.
Use the following command to reset the password of the user Steve. You can also change the password ofroot using this method. just type root instead of Steve.
  • passwd Steve
You will then be prompted to enter new password.
You will be prompted to retype you password.

reset password
After doing this, type the following command to return.
  • exit

How To Install Red Hat Linux

As the open source revolution grows around the world, more and more people are starting to switch over to the Linux Operating System and pre-eminent of all the Linux OS is the Red Hat Linux, owned and distributed by the Red Hat Inc. However, installation of Linux itself is seen as a rather arduous and herculean task among many beginners/inexperienced users. As a result this document has been formulated as a step-by-step guide to ensure that everybody can install and use Red Hat Linux seamlessly and with ease. So lets start the installation, here are the steps to easily install red hat linux :
Step 1 – Insert the Red Hat Linux DVD into the DVD-drive of your computer. As soon as the following screen pops up, press ‘Enter’ to install Red Hat Enterprise Linux (RHEL) through GUI mode.
Step 2- RHEL installer would then prompt you conduct a check as to whether the CD media from which you’re installing is functioning correctly or not. Choose ‘Skip’, press enter and the installation would begin.
Step 3- Next, we need to select the language- English or any other language as per your preference, and then press ‘Next’ .
Step 4- In this step, the RHEL installer would ask you about the appropriate type of keyboard for the system. We take the ‘US English’ keyboard, you can pick any other option depending on the type of your keyboard. Then press ‘Next’ to move to the next step.
Step 5- Next, the installer would ask for an ‘installation number’ if you wish to install full set of Red Hat functionalities. Enter the installation number and press ‘OK’ if you have an officially licensed installation number(for corporate clients that buy Red Hat’s backup support and full features).
Others can select ‘Skip entering installation number’ and press ‘OK’ to proceed. RHEL would show a warning message, press ‘Skip’ in it to continue.
Step 6- The Red Hat installer would then require you to create partitions in your computer’s hard disk for the installation. You can do it in four ways but the simplest way is to select ‘Use free space on selected drives and create default layout’ as this option will not affect any other OS residing in your system.
Check the ‘review and modify portioning layout’ to create partitions and click next.

Step 7- In this step you must create the required system partitions and mount points such as ‘/boot’, ‘/home’, ‘swap’ etc which are required for the Linux’s proper functioning.
To create different partitions such as /home, /var etc, click on ‘New’ to create the partitions.
Then, select /home in the mount point and choose ‘ext3’ as the file system and give the desired size for it and then click ‘OK’. Similarly also create /boot and /var.
Also, create a swap partition by clicking on ‘New’ and then choosing the filesystem as ‘swap’ and also give the size of Swap partition.(Usually size of swap partition SHOULD BE twice the size of RAM available to the system but you can keep its size less than that too)
Once you have made all the desired partitions and given their mount points, click ‘Next’ to continue installation.
Step 8- This step pertains to the default OS that will be loaded by the GRUB loader
(Note- If you have multiple Operating Systems installed, you would see multiple options here and you have to check in front of the OS name that you want to be loaded by default when the system is started.)
Click ‘Next’ to continue.
Step 9- This step pertains to the network settings of the Linux system that you are going to install. You can select the Ethernet devices through which the system would communicate with other devices in the network.
You can also provide the hostname, Gateway address and DNS address to the system during this step. (However it’s better to adjust these settings once the system has been fully installed).
Step 10- The next step is to adjust the system clock to your particular time zone. Select your time zone and then click ‘Next’.
Step 11 – This is a very important step that deals with the root(super-user) password for the system . Type the password and confirm it and then click next.
Step 12 – The RHEL installer would then prompt you about if you wish to install some extra ‘Software Development’ or ‘Web Server’ features. By default, keep it at ‘Customize later’ and press ‘Next’.

Step 13- This next step will initiate the installation of Red Hat Linux, press ‘Next’ to begin the process.
Step 14- Upon the completion of installation you should the following screen. Press Reboot and you’d be ready to use your newly installed Red Hat Linux OS.
POST INSTALLATION CONFIGURATIONS
1. Accept the Red Hat License agreement and click ‘Forward.
2. The next step is regarding the configuration of the Firewall. You can Enable or Disable the firewall according to your preferences and then click ‘Forward’.
3. Next step is about the configuration of another security tool- SE Linux. By default you should keep it ‘Disabled’ unless you’re working with very secure information.
4. You can also choose to configure the Kdump, that stores information about system crashes if your system fails but uses valuable disk space. By default don’t enable it.
5. Next, adjust the time and date settings, and then click ‘Forward’.
6. The next step is for software updates from Red Hat, at this point you should skip the registration and register at a later time and then click ‘Forward’.
7. This step is to create a non-admin user for the system. Enter the details and click ‘Forward’.
8. This step is about configuration of your Sound Card, choose a sound device and then click ‘Forward’.
9. Click ‘Forward’ to complete the configurations and start using your Red Hat Linux OS.
(Note- On clicking ‘Finish’ the system would require a reboot if you have made changes to the configurations of Firewall or SE Linux.)
Your Red Hat Linux OS is now all installed and configured, ready to be used. Good luck using and exploring various features of Red Hat Linux.

Friday, 31 October 2014

Install Linux Kernel 3.5


The stable version of Linux Kernel 3.5 has finally been released which comes with many features and bug fixes. This kernel has known improvements in support for Android and file systems (ext4).  Here are some other new features:

  • An improved support for hybrid graphics
  • FireWire Target Disk Mode Support
  • Adding support for Xonar DGX and Creative Sound Core3D
  • EXT4 supports now CRC32 Meta-Data
  • Improved support for graphics cards especially nVidia and AMD GPUs
In this tutorial, we will help you install Kernel 3.5 on Ubuntu 12.04/11.10 or older and any Ubuntu-based system like Linux Mint 13.

Linux Kernel 3.5 Installation

Open the terminal and run the following commands to install Kernel 3.5.0 at your own risk for 32-bit/i386 systems:

sudo add-apt-repository ppa:upubuntu-com/kernel-i386
sudo apt-get update

sudo apt-get dist-upgrade

or

sudo apt-get install linux

For 64-bit/amd64 systems, you can install with these commands:

sudo add-apt-repository ppa:upubuntu-com/kernel-amd64
sudo apt-get update

sudo apt-get dist-upgrade

or

sudo apt-get install linux

Restart now your system to finish the installation. Then, check your current kernel version with this command:

uname -r

To remove Linux Kernel 3.5 and restore the previous kernel, run this command:



sudo apt-get purge linux-image-3.5.0-030500-generic




Good luck!

How to boot live USB in VirtualBox

In this tutorial, we will show you a way for making VirtualBox or VMware Player boot from live USB devices since this feature hasn't been implemented yet natively in both software. The trick we will use will rely on the Plop boot manager which allows via a live iso to boot from USB devices.


We will show you how to use the Plop boot manager with both VMware Player and VirtualBox under Ubuntu/Linux Mint (12.10/12.04/Mint 14/13, etc.).

Downloading the Plop Boot Manager

You can download the Plop iso file from here. Or Open the terminal and download the Plop iso image to your home directory with this command:

cd && wget -c http://goo.gl/sJoKf -O ploplinux-4.2.2.iso

1. Boot from Live USB in VirtualBox

We assume you have already created a VM (virtual machine), double click it to start it. Mount the USB stick (live USB) to VirtualBox by opening Devices >>USB Devices >> Your USB Device:


 If it is not available, then you may need to run this command from the terminal to be able to mount USB devices under Ubuntu/Linux Mint (replaceusername with your own user account name):

sudo adduser username vboxusers

Once your USB device is mounted in VirtualBox, look at the bottom of the VM's window, you will see a small CD icon, right-click it and select "Choose a virtual CD/DVD disk file":


Select now the plob iso file (ploplinux-4.2.2.iso) that you have downloaded:


Press Right CTRL+R to reset the VM and wait for Plop boot menu. If it didn't show up, reset the VM again and press F12 to bring up the boot menu, pressc to boot from CD-ROM:


In the Plop boot menu, use your arrow keys to select the "Plop Boot Manager" option and press Enter:


Another menu will show up, select USB and press Enter to boot from the USB device:


                                                                                                                                                                                                                                                                                                
2. Boot from Live USB in VMware Player

To boot from a live USB in VMware Player, we will also use the Plop boot loader. Start VMware Player, select any VM of your choice, then click "Edit Virtual machine settings":


Select the "CD/DVD (IDE) option, then in the right side, select "Use ISO image" and click the Browse button:


Open the Plop iso file and click Save:


Start now the VM and wait for the Plop boot menu. When it shows up, selectPlop Boot Manager and press Enter:


In the next menu, select USB and press Enter to boot from the USB device:

VMware Player 6.0.1 Installation in Linux


VMware Player has been updated to version 6.0.1recently which resolves some known issues. To check what has been fixed in this latest update, gohere.

In this tutorial, we will see how to install VMware Player 6.0.1 in the following distros:

  • Ubuntu 13.10/13.04/12.10 or older
  • Linux Mint 16/15/14 or older

 VMware Player 6.0.1 Installation

to install VMware Player 6.0.1 in Ubuntu/Linux Mint, run firstly this command:

sudo apt-get install build-essential linux-headers-`uname -r`

Under a 32-bit system, you can install VMware Player with the following commands:

mkdir ~/VMware && cd ~/VMware 
wget -c http://goo.gl/kkfRJg -O VMware-Player-i386.bundle.tar 
tar -xvf VMware-Player-i386.bundle.tar 
chmod +x VMware-Player-6.0.1-1379776.i386.bundle  
sudo sh VMware-Player-6.0.1-1379776.i386.bundle

 For 64-bit systems, enter these commands:

mkdir ~/VMware && cd ~/VMware 
wget -c http://goo.gl/Uxia2s -O VMware-Player-x86_64.bundle.tar 
tar -xvf VMware-Player-x86_64.bundle.tar 
chmod +x VMware-Player-6.0.1-1379776.x86_64.bundle 
sudo sh VMware-Player-6.0.1-1379776.x86_64.bundle

Android Devices's Screen From Ubnutu


In this tutorial, we will see how to record your Android device's screen using a simple Java application called androidscreencast, you can get more information about it here.


The tutorial is workable in the following Ubuntu/Linux Mint distributions:

  • Ubuntu 13.04/12.10/12.04 or older
  • Linux Mint 15/14/13 or older
Getting Started 

Let's first install some dependencies needed for the application to run properly. So, open the terminal and enter this command:

sudo apt-get install openjdk-7-jre android-tools-adb icedtea-netx

Connect now your Android device (Tablet/smartphone) via USB and run this command to make sure it is detected:

adb devices

You may see outputs similar to these if device detected:

List of devices attached 
c1607f713b068af device

Now install androidscreencast using these commands:

mkdir  -p ~/Android_Screencast && cd Android_Screencast 
wget http://goo.gl/LMbQb -O androidscreencast.jnlp

Start the application with this command:

javaws  ~/Android_Screencast/androidscreencast.jnlp

Wait for a a few seconds, then your Android device screen will appear on your computer:



You can resize the application window to increase the screen resolution of your Android device's screen.