如何在linux里将某个用户安装的eclipse共享给其他用户使用
来源:互联网 发布:mac上能玩的热门网游 编辑:程序博客网 时间:2024/04/30 09:18
转自:http://blog.csdn.net/jiadebin890724/article/details/7741974
如题,由于要学习hadoop,所以我在我的ubuntu里新建了一个用户user2专门用于安装hadoop环境,原来的用户是user1,原来user1用户已经安装了eclipse,所以我想在user2用户登录后,能够直接使用uesr1用户安装的eclipse,而不用重新安装了。实现方法就是使用user2用户身份登录系统后,进入user1用户安装eclipse的目录,我的目录是/home/m/.java/eclipse,在这里有一个文件夹叫configuration,我们只需将这个文件夹的权限修改为777即可实现共享。
chmod 777
这样,user2就可以使用eclipse了。
但是,当我再次使用user1身份登录后,打开eclipse时,出现了错误:
Locking is not possible in the directory"/home/m/.java/eclipse/configuration/org.eclipse.osgi". A commonreason is that the file system or Runtime Environment does notsupport file locking for that location. Please choose a differentlocation, or disable file locking passing "-Dosgi.locking=none" asa VM argument.
/home/m/.java/eclipse/configuration/org.eclipse.osgi/.manager/.fileTableLock(\u6743\Uffffffff
在网上搜索了一下这个问题,找到的是:
Cause
The error occurs when the user does not have the requiredpermission to access the .fileTableLock
The permission is not available because the umask settings for theprevious user who ran Installation Manager were not set for groupmode. The umask settings for the previous user did not allow filescreated in group mode to have group permissions equal to ownerpermissions.
The configuration folder is used to store OSGi cache information.The.fileTableLock
.fileTableLock
Resolving the problem
To resolve this issue, take one of the following steps:
- Change the permission for
.fileTableLock
fileto 777
- There are several directories that have .fileTableLock files thatmight require a change of permissions:
{IM_HOME}/eclipse/configuration/org.eclipse.core.runtime/.manager
{IM_HOME}/eclipse/configuration/org.eclipse.equinox.app/.manager
{IM_HOME}/eclipse/configuration/org.eclipse.osgi/.manager
- There are several directories that have .fileTableLock files thatmight require a change of permissions:
- Run this command on the configurationdirectory:
chmod-R g+rwx
- As a root user, change the owning group for the contents of theroot directory of the Eclipse configuration directory to the groupthat uses Installation Manager in group mode:
chgrp-R <{IM_HOME}/eclipse/configuration>
cd org.eclipse.osgi/.manager/
sudo chmod 777 .*
cd org.eclipse.equinox.app/.manager/
sudo chmod 777 .*
cd org.eclipse.core.runtime/.manager/
sudo chmod 777 .*
然后在configuration这个目录里,我运行:
chmod -R g+rwx *.*
-R的意思是遇到文件夹时递归更改。
这时,我在次打开eclipse,原来的错误没有了,但是又出现了,workspace这个目录无法访问的错误,
原因是我用user2登录后使用eclipse时把默认工程目录给改了,user1和user2两个用户使用的工程目录是不一样的,如何才能每次打开eclipse时都提示选择workspace呢?
方法如下:
勾选图中的选项,这样每次打开eclipse时,都会提示你选择工作目录了。方便两个不同的用户使用自己的工程目录。
OK,希望对大家有所帮助!
- 如何在linux里将某个用户安装的eclipse共享给其他用户使用
- 如何在linux里将某个用户安装的eclipse共享给其他用户使用
- 如何使用sys用户remove其他用户的job
- hive 用户分享给其他用户的做法
- 如何将一个邮箱收到的邮件自动转发给多个其他用户呢?
- 不知道如何将vmware虚拟机下linux 系统里的文本文件能共享或者复制给我的windows系统???
- 在linux内核里有关共享中断的使用
- 在eclipse里如何给main函数里的args参数赋值
- 在eclipse里如何给主函数里的args参数赋值
- 在eclipse里如何给main函数里的args参数赋值
- Linux下如何将一个用户下的文件拷贝到另一个用户里
- oracle赋权问题(如何在一个用户下查询其他用户的表)
- oracle复制一个用户的对象给其他用户
- linux给文件授权的方法给其他用户user
- 如何在给Eclipse安装插件
- linux给用户加个操作某个目录的权限
- Linux 虚拟机 给用户 赋某个文件夹操作的权限
- [Sysadmin] 在Linux里如何以一般用户的身份挂载NFS或挂载NFS给某一个一般的用户
- VMware下Ubuntu使用NAT共享…
- 用FileZilla Server开FTP:看…
- Ubuntu上vi(vim)编辑器使用…
- JQuery上传插件Uploadify MVC3 上传图片
- Linux系统下的JDK7安装详解
- 如何在linux里将某个用户安装的eclipse共享给其他用户使用
- /etc/profile、~/.bash_profile等…
- ubuntu下安装mysql
- strust2的“No result defined for action cn.xx.xxxAction and result input”错误
- poj 2482 Stars in Your Window(线段树+离散化+扫描线)
- C++学习【原创】remove和rem…
- priority_queue用法
- POJ3373Changing Digits
- 搜索,A* IDA*