[opensuse] running program on remote computer
I want to run KMyMoney on a remote computer. The files reside on a laptop, and I want to be able to edit them from my desktop. Both are running Opensuse 11.2, and both are on the same local network; both have KMyMoney installed. What is the easiest way of doing this? And do I need to worry about overwriting changes if KMyMoney is open on both machines at the same time? I hope this is an easy answer question. Many thanks! -- Fr David Ousley davidousley@verizon.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 9/27/2010 4:15 PM, Fr David Ousley wrote:
I want to run KMyMoney on a remote computer. The files reside on a laptop, and I want to be able to edit them from my desktop. Both are running Opensuse 11.2, and both are on the same local network; both have KMyMoney installed. What is the easiest way of doing this? And do I need to worry about overwriting changes if KMyMoney is open on both machines at the same time?
I hope this is an easy answer question. Many thanks!
If KMyMoney supports remote files then use its built in support. But verify that it is using a multi-user file system so that concurrent changes don't step on each other. If it doesn't support remote files then simply ssh into the remote computer and start money, and it will appear on your local screen. You have to enable X11Forwarding on the remote machine in /etc/ssh/sshd_config and make sure the ssh server is running. You would use a command (in your local machine) something like ssh david:your-remote-machine-ip kmymoney In this way, it will always be executing on the remote machine using remote files and there is no sync issues. -- _____________________________________ At one time I had a Real Sig. Its been downsized. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 09/27/2010 06:39 PM, John Andersen wrote:
You would use a command (in your local machine) something like ssh david:your-remote-machine-ip kmymoney
That would be: ssh -X david:your-remote-machine-ip kmymoney Also, if you don't want to enter your password each time you ssh into your laptop, then setup a ssl keyset between the boxes. It takes about 5 seconds. Since you want access to your laptop from your desktop, do the following: (1) create your keyset on you desktop with ssh-keygen -t dsa which will generate a 1024bit dsa keyset in ~/.ssh The files will be id_dsa (your private key) and id_dsa.pub (your public key). (2) So you can keep them strait if you have several boxes, go ahead and copy the public key and append your hostname: cp .ssh/id_dsa.pub .ssh/id_dsa.pub.desktophostname (3) What you now need to do is get the public key on your laptop. Use rsync or scp: rsync id_dsa.pub.desktophostname laptop:~/.ssh (give your password this time) (4) Now you just need to put the desktop public key in ~/.ssh/authorized_keys on your laptop. So on your laptop, do cat ~/.ssh/id_dsa.pub.desktophostname >> ~/.ssh/authorized_keys (5) Now ssh from your desktop into your laptop. You will get a one time confirmation to add 'XYZ to your list of know hosts (y/n)' just hit y and you are in your laptop. Now exit ssh to your laptop and ssh back in -- this time no password prompt and no confirmation. Your public key/private key setup is complete. If you swap hard drives or something you will get a message telling you the host has changed and telling you you need to remove an offending key from your ~/.ssh/known_hosts file on the box you are initiating the ssh session from. Just look at the number of the offending key (it corresponds to the line you need to delete in the known_hosts file). Then just edit the file and delete the line. That's it. I have all my boxes setup to unilize this setup and I have a common location for all the public keys. So if I add a new box, I can just copy the authorized_keys file 'pre-filled' to the new host, gen the keys for the new host and distribute its public key and we're done. Good luck. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 09/27/2010 10:46 PM, David C. Rankin wrote:
(1) create your keyset on you desktop with
ssh-keygen -t dsa
(here you will be prompted for a password: just hit return for no password) Just understand that this is where physical security become a bit important. If you don't secure your normal desktop machine with a password, somebody could break into your desktop and steal your private key and then be able to use it to gain access to your laptop. I don't know about you, but if somebody breaks into my computer system -- the private keys are probably the least I'm worried about. (not to mention, they only get the private key and have no idea how many boxes might have a public key that matches much less what their hostnames are) I add this because some say never create a passwordless keyset -- I say nonsense. That is what physical security is all about if they have physical access to your box, nothing is safe. All they have to do is boot with an install DVD and set /bin/bash as the shell and then change the root password anyway -- so having a passwordless public/private keyset is a non-issue on a scale of 1 to 'you've just been rooted'. Passwordless public/private keysets are designed to be setup this way. Yes, you can install some ssh-agent or keyagent app that causes you to only have to type a password once for a password protected private key, but I have found all these to be pains, especially if you use different desktops (gnome, kde3, kde4, enlightenment, etc..) -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 9/27/2010 8:46 PM, David C. Rankin wrote:
On 09/27/2010 06:39 PM, John Andersen wrote:
You would use a command (in your local machine) something like ssh david:your-remote-machine-ip kmymoney
That would be:
ssh -X david:your-remote-machine-ip kmymoney
Actually, if you enable X11 forwarding in sshd_config on the remote and the ssh_config in the local machine you don't need the -X. As proof of this, I had to look up what the hell the -X actually does, because I haven't used in 10 years. I prefer the inconvenience of entering a password when making a connection. Just because someone got their hands on one of my boxen is no reason to hand them the others. -- _____________________________________ At one time I had a Real Sig. Its been downsized. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 28/09/10 04:46, David C. Rankin wrote:
On 09/27/2010 06:39 PM, John Andersen wrote:
You would use a command (in your local machine) something like ssh david:your-remote-machine-ip kmymoney
That would be:
ssh -X david:your-remote-machine-ip kmymoney
Also, if you don't want to enter your password each time you ssh into your laptop, then setup a ssl keyset between the boxes. It takes about 5 seconds. Since you want access to your laptop from your desktop, do the following:
(1) create your keyset on you desktop with
ssh-keygen -t dsa
which will generate a 1024bit dsa keyset in ~/.ssh The files will be id_dsa (your private key) and id_dsa.pub (your public key).
Just a tip, ssh-copy-id is a little script shipped on openSUSE that automates the following steps from here
(2) So you can keep them strait if you have several boxes, go ahead and copy the public key and append your hostname:
cp .ssh/id_dsa.pub .ssh/id_dsa.pub.desktophostname
(3) What you now need to do is get the public key on your laptop. Use rsync or scp:
rsync id_dsa.pub.desktophostname laptop:~/.ssh
(give your password this time)
(4) Now you just need to put the desktop public key in ~/.ssh/authorized_keys on your laptop. So on your laptop, do
cat ~/.ssh/id_dsa.pub.desktophostname >> ~/.ssh/authorized_keys
to here. Just run it as "ssh-copy-id -i ~/.ssh/id_dsa.pub user@machine"
(5) Now ssh from your desktop into your laptop. You will get a one time confirmation to add 'XYZ to your list of know hosts (y/n)' just hit y and you are in your laptop. Now exit ssh to your laptop and ssh back in -- this time no password prompt and no confirmation. Your public key/private key setup is complete.
If you swap hard drives or something you will get a message telling you the host has changed and telling you you need to remove an offending key from your ~/.ssh/known_hosts file on the box you are initiating the ssh session from. Just look at the number of the offending key (it corresponds to the line you need to delete in the known_hosts file). Then just edit the file and delete the line. That's it.
I have all my boxes setup to unilize this setup and I have a common location for all the public keys. So if I add a new box, I can just copy the authorized_keys file 'pre-filled' to the new host, gen the keys for the new host and distribute its public key and we're done.
Good luck.
Regards, Tejas -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 27 Sep 2010 19:39:52 -0400, John Andersen
On 9/27/2010 4:15 PM, Fr David Ousley wrote:
I want to run KMyMoney on a remote computer. The files reside on a laptop, and I want to be able to edit them from my desktop. Both are running Opensuse 11.2, and both are on the same local network; both have KMyMoney installed. What is the easiest way of doing this? And do I need to worry about overwriting changes if KMyMoney is open on both machines at the same time?
You would use a command (in your local machine) something like ssh david:your-remote-machine-ip kmymoney
Thanks (and apologies for delay is responding -- migraine interruption). ssh david:your-remote-machine-ip kmymoney tells me it cannot resolve the hostname, but it connects if I omit the username ("david"), and then accepts my password to the remote machine. It then works. Many thanks!! -- Fr David Ousley davidousley@verizon.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 04/10/10 20:04, Fr David Ousley wrote:
On Mon, 27 Sep 2010 19:39:52 -0400, John Andersen
wrote: On 9/27/2010 4:15 PM, Fr David Ousley wrote:
I want to run KMyMoney on a remote computer. The files reside on a laptop, and I want to be able to edit them from my desktop. Both are running Opensuse 11.2, and both are on the same local network; both have KMyMoney installed. What is the easiest way of doing this? And do I need to worry about overwriting changes if KMyMoney is open on both machines at the same time?
You would use a command (in your local machine) something like ssh david:your-remote-machine-ip kmymoney
Thanks (and apologies for delay is responding -- migraine interruption).
ssh david:your-remote-machine-ip kmymoney
tells me it cannot resolve the hostname, but it connects if I omit the username ("david"), and then accepts my password to the remote machine.
It then works. Many thanks!!
Try "username@hostname" format instead of the colon above. Regards, Tejas -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Fr David Ousley wrote:
I want to run KMyMoney on a remote computer. The files reside on a laptop, and I want to be able to edit them from my desktop. Both are running Opensuse 11.2, and both are on the same local network; both have KMyMoney installed. What is the easiest way of doing this? And do I need to worry about overwriting changes if KMyMoney is open on both machines at the same time?
I hope this is an easy answer question. Many thanks!
The easiest way is to use ssh with X forwarding enabled. I don't know about the files though. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Fr David Ousley wrote:
I want to run KMyMoney on a remote computer. The files reside on a laptop, and I want to be able to edit them from my desktop. Both are running Opensuse 11.2, and both are on the same local network; both have KMyMoney installed. What is the easiest way of doing this? And do I need to worry about overwriting changes if KMyMoney is open on both machines at the same time?
Do you ever run KMyMoney on the desktop in its own right? That is, do you have some data files on the desktop? Are they the same or different to the laptop? If they're the same, you might want to look at a file synchronization tool like unison instead of running remotely. Cheers, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
Dave Howorth
-
David C. Rankin
-
Fr David Ousley
-
James Knott
-
John Andersen
-
Tejas Guruswamy