Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: [SOLVED] How to run a command at login

  1. #11
    Join Date
    Jan 2007
    Location
    $here ? $here : $there
    Beans
    3,717
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: [SOLVED] How to run a command at login

    Glad to help.
    Don't try to make something "fast" until you are able to quantify "slow".

  2. #12
    Join Date
    Oct 2007
    Beans
    145

    Re: [SOLVED] How to run a command at login

    So I have a script at ~/.mounts that looks like this

    Code:
    #!/bin/bash
    mount /media/music
    I call it mounts as I plan to later add more.

    which is supposed to mount a share that I have added into my fstab but for some reason doesn't auto mount....

    the fstab looks like:
    Code:
    sshfs#<user name>@<fqdn>:/var/lib/mythtv/music  /media/music   fuse   port=1234,user   0 0
    The only thing I can think is that this isn't mounting because I don't have internet access until after login and after nm-applet links up the wifi. However when I was running this share over CIFS it would mount automatically on login. But this SSHFS line doesn't do that... And for some reason when I put that script in my profiles area it doesn't work either... But if I run it in a terminal poof it mounts the drive right up...

Page 2 of 2 FirstFirst 12

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
  •