making a simple webserver

Yahoo email won’t transfer a video I want send to an instructor. I need to make a simple webserver so they can download it directly off my computer. In previous versions of suse, you put the file into a folder. I want to setup to allow them to download it as an http address. They are a computer novice. So, it can’t require any software to download and install, just a web browser like IE or Firefox. It must be private, so no one else can download or look at it.

IMHO you are asking for contradictory things.
I do not know where in your opinion a web server starts being not “simple” anymore, but a web server is by design for letting everyone in. You can configgure a userid/password scheme for (parts of) the web pages, but do you still call that “simple”? And of course you have to configure and start a web server (Apache), just putting the file “somewhere” is not enough.

Downloading files while checking for a user identification in a secure way is normaly done by using SFTP that is part of SSH. You state that installing software in the client is out of bounds, but I can not tell if the SSH client is allready there or not. In any case configuring an SSH deamon on your site (including sftp) must be done.

If the video you are sendind is not confidential, you can upload it to a public ftp and send them the link. Otherwise, for file transferring purposes, you need to setup a ftp server on your part, and they can acess that server via a browser (I am sure firefox does it, but I am not so sure about others.) Other options you can take includes rapidshare upload, direct e-mail (depends on how large the video is, since you cant send big files as attachment.). But if you insist on setting up a http server, easiest way would be installing web server patterns from yast, and than you can configure it from yast too. When you launch your server, they can access to your server using http://[your ip address goes here]. If you want to take a name too, there is No-IP - Dynamic DNS, Static DNS for Your Dynamic IP who offers free domain names. And there is a small tutorial that I wrote about configurin a nginx server, you can find it here: Nginx server with PHP

Want to show something on your machine to someone over the web? Don’t copy it or upload it somewhere. Just run “webshare” and the current directory and everything beneath it will be served from a new web server listening on port 8000. When your pal is finished, hit control-c.


alias webshare='python -c "import SimpleHTTPServer;SimpleHTTPServer.test()"'

On 2011-03-28 06:06, lord valarian wrote:
>
> Yahoo email won’t transfer a video I want send to an instructor. I need
> to make a simple webserver so they can download it directly off my
> computer. In previous versions of suse, you put the file into a folder.
> I want to setup to allow them to download it as an http address. They
> are a computer novice. So, it can’t require any software to download and
> install, just a web browser like IE or Firefox. It must be private, so
> no one else can download or look at it.

Installing apache and creating trivial pages is simple. However, keeping it
private means login/pass, which is not that simple.

Or you can create an ftp server, which comes with passwords by default.
Also easy.

That’s assuming you are talking of a LAN. Internet access is not that
simple, better use a sharing service.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

Hmm. I like this one :slight_smile: Cool trick!

Yes, amazing. I do not know what the security level is here, but amazing indeed.

No Security unless you count Ctrl+c

but it does satisfy the OP’s request. :slight_smile:

O yes, it does and very easy.

And as long as you start it, tell the other one to download now and stop it immediatly after download, the risks are managable.

hcvv wrote:
> And as long as you start it, tell the other one to download now and
> stop it immediatly after download, the risks are managable.

I’m surprised nobody has mentioned just encrypting the content as a
solution to the security issue.

I did the webshare command in terminal in the directory I want the file public(showed as working). I can’t get the correct http to test the download. Tell me if this general format is right. What Is My IP Address - Shows Your IP Address If there is a more direct way, tell me. It will only be on for < 1 hour.


webshare
Serving HTTP on 0.0.0.0 port 8000 ...
^CTraceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python2.7/SimpleHTTPServer.py", line 214, in test
    BaseHTTPServer.test(HandlerClass, ServerClass)
  File "/usr/lib64/python2.7/BaseHTTPServer.py", line 596, in test
    httpd.serve_forever()
  File "/usr/lib64/python2.7/SocketServer.py", line 225, in serve_forever
    r, w, e = select.select([self], ], ], poll_interval)
KeyboardInterrupt

http://IP/home/username/public_html/video.avi

If you launched it in /home/username/public_html

then all you need is http://your_public_ip:8000

All you need is http://your_public_ip:8000

If you run

python -c "import SimpleHTTPServer;SimpleHTTPServer.test()"

in ~/public_html then everything IN and UNDER ~/public_html will be accessible.

I’d make a new directory ~/public_html/temp then run webshare in ~/public_html/temp after moving the video to ~/public_html/temp

Sorry if that wasn’t clear.

It clearly says:

Serving HTTP on 0.0.0.0 port 8000

Thus your URL should connect to port 8000, not for the deafult HTTP port of 80.

“Can’t establish connection to server”? Firefox

“What’s my ip” gives me the correct IP right?

try ipchicken for your public IP.

“unable to make connection: firefox”

Do I need change firewall settings?