Home Forums Gamescan Chat42 About
* Login   * Register * FAQ    * Search
It is currently Sat 10-04-2025 3:30PM

All times are UTC - 6 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: firefox extension: file://\\ -> smb://
PostPosted: Wed 01-12-2005 10:20PM 
Offline
Colonel

Joined: Tue 03-18-2003 6:44PM
Posts: 747

Source: Off Campus
i got productive today and started making an extension for firefox that'll let you right click a fucked up file://\\whatever\file\youwant.blah url and choose "smbfix" to open that link in smb:// format. but i dont live on campus and don't have access to seek, so i dont know if it works properly or not. or if file://\\ is really the prefix that seek puts on the links. ive tested it with file://\\192.168.0.4\shareddocs\ and a few other examples locally, but thats all im able to do from here.

so,
does it work?
is it worth using?

http://web.umr.edu/~bjk4hf/smbunfuck/smbunfuck.xpi

(you'll probably have to either add that site as "trusted" or just save link as and open it in FF manually)

if this one works but doesnt prove so useful, i could probably also make it open the file:\\// link as smb:// in konqueror/nautilus/etc if you think that would be better


Top
 Profile E-mail  
    
 Post subject:
PostPosted: Wed 01-12-2005 11:15PM 
Offline
Colonel

Joined: Fri 12-06-2002 5:48PM
Posts: 727

Source: TJ South
doesn't work for me. I just get directed to a 404 page with Calvin & Hobbes.


Top
 Profile E-mail  
    
 Post subject:
PostPosted: Wed 01-12-2005 11:42PM 
Offline
Captain
User avatar

Joined: Sun 08-17-2003 8:06PM
Posts: 144
Location: 127.0.0.1

Source: TJ North
in linux, i see that the links are of the form
http://131.151.191.95:8080/\\131.151.xxx.xxx\path\to\file
rather than
file://\\131.151.xxx.xxx\path\to\file

_________________
It is impossible to make anything foolproof because fools are so ingenious.


Top
 Profile E-mail  
    
 Post subject:
PostPosted: Wed 01-12-2005 11:50PM 
Offline
Colonel
User avatar

Joined: Sun 09-12-2004 3:04PM
Posts: 572

Source: TJ North
It doesn't work, but I never use seek so its not that big of a deal.


Top
 Profile  
    
 Post subject:
PostPosted: Wed 01-12-2005 11:54PM 
Offline
Captain
User avatar

Joined: Sun 08-17-2003 8:06PM
Posts: 144
Location: 127.0.0.1

Source: TJ North
for the linux/mac community, it would be much easier if there was just an option to use smb-style links, similar to what's already there for the dash42-style links...

just my $.02

_________________
It is impossible to make anything foolproof because fools are so ingenious.


Top
 Profile E-mail  
    
 Post subject:
PostPosted: Thu 01-13-2005 2:25AM 
Offline
Colonel

Joined: Tue 03-18-2003 6:44PM
Posts: 747

Source: Off Campus
elyk wrote:
in linux, i see that the links are of the form
http://131.151.191.95:8080/\\131.151.xxx.xxx\path\to\file
rather than
file://\\131.151.xxx.xxx\path\to\file
made some minor changes to the regexp, try now. i think ive got the formatting right, lemme know if not. ive got it correcting http://131.151.191.95:8080/\\192.168.0.104\SharedDocs\desktop.ini to smb://192.168.0.104/SharedDocs/desktop.ini now.

you can just install the xpi again and restart ff and itll use the new one

Quote:
for the linux/mac community, it would be much easier if there was just an option to use smb-style links, similar to what's already there for the dash42-style links...
i agree, but i dont have any control over that. this is just a sloppy workaround until that (hopefully) gets implemented. and i dont know what you mean with the dash42-style links... i'm off campus and dont have windows.


Top
 Profile E-mail  
    
 Post subject:
PostPosted: Thu 01-13-2005 9:10AM 
Offline
Lieutenant
User avatar

Joined: Mon 07-26-2004 10:05PM
Posts: 89
Location: 765 TJ South

Source: TJ South
If one could be made for konqueror, that would seem much more useful. I much prefer using it to firefox for downloading files, especially of the size on seek.
The format of
http://131.151.191.95:8080/\\192.168.0.104\SharedDocs\desktop.ini to smb://192.168.0.104/SharedDocs/desktop.ini
is what would be needed for konqueror.
Thanks.

_________________
"I always find it hard to believe that there are people out there that think every problem can be solved without violence." --moo
I prefer a less bleak outlook on the world!

The vinyl's still kickin' on my turntable tonight!
\\tuxbox


Top
 Profile E-mail  
    
 Post subject:
PostPosted: Thu 01-13-2005 2:22PM 
Offline
Colonel

Joined: Tue 03-18-2003 6:44PM
Posts: 747

Source: Off Campus
the documentation for creating kde plugins sucks... ill look into it though


Top
 Profile E-mail  
    
 Post subject: autofs script
PostPosted: Thu 01-13-2005 6:40PM 
Offline
Sergeant

Joined: Sat 11-08-2003 11:04PM
Posts: 23

Source: Beta Sigma Psi
I just use autofs to allow for access to shares automagically via /var/autofs/smbbrowse/SERVERNAME

See http://greenfly.org/tips/autofs.html for setup info, but don't use his script because it doesn't quite work (seems to time out trying to send a command to port 445?).

Code:
auto.smbbrowse:
#!/bin/sh

OPTIONS="-fstype=smbfs,port=139,password=,user=guest    "
SERVER=$1

echo -n "$OPTIONS"

IFS="|"
( smbclient -g -d 0 -N -U guest -p 139 -L $SERVER ) | \
  while read type share comment;
  do
    if [ $type = "Disk" ]
    then
      share=`echo $share | sed 's/[^[:alnum:]]/\\\\&/g'`
      echo -n "/${share} ://${SERVER}/${share} "
    fi
  done


Top
 Profile  
    
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group