Fedora

Using mod_spdy With Apache2 On Fedora 17

SPDY (pronounced “SPeeDY”) is a new networking protocol whose goal is to speed up the web. It is Google’s alternative to the HTTP protocol and a candidate for HTTP/2.0. SPDY augments HTTP with several speed-related features such as stream multiplexing and header compression. To use SPDY, you need a web server and a browser (like Google Chrome and upcoming versions of Firefox) that both support SPDY. mod_spdy is an open-source Apache module that adds support for the SPDY protocol to the Apache HTTPD server. This tutorial explains how to use mod_spdy with Apache2 on Fedora 17

1 Preliminary Note

SPDY runs over HTTPS, so we need an HTTPS-enabled web site to test SPDY. Please note that SPDY will fall back to HTTPS if the user’s browser does not support SPDY or if things go wrong, so installing mod_spdy doesn’t hurt your existing setup.

default SSL web site’s URL (e.g. https://www.example.com) and test if it works

2 Installing mod_spdy

at is installed

Continue reading “Using mod_spdy With Apache2 On Fedora 17” »

Be the first to comment - What do you think?  Posted by Aniruddh - August 9, 2012 at 12:18 am

Categories: Apache, Fedora   Tags:

Fedora 17 Samba Standalone Server With tdbsam Backend

This guide  explains the installation of a Samba fileserver on Fedora 17 and  to configure it to share files over the SMB protocol as well as how to add users. Samba is configured as a standalone server, not as a domain controller. In the resulting setup, every user has his own home directory accessible via the SMB protocol and all users have a shared directory with read-/write access.

1 Preliminary Note

a Fedora 17 system here with the hostname server1.example.com and the IP address 192.168.0.100

SELinux should be  disabled

Edit /etc/selinux/config and set SELINUX=disabled
vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted
must reboot the system
reboot

2 Installing Samba

Connect server on the shell and install the Samba packages

yum install cups-libs samba samba-common

Edit the smb.conf file

vi /etc/samba/smb.conf

see the following lines in the [global] section

[...]
# ----------------------- Standalone Server Options ------------------------
#
# security = the mode Samba runs in. This can be set to user, share
# (deprecated), or server (deprecated).
#
# passdb backend = the backend used to store user information in. New
# installations should use either tdbsam or ldapsam. No additional configuration
# is required for tdbsam. The "smbpasswd" utility is available for backwards
# compatibility.
#

        security = user
        passdb backend = tdbsam


 Continue reading “Fedora 17 Samba Standalone Server With tdbsam Backend” »

Be the first to comment - What do you think?  Posted by Aniruddh - August 8, 2012 at 11:31 pm

Categories: Fedora, File Server   Tags:

To Install Cinnamon Desktop On Fedora 17

It shows how you can install Linux Mint’s Cinnamon desktop on Fedora 17. Fedora’s default desktop at the moment is GNOME 3

1 Update Sources

Need to check if your system is up to date and install the latest updates Before you can install Cinnamon to open the menu type terminal
Inside the terminal, log in as root

Su

Continue reading “To Install Cinnamon Desktop On Fedora 17” »

Be the first to comment - What do you think?  Posted by Aniruddh - at 1:57 am

Categories: Fedora   Tags:

how you can upgrade your Fedora 12 system to Fedora 13. The upgrade procedure works for both desktop and server installations.

1 Preliminary Note

log in as root, or if you log in with a regular user, type

su

to become root

2 Upgrading To Fedora 13 (Desktop)

First we must upgrade the rpm

yum update rpm

install the latest updates

yum -y update

clean the yum cache

yum clean all

during yum -y update, you should reboot the system now

reboot

After the reboot, log in as root again, either directly

su

Install preupgrade.

yum install preupgrade

Continue reading “how you can upgrade your Fedora 12 system to Fedora 13. The upgrade procedure works for both desktop and server installations.” »

Be the first to comment - What do you think?  Posted by Aniruddh - December 20, 2011 at 4:33 pm

Categories: Fedora   Tags:

Fight Image Spam With FuzzyOCR And SpamAssassin On Fedora 12

It analyzes the content and properties of images to distinguish between normal mails (ham) and spam mails. FuzzyOCR tries to keep the system load low by scanning only mails that have not already been categorized as spam by SpamAssassin, thus avoiding unnecessary workscan emails for image spam with FuzzyOCR on a Fedora 12 server. FuzzyOCR is a plugin for SpamAssassin which is aimed at unsolicited bulk mail containing images as the main content carrier. Using different methods,

1 Preliminary Note

In this article I will use Fedora 12 for the base system.
if you have ISPConfig 2 installed, the directory is /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/), this is no problem. I will annotate where to change what.

Please make sure that your SpamAssassin version works with FuzzyOCR. For example, the FuzzyOCR version I’m going to install here (fuzzyocr-3.5.1-devel.tar.gz) requires SpamAssassin 3.1.4 or newer.

2 Install The Prerequisites For FuzzyOCR

FuzzyOCR has some prerequisites like ocrad and gocr that

yum install netpbm gifsicle giflib giflib-utils gocr ocrad ImageMagick tesseract perl-String-Approx perl-MLDBM perl-CPAN

to install the MLDBM::Sync Perl module which is not available as an RPM package. Open a Perl shell….

perl -MCPAN -e shell

install the module

install MLDBM::Sync

Type

q

3 Install FuzzyOCR

download and install the latest FuzzyOCR devel version from http://fuzzyocr.own-hero.net/wiki/Downloads. We download the devel version instead of the stable version because the FuzzyOCR developers say

cd /usr/src/
wget http://users.own-hero.net/~decoder/fuzzyocr/fuzzyocr-3.5.1-devel.tar.gz

unpack FuzzyOCR and move all FuzzyOcr* files and the FuzzyOcr directory (they are all in the FuzzyOcr-3.5.1/ directory) to /etc/mail/spamassassin

tar xvfz fuzzyocr-3.5.1-devel.tar.gz
cd FuzzyOcr-3.5.1/
mv FuzzyOcr* /etc/mail/spamassassin/

Continue reading “Fight Image Spam With FuzzyOCR And SpamAssassin On Fedora 12” »

Be the first to comment - What do you think?  Posted by Aniruddh - December 19, 2011 at 3:40 pm

Categories: Fedora   Tags:

Fedora 13 Samba Standalone Server With tdbsam Backend

explains the installation of a Samba fileserver on Fedora 13 and how to configure it to share files over the SMB protocol as well as how to add users. Samba is configured as a standalone server, not as a domain controller. In the resulting setup, every user has his own home directory accessible via the SMB protocol and all users have a shared directory with read-/write access.

1 Preliminary Note

I’m using a Fedora 13 system here with the hostname server1.example.com and the IP address 192.168.0.100.

Please make sure that SELinux is disabled as shown in chapter 5 of this tutorial: The Perfect Server – Fedora 13 x86_64 [ISPConfig 2] – Page 3

2 Installing Samba

yum install cups-libs samba samba-common

Edit the smb.conf file:

vi /etc/samba/smb.conf

create the system startup links for Samba and start it

chkconfig --levels 235 smb on
/etc/init.d/smb start

3 Adding Samba Shares

mkdir -p /home/shares/allusers
chown -R root:users /home/shares/allusers/
chmod -R ug+rwx,o+rx-w /home/shares/allusers/

Continue reading “Fedora 13 Samba Standalone Server With tdbsam Backend” »

Be the first to comment - What do you think?  Posted by Aniruddh - December 14, 2011 at 7:26 am

Categories: Fedora, samba   Tags:

Integrating APC (Alternative PHP Cache) Into PHP5 (Fedora 13 & Apache2)

How to integrate APC (Alternative PHP Cache) into PHP5 on a Fedora 13 system (with Apache2). APC is a free and open PHP opcode cacher for caching and optimizing PHP intermediate code. It’s similar to other PHP opcode cachers, such as eAccelerator and XCache.

1 Preliminary Note

tested this on a Fedora 13 server with the IP address 192.168.0.100 where Apache2 and PHP5 are already installed and working. I’ll use Apache’s default document root /var/www/html in this tutorial for demonstration purposes. Of course, you can use any other vhost as well, but you might have to adjust the path to the info.php file

2 Checking PHP5′s Current State

before we install APC, let’s find out about our PHP5 installation. To do this, we create the file info.php in our document root /var/www/html:

vi /var/www/html/info.php

call that file in a browser: http://192.168.0.100/info.php

see that another PHP opcode cacher such as eAccelerator is installed, you must remove it before you install APC

yum remove php-eaccelerator

Restart Apache

/etc/init.d/httpd restart

3 Installing APC

APC is a PHP extension that can be installed

[ccINb_bash width="700"]
yum install php-pecl-apc

Continue reading “Integrating APC (Alternative PHP Cache) Into PHP5 (Fedora 13 & Apache2)” »

Be the first to comment - What do you think?  Posted by Aniruddh - December 10, 2011 at 6:24 am

Categories: Apache, Fedora, PHP   Tags:

How To Integrate ClamAV Into PureFTPd For Virus Scanning On Fedora 13

how you can integrate ClamAV into PureFTPd for virus scanning on a Fedora 13 system. In the end, whenever a file gets uploaded through PureFTPd, ClamAV will check the file and delete it if it is malware.

1 Preliminary Note

a working PureFTPd setup on your Fedora 13 server, e.g. as shown in this tutorial: Virtual Hosting With PureFTPd And MySQL (Incl. Quota And Bandwidth Management) On Fedora 13

2 Installing ClamAV

ClamAV can be installed

yum install amavisd-new clamav clamav-data clamav-server clamav-update clamav-scanner

Clamdscan expects the configuration file /etc/clamd.conf which doesn’t exist – therefore we create a symlink from /etc/clamd.conf to /etc/clamd.d/amavisd.conf:

ln -s /etc/clamd.d/amavisd.conf /etc/clamd.conf

create the system startup links for clamd and start it

chkconfig --levels 235 clamd.amavisd on
/etc/init.d/clamd.amavisd start

Continue reading “How To Integrate ClamAV Into PureFTPd For Virus Scanning On Fedora 13” »

Be the first to comment - What do you think?  Posted by Aniruddh - December 6, 2011 at 5:59 pm

Categories: Fedora   Tags:

How To Upgrade From Fedora 13 To Fedora 14 (Desktop & Server)

It describes how you can upgrade your Fedora 13 system to Fedora 14. The upgrade procedure works for both desktop and server installations.

1 Preliminary Note

executed with root privileges. Open a terminal (on a Fedora 13 desktop, go to Applications > System Tools > Terminal) and log in as root, or if you log in with a regular user, type

su

to become root

2 Upgrading To Fedora 14 (Desktop)

must upgrade the rpm package

yum update rpm

install the latest updates

yum -y update

we clean the yum cache

yum clean all

new kernel got installed during yum -y update, you should reboot the system now

reboot

reboot, log in as root again, either directly or with the help of

su

Install preupgrade

yum install preupgrade

call it like this

preupgrade

At the end, click on the Reboot Now button

Continue reading “How To Upgrade From Fedora 13 To Fedora 14 (Desktop & Server)” »

Be the first to comment - What do you think?  Posted by Aniruddh - at 10:22 am

Categories: Fedora   Tags:

How To Auto-Disable The Touchpad When The Mouse Is Plugged In (Fedora 13)

Brief how-to will help others, this issue has been bugging me for years. I want the same capability in Fedora that exists in most recent versions of Windows — disable the touchpad on my laptop if an external mouse is plugged in. Note that my how-to is a little hardware-specific regarding the actual disabling of the touchpad; I’ll discuss that more at the end of the guide.

For my OS (Fedora 13 x86_64) and hardware (Dell Precision M4500) – I needed a specific utility and three scripts. This Dell’s trackpad and nipple-stick are seen as an ‘internal’ PS/2 mouse by Fedora, so I had to install ‘xinput’ to disable it (and use a very arcane little command-line)

# yum -y install xorg-x11-apps

The enable/disable commands may be different for different hardware … I had to use some xinput commands to figure out the values I needed

$ xinput list
$ xinput list-props "PS/2 Generic Mouse"

Device ‘PS/2 Generic Mouse’:
Device Enabled (119): 1

This told me that I could use the following:

to disable touchpad:

xinput --set-prop "PS/2 Generic Mouse" "Device Enabled" 0

to enable touchpad

xinput --set-prop "PS/2 Generic Mouse" "Device Enabled" 1

Addendum

Get udev environment info for the touchpad

udevadm info --query=all --name=/dev/input/mouse1

Testing specific udev rules

# udevadm test --action=add /sys/devices/platform/i8042/serio1/input/input6/mouse1 2>&1 | grep "run:"

udevadm_test: run: ‘/bin/sh -c ‘DISPLAY=:0 /usr/bin/xinput –set-prop PS/2\ Generic\ Mouse Device\ Enabled 0”
udevadm_test: run: ‘socket:@/org/freedesktop/hal/udev_event’

# udevadm test --action=remove /sys/devices/platform/i8042/serio1/input/input6/mouse1 2>&1 | grep "run:"

udevadm_test: run: ‘/bin/sh -c ‘DISPLAY=:0 /usr/bin/xinput –set-prop PS/2\ Generic\ Mouse Device\ Enabled 1”
udevadm_test: run: ‘socket:@/org/freedesktop/hal/udev_event’

Be the first to comment - What do you think?  Posted by Aniruddh - December 4, 2011 at 9:10 am

Categories: Fedora   Tags:

Next Page »