Page 12 of 12 FirstFirst ... 2101112
Results 111 to 118 of 118

Thread: Map Windows Shares Permanently with GVFS

  1. #111
    Join Date
    Apr 2005
    Location
    Terborg, The Netherlands
    Beans
    104
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Map Windows Shares Permanently with GVFS

    Quote Originally Posted by pwebster25 View Post
    What's the best way to add a 30 second pause to your script?
    I'm fairly new to scripting but am happy to learn. I've done a couple bash scripts for server backups.

    Thanks
    Paul
    This one I do know just add sleep 30 to your script, like so:

    Code:
    #!/bin/sh
    sleep 30
    The only person who got all his work done by Friday, was Robinson Crusoe

  2. #112
    Join Date
    Dec 2009
    Beans
    6,771

    Re: Map Windows Shares Permanently with GVFS

    Quote Originally Posted by Hieronymus View Post
    Hi guys,

    I'm giving this a try. Works like a charm when I manually run the script after login. The issue I have at the moment is that the script is run before the wifi link is up and running.

    Is there any easy way to have the script run automatically AFTER the network is up and running?
    I think that the script that Boondoklife wrote above is capable of doing that or you can just use gigolo: http://ubuntuforums.org/showpost.php...16&postcount=3

  3. #113
    Join Date
    Apr 2005
    Location
    Terborg, The Netherlands
    Beans
    104
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Map Windows Shares Permanently with GVFS

    Quote Originally Posted by Boondoklife View Post
    Hey just wanted to post up a script I put together that mounts your drives on login and it runs in the background to ensure the connection stays active.

    Samba mounter
    Startup Item

    I run into times where transferring many files can cause a connection drop and then I am hosed till it gets remounted. This takes care of that issue.

    NOTE:
    Please make sure you are running this as a startup application.
    If you are having issues please change the DEBUG=0 line to DEBUG=1 and post the output of the log file from "/tmp/gnome-samba-mount-startup.log"
    Boondok,

    Could you post the script again? The provided link is dead...

    Thanks in advance,

    H
    The only person who got all his work done by Friday, was Robinson Crusoe

  4. #114
    Join Date
    May 2009
    Location
    Jah's Pocket
    Beans
    733
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Map Windows Shares Permanently with GVFS

    Updated the script for yas:

    CHANGES:
    1) Added a wait variable, if you need the script to wait for a connection or what ever just replace the 0 with a higher number. This will let the script wait on its first run for that many seconds before continuing.

    2) No need to change the username. Now the script will pull the current username and use it as part of the drive mapping. This should be more effective in a campus/domain environment.

    3) I also added a Link to a startup item you can use to make the drive mappings occur for all users.

    Let me know how it works out for yas

    LINK TO MY MAIN POST
    Last edited by Boondoklife; November 15th, 2010 at 10:31 PM.
    MyBlog
    Sledgehammer engineering, if it doesn't work, hit it damn hard.

  5. #115
    Join Date
    May 2009
    Location
    Ottawa, CANADA
    Beans
    8
    Distro
    Kubuntu 11.04 Natty Narwhal

    Re: Map Windows Shares Permanently with GVFS

    running the script in a terminal gives

    gnome-samba-mount-startup: 12: function: not found

    that would be 'domount'

    here's the log
    Ran as: cmallam
    Polling shares.
    Mounting 192.168.1.119/Volume_1
    Mounting 192.168.1.139/Volume_1
    Mounting 192.168.1.139/Volume_2
    Mounting 192.168.1.139/Volume_3
    Mounting 192.168.1.139/Volume_4
    Polling shares.
    Mounting 192.168.1.119/Volume_1
    Mounting 192.168.1.139/Volume_1
    Mounting 192.168.1.139/Volume_2
    Mounting 192.168.1.139/Volume_3
    Mounting 192.168.1.139/Volume_4
    Polling shares.

    There is a file in tmp called smbloginmounts and it is a zero byte file. Looking at the script, i am assuming that the NAS would be mounted under my home as SHARE or something like that. Clicking on 'Computer' on the desktop opens to reveal only the local harddrives and the DVD Drive.

    Do you have any ideas?

  6. #116
    Join Date
    May 2009
    Location
    Jah's Pocket
    Beans
    733
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Map Windows Shares Permanently with GVFS

    It actually shows up as network folders in computer. Can you attach your script.
    MyBlog
    Sledgehammer engineering, if it doesn't work, hit it damn hard.

  7. #117
    Join Date
    May 2009
    Location
    Ottawa, CANADA
    Beans
    8
    Distro
    Kubuntu 11.04 Natty Narwhal

    Re: Map Windows Shares Permanently with GVFS

    i think i found the problem. i went back to the first post in this thread, and followed thru the steps. turns out gvfs was not installed. once i installed that, everything works fine.

    Thanks for the help!

    Hmmm, this still doesn't solve my original problem, which is that when i open Geegie (GQView) to find and edit pictures, it still doesn't show any of these remote drives. Guess i have to play with fstab again.
    Last edited by cmallam; November 30th, 2010 at 06:27 PM.

  8. #118
    Join Date
    May 2009
    Location
    Jah's Pocket
    Beans
    733
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Map Windows Shares Permanently with GVFS

    Quote Originally Posted by cmallam View Post
    i think i found the problem. i went back to the first post in this thread, and followed thru the steps. turns out gvfs was not installed. once i installed that, everything works fine.

    Thanks for the help!
    Thought I had that listed in the script, thanks for catching that. I have updated it with the requirement of gvfs.
    MyBlog
    Sledgehammer engineering, if it doesn't work, hit it damn hard.

Page 12 of 12 FirstFirst ... 2101112

Tags for this Thread

Bookmarks

Posting Permissions

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