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 Wed 29 Jul 2015, 22:14
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 9 [125 Posts]   Goto page: 1, 2, 3, ..., 7, 8, 9 Next
Author Message
rcrsn51


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

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

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

Important Update: Recent Puppies with 3.x kernels require the YASSM-login option sec=ntlm to access older Samba servers (like Samba-TNG) and some Android devices.

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

YASSM is a tool for accessing shares located on remote servers. These could be shared folders on a Windows machine, an NAS box or a Linux Samba server.

The PET below contains three programs: yassm-login, yassm-search and yassm-select. 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 from /usr/share/applications.

YASSM-login is the core program that mounts the share. It displays the following screen.



Enter the Share and Server. You can use either the server's name or its IP address. Click the Mount button.

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

YASSM-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 (the blue Recycle symbol) to update the mounted shares. To disconnect a share, use the ROX Unmount command. Or you can use YASSM-login's Unmount button to disconnect all the mounted shares at once.

Use the Options field for arguments like sec=ntlm or iocharset=utf8. 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.

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.

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

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

Most users will start the procedure by running YASSM-search. It scans your network for shares and assembles them into a list. You can then select a share and open it with YASSM-login.



If you pick a basic unprotected share, just click Mount. If the share requires authentication, enter the login credentials as usual.

If a server doesn't advertise its shares, it will appear in the list as "hidden".

1. Enter the login credentials and click the Shares button.
2. This will reveal the list of hidden shares. Pick a share and click Mount.

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

YASSM-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.



YASSM-select keeps its data in the file /root/.yassm/yassm-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.

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

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

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

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

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

Note to firewall users: YASSM may have trouble mounting shares if the client machine is running the Puppy firewall. Here are the instructions for adding 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.

--------------------------------
YASSM-2.7.pet
Description  Updated 2015-01-19
pet

 Download 
Filename  YASSM-2.7.pet 
Filesize  8.32 KB 
Downloaded  302 Time(s) 

Last edited by rcrsn51 on Thu 18 Jun 2015, 06:22; edited 127 times in total
Back to top
View user's profile Send private message 
sheldonisaac

Joined: 21 Jun 2009
Posts: 505
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: 10056
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: 505
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: 10056
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: 505
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: 505
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: 10056
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: 505
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: 10056
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: 505
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: 10056
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: 505
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: 10056
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: 505
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 9 [125 Posts]   Goto page: 1, 2, 3, ..., 7, 8, 9 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.0537s ][ Queries: 13 (0.0036s) ][ GZIP on ]