Archive for the Linux Category

Apache and SE Linux

Posted in Linux on November 4, 2008 by aghoras

To allow apache to access /www:

chcon -R -t httpd_sys_content_t /www

to check the results:

ls -alZ /www

you should get something that looks like:

-rw-r–r–  root root system_u:object_r:httpd_sys_content_t:s0 index.html
-rw-r–r–  root root system_u:object_r:httpd_sys_content_t:s0 index.php

Type “man httpd_selinux” for a full description of available contexts.

Self installing bash script

Posted in Linux on March 18, 2008 by aghoras

Here’s bash script that can be added to a compressed tar file to create a single image extractor/installer. To create the final image, simply create a compressed tar file and concatenate it with this script. Don’t forget to set the read and execute bits.

cat install_script.sh.in my_tar_image.tar.gz > install_script.sh
chmod a+r+x install_script.sh

Here is the script. Remove the gif extension. Make sure there is new line character after the %%%% delimiter:

Fedora Core 8 Mirror List

Posted in Linux with tags on February 26, 2008 by aghoras

The yum repositories for Fedora Core 8 (FC8) are installed via the fedora-release-8-5.noarch.rpm package. The package itself can be downloaded from any of the sites listed at http://mirrors.fedoraproject.org/publiclist.