Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Visual Studio Code to pkg installer #11

Merged
merged 5 commits into from
Feb 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions modules/2-patch_board/2-patch_board.sh
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,11 @@ script_info()
fi
}

patch_wifi(){
#Users using an old version of Jetpack will have a wifi speed problem capping the speeds. This should solve the problem. This was fixed on the lastest Jetpack
echo "options iwlwifi 11n_disable=8" | sudo tee -a /etc/modprobe.d/iwlwifi.conf
}

script_run()
{
tput setaf 6
Expand Down Expand Up @@ -367,6 +372,8 @@ script_run()
source cuda_examples/fix_cuda_example.sh
# Run cuda examples patch
patch_cuda_examples
# Patch Wifi
patch_wifi
}


Expand Down
57 changes: 56 additions & 1 deletion modules/5-install_pkgs/5-install_pkgs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@
MODULE_NAME="Install standard packages"
MODULE_DESCRIPTION="Install standard packages:
htop
nano"
nano
vs_oss
synergy
guake"
MODULE_DEFAULT="STOP"
MODULE_OPTIONS=("RUN" "STOP")

Expand Down Expand Up @@ -84,6 +87,38 @@ script_run()
tput sgr0
sudo apt install htop -y
fi

if [ $(pkgs_is_enabled "vs_oss") == "ON" ] ; then
tput setaf 6
echo "Install Visual Studio"
tput sgr0
echo "Install will include NodeJS 8 and Yarn"
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
echo "Finished NodeJS install"
wget https://dl.yarnpkg.com/debian/pubkey.gpg

sudo apt-key add pubkey.gpg
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install yarn
mkdir ~/VisualStudio
cd ~/VisualStudio
git clone https://github.com/microsoft/vscode
cd vscode
sudo rm package.json
sudo rm test/smoke/package.json
#clones the first pkg.json into the Vscode folder.
git clone https://gist.github.com/e0010219e8af5e6cb4c4d34c35bba47d.git
cd test/smoke/
git clone https://gist.github.com/121e97781a56ae3e051335f77d2c600d.git
cd ..
cd ..
yarn
yarn run watch
./scripts/code.sh
echo "Finished Install"
fi

if [ $(pkgs_is_enabled "nano") == "ON" ] ; then
tput setaf 6
Expand All @@ -92,6 +127,23 @@ script_run()
sudo apt install nano -y
fi

if [ $(pkgs_is_enabled "guake") == "ON" ] ; then
tput setaf 6
echo "Install guake"
tput sgr0
sudo apt install guake -y
fi

if [ $(pkgs_is_enabled "synergy") == "ON" ] ; then
tput setaf 6
echo "Install synergy"
tput sgr0
wget -q -O - http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu trusty-getdeb apps" >> /etc/apt/sources.list.d/getdeb.list'
sudo apt-get update
sudo apt-get install synergy -y
fi

if [ $(pkgs_is_enabled "iftop") == "ON" ] ; then
tput setaf 6
echo "Install iftop"
Expand Down Expand Up @@ -195,6 +247,9 @@ set_pkgs()
"nano" "It is an easy-to-use text editor" $(pkgs_is_enabled "nano") \
"htop" "Interactive processes viewer" $(pkgs_is_enabled "htop") \
"iftop" "Network traffic viewer" $(pkgs_is_enabled "iftop") \
"vs_oss" "Adds Visual Studio code to the Jetson" $(pkgs_is_enabled "vs_oss") \
"synergy" "Adds Synergy for easy keyboard and mouse sharing" $(pkgs_is_enabled "synergy") \
"guake" "Adds Guake terminal, easy to use dropdown menu." $(pkgs_is_enabled "guake") \
"ZED" "Install ZED driver version:$INSTALL_ZED_VERSION" $(pkgs_is_enabled "ZED") 3>&1 1>&2 2>&3)

exitstatus=$?
Expand Down