Ubuntu :: Regularly Need To Copy Files From A Remote Computer?
Mar 11, 2010
I regularly need to copy files from a remote computer to wherever I am working. I've ben looking into alias and the .bashrc (or .profile in the remote computer - mac) Can I use scp in these files? I've tried:
Code:
alias='sch usr@location:'
then when in the local terminal:
Code:
sch path/file .
But this doesn't work.
Better would be copying when logged into the remote location, but I haven't figured that out in terminal yet, let alone an alias for it. Hopefully it'll be a quick solution!
I would like to copy several files from a remote machine. This archives are contained in different folders and their name have a commun caractheristic (also the folders).I have tried something like that:
ftp open machine@ prompt %to get into the non interactive mode
I have a large amout of data (several GB) on a remote drive, that is transparently mounted via nfs. I'd like to copy these files into a subdirectory of where they are already residing, so everything stays on the same physical disk. For that reason, I would like to prevent an unnecessary round trip over the network.
It seems that cp files* subdir does the naive thing and reads all the data into memory and then writes it back. Is that true? Is there a special command that does the actual copying entirely on the server the disk is physically connected to?
Using connect to server in 10.04, service type SSH (sftp) from the places menu. This shows my folder and I can double-click pdfs, text files etc from Nautilus. But.... if I try to open an ods or odt file it opens the archive manager. It also fails if I open from within OOo. It used to work but has recently stopped.As an aside, if I export the share via NFS and access it that way, then everything works OK.
I have been trying to use the remote desktop so I can get my files and stuff from one computer and use it on another one, I have not been able to figure it out...
Allright, I made a simple script that tarballs my SQL databases weekly and saves them to a backup harddrive.If possible, I would like to have the backups uploaded to a remote server for storage. But, I must have the script delete the previous upload for size contraints.I can only use rsync, scp or sftp. Haven't used any of them really before... Here's my basic tarball-backup script:
Code: #/bin/sh # Dates the new tarballs of current builds. DATE=`date +%m_%d_%Y`
I am using fedora 10 in two computers. Just for my own practice I sent a file to my second computer.
1st computer IP is 192.168.1.10 2nd computer IP is 192.168.1.20
[Code]....
The file has been successfully copied to the second computer but I again want to copy that file into my local computer by still sitting in my 1st computer.
just installed ubuntu couple of days back on my netbook. I am still a beginner, enjoying my adventure exploring ubuntu. I have another desktop which runs on XP. I am able to access XP shared folders through my netbook(linux). However, i wanted to copy files from XP infact folders using TERMINAL in my netbook, not copy and paste using my mouse. Are there any commands for it?
I have a 160GB harddrive which I installed a F12, would like to upgrade to a bigger drive, but I hate to have to re-install everything.
Recommend a good disk copy utility? The utility should be able to not only copy files, but boot sector and everything. So I just need to make a copy, change my BIOS to boot from the new drive and run everything as before.
I really like scp for sending a random file here or there, were a permanent share is overkill. Sometimes I send a very large file over a local network that has no reason to encrypted. The encryption maxes out the processor that needs cycles for other stuff and bottlenecks the transfer. Is there a command with similar syntax without encryption?
I am now converted over to ubuntu 10.04, love it everything works perfectly. However i use windows 2003 server for my files and remote desktop and my outlook email, i can remote desktop and do everything but i can't copy and paste a url or a text name. Is there a way around this or something I have to turn on ?
Just installed 10.10 32-bit on a Lenovo T61p laptop, and used Remote Desktop Viewer (version 2.3.2) to VNC into another system. I can copy from an application on 10.10 and then paste into a window in the VNC connection (e.g. to xterm or emacs), but I cannot do the reverse. When I try to paste, I get garbage displayed. For example, I selected "ls -l" from an xterm, which should have copied to the clipboard. When I paste this into an e-mail message, I get junk.
Here is what Emacs in hexl-mode says about that text: 7852 3109 05 xR1.. It shows as "xR1" some whitespace and then a tiny graphical box symbol with 00 and 05 in it. I'll try to paste it on the next line: Is this a known bug? Is there a workaround? Another app I can use? xR1 This same VNC connection works fine, when I use 10.04.
I would like to use the command rcp to copy file from remote server ( linux ) to local pc , what is the command ?the remote server name is lnx_srv , the path is /tmp/ora_file1.txt , the linux login id is ora_usr , the .rhosts have released to ora_usr the localhost pc path is c:OraI read the help page of windows , tried the command rcp lnx_srv.ora_usr:/tmp/ora_file1.txt c:Ora , but not work , the error is "rsh: can't establish connection" , Can advise what is wrong ? what comamnd should i use ?
Imaging-copying a working remote share on WindowsNT to a local Linux disk target is needed . Is that possible with dd command(how if remote share is connected as smb://ipnumber/share) and do you need root privilleges on local and remote machine for that?Perhapson source machine:dd if=/dev/hda bs=16065b | netcat targethost-IP 1234on target machine:netcat -l -p 1234of=/dev/hdc bs=16065borrsh 192.168.xx.yy "dd if=/dev/sda ibs=4096 onv=notrunc,noerror" | dd of=/dev/sda obs=4096(any difference to dd/privilleges if you use it as windows dd version since remote is running windowsNT)?
New machine, need to append my id_rsa.pub to my remote SSH box, cannot use ssh-copy-id because I cannot specify the port I've got the machine running on.
I need to back up a fold on a remote machine to my local box; the remote hd does not have enough space archive it, neither does my local box. I know there's a cantrip to pipe scp through gzip (or similar), but I don't remember the syntax.
I am trying to get the dd command to successfully copy a disk image to a remote system.Right now I am testing out the syntax by trying to copy the /dev/sda1 directory of the subject computer. The command syntax that I am using is the following:Code:dd if=/dev/sda1 ibs=4096 conv=notrunc,noerror | (ssh 132.183.12.128 of=/roarchive/test obs=4096)The user account running this command is root, and the account does have key-based authentication between the source and destination computers. The command does not return any error messages, but when I check the directory on the destination system, the expected output is not there.
I hope I am not repeating a thread. I am trying something very simple: To remotely connect from a ubuntu desktop to another ubuntu server (physically not reachable). When I ping the server, it seems to be fine. However, when I try to ssh, the connection is closed by the host. I am the only one using the server. It worked fine a few hours ago and I was trying to copy a lot of data using a couple of scp sessions. At some point the connection was closed and I cannot access the server anymore.
As for what I am trying to do: I am looking for a way to run scripts and/or launch programs from a cell phone using SMS. I've found a few options close to this, but nothing that really fits what I'm trying to do. It seems I can either get speed or ease of use, but not both. To explain:
If I understand correctly, Evolution has this functionality through email, but email isn't instant. I'm trying, as best as I can, to use my phone almost like a remote; sending email from my phone would create a considerable wait time.
Using Pidgin's Buddy Pounce feature with AIM lets me use SMS to get a quick response, but I'm running into the problem that I can't make its action depend on what the message says. I want to be able to text, say, "Shutdown", and have my computer run a shutdown command, but Pidgin's Buddy Pounce feature doesn't seem to support checking for specific messages. I've been unable to find a plugin that changes this; if there was, it'd probably be my best bet.
Bluetooth is out; my computer's bluetooth adapter died a long time ago. Additionally, some of the things I'd like to do would be when I'm not near the computer, so even if it was functional, it would be limiting.
Anything that requires any apps for android, iPhone, or w/e are out too. I have an LG Dare, and while it's a nice phone, you can basically forget custom apps.
So, to recap, I'm trying to find some way of sending an SMS or email from my phone, have it be received as quickly as possible, and have the computer run a console command based on the content of the SMS/email. Any ideas?
My home network consists of two computers that share one internet connection via a router. I have a desktop computer that runs Ubuntu (Karmic), connected via ethernet; and a netbook that runs Windows 7 (will be Ubuntu, eventually), which connects wirelessly. Both computers have multiple user accounts. What I would like to do is access my account on the Ubuntu desktop via the netbook while my wife is using the desktop with her account (or enable her to access her account on the desktop while I am using it). I looked into VNC, but it, apparently, only supports the active desktop. So, if someone connected to the computer while it was in use, they would be looking at the other user's desktop. Is this a misconception on my part?
So, I have 3 questions: -From the netbook, how can I log into my account on the desktop and just get a command-line shell? - From the netbook, how can I log into my account on the desktop and actually have access to my Gnome desktop? - If I leave my house with the netbook, and want to log into my desktop machine across the internet (CLI and/or Gnome), how can I do that?
I want to use one computer to control Banshee on another computer in the room. without using remote desktop. That's not going too well for me (it works, but it's slow and clunky over my network).
Is there a method at the command line to copy files from one location to another and retain the source files group and user?I'm migrating some MySQL files from one machine to another.I want to back-up the original files in the directory presently. They have owner:group of mysql, some have owner:group root:mysql and so on. To copy them under cli or Nautilus everything changes to root for I execute sudo cp or gksudo nautilus and copy via gui.
Since it is MySQL data I could simply do a dump of the database and restore it on the other machine. But there's about 20 db's and I want to do this via a copy for it will be faster - at least that is what I think.
I tried copying .gnome2 from my personal machine to another computer hoping my desktop layout would be manifested on the second computer, but it wasn't. What else do I need to copy from my home directory to the new machine to make this happen?
Also, is there a way to do the same with Firefox so that I don't have to reinstall the extensions? Copying .mozilla carried my bookmarks, but not my extensions. v