Sunday, January 31, 2010

config notes

Enable tcp listen on X. Usually XWin starts with the option "-nolisten tcp" which will block remote XWin connection. Can show up with `ps aux | grep X`. Another way to see if it's blocked is to see whether tcp 6000 port is listening, `netstat -nlp | grep 6000`. It can be disabled as follows:

1. With gdm, edit /etc/gdm/gdm.schemas, change one boolean field to allow tcp connection.

2. if use startx, can look into /etc/X11/xinit/xserverrc, a better way would be add `X :0` with other options into ~/.xserverrc. It seems this customized file will replace the line in the /etc directory.

3. wicd seems to be a quite good network manager. However I haven't gotten it to work with the WPA2 enterprise wireless on campus. Another problem: it will gain 100% cpu when the computer resumes from hibernate (tuxonice), also it's automatic starting with starx, annoying!

4. wget -r -nd -np URL : -nd, do not keep dir hierarchy, put all files under current directory. -np, no parent, keep under this URL.

5. NetworkManager in gentoo, (may add 'dhcpcd nss gnutls' as the USE flag)
emerge -av networkmanager nm-applet
then, under root,
/etc/init.d/NetworkManager start
nm-applet &
At this time, the wireless shows 'Device not ready', do two things
1) Check that dbus is present in your rc
2) chmod +x /usr/libexec/dbus-daemon-launch-helper
The second step does the job for me.

1 comment:

EverYoung said...

?? Please comment after you actually read my post. Thanks.