New Post
July 29th, 2007New post
New post
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 “800×600″ “640×480″
EndSubSection
SubSection “Display”
Depth 4
Modes “800×600″ “640×480″
EndSubSection
SubSection “Display”
Depth 8
Modes “800×600″ “640×480″
EndSubSection
SubSection “Display”
Depth 15
Modes “800×600″ “640×480″
EndSubSection
SubSection “Display”
Depth 16
Modes “800×600″ “640×480″
EndSubSection
SubSection “Display”
Depth 24
Modes “800×600″ “640×480″
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 “1024×768″ “800×600″ “640×480″
EndSubSection
SubSection “Display”
Depth 4
Modes “1024×768″ “800×600″ “640×480″
EndSubSection
SubSection “Display”
Depth 8
Modes “1024×768″ “800×600″ “640×480″
EndSubSection
SubSection “Display”
Depth 15
Modes “1024×768″ “800×600″ “640×480″
EndSubSection
SubSection “Display”
Depth 16
Modes “1024×768″ “800×600″ “640×480″
EndSubSection
SubSection “Display”
Depth 24
Modes “1024×768″ “800×600″ “640×480″
EndSubSection
EndSection
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.
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`
Registered my domain today.
Lunarpages rocks.
Testing the blog now ![]()
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/
cat /etc/inittab | more
Search for: default runlevel
Look for a line like this:
id:2:initdefault:
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).
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/
AllowOverride None
Options +ExecCGI +Includes +Indexes
Order allow,deny
Allow from all
AddHandler cgi-script .cgi .sh .pl
—–
/home/
/home
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
Following definition gives each user to run cgi-scripts from his ~
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
commands:
dexconf - Stands for Debian X Configuration Tool
dpkg-reconfigure xserver-xfree86