March 7, 2010 - 9:26 am
Tags: automount, cd iso, fstab, iso, iso images, linux distributions, samba shares, System, udev
Posted in fstab, mount, udev | No comments
Modern Linux distributions use udev which automount partitions to the system. This is most notably seen with usb device that are the predominant hot swappable media. Internal hard drives, particularly drives that are used to boot the system, have their mount points defined in the fstab file. Fstab is automatically generated during the Debian/Ubuntu installation [...]
March 6, 2010 - 11:35 am
Tags: backup, backup directory, dev, excess space, hda, hda1, hda2, home, storage, symbolic link, user
Posted in cp, ln, partition, rm, symbolic | No comments
If you run out of space on a particular partition, but you have excess space on another partition you can relocate your data. Lets say you have 100 Megabytes left on /dev/hda1 but your have 10 gigs left on /dev/hda2. Lets say you have a folder on /dev/hda1 /home/user/backup that is over 2 gigs. Lets [...]
February 22, 2010 - 9:25 am
Tags: debian repositories, denial of service, denial of service attacks, mod, module, security, security options, spamhaus, sudo, ubuntu
Posted in Apache, firewall, mod, security | No comments
Mod security has features that go above and beyond a standard firewall. It will help to prevent denial of service attacks, and also can be used to block traffic based on realtime blackhole lists issued by Spamhaus and others. Mod security is apparently in the Debian repositories as well as Ubuntu. In the Ubuntu repos [...]
February 16, 2010 - 9:32 am
Tags: benifit, caption, client web, code, directory, directory path, document, gt options, host containers, html, Server, server parameters, shtml, side, sudo, Wikipedia
Posted in Server, apache2, include, side, ssi | No comments
Server side includes allow for external html documents to be injected into a page prior to it rendering on the client web browser. The benifit of this is eliminating the need to repetitiously repeat code over and over again. If you include the same scripts, on each of your website pages, you can create an [...]
February 14, 2010 - 10:52 am
Tags: Apache, com, conf, default, document, document roots, example, host containers, php5, servername, software modules, sudo, virtualhost, www data
Posted in a2dismod, a2dissite, a2enmod, a2ensite, apache2, mod, php5 | No comments
Apache2 implements a structured method of organizing and enabling/disabling modules and sites. The default apache2 host is automatically turned on in /etc/apache2/sites-enabled/, and it includes the virtual hosting option. Therefore, by default, virtual hosting is enabled. Create your virtual host containers in /etc/apache2/sites-available, and then enable them by issuing the command:
sudo a2ensite xxxxx.com
VirtualHost containers are [...]
February 13, 2010 - 9:26 am
Tags: boot sequence, dhcp, dhcp servers, domain default, local ip, ltsp, machine, Server, server option, sudo
Posted in Server, inet, ltsp, tftp | No comments
I’m using LTSP to manage a server remotely in a local facility. I setup an LTSP server on the host machine, and will place it in an air-conditioned room to preserve longevity. I configured a machine, of much lower power, to PXE boot from the server. There are several nuances to setting up an LTSP [...]
January 27, 2010 - 1:25 pm
Tags: backup, backup drive, caption, cronjob, desktop machine, directory, hardware failure, media directory, rsync, user
Posted in backup, crontab, network, rsync | No comments
You should have backups of all your files all the time. For a desktop machine always have a backup of your entire /home partition. Use a cronjob and rsync. Mount a usb drive to the /media directory. Use a cronjob as follows:
1 1 0 0 0 rsync -r /home/user /media/backup/user
The above rsync will recursively transfer [...]
January 16, 2010 - 3:58 pm
Tags: configure, foomatic, hp drivers, ppd, printer, printer configuration, setup script, static ip address, sudo, Webmin
Posted in cups, driver, foomatic, linux, open, ppd, print | No comments
First install all needed packages. Your going to need cups, and the client, and the foomatic and openprinting drivers.
sudo apt-get install cupsys cupsys-client
Then install everything in:
sudo apt-cache search foomatic
If its an HP printer your going to want that library. HP has an auto setup script. Install the package and run:
sudo hp-setup
Installing all the foomatic, [...]
December 26, 2009 - 12:44 pm
Tags: Apache, apache modules, compression module, data transmission, kbytes, lighttpd, module, php, thing, transmission rates
Posted in Apache, Mysql, lighttpd, module, php | No comments
The first thing to do it get lighttpd installed with php and mysql working smoothly. Rather than reiterating the same content here is a convenient post:
http://www.howtoforge.com/lighttpd_mysql_php_debian_etch
Interesting options and various configuration for lighttpd can be found here:
http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOptions
One insteresting, built in, option is throttling. Use connection.kbytes-per-second and you can effectivly limit users to particular data transmission rates. [...]