2009年11月9日星期一

Howto configure sendmail in HP-UX

Howto configure sendmail in HP-UX


* Purpose

Configure sendmail to let mailx deliver outside

* Operation Steps

o 1 sendmail.cf

vi /etc/mail/sendmail.cf

#Dj $w.Foo.COM

>> Dj $w.ebis.com


o 2 nsswitch

vi /etc/nsswitch.conf

hosts:files

o 3 hosts

vi /etc/hosts

192.168.0.33 hwccl.com

o 4 testing

/sbin/init.d/sendmail stop

/sbin/init.d/sendmail start

mailx meansonw@hwccl.com

test

server

.

EOT

2009年8月13日星期四

用JAD反编译并正确显示中文

用JAD反编译并正确显示中文
2008年05月09日 星期五 13:12

http://www.kpdus.com/jad.html   官方最新版本,支持jdk1.6

一、基本用法
Usage:jad [option(s)]
直接输入类文件名,且支持通配符,如下所示。
c:\Java\>jad example1.class
c:\Java\>jad *.class
结果是将example1.class反编译为example1.jad。将example1.jad改为example1.Java即得源文件。

二、Option -o
不提示,覆盖源文件

三、Option -s
c:\Java\>jad -sJava example1.class
反编译结果以.Java为扩展名。

四、Option -p
将反编译结果输出到屏幕
c:\Java\>jad -p example1.class
将反编译结果重定向到文件
c:\Java\>jad -p example1.class>example1.Java

五、Option -d
指定反编译的输出文件目录
c:\Java\>jad -o -dtest -sJava *.class

如:jad -sjava d.class 就是把当前目录的d.class编译成d.java

再用:native2ascii -reverse d.java d2.java   把d.java中的汉字转换成能直接看懂的汉字(d2.java)

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分,到清远
新车站.

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