Saturday, November 30, 2013

Windows 8.1: View Chinese character in non-Unicode program

  1. Go to Control Panel -> Region
  2. then Administrative tab
  3. select change system locale
  4. select Current system locale to Chinese




Friday, July 20, 2012

Network Configuration in minimal CENTOS 6



install system-config-network-tui and configure using it.

Option #1:

  1. edit /etc/sysconfig/network-scripts/ifcfg-eth0 file manually.
  2. reboot
  3. yum install system-config-network-tui

Option #2:

  1. dhclient eth0 (or whatever the alias of your connected adapter is)
  2. yum install system-config-network-tui


Wednesday, May 30, 2012

Enable sshd on fedora



Enable sshd service.
$ systemctl enable sshd.service
start sshd service
$ systemctl start sshd.service
check sshd status if needed.
$ systemctl status sshd.service
restart sshd service, when needed.
$ systemctl restart sshd.service
stop sshd service and duck down :P
$ systemctl stop sshd.service
well, make sure you have port 22 open.
$ system-config-firewall

Replace Gnome with LXDE in fedora 17





yum groupremove 'GNOME Desktop Environment'

yum groupinstall XFCE

yum groupinstall LXDE


create the file with a editor

/etc/sysconfig/desktop


DISPLAYMANAGER=/usr/sbin/lxdm

PREFERRED=/usr/bin/startlxde


and reboot



to enable vnc session for remote users

/bin/su username -c "/usr/bin/vncserver :1 -geometry 1440x900"




also it can be added in the rc.local so they will be enabled at server startup


/bin/su username2 -c "/usr/bin/vncserver :2 -geometry 1440x900"

/bin/su username3 -c "/usr/bin/vncserver :3 -geometry 1440x900"






How do I change the default runlevel?



systemd uses symlinks to point to the default runlevel. You have to delete the existing symlink first before creating a new one rm /etc/systemd/system/default.target



Switch to runlevel 3 by default ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target



Switch to runlevel 5 by default ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target


Saturday, March 20, 2010

How to Prevent Ubuntu Linux from Resetting or Changing Computer’s BIOS Clock

1. Open the terminal and enter the following command:

sudo gedit /etc/default/rcS

2. In the gedit window that opens ups find the the line UTC=yes and change it to UTC=no

Monday, August 17, 2009

CentOS 5.3 minimal installation with X as VMware guest

  1. get ISO of the latest version of CentOS 5 from the CentOS website, centos.org. You will only need the first disc or the net install disc. (eg. CentOS-5.3-x86_64-bin-1of7.iso)
  2. following normal installation but deselect all pkg (refer to screenshot)
  3. after reboot. add EPEL repo (EPEL - FedoraProject), such that iceWM is available.
    # rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm

  4. install additional pkg (yum install):
    • xorg-x11-twm
    • xorg-x11-xfs
    • xorg-x11-xinit
    • xorg-x11-server-Xorg
    • xorg-x11-drv-vmware
    • urw-fonts (needed by icewm)
    • icewm
    • vnc-server
    • vnc



Friday, March 13, 2009

Freeware for Mac

List of recommended freeware for mac.

  1. Paintbrush - Paintbrush is a simple paint program for Mac OS X, reminiscent of Microsoft Paint and Apple’s own now-defunct MacPaint. It provides users with a means to make simple images quickly, something which has been noticeably absent from the Mac for years.
  2. Seashore - Seashore is an open source image editor for Mac OS X's Cocoa framework. It features gradients, textures and anti-aliasing for both text and brush strokes. It supports multiple layers and alpha channel editing. It is based around the GIMP's technology and uses the same native file format.
  3. Burn - Simple CD/DVD burning utilities.
  4. Transmission - BT client
  5. VLC - Video player
  6. Adium - IM client
  7. Perian - Perian is a free, open source QuickTime component that adds native support for many popular video formats.
  8. Flip4Mac WMV component - to play .wmv file using quicktime.
  9. Carbon Copy Cloner - Backup software
  10. Stuffit Expander - Expand compressed file, eg. zip, rar, etc.
  11. Cyberduck - FTP client
  12. Skype - VOIP software
  13. HandBrake - Video converter
  14. iStat Pro - iStat pro is a highly configurable widget that lets you monitor every aspect of your Mac, including CPU, memory, disks, network, battery, temperatures, fans, load & uptime and processes.
  15. Firefox - Web Browser
  16. Skim - Skim is a PDF reader and note-taker for OS X. It is designed to help you read and annotate scientific papers in PDF, but is also great for viewing any PDF file.
  17. arCHMock - CHM files viewer for Mac OS X
  18. OpenTerminal - This application allows you to open a Terminal window with the path of the current Finder window