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 24 Nov 2017, 11:01
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 12 [175 Posts]   Goto page: 1, 2, 3, ..., 10, 11, 12 Next
Author Message
rcrsn51


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

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

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

Important Updates:

For Puppies with very new (k4.13.x) kernels, read here about a new option. It appears that you must now explicitly state the SMB version of the target server.

For example, "vers=1.0" or "vers=2.1". Read here for more info about Windows servers.

Puppies with 3.x and newer kernels require the YASSM mount option sec=ntlm to access older Samba servers (like Samba-TNG) and some Android devices. If you are running a Samba-TNG server on your network, this is a good reason for upgrading to Samba4 Basic.

Scanning for shares may or may not require authentication. If you have trouble, even if you provide authentication, do the following:

On the CLIENT machine, open /etc/samba/smb.conf. In the [global] section, add these lines:
Code:
client use spnego = no  #with Windows servers
client ntlmv2 auth = no  #with old Linux servers

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

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.

Look for it in the Network/Internet menu as "YASSM Samba share mounter".

Note: If you have any existing setup files in /root/.yassm, you must delete them first.

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

Before starting YASSM, you need to know the IP addresses of the Samba server machines on your network. You can find them by running PeasyPort and scanning for ports 139 or 445. You should also know the names of the shares on those servers, but you can look them up if necessary.

Run YASSM. Users of the old YASSM will recognize the first screen as yassm-select. Select the "Blank" share and click Setup.

The next screen is the old yassm-login. Fill in the details for a target Samba server.

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

The server MUST be identified by its IP address.

If you need to identify the shares on the server, click Shares.

Click Test to verify the connection. Your file manager will open with a window/tab for the share. The mount points are in your home directory in the folder YASSM.

Click Set. Give the share a name that uniquely identifies it on the network, like "Freds-Computer-Music". This creates a setup file for the share in the hidden folder /root/.yassm.

Click Rescan. Select your new share. Click Mount.

Repeat the procedure for other shares on your network.

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

Use the Options field for arguments like sec=ntlm or iocharset=utf8. Multiple options must be separated by commas. 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.

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

YASSM works strictly with IP addresses, not server names. So what happens if a server on your network changes its IP address? On the first YASSM screen, run IP Update. This scans your network and updates the YASSM setup files with the new addresses.

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

For your convenience, you can drag a shortcut to /root/YASSM 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's Unmount button to disconnect all the mounted shares at once.

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

Note to firewall users: YASSM may have trouble mounting shares if the client machine is running the Puppy firewall. Read here.

--------------------------------
YASSM-4.1.pet
Description  Updated 2017-08-26
Improvements in scanning slow servers
pet

 Download 
Filename  YASSM-4.1.pet 
Filesize  6.78 KB 
Downloaded  95 Time(s) 
screenie.png
 Description   
 Filesize   19.59 KB
 Viewed   650 Time(s)

screenie.png


Last edited by rcrsn51 on Thu 09 Nov 2017, 17:50; edited 179 times in total
Back to top
View user's profile Send private message 
sheldonisaac

Joined: 21 Jun 2009
Posts: 694
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: 11729
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: 694
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: 11729
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: 694
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: 694
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: 11729
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: 694
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: 11729
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: 694
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: 11729
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: 694
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: 11729
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: 694
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 12 [175 Posts]   Goto page: 1, 2, 3, ..., 10, 11, 12 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.0679s ][ Queries: 13 (0.0060s) ][ GZIP on ]