Page 17 of 34

Re: SamyGO Extensions [v0.03.5 Beta]

Posted: Sat Sep 18, 2010 8:28 am
by steve-austin
About my problem with HD channel, it's ok with the new version with bugfixes ;)

Re: SamyGO Extensions [v0.03.5 Beta]

Posted: Sun Sep 19, 2010 9:51 am
by flo-ogb
There is a problem with the regex for extracting the NFS shares:

Code: Select all

# S_MOUNTS=$(showmount --no-headers -e $i | cut -d " " -f1)    
S_MOUNTS=$(showmount --no-headers -e $i | sed 's/^\(.*\) *\*/\1/')
It fails to match shares that are restricted by hostname or address properly, causing it to mount the hostname as another share (or at least it creates the dir and fails to mount).

Example:

Code: Select all

flo@taco:~$ showmount --no-headers -e ticonderoga 
/tftpboot/ubuntu_10.10-beta *
/tftpboot/ubuntu_10.04.1-64 *
/tftpboot/ubuntu_10.04.1    *
/media/data/music           *
/media/data/exchange        *
/media/data/diskless/player 192.168.8.3
and running that though sed gives us

Code: Select all

flo@taco:~$ showmount --no-headers -e ticonderoga | sed 's/^\(.*\) *\*/\1/'
/tftpboot/ubuntu_10.10-beta 
/tftpboot/ubuntu_10.04.1-64 
/tftpboot/ubuntu_10.04.1    
/media/data/music           
/media/data/exchange        
/media/data/diskless/player 192.168.8.3
see last line, we need to match for the whitespace i guess or is it possible to export dirs with spaces in them?

Re: SamyGO Extensions [v0.03.5 Beta]

Posted: Sun Sep 19, 2010 10:32 am
by arris69
flo-ogb wrote:There is a problem with the regex for extracting the NFS shares:

Code: Select all

# S_MOUNTS=$(showmount --no-headers -e $i | cut -d " " -f1)    
S_MOUNTS=$(showmount --no-headers -e $i | sed 's/^\(.*\) *\*/\1/')
It fails to match shares that are restricted by hostname or address properly, causing it to mount the hostname as another share (or at least it creates the dir and fails to mount).

Example:

Code: Select all

flo@taco:~$ showmount --no-headers -e ticonderoga 
/tftpboot/ubuntu_10.10-beta *
/tftpboot/ubuntu_10.04.1-64 *
/tftpboot/ubuntu_10.04.1    *
/media/data/music           *
/media/data/exchange        *
/media/data/diskless/player 192.168.8.3
and running that though sed gives us

Code: Select all

flo@taco:~$ showmount --no-headers -e ticonderoga | sed 's/^\(.*\) *\*/\1/'
/tftpboot/ubuntu_10.10-beta 
/tftpboot/ubuntu_10.04.1-64 
/tftpboot/ubuntu_10.04.1    
/media/data/music           
/media/data/exchange        
/media/data/diskless/player 192.168.8.3
see last line, we need to match for the whitespace i guess or is it possible to export dirs with spaces in them?
you can make exports with spaces in name, but i'm not shure you can access them ;-)

you can change the sed command to:

Code: Select all

 sed 's/^\(.*\) .*/\1/'
i hope if you export to multiple hosts isn't separeted by spaces in showmounts output.

thnx
arris

Re: SamyGO Extensions [v0.03.5 Beta]

Posted: Thu Oct 28, 2010 11:25 am
by arris69
@ultramaximum
can you pls. check the output of commands here:

thnx
arris

Re: SamyGO Extensions [v0.03.5 Beta]

Posted: Sun Oct 31, 2010 11:33 am
by arris69
ultramaximum wrote:
arris69 wrote:@ultramaximum
can you pls. check the output of commands here:

thnx
arris
this is the log
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2010.10.31 10:14:40 =~=~=~=~=~=~=~=~=~=~=~=
...
Thank you!
if you repeat the same procedure than what you get if you execute

Code: Select all

smbclient -s /dtv/usb/sda1/SamyGO/etc/samba/smb.conf -U maruxos -L 192.168.1.2
you should get a password prompt -> enter your password and hit enter
is 192.168.1.2 your win machine?

arris

Re: SamyGO Extensions [v0.03.5 Beta]

Posted: Sun Oct 31, 2010 12:17 pm
by arris69
ultramaximum wrote:...

Code: Select all

# smbclient -s /dtv/usb/sda1/SamyGO/etc/samba/smb.conf -U maruxos -L 192.168.1.2creating lame upcase table
creating lame lowcase table
Enter maruxos's password:
session setup failed: SUCCESS - 0
yes, .1.2 is shared folder server
https://bugs.launchpad.net/ubuntu/+sour ... bug/458637 comment #23 ff.
http://social.technet.microsoft.com/For ... 79a5597527

so may remove windows Live Sign-In Assistant (whatever it is, hope you don't need it) helps.

arris