如何选择不同的Ubuntu One默认本地文件夹?
我想告诉Ubuntu One与'~/Public/Ubuntu One'
而不是'~/Ubuntu One'
同步。 由于我在Arch Linux上使用它,我没有任何右键单击选项。
我尝试编辑~/.config/ubuntuone/syncdaemon.conf
并添加行root_dir = ~/new/folder
( 如此线程中所示 ),但该文件会自动恢复到之前的状态。 此外,命令u1sdtool
挂起并且显然没有 – 我必须使用Ctrl + C来关闭它。 有没有其他方法来设置默认的Ubuntu One默认本地文件夹?
要更改Ubuntu One默认文件夹(在Ubuntu 12.04中测试):
-
以root身份打开
/etc/xdg/ubuntuone/syncdaemon.conf
注释掉以下代码:
来自
root_dir.default = ~/Ubuntu One
到
# root_dir.default = ~/Ubuntu One
-
复制
/etc/xdg/ubuntuone/syncdaemon.conf
到
~/.config/ubuntuone/syncdaemon.conf
用户属性
-
以用户身份打开
~/.config/ubuntuone/syncdaemon.conf
根据需要更改根目录,例如:
来自
# root_dir.default = ~/Ubuntu One
to
root_dir.default = ~/Public/Ubuntu One
-
注销并重新登录
它已经完成并且正在工作(至少对我而言)
(unntu 12.04与Gnome和Unity)
普通的留言:
在/etc/xdg/ubuntuone/syncdaemon.conf
使用root_dir.default
很麻烦,因为更改对同一台计算机中的所有用户都是活动的。
除了软链接并没有真正改变de目录。
最后,如果我们想让Ubuntu对新Linux用户更友好,以吸引来自其他系统的用户(总是讲道),那么从用户界面更改工作目录的能力应该是标准的
这是一个评论(我还没有权利)在fileubuntu上面的答案 (描述如何)和hellpe的评论 (重新出现Ubuntu One文件夹):
12.04我设法克服了我家里的文件夹’Ubuntu One’的重新出现
- 关闭所有nautilus实例(最终显示共享文件夹,因此似乎不断重启u1sd)
加
- 通过
u1sdtool --quit
禁用u1-sync-daemon
之前
- 将
/etc/xdg/ubuntuone/syncdaemon.conf
的根路径更改为我个人偏好之一, 如fileubuntu所述 。
之后我可以删除文件夹’Ubuntu One’而不会在通过u1sdtool --start
重新启动u1-sd之后再回来。
请注意,我不希望文件夹’Ubuntu One’混乱我的/〜所以我没有使用上面BЈовиdescribed描述的符号链接变体 。
要更改Ubuntu One默认文件夹(在Ubuntu 12.04中测试):
以root身份打开/etc/xdg/ubuntuone/syncdaemon.conf
并添加/更改以下代码:
从root_dir.default = ~/Ubuntu One
到root_dir = ~/new/folder
,例如root_dir.default = ~/Online Storage/Ubuntu One
。 它试图修改~/.config/ubuntuone/syncdaemon.conf
,但一段时间后它给了我一个错误。
感谢Kleenux的post 。
有一个简单的方法:
cd ~ rm -rf Ubuntu\ One mkdir -p Public/Ubuntu\ One ln -s Public/Ubuntu\ One Ubuntu\ One
这样,您可以创建Ubuntu One
目录到Public/Ubuntu One
的符号链接