centOs install eclipse & create Desktop

centOs install eclipse & create Desktop


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 ..

猜你喜欢

转载自1971161579.iteye.com/blog/2370735