Monday, July 21, 2008

July,2008: Gates leaves and I come

Gates, the leader of windows, the godfather of desktop, will retire from MS-microsoft at July, 2008.

Aaron, a fresh graduate,a fool bird coder, will join in MS-myspace.cn at July, 2008.

The two events look like far away from relations today. However after 10 years, microsoft and myspace will be the symbols of two periods. Gates and Aaron, they are the lords of their periods.

Cheers!

Thursday, June 21, 2007

Keeping in touch with blog

After Visiting some friends' blog on QQ, I find blog a really effective way to keep in touch. The host write their daily life ,adventure or emotions. Then the guest can know what's going on with he/she, which made friends acknowledge you and made you to be acknowledged. As everyone has an IM, such as MSN or QQ, it's more effective when your blog update is shown on IM. When others see it ,they'll know there are sth new for you, then click.

As I know this, I can't waiting longer to publish this blog to my friends with an impulse. However, English is less familiar to most Chinese. What is worse, my pool English maybe raubbish and poison to others.

Many friends' experiences move me much, and many friends get stranger. Communication is necessary.

So, just wait when my Engilsh is ready.

Technorati :

Firefox plugin

Firefox plug-in flash-player is installed when visit website with flash. But There are some mistakes that collapse Firefox when view flash.
So, I just want to remove or uninstall flash-player plug-in. Unusual, there isn't a plug-in manager in firefox.
I need to remove it by my self.
1.Enter $HOME/.mozille, ls, firefox, plugin ...
2.rm the so in plugin
3.edit plugin_reg in firefox

Iptables setup

After setup XDMCP protocol in Linux, It's necessary to Activate XDMCP port(default 177) under iptables.
There are three system chain in configure, INPUT, OUTPUT and FORWARD. And input and forward are refer to RH-...-INPUT(short as RH) which is define by redhat users.
And all rules are based on RH. "-A RH -p udp -m udp --dports 0:1023 -j REJECT"(1) means If packet with udp protocol to 0:1023 port is reject(option Drop is similar to REJECT but without Answer).
As these, I add "-A RH -p udp -m udp --dports 177 -j ACCEPT"(2) at the bottom, means to actives 177 udp port. But it doesn't work!
Try again and again, I find the correct way is to add (2) before (1).
Nice try

Wednesday, June 20, 2007

Updating bash_profile

You can reboot or login again to active bash_profile when it is updated. But there is a easy method.
source bash_profile
Then it active

Recover gnome task-panel

The default menu-panel in gnome is really large and ugly.Then many diyers remove it and build a new.But where is the task-panel. Active tasks can't be choose by mouse. This also troubles me much. Tough try much even to modify profiles, it still can't work.

Finally, I find it really stupid. As you click right button on the panel you built, you can add some items to the panel. Maybe you never find task-panel, but there is an utility named window-list. It is really the menu-panel we known.

Cheers.

Sunday, June 17, 2007

Macro in C/C++, updateing

>define()
This is used in #if, #elif #endif preprocess sentence, and #if define(x) is equle to #ifdef x, #if !define(x) is equle to #ifndef x.
but define() is more powerful while check mutiply Macro, as it can be join with ||, &&, and !.eg:
#if defined(__STDC__) || defined(__cplusplus)
...
#endif


> __STDC__, __cplusplus
These macros are not forced by standards, but a complete implement always surports to indicate ISO C or C++ surport.

Tuesday, June 12, 2007

Install rpms

Rpms in redhat linux are software packets.Base on rpm datebase, It help install and uninstall tools.
Here list most used commands:
>install:
rpm -ivh [rpmname]
swith -i means install; -v means verbose;-h means hash bar, which provide process updates via hash (#) marks printed on the console as the package is installed.
>uninstall:
rpm -e [packname]
swith -e means erase.
>quiry:
rpm -qa|grep [name] used to display installed packets pattern name

Sunday, June 10, 2007

Useing XDMCP to Login Linux

XDMCP is a protocol for logining xwindow system.
There are some config modified.
1.Active XDMCP
>/etc/X11/gdm/gdm.conf
find lable [xdmcp], edit Enable=0 as Enable=1.
make sure port=177 is avalide.
2.Get X authority
>/etc/X11/xdm/Xaccess
find #* # any host can get a login window, remove the first # to accept all users.
>/etc/X11/xdm/
Comfirm Xservers's authority is 444, Xsetup_0's is 755
3.Modify initialization
>/etc/inittab
make sure id:5:initdefault: init level is 5(xwindow)
add x:5:respawn:/usr/bin/gdm at the bottom to startup gdm at initilization.
4.Startup port 177
>/etc/iptables
There are methods to edit iptables config, but I haven't manege. I just close iptables.

Finaly, restart your Linux, then open xmanger, it works.

Thursday, June 7, 2007

SSH-Keygen

I waste just half a day but still can't deel it.
Use Key to Login ssh-server may be more safer, but I just want to Auto Login without password in shell script.
If you want to login B from A:
On A, $HOME/.ssh/, use ssh-keygen -t dsa to get publish key file, this generate id_dsa and id_dsa.pub, then scp id_dsa.pub to B:$HOME/.ssh/ as authorized_keys or >> to authorized_keys when it exsit.

It really work on my compute and stations in company, but failed on mission.

I'll find out tomorrow.