Active Topics

 


Reply
Thread Tools
Karel Jansens's Avatar
Posts: 3,220 | Thanked: 326 times | Joined on Oct 2005 @ "Almost there!" (Monte Christo, Count of)
#21
Originally Posted by fpp
The IP address used in the script is that of the Windows PC offering the network share.
If the address of that PC is fixed then you can use the script even if the tablet's is obtained by DHCP.
If the PC also has a dynamic address then you'll have to manually issue the mount command line using the current address.
The thing is, we're not using full Samba here, so there is no Netbios name resolution that could abstract the IP address to a workgroup/domain name.
OK, thanks. I'll probably switch away from DHCP then, once I've got everything set up in the new home.
 
Hedgecore's Avatar
Posts: 1,361 | Thanked: 115 times | Joined on Oct 2005 @ Toronto, Ontario, Canada
#22
Not too sure about the other bits but I've never gotten it to run with the Load/Run app.

My script is called mount_floorPC.sh and I've dumped it in /root. (Bad, I know)

The commandline for the Load/Run app is '/root/mount_floorPC.sh'. I've tried 'sh /root/mount_floorPC.sh' as well but no dice.

So far as setting the path (Dunno if this'll work on the 770, Redhat accepts this tho):

PATH=/mydir1:/mydir2:/mydir3; export PATH;
 
Posts: 34 | Thanked: 2 times | Joined on Mar 2006
#23
Whats the process to dumping the script into /root

When I try to do this I don't have permission even though I have gainroot access.
Could you provide a detailed method to do so, please excuse my ignorance of linux. I have been cruising the net/ forums / newgroups etc on ways to do this. But unfortunetly I'm resorting to gravelling for the answer.

TIA
 
Hedgecore's Avatar
Posts: 1,361 | Thanked: 115 times | Joined on Oct 2005 @ Toronto, Ontario, Canada
#24
After you've run 'sudo gainroot' run 'su -' which'll put you in actual root mode (so far as I know). Try it then. (That'll load root's environment variables, etc)
 
fpp's Avatar
Posts: 2,853 | Thanked: 968 times | Joined on Nov 2005
#25
Originally Posted by Karel Jansens
OK, thanks. I'll probably switch away from DHCP then, once I've got everything set up in the new home.
It doesn't have to be all or nothing. You can very well use a fixed address on your main PC (outside the router's DHCP range) and keep DHCP for the rest (tablet, visiting laptops etc.). That's what I do at home.
 
Karel Jansens's Avatar
Posts: 3,220 | Thanked: 326 times | Joined on Oct 2005 @ "Almost there!" (Monte Christo, Count of)
#26
Originally Posted by fpp
It doesn't have to be all or nothing. You can very well use a fixed address on your main PC (outside the router's DHCP range) and keep DHCP for the rest (tablet, visiting laptops etc.). That's what I do at home.
Yes, I got that; your explanation was very clear. However, the network structure we have in mind doesn't so much have one dedicated server, than several server-like workstations. So going all fixed addresses might be better.

Thanks again.
 
Posts: 264 | Thanked: 28 times | Joined on May 2006
#27
Here's how I did it Samba thread post 43

I think the trick is to put the scripts to mount and unmount in a directory that's in both root and user's PATH. I use /usr/bin
 
johsua's Avatar
Posts: 449 | Thanked: 18 times | Joined on Apr 2006 @ Eureka, CA
#28
Has anyone figured out mounting another drive besides C? I get a permission denied error when I try to mount a drive - even though it is shared and can be used by other computers.
 
Posts: 123 | Thanked: 6 times | Joined on Dec 2005 @ Los Angeles
#29
I've done various shares using smbbrowser.
https://garage.maemo.org/projects/smbbrowser/
The program is unstable, but I was able to create the mount and it still worked even after the program crashed. This given I was using a local admin and password for the login. I'm not sure if you can get it to connect using a blank password.
 
Reply


 
Forum Jump


All times are GMT. The time now is 22:41.