Tuesday, October 21, 2008

Minimum password length + fedora

Hello,
I have a Fedora Core 2 system and I'm trying to adjust the system's
minimum password length to be less than 6. I edited the
/etc/login.defs file to look like

# PASS_MAX_DAYS Maximum number of days a password may be used.
# PASS_MIN_DAYS Minimum number of days allowed between
password changes.
# PASS_MIN_LEN Minimum acceptable password length.
# PASS_WARN_AGE Number of days warning given before a password
expires.
#
PASS_MAX_DAYS 99999
PASS_MIN_DAYS 0
PASS_MIN_LEN 0
PASS_WARN_AGE 7

and restarted the machine. But when I try and change my password with
the "passwd" command to a password of 5 characters, I get the message
"Password is too short." What other file must I alter? How can I
change the default minimum password length?

Thanks, - Dave

Tuesday, October 14, 2008

How to use VNC server on CentOS

How to use VNC server on CentOS

Assume you have CentOS installed with Gnome. If you want to remotely access the GUI to that machine, you can use vnc-server and a vnc client (like Chicken of the VNC). Here's how:

ssh to the machine. If it is behind a firewall, you might have to set up a tunnel.
Make sure vnc-server is installed:

% sudo yum install vnc-server

Run vnc-server:

% vnc-server

This is just to initially create configs and choose a password. Now Edit the file ~/.vnc/xstartup so it runs a gnome session instead of crappy twm:

#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
exec gnome-session &

Kill off your vnc server and restart it:

% killall Xvnc
% vnc-server

Connect to your vnc server with host and display number reported with your favorite client. Yay.

Monday, October 13, 2008

Error: Missing Dependency: libgaim.so.0 is needed by package nautilus-sendto

Error: Missing Dependency: libgaim.so.0 is needed by package nautilus-sendto


To make it a little easer, one can do:
yum install yum-utils
yumdownloader nautilus-sendto
rpm -Uvh --nodeps nautilus-sendto[PRESS TAB]

install x windows + centos

yum groupinstall "X Software Development" "X Window System"
yum groupinstall “X Window System” “GNOME Desktop Environment”