将Eclipse从一台ubuntu(linux)计算机复制/传输到另一台ubuntu(linux)计算机 [英] copy/transfer eclipse from one ubuntu(linux) machine to other
问题描述
我已经在我的一台ubuntu机器上下载了eclipse.现在我想在其他ubuntu机器上蚀.我怎样才能做到这一点?
I have eclipse downloaded on one of my ubuntu machines. and now I want eclipse on my other ubuntu machine. how can I do this?
推荐答案
在计算机中安装了eclipse:
In the computer you have eclipse installed:
备份包含eclipse的文件夹(通常位于/opt文件夹中)
Backup the folder containing eclipse (usually it's in the /opt folder)
sudo cp -r/opt/eclipse/folder/to/backup/eclipse
sudo cp -r /opt/eclipse /folder/to/backup/eclipse
要安装eclipse的版本:
In the one you want eclipse to be installed:
- 将eclipse复制到opt文件夹
sudo cp -r/backup/eclipse/opt/eclipse
sudo cp -r /backup/eclipse /opt/eclipse
- 为所有文件添加读取权限
chmod -R + r/opt/eclipse
chmod -R +r /opt/eclipse
- 将可执行位添加到eclipse二进制文件中
chmod + x/opt/eclipse/eclipse
chmod +x /opt/eclipse/eclipse
- 将可执行文件添加到/usr/bin
sudo touch/usr/bin/eclipse
sudo touch /usr/bin/eclipse
sudo chmod + x/usr/bin月食
sudo chmod +x /usr/bin eclipse
- 使用您喜欢的编辑器编辑创建的文件.
sudo gedit -w/usr/bin/eclipse
sudo gedit -w /usr/bin/eclipse
并粘贴以下内容:
#!/bin/sh
export ECLIPSE_HOME="/opt/eclipse"
$ECLIPSE_HOME/eclipse $*
这时,您应该可以从命令行运行 eclipse
.如果要添加桌面项,请研究如何在桌面环境中执行此操作.
At this point you should be able to run eclipse
from command line, If you want to add a desktop entry, investigate how to do this in your desktop environment.
这篇关于将Eclipse从一台ubuntu(linux)计算机复制/传输到另一台ubuntu(linux)计算机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!