Tag Info

Hot answers tagged

35

OK, I've just found it, and it still works! Really funny. You don’t need any fancy applications, instant messengers or the like. With this command you send your audio to the remote host. arecord -f cd -t raw | oggenc - -r | ssh <user>@<remotehost> mplayer - Or if you like ffmpeg better ffmpeg -f alsa -ac 1 -i hw:3 -f ogg - | ssh ...


13

Has been an issue with firefox for quite a while, try running firefox as firefox -no-remote (setting MOZ_NO_REMOTE=1 as environment variable should work as well). Here's more info


12

You can use X11 forwarding over SSH; make sure the option X11Forwarding yes is enabled in /etc/ssh/sshd_config, and either enable X11 forwarding by hand with ssh -X remoteserver or add a line saying ForwardX11 yes to the relevant host entry in ~/.ssh/config Of course, that requires a working X display at the local end, so if you're using Windows ...


11

You'll need to download the content of the script in some way. You could do ssh remote-host cat script.bash | bash But that would have the same kind of problem as: cat script.bash | bash namely that stdin within the script would be the script itself (which could be an issue if commands within the script need to get some input from the user). Then, a ...


10

One simple way is to turn on vnc screen sharing by going to System Preferences -> Sharing -> Screen Sharing on the machine you want to share. For client compatibility reasons you may need to select both "Anyone may request permission to control this screen" and the "VNC viewers may control this screen with a password" checkboxes. Once you've set up the ...


10

Yes, you can automate the authentication with your Raspberry Pi using SSH. As prerequisites the following is required: You have enabled SSH on the Pi. You know your Pi's IP Address. Linux Under Linux you can install SSH via you package manager, generate a keypair using ssh-keygen, copy the key to the Pi using ssh-copy-id and test using ssh. Install ...


8

No packets are received for several seconds and then ~6 are sent back in quick succession. This is symptomatic of two similar phenomena: network congestion or network discards (usually due to congestion). In the first case, a router between here and there has a burst of traffic unrelated to your activities which cause your traffic to be buffered in ...


7

Most of the time you will use ssh. vncviewer might be available, but often it isn't (most servers will not have X11 or anything graphics-related). Why use SSH? From the CentOS documentation: After an initial connection, the client can verify that it is connecting to the same server it had connected to previously. The client transmits its ...


7

This can be done by installing Cygwin and an openssh server on your Windows machine. Cygwin will come with bash, which can run your script, and openssh can be installed under Cygwin, and will allow you to login to the Windows machine remotely. Before logging in, you can transfer your script to the Windows machine using scp, and then run it directly with ssh. ...


6

What you have is not a unix command line, what you have is an FTP session. FTP is designed primarily to upload and download files, it's not designed for general file management, and it doesn't let you run arbitrary commands on the server. In particular, as far as I know, there is no way to trigger a file copy on the server: all you can do is download the ...


6

This line is printed by the shell. Different shells implement looking for mail in slightly different ways, but unless can count on people to configure their shells to your liking (and possibly pick a different shell), you need to send them mail. Good shells designed for interactive use have a way to run arbitrary commands before displaying a prompt, in ...


6

First, the easy way: rsync has a --bwlimit parameter. That's a constant rate, but you can use that to easily throttle it down. Now, if you want the adaptive rate, there is the linux traffic control framework, which is actually fairly complicated. There are several references I'm aware of: Linux Advanced Routing & Traffic Control Traffic Control HOWTO ...


6

Beside solutions with sudo, that can be script-friendly be configured (no extra password-prompt for specific commands) or setuid solutions which are not easy to do secure, I suggest the usage of ssh public-key authorization with the command= restriction. For this, you need to enable password-less login to the root user if not yet done (PermitRootLogin ...


6

I'm exactly sure about what you are looking for. But to launch a new application inside a running X server you can use for example: DISPLAY=":0" mplayer -fs video.ogg You can choose the id of the X server, and you may add an optional screen identifier like :0.1 to launch the application in screen number 1.


6

SSHFS is wonderful; it can mount remote directories in a local directory. You could install ssh on both sides: # apt-get install ssh On the client side, or both sides if desired, install sshfs and fuse utilities: # apt-get install fuse-utils sshfs Without reboot, load the kernel module: # modprobe fuse Create a mount point for the remote file ...


6

The reason you are not getting the correct error code is because local is actually the last thing executed. You need to declare the variable as local prior to running the command. local RESULTS RESULTS=$(ssh user@server /usr/local/scripts/test_ping.sh) echo $? You can see the issue here: $ bar() { foo=$(ls asdkjasd 2>&1); echo $?; }; bar 2 $ bar() ...


5

There is no standard per-user file that is run for non-interactive logins. You need to either make the program self-contained, so that it's able to find its dependencies without relying on non-default environment variables, or else explicitly set the environment, typically with ssh somehost '. ~/.profile; exec ~/some/path/somescript.py' You shouldn't be ...


5

Use rsync, and specify --ignore-existing if you do not want to update existing files: rsync -e ssh -av --ignore-existing /my/source/directory jim@foreign.machine.egg:/data/ A popular additional option I usually add is --progress so you see what's going on. If you expect interruptions, also say --partial, but I'm not sure how "partial" and ...


5

You could check out VirtualGL together with TurboVNC should provide you with 20fps @ 1280x1024 on 100 Mbit (see wikipedia). Do note that it might not work with all applications, it depends on how they use OpenGL.


5

Using rsync --exclude is the more obvious choice here, but if you really want to just send a few files or folders and have something specific to exclude, you can use shell globing with scp. First make sure you have the right globing options set in your shell. For bash run shopt -s extglob and for zsh use setopt ksh_glob. Then something like this: scp ...


5

CentOS's installer, Anaconda, supports a couple of different installation methods that you can use to help your remote administrator. Quoting from the project's web page: Installation can be scripted with kickstart to provide a fully unattended installation that can be duplicated on scores of machines. It can also be run over VNC on headless machines. ...


5

I would say the answer is maybe but I wouldn't do it and I would STRONGLY recommend you DO NOT TO ATTEMPT IT. The idea is fairly simple but requires perfect execution which Murphy's Law will mess up. If your hardware has PXE boot and another Linux machine on the network where your server resides you can set up a Network Boot Environment wipe your MBR on ...


5

You need to use some kind of network file system to remotely mount a specific directory. You can't just directly mount a remote directory without any additional software. If you already have ssh running and an account on your remote server use sshfs sshfs user@host:/path/to/remote/directory /local/directory If you already do some network sharing for ...


5

If you want to run a X command on a remote system and and show the client on your local system the solution is rather simple: You have to ensure that your X Server accepts connection via TCP, nowadays this is typically disabled as it is a security problem. You basically have to run your Xorg server without the -nolisten tcp option. For gdm3 you can add ...


5

In linux, you would choose for NFS (also check out the article on archwiki about it which may have applicable information for your distribution aswell). It has more advanced features then samba. If you need to lock (i.e. concurrent acces) files you should look into lockd aswell because nfs is stateless. However it is harder to configure than smb. I would ...


5

If the processes are somewhat interactive / not suitable for running as daemons, you're looking for something like GNU Screen or tmux - both of them allow you to start a session with multiple windows in them and detach and reattach that session: tmux new-session session-1 # start an application C-b d # C-b means Ctrl-b # You're now back in your terminal and ...


4

You may find useful xinput list and xinput test <device>. For example, $ xinput list ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ SynPS/2 Synaptics TouchPad id=11 [slave pointer (2)] ⎣ Virtual core keyboard id=3 ...


4

As stated by sarnold, XDMCP should be what you are looking for. However, if "I want my computer to be a 'dumb terminal' " is not a hard requirement, I would encourage you to use NX (implemented, e.g., by FreeNX) instead. It is an improved version of X forwarding over SSH, but it will require a desktop environment on your laptop to run its GUI. However, it ...



Only top voted, non community-wiki answers of a minimum length are eligible