Fedora 12 + Httpd + Userdir + SElinux Works

January 30th, 2010

Fedora 12 + Httpd + Userdir + SElinux Works

First install LAMP stack see the guide on HowtoForge

replace $USER for your username

mkdir $USER/public_html
firefox http://localhost/~$USER/

If you see only Forbidden (403), don’t worry, do this:

I made a patch file (if you made custom changes on httpd.conf don’t use this file, do manual changes)

Install patch on your system and patch httpd.conf

yum install patch

my patch file:

--- httpd-patch.conf	2010-01-30 14:59:51.811850034 -0800
+++ httpd.conf	2010-01-30 14:25:04.527864263 -0800
@@ -349,14 +349,15 @@
     # of a username on the system (depending on home directory
     # permissions).
     #
-    UserDir disabled
+    #UserDir disabled
+    UserDir enabled $USER
 
     #
     # To enable requests to /~user/ to serve the user's public_html
     # directory, remove the "UserDir disabled" line above, and uncomment
     # the following line instead:
     # 
-    #UserDir public_html
+    UserDir public_html
 
 </IfModule>
 
@@ -364,18 +365,18 @@
 # Control access to UserDir directories.  The following is an example
 # for a site where these directories are restricted to read-only.
 #
-#<Directory /home/*/public_html>
-#    AllowOverride FileInfo AuthConfig Limit
-#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
-#    <Limit GET POST OPTIONS>
-#        Order allow,deny
-#        Allow from all
-#    </Limit>
-#    <LimitExcept GET POST OPTIONS>
-#        Order deny,allow
-#        Deny from all
-#    </LimitExcept>
-#</Directory>
+<Directory /home/*/public_html>
+    AllowOverride FileInfo AuthConfig Limit
+    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
+    <Limit GET POST OPTIONS>
+        Order allow,deny
+        Allow from all
+    </Limit>
+    <LimitExcept GET POST OPTIONS>
+        Order deny,allow
+        Deny from all
+    </LimitExcept>
+</Directory>
 
 #
 # DirectoryIndex: sets the file that Apache will serve if a directory

next do:

patch /etc/httpd/httpd.conf < patch1.txt
chmod 711 /home/$USER
chmod 755 /home/$USER/public_html
chcon -R -t httpd_sys_content_t /home/$USER/public_html
setsebool -P httpd_enable_homedirs 1

now:

firefox http://localhost/~$USER/

Done.

security, unix/linux, web , ,

Firefox Extreme Web Developer Edition

January 14th, 2010

Firefox Extreme Web Developer Edition

It’s Firefox 3.5.7 Portable With Add-Ons:

Access Me
Chatzilla
Chromifox Companion
Colorzilla
Compact Menu 2
DownThemAll
Firebug
FireFTP
Google Tool Bar
Greasemonkey
Hackbar
iMacros
JSONView
Library Detector
MeasureIt
NoScript
Poster
QuickProxy
Server Switcher
SQL Inject Me
Tamper Data
User Agent Switcher
Web Developer
XSS Me

And this Theme: Chromifox Extreme

Download: http://www.ayalasoft.com/FirefoxWeb.exe

This is the Second Firefox Web Developer Edition, the first I made is available here:
http://www.ayalasoft.com/descargas.html (Spanish Web Page but Firefox are in English) { Firefox 3.0.11 }

develop, web, windows ,

Beast Search Engine

January 3rd, 2010

Beast Search Engine

http://bse.ayalasoft.net

In this moment the BSE search on:

In the next month ‘BSE’ be more useful.

TODO:
Add other sites, and change the ‘Skin’ of the page add some javascript effects, etc…

develop, projects, web

Google Chrome OS

November 20th, 2009

Google Chrome OS

Google Chrome OS:

uname -a

Linux localhost 2.6.30-chromeos-intel-menlow #1 SMP Fri Nov 20 02:53:44 UTC 2009 i686 GNU/Linux

cat /etc/debian_version

squeeze/sid

dpkg -l

OUTPUT

lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.10 (development branch)
Release: 9.10
Codename: karmic

So full name:

Google Chrome OS (Cromium OS) – Ubuntu 9.10 Karmic Koala – Debian squeeze/sid 6.0 – Gnu/Linux

JSON File with Google Chrome settings:

/home/chronos/[user@gmail.com]/.config/google-chrome/Local State

Links:

Build Chromium OS

Download Google Chrome OS Virtual Machine (VMware and VirtualBox)

  • multimedia, unix/linux, web , , , ,

  • FreeBSD issue with 40-pin IDE

    November 16th, 2009

    FreeBSD issue with 40-pin IDE

    Trying to install FreeBSD on a P4, using the sysinstall not make formatting the disk or partition. boot in Safe Mode, now sysinstall works, and you can install FreeBSD without any problems

    Booting using default and acpi off:

    ad1: WARNING READ_DMA UDMA ICRC ERROR (retyring request) LBA=NNN
    ad1: WARNING READ_DMA UDMA ICRC ERROR (retyring request) LBA=NNN
    ad1: WARNING READ_DMA UDMA ICRC ERROR (retyring request) LBA=NNN
    ad1: WARNING READ_DMA UDMA ICRC ERROR (retyring request) LBA=NNN
    ad1: WARNING READ_DMA UDMA ICRC ERROR (retyring request) LBA=NNN
    ad1: WARNING READ_DMA UDMA ICRC ERROR (retyring request) LBA=NNN
    ad1: WARNING READ_DMA UDMA ICRC ERROR (retyring request) LBA=NNN
    ad1: WARNING READ_DMA UDMA ICRC ERROR (retyring request) LBA=NNN
    ad1: WARNING READ_DMA UDMA ICRC ERROR (retyring request) LBA=NNN

    The system show this promt:

    mountroot>

    Booting in Safe Mode:

    FreeBSD/i386 (Amnesiac) (ttyv0)
    
    login:

    Works but i don’t want to always boot in Safe Mode.

    So searching in Google the answer, after a while searching, I going to IRC, one user told me that the problem was the 40-pin IDE cable, use one 80-pin:

    Change the IDE cable from 40 to 80.

    FreeBSD/i386 (Amnesiac) (ttyv0)
    
    login:

    by the way: It is the first time I install FreeBSD

    hardware, unix/linux