-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup_eclipse.sh
executable file
·32 lines (28 loc) · 969 Bytes
/
setup_eclipse.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# install oracle java 7 (REALLY recomended for eclipse)
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer -y
# eclipse (copied from pascal gohl) (merci)
wget http://mirror.switch.ch/eclipse/technology/epp/downloads/release/kepler/SR1/eclipse-cpp-kepler-SR1-linux-gtk-x86_64.tar.gz
tar -zxvf eclipse-cpp-kepler-SR1-linux-gtk-x86_64.tar.gz
sudo mv eclipse /opt
sudo chown $USER -R /opt/eclipse/
sudo ln -sf /opt/eclipse/eclipse /usr/sbin/eclipse
rm eclipse-cpp-kepler-SR1-linux-gtk-x86_64.tar.gz
# setup unity link
cat > eclipse.desktop << "EOF"
[Desktop Entry]
Name=Eclipse
Type=Application
Exec=eclipse
Terminal=false
Icon=eclipse
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse
EOF
sudo mv eclipse.desktop /opt/eclipse/
sudo desktop-file-install /opt/eclipse/eclipse.desktop
sudo cp /opt/eclipse/icon.xpm /usr/share/pixmaps/eclipse.xpm