Pages

Friday, January 18, 2013

[Ubuntu] Win7+Ubuntu on my PC

Win7 enterprise + Ubuntu 12.04 LTS Desktop

Purpose

Install Win7 and Ubuntu on my PC, with one 500-GB harddisk
50 GB for Win7
50 GB for Ubuntu
* Rest for a sharing space for both OS

You MUST install the Win7 first

Partitioning (through Win7)

51200 MB for one partition ~> for Win7
[your left MB] - 51200 MB for another partition ~> for sharing space
let the rest as free space ~> for Ubuntu

Install Win7 first

Skipped

Install Ubuntu

Skipped

Set up the environment to easily access sharing space

Remount the sharing space to change the name

  1. Find the UUID of the sharing space
    Find out the mounting point
    df -h
    It is /dev/sda3 in my case.

    Find out the mapping between mounting point and its UUID
    sudo blkid -s UUID
    Here, my UUID is 7EE047BDE0477A83
  2. Create a directory as the new mounting point, say, /Data
    sudo mkdir /Data
  3. Save and reboot
  4. Edit the /etc/fstab with root privilege, append with
    # mount the sharing space
    UUID=7EE047BDE0477A83    /Data    ntfs-3g    defaults    0    0
  5. Make a soft link (shortcut)
    I put the soft link on /home/Spencer/Desktop
    sudo ln -s /Data /home/Spencer/Desktop




[Optional]


Set up the startup applications (automatically launched on boot)

Approach 1: Using command line only
For example, dropbox
Create a file named as dropbox.desktop under ~/.config/autostart


[Desktop Entry]
Name=Dropbox
GenericName=File Synchronizer
Comment=Sync your files across computers and to the web
Exec=dropbox start -i
Terminal=false
Type=Application
Icon=dropbox
Categories=Network;FileTransfer;
StartupNotify=false


*.desktop is a launcher, you can customize with any command
(do not forget to make it executable)


Approach 2: Via the GUI
On the top-right side (next to your account)
click 'Startup Applications', and you know the idea.


Set up the iBus (typing traditional Chinese)

Install the Chewing first
sudo apt-get install ibus-chewing
The iBus app is /usr/share/ibus-daemon
put it in the startup applications too!


Set up the SSH server (make it accessible remotely)

sudo apt-get install ssh
* Note: ssh include the openssh-server

No comments:

Post a Comment