Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 19 Dec 2014, 00:07
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
Yet Another Samba Share Mounter
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 8 [112 Posts]   Goto page: 1, 2, 3, ..., 6, 7, 8 Next
Author Message
rcrsn51


Joined: 05 Sep 2006
Posts: 9356
Location: Stratford, Ontario

PostPosted: Thu 16 Dec 2010, 19:10    Post subject:  Yet Another Samba Share Mounter  

Programs like Pnethood spend much of their time searching a network for shares. But it's YOUR network - you already know where the shares are. So all you really need is a simple tool that logs into a known share.

The PET below contains three programs: samba-login, samba-select and samba-search. They are installed into the folder /usr/local/yassm and have menu entries under Network. If you also want desktop shortcuts, you can drag the programs onto the desktop and use the PNG icon from the above folder.

Samba-login displays the following screen.



If you are logging into a basic Windows XP share, you can leave the Username, Password and Options fields empty. A Vista or Win7 share will probably require authentication with a password. A Linux share on a Samba server may require authentication, depending on its configuration.

Samba-login uses the folder /root/YASSM to hold the mount points. (For convenience, you can drag a shortcut to this folder onto your desktop.) If necessary, press the ROX Rescan button to flag the mounted shares. To disconnect a share, use the ROX Unmount command. Or you can use samba-login's Unmount button to disconnect all the mounted shares at once.

You can set samba-login to automatically connect to any share. Just enter the login data and click the Set checkbox. The settings are kept in the hidden file /root/.config/yassm/samba-login.set.

Use the Options field for arguments like iocharset=utf8 or domain=MYGROUP. Multiple options must be separated by semicolons. To make the geany text editor work with files in a Windows share, you will need the option noserverino.

Update: Recent Puppies with 3.x kernels require the option sec=ntlm to access some older Samba servers, like Samba-TNG.

------------------------------

Note to firewall users: YASSM has trouble mounting shares if the client machine is running the Puppy firewall. The easiest solution is to add an exception to the firewall. In step 5, replace the IP address with the version for your own network.

1. Run the firewall configuration program.
2. Select Custom.
3. Click OK on all the steps until Internet Connection Sharing
4. Click No.
5. Under Trusted Networks, enter: 192.168.2.0/24

Or just run YASSM and use the server's IP address as the server name.

In rare cases, samba-login may need additional help finding a share. Add your LAN's subnet address to the server name. For example, acer?192.168.2.0. Note that the last digit is a zero and the question mark character is used as a separator.

-------------------------------

Note to Win9X owners: When connecting to a Win9X machine, you must enter the share and server names in UPPER case. And you must include the option servern=SERVER_NAME.

--------------------------------

Samba-select uses another approach. It creates a database of your known shares. You can then select a share from a menu and quickly mount it.



Samba-select keeps its data in the file /root/.config/yassm/samba-select.dat. When you click the Edit button, this file is opened in your default text editor. The top lines of the file contain the instructions for adding share information.

--------------------------------

YASSM v2.3 introduces an optional share searching tool called samba-search. It scans your network for shares and assembles them into a list. You can then select a share and open it with samba-login.



If you pick a basic unprotected share, you can mount it with one more mouse-click. If the share requires authentication, you will enter the login credentials as usual.

If a server doesn't advertise its shares, it will appear in the list as "hidden". You then have two choices in samba-login:

1 .Enter the login credentials and share name manually.
2. Enter the credentials and click the Shares button. This will reveal the list of hidden shares.

---------------------------

You may have a server on your network that sometimes goes to sleep, preventing samba-search from finding it. Click the Wake button.

-----------------------------

To auto-mount your shares at bootup, read here.

----------------------------

If your network has multiple subnets, YASSM can find shares there too.

1. Open the hidden folder /root/.config/yassm and start a file named samba-search.subnets.

2. On one line, list the additional subnets you want to scan. For example:
Code:
192.168.3.0 10.1.1.0

3. Run samba-search. Any shares found on other subnets will be listed by their IP address instead of the server name.

To access these shares from the samba-login or samba-select tools, you can also use the "server?subnet" syntax.
YASSM-2.6.5.pet
Description  Updated 2014-09-03
Fixes a potential problem with passwords
pet

 Download 
Filename  YASSM-2.6.5.pet 
Filesize  8.5 KB 
Downloaded  116 Time(s) 
YASSM-2.6.4b.pet
Description  Updated 2014-08-14
New menu icon
pet

 Download 
Filename  YASSM-2.6.4b.pet 
Filesize  8.51 KB 
Downloaded  96 Time(s) 

Last edited by rcrsn51 on Wed 03 Sep 2014, 20:47; edited 116 times in total
Back to top
View user's profile Send private message 
sheldonisaac

Joined: 21 Jun 2009
Posts: 449
Location: Philadelphia, PA

PostPosted: Fri 17 Dec 2010, 14:12    Post subject: Need help on this  

Thanks for this pet.

However, when I tried Samba share selector, the response was

"No connection to ShelSources!"

Info in the .dat is

ShelSources,,,sources,192,168.1.100,workgroup

lameSMBqmount was able to mount and explore it

Of course I'd prefer your way.

Can you help me make it work?

I'm still not skilled, so please excuse.

Thanks,
Sheldon
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9356
Location: Stratford, Ontario

PostPosted: Fri 17 Dec 2010, 14:19    Post subject:  

Can samba-login find the share?
Code:
ShelSources,,,sources,192,168.1.100,workgroup

Instead of the IP address, you should have the server name.
Back to top
View user's profile Send private message 
sheldonisaac

Joined: 21 Jun 2009
Posts: 449
Location: Philadelphia, PA

PostPosted: Fri 17 Dec 2010, 14:47    Post subject:  

rcrsn51 wrote:
Can samba-login find the share?
Code:
ShelSources,,,sources,192,168.1.100,workgroup

Instead of the IP address, you should have the server name.


No luck so far, rcrscn51; and thank you very much for such a fast response.

I have tried various things with samba-login ;

at the moment, it's like this:

Code:

Username is blank
Password is blank
Share is  H-BCP
Server is  SHELDON
Workgroup is  WORKGROUP


Does UPPER vs lower case make any difference to these two programs?

Thanks again
Sheldon
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9356
Location: Stratford, Ontario

PostPosted: Fri 17 Dec 2010, 17:47    Post subject:  

What names does lameSMBxplorer have for the server and the share? In your example above, you have the share name as "sources".

Also, what Puppy version are you using?

Last edited by rcrsn51 on Sun 19 Dec 2010, 14:26; edited 1 time in total
Back to top
View user's profile Send private message 
sheldonisaac

Joined: 21 Jun 2009
Posts: 449
Location: Philadelphia, PA

PostPosted: Sat 18 Dec 2010, 13:31    Post subject:  

rcrsn51 wrote:
What names does lameSMBxplorer have for the server and the share? In your example above, you have the share name as "sources".

Also, what Puppy version are you using? This package does not work in 2.14.


lameSMBxplorer says that IP Address is 192.169.1.1 , Server is SHELDON,
Share Name is SOURCES and H-BCP

I have also been trying clarf's Pnethood 0.66, no success yet.
Some problem with name servers?

I seem to recall that these things worked under Puppy 4.31?

Currently working with 5.11

Thanks,
Sheldon
Back to top
View user's profile Send private message 
sheldonisaac

Joined: 21 Jun 2009
Posts: 449
Location: Philadelphia, PA

PostPosted: Sat 18 Dec 2010, 13:53    Post subject:  

sheldonisaac wrote:

lameSMBxplorer says that IP Address is 192.169.1.1 , Server is SHELDON,
Share Name is SOURCES and H-BCP


Oh, I'm sorry, that's a typo, I guess.

The correct info from lameSMBxplorer was:

192.168.1.100 for SHELDON

Thanks much.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9356
Location: Stratford, Ontario

PostPosted: Sat 18 Dec 2010, 14:20    Post subject:  

What kind of machine is SHELDON?

What does this command return?
Code:
nmblookup sheldon
Back to top
View user's profile Send private message 
sheldonisaac

Joined: 21 Jun 2009
Posts: 449
Location: Philadelphia, PA

PostPosted: Sat 18 Dec 2010, 15:05    Post subject:  

rcrsn51 wrote:
What kind of machine is SHELDON?

What does this command return?
Code:
nmblookup sheldon


Thanks, rcrsn51.

SHELDON (or sheldon?) is an ASUS P5A (motherboard, from approx 1999) which usually boots MS-Windows 98SE from a 160GB HDD connected to a Promise controller (to let the computer see all of the "large" HDD)

The other computer (frugal Puppys 4.31 and 5.11, as well as MS-Windows XP) is an Acer Aspire One, with an Ethernet cable to the Linksys router as well as a wireless adapter.

Since the last messages, I did some stuff, including copying (via /etc/rc.d/rc.local) the following (stored in a file) to /etc/resolv.conf :
Code:

nameserver  192.168.1.1
nameserver  71.242.0.12
nameserver   71.250.0.12


At the moment, nmblookup sheldon results in
Quote:

querying sheldon on 192.168.1.255
192.168.1.100 sheldon<00>

Pnethood 0.66 now seems to work, but samba-login still says
Quote:
No connection to H-BCP!

I got the same response from samba-shares and selecting ShelSources
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9356
Location: Stratford, Ontario

PostPosted: Sat 18 Dec 2010, 17:33    Post subject:  

So nmblookup is correctly finding sheldon's IP address. So let's try to mount the share manually. First make a mount point
Code:
 mkdir /root/mnt

Then mount the share with
Code:
mount-FULL -t cifs //192.168.1.100/H-BCP /root/mnt -o guest

Are there any error messages? If not, have a look in /root/mnt.
Back to top
View user's profile Send private message 
sheldonisaac

Joined: 21 Jun 2009
Posts: 449
Location: Philadelphia, PA

PostPosted: Sat 18 Dec 2010, 19:18    Post subject:  

rcrsn51 wrote:
So nmblookup is correctly finding sheldon's IP address. So let's try to mount the share manually. First make a mount point
Code:
 mkdir /root/mnt

Then mount the share with
Code:
mount-FULL -t cifs //192.168.1.100/H-BCP /root/mnt -o guest

Are there any error messages? If not, have a look in /root/mnt.


Thank you.
The result was:
Quote:
mount error 112 = Host is down
Refer to the mount.cifs manual page (e.g. man mount.cifs)


I'll reboot later this evening into Puppy 4.31 , and re-try that test .
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9356
Location: Stratford, Ontario

PostPosted: Sat 18 Dec 2010, 19:30    Post subject:  

Repeat the above command, but use "smbfs" instead of "cifs".
Code:
mount-FULL -t smbfs //192.168.1.100/H-BCP /root/mnt -o guest
Back to top
View user's profile Send private message 
sheldonisaac

Joined: 21 Jun 2009
Posts: 449
Location: Philadelphia, PA

PostPosted: Sat 18 Dec 2010, 20:28    Post subject: win98 shares from puppy  

rcrsn51 wrote:
Repeat the above command, but use "smbfs" instead of "cifs".
Code:
mount-FULL -t smbfs //192.168.1.100/H-BCP /root/mnt -o guest

In the interim, I'd booted 4.31, and got the same results.

The following was done under 5.11, like the previous attempt with cifs.
Quote:

# ls -lt /root/mnt/
total 0

# mount-FULL -t smbfs //192.168.1.100/SOURCES /root/mnt -o guest
mount: wrong fs type, bad option, bad superblock on //192.168.1.100/SOURCES,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9356
Location: Stratford, Ontario

PostPosted: Sat 18 Dec 2010, 20:29    Post subject:  

[EDIT] I think that this has something to do with the Win98 server. Try:
Code:
mount.cifs //192.168.1.100/H-BCP /root/mnt -o servernetbiosname=SHELDON,username=xxx,password=

(all one line)
Back to top
View user's profile Send private message 
sheldonisaac

Joined: 21 Jun 2009
Posts: 449
Location: Philadelphia, PA

PostPosted: Sat 18 Dec 2010, 21:30    Post subject:  

rcrsn51 wrote:
[EDIT] I think that this has something to do with the Win98 server. Try:
Code:
mount.cifs //192.168.1.100/H-BCP /root/mnt -o servernetbiosname=SHELDON,username=xxx,password=

(all one line)

Thanks for trying help; I appreciate it.

Quote:

mount.cifs //192.168.1.100/H-BCP /root/mnt -o servernetbiosname=SHELDON,username=xxx,password=
mount error 13 = Permission denied
Refer to the mount.cifs manual page (e.g.man mount.cifs)

Oops! It works!?!?

Wonder what happened - maybe changed the sharing on the Win98 computer? rebooting?

Will have to try all this again tomorrow.
Quote:
# mount.cifs //192.168.1.100/SOURCES /root/mnt -o servernetbiosname=SHELDON,username=xxx,password=# df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 516040 32008 484032 7% /
/dev/sda5 12630768 5027344 7603424 40% /initrd/mnt/dev_save
/dev/loop1 516040 32008 484032 7% /initrd/pup_rw
tmpfs 129584 128716 868 100% /initrd/mnt/tmpfs
/dev/loop0 128640 128640 0 100% /initrd/pup_ro2
/dev/loop4 17792 17792 0 100% /initrd/pup_ro4
unionfs 516040 32008 484032 7% /
tmpfs 255768 88 255680 1% /tmp
shmfs 185472 0 185472 0% /dev/shm
//192.168.1.100/SOURCES
19862528 6597120 13265408 34% /root/mnt
# mount.cifs //192.168.1.100/H-BCP /root/mnt -o servernetbiosname=SHELDON,username=xxx,password=
# df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 516040 32008 484032 7% /
/dev/sda5 12630768 5027344 7603424 40% /initrd/mnt/dev_save
/dev/loop1 516040 32008 484032 7% /initrd/pup_rw
tmpfs 129584 128716 868 100% /initrd/mnt/tmpfs
/dev/loop0 128640 128640 0 100% /initrd/pup_ro2
/dev/loop4 17792 17792 0 100% /initrd/pup_ro4
unionfs 516040 32008 484032 7% /
tmpfs 255768 88 255680 1% /tmp
shmfs 185472 0 185472 0% /dev/shm
//192.168.1.100/SOURCES
6982528 3528320 3454208 51% /root/mnt
//192.168.1.100/H-BCP
6982528 3528320 3454208 51% /root/mnt
#

Last edited by sheldonisaac on Sun 19 Dec 2010, 21:17; edited 2 times in total
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 8 [112 Posts]   Goto page: 1, 2, 3, ..., 6, 7, 8 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1120s ][ Queries: 13 (0.0056s) ][ GZIP on ]