Message: previous - next
Month: April 2015

Re: [trinity-users] shell script help needed

From: "Dave Lers" <lists@...>
Date: Mon, 6 Apr 2015 11:33:10 -0700
multi wrote:
> On Sunday 05 April 2015 19:23:29 Dave Lers wrote:
>> multi wrote:
>> > Hi,
>> > I'm using Trinity that was installed with exe GNU linux.
>> > I have a bash script to mount a shared folder from a remote
>> > server and open it
>> > in a window. I launch it from a desktop icon. It looks like this:
>> >   sudo mount /mnt/nfs/client1
>> >   nautilus /mnt/nfs/client1
>> > It works fine -- except that, if I close the window and want to
>> > reopen it, it
>> > obviously asks for the password every time.
>> Does it have to be nautilus and nfs? Have you tried
>> nfs:// (or sftp://...) in Konqueror?
>> Konqueror can save login info and I think network logins are
>> automatic/transparent, but most of my LAN logins are via ssh
>> key-pairs
>> (sftp, rsync, scp and ssh) so I'm not sure.
> Hi Dave,
> No, it doesn't have to be nautilus. The folder is an nfs share on the
> other
> computer, I thought that meant I had to mount it as nfs. (I don't
> totally
> understnad all this)
> I generally don't have browsers saving any login info, but maybe i
> can set
> this one up as an exception. I'll have time to try it late tonight.

If you just want to access files on another *nix box, sftp is great.
If you are dpjungk on both machines, sftp:// is all you
need. If the usernames are different, use sftp://dpjungk@.../.
A path (e.g. sftp://dpjungk@.../home/dpjungk/Share/) is
optional... While no configuration is needed and I'm pretty sure
openssh-client is installed by default, openssh-server (e.g.
@ may not be.

Setting up ssh key-pairs isn't hard and makes logins (ssh, sftp, etc.)
transparent/automatic (no need to save login info in the browser). I
believe ssh defaults will only allow root logins (e.g.
sftp://root@...) via key-pairs. Key-pairs are also needed for setting
up automated rsync backups.