作为一个c fans 总是喜欢eclipse !在此 采用了下载二进制包的方法 适合各种版本 不管你是debain kali or centos gentoo
下载
可以直接apt
sudo apt install eclipse-cdt
https://packages.debian.org/sid/devel/eclipse-cdt
http://mirrors.neusoft.edu.cn/eclipse/technology/epp/downloads/release/neon/1a/eclipse-cpp-neon-1a-linux-gtk-x86_64.tar.gz
注意了 是本本才是 ,PC没有SSD 哈哈
考虑到ssd分区启动比较快,现在是
root@evankali:/opt/eclipse# pwd
/opt/eclipse
cat .bashrc
alias eclipse=/opt/eclipse/eclipse
再做启动器比较爽
[Desktop Entry]
Name=eclipse
Name[zh_CN]=eclipse IDE
GenericName=Integrated Development Environment
GenericName[zh_CN]=集成开发环境
Comment=Develop software in an integrated development environment
Comment[zh_CN]=在集成开发环境中开发软件
Encoding=UTF-8
Exec=/opt/eclipse/eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
X-MultipleArgs=false
StartupWMClass=Firefox
Type=Application
Categories=GNOME;GTK;Development;IDE;
StartupNotify=true
语言包下载
打开
http://www.eclipse.org/babel/downloads.php
看到
Babel Language Pack Zips
Neon | Mars | Luna
点击进去 找到我们要的
http://download.eclipse.org/technology/babel/babel_language_packs/R0.14.0/neon/neon.php
Language: Chinese (Simplified)
wget -c http://mirrors.neusoft.edu.cn/eclipse/technology/babel/babel_language_packs/R0.14.0/neon/BabelLanguagePack-eclipse-zh_4.6.0.v20160813060001.zip
把你下载的zip文件解压,得到一个名为eclipse的文件夹,它里面包含两个文件夹:features和plugins,复制features和plugins到你的eclipse程序目录,覆盖原程序文件即可:
cp -a features/ ~/software/eclipse/
cp -a plugins/ ~/software/eclipse/
wget -c http://mirrors.tuna.tsinghua.edu.cn/eclipse//technology/epp/downloads/release/kepler/SR2/eclipse-cpp-kepler-SR2-linux-gtk-x86_64.tar.gz
tar xvf eclipse-cpp-kepler-SR2-linux-gtk-x86_64.tar.gz
cd eclipse; ./eclipse
evan@latop:~$ vim .bashrc
alias halt=’sudo poweroff’
export LANG=zh_CN.utf8
alias vi=vim
alias ll=’ls -l’
alias ifconfig=’/sbin/ifconfig’
##加上这句 这个有时不好用
alias eclipse=’/home/evan/program/eclipse/eclipse’
#全局启动eclipse 其它软件也是相似 因为
#evan@evankali:~$ echo $PATH
#/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
sudo ln -s /home/evan/program/eclipse/eclipse /usr/bin/eclipse
当然也可以手动创建菜单选项
http://www.linuxchina.net/?p=1076
我是xmonad ,一般用synapse启动软件 ,所以有没有开始菜单什么的于我不是很重要
ps
Debian Linux Install Eclipse Java / C / C++ IDE
http://www.cyberciti.biz/faq/debina-linux-installing-eclipse-jdt-eclipse-cdt-packages/
pc icon
evan@evanpc:/usr/share/applications$ cat eclipse.desktop
[Desktop Entry]
Encoding=UTF-8
Name=eclipse
GenericName=eclipse
Comment=IDE
Exec=/home/evan/program/eclipse/eclipse
Icon=/home/evan/program/eclipse/icon.xpm
Terminal=false
X-MultipleArgs=false
StartupWMClass=Firefox
Type=Application
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;