"A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects." (Robert A. Heinlein)
Showing posts with label Apache. Show all posts
Showing posts with label Apache. Show all posts

Thursday, 25 June 2015

More work on the Raspberry PI


I've been working a little more on my Raspberry PI based server. After installing Minidlna server my Raspberry PI server needed some easy way to transfer media files into the USB disk. Sharing the disk with Samba has been, to me, the obvious solution. Also I installed the basis of a LAMP server (Apache2, MySQL, PHP5) for future installation of server applications.

Sharing a disk with Samba

The first step has been so installing samba from command line apt-get


sudo apt-get update
sudo apt-get install samba samba-common-bin
then I edited samba configuration file
sudo vim.tiny /etc/samba/smb.conf
where I added the definition instructions for sharing the USB disk
[usbdisk]
comment = Raspberry PI USB disk
path = /media/usbdisk
browsable = yes
guest ok = yes
read only = no
create mask = 0777
directory mask=0777
public= yes
only guest = no
force user = pi
force group = users
To keep things on the easy-to-use side I set the share for a public “guest” use without asking for passwords. Since my Raspberry server is still in a experimental status I don't have, not yet at least, many security worries to think about.
I tested the configuration with the testparm command
testparm /etc/samba/smb.conf
and eventually restarted the samba service.
sudo service samba restart

Tuesday, 26 May 2009

Apache Tomcat om my Linux Server (2)

At last I managed to continue with my Apache Tomcat installation following this howto track.
Apache2 connector installation
I only installed the Apache2 Tomcat connector, since Apache2 is already installed on my server (I use it with Torrentflux):
sudo apt-get install libapache2-mod-jk
I then prepared  Apache workers configuration file
sudo vim /etc/apache2/workers.properties
workers.tomcat_home=/opt/tomcat
workers.java_home=/usr/lib/jvm/java-6-sun

ps=/
worker.list=default
worker.default.port=8009
worker.default.host=localhost
worker.default.type=ajp13
worker.default.lbfactor=1

Sunday, 29 March 2009

Apache Tomcat on my Linux server

I installed Apache Tomcat on my little Linux server (PIII-550Mz) since I'm going to test some java server application at home. I mainly based my installation on this howto with some little variation.
I first installed Java jdk 
 sudo apt-get install sun-java6-jdk
 Then I downloaded Apache Tomcat from my nearest mirror server
wget http://apache.fis.uniroma2.it/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.tar.gz
 Then I installed it
tar -xzvf apache-tomcat-6.0.18.tar.gz
sudo mv apache-tomcat-6.0.18 /opt/
sudo ln -s /opt/apache-tomcat-6.0.18/ /opt/tomcat