2009年11月27日 星期五

Install FreeNX Server on OpenSUSE 11.2

openSUSE 11.2

The FreeNX package is no longer present in the official openSUSE 11.2 repositories. You can find the package in the Build Service.

  • Install NX and FreeNX rpms from here and here. The versions from the repository X11:RemoteDesktop/openSUSE_11.2 should work fine.

rpm -ivh http://download.opensuse.org/repositories/X11:/RemoteDesktop/openSUSE_11.2/x86_64/FreeNX-0.7.2-26.1.x86_64.rpm http://download.opensuse.org/repositories/X11:/RemoteDesktop/openSUSE_11.2/x86_64/NX-3.2.0-22.1.x86_64.rpm

    • As pre-requisite before installing the rpm above, you may need to install packages like expect and rdesktop. Install using YaST's Software Management or zypper on command line.
  • Run nxsetup --install --setup-nomachine-key --clean to install the server the first time
  • Use nxserver --status to check status of the server. The server runs on the ssh port, 22.
  • Test connecting using any NX client. Official No Machine client can be downloaded from www.nomachine.com which installs the client binary at /usr/NX/bin/nxclient See http://walter.deback.net/blog/archives/19 for using the NX client effectively.

Install FreeNX Server on OpenSUSE 11.2

openSUSE 11.2

The FreeNX package is no longer present in the official openSUSE 11.2 repositories. You can find the package in the Build Service.

  • Install NX and FreeNX rpms from here and here. The versions from the repository X11:RemoteDesktop/openSUSE_11.2 should work fine.

rpm -ivh http://download.opensuse.org/repositories/X11:/RemoteDesktop/openSUSE_11.2/x86_64/FreeNX-0.7.2-26.1.x86_64.rpm http://download.opensuse.org/repositories/X11:/RemoteDesktop/openSUSE_11.2/x86_64/NX-3.2.0-22.1.x86_64.rpm

    • As pre-requisite before installing the rpm above, you may need to install packages like expect and rdesktop. Install using YaST's Software Management or zypper on command line.
  • Run nxsetup --install --setup-nomachine-key --clean to install the server the first time
  • Use nxserver --status to check status of the server. The server runs on the ssh port, 22.
  • Test connecting using any NX client. Official No Machine client can be downloaded from www.nomachine.com which installs the client binary at /usr/NX/bin/nxclient See http://walter.deback.net/blog/archives/19 for using the NX client effectively.

2009年11月14日 星期六

在 Mac OS 10.6 安裝 git

  • Make sure your ports are up to date.
  • Install Git (You may want to include Subversion support if you want to import SVN repositories)
$sudo port selfupdate
$sudo port install git-core +svn

Reference: http://help.github.com/mac-git-installation

在 Mac OS 10.6 安裝 git

  • Make sure your ports are up to date.
  • Install Git (You may want to include Subversion support if you want to import SVN repositories)
$sudo port selfupdate
$sudo port install git-core +svn

Reference: http://help.github.com/mac-git-installation

2009年11月12日 星期四

Verilog: 避免 未定義 的 net 出錯

寫 Verilog時,
常常打錯字,
而被誤認為是一條新的net,而造成錯誤,

為了要避免這個惱人問題,

可在 Verilog file 裡加上

`default_nettype none



Mac OS X 10.6, MD5 checksum

由於 Mac OS X 10.6 並未內建 md5sum
所以先安裝 md5sum

sudo port install md5sha1sum

可以一次列出所有檔案的 MD5 Checksum,包含子目錄

find . ! -type d -print0 | xargs -0 md5sum

檢查所有檔案的 MD5 Checksum,包含子目錄

find . ! -type d -print0 | xargs -0 md5sum -c check.md5


Verilog: 避免 未定義 的 net 出錯

寫 Verilog時,
常常打錯字,
而被誤認為是一條新的net,而造成錯誤,

為了要避免這個惱人問題,

可在 Verilog file 裡加上

`default_nettype none



2009年11月11日 星期三

Mac OS X 10.6, MD5 checksum

由於 Mac OS X 10.6 並未內建 md5sum
所以先安裝 md5sum

sudo port install md5sha1sum

可以一次列出所有檔案的 MD5 Checksum,包含子目錄

find . ! -type d -print0 | xargs -0 md5sum

檢查所有檔案的 MD5 Checksum,包含子目錄

find . ! -type d -print0 | xargs -0 md5sum -c check.md5


2009年11月7日 星期六

在 Mac OS X 10.6 安裝 SVN

Create User/Password for Access Control

sudo htpasswd -cm /etc/apache2/svn-auth-file username


Create /etc/apache2/other/svn.conf:

[sourcecode language="php"]
LoadModule dav_svn_module /usr/libexec/apache2/mod_dav_svn.so
<Location /svn>
DAV svn
SVNParentPath /Users/SVN-ROOT
SVNListParentPath on
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /etc/apache2/svn-auth-file
Require valid-user
</Location>
[/sourcecode]

This will make the Subversion repository /Users/SVN-ROOT available at http://localhost/svn .

Update the repositories owner (otherwise commits would fail):


chown -R www:www /Users/SVN-ROOT


Restart Apache

sudo apachectl restart

在 Mac OS X 10.6 安裝 SVN

CODE {
display: block; /* fixes a strange ie margin bug */
font-family: Courier New;
font-size: 8pt;
overflow:auto;
background: #f0f0f0 url(http://klcintw.images.googlepages.com/Code_BG.gif) left top repeat-y;
border: 1px solid #ccc;
padding: 10px 10px 10px 21px;
max-height:200px;
line-height: 1.2em;
}

Create User/Password for Access Control

sudo htpasswd -cm /etc/apache2/svn-auth-file username
Create /etc/apache2/other/svn.conf:

LoadModule dav_svn_module /usr/libexec/apache2/mod_dav_svn.so

\
DAV svn
SVNParentPath /Users/SVN-ROOT
SVNParentPath /opt/subversion/repos
SVNListParentPath on

AuthType Basic
AuthName "Subversion repository"
AuthUserFile /etc/apache2/svn-auth-file
Require valid-user


This will make the Subversion repository /Users/SVN-ROOT/svn/fmt available athttp://localhost/svn/fmt.

Update the repositories owner (otherwise commits would fail):

chown -R www:www /Users/SVN-ROOT/*
Restart Apache

sudo apachectl restart