Working with files, programs, etc., that are stored on a different machine
11
votes
6answers
2k views
How do I copy all files and directories except certain ones over ssh?
Using the Linux command line, I use the scp command to copy up all the files and folders from a certain directory. However, I don't like to consume wasted bandwidth for copying up things I rarely ...
7
votes
2answers
5k views
Starting firefox on a remote host (over ssh) opens a new window locally: what is happening?
I have never noticed this behaviour before, and am a little confused as to what is happening. I have a local copy of firefox running, then ssh (ssh -X <url>) into a remote server and start a ...
7
votes
5answers
1k views
Easiest way to duplicate directory over FTP
I want to duplicate a directory on an FTP server I'm connected to from my Mac via the command-line
Let's say I have file. I want to have files2 with all of file's subdirectories and files, in the ...
7
votes
3answers
450 views
How to set up “poor man's” Linux desktop cluster?
There are several small Linux/Android devices on the market with 1 GHz ARM processor, 512 MByte RAM and cca. 4 Gbyte storage for $35-$40. If I buy 5 pcs, it's only around $200.
Let's say, we have ...
6
votes
7answers
4k views
How do I work with GUI tools over a remote server?
I have an Ubuntu server running on EC2 (which I didn't install myself, just picked up an AMI). So far I'm using putty to work with it, but I am wondering how to work on it with GUI tools (I'm not ...
6
votes
2answers
3k views
How can I set up SSH on Linux to log in password-less?
My Raspberry Pi is running the default Debian image and has SSH enabled. I log into my Pi as follows:
ssh pi@<IP-address-of-my-Pi>
I have to enter my password every time. Can I somehow make ...
6
votes
2answers
4k views
How to debug the input from an input-device (/dev/input/event*)
I have a IR reciver that is using the imon-driver and i would like to get it working with the kernel. Right now half of the keys on the remote (image) works, but an all important think like the ...
6
votes
2answers
1k views
How to efficiently use 3D via a remote connection?
I have one weak PC (client) but with acceptable 3D performance, and one strong PC (server) which should be capable of running an application using OpenGL twice, i.e. once locally and once remotely for ...
6
votes
2answers
441 views
How to speed up X over fast connection ? (especially over ssh)
What are recommendations on speeding up X applications over local fast (gigabit) connections? (similar question for slow connections)
Currently I'm running over ssh -Y, which is fine, but I wonder if ...
6
votes
2answers
965 views
Get ssh to forward signals
I want to be able to send signals (SIGINT is the most important) through ssh.
This command:
ssh server "sleep 1000;echo f" > foo
will start sleep on server and after 1000 seconds it will put ...
6
votes
2answers
515 views
Linux -> linux remote X login/desktop
What are the (best) solutions for remote desktop in linux? Ideally I'd like to be able to be able to log in to a remote X (KDE) session without even logging into my local machine. Maybe if I could ...
5
votes
1answer
248 views
Send a command from the console to a running X server
Is it possible to send a command from the console, say tty1, to the terminal currently occupied with X (in my case tty7 as I use Debian), to tell for example mplayer to play a movie?
Edit - made a ...
5
votes
2answers
190 views
Can I start my main desktop graphical session remotely?
So my workstation at work got rebooted and I'm currently not logged in physically there with a graphical session. I have ssh access to it, and I can start a new X windows session and use my graphical ...
5
votes
1answer
595 views
Transfer large files without hogging the bandwidth (is there a BITS equivalent for Linux?)
Is an implementation of Microsoft's Background Intelligent Transfer Service (BITS) available for Linux systems?
I'm looking at my options for transferring large files to a remote Linux server over ...
5
votes
3answers
258 views
firefox process dies after ssh log out on remote machine
I need to run firefox on a remote host via ssh and keep process running even after ssh logout.
I already have tried these ways:
nohup firefox &
screen
disown -h
But it seems these work only ...
4
votes
2answers
4k views
“Permission denied, try again” while transferring files with scp
I have two servers (A and B) and my local machine. I'm trying to transfer a file from server A to server B.
From server A:
scp ./backup.tar user@server.b:/home/public/
Permission denied, please try ...
4
votes
2answers
273 views
Run mpirun and ssh-add remotely on the same session
I am developing a program that is running on multiple machines using MPI.
I have machines on Amazon EC2 where I can start mpirun from one of them (the master).
Everything works as I expect if I ssh ...
4
votes
1answer
385 views
Can an eCryptfs Home Directory Be Backed Up Remotely
The main idea I want to have is a backup script run rsync to copy my /home/.Private/user directory off to another server. This would allow the backup script to have no knowledge of the data, but mean ...
4
votes
2answers
123 views
How can I give a very stripped down login for viewing logs?
I have various log files in folders on an RHEL 5 system:
/var/log/syslog-ng/A/
/var/log/syslog-ng/B/
/var/log/syslog-ng/C/
I would like to be able to give certain users the rights to view/tail (but ...
4
votes
1answer
124 views
Set window manager's meta key depending on connected Xserver
Situation
A linux server is running an xdm supporting XDMCP, it is connected to from various different Linux and OS X boxes using XDMCP via an X -query <server> command.
Once the user is ...
3
votes
2answers
1k views
Executing a shell script from remote server on local machine
Imagine a shell script on the remote server as
#!/bin/bash
rm /test.x
How can I (if possible) to execute this script from my local machine to delete /test.x file on my local machine. Obviously, the ...
3
votes
2answers
326 views
Accessing a remote OSX system from OSX, Linux, Windows
Is it possible to connect to a remote OSX machine using OSX, Linux or Windows in a way similar to Windows' remote desktop?
3
votes
2answers
161 views
Mount HTTP Server As File System
I have a machine on which I wish to mount multiple remote servers to access them all centrally. For remote Linux based systems I am using SSHFS which works fine. But for Windows systems, or systems ...
3
votes
2answers
2k views
How to display xclock on another computer?
I want to display xclock on another computer.
On my computer (111) I am able to ping the other computer (222) inside my home network:
$ ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr ...
3
votes
2answers
97 views
Symbolic Link local .jpg file to .jpg file on the internet
Is there any way to have a symbolic link that links a local .jpg file to a .jpg file on the internet in a l/unix environment?
3
votes
1answer
1k views
dot file not sourced when running a command via ssh
When I run my program interactively, it works fine:
ssh somehost
$ ~/some/path/somescript.py
When I run my program over ssh directly, it doesn't work. The variable PYTHONPATH is not set, because ...
3
votes
1answer
382 views
How to disable remote access on a linux distribution?
So I've read in Mark Sobell's book on Linux, that Linux by default is open to remote administration. Now seen as I'm running a Fedora 17, on a laptop I never have to administrate anything on remotely, ...
3
votes
2answers
1k views
Two-step remote ssh without password
I'm looking to ssh from my localhost to a remote server, and from there to a remote computer. I currently have it set up so that the remote computer and remote server have passwordless ssh-ing set up ...
3
votes
1answer
489 views
Set visible directories for SFTP access?
I am setting up SFTP access to one of my machines running Linux with the Dropbear SSH server. When I SFTP onto the machine remotely, I can see the entire filesystem on it, even if I might not have ...
3
votes
1answer
540 views
How to enable nagios user created by yum to use check_by_ssh
I've used yum install nagios on an Amazon Linux instance, and it created a nagios user with shell /sbin/nologin and homedir /var/spool/nagios. This is the behaviour on EC2.
I want to use check_by_ssh ...
3
votes
1answer
784 views
Debian VNC (Remote Desktop) only allowing first connection, then turns off
Basically if I reboot the machine, I can vnc into it (using ultra vnc) but I can only do it once. It seems that the vnc daemon stops working after the first remote desktop session is closed. I have to ...
2
votes
3answers
2k views
How do I only copy files to a remote folder on another server that don't already exist in the folder… from the command line in linux?
I have two folders on two different servers.
I want to sync files between A and B, however, I only want to copy files that don't already exist in folder B because these files are huge. I don't care ...
2
votes
3answers
848 views
Best way to mount remote folder
I have two RasberryPi running debian wheezy and I would like to mount a folder from computer A on computer B.
What is the best (as in most efficient) way to do this?
I can do it via SMB, but that is ...
2
votes
3answers
653 views
Keep running a script via ssh
ssh can use to run remote commands.
ssh me@server.com 'long-script.sh'
I run a long script that will take a lot of time, but I want to close my computer and keep running the script in the remote ...
2
votes
4answers
147 views
How to restore data atomically on a remote server?
I want to be able to backup and restore my home directory of a remote account.
The command I use are:
Backup
ssh myuser@myuser.server.com "tar jcf - ." > backup.tar.bz2
Restore
cat ...
2
votes
2answers
717 views
how to run shell on a remote server with root priviledge
I want to execute a shell script on a remote server, and the script should be run by root with no password required (or use sudo in the script).
Can anyone give me some suggestions?
2
votes
2answers
105 views
How to send a prompt to a remote machine like the “you have mail”, ie not using wall
I am currently using wall to show a message on a remote machine when an activity is started and finished.
But this is intrusive, as it will write across an editor they might have open etc.
What I ...
2
votes
2answers
51 views
Download copy of file which updates on change
Sorry about the title, I didn't know how to write it - It's kind of confusing.
Ok, I am using my Raspberry Pi (Debian) and I store code on this server in which people have access to. My problem at ...
2
votes
2answers
6k views
Cannot connect to my Virtual Box Ubuntu system
I have a VirtualBox running an Ubuntu OS. I'd like to access this Ubuntu machine using ssh or telnet. In order to do that I've performed the following steps:
sudo apt-get install telnetd
sudo ...
2
votes
2answers
1k views
Open GNOME session remotely through SSH
I have a laptop connected wirelessly to my home network. I'm planning on installing a CentOS server on my network, used for a web server, a file server, and experimentation. I want to access it from ...
2
votes
2answers
34 views
Burn remote data on to a disc
I have an ISO image in another system which I need to burn on my system. I can copy that image to my system using SCP and then do burning. But I would like to know, whether I can directly burn the ...
2
votes
3answers
165 views
How can I securely login remotely to my Linux box over the internet?
I'm pretty much a Linux beginner, but this question has been on my mind. What's the simplest, most secure way to connect to my computer at home from work or from the library, &c? I'm running Mint ...
2
votes
2answers
106 views
How to securely export a device (HDD)?
So I have a Scientific Linux 6.3 (RHEL clone so basically the question is Redhat related) machine called "B" (with an extra "A" HDD besides the system HDD) and a notebook with SL 6.3. They are in a ...
2
votes
1answer
253 views
Error mounting dir from ext4 file system
I am trying to mount a directory on a ext4 type file system onto another linux box. Both boxes are on the same network
[root@localhost]# mount -o rw x.y.z.w:/home/lab /devbox
mount: wrong fs type, ...
2
votes
2answers
273 views
Run ssh as a command of another ssh command
I want to run a program on a machine that I have ssh access to from a gateway machine that I can access with ssh too.
When I want to run an mpi program on the target machine T, I access to the ...
2
votes
2answers
216 views
Printing a file from local computer using printer connected to remote server
On the remote server, I use lp command to print documents. I can connect to this server through SSH.
How can I print a file directly from my local computer using that printer?
2
votes
1answer
43 views
Playing a remote movie on the remote computer
I have two computers (a desktop and a laptop) running linux connected to my local area network. I like to ssh from my laptop over to my desktop and run programs there, and sometimes listen to music on ...
2
votes
1answer
636 views
Where does plink (from Putty package) search for remote commands?
I need to use plink (or something similar if you have something on mind) to get the output from Debian remote machine onto my Windows box. This works e.g. in this case :
plink 192.168.1.5 "ls" > ...
2
votes
1answer
120 views
Is there anyway to run gnome desktop via a remote x window ssh tunnel?
I'd like to run the DE remotely in a window of it's own on my local workstation. When I tried the naive gnome-session from an x-window tunnel it tried to takeover my local xfce desktop, got as far as ...
2
votes
3answers
807 views
Run local scripts on multiple servers using sudo user through a script
I have about 100 remote servers. I want to manage all my servers using one terminal server to update , run commands with sudo privileges.
I need to have one main script that takes another test script ...
