Showing posts with label fedora 10. Show all posts
Showing posts with label fedora 10. Show all posts

Friday, April 23, 2010

AWStats: how to get stats from Apache on Fedora 10


as root: yum install awstats

to build the the stats:
/usr/share/awstats/wwwroot/cgi-bin/awstats.pl -config=localhost.localdomain -update

Your stats are now available at
http://localhost/awstats/awstats.pl?config=localhost.localdomain

If you need to see the stats not only from your server but from others pc simply edit
/etc/httpd/conf.d/awstats.conf

and replace
Allow from 127.0.0.1
with the ip addresses of your clients or
Allow from all
to open the stats to all ip addresses.

To update the stats just schedule the command as root
/usr/share/awstats/wwwroot/cgi-bin/awstats.pl -config=localhost.localdomain -update
with cron or Gnome Schedule

Wednesday, March 17, 2010

A Simple ftp server with Fedora 10


as root yum install vsftpd

edit vsftpd configuration file:
as root vi /etc/vsftpd/vsftpd.conf

uncomment anonymous_enable=NO to avoid anonymous connection

add chroot_local_user=YES to limit users to only their home directory

if you want to change the ftp default foder simply add this line:
local_root=/<ftp_folder>

finally start the service:
as root /etc/init.d/vsftpd start

Friday, February 5, 2010

How to install VNC server on Fedora

to install it:
yum install vnc-server

as root edit /etc/sysconfig/vncservers
VNCSERVERS="3:yourusername"
VNCSERVERARGS[3]="-geometry 1024x768 -depth 16"

with this configuration, vnc server will listen on port 5903 for user yourusername
to setup a multiple vnc server:
VNCSERVERS="1:username1 2:username2 3:username3"
VNCSERVERARGS[1]="-geometry 1024x768 -depth 16"
VNCSERVERARGS[2]="-geometry 800x600 -depth 8"
VNCSERVERARGS[3]="-geometry 800x600 -depth 16"

in this case vncserver ill listen on ports 5901 (for username1), 5902 (for username2) and 5903 (for username3).

to set the password, login as user, then:
vncpasswd

start the service as root with /etc/init.d/vncserver start

as user edit /home/yourusername/.vnc/xstartup
and uncomment the following lines:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

and restart the service as root: /etc/init.d/vncserver restart

now you'll be able to connect from a vnc client at your_vnc_server_hostname:590x

Tuesday, September 1, 2009

Adding a new disk to a Linux Fedora machine

as root:
fdisk -l to find the new disk.

You'll get something like this:

Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000a121f

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 1044 8185117+ 8e Linux LVM

Disk /dev/sdb: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/sdb doesn't contain a valid partition table


So the new disk is /dev/sdb

To create a new partition:
fdisk /dev/sdb
n (new partition)
p (primary partition)
1 (partition 1)
hit enter (first cylinder)
hit enter (last cylinder)
w (write changes and quit)

now check the new status with
fdisk -l

and now you'll get something like this:

Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000a121f

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 1044 8185117+ 8e Linux LVM

Disk /dev/sdb: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6fad050b

Device Boot Start End Blocks Id System
/dev/sdb1 1 1044 8385898+ 83 Linux

Now format the new partition
mkfs.ext3 /dev/sdb1

Create a new folder to mount the new partition:
mkdir /disk2

and edit /etc/fstab to mount it after the next reboot adding this line
/dev/sdb1 /disk2 ext3 defaults 1 2

then reboot

Wednesday, April 22, 2009

Tucan: download manager for Rapidshare & Megaupload in Fedora 10



Tucan is a free software written in python to manage downloads and uploads in rapidshare, megaupload etc. It's lightweight, multiplatform and support premium accounts.

You can download it from here

To install it in Fedora 10:
  • install all dependencies: yum install python pygtk2 python-imaging tesseract tesseract-langpack librsvg2
  • unpack the tarball: tar zxvf tucan-.tar.gz
  • cd tucan-
  • as root: make install
  • to launch it (not as root): tucan
  • to uninstall it (as root): make uninstall

Wednesday, April 8, 2009

How to Enable Auto Login on Fedora 10


as root add these lines to /etc/gdm/custom.conf (replacing 'youruser' with your user name)

[daemon]
TimedLoginEnable=true
TimedLogin=youruser


if you want to get an instantaneous login edit /etc/gdm/gdm.schemas and set the the value to 0, the default is 30.


<key>daemon/TimedLoginDelay</key>
<signature>i</signature>
<default>0</default>


reboot your pc

Friday, March 20, 2009

adding Postgresql yum repository - Fedora 10

download here your rpm
as root: rpm -Uvh 'file_rpm'
cd /etc/yum.repos.d
Edit fedora.repo and fedora-updates.repo [fedora] sections
Add exclude=postgresql* to the bottom of the section.