This repository has been archived by the owner on Aug 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* additional packages for ubuntu18.04 * add path to local user binary directory * Added vagrantfile for 18.04 * use ubuntu18.04 branch of SIRF-SuperBuild * remove install of gcc 6 * updates * remove checkout of ubuntu18.04 SIF-SuperBuild tag * Use system boost * use bento box * Added 50Gb VDI disk image https://www.virtualbox.org/manual/ch05.html * builds VM with vagrant currently doesn't find the system Boost. * add port forwarding, add 32 Mb video ram, 50 Gb HDD * use system boost * delete sirf_disk.vdi * removed links to specific VM and SuperBuild branches requires SyneRBI/SIRF-SuperBuild#149 first * use globbing for resetting *URL and *TAG * set USE_ITK=ON * created function find_boost_version * moved shell provision script to file closes #114 * install libhdf5-dev * vram is in modifyvm section https://www.virtualbox.org/manual/ch08.html * indentation fix * removed comment * separate the install steps * multi line install * added bootstrap_ubuntu.sh script * install missing boost libraries * removes autosuspend notification closes #118 * add info on 2.0rc1 * builds ubuntu18.04 SuperBuild * build ubuntu18.04 branch of superbuild * removed conflict message * changed VM name * uses SuperBuild master * removed -V command * checks if user and homedir is already created * bugfix * bugfix~~ * fix test dir existence * install spyder and jupyter in pip script * force spyder 3.2 * manual configure jupyter * info on manual step to configure ip for jupyter * add info on jupyter config * removed reference to specific branches * updated VM name * add new version * update doc * clean up
- Loading branch information
1 parent
c30d2b8
commit 4536ce8
Showing
9 changed files
with
163 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.1.1 | ||
2.0.0-rc.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
SIRFUSERNAME=sirfuser | ||
SIRFPASS=virtual | ||
|
||
# check if user exists. if not create it. Useful for vagrant provision | ||
id -u $SIRFUSERNAME | ||
if [ $? -eq "1" ] ; then | ||
adduser $SIRFUSERNAME | ||
adduser $SIRFUSERNAME sudo | ||
{ echo $SIRFPASS; echo $SIRFPASS; } | passwd $SIRFUSERNAME | ||
fi | ||
|
||
# fail hard on any step | ||
set -ex | ||
# update the apt-get database | ||
export DEBIAN_FRONTEND=noninteractive | ||
apt-get update && apt-get upgrade -y -o Dpkg::Options::=--force-confnew | ||
# upgrade the list of packages | ||
|
||
|
||
#install upgrades | ||
apt-get update && apt-get install -y --no-install-recommends wget git xorg xterm gdm3 menu policykit-1-gnome synaptic gnome-session gnome-panel metacity | ||
apt-get update && apt-get install -y at-spi2-core gnome-terminal gnome-control-center nautilus dmz-cursor-theme network-manager network-manager-gnome | ||
|
||
# start gnome display manager | ||
service gdm start | ||
|
||
# set the current locale, otherwise the gnome-terminal doesn't start | ||
sudo locale-gen en_GB.UTF-8 | ||
sudo locale-gen en_US.UTF-8 | ||
sudo locale-gen de_DE.UTF-8 | ||
sudo locale-gen fr_FR.UTF-8 | ||
sudo locale-gen es_ES.UTF-8 | ||
sudo locale-gen it_IT.UTF-8 | ||
sudo locale-gen pt_PT.UTF-8 | ||
sudo locale-gen pt_BR.UTF-8 | ||
sudo locale-gen ja_JP.UTF-8 | ||
sudo locale-gen zh_CN.UTF-8 | ||
sudo update-locale LANG=en_GB.UTF-8 | ||
sudo localectl set-x11-keymap uk | ||
sudo localectl status | ||
|
||
|
||
# To hide vagrant from login screen: | ||
# 1. Log-in as vagrant | ||
# 2. In /var/lib/AccountsService/users/vagrant change 'SystemAccount=true' | ||
sudo echo '[User]' > vagrant | ||
sudo echo 'SystemAccount=true' >> vagrant | ||
sudo cp -v vagrant /var/lib/AccountsService/users/vagrant | ||
|
||
# To remove the Ubuntu user from VM: | ||
#sudo deluser --remove-home ubuntu | ||
# Could add custom logos here: /etc/gdm3/greeter.dconf-defaults | ||
|
||
userHOME=/home/$SIRFUSERNAME | ||
|
||
if [ ! -d $userHOME/devel ]; then | ||
mkdir $userHOME/devel | ||
fi | ||
cd $userHOME/devel | ||
|
||
if [ ! -d $userHOME/devel/CCPPETMR_VM ]; then | ||
git clone https://github.com/CCPPETMR/CCPPETMR_VM.git | ||
cd CCPPETMR_VM | ||
else | ||
cd CCPPETMR_VM | ||
git pull | ||
fi | ||
|
||
|
||
|
||
bash $userHOME/devel/CCPPETMR_VM/scripts/INSTALL_prerequisites_with_apt-get.sh | ||
bash $userHOME/devel/CCPPETMR_VM/scripts/INSTALL_CMake.sh /usr/local | ||
bash $userHOME/devel/CCPPETMR_VM/scripts/INSTALL_python_packages.sh | ||
|
||
# port 8888 is forwarded to 8888 so the user can use the host browser | ||
# Therefore no browser is installed on the VM | ||
|
||
chown -R $SIRFUSERNAME:users $userHOME | ||
sudo -u $SIRFUSERNAME -H bash $userHOME/devel/CCPPETMR_VM/scripts/UPDATE.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters