Skip to content

Instantly share code, notes, and snippets.

@Sakib37
Created February 22, 2019 15:31
Show Gist options
  • Save Sakib37/e0d2fdb85c8f1776ae8324a74b960ba1 to your computer and use it in GitHub Desktop.
Save Sakib37/e0d2fdb85c8f1776ae8324a74b960ba1 to your computer and use it in GitHub Desktop.
How to convert ubuntu server inot a light desktop
# source: https://digitz.org/blog/install-gui-ubuntu-server/
http://en.ig.ma/notebook/2012/virtualbox-guest-additions-on-ubuntu-server
https://linuxconfig.org/how-to-install-gui-desktop-environment-on-ubuntu-linux-14-04-lts-trusty-thar
# Install lxde in server
sudo apt-get install --no-install-recommends lxde lxdm -y
# Install virtualbox_guest_edition
# Install necessary build tools and build dependencies:
sudo apt-get install -y dkms xorg build-essential linux-headers-generic
# Mount the CD Rom with the shell command:
sudo mount /dev/cdrom /media/cdrom
# Build and install the Guest Additions:
sudo /media/cdrom/VBoxLinuxAdditions.run
# Install guest edition
sudo apt-get install virtualbox-guest-dkms
# Create a trash icon in the desktop
sudo apt-get install gvfs
# Add share folder
Share a folder and then add VM user to the group vboxsf
sudo usermod -a -G vboxsf USER_NAME
Now logout and log back in :)
# Access usb
Insert the usb and configure throught virtualbox interface
Check the usb:
sudo fdisk -l
Create a mountpoint
sudo mkdir /media/usb
Mount the usb
sudo mount /dev/sdb1 /media/usb # considering sdb1 is the usb (from fdisk)
Unmount when done with the usb
sudo umount /media/usb
# Install chrome:
# Add chrome repository
- Open "sudo vim /etc/apt/sources.list"
- Add "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" to the file
- Add the key "wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -"
#############################################################################################
TO REMOVE THE KEY ADDED:
sudo apt-key list
Example output:
pub 1024R/B455BEF0 2010-07-29
uid Launchpad clicompanion-nightlies
sudo apt-key del B455BEF0
#############################################################################################
NOTE: Adding the key already add chrome repo in /etc/apt/sources.list.d/google.chrom.list.
So it is ok to comment the repos entry in /etc/apt/sources.list
- "sudo apt update"
- "sudo apt-get -f install"
- "sudo apt install google-chrome-stable"
# Install Java :
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-7-jre
-set JAVA_HOME and PATH
- Add ' JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64" ' in /etc/environment
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
'source /etc/environment'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment