set RPi as a server


17 posts
by thivtulz » Wed Dec 19, 2012 3:09 am
how to set RPi as a server so that we can save python's file there?
Posts: 56
Joined: Tue Dec 18, 2012 10:05 am
by Tobiii112 » Wed Dec 19, 2012 7:10 am
I think you want a fileserver?
If yes, have a look on samba; if not, explain your problem ;)

Tobi
Posts: 24
Joined: Tue Dec 04, 2012 7:19 am
by chris57100 » Wed Dec 19, 2012 7:34 am
You have many choices : samba, nfs, ftp, sftp, svn, ssh
Many text editors can use these protocols to load sources.
I guess you have to explain what you want to do ...
Raspberry Pi Home Server : http://www.pihomeserver.fr
Software tutorials : Samba, Airplay, CUPS, Time machine, MPD+Rompr, Nginx, Owncloud, rTorrent, Wordpress, Joomla, Subsonic, VNC, etc.
Electronic tutorials : Mobile Data Recorder, LCD screen, Weather station, etc.
Posts: 419
Joined: Wed Sep 12, 2012 7:23 pm
Location: Thionville
by thivtulz » Thu Dec 20, 2012 4:36 am
i wanna appear a web page on the screen using raspberry pi board.so when we click the button than there will be the output.so i dunno how to do.Can u help me to complete my wish.Sum more i'm new to Pyhton.Now n start to learn about it.
Posts: 56
Joined: Tue Dec 18, 2012 10:05 am
by ghans » Thu Dec 20, 2012 8:00 am
Do you want to see the page on your Pi or on another PC ?
If you want to use Python , you could try flask.
If you want to meddle with the GPIO , use WebIOPi or wiringPi.



ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org
Posts: 3910
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany
by thivtulz » Thu Dec 20, 2012 8:27 am
i wanna see on the pc..
i din gt u..wat u mean by flask..
Posts: 56
Joined: Tue Dec 18, 2012 10:05 am
by ghans » Thu Dec 20, 2012 9:25 am
Please write complete sentences. English might not be your mother
tongue (it isn't mine either) , but don't make it harder than it already is :D

Flask is a web-framework and also features a HTTP server.
http://flask.pocoo.org/


ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org
Posts: 3910
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany
by thivtulz » Thu Dec 20, 2012 9:56 am
sorry for that.All because of text messages.Now come to our topic.ok it's a framework.thanks for the clarification.
:D
Posts: 56
Joined: Tue Dec 18, 2012 10:05 am
by thivtulz » Wed Dec 26, 2012 12:42 am
I want to see the web page on my Pi .how to do?Anyone can help me.

thanks.
Posts: 56
Joined: Tue Dec 18, 2012 10:05 am
by tonyhughes » Wed Dec 26, 2012 3:50 am
Install a webserver like Apache2 or Lighttpd on your Pi, and you will be able to use a web browser on another network connected machine to view/download content.
Baked Linux Mod http://www.geek101.co.nz/bakedlinuxmod

Easy install of Drupal, Wordpress, RazorCMS, Chyrp, Apache, Nginx, Lighttpd, firewall, Webmin, VNC, RDP, FTP servers, mailservers, MySQL, SQLite, Transmission and more...

tall.co.nz/webcam.jpg
User avatar
Posts: 931
Joined: Wed Dec 26, 2012 3:46 am
by thivtulz » Wed Dec 26, 2012 3:57 am
ok thanks.If i want to see the web page on pc means how to do? :)
Posts: 56
Joined: Tue Dec 18, 2012 10:05 am
by tonyhughes » Wed Dec 26, 2012 9:31 am
What's your query? If you want to host web pages on your Pi you need to install and configure a web server daemon like Apache or Lighttpd.
Baked Linux Mod http://www.geek101.co.nz/bakedlinuxmod

Easy install of Drupal, Wordpress, RazorCMS, Chyrp, Apache, Nginx, Lighttpd, firewall, Webmin, VNC, RDP, FTP servers, mailservers, MySQL, SQLite, Transmission and more...

tall.co.nz/webcam.jpg
User avatar
Posts: 931
Joined: Wed Dec 26, 2012 3:46 am
by ghans » Wed Dec 26, 2012 12:57 pm
Enter
Code: Select all
 ip addr show

into your commandline. The IP displayed can be entered into a browser
running on another PC.

If you have lighttpd / apache installed , a sample page should appear.


ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org
Posts: 3910
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany
by thivtulz » Thu Dec 27, 2012 1:04 am
thanks dude. Actually i'm not yet plan any things to do with LAMP server dude.Any way thanks for your clarification dude..So we cannot create WAMP server using raspberry Pi..??
Posts: 56
Joined: Tue Dec 18, 2012 10:05 am
by tonyhughes » Thu Dec 27, 2012 1:17 am
Why are you asking this in multiple threads? You have already been given a definitive answer.

You cannot run Windows natively on the Pi. It has an Arm CPU that Windows cannot run on.

A WAMP server is Windows+software, therefore, you can't have a WAMP on an RPi.

You can have a LAMP, which is Linux+software.
Baked Linux Mod http://www.geek101.co.nz/bakedlinuxmod

Easy install of Drupal, Wordpress, RazorCMS, Chyrp, Apache, Nginx, Lighttpd, firewall, Webmin, VNC, RDP, FTP servers, mailservers, MySQL, SQLite, Transmission and more...

tall.co.nz/webcam.jpg
User avatar
Posts: 931
Joined: Wed Dec 26, 2012 3:46 am
by ghans » Thu Dec 27, 2012 4:59 pm
And LAMP should work better than WAMP / XAMPP because to my knowledge all
included software has always been tailored to run on Linux , and i know
that it needs workarounds for Windows.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org
Posts: 3910
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany
by tonyhughes » Thu Dec 27, 2012 10:09 pm
ghans wrote:And LAMP should work better than WAMP / XAMPP because to my knowledge all
included software has always been tailored to run on Linux , and i know
that it needs workarounds for Windows.

ghans

Your knowledge is incorrect.

Apache - http://httpd.apache.org/ "an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows NT"

MySQL works on Linux and Windows, and their website doesn't make any mention of one of the other being either a prime focus, or a poor second cousin.

PHP & Perl are basically cross-platform scripting languages, with code that is generally portable, and again no issues between platforms, unless you are referring to specific resources on one, that the other doesn't have.

XAMPP is developed for Linux, Windows, OSX, and Solaris.

"xAMP" is a pretty generic term, that is technically the OS, Apache HTTP webserver, MySQL, and PHP.

These days it can include Perl, and a bunch of other modules and software, depending on who is putting the LAMP together (whether a script, a n00b, a hacker, an enthusiast or a developer).
Baked Linux Mod http://www.geek101.co.nz/bakedlinuxmod

Easy install of Drupal, Wordpress, RazorCMS, Chyrp, Apache, Nginx, Lighttpd, firewall, Webmin, VNC, RDP, FTP servers, mailservers, MySQL, SQLite, Transmission and more...

tall.co.nz/webcam.jpg
User avatar
Posts: 931
Joined: Wed Dec 26, 2012 3:46 am