Archive for the ‘Linux’ Category
3 Ways to Run a Servlet Container on Port 80 as Non-Root
This is a very brief outline of how to run the Apache Tomcat servlet container on port 80 (the standard web server port) on a Linux operating system. The steps illustrated here are specific to Tomcat but similar steps can be implemented for other servlet containers.
The issue is that the linux kernel has a security precaution built in to the kernel to only allow the root user to bind to a port under 1024. Since it’s a bad idea to run a network server as root, most startup scripts bind to the initial listening socket, then drop down to a non-privileged user. Since Tomcat is written in Java, it does not have the ability to switch users like this.
Ubuntu Crazy
Several excellent resources for people crazy over Ubuntu:
ArsGeek (Ubuntu Category)
The Perfect Setup - Ubuntu 6.10 Server (Edgy Eft) - a tutorial from howtoforge.com
Install Subversion 1.4 in Dapper with SSL and Berkeley DB Support
libstdc++-libc6.2-2.so.3 on Ubuntu
If you get an error like this one on Ubuntu,
error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory
it means the library isn’t available and you need to install it. Although the Ubuntu package which contains this library isn’t obvious. You can install it via the following command:
sudo apt-get install libstdc++2.10-glibc2.2
How to Make an ISO Image Using DD
The basic syntax for dd is:
dd if=INPUT-FILE-NAME of=OUTPUT-FILE-NAME
To make an ISO from your CD/DVD, place the media in your drive but do not mount it. If it automounts, unmount it.
dd if=/dev/dvd of=dvd.iso # for dvd
dd if=/dev/cdrom of=cd.iso # for cdrom
dd if=/dev/scd0 of=cd.iso # if cdrom is scsi
To make an ISO from files on your hard drive, create a directory which holds the files you want. Then use the mkisofs command.
mkisofs -o /tmp/cd.iso /tmp/directory/
This results in a file called cd.iso in folder /tmp which contains all the files and directories in /tmp/directory/.
Top 10 Ubuntu Tweaks
I just happened to come across this most excellent top 10 apps/hacks for the Ubuntu linux distro from LifeHacker. Check it out…
Hack Attack: Top 10 Ubuntu apps and tweaks
