You are not logged in.

#151 2010-10-02 23:41:56

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,552
Website

Re: quickserve - easy ad-hoc file sharing

I've added options to require client certificates for further security.

The following will get you started: python-xynehttpserver

Related discussion might show up here: https://bbs.archlinux.org/viewtopic.php … 63#p834963


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#152 2010-10-03 14:56:34

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: quickserve - easy ad-hoc file sharing

http://www.xyne.archlinux.ca/projects/q … uickbrowse

alias quickbrowse="curl -G -d text=plain"
Usage: quickbrowser <URI>

You need to drop the 'r' from 'quickbrowser'.

Offline

#153 2010-10-03 15:09:03

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,552
Website

Re: quickserve - easy ad-hoc file sharing

Done, thanks.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#154 2010-10-05 16:22:59

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: quickserve - easy ad-hoc file sharing

I get

File "/usr/bin/quickserve", line 19, in <module>
    from XyneHTTPServer import ThreadedHTTPServer, BaseHTTPRequestHandler
ImportError: No module named XyneHTTPServer

This must be due to the recent python updates in [testing].

Offline

#155 2010-10-05 17:09:55

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,552
Website

Re: quickserve - easy ad-hoc file sharing

Download the PKGBUILD for python-xynehttpserver and rebuild it against python in testing. I'll update it when the new package is moved.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#156 2010-10-05 20:35:31

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: quickserve - easy ad-hoc file sharing

Ok, I took the PKGBUILD from AUR and recompiled it, but the error stays the same. But it's not urgent, so no biggie to wait until you move it.

Offline

#157 2010-10-06 07:39:08

figue
Member
Registered: 2007-12-16
Posts: 53

Re: quickserve - easy ad-hoc file sharing

Xyne wrote:

Download the PKGBUILD for python-xynehttpserver and rebuild it against python in testing. I'll update it when the new package is moved.

Seems there are some errors:

running install
running build
running build_py
creating build
creating build/lib
copying XyneHTTPServer.py -> build/lib
running install_lib
creating /tmp/packerbuild-1000/python-xynehttpserver/python-xynehttpserver/pkg/usr
creating /tmp/packerbuild-1000/python-xynehttpserver/python-xynehttpserver/pkg/usr/lib
creating /tmp/packerbuild-1000/python-xynehttpserver/python-xynehttpserver/pkg/usr/lib/python3.1
creating /tmp/packerbuild-1000/python-xynehttpserver/python-xynehttpserver/pkg/usr/lib/python3.1/site-packages
copying build/lib/XyneHTTPServer.py -> /tmp/packerbuild-1000/python-xynehttpserver/python-xynehttpserver/pkg/usr/lib/python3.1/site-packages
byte-compiling /tmp/packerbuild-1000/python-xynehttpserver/python-xynehttpserver/pkg/usr/lib/python3.1/site-packages/XyneHTTPServer.py to XyneHTTPServer.pyc
  File "usr/lib/python3.1/site-packages/XyneHTTPServer.py", line 94
    print "  address: all interfaces"
                                    ^
SyntaxError: invalid syntax

writing byte-compilation script '/tmp/tmp92S5II.py'
/usr/bin/python -O /tmp/tmp92S5II.py
  File "usr/lib/python3.1/site-packages/XyneHTTPServer.py", line 94
    print "  address: all interfaces"
                                    ^
SyntaxError: invalid syntax

removing /tmp/tmp92S5II.py
running install_egg_info
Writing /tmp/packerbuild-1000/python-xynehttpserver/python-xynehttpserver/pkg/usr/lib/python3.1/site-packages/XyneHTTPServer-1.0-py3.1.egg-info

quickserve is amazing. Thank you Xyne

Last edited by figue (2010-10-06 07:39:33)

Offline

#158 2010-10-06 12:31:51

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,552
Website

Re: quickserve - easy ad-hoc file sharing

I've updated the build function to explicitly use python2 (hadn't thought of that, sorry). Let me know if it works.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#159 2010-10-06 13:03:49

figue
Member
Registered: 2007-12-16
Posts: 53

Re: quickserve - easy ad-hoc file sharing

It works! Thank you

Offline

#160 2010-11-05 19:46:21

Vaski
Member
Registered: 2008-11-16
Posts: 19

Re: quickserve - easy ad-hoc file sharing

Army wrote:

I get

File "/usr/bin/quickserve", line 19, in <module>
    from XyneHTTPServer import ThreadedHTTPServer, BaseHTTPRequestHandler
ImportError: No module named XyneHTTPServer

This must be due to the recent python updates in [testing].

I just updated my system and now i get this same error. I using  [xyne-any] to install quickserve. Did you get this solved Army?
Btw quickserve is great smile

Offline

#161 2010-11-06 15:53:29

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,552
Website

Re: quickserve - easy ad-hoc file sharing

Rebuilding the package seems to solve the issue. Install the latest version of python-xynehttpserver and let me know if it works.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#162 2010-11-06 16:49:13

Vaski
Member
Registered: 2008-11-16
Posts: 19

Re: quickserve - easy ad-hoc file sharing

Just updated and that installed python-xynehttpserver-2010.10.02.2-3, now everything is working. Thanks Xyne

Offline

#163 2010-11-06 21:32:07

Zoranthus
Member
From: muc
Registered: 2006-11-22
Posts: 166

Re: quickserve - easy ad-hoc file sharing

Love it, thanks alot. smile

Offline

#164 2010-12-17 20:27:43

Kosava
Member
From: Serbia
Registered: 2008-08-19
Posts: 127

Re: quickserve - easy ad-hoc file sharing

Does is possible to add options to check log, who was entered my quickserve sharing server which time ip... maybe like this

quickserve --log

Last edited by Kosava (2010-12-17 20:28:58)

Offline

#165 2010-12-17 21:09:03

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,552
Website

Re: quickserve - easy ad-hoc file sharing

@Kosava

$ quickserve ... 2>log

My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#166 2010-12-17 22:06:54

Kosava
Member
From: Serbia
Registered: 2008-08-19
Posts: 127

Re: quickserve - easy ad-hoc file sharing

I get this when i type that command

Traceback (most recent call last):
  File "/usr/bin/quickserve", line 745, in <module>
    main(options)
  File "/usr/bin/quickserve", line 647, in main
    use_ssl=options.ssl, ssl_parameters=ssl_parameters, cert_required=options.req_cert )
  File "/usr/lib/python2.7/site-packages/XyneHTTPServer.py", line 63, in __init__
    BaseHTTPServer.HTTPServer.__init__(self, server_address, HandlerClass)
  File "/usr/lib/python2.7/SocketServer.py", line 408, in __init__
    self.server_bind()
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
    SocketServer.TCPServer.server_bind(self)
  File "/usr/lib/python2.7/SocketServer.py", line 419, in server_bind
    self.socket.bind(self.server_address)
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use

I dont have ip listing and what people are downloaded from me...

Offline

#167 2010-12-17 22:23:09

lifeafter2am
Member
From: 127.0.0.1
Registered: 2009-06-10
Posts: 1,332

Re: quickserve - easy ad-hoc file sharing

Xyne, just want to thank you for this!  I can't count the number of times I need to do some quick filesharing, and this is an awesome solution!


#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.

Offline

#168 2010-12-17 23:59:10

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,552
Website

Re: quickserve - easy ad-hoc file sharing

Kosava wrote:

I get this when i type that command

socket.error: [Errno 98] Address already in use

You are running something that is using the same port as quickserve (8080 by default). Either stop whatever is using that port, or use a different port with quickserve.

The command that I posted (quickserve ... 2>log) will redirect logging messages to a file. This will let you see who accesses your server, when, and what they accessed.



@lifeafter2am
Thanks smile


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#169 2010-12-18 10:01:50

Kosava
Member
From: Serbia
Registered: 2008-08-19
Posts: 127

Re: quickserve - easy ad-hoc file sharing

Now works thanks Xyne, i think it would be nice to put that about loging in quickserve --help.

Offline

#170 2010-12-18 18:13:59

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,552
Website

Re: quickserve - easy ad-hoc file sharing

Kosava wrote:

i think it would be nice to put that about loging in quickserve --help.

done smile


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#171 2010-12-20 02:47:25

msx
Member
From: solar.system/earth/ar/bue/mdp
Registered: 2010-08-08
Posts: 184
Website

Re: quickserve - easy ad-hoc file sharing

quickserve it's beautiful, thank you!


Enjoying i3wm w/ lifebar + j4-dmenu-desktop + tab_windows / fish shell / Emacs / tmux / Konsole / KDE apps
Arch + Linux-libre kernel: ParabolaGNULinux.org

Offline

#172 2013-05-10 20:32:50

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,552
Website

Re: quickserve - easy ad-hoc file sharing

Rewritten in Python 3. See first post and project pages for more details. Let me know what I've broken.

If anyone has ever looked at the code before, you should really appreciate the cleanup.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#173 2013-05-12 22:21:39

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,552
Website

Re: quickserve - easy ad-hoc file sharing

Ok, I came back to this today to untangle the code a little more and I now have what looks to be a decent class hierarchy. I don't expect that to be very interesting to most of you, but there are some frontend benefits to the rewrite and merge... quickserve now supports Quickserve networks via static peers and multicast. big_smile

Install it on two different systems, open up the necessary ports and try this:

quickserve --multicast --remote-remote /path/to/whatever

You now have an autoconfigured network with merged directory views of all available files cool

The code is relatively clean and extensible, so it should be easy to play around with it.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#174 2013-05-13 16:10:26

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: quickserve - easy ad-hoc file sharing

That sounds very cool!!!

Offline

#175 2013-05-13 16:57:27

agapito
Member
From: Spain
Registered: 2008-11-13
Posts: 507

Re: quickserve - easy ad-hoc file sharing

Good work.


Excuse my poor English.

Offline

Board footer

Powered by FluxBB