How to triple-boot Ubuntu, Fedora and Windows 7

This is the simple tutorial which will help you to install three different os on the single machine. We will be installing Windows 7, Fedora 17 and Ubuntu 12.04.

First we will install Windows 7, then Fedora, then install Ubuntu in last. Ubuntu’s GRUB is better than Fedora’s, since it detects all other operating systems on your computer.

Step 1 Install Windows!(Skip this step if you have it already)

Step 2 Shrink your Windows Partition using windows inbuilt utility called Disk Management.
Click on the Start Menu, then right-click Computer, then select Manage. Then Select Disk Management from the sidebar.

Step 3 Right-Click the Windows Partition and Choose Shrink Volume. Decide How many MB’s you will want to give to Ubuntu and Fedora. I suggest shrinking about 20-50 GBs for both Fedora and Ubuntu, since as per my requirements there should be at least 6.5 GB of disk space for both.

Step 4 Shut down Windows.

Step 5 Boot into a Fedora Installation or Live CD and choose Install Fedora.

Step 6 Keep going and then stop at this step.

Step 7 Choose Create Custom Layout.

Step 8 Select the Free thing and then click the Create button.

Step 9 Click Create again. Choose the Mount Point as / and give some space to Fedora in MBs. Remember to leave some space for Ubuntu!

Step 10 Go through the rest of the Process

Step 11 Restart your machine and setup through all those Fedora Stuff.

Step 12 Then reboot into a Ubuntu Live CD.

Step 13 Again, stop at this step.

Step 14 Choose Something Else.

Step 15 Click the Free space and then click Add. Again choose / for the mount point and use a Logical Partition. Choose any Disk size you want.

Step 16 Click OK and go through the rest of the process

Step 17 A GRUB menu should appear to let you choose Windows, Ubuntu, and Fedora!

Note: If Fedora didn’t show up in the GRUB menu, you might have to type sudo update-grub in the Terminal.

How to Restrict NTFS Partition Access to Non-Admin user in Ubuntu

At home I am having NTFS partition on which Windows is installed. Some time I used to mount my NTFS partition on Ubuntu box for some work. Due to some reason I want to restrict the access of other Ubuntu users to this partition.

To solve this problem we can use fstab file. Suppose if a particular partition contains a VFAT or NTFS filesystem, and you only wish to be able to access it yourself, it’s pretty simple:

include the options “noauto”, “uid=XXX”, and “umask=7″ in fstab line, and remove the “user” and/or “users” options if they appear there now.

This means that at boot time the system will come up with that partition unmounted, and only you (operating as root, using sudo presumably) can mount it

once mounted, it will be owned by your unprivileged user (assuming that that user’s uid is XXX, which is given to the first user created at install time in MDV installs – check with the “id” command run as that user, and adjust fstab accordingly) and will be inaccessible to all other local users.

Now we will try to do this process in 4 easy steps.

Step 1 Open fstab file as,

gksudo gedit /etc/fstab

Step 2 You should add line in /etc/fstab file as follows,

/dev/sdb5   /media/techinote    ntfs-3g noauto,uid=XXX,unmask=7 0   0

Here XXX is my user id. You can find yours with id command and /dev/sdb5 is partition I want to restrict access to.

Step 3 Create a folder named techienote in /media/ as follows,

sudo mkdir /media/techienote

Step 4 Now whenever you login you need to mount it as,

sudo mount /dev/sdb5 /media/techienote

Done

Power on Computer Remotely Using WOL – Wake on Lan

One of my client is having two machines, one is ubuntu server and another one is windows. He has setup Ubuntu as a server machine, so he can connect it using SSH, FTP, VNC remotely. He is using windows machine only for gaming purpose.

But now he got some US project and want to work as per their time. They have provided one cisco client which is working only on windows. So whenever he wants to work from outside he has to assure that his windows system is on before leaving office.

To solve this issue I told him about wake on lan (WOL). I told him he can start his windows machine whenever he want it via wake on lan. He just need an ethernet address (MAC) address of the windows machine. So this how to is for how to enable wake on lan on motherboard as well as on windows / ubuntu.

To enable wake on lan on motherboard, go to BIOS and search for Power Option. There you will see wake on lan option. Just enable it, save the BIOS settings.

Now on windows machine you can enable wake on lan using following method.

1. Open the Device Manager and the Properties page for the Network Adapter to be WOL enabled.

2. Verify that PROset is installed and it is the latest version (check the Link Speed tab).

3. Select the Power Management tab and check the tick box “Wake on Magic Packet from power off state”.

4. Make a note of the MAC address, IP address and Subnet Mask of the Network Adapter for which WOL was enabled.

5. Power the system off.

Now on the UBUNTU machine we have to install wake on lan utility, to do so run

sudo apt-get install etherwake

Above command will install ehterwake utility which we can use to power on windows machine from ubuntu.

Now just run following command to start windows machine using WOL from ubuntu

wakeonlan 00:15:17:AF:57:B5

00:15:17:AF:57:B5 is a MAC address of windows machine which we got from step 4.

That’s it. Your machine should start now.

Please note that WOL works on udp port 7 and 9. By default wakeonlan will send magic packets on port 7. If it is not working just run

wakeonlan -p 9 00:15:17:AF:57:B5

You can also power on your UBUNTU machine through windows using WOL utilty

Create Wifi Hotspot in Windows

This tutorial will guide you in setting up your laptop as a wifi-hotspot to share wifi or dial-up connection. I am using Windows 7 as a base OS and connectify to work as wifi-hotspot.

In this way you can share your internet / wifi / dial-up connection with your wifi enabled device.

Requirement:
OS Windows 7 (Not tried on XP)
WIFI enabled laptop
Connectify. You can download the free version from here.

1. To start the process download and install Connectify from above link.
2. After installation it will ask to reboot the machine, do the same.
3. After restart you will see Connectify icon in task bar notification area.

4. Click on the Icon. Now we need to create wifi-hostspot. Fill up require details as per your wifi configuration and click on Start Hostspot. For better understanding see below screenshot.

Remember Select the proper network adapter in Internet option. If you are getting connected to internet via dial up connection select dial up connection in Internet option. I am using wireless network connection to connect internet.

5. Now setup your wifi enabled device to use our laptop connection as an access point. I have tried the same with Nokia phone. After successful connection you will see your device in Client tab.

That’s it. Enjoy your new wifi-hotspot.

Fix Windows Registry in Ubuntu

Most of the time you need to edit windows registry to solve windows problem. But what you will do if your windows is not getting loaded, you will search for software or live cd of a program to fix you registry. But no need of doing this if you have Ubuntu live cd or Ubuntu on another partition. To access windows registry boot your need to boot your machine in Ubuntu

Please note use this utility on your risk. I have tested chntpw on Ubuntu 11.04 with Windows XP SP 2.

Install chntpw utility

sudo apt-get install chntpw

Mount Windows partition:
Find the Windows partition:

sudo fdisk -l

Assume it is on /dev/sda1. Next step is mounting of the partition:

sudo mkdir /media/windows 
sudo mount /dev/sda1 /media/windows

Registry editing
To go in proper hive you must know the Hive name. For same please refer following table.

Registry Key Name 	             Hive Filename
HKEY_CURRENT_USER 	             NTuser.dat
HKEY_LOCAL_MACHINE\SAM 	             SAM
HKEY_LOCAL_MACHINE\SECURITY 	     SECURITY
HKEY_LOCAL_MACHINE\SOFTWARE 	     SOFTWARE
HKEY_LOCAL_MACHINE\SYSTEM 	     SYSTEM
HKEY_USERS\DEFAULT 	             DEFAULT

For eg. you need to go HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Themes and change the Start value to 4.

then do as follows

chntpw -l /mnt/sda1/WINDOWS/system32/config/system

At the new command prompt type ? to see various commands used for registry editing. Most useful commands are dir,cat,cd,ed etc.

Now type ‘dir’ command to see all the subkeys under the root key. You will see many ControlSet00* keys under this, but where is the CurrentControlSet key. We need this subkey to edit properties of Themes service..!

Well, don’t be panic. The answer is hidden in ‘Select’ subkey. Now enumerate all the values under ‘Select‘ subkey as shown below.

cd Select 
dir

Now the value associated with ‘Current’ subkey will tell you which is the currently used ControlSet00* key. For example if the ‘Current’ has value 2 then that means you have to select ‘ControlSet002′ etc. On my machine the ‘Current’ has value 1. So I am going to select ‘ControlSet001′ key.

Know we know which controlset we have to use for our purpose. Now select it and move on to Themes subkey as shown below. Note that we are under Select key. You have to go back to root key to choose the ControlSet key.

cd ..
cd ControlSet001\Services\Themes

Now type ‘dir’ command to see all the names and their values under this key. We have to just change DWORD value of ‘Start’ to 4 using the ‘ed’ command.

ed Start

When you are prompted to enter new value, just type 4 and press ‘ENTER’ to set the new value.To verify use the below shown command.

cat Start

Once you have modified all required changes, type ‘q’ to quit the registry editor and then press ‘y’ to save your changes. After that restart the system and you should be able to login normally without any problem.

Page 1 of 7123456»...Last »
rss twitter facbook

Categories

Archives