New Post

July 29th, 2007

New post

Change screen resolution by editing xorg.conf

July 25th, 2007

Ref:
http://www.linuxquestions.org/questions/showthread.php?t=331153

Most common solution, assuming you’re using the right driver, etc., is this one, which I copied from one of many threads here that lay it out.

vim /etc/X11/XF86Config-4

Find the section that looks like this:


Section "Screen"
Identifier "Default Screen"
Device "NVIDIA Corporation NV18 [GeForce4 MX - nForce GPU]"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "800x600" "640x480"
EndSubSection
EndSection

and make it look like this:


Section "Screen"
Identifier "Default Screen"
Device "NVIDIA Corporation NV18 [GeForce4 MX - nForce GPU]"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Debian sources.list file contents

July 3rd, 2007

Ref:
http://www.mayin.org/ajayshah/COMPUTING/debian-principles.html

The sources.list for using stable reads —
# See sources.list(5) for more information
deb http://http.us.debian.org/debian stable main contrib non-free
deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
deb http://security.debian.org stable/updates main contrib non-free

security.debian.org is only relevant for stable since the core stable is supposed to be constant. With the other distributions, security updates are just normal package updates.

As the comment points out, you can say man 5 sources.list to learn the file format.

How to install kernel headers in Linux?

July 3rd, 2007

Ref: http://ubuntuforums.org/archive/index.php/t-25258.html

Install the headers for the release of the kernel you have installed. To find this out you can type
uname -r

To get the header you can apt-get install them,

sudo apt-get install linux-headers-`uname -r`

First post

March 17th, 2006

Registered my domain today.
Lunarpages rocks.

Testing the blog now :)

Debian Resources

October 24th, 2005

AboutDebian:
http://www.aboutdebian.com/linux.htm

AboutDebian – Installing Debian
http://www.aboutdebian.com/install31.htm

Juerd.nl: Nice site, with perl tips, etc
http://juerd.nl/site.plp/debianraid

Debian APT Basic Commands
http://www.linuxgazette.com/issue84/tougher.html

Setup a Database server using Debian
http://www.aboutdebian.com/database.htm

The Perfect Setup – Debian
http://www.projektfarm.com/en/support/debian_setup/

Debian: Check runlevel

October 21st, 2005

cat /etc/inittab | more

Search for: default runlevel

Look for a line like this:
id:2:initdefault:

Configuring CGI for Apache on Windows

April 28th, 2005

Ref: http://kadaitcha.cx/apache_and_perl.html

Make sure the script interpreter path is set to
X:/Perl/bin/perl.exe

Also make sure that the cgi-bin entry in httpd.conf DOES HAVE a trailing / (SLASH).

Configuring User Directories with CGI Scripting in Apache

April 19th, 2005

Objective:
Each user must be able to execute cgi scripts from within their home directories.
~/public_html/cgi-bin

References:
http://httpd.apache.org/docs-2.0/howto/cgi.html
http://cri.ch/linux/docs/sk007.html

First, change the httpd.conf to point to the cgi-bin directory to the user’s public directory.
ScriptAlias /cgi-bin/ /home/*/public_html/cgi-bin/

/home/*/public_html/cgi-bin>
AllowOverride None
Options +ExecCGI +Includes +Indexes
Order allow,deny
Allow from all

AddHandler cgi-script .cgi .sh .pl

—–
1. Set the permissions for directories.

/home/ must have 711 permissions
/home/public_html must have 755 permissions
and all files in public_html must be world-readable.

2. Activate the ~user directories

Edit httpd.conf.
- UserDir for user root:
UserDir disabled root
- UserDir is defined as public_html

Note:
Do 3.a. only if you want to set it for a single user.
For multiple users, you need to configure each ScriptAlias separately.
In such a case, it is better to use 3.b.

3. a. Define a ScriptAlias
ScriptAlias /~sven/cgi-bin “/home/sven/public_html/cgi-bin/”

3.b. Add the Option ExecCGI
The option ExecCGI can be defined at a level in httpd.conf.

Following definition gives each user to run cgi-scripts from his ~/cgi-bin directory:

/home/*/public_html/cgi-bin>
AllowOverride None
Options +ExecCGI +Includes +Indexes
Order allow,deny
Allow from all

Errors that might occur: (and it did for me, for a most stupid reason – ME)

Premature end of script headers

Short answers:
1. Check the execute permission of the script.
2. Deactivate or rename suexec.

Detailed explanation:
http://httpd.apache.org/docs-2.0/howto/cgi.html

Log files:

/var/log/httpd/error_log
/var/log/httpd/suexec.log

Commands:
apachectl -V
apachectl restart

Debian: Configuring X

April 11th, 2005

commands:
dexconf – Stands for Debian X Configuration Tool
dpkg-reconfigure xserver-xfree86