Yearly Archives: 2006


How to Setup a USB drive to boot

There’s lots of reasons to boot to a USB drive, but mainly I am interested in booting to a Pen/Key/Jump drive for utility purposes. Like making drive images, partition resizing, or other system maintenance. One of the main problems I am running into these days, as a service technician, is […]


Remote ssh rsync linux backups with certificates and no passwords

Uber quick howto:  (based on Debian) 1. Make sure ssh, rsync and sudo are installed and working. 2. Add a user account,  on remote system. 2.a Add a certificate with openssl or ssh-keygen (look that up elsewhere) 2.b Make sure the cert is unencrypted with no password. Yes,  that is […]


Debian apt error mmap ran out of room 1

I spent quite a while searching for solutions to this issue: Reading Package Lists… Error! E: Dynamic MMap ran out of room I found several posts and sites that mention updating the cache limit, but that did not work. Here’s what I found though. First, create the file if it […]


Setup virtual users and domains on Courier (Debian package)

Courier Virtual Email Hosting – No SQL Servers Using USERDB Add the domain(s) Add your domain name to esmtpacceptmailfor.dir/default Add your domain name to hosteddomains/default Then create the courier system files, run: makeacceptmailfor makehosteddomains Add the users You run 2 commands to add a user. (same user/pw for smtp also) […]


Compile Apache 2 with PHP 4 and MySQL 5 (while MySQL 4 is also installed) 1

Download and unpack Apache and PHP. MySQL 5 is install already. (as per another blog: https://www.1stbyte.com/2006/04/02/mysql-5-upgrade-compiled/ Make sure you have the proper dev packages. In my case I had to install ‘libflex’ and ‘libgdbm-dev’ using apt-get install to install PHP. (I have Debian Unstable) ./configure –prefix=/var/httpd –enable-so –enable-proxy –enable-proxy-ftp –enable-proxy-http […]


Make dynamic amount of columns with PHP

Below is a demonstration of how I created variable amount of columns in a table listing.  In this example I was creating a picture gallery and using template files, so you can see even more than the dynamic columns, but anyway… The only bit of important info here are these […]


Mysql 5 upgrade – compiled 1

I just upgraded my MySQL server from 5.0.7 to 5.0.10. I wanted to make a few notes about what I did to set it up. 1. I compiled MySQL 5.0.10-beta. ./configure –prefix=/var/mysql5010 –with-unix-socket-path=/tmp/mysql5.sock –with-mysqld-ldflags=-all-static –enable-assembler –with-low-memory –with-named-curses-libs=/lib/libncurses.so.5 –with-mysqld-user=mysql 2. Did a make && make install 3. Stop mysql507 (on my […]


Compile PHP 5.1 with JPEG support on Debian

Ok, here’s my configure command: ./configure –with-apxs2=/path/to/httpd/bin/apxs –with-mysql=/path/to/mysql –with-mysql-sock=/tmp/mysql.sock –prefix=/path/to/httpd/php –with-config-file-path=/path/to/httpd/php –enable-force-cgi-redirect –disable-cgi –with-zlib –with-gettext –with-gdbm –with-gd –with-png –with-png-dir=/usr/lib –with-jpeg –with-jpeg-dir=/usr/lib –with-pdo-mysql –with-mysqli I ran into errors trying to run the function imagecreatefromjpeg and imagesx and imagesy. And the system could not find the jpeg libs. On Debian Sarge, you […]


My new opinion on AJAX

So I’ve spent the last 6 months learning more about Javascript and how to use different AJAX libs. After trying to create some apps using it, I can say this. It is best used either in small doses on basic web apps (bloggers, forums, forms), or use it extensively on […]