1. VirtualBox
-
Install VirtualBox.
1.1. VHD Image
-
Start Windows Explorer.
-
Create the D:\VirtualBox\VirtualBox VMs\Ubuntu 16.04 - Bioinformatics folder.
-
Copy W:\Images\Ubuntu\Training-Clone.vhd to the D:\VirtualBox\VirtualBox VMs\Ubuntu 16.04 - Bioinformatics folder.
-
Close Windows Explorer.
1.2. Create new virtual machine
-
Start VirtualBox.
-
Click New.
Name: Ubuntu 16.04 - Bioinformatics Type: Linux Version: Ubuntu (64-bit)
-
Click Next.
Memory size: 10240 MB
-
Click Next.
-
Choose Use an existing virtual hard disk file.
-
Click the Choose a virtual hard disk file button.
-
Select the D:\VirtualBox\VirtualBox VMs\Ubuntu 16.04 - Bioinformatics folder.
-
Select the Training-Clone.vhd file.
-
Click Open.
-
Click Create.
-
Close VirtualBox.
1.3. Configure new virtual machine
-
Start VirtualBox.
-
Select the Ubuntu 16.04 - Bioinformatics virtual machine.
-
Click Settings.
-
Select the General page.
-
Select the Advanced tab.
-
Select Shared Clipboard > Bidirectional.
-
Select the System page.
-
Select the Motherboard tab.
-
Uncheck Boot Order > Floppy.
-
Check Hardware Clock in UTC Time.
-
Select the Processor tab.
-
Select Processor(s) > 4.
-
Select the Shared Folders page.
-
Click the Adds new shared folder button.
-
Select Folder Path > Other.
-
Select the D:\ folder.
-
Click Select Folder.
-
Check Auto-mount.
Folder Path: D:\ Folder Name: D_DRIVE □ Read-only ■ Auto-mount -
Click OK.
-
Click OK.
-
Close VirtualBox.
2. Start virtual machine
-
Start VirtualBox.
-
Select the Ubuntu 16.04 - Bioinformatics virtual machine.
-
Click Start.
-
Do your thing.
-
Shutdown the Ubuntu 16.04 - Bioinformatics virtual machine.
-
Close VirtualBox.
3. Configuration
3.1. Default keyboard
-
Log on as Bioinfo Training.
-
Open System Settings > Text Entry.
-
Select English (US).
-
Click the ^ button to make English (US) the first choice.
-
Close Text Entry.
-
Click the En icon and select English (US).
-
Log off.
3.2. Locale
sudo update-locale LANG="en_US.UTF-8" LANGUAGE="en_US" sudo dpkg-reconfigure locales # Press Tab key to select "OK" and press Enter. # Select "en_US.UTF-8". # Press Tab key to select "OK" and press Enter.
-
Log off.
-
Log on as Bioinfo Training.
-
Check Don’t ask me this again.
-
Click Keep Old Names.
3.3. Updates
|
Make sure that the host computer has direct internet access. |
-
Log on as Bioinfo Training.
-
Start Terminal.
-
Enter the following commands at a Command Line.
sudo apt-get update sudo apt-get upgrade --yes sudo apt-get dist-upgrade --yes sudo apt-get autoremove --yes -
Close Terminal.
3.4. GRUB Configuration
Enter the following commands at a Command Line.
sudo cp -a /etc/default/grub /etc/default/grub.org
sudo sed -i 's/GRUB_HIDDEN_TIMEOUT=30/GRUB_HIDDEN_TIMEOUT=5/' /etc/default/grub
sudo update-grub
3.5. Samba Configuration
|
Make sure that the host computer has direct internet access. |
Enter the following commands at a Command Line.
sudo apt-get install cifs-utils --yes
sudo mount -t cifs -o iocharset=utf8,username=<User>,domain=SMRU,vers=2.0 //SMRU-SRV/Teams$ /mnt
dir /mnt
sudo umount /mnt
sudo cp -a /etc/samba/smb.conf /etc/samba/smb.conf.org
sudo sed -i "/^\[global\]/a client max protocol = SMB3" /etc/samba/smb.conf
sudo sed -i "/^\[global\]/a client min protocol = SMB2" /etc/samba/smb.conf
3.6. Screen lock time
-
Open System Settings > Brightness & Lock.
-
Select Turn screen off when inactive for: Never.
-
Disable Lock.
-
Close Brightness & Lock.
3.7. Timezone
-
Open System Settings > Time & Date.
-
Select the Time & Date tab.
-
Select the Bangkok location by clicking on Thailand in the world map.
-
Close Time & Date.
3.8. VirtualBox Guest Additions
-
Select Devices > Insert Guest Additions CD image.
-
Click Cancel in the popup window.
-
Enter the following commands at a Command Line.
sudo su - apt-get install dkms --yes cp -a /etc/group /etc/group.org cp -a /etc/gshadow /etc/gshadow.org gpasswd -a training vboxsf cp -a /media/training/VBox_GAs_5.2.18/VBoxLinuxAdditions.run . ./VBoxLinuxAdditions.run vdir /opt exit
-
Select Devices > Optical Drives > Remove disk from virtual drive.
-
Click Force Unmount.
-
Restart the virtual machine.
4. Usage
-
Log on as Bioinfo Training.
-
Start Files.
-
Select Connect to Server.
-
Archive share: Type
smb://SMRU-HyperV01/Archive$for the Server Address. -
Teams share: Type
smb://SMRU-SRV/Teams$for the Server Address. -
Click Connect.
-
Choose Registered User.
Connect As ○ Anonymous ● Registered User Username <User> Domain SMRU Password ******** ○ Forget password immediately ○ Remember password until you logout ● Remember forever -
Click Connect.
-
Do your thing.
-
Select the Archive$ on SMRU-HyperV01 > Eject button.
-
Select the Teams$ on SMRU-SRV > Eject button.
-
Close Files.