Archive

Archive for April, 2012

xterm look in Debian or Ubuntu

April 30, 2012 Leave a comment

If you want your Ubuntu or Debian xterm to look like the RH/Centos version, add this to  your /etc/X11/Xresources/x11-common file or just replace the /etc/X11/Xresources with this file:

This is the global resources file that is loaded when
! all users log in, as well as for the login screen

! Fix the Xft dpi to 96; this prevents tiny fonts
! or HUGE fonts depending on the screen size.
Xft.dpi: 96

! hintstyle: medium means that (for Postscript fonts) we
! position the stems for maximum constrast and consistency
! but don’t force the stems to integral widths. hintnone,
! hintslight, and hintfull are the other possibilities.
Xft.hintstyle: hintmedium
Xft.hinting: true

Categories: sysadmin

Dovecot.conf for newer versions

April 16, 2012 Leave a comment

Here is an updated dovecot.conf (works with squirrelmail) for Centos 6.2 and other distros.

# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-5-openvz-amd64 i686 CentOS release 6.2 (Final)
auth_mechanisms = plain login
disable_plaintext_auth = no
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
mail_location = mbox:~/mail:INBOX=/var/mail/%u
passdb {
driver = pam
}
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
}
service imap-login {
vsz_limit = 64 mb
}
service pop3-login {
vsz_limit = 64 mb
}

Categories: sysadmin

install vncviewer on Centos

April 13, 2012 Leave a comment

You can install vncviewer on Centos with the usual yum install vnc. If you want to create a automatic login for a remote server, you can do it easily. First, set the password by running vncpasswd. It will prompt you twice and store the passwd in a file called .vcn/passwd (it is encrypted). Then you can create a gnome application button by dragging the vncviewer icon to the gnome panel and editing. Just click properties and add your server as follows:

/usr/bin/vncviewer servername.com:port -passwd /user/.vnc/passwd

If you have completed the steps correctly, you should be able to click the vnc icon and connect to your server.

 

Categories: sysadmin