Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Atavic/615b15e7f852da74e636879a1207bb26 to your computer and use it in GitHub Desktop.
Save Atavic/615b15e7f852da74e636879a1207bb26 to your computer and use it in GitHub Desktop.
Installing Linux-Lite (or Linux-Mint) from the start on Oracle-VirtualBox
download linux lite 'linux-lite-4.2-64bit.iso'
http://mirror.alpix.eu/linuxliteos/isos/4.2/linux-lite-4.2-64bit.iso
create a new machine, based on 'linux 2.6' without creating an hard-drive.
enter settings/storage, remove everything click [OK], enter settings/storage again add IDE-controller click [OK], enter settings/storage again add cdrom (empty) and new hard-disk (60GB) click [OK].
settings/general: set 'shared-clipboard' and 'dragndrop' to 'bidirectional'.
settings/system/processor tab: check ON: 'Enable PAE/NX', select two CPUs.
settings/display/screentab: set RAM to 64MB. set 'Graphics Controller' to: 'VBoxVGA'. check ON: 'Enable 3D Acceleration'.
settings/shared-folders: add 'C:', 'D:', 'E:',... and select auto-mount for-each.
create a VirtualBox-snapshot ("empty") before installation.
start the virtual-machine and on the (GRUB) menu select 'Install Linux-Lite right now'.
the setup will automatically start.
to avoid bugs:
- use the English for the installation dialog.
- use default (English) keyboard layout (do not add Hebrew support due to a bug).
- uncheck (set OFF) the 'Download updates while installing linux'.
- check (set ON) the 'Install third-party software for graphics and Wi-Fi hardware and additional media formats'.
- use default 'Erase disk and install linux'.
- uncheck (set OFF) 'Encrypt the new linux installation for security'.
- uncheck (set OFF) 'Use LVM with the new Linux installation'.
- use 'New-York (USA)' timezone (start to type and choose from the suggested results).
Name and Username: me
Machine-name: vm
password: 1
check ON 'Log-in automatically'.
----------------------------------
Do Not Install Updates (Yet...)
we are going to change mirrors and servers to allow parallel-download and faster-operations.
----------------------------------
----------------------------------
in-case of bugs:
- finish install and create a VirtualBox-snapshot ("clean install en keyboard NY tz").
----------------------------------
----------------------------------
> Terminal Preferences/Colors tab - set to 'Solarized (light)'.
----------------------------------
----------------------------------
sudo passwd root
>1
>1
>1
----------------------------------
su -
>1
apt-get -y update
apt-get -y install gedit
gedit /etc/apt/sources.list
>replace: http://us.archive.ubuntu.com/ubuntu/
>with: http://mirror.isoc.org.il/pub/ubuntu/
>you can find-out the best mirrors (take first one) using: wget -qO - mirrors.ubuntu.com/mirrors.txt
>click 'Save-As'.
>switch encoding to 'Western (ISO-8859-15)' (===ASCII), click save, and allow to replace existing-file.
apt-get update
----------------------------------
Go to 'Control Panel'/'Lite Sources'
click 'Check Repository Status' and let the terminal-window start and finish,
select 'Germany Europe http://mirror.alpix.ru/linuxliteos/'
and click 'Use selected repository'.
----------------------------------
Go to 'Control Panel'/'Firewall Configuration'
for each profile (home/office/public) disable the firewall.
on the preferences menu, disable logging.
----------------------------------
add-apt-repository -y ppa:apt-fast/stable
apt-get -y update
apt-get -y install aria2 apt-fast
>select 'apt-get'.
>select 8 connections.
>select 'YES' to surpress the confirm messages. (more information: https://github.com/ilikenwf/apt-fast on how to set multiple-mirrors).
apt-fast -y install build-essential wget curl git
sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h
apt-get -y upgrade
>wait for 2 minutes after it is done, for several background-processes to finish, reboot.
>open the 'welcome screen' and click the update modules (first button), update drivers (second button), do not add support for another language due to a bug in the system.
>you can uncheck the 'show on startup' checkbox of the 'welcome screen'.
>reboot.
----------------------------------
----------------------------------
apt-get -y remove firefox* libreoffice* openjdk* thunderbird* pidgin* xchat* transmission* totem*
apt-get -y autoremove
apt-get -y clean
----------------------------------
----------------------------------
apt-fast -y install python-software-properties lzop lzma lzip
----------------------------------
----------------------------------
add-apt-repository -y ppa:webupd8team/java
apt-fast -y update
apt-fast -y install oracle-java8-installer
> follow instruction on the GUI part of the installer, wait for it to finish.
apt-fast -y install oracle-java8-unlimited-jce-policy oracle-java8-set-default
----------------------------------
----------------------------------
!!!!! it is best to avoid your installation of VirtualBox-Tools
!!!!! it messes with the mouse position over the screen.
!!!!! there is an old ("opensource") version already installed on the system that allows you to run the 'no shared-folders bug workaround'.
>mount the VirtualBox-Tools CD.
>either the CD-folder will open || or you should open it yourself, right click the window to open it 'as admin', then right-click it again to view it 'in terminal', type './VBoxLinuxAdditions.run', click [ENTER].
>it will first remove the default (plain) virtual-tools installed as part of Ubuntu-packages, next enter 'yes' (when asked to...) and enable all features, including ones that requires compiling kernel-elements.
>reboot and check the window-size of the Host-machine and the Client-machine are fine.
>create a VirtualBox-snapshot ("ready").
----------------------------------
----------------------------------
No shared-folders bug workaround:
> Go to 'Control-Panel' / 'Lite User Manager', add your user ("me") to "vboxsf" group, reboot.
----------------------------------
sudo EDITOR=gedit visudo
>replace all user and groups end with
ALL=(ALL) NOPASSWD: ALL
>add at the bottom
vboxsf ALL=(ALL) NOPASSWD: ALL
me ALL=(ALL) NOPASSWD: ALL
----------------------------------
open terminal on your Desktop folder
touch "enable_shared_folders.sh"
echo "1" | sudo -S chmod 777 "enable_shared_folders.sh"
gedit "enable_shared_folders.sh"
> enter the following text (assuming your root password is "1"):
#!/bin/bash
echo "1" | sudo -S systemctl start vboxadd-service.service
echo "1" | sudo -S systemctl enable vboxadd-service.service
> double-click the "enable_shared_folders.sh" file to enable Shared-folders.
> you can save a snapshot of the running linux so you won't need to re-run it again and again for temp.-jobs.
> note that adding those lines to .bashrc won't work for some reason...
----------------------------------
----------------------------------
>power-down the machine.
>optimize the hard-disk files of the virtual-machine using (for example): (see https://gist.github.com/eladkarako/657d980c0ddae2d2828a6f50e5fa5a72 )
start /abovenormal /max "cmd /c "call C:\PROGRA~1\Oracle\VIRTUA~1\VBOXMA~1.EXE modifymedium disk c:\v\u64\u64.vdi --compact ""
>start the virtual-machine, cold boot if all is OK, delete all of the VirtualBox-snapshots ("ready" and older), create a new one ("ready"), power-down the machine and let it go to the snapshot ("ready"), optimize the snapshot files using the command above (modify it for the snapshot files).
----------------------------------
----------------------------------
here is how to install superr-kitchen
>open terminal (desktop location)
aria2c "https://github.com/eladkarako/SuperRs-Kitchen-With-Binaries/archive/master.zip"
unzip "SuperRs-Kitchen-With-Binaries-master.zip" && rm "SuperRs-Kitchen-With-Binaries-master.zip"
mv "SuperRs-Kitchen-With-Binaries-master.zip" "superrs-kitchen"
mv _.git .git
mv _.gitignore .gitignore
git submodule foreach git pull origin master
git pull --recurse-submodules
git submodule update
git submodule update --recursive
git pull --recurse-submodules
original notes...
git clone https://bitbucket.org/superr/superrs-kitchen.git
cd superrs-kitchen
mkdir superr_originalupdate
./superr
----------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment