Copying files between two Unix hosts [closed] - unix

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am running a remote ssh server from my jailbroken iPod, and once connected I have root access to its file system, however when I try to copy files from the iPod to my computer, I realize I cannot access my computer's file system in that Unix user. I am a little new to this so forgive me if I am doing something dumb, but is there some way I can get these files onto my computer?
System info:
Computer: MacBook Pro 5,5 OS X 10.8.2
Ipod: iPod touch 2,2 iOS 4.1.2

You should be able to use scp. It works almost like copy, but uses ssh to copy between hosts.
From the desktop you would run something like
scp root#ipod:/my/file .
This would log in to iPod (you should replace that with the ip address or domain name you use to log in) as root user (you can replace that user with the one you use) and copy /my/file to the machine you're running the command from, in the current directory.

Related

Publish r shiny application in intranet [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am trying to build a Rstudio/Shiny App and post it in our intranet so that everyone else in our office could see it. I am a windows person, and the instructions online about how to setup a shiny server within Linux environment is a bit difficult for me. Is there an easy way that I can could accomplish this goal without messing up with Linux. Even if I have to do so, is there an easy way to just have my webpage available to people within our company, not everyone on the internet. Thanks!
You can use shinyapps.io and add a password authentication by using, for example, shinymanager Link here.
If you have a computer that's always on, you can run R on it and run the command shiny::runApp(host="0.0.0.0", port="xxxx")". You can experiment a bit with the port in xxxx.
You will have to know the computer's ip-address. You can then direct your colleagues to http://<ip-address>:<xxxx>, where you replace <ip-address> and <xxxx> with the respective ip-address and port. You might have to unblock the port in Windows Firewall.
If you do not have a computer available that is always turned on, you can actually install R onto a network drive, install required packages on the network drive, and then have users run R from the network drive and run the app themeselves.

How do I access data from my personal computer on my AMI instance running RStudio server [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have recently set up RStudio on an AMI ec2 instance using the process generously laid out by Louis Aslet from his website. But in an embarrassing turn of events I can't access the data I need because it resides on my personal computer. I am new to cloud computing and have 0 functional knowledge of Linux, but I do know SQL, and R well. Any help or suggestions would be greatly appreciated.
Have you tried the "Upload" button in the "Files" window of Rstudio?
use scp in terminal.
To put files from your remote server
Example: if the files are located locally in ~/mylocalfolder and you want to put them in /home/rstudio/mydata you would execute in terminal:
scp ~/mylocalfolder/*.csv ubuntu#<your address>:/home/rstudio/myData/
Note that if you want to access them under a different user, eg, rstudio, you need to change owners on the files. Use chown
To grab data from your remote server
Example: if the files are located on /home/rstudio/mydata and you want to put them locally in ~/mylocalfolder you would use
scp ubuntu#<your address>:/home/rstudio/myData*.Rda ~/mylocalfolder
I use the RStudio AMI all the time and what works for me is to use Dropbox. I can't remember exactly how I did it but I think I may have started the shell from within RStudio and installed Dropbox from the command line.
This link has a little more info:
http://www.louisaslett.com/RStudio_AMI/#comment-1041983219

How to access files on UNIX server from a laptop running Windows and R? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
In work all my data files are on UNIX server. Usually I use SSH client (such as PUTTY) on my Windows laptop to transfer data files from UNIX server to my laptop first and then run R locally to do analysis.
The question is if it's possible to use R directly access files on UNIX server. I understand that R can go to a URL and fetch data. Can I do the same to my UNIX server? If yes how?
Many Thanks!
You can install Samba on your Unix/Linux server and mount it as standard windows share.
You can also use software like WinSCP to provide virtual explorer-like view, but this will not be real file access - at least R will not be able to make use of it.
There is also sshfs which should be able to provide real mount over ssh, but to be frank I did not have much luck trying to get it working.
You can use RCurl with OpenSSL for Windows..
Another option might be to install RStudio Server on the server. That way, you can run RStudio in a web browser on your windows machine. R is than running on the server. This ofcourse only works if you have root access to the server, or can convince the administrator.
Alternatively, you could use rsync to regularly sync a set of files with the server. For using rsync under Windows you could take a look at MinGW or Cygwin.
You can use Putty to ssh to your UNIX server, open terminal or emacs (ESS), open R to do any analysis. I guess your UNIX server should have R installed.

could not open lock file /var/lib/dpkg/lock [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I'm getting error as below when tried to install a software on ubuntu in VM.
I could download any software if i'm a root user. But i forget my password now. Is there any way to renew the password of the root without uninstalling. please help.
could not open lock file /var/lib/dpkg/lock -open (13:permission denied)
unable to lock the administration directory (/var/lib/dpkg) , are you root?
Have a peek at This Link there is but you need to boot into single user mode (it is possible, but if this is a virtual then you'll need access to the host machine. If you don't have access to the host machine then I'm afraid you're out of luck :|
I assume your bootloader is Grub (likely, as you're using Ubuntu), so try pressing space (any key should work, even Ctrl) during bootup. Than, press e to edit the current boot entry, move the cursor to the end of the line which has kernel in it, and add init=/bin/bash. Press Ctrl-X and wait until shell prompt. Than, do a mount -o remount,rw /. Now you have a root account on a writable root partition. Do passwd, set the password, do mount -o remount,ro / and reboot. That's it.
Sometimes a simple reboot works for it. Try it before using any other options.

Is there an easy way to copy files between servers using aptana? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I have two Ubuntu servers. One is my development box, the other is a production system. They are not identical, though. Most notably, the MySQL server is on a remote server from the production one whereas on the dev system it's on localhost. Basically this means that I can mostly use a clone of the dev system, but if I just sync the filesystem the production system breaks.
Also, I am using Aptana (highly recommended, BTW). Up until recently, I had a local copy of my development system as a project, but I just had to reformat. I am not using a local project anymore, but instead I am using SFTP to connect with my Dev system and I am just editing files on there. Up until now, I have just been SCPing only files that need updating to the production server from my local project, but I kind of like not having one. I can restore it if necessary, though.
My question (short form): Is there an easy way using Aptana to copy files from one remote system to another?
Tim,
Currently you have to use local project (could be reconstructed from one remote) to synchronize two remote servers.
To enable auto-upload on local changes, in Project Explorer or App Explorer in context menu select Deploy/Deployment Settings, then check "Automatically sync my changes with the remote site".
This is all for Aptana Studio 3.
Cheers,
Max

Resources