The time now is Sun 19 May 2013, 10:02
All times are UTC - 4 |
|
Page 11 of 20 [288 Posts] |
Goto page: Previous 1, 2, 3, ..., 9, 10, 11, 12, 13, ..., 18, 19, 20 Next |
| Author |
Message |
himajin

Joined: 08 Jul 2008 Posts: 54 Location: JAPAN
|
Posted: Tue 22 Jul 2008, 14:21 Post subject:
|
|
Hi, Hairy Will,
I use Pnethood with Japanese Environment (Windows too).
it is not handle Japanese file name.
So,I did small modify.
/usr/local/apps/pnethood/func_mount
Line 28
mount-FULL -t cifs "//${IP}/${SHARE}" "${MOUNTPOINT}" -o "${SERVERNETBIOSNAME}username=${USERNAME},password=${PASSWORD},iocharset=utf8" 2>>${TMP}log
It is necessary for Japanese Environment.
| Description |
|
| Filesize |
22.23 KB |
| Viewed |
1136 Time(s) |

|
|
|
Back to top
|
|
 |
HairyWill

Joined: 26 May 2006 Posts: 2949 Location: Southampton, UK
|
Posted: Tue 22 Jul 2008, 18:25 Post subject:
|
|
himajin
Thanks for that, adding that option causes no problems for my english network.
SHS,
thanks for the log
The two things that immediately jump out at me are
your shares don't have passwords
the share names contain underscores
I used to use underscores to replace spaces in pnethood 0.5 maybe I have some residual code causing a problem. None of my shares are passwordless. I would hope that neither of these is the cause of the problems but there may be a bug in the code.
Your attempts to mount chepenoy and chagatai shares using smb will fail. I think that disciple has demonstrated that smbmount using an IP will not work in win98. Notwithstanding that I am encouraging removal of smb support, maybe I should force the smbmount command to mount via machine name rather than IP.
As to the scan failing to pick up the servers when you have the cifs box ticked, that is plain weird. I presume that cranking up the timeout doesn't help?
_________________ Will
contribute: community website, screenshots, puplets, wiki, rss
|
|
Back to top
|
|
 |
Sit Heel Speak

Joined: 30 Mar 2006 Posts: 2595 Location: downwind
|
Posted: Tue 22 Jul 2008, 23:43 Post subject:
|
|
| HairyWill wrote: | The two things that immediately jump out at me are
your shares don't have passwords...(and) the share names contain underscores... | To review:
My shares on the XP machine do not have passwords. No underscores, either. I don't usually share that machine.
All my shares on the Win98xx machines do have passwords as well as underscores in the sharenames.
I have no idea why the passwords show up in the log as a single question mark. Could this be a clue? There's nothing special about the passwords, they're all just a series of lowercase letters.
| HairyWill wrote: | | Your attempts to mount chepenoy and chagatai shares using smb will fail. | True; I could not mount them using the smbmount command given above by rcrsn51.
However, the mount-FULL cifs line, as you show it above, _does_ mount all three of my Win machines when run from an rxvt command line, running any Dingo from 4-alpha-4 through 4.1-alpha-4--except for 4.00-k2.6.21.7 on xena since that Dingo cannot load xena's nic driver.
ping and ftp work fine, between any two machines, either way.
mount-FULL does _not_ mount the Win98xx shares when I attempt to run the lines at bootup in rc.local.
LinNeighborhood, as brought over by PETGet, works flawlessly on every Dingo, both Puppy machines.
PNethood 0.5 works reliably the first time I run it from 4-alpha-4 on either Puppy machine. Newer PNethood's don't. PNethood 0.5 and newer do not work from 4.00-k2.6.21.7 on.
| HairyWill wrote: | | As to the scan failing to pick up the servers when you have the cifs box ticked, that is plain weird. I presume that cranking up the timeout doesn't help? | Correct. Up to 30 seconds, no see-gar.
|
|
Back to top
|
|
 |
Sit Heel Speak

Joined: 30 Mar 2006 Posts: 2595 Location: downwind
|
Posted: Wed 23 Jul 2008, 00:36 Post subject:
|
|
By putting the relevant mount-FULL cifs commands into a bash script and making it executeable, I can mount all my shares at once. And unmount them, using another one.
|
|
Back to top
|
|
 |
HairyWill

Joined: 26 May 2006 Posts: 2949 Location: Southampton, UK
|
Posted: Wed 23 Jul 2008, 02:41 Post subject:
|
|
| Sit Heel Speak wrote: | | By putting the relevant mount-FULL cifs commands into a bash script and making it executeable, I can mount all my shares at once. And unmount them, using another one. | excellent
I've just checked the first few lines of /usr/local/apps/pnethhod/func_mount | Code: | #!/bin/sh
MACHINE=$1
IP=$2
SHARE=$3
MOUNTPOINT=$4
USERNAME=$5
PASSWORD=$6
USECIFS=$7
echo "func mount called: with
MACHINE=$1
IP=$2
SHARE=$3
MOUNTPOINT=$4
USERNAME=$5
PASSWORD=?
USECIFS=$7" >> ${TMP}log | The question mark for the password is blank because I didn't want to write passwords to the log, this may be masking the fact that the password is missing. The blank username is plain weird. I presume you have actually typed one in. Have a look in /tmp/pnethood/gui, unfortunately there are no linebreaks in it. You should see something similar to these amongst the other stuff | Code: | <entry> <variable>USER0</variable><default>guest</default> </entry> </hbox> <hbox> <text><label>password</label></text>
<entry invisible_char="*" visibility="false"> <variable>PASSWORD0</variable><default>guest</default> </entry>
...
<action>/usr/local/apps/pnethood/func_mount "HPC7F44D" "192.168.1.101" "MEMORY_CARD"
"/mnt/network/HPC7F44D/MEMORY_CARD" "$USER0" "$PASSWORD0" "${USECIFS}"</action> |
As to running the mount in rc.local
Because the network setup is backgrounded you cannot be certain that networking will be up when rc.local runs.
_________________ Will
contribute: community website, screenshots, puplets, wiki, rss
|
|
Back to top
|
|
 |
Sit Heel Speak

Joined: 30 Mar 2006 Posts: 2595 Location: downwind
|
Posted: Wed 23 Jul 2008, 13:48 Post subject:
|
|
| HairyWill wrote: | | The blank username is plain weird. I presume you have actually typed one in. | Ah, sure--the session has a username; the share does not. I was not typing-in the session username. But, doing so makes no change to the negative result, even though the username does show up in the log file. I'll PM you /tmp/pnethood/gui.
|
|
Back to top
|
|
 |
HairyWill

Joined: 26 May 2006 Posts: 2949 Location: Southampton, UK
|
Posted: Wed 23 Jul 2008, 14:33 Post subject:
|
|
So now it looks like I'm building the mount command incorrectly in func_mount. Please could you post the exact mount command that works. I think I have been using it with empty values for the username and password options, maybe they should not be there at all.
I don't understand what you mean by session username
_________________ Will
contribute: community website, screenshots, puplets, wiki, rss
|
|
Back to top
|
|
 |
Sit Heel Speak

Joined: 30 Mar 2006 Posts: 2595 Location: downwind
|
Posted: Wed 23 Jul 2008, 17:19 Post subject:
|
|
When I say "the session has a username" I mean the username you type in, along with a session password, to start the Win98 session:
http://i37.tinypic.com/zl41vd.jpg
These are not my real IP's and password but you get the idea. Khublai, the XP machine, has no password on its shares, and no username either. Chepenoy (named after Chepe Noyon, also spelled "Jebe" if you're wondering) is Win98SE. It works the same on Chagatai, the Win98-1 machine (Subotai, my T21 Thinkpad, died last Saturday).
I use an existing ext3 partition, /mnt/sda4, as the share mountpoint but it could just as easily be /root/mnt/CHEPENOY and /root/mnt/KHUBLAI like LinNeighborhood does it. You would need to first mkdir /root/mnt of course.
| Code: | | mount-FULL -t cifs "//192.168.1.100/CHEPENOY_C" "/mnt/sda4/CHEPENOY_C" -o "servernetbiosname=CHEPENOY,username=,password=sesame, iocharset=utf8" |
| Code: | | mount-FULL -t cifs "//192.168.1.101/C" "/mnt/sda4/KHUBLAI_C" -o "servernetbiosname=KHUBLAI,username=,password=, iocharset=utf8" |
It also works just fine without the
part.
|
|
Back to top
|
|
 |
HairyWill

Joined: 26 May 2006 Posts: 2949 Location: Southampton, UK
|
Posted: Thu 24 Jul 2008, 08:10 Post subject:
|
|
Thanks for that. I'm baffled, pnethood-0.64 and 0.65 both include the netbiosname option and the mount command generated should match the one you posted.
You could try adding the following into /usr/local/apps/pnethood/func_mount at line 28 before the actual mount is performed. | Code: | gxmessage "mount-FULL -t cifs //${IP}/${SHARE} ${MOUNTPOINT}
-o ${SERVERNETBIOSNAME}username=${USERNAME},password=${PASSWORD}" | This should allow you to verify the mount command being used.
_________________ Will
contribute: community website, screenshots, puplets, wiki, rss
|
|
Back to top
|
|
 |
menno
Joined: 03 Nov 2005 Posts: 78 Location: Bedum (Nederland)
|
Posted: Thu 21 Aug 2008, 17:44 Post subject:
smbmount |
|
Well I saw that You use in smbmount the IP number .
As far I know that doesn't work it should be the machinename .
As far I understand the samba manuals it say the de "service" should be been writen in U(niversal)N(ame)C(ode) text .
For some unknow reasen the cifs doesn't if frugel installetion .
It gives error on the unionfs system .
|
|
Back to top
|
|
 |
Béèm

Joined: 21 Nov 2006 Posts: 11782 Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
|
Posted: Thu 21 Aug 2008, 19:24 Post subject:
Re: smbmount |
|
| menno wrote: | Well I saw that You use in smbmount the IP number .
As far I know that doesn't work it should be the machinename .
As far I understand the samba manuals it say the de "service" should be been writen in U(niversal)N(ame)C(ode) text .
For some unknow reasen the cifs doesn't if frugel installetion .
It gives error on the unionfs system . | I give in a rxvt pnethood 10.0.0.10 and that works perfectly well.
_________________ Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
|
|
Back to top
|
|
 |
HairyWill

Joined: 26 May 2006 Posts: 2949 Location: Southampton, UK
|
Posted: Thu 21 Aug 2008, 21:01 Post subject:
Re: smbmount |
|
| menno wrote: | Well I saw that You use in smbmount the IP number .
As far I know that doesn't work it should be the machinename .
As far I understand the samba manuals it say the de "service" should be been writen in U(niversal)N(ame)C(ode) text .
For some unknow reasen the cifs doesn't if frugel installetion .
It gives error on the unionfs system . |
thanks for the feedback, I think I used the IP because it made it easier to deal with existing mounts if you do a rescan and smbmount via IP works for me. If it causes problems for others then I should rethink this.
Failure to load the cifs module might be cured by setting the kernel boot flag to use aufs instead of unionfs. I presume you are using a puppy that includes cifs such as 4.00.
_________________ Will
contribute: community website, screenshots, puplets, wiki, rss
|
|
Back to top
|
|
 |
menno
Joined: 03 Nov 2005 Posts: 78 Location: Bedum (Nederland)
|
Posted: Fri 22 Aug 2008, 16:17 Post subject:
|
|
HairyWill :
Failure to load the cifs module might be cured by setting the kernel boot flag to use aufs instead of unionfs. I presume you are using a puppy that includes cifs such as 4.00.
In my hardisk instalation of 4.0 it has unionfs and cifs loaded .
If I start from a CD , i have know idea how to set the boot parameters it to unionfs . (maybe it default ?)
Béèm :
I give in a rxvt pnethood 10.0.0.10 and that works perfectly well.
I tryed it . It finds the otherside but cann't mount .
It very hard why something works on machine A and doesn't work on machine B .
|
|
Back to top
|
|
 |
Béèm

Joined: 21 Nov 2006 Posts: 11782 Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
|
Posted: Fri 22 Aug 2008, 16:47 Post subject:
|
|
| menno wrote: | Béèm :
I give in a rxvt pnethood 10.0.0.10 and that works perfectly well.
I tried it . It finds the other side but can't mount . | Are you sure the other side is correctly defined as a shared resource?
Which Windows?
If XP Pro, I have no experience and it can be more tricky.
_________________ Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
|
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6179 Location: Auckland, New Zealand
|
Posted: Sat 23 Aug 2008, 20:46 Post subject:
|
|
| Quote: | Well I saw that You use in smbmount the IP number .
As far I know that doesn't work it should be the machinename . |
It generally seems to work, but not with Win95/98 servers.
| Quote: | | thanks for the feedback, I think I used the IP because it made it easier to deal with existing mounts if you do a rescan and smbmount via IP works for me. If it causes problems for others then I should rethink this. |
I had assumed you weren't supporting smbmount anymore HW, as nothing has happened since I reported this:
| Quote: | It works great for me - as long as I use cifs obviously. I think I'm using the standard Dingo for the client.
If I don't use cifs, it fails to mount Win98 shares, and if I mount non-Win98 shares with spaces, it still has the old problem, where if I open pnethood with a share already mounted, it has a tab for the machine, but with an underscore instead of the space etc... as I described before. |
So there are currently two problems with pnethood using smbmount:
- spaces in shares, and
- mounting with IP instead of hostname.
_________________ DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
|
|
Back to top
|
|
 |
|
|
Page 11 of 20 [288 Posts] |
Goto page: Previous 1, 2, 3, ..., 9, 10, 11, 12, 13, ..., 18, 19, 20 Next |
|
|
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
|