From 8a2703821b53c9e139dc0be4e1de9eedb62dca1f Mon Sep 17 00:00:00 2001 From: Lachlan Barclay Date: Tue, 4 Oct 2016 18:00:11 +1100 Subject: [PATCH 1/4] added install script for linux --- README.md | 21 +++++++++++++++++++++ install.sh | 17 +++++++++++++++++ tkp.desktop | 7 +++++++ 3 files changed, 45 insertions(+) create mode 100644 install.sh create mode 100755 tkp.desktop diff --git a/README.md b/README.md index 46d6903f..9521463a 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ Setup your computer * [Windows](#windows) * [Mac](#mac) +* [Linux](#linux) ### Windows @@ -126,6 +127,26 @@ Setup your computer When you have put `eclipse` into `Applications` try launching TKP again by double-clicking `TKP_Launcher.jar`. If it works, great! Otherwise, visit the [Fixing Installation Errors](#troubleshooting) section below for more tips. +### Linux + +1. To install on Ubuntu, opan terminal window and run the following commands: + +```bash +source <(curl -s https://raw.githubusercontent.com/TeachingKidsProgramming/TeachingKidsProgramming.Java/master/install.sh) +``` + +This command will download TKP and create a shortcut on your desktop. + +1. Once Eclipse has opened, if your "Javadoc" panel is all black, then you'll need to change your system colors. This can be done by using the "color chooser" app. Just type: + +```bash +sudo apt install gnome-color-chooser +gnome-color-chooser +``` + +and then you'll need to change the "tooltip" colors by going to the "Specific" tab. + + ## Fixing Installation Errors We're sorry that you are having trouble getting started with TKP. Below you will find a few more troubleshooting tips that we have used to resolve issues in the past. diff --git a/install.sh b/install.sh new file mode 100644 index 00000000..dff70123 --- /dev/null +++ b/install.sh @@ -0,0 +1,17 @@ +mkdir ~/TKPSource +cd ~/TKPSource +wget https://github.com/TeachingKidsProgramming/TeachingKidsProgramming.Java/archive/master.zip +unzip master.zip +rm master.zip +mv TeachingKidsProgramming.Java-master TeachingKidsProgramming.Java +cd TeachingKidsProgramming.Java +unzip eclipse_workspace.zip +cp tkp.desktop ~/Desktop +echo Exec=$HOME/eclipse/eclipse -data $HOME/TKPSource/TeachingKidsProgramming.Java >>~/Desktop +chmod +x ~/Desktop/tkp.desktop +cd ~/ +wget http://mirror.internode.on.net/pub/eclipse/technology/epp/downloads/release/luna/SR2/eclipse-java-luna-SR2-linux-gtk-x86_64.tar.gz +tar xzf eclipse-java-luna-SR2-linux-gtk-x86_64.tar.gz +rm eclipse-java-luna-SR2-linux-gtk-x86_64.tar.gz +~/eclipse/eclipse -data ~/TKPSource/TeachingKidsProgramming.Java +#sudo apt install gnome-color-chooser diff --git a/tkp.desktop b/tkp.desktop new file mode 100755 index 00000000..90f01d9b --- /dev/null +++ b/tkp.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=Teaching Kids Programming +Comment=Teaching Kids Programming In Java +Icon=eclipse +StartupNotify=true +Terminal=false +Type=Application From 20ea24cb6e3f74ffdf67bd299b3071ad1f70169f Mon Sep 17 00:00:00 2001 From: Lachlan Barclay Date: Tue, 4 Oct 2016 18:57:21 +1100 Subject: [PATCH 2/4] fixed up readme file --- README.md | 4 ++-- install.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9521463a..3f977202 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ Setup your computer ### Linux -1. To install on Ubuntu, opan terminal window and run the following commands: +1. To install on Ubuntu, open a terminal window and run the following command: ```bash source <(curl -s https://raw.githubusercontent.com/TeachingKidsProgramming/TeachingKidsProgramming.Java/master/install.sh) @@ -137,7 +137,7 @@ source <(curl -s https://raw.githubusercontent.com/TeachingKidsProgramming/Teach This command will download TKP and create a shortcut on your desktop. -1. Once Eclipse has opened, if your "Javadoc" panel is all black, then you'll need to change your system colors. This can be done by using the "color chooser" app. Just type: +2. Once Eclipse has opened, if your "Javadoc" panel is all black, then you'll need to change your system colors. This can be done by using the "color chooser" app. Just type: ```bash sudo apt install gnome-color-chooser diff --git a/install.sh b/install.sh index dff70123..a7db2843 100644 --- a/install.sh +++ b/install.sh @@ -1,13 +1,13 @@ mkdir ~/TKPSource cd ~/TKPSource -wget https://github.com/TeachingKidsProgramming/TeachingKidsProgramming.Java/archive/master.zip +wget https://github.com/clockwisemusic/TeachingKidsProgramming.Java/archive/master.zip unzip master.zip rm master.zip mv TeachingKidsProgramming.Java-master TeachingKidsProgramming.Java cd TeachingKidsProgramming.Java unzip eclipse_workspace.zip cp tkp.desktop ~/Desktop -echo Exec=$HOME/eclipse/eclipse -data $HOME/TKPSource/TeachingKidsProgramming.Java >>~/Desktop +echo Exec=$HOME/eclipse/eclipse -data $HOME/TKPSource/TeachingKidsProgramming.Java >>~/Desktop/tkp.desktop chmod +x ~/Desktop/tkp.desktop cd ~/ wget http://mirror.internode.on.net/pub/eclipse/technology/epp/downloads/release/luna/SR2/eclipse-java-luna-SR2-linux-gtk-x86_64.tar.gz From b43e1ccbcfbe731432728572a3ef248a9b70ff26 Mon Sep 17 00:00:00 2001 From: Lachlan Barclay Date: Tue, 4 Oct 2016 19:04:18 +1100 Subject: [PATCH 3/4] changed to tiny url --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3f977202..ea7b4af0 100644 --- a/README.md +++ b/README.md @@ -132,19 +132,19 @@ Setup your computer 1. To install on Ubuntu, open a terminal window and run the following command: ```bash -source <(curl -s https://raw.githubusercontent.com/TeachingKidsProgramming/TeachingKidsProgramming.Java/master/install.sh) +source <(curl -s http://tinyurl.com/hzvqvck) ``` This command will download TKP and create a shortcut on your desktop. -2. Once Eclipse has opened, if your "Javadoc" panel is all black, then you'll need to change your system colors. This can be done by using the "color chooser" app. Just type: +2. Once Eclipse has opened, if your "Javadoc" panel is all black, you'll need to change your system colors. This can be done by using the "color chooser" app. Just type: ```bash sudo apt install gnome-color-chooser gnome-color-chooser ``` -and then you'll need to change the "tooltip" colors by going to the "Specific" tab. +and then go to the "Specific" tab enad change your tooltip colors. ## Fixing Installation Errors From efeedc8457247bd46cfc286c751d6c91c9757d6b Mon Sep 17 00:00:00 2001 From: Lachlan B Date: Tue, 4 Oct 2016 19:45:44 +1100 Subject: [PATCH 4/4] updated readme.md minor typos and fixes --- README.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ea7b4af0..1c0825e4 100644 --- a/README.md +++ b/README.md @@ -129,22 +129,26 @@ Setup your computer ### Linux -1. To install on Ubuntu, open a terminal window and run the following command: +1. **Ubuntu** -```bash -source <(curl -s http://tinyurl.com/hzvqvck) -``` + To install on Ubuntu, open a terminal window and run the following command: + + ```bash + source <(curl -L -s http://tinyurl.com/hzvqvck) + ``` + + This command will download everything needed for TKP and create a shortcut on your desktop. -This command will download TKP and create a shortcut on your desktop. +Eclipse should run automatically and the first lesson from TKP will open. -2. Once Eclipse has opened, if your "Javadoc" panel is all black, you'll need to change your system colors. This can be done by using the "color chooser" app. Just type: +If you are having troubles reading the text inside the "JavaDoc" panel, you might need to change your system colors. This can be done by using the "color chooser" app. Just type: ```bash sudo apt install gnome-color-chooser gnome-color-chooser ``` -and then go to the "Specific" tab enad change your tooltip colors. +You will need to go to the "Specific" tab and change your tooltip colors. ## Fixing Installation Errors