Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- ## Bash Script created for students who want to install jupyter note book & Julia on ubuntu versions 18
- ## 64 bit version only
- ## Please note ************* this has not been tested on other OS at present *************
- ## No responsibility will be accepted You use this at your own risk ****** Its up to you to check and test *****
- ## Feel free to alter and use as required
- ## to run chmod this script with the chmod +s command
- clear
- ls /etc/*release
- # display the release
- cat /etc/os-release
- # greet the user
- echo "Hi $USER This script will install Julia programming language and "
- sleep 5
- # download the Julia version 64 bit os for Linux
- echo " Grabbing hold of Julia 1.7.3 Linux 64 bit please wait till complete "
- sleep 5
- wget "https://julialang-s3.julialang.org/bin/linux/x64/1.7/julia-1.7.3-linux-x86_64.tar.gz"
- sleep 5
- clear
- # extract the files to home directory
- echo "Extracting file to julia please wait till complete "
- sleep 5
- tar -xvf julia-1.7.3-linux-x86_64.tar.gz -C /home/$USER/
- # create a softlink for Julia in /usr/bin
- echo "Creating softlink for julia executable"
- ln -s /home/$USER/julia-1.7.3/bin/julia /usr/bin/julia
- echo "Installing jupyter for you please wait"
- # install jupyter notebook using pip3
- pip3 install jupyter
- sleep 5
- # create and prompt user for password to use jupyter notebook
- echo "Creating jupyter password for you please complete "
- sleep 5
- jupyter notebook password
- echo
- echo
- # create a bash script in home directory to run note book
- echo "Setting up bash script to run jupyter notebook "
- touch notebook.sh
- # add command lines to bash script
- echo '#!/usr/bin/env bash' > notebook.sh
- echo 'Starting note book for julia' >> notebook.sh
- echo 'jupyter notebook' >> notebook.sh
- #chmod this for executable file
- chmod +x notebook.sh
- echo "Should all be done for you Starting Julia command line version "
- echo "Please follow instructions at this site to set up Jupyter notebook for Julia "
- echo "https://datatofish.com/add-julia-to-jupyter/ Opening firefox with address "
- # auto open web page in browser to display instructions for using notebook
- # with Julia
- firefox -new-tab 'https://datatofish.com/add-julia-to-jupyter/'
- # finish hopefully all works
- echo "Hope that helps !! Mark Harrington Now its read up and learn enjoy "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement