Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts
I was setting up a new server and compiling some apache conectors when I came across this error:

me@server.com: make
cd . && aclocal
/bin/sh: aclocal: command not found
make: *** [aclocal.m4] Error 127

Where does this come from and how do you fix it?

It's part of Automake . To fix it on Debian/Ubuntu:

apt-get install automake

and CentOs

yum install automake

Or you can download and set it up here.
My cousin wanted to have his own Ventrilo server so I set it up for him on a old PC running Ubuntu 9.04. He didn't want to have to start or stop the server just wanted to be able to leave the machine on all the time and if it did happen to be turned off wanted it to start automatically.

Here is the process:

Create a new user on your system to run the process as. I called the user ventrilo.

Create a new script in init.d

vi /etc/init.d/vent

Add the following:

#!/bin/sh
# ventrilo server

case "$1" in
'start')
# Startup ventrilo servers.

VENPATH=/home/ventsrv
VENBIN=$VENPATH/ventrilo_srv

su ventrilo -c "$VENBIN -f$VENPATH/ventrilo_srv -d"

renice -5 `cat $VENPATH/ventrilo_srv.pid` ;;
'stop')
killall ventrilo_srv
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac
exit 0


Make sure you set the path correctly ie:

VENPATH=/home/ventsrv

Make the new script executable.

chmod +x /etc/init.d/vent


Run:

update-rc.d vent defaults

And reboot the server to confirm ventrilo starts on boot.


You can now stop and start your ventrilo server like so:


Start:

/etc/init.d/vent start


Stop:

/etc/init.d/vent stop


ColdFusion 9 is now officially supported on Ubuntu 9.04 I think this is great news. For a while we knew that it did work really easily on Ubuntu and Debain but it's now good to know its officially supported. You can see Adobes ColdFusion 9 Requirements here

Ubuntu is great but for some simple testing is can be quite heavy. If you have been thinking about trying ColdFusion 9 on Linux I might recommend Debian. I like the Debian net install because it's a minimal install of a basic system. The download is ~150meg and installs lean and quickly.

I used VMware EXSi on an old spare PC but Virtualbox, VMware server or Parallels will also work if you don't have a spare machine. Create a new Virtual machine and allocate 512mb ram. For testing and trying the new features this will be totally fine to run the slim Operating system and ColdFusion 9 even mySQL. When you start configuring your virtual machine make sure the network is set to "Bridged" so its connected directly to the physical network so it gets a real IP address from your DHCP server or router.

After the install there are a few commands and updates I usually run:

#Update the apt repository's
apt-get update

#insall some additions to VI ( simple text editor ) that make is more
#usable on Debian
apt-get install vim-nox

#install a ssh server so we can connect over putty and over sftp with ColdFusion #builder
apt-get install ssh

#you may wish to install apache even if you don't its impressive how easy it is
#with apt
apt-get install apache2

Run ifconfig ( if not ip as in windows ) to find the ipaddress ( presuming you selected dhcp )

At this point I drop out of a direct console session and continue the install with putty.

Download the linux .bin file ( 64 or 32 bit depending on the edition of debian you choose )

Use scp to move the file across. As my main machine is currently running Windows 7 I use CoreFTP which has scp support. You can just drop the .bin file to the root home directory.

Start up putty and ssh to the ip of the VM and log in.

The rest of the install I made a short screen capture pausing out the delays.



Once ColdFusion is installed and started you can test it out. In this short screencast I complete the install and log into the ColdFusion admin and setup a connection over SFTP in ColdFusion Builder create a test file and make sure CF9 is working.



This is a simple testing environment so I paid no attention to security and simply logged in as root. This is a simple demonstration how in less then half an hour you can have a slim OS running ColdFusion 9 in linux and edit your files from ColdFusion Builder. This example also uses the inbuilt ColdFusion webserver rather then connecting to apache which is also an option as part of the CF9 install.


Added an entry on installing mySQL here:
The last few days I have spend some time setting up 2 new servers. One running Railo on Ubuntu and the other Coldfusion in Windows. I needed to host this on a single IP address and needed both machines available on the internet. There are 2 ways I know of that can accomplish this task 1. Using Microsoft ISA and 2 Using Apache as a reverse proxy. As I already have Apache up and running I went with option 2. While a seemingly trivial task I had never done this before and got hung up a few times the following are the steps I took:

Define the urls you want to re-direct to a different server:

  ServerName www.myExternalDoomianName.com
  ProxyPass / http://myInternalDnsName/    ( or ip address )
  ProxyPassReverse / http:// myInternalDnsName /  (or ip address )
  ProxyPreserveHost on

ProxyPreserveHost keeps the host headers intact so the internal sever can still use virtual websites.
Enable the site ( debian/ubuntu specific )
A2ensite myReverseProxySites

Need some extra bits for apache:
apt-get install libapache2-mod-proxy-html
a2enmod proxy
a2enmod proxy_html
a2enmod headers
a2enmod proxy_connect
a2enmod proxy_balancer

Restart apache
/etc/init.d/apache2 restart

If something isn’t working start looking in the logs:
tail -f  /var/log/apache2/error.log