Ubuntu :: Sync Directories Between Desk And Laptop Both Within And Outside Of Home Network
May 26, 2011
I want to sync several directories between my laptop and desktop both at home and away from home. It seems like the tool to use for this is unison (I use rysnc for backups, but union seemed, better for this sort of thing - let me know if I'm wrong).
I found several posts that appear promising, however I was little confused about the details as I don't have much networking experience up to this point.
[URL]
1) Is a reverse ssh connection the way to go? If I only wanted to do this on my home network I could just use ssh right, however in order to get around the router outside my home network the reverse ssh is necessary?
2) How do I handle changing IP address of my laptop?
Is it possible to restrict users to their home directories and allow admins to have different home directories? Essentially I want users to have a folder in /var/www/html/$USER and admins to have either unrestricted access or have their root directory be ./ or /www or /etc. I have is set now so users have access to thier home direcotry but I need to upload web files as admin.
I am interested and looking forward to get a smartphone or a personal data assistant with calendar/ email/ contacts just like the iphone does.My intention is to be able to sync my smartphone's data with my home server that actually carries my PIM applications. Basically, during the day when I am not home I will modify or add/remove data from the phone. When I arrive home I would like to be able to sync my changes to my server. My laptop will be reconfigured to retrieve and sync from that server.
Proudly running with Slackware on ALL my machines (gotta love Slack!), and Apple being **** by not supporting open source and linux environment, it seems that it will be difficult to have something working out of the box and will probably require jail-breaking the device, etc.. I don't want to rely on external services such as Google calendar except for the email from Gmail.
I work on machines with different architectures, all of which share the same home directory(what is the technical term for it -- network mounting ?). Since I don't have admin privileges on these systems, I have installed programs in /home/<my_id>/bin. A program compiled for one architecture doesn't work when I login into another system. I'm thinking of creating architecture specific directories which would contain inaries/libraries specific to that architecture and creating a softlink to it t /home/<my_id>/bin. The only problem with this solution is that I can't work on two systems at the same time.
I use CentOS for the servers I am responsible for. This time, I inherited a piece of hardware that CentOS refused to boot up on, so I installed Fedora Core 14. I have NIS and autofs working -- mostly.The home directories reside on an EMC network storage device. The problem is that when I login as a regular user, all the files under the home directory are owned by nobody/nobody, instead of user/group. I believe this has something to do with NFSv3 vs. v4, but I have yet to find the right trick to fix it.
Since I installed fedora on my desktop (there is no other OS on my desktop computer at the moment) I can't connect to my laptop which has Windows XP installed on it, although I can normally connect to internet from both computers. Here is the drawing to illustrate how everything is connected:
On the picture you can see that the phone line goes to the ADSL modem. The ADSL modem is connected to the Wireless modem with LAN cable. Wireless modem is connected to my desktop computer with LAN cable, and trough the wireless connection to the laptop. Internet is working fine for both computers, but desktop can't see laptop and vice versa. What do I need to do in order to see the laptop?
Is there anything special about a home directory before users' home directories are stored there, or is just as typical as any other "empty" folder?Let me just cut to the chase, but please no ear ringing about the folly of messing around as root, particularly with directories at root level. I know it's considered stupidity, but I deleted my home directory.
Is there an easy way to restore a working home directory? I tried copying /etc/skel under root, but I'm not sure what a home directory should look like once it has been restored. Besides . & .., there were .screenrc & .xsession in my home directory when I copied /etc/skel. Are these files suppose to be in "/home" or "/home/~" or both?
I have tried to mount an HP laser printer on my home network through a VPN IPSES connection from my laptop, but I cannot manage to see the printer or make it accept commands.
I wanted to create a consistent sync between two directories on two separate hosts. So when I write a file on one host, the file is automatically written on the next host. I don't have shared storage between each host.
i was wondering if there was a way to sync two computers so that all the data in the /home directory was exactly the same on both, and it was done automatically as soon as theyre both turned on and connected to the same network?
i have a laptop and a desktop that i want to basically mirror each other.
i take my laptop everywhere, so i want to be able to do work on it, take it home, turn on my desktop and as soon as my laptop is connected to the network, it'll automatically sync the files to the desktop.
i want the reverse to also occur - meaning i do some work on the desktop and have it automatically sync up to my laptop while im working on the desktop if the laptop is on at the same time, or as soon as i turn the laptop on.
i had rsync set up before, but i had to initiate it manually, and i was never sure if it was overwriting files or appending.
Ever since I had a hard drive that had an unexpected mechanical failure 2 years ago (& had to pay $1400 to have the drive pulled apart in a vacuum & copied), I've been understandably paranoid about ensuring I keep multiple up-to-date copies of my hard drive.Currently, I'm running 3 computers- The TV Computer, my Wife's Computer & my Main Computer. A second hard drive in the Main Computer & an external hard drive both act solely as backups for my Home folder. The TV Computer & my Wife's Computer also keep an identical Home Folder to my Main.I have ssh installed on all computer's & have made bookmarks via the Places Menu's 'Connect to Server', so obviously it's very easy for me to exchange files between computer's...
My problem is this; Every time I save/download/change a file, I have to copy it to 4 other hard drive's. It's kind of annoying.Can anyone suggest some ways for me to save some time with this? It's a wired network with static ip's. All 3 computers are pretty much turned on 24/7.I'm open to middle-of-the-night scheduled type of thing or whatever.
I currently run Ubuntu on my desktop and have just ordered a netbook which I intend on installing Ubuntu on.I was wondering if it was possible to keep both machines completely in sync ie, same files on both (music, pictures, desktop, documents etc) same settings, same themes, same programs etc etc?
I am building an HTPC based on Mythbuntu and will also have a laptop running Windows.
I need some software that will provide two-way syncing between these machines:
1) Sync folders from HTPC to the laptop
As the laptop is new, all the media content I want to have on the laptop (music and photos) will be on the HTPC.
2) Backing up content from laptop to HTPC
New content (purchased music and photos) is likely to be added on the laptop initially so I'd therefore like to sync (instantly/automatically if possible) this back to the HTPC to make it available there as well.
Does anyone know of any good software to do this?
I'd originally been thinking of DropBox but, as I understand it, you have to use a DropBox folder however, on the HTPC, music and photos will be on different drives and it seems that putting symlinks inside the DropBox folder is not recommended.
This post also talks about using Ubuntu One. I think there's a Windows beta version available but does this sync between machines on a local network as I thought it was a cloud storage solution and I'm not looking to upload any content to the internet at this stage.
I have updated to 10.04 on my desktop and on my Dell Inspiron 8200 laptop.What I would like to do is have the machines automatically synchronise working files as they change on each machine. I have found backup programs but am not sure if they will do what I need
I'm using a Linux machine at work, and started using at home in a VM for some home development. I have a vimrc and a bashrc with some configuration, that are useful for both machines. What is the best way to sync them? Create a symlink for each file in my home folder pointing out to a the respectives files in my Dropbox sync folder? Is this possible (delete .bashrc and create a symlink instead)?
I'm hoping somebody can find something here that I haven't. I'm trying to use rsync to backup home directories to a nas. First, I NFS mounted the nas and ran an rsync and everything worked out fine. the transfer completed after a few hours and everyting was transferred (lots of stuff!). I then decided that I don't want to leave the nas mounted all the time and I didn't want to automate mounting and unmounting of the nas as I didn't think I could produce a script that would work reliably enough. So I decided to start an rsync daemon on the nas and upgrade via that. I run the following command (results are included. the ^C is me killing it after it hangs).
I'm using Edubuntu 10.04 in my classroom. I use an administrator account. There are about 8 student accounts on the computer, created as desktop users. I would like to login with my account and be able to view, create, and delete files in the students' home directories. However, I can't figure out how I would give myself this permission.
I've tried sudo chmod, but that won't work, because I'm not the owner of those files.
I've tried sudo chown, but that won't work, because the students need to be owners of their own directories.
I am using UbuntuOne (U1) with 2 computers. I connected with my desktop computer to sync with 3 of my directories (Documents, Projects and Public) and uploaded their contents. I connect to the U1 with my laptop and the Documents directory is no longer able to sync with U1. I right-click on the menu and select to Sync but it doesn't work.
The other folders have updated with no problems, just the Documents folder does not. The Documents folder in the Laptop is cleared out. I was going to sync, and then add the files already on the laptop to the directory and sync to move them up to the cloud (and thus, to download on my desktop the next time I log in).
All with their own home drives. My media (music, films, photos etc) is kept on a separate (Vista) partition on my Desktop with symlinks from my home directory on Dendrite. Ideally, I'd have the /home directory synced across all 3 computers. I had been toying with the idea of a networked /home kept on an external HD plugged into synapse, but not sure how this would work out with Axon out of the reach of the network. I have dyndns set up and can access the home network over ssh, but obviously that's impractical (I assume) for a home drive.
Thoughts? Ideas? Pointers? I'm comfortable playing around with fstab, nfs and the terminal, but still very much a beginner.
I want to share home directories from two different machines so that I can log on to both using the same account.
One idea was to host the home directory on a server and mount it to a local directory. I don't think this will work though, because I'm pretty sure the directory wont be mounted until the logon session starts and I'm guessing it wont without the appropriate home directory.
So the question becomes, what tells the OS where the home directory is in the first place. Yes it's in a default place but that path as to be stored in some config file somewhere right?
But another problem is... If the server goes down, I'll have to make sure I can log on via root at the logon screen/get into a terminal/use LiveCD to get access.
It wouldn't be too much of a problem to create an account on each machine, all my media will be on the server anyway. But if I create an account on one, it would be nice if it was automatically added to the other. And it would be great for keeping settings if I want to do a compete wipe if I'm upgrading the file-system or something. I suppose I could just do a backup like everyone else..
I have a perplexing problem that I was hoping some of you might help me solve. My servers run 10.10 and also serve as standalone LTSP hosts - none of this is terribly relevant I hope. Recently, a user complained of permission problems and so I ran a simple command:
Code: chown -R username:username /home/username/* and
I'm setting up a Squeeze system with multiple users. I would like to have it the way that no user is allowed to read other user's files. I have searched the net and the forums here and have found quite a lot of stuff but it's all a bit confusing to me.
Some suggest that one should use dpkg-reconfigure adduser and select <no> But that doesn't do what I'd like to achieve (with a newly created user): wussy@dorm:/home$ ls -l
In system info my ext4 /home directory shows total space of 51.7 gigs with 51.5 gigs available.
My ext4 / directory shows total space 19.7 gig and 7.7 gig free. Whenever I install anything it goes to the / (as guess root directory) In Dolphin it shows my /home directory but anything installed under that seems like it installs on the / directory.
If I have 51 gigs free where is it and how do I gain access?
In my desire to learn, mess around and set up something useful on my home network, I'm looking for something that can do centralized login and remote home directories. When someone in my family logs in to a computer, windows or linux based, I want them to be able to use their credentials, then have their remote drive mounted and ready for use. I've looked over ldap solutions, attempted to set up an OpenLDAP server and realized I have no idea what was going on. Is an ldap implementation the proper way to go for my desired solution or am I barking up the wrong tree? I've just now set up OpenDS on a VM for testing but I need to do some research there.
At work, using SambaKerberos and ActiveDirectoryWinbindHowto, I joined my machine to our ADS network. Again using ActiveDirectoryWinbindHowto, I modified both common-account and common-auth with these settings.
According the the doc, when I first log in as a domain user, it should create the home directiroy /home/<whateverdomain>/<theusername>, but it doesn't.
Is there a way to encrypt existing home directories in lucid so that they will unlock with pam-encfs when the user logs in? Or must you do this when the directory is created?
I have my home server setup, running 10.04 x64. The OS is installed on a 300GB WD Blue drive, and I have a RAID5 array md0, consisting of 4x 2TB WD Green drives, mounted as /home. I am sharing the home directories using samba and using them to back-up the other computers in the house. I have created a user account+password for each computer, giving it its own "/home/computername_backup/" directory to store it's backups in.
Computers being backed-up:(750GB) Gaming PC running Win7 Ultimate x64 (30GB + 2TB) HTPC running Win7 Home Premium x64 (32GB) Netbook running Win7 Home Premium x32 (250GB) 2 Macbook Pros Running OS X 10.6.4 (tweaked to allow time machine to recognize the samba share as a time machine volume
Question: 5.37TB of /home seems good for now, and I haven't run into any problems so far, but I don't want to have to keep checking. I'd like to put a size cap on each user's home, to prevent one of the computers from gobbling up all the space. Is there an easy (or hard) way to configure this type of thing? My Macbook, for example, only has a 250GB HD. I could give it 3-400GB of space for its home and that would be plenty - whenever it filled its /home/, it would start erasing the oldest backups. If there is no size limit, I believe it will just continue to grow until all the free space is gone.
Considerations: Right now, the HTPC is storing all its media locally (on the installed 2TB drive). However, I've already used 3/4 of the space and the HPTC enclosure can only hold one drive. My plan moving forward is to have /home be used to store media files (iTunes music for all computers and tv/movies for the HTPC), which is another reason I'd like to ensure that the backups don't take up all the space.
I realize I could create a partition for each computer, but I'd prefer not to go down this route. This would seem an untenable tactic if I added another computer next month, or if I realized that the partition was too small.