Digital Sanctum

software development, technology and other square topics

Archive for the ‘Linux’ Category

3 Ways to Run a Servlet Container on Port 80 as Non-Root

with 3 comments

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.

Read the rest of this entry »

Written by Shane

February 17th, 2007 at 2:10 pm

Ubuntu Crazy

without comments

Written by Shane

January 31st, 2007 at 1:07 am

Posted in Linux, Ubuntu

libstdc++-libc6.2-2.so.3 on Ubuntu

with 24 comments

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


“The Official Ubuntu Book” (Benjamin Mako Hill, Jono Bacon, Corey Burger, Jonathan Jesse, Ivan Krstic)

Written by Shane

January 28th, 2007 at 9:56 am

How to Make an ISO Image Using DD

without comments

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/.

Written by Shane

January 26th, 2007 at 12:52 am

Posted in Linux, Tutorials

Top 10 Ubuntu Tweaks

without comments

UbuntuI 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

Written by shane

August 25th, 2006 at 8:08 pm

Posted in Linux