8. Virtual Box

8.1 TOC

THIS IS DRAFT

8.2 Basic stuffs

1. Only try Mate-Ubuntu Vs Mate-Cinnamon.
2. Dont try pure ubuntu.
3. Ubuntu 20.10 has issue with gvim, python2.7 installation etc. UI is very good, yet it has package issue. may not be right one.
4. USE Mate-CINNAMON OS. Since it has good window resize snap ability, scroll bar can be thickened, widened a lot. Alt-Tab can list the icon with the application names etc. But same is not available in in Mate
5. ubuntu has this good snap but, does not have workspace label, simple menu.
6. In VM window, to see 64BIT Linux or windows Option, first enable SVM (Virtual Machine) option in BIOS setup. Then only you will see the 64bit option. Note again, this needs to be done ion BIOS setup.
7. Install guest os addition. If not able to mount, unmount it from some other VM OS.
8. Use NAT for internet. This setting available in Settings → Network → Attached to = NAT.
9. Copy – Paste issue : When you install the VM ,you also need to download separately Guest addition image separately. This is not bundled with your VM software. This can be found in the respective release folder like this https://download.virtualbox.org/virtualbox/6.0.0_RC1/

just insert it into VM optical disk using GUI and it will auto run. Enter root password. Then copy paste would start working after 1-2 mins. If not, reboot the VM, and it will surely work!!!
10. Enable Bi directional copy and restart the Linux OS. Enable drag and drop 11. settings: 1. Add desklets: Desklets→ clock desklets, launcher desklet 2. Change the Scrolbar width: Themes→settings→ scrollerbar widht→ set it 78 pixel? Logout and login to see its effect! 3. On dektop , right click, customization → enable trash and network icons 4. go to screen saver and disable all locks 12. add root user passwd 1. sudo passwd root

2 Mount a folder form Window to Linux 1. Create a mount point like this 2. as a normal user create mkdir /home/prabhu/cdrive 3. as a root user or using sudo mount -t vboxsf C_DRIVE /home/prabhu/cdrive 14. Installing the Google Chrome https://linuxize.com/post/how-to-install-google-chrome-web-browser-on-ubuntu-18-04/ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo dpkg -i google-chrome-stable_current_amd64.deb command to start it google-chrome 15. General software installation 1. sudo apt install tree expect ttf-mscorefonts-installer vim-gtk3 2. fc-cache -f -v 3. sudo apt install xfc4-terminal mate-trminal tilix 4. 16. gcc installation sudo apt install build-essential 17. 18. Python Installation 1. sudo apt-get update # this is needed sudo apt-get install python3-virtualenv sudo apt install python3-venv 2. 19. boost installation we can do it using aptitude only sudo apt-get install aptitude sudo aptitude install libboost-all-dev apt-get install libboost-filesystem-dev

20. gvim

sudo add-apt-repository "deb http://ppa.launchpad.net/jonathonf/vim/ubuntu xenial main" sudo add-apt-repository "deb-src http://ppa.launchpad.net/jonathonf/vim/ubuntu xenial main" sudo add-apt-repository ppa:jonathonf/vim sudo apt update sudo apt install vim

23. Docker installation
    1. apt-get install default-jre gawk texinfo gcovr valgrind gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping libsdl1.2-dev xterm resolvconf
    2. Setting up DNS and network setting

sudo apt install resolvconf root@prabhu-VirtualBox:/home/prabhu# sudo gvim /etc/resolvconf/resolv.conf.d/base

8.3 save the following to file

nameserver 168.127.132.3 nameserver 168.127.132.4 nameserver 168.127.197.16 root@prabhu-VirtualBox:/home/prabhu# sudo resolvconf -u

  1. #/etc/hosts file, append these 35.231.145.151 gitlab.com 140.211.169.55 openembedded.org 140.211.169.55 git.openembedded.org 192.64.119.28 yoctoproject.org 192.64.119.28 git.yoctoproject.org

4 Bash profile Following lets the ls command and title to work properly

LS_COLORS=$LS_COLORS:'di=1;33:' ; export LS_COLORS function title { if [ -z "$1" ] then title=${PWD##*/} # current directory else title=$1 # first param fi echo -n -e "\033]0;$title\007" } 5 SSH setting 1 Key setting To login into a machine “name B” without password, from “Machine A” it do this way generate ssh keys from your machine A using following command. ssh-keygen -t ed25519 -C "your_email@example.com" just press enter you public key in ~/.ssh/ed25519.pub

Then go to machine B and append (at the end) the above output into file .ssh/authorized_keys That is all, now you ssh from B to A without password, provided both are haivng same user name.! 2 SSH Mount sudo sshfs -o allow_other pullagad@host:/folder /folder