如何与Ubuntu One同步配置文件

Ubuntu One lets you easily synchronize files and folders, but it isn’t clear how to sync configuration files. Using Ubuntu One’s folder synchronization options or some symbolic links, you can synchronize configuration files across all your computers.

Ubuntu One使您可以轻松地同步文件和文件夹,但是不清楚如何同步配置文件。 使用Ubuntu One的文件夹同步选项或某些符号链接,您可以在所有计算机之间同步配置文件。

The same method should work with other cloud storage synchronization programs, including Dropbox. It also creates an online backup of your important files, so it’s useful even if you don’t have multiple Ubuntu systems.

相同的方法应适用于其他云存储同步程序,包括Dropbox。 它还会创建重要文件的在线备份,因此即使您没有多个Ubuntu系统,它也很有用。

Ubuntu One安装 (Ubuntu One Setup)

If you haven’t set up Ubuntu One yet, you’ll have to set it up before synchronizing files. Click the mail icon on the panel and select “Ubuntu One.”

如果尚未设置Ubuntu One,则必须在同步文件之前进行设置。 单击面板上的邮件图标,然后选择“ Ubuntu One”

Click the “Join Now” button and create an account.

点击“立即加入”按钮并创建一个帐户。

On your other computers, click the “I already have an account!” link and sign in with your existing account.

在其他计算机上,单击“我已经有一个帐户! ”链接并使用您现有的帐户登录。

After you do this, you’ll get a “Ubuntu One” folder in your home folder. All files in this folder are automatically synchronized between your computers.

完成此操作后,您将在主文件夹中找到一个“ Ubuntu One”文件夹。 此文件夹中的所有文件将在计算机之间自动同步。

同步配置文件夹 (Synchronizing Configuration Folders)

Configuration folders are hidden by default, so you’ll have to click the View menu in the file manager and select “Show Hidden Files” to see them.

默认情况下,配置文件夹是隐藏的,因此您必须单击文件管理器中的“查看”菜单,然后选择“显示隐藏的文件”以查看它们。

Once you have, you’ll see your configuration files. Each begins with a . — this is how files and folders are hidden on Linux.

拥有之后,您将看到您的配置文件。 每个以开头 —这就是在Linux上隐藏文件和文件夹的方式。

Right-click the folder you want to synchronize, point to the Ubuntu One submenu and click “Synchronize This Folder.”

右键单击要同步的文件夹,指向Ubuntu One子菜单,然后单击“同步此文件夹”

A green check mark appears on each folder you’re synchronizing.

一个绿色的复选标记出现在您正在同步的每个文件夹上。

From the Ubuntu One window, you can view all your synchronized folders.

在Ubuntu One窗口中,您可以查看所有同步的文件夹。

Before the folder will synchronize, you’ll have to open the Ubuntu One configuration window on your other computers.

在文件夹同步之前,您必须在其他计算机上打开Ubuntu One配置窗口。

You must enable the “Sync locally?” check box on each other computer.

您必须启用“本地同步? 对方计算机上的”复选框。

Ubuntu One will keep the configuration folder in sync across all your computers.

Ubuntu One将使配置文件夹在所有计算机上保持同步。

Of course, you can use this method to synchronize any folder.

当然,您可以使用此方法来同步任何文件夹。

同步单个文件 (Synchronizing Individual Files)

Ubuntu One won’t let you synchronize a single file from the right-click menu. If you try, you’ll see all the options grayed out.

Ubuntu One不允许您从右键单击菜单同步单个文件。 如果尝试,您会看到所有选项均灰显。

To synchronize a specific configuration file, you’ll have to move it to your Ubuntu One folder. You can do this with the cut and paste option from the file manager or with the mv command in the terminal.

要同步特定的配置文件,您必须将其移动到Ubuntu One文件夹。 您可以使用文件管理器中的剪切和粘贴选项或终端中的mv命令来执行此操作。

Here, we’ve moved our .bashrc file to the Ubuntu One folder. It no longer exists in our home folder.

在这里,我们已将.bashrc文件移至Ubuntu One文件夹。 它不再存在于我们的主文件夹中。

We can use the ln -s command to create a symbolic link from the file in the Ubuntu One directory to the file’s original location. For our .bashrc example, we’d use the following command:

我们可以使用ln -s命令创建从Ubuntu One目录中的文件到文件原始位置的符号链接。 对于我们的.bashrc示例,我们将使用以下命令:

ln -s /home/howtogeek/Ubuntu\ One/.bashrc /home/howtogeek

ln -s / home / howtogeek / Ubuntu \ One / .bashrc / home / howtogeek

In other words, the syntax is:

换句话说,语法为:

ln -s /path/to/file /original/location

ln -s /路径/到/文件/原始/位置

Note that you can’t create a symlink and place it in the Ubuntu One directory. Ubuntu One ignores symlinks.

请注意,您无法创建符号链接并将其放置在Ubuntu One目录中。 Ubuntu One忽略符号链接。

If you check your home folder after this, you’ll see that there’s now a symbolic link to the file in the Ubuntu One folder.

如果在此之后检查您的主文件夹,您将看到在Ubuntu One文件夹中现在有一个指向该文件的符号链接。

On your other computers, you’ll have to delete the original configuration file and run the same command to create the appropriate symlink.

在其他计算机上,您将必须删除原始配置文件并运行相同的命令来创建适当的符号链接。

You can use this method to synchronize any file at any location. Most of the time it will make more sense to copy the file to the Ubuntu One folder, though.

您可以使用此方法在任何位置同步任何文件。 不过,在大多数情况下,将文件复制到Ubuntu One文件夹更有意义。

翻译自: https://www.howtogeek.com/108000/how-to-synchronize-your-configuration-files-with-ubuntu-one/

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/279172.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

java 输入流关闭顺序_Java IO流中先关闭输出流还是先关闭输入流?为什么?

java中需要手动释放的资源bai常见的有以下两个:流相du关资zhi源流相关资源一般遵循:1)先开后关dao,先开的输入流,再开的输出流,通过读取输入流写入输出流中,那么应该先关输出流,再关输入流&…

解析Linux操作系统文件目录

随着Linux的不断发展,越来越多的人开始使用Linux,对于那些刚刚接触的人来说,恐怕最先感到困惑的就是那些“不明不白”的目录了。如果想熟练使用Linux,让Linux听命于自己,就必须掌握这些目录,下面就以Xteam公…

智能家居设备_您的智能家居设备正在监视您吗?

智能家居设备In a world where we’re all paranoid about devices spying on us (and rightfully so), perhaps no other devices receive more scrutiny than smarthome products. But is that scrutiny warranted? 在一个我们都对监视设备的人都抱有偏执的世界(理应如此)&a…

Jenkins忘记admin密码处理方法

1、先找到enkins/config.xml文件&#xff0c;并备份。 此文件位于Jenkins系统设置的主目录&#xff0c;根据自己的配置情况而定。我的位置如下 /data/temp/jenkins/config.xml2、然后编辑config.xml删除<useSecurity>true</useSecurity>至</securityRealm>&a…

java读取excel某个单元格的值_java poi怎么获取excel单元格的内容

展开全部package edu.sjtu.erplab.poi;import java.io.InputStream&chww.xqy.chain" target"_blank" class"link-baike">FileInputStream;import java.io.FileNotFoundException;import java.io.IOException;import java.io.InputStream;impor…

科研绘图工具软件_如何在Windows 10 Mail中使用绘图工具

科研绘图工具软件Microsoft recently released a new feature for the Windows 10 Mail app that lets you convey messages with drawings right inside the body of an email. This is a great way to quickly sketch things like graphs or tables to get your point across…

子元素相对于父元素垂直居中对齐

记个笔记 1. 元素相对于浏览器居中 <style>.window-center {/* 将position设置为fixed&#xff0c;使元素相对于浏览器窗口定位 */position: fixed;/* 将margin设置为auto&#xff0c;使浏览器自动推算元素外边距 */margin: auto;/* 将上下左右边距&#xff08;相对于浏览…

SQL Server编程(06)触发器

SQL Server 通过触发器用来保证业务逻辑和数据的完整性。在SQL Server中&#xff0c;触发器是一种特殊类型的存储过程&#xff0c;可在执行语言事件时自动触发。SQL Server中触发器包括三种&#xff1a;DML触发器、DDL触发器和登录触发器。 DML触发器&#xff1a;执行DML语句触…

网站运行java_定制化Azure站点Java运行环境(5)

Java 8下PermGen及参数设置在上一章节中&#xff0c;我们定制化使用了Java 8环境&#xff0c;使用我们的测试页面打印出了JVM基本参数&#xff0c;但如果我们自己观察&#xff0c;会发现在MXBeans中&#xff0c;没有出现PermGen的使用数据&#xff0c;初始大小等信息&#xff0…

三阶魔方魔方公式_观看此魔方的自我解决

三阶魔方魔方公式Finally: a Rubik’s cube that can solve itself. A maker named Human Controller built it in Japan, and you can see it in action right now. 最后&#xff1a;一个可以解决自身问题的魔方。 一家名为Human Controller的制造商在日本制造了它&#xff0…

pc样式在ie8中的bug

2019独角兽企业重金招聘Python工程师标准>>> pc样式在ie8中的bug 1,box-sizing:border-box: 在ie中,此属性的使用有限制: (在IE8中&#xff0c;min-width属性适用于content-box即使box-sizing设置为border-box。 Chrome select在使用时从元素中选择选项时遇到问…

下载: 虾米音乐_您所说的内容:如何组织凌乱的音乐收藏

下载: 虾米音乐Earlier this week we asked you to share your tips, tricks, and tools, for managing a messy music collection. Now we’re back to share so great reader tips; read on to find ways to tame your mountain of music. 本周早些时候&#xff0c;我们要求您…

Django form表单

Django form表单 目录 普通方式手写注册功能 views.pylogin.html使用form组件实现注册功能 views.pylogin2.html常用字段与插件 initialerror_messagespasswordradioSelect单选Select多选Select单选checkbox多选checkboxDjango Form所有内置字段校验补充进阶 应用Bootstrap样式…

java 多线程 优先级_java多线程之线程的优先级

在操作系统中&#xff0c;线程可以划分优先级&#xff0c;优先级较高的线程得到CPU资源较多&#xff0c;也就是CPU优先执行优先级较高的线程对象中的任务(其实并不是这样)。在java中&#xff0c;线程的优先级用setPriority()方法就行&#xff0c;线程的优先级分为1-10这10个等级…

PyQt5应用与实践

2015-01-16 19:00 by 吴秦, 69476 阅读, 5 评论, 收藏, 编辑 一个典型的GUI应用程序可以抽象为&#xff1a;主界面&#xff08;菜单栏、工具栏、状态栏、内容区域&#xff09;&#xff0c;二级界面&#xff08;模态、非模态&#xff09;&#xff0c;信息提示&#xff08;Toolti…

plex实现流媒体服务器_Plex继续远离服务器,提供网络节目

plex实现流媒体服务器() Plex now offers a “Web Shows” feature in certain versions of their interface, providing access to shows from brands like TWiT, GQ, and Popular Science. Plex现在在其界面的某些版本中提供了“网络节目”功能&#xff0c;可以访问TWiT&…

MIME协议(三) -- MIME邮件的组织结构

一封MIME邮件可以由多个不同类型的MIME消息组合而成&#xff0c;一个MIME消息表示邮件中的一个基本MIME资源或若干基本MIME消息的组合体。每个MIME消息的数据格式与RFC822数据格式相似&#xff0c;也包括头和体两部分&#xff0c;分别称为MIME消息头和MIME消息体&#xff0c;它…

discord linux_最好的Discord机器人来启动服务器

discord linuxDiscord has an extensive API and good support for bots on their platform. Because of this, there are tons of bots to go around. However, many of them just copy one another’s functionality. We’ve picked out the ones that do it right, and comp…

java获取前端json数据_java如何获取前端ajax传来的json对象

假设使用 jQuery 中的 ajax1. Json 对象前端代码示例$.ajax({url : http://localhost:8888/demo,type: post,data: {userName:15488779956}success: function(data) {// TODO}})后台代码示例RestControllerpublic class Demo {/*** 方法 1 使用 HttpServletRequest 接收* */Req…

版本控制介绍以及常用的版本控制工具

版本控制是指对软件开发过程中各种程序代码、配置文件及说明文档等文件变更的管理&#xff0c;是软件配置管理的核心思想之一。 编写一个成熟可用的程序是一个工作量很大的工程&#xff0c;并非我们一次性就可以搞定的工作&#xff0c;所以在开发过程当中需要&#xff1a; 1、 …