Running a Webserver on a Tonido Plug
Running a Webserver on a Tonido Plug - Apache and BFtp Autostart at Boot PDF Print E-mail
Written by Administrator   
Tuesday, 16 November 2010 20:16
Article Index
Running a Webserver on a Tonido Plug
Getting Started
Installing PlugBox Linux
Installing the Apache Webserver
Installing an FTP server on a Tonido Plug
Apache and Bftp Autostart at Boot
Getting a JDK to run on a Tonido Plug
Compiling Tomcat from source on Plugbox Linux
Getting Tomcat Running After Building It
All Pages
Installing Python and Getting Apache and BFTPD to AutoStart at Boot

 

 OK.  So now I have Tonido plug with apache, and FTP.   What is next?


Python!
 
So I used Putty to login as root to install more stuff.. 
 
 
pacman -Si python

It looks like they have python 3.1.2-2 which is cool because I wanted python 3.

so I installed it with

pacman -S python

After installation, I tried typing

python

Python 3.1.2 (r312:79147, Oct 19 2010, 15:46:23)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
[kevin@Plugbox http]$

OK, it looks like that was really easy....


Making the webserver and ftp server start automatically every time we boot.

In my root ssh putty session, I changed directory over to my /etc/rc.d folder.  Then I could see a script there for httpd and one for bftpd.   The httpd one was fully of apache stuff, and obviously the bftpd one was for the ftp server.   So those are set to go.

I moved back out one directory level to /etc and edited /etc/rc.conf
 

 
rc.conf is the core system configuration file used in Arch Linux.
 
Near the end of the file, where it lists the daemons to start at boot up, I added httpd and bftpd to the end of the list, but inside the parentheses.   When I was finished it looked like this:

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network netfs crond sshd httpd bftpd)

This part in blue is the new stuff we add to /etc/rc.conf

 

Try rebooting with the reboot command.   After restarting, hopefully the web server and the ftp server will be running.

 

on the next page I'll attempt to get a Java development environment installed, so I can get Tomcat going.

 



Last Updated on Wednesday, 01 December 2010 14:06
 

Sponsored Links

Bold Inventions, Powered by Joomla!; Joomla templates by SG web hosting