Find the answer to your Linux question:
Results 1 to 3 of 3
I intend to use a custom application launcher in the panel to mount two folders from the server in my client using NFS4. these are the commands Code: sudo mount ...
  1. #1
    Just Joined!
    Join Date
    Aug 2008
    Posts
    2

    silly q?


    I intend to use a custom application launcher in the panel to mount two folders from the server in my client using NFS4.

    these are the commands

    Code:
    sudo mount -t nfs4 -o proto=tcp,port=2049 xxx.xxx.x.xxx:/Pictures  /home/Import/Pictures
    sudo mount -t nfs4 -o proto=tcp,port=2049 xxx.xxx.x.xxx:/Music  /home/Import/Music
    They work OK. But my little problem is that I need two launchers, one for each command. I would like to find a way to use only one launcher changing the commands.

    Thanks

  2. #2
    Linux Newbie Geeth's Avatar
    Join Date
    Apr 2008
    Location
    Brisbane Aus
    Posts
    176
    Make a script and run that with the launcher.
    Thats the way I would do it.

    Something like

    Code:
    #!/bin/bash
    sudo mount -t nfs4 -o proto=tcp,port=2049 xxx.xxx.x.xxx:/Pictures  /home/Import/Pictures
    sudo mount -t nfs4 -o proto=tcp,port=2049 xxx.xxx.x.xxx:/Music  /home/Import/Music

    The have the launcher run that.

  3. #3
    Just Joined!
    Join Date
    Aug 2008
    Posts
    2
    Sounds good.
    I wrote the script
    Code:
    #!/bin/bash
    sudo mount -t nfs4 -o proto=tcp,port=2049 xxx.xxx.x.xxx:/Pictures  /home/Import/Pictures
    sudo mount -t nfs4 -o proto=tcp,port=2049 xxx.xxx.x.xxx:/Music  /home/Import/Music
    I saved the script as mountnfs.sh in my home directory. I use the launcher as app in terminal. After I clicked in the launcher I got an error "There was an error creating the child process for this terminal".
    I'm 101% sure that is my fault, any help is more than welcome.

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...