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

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

2009年5月26日星期二

UNIX:HP-UX fuser 的用法

查看占用目录的用户和进程

fuser -cu /home

终止占用目录的用户和进程

fuser -ku /home

2009年5月25日星期一

LINUX:ARCHLINUX 时间同步

sudo pacman -S ntp

nptdate stdtime.gov.hk

此时时间已经是最准的了。如果要自动定时

sudo crontab -e root
把这行加到最后。

0 13 * * 1-5 ntpdate stdtime.gov.hk

LINUX:ARCHLINUX Virtualbox 如何用 host interface


从VirtualBox 2.1.0 开始支持直接从客户机来实现Host interface功能。只需要在rc.conf中 的MODULES中加入 vboxnetflt 之后在你虚拟机设置中选择Host Interface Networking

测试方法:

modprobe vboxnetflt

设置->网络-》连接方式 : Host Interface

启动虚拟机


如果OK,在/etc/rc.conf 中加入 vboxnetflt 模块,重启计算机即可。

2009年5月18日星期一

LINUX:ARCHLINUX How to access mysql remotely

如何开启mysql 的侦听允许远程访问?



1.请在/etc/hosts.allow 添加以下行:

mysqld : ALL : ALLOW mysqld-max : ALL : ALLOW   2.需要编辑/etc/my.cnfskip-networking注释掉:  #skip-networking     You can get the "error no. 2013: Lost Connection to mysql server during query" message instantly whenever you try to connect to the MySQL daemon by TCP/IP. This is the TCP wrappers system (tcpd), which uses the hosts_access(5) system to allow or disallow connections.   # Don't listen on a TCP/IP port at all. This can be a security enhancement, # if all processes that need to connect to mysqld run on the same host.     # All interaction with mysqld must be made via Unix sockets or named pipes. # Note that using this option without enabling named pipes on Windows       # (via the "enable-named-pipe" option) will render mysqld useless!