1. 程式人生 > >centOs install eclipse & create Desktop

centOs install eclipse & create Desktop

[url=http://idroot.net/tutorials/how-to-install-eclipse-luna-on-centos-7/]centOs install eclipse & create Desktop[/url]



tar -zxvf eclipse-java-luna-SR1-linux-gtk-x86_64.tar.gz -C /opt
ln -s /opt/eclipse/eclipse /usr/bin/eclipse
vi /usr/share/applications/eclipse.desktop


following is the content of eclipse.desktop

[Desktop Entry]
Encoding=UTF-8
Name=Eclipse 4.4.1
Comment=Eclipse Luna
Exec=/usr/bin/eclipse
Icon=/opt/eclipse/icon.xpm
Categories=Application;Development;Java;IDE
Version=1.0
Type=Application
Terminal=0



by the way note some about [sodo] command:
# visodo

then find "root ALL = (ALL)"
copy it new a line "yourusername ALL = (ALL)"
then you can use sudo,
but somehow is not a profit way grant all to ..