วันอังคาร, กรกฎาคม 17, 2550

vnc on Solaris 10

บันทึกการติดตั้งโปรแกรม vnc ใน Solaris 10 เมื่อวาน

ref:
  1. http://blogs.sun.com/timthomas/entry/update_on_vnc_and_solaris
  2. http://www.salixtraining.co.uk/index_files/vncsol10.htm
  3. http://www.softpanorama.org/Xwindows/VNC/vnc_on_solaris.shtml
ขั้นตอนที่ทำคือ
  1. โหลด CompanionDVD ของ Solaris 10 11/06 มา ในนั้นจะมี SFWvnc อยู่ เราใช้ package นี้ในการติดตั้ง
  2. โปรแกรมอื่นที่จำเป็น(prerequisite) ถูกลงไปก่อนแล้วนั้นหาได้จาก sunfreeware
  3. โหลดสคริปต์ติดตั้งจาก [2] (www.salixtraining.co.uk) เราใช้สคริปต์นี้ช่วยให้การติดตั้งสะดวกขึ้นมาก
  4. เอาแพคเกจของ SFWvnc จาก CompanionDVD แทนในแพคเกจที่มีอยู่ในสคริปต์จาก [2] ใช้คำสั่ง 
  5. pkgtrans . /mytemp/SFWvnc.pkg SFWvnc
  6. modify the script installsol10vnc.ksh in the initialise function remove the SFWgcc341.pkg away:
  7. packages="SFWgcmn.pkg SFWvnc.pkg"
  8. comment the line: fix_gnome_bug, it worked fine without doing this for me too.




วันพฤหัสบดี, กรกฎาคม 12, 2550

Solaris 10 : Changing password policy, root login policy

see /etc/default/passwd
The file specify password complexity and so on.

see /etc/default/login
When CONSOLE is set root can only login on the specified device.
Comment to unset the CONSOLE to allow remote root login.

The use of "BY" (method, agent) and "WITH" (tools, etc).

ทั้ง by และ with ใช้บอกเกี่ยวกับวิธีการ ในการกระทำของ somebody.

BY
ใช้ by เมื่อพูดถึงการกระทำว่าเราทำอย่างไร จึงได้ผลลัพธ์อย่างนั้น

WITH
ใช้ with เมื่อกล่าวถึง tool หรือ object ที่เราใช้เพื่อให้บรรลุเป้าหมาย

ex.
I killed the spider by hitting it.
I killed the spider with a shoe.
"I got where I am by hard work".
"No you didn't. You got there with your wife money."

WITH มักจะใช้กับการกล่าวถึง tool หรือ instrument used by somebody.
ex.
He was killed by a heavy stone. (This could mean 'A stone fell and killed him'.)
He was killed with a heavy stone. (This means 'Somebody used a stone to kill him.')

สรุป
การกระทำ killed ทำโดย a heavy stone ดังนั้นจะใช้ by.
การกระทำ killed ทำโดยคนอื่น ซึ่งใช้ a heavy stone เป็นเครื่องมือ ใช้ with

เครื่องเซิฟเวอร์ Sunfire 880 กับ StorEdge A1000

พึ่งรู้ว่าเครื่องเซิฟเวอร์ที่เปิดมากว่า 3 ปี และมีext hdd อย่างไฮโซนั้น มันไม่ได้ถูกใช้งานเลยแม้แต่น้อย อันนี้เป็นความดีความชอบของ admin ณ สมัยนั้น

ก็เลยได้โอกาสที่จะใช้ประโยชน์ให้เต็มที่
เริ่มจากการสร้างไฟล์ซิสเต็มซะก่อน บันทึกเล็กๆน้อย เปิดดูจาก Solaris Administration document ในเว๊บของ Sun น่ะแหละ

ใช้คำสั่ง format
และใน format ให้เลือก partition
แล้วเลือก modify
ใช้ All free hogs
แล้วก็ accept table ไปก่อน กำหนดพื้นที่ตามความเหมาะสม
แล้ว label เพื่อwrite change ลงไป
แล้วก็ newfs /dev/..../c4t0d0
แล้วก็ลอง mount ดู
ถ้าโอเคก็แก้ /ets/vfstab เพื่อให้มัน mount โดยอัตโตมัติ

ความละเอียดของเวลา ใน RTSJ implementation ต่างกัน (time resolution is different from implementations to implementations)

จากการทดลอง Sun Java RTS ให้ความละเอียดสูงที่ 1 ns
ส่วน RI ของ TimeSys ซึ่งรันบนLinuxนั้นให้ความละเอียดที่ 1000 ns หรือ 1 ms เท่านั้น

เป็นผลจากคำสั่ง clock.getResolution();

วันนี้ลองลง LyX

I installed the following programs:

MacTeX-2007 | http://www.tug.org/mactex/
MacTeX installs TeXlive and includes XeTeX which is a nice extension to support.

วันอาทิตย์, กรกฎาคม 01, 2550

สถานะของฟอนในแผนที่ฟอน Fon map status

ref: http://elfonblog.fondoo.net/?feedrss2&p=56


- orange: Foneros without registered routers (according to Martin, potential Aliens, but I think originally any Fonero was registered orange, including people that bought but didn’t register a router)

- light green: registered routers that didn’t show activity in the last hour

- dark green: registered routers that did show activity in the last hour

- dark green with white star: dark green AND personalized page.

That is information from the map site, check the config options.

The information given, is incorrect (of course…).
At my address, two routers are portrayed, one light green (a non-existing router), one darkgreen with whitestar.
The last is an existing FON router, where nobody logged on the last week. So active is apparently equal to the thinclient being active… and doesn’t depend on user activity.
And that combined, would lead to the conclusion that all light-green icons are not alive and kicking; if the thinclients would work, they should be dark green. (Or am I jumping to conclusions ?)