2009年7月17日星期五

LINUX:ARCHLINUX How to downgrade wicd

    Today after I upgrade my wicd to 1.6.2 ,everything is ok but wifi just can scan wireless router around me and cann't connect it.

    Keep working on it for hours ,I give up the upgrading , Here are the way howto downgrade it to 1.5.9 .

    1. Get wicd-1.5.9-1-i686.pkg.tar.gz  from here

       http://archlinux.alouche.net/?pkgName=wicd&submit=Search+Packages

       $cd /var/cache/pacman/pkg/
       $sudo wget http://archlinux.alouche.net/repo/extra/os/i686/wicd-1.5.9-1-i686.pkg.tar.gz

    2.Remove wicd

    sudo pacman -R wicd
    sudo mv /etc/wicd /etc/wicd.bak
    sudo mv /var/log/wicd /var/log/wicd.bak

    3.Reinstall wicd
   
    sudo pacman -U wicd-1.5.9-1-i686.pkg.tar.gz

    4.Restart service

    sudo /etc/rc.d/dbus restart
    sudo /etc/rc.d/wicd restart
   
    5. Not try to open wicd-client and connect your wireless router

    wicd-client

2009年7月16日星期四

UNIX:HP-UX 压缩备份与解压

压缩:
tar cvf - /u02/datafile/  |gzip > /u03/test.tar.gz


解压缩:
gzip -dc /u03/test.tar.gz | tar �xvf -

2009年7月10日星期五

LINUX:X How to Connect HP-UX CDE with archlinux

Purpose :
In Archlinux 's PC,use X to connect HP-UX 's CDE windows.
Machine :
HP server :
ip:192.168.0.17
hostname:rp5470
os: hp-ux 11.23
Archlinux : 191.268.0.16


1. Log in on the HP-UX machine with root.

2. Copy /usr/dt/config/Xsetup to /etc/dt/config (if it doesn't already exist

3. Edit /etc/dt/config/Xsetup and add the following line at the end of
the file:
$XDIR/xset fp+ tcp/192.168.0.17:7000

4. Edit /etc/rc.config.d/xfs and set RUN_X_FONT_SERVER to 1.

5. Restart the font server
# /sbin/init.d/xfs stop
# /sbin/init.d/xfs start

6. Check with the following command that xfs is running:
# ps -ef | grep xfs

7. Login Archlinux
KDE -> Leave -> Switch User -> New Session
Menu -> Remote Login
Choose rp5470

Source Link:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1247205414403+28353475&threadId=74012

2009年7月6日星期一

HP-UX:FIND 查找包含指定字符串的文件名

find ./ -type f -print |xargs grep -l "erp001"


2009年7月2日星期四

游记:交通 韶关 清远

出差到韶关两天,再直奔清远,虽是短途,却也颇多曲折.

广州去韶关很方便,10:28分的火车,不到中午1点就到韶关了,据说汽车要三个小时,
还贵许多.

而去清远的火车最后一班在13:30,火车站离清远有三,四十公里.

而韶关城小,汽车站倒有两个,东站在火车站旁,到广州深圳等地方,而城际列车在西
站,去清远在西站,65大元,车子不错,最晚一班车在18:00,车程2 小时45分,到清远
新车站.

由于当地同事的误导,最终我悠悠闲闲打的到了汽车东站,再急急忙忙打摩的汽车西
站,最终晃晃悠悠到了清远.还好一切顺利.