<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>vincentkong.com &#187; Ubuntu</title>
	<atom:link href="http://www.vincentkong.com/tag/ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>https://www.vincentkong.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 07 Jul 2010 00:32:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Running VirtualBox in Ubuntu</title>
		<link>https://www.vincentkong.com/2009/12/running-virtualbox-in-ubuntu</link>
		<comments>https://www.vincentkong.com/2009/12/running-virtualbox-in-ubuntu#comments</comments>
		<pubDate>Mon, 28 Dec 2009 08:09:15 +0000</pubDate>
		<dc:creator>Vincent Kong</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Virtual Machine]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://www.vincentkong.com/?p=1295</guid>
		<description><![CDATA[To install VirtualBox in Ubuntu $ sudo apt-get install virtualbox-ose To run VirtualBox type $ /usr/bin/VirtualBox VirtualBox in Xubuntu Related posts:Upgrading Portable-VirtualBox Installing Guest Additions for VirtualBox Running Windows Application on Ubuntu


Related posts:<ol><li><a href='https://www.vincentkong.com/2009/11/upgrading-portable-virtualbox' rel='bookmark' title='Permanent Link: Upgrading Portable-VirtualBox'>Upgrading Portable-VirtualBox</a></li>
<li><a href='https://www.vincentkong.com/2009/11/installing-guest-additions-for-virtualbox' rel='bookmark' title='Permanent Link: Installing Guest Additions for VirtualBox'>Installing Guest Additions for VirtualBox</a></li>
<li><a href='https://www.vincentkong.com/2008/01/running-windows-application-on-ubuntu' rel='bookmark' title='Permanent Link: Running Windows Application on Ubuntu'>Running Windows Application on Ubuntu</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>To install VirtualBox in Ubuntu</p>
<p><code>$ sudo apt-get install virtualbox-ose</code></p>
<p>To run VirtualBox type</p>
<p><code>$ /usr/bin/VirtualBox</code></p>
<div>
<dl id="attachment_1269" style="width: 310px;">
<dt><a href="http://www.vincentkong.com/wp-content/uploads/2009/10/virtualbox_ubuntu.png"><img title="VirtualBox in Xubuntu" src="http://www.vincentkong.com/wp-content/uploads/2009/10/virtualbox_ubuntu-300x221.png" alt="VirtualBox in Xubuntu" width="300" height="221" /></a></dt>
<dd>VirtualBox in Xubuntu</dd>
</dl>
</div>


<p>Related posts:<ol><li><a href='https://www.vincentkong.com/2009/11/upgrading-portable-virtualbox' rel='bookmark' title='Permanent Link: Upgrading Portable-VirtualBox'>Upgrading Portable-VirtualBox</a></li>
<li><a href='https://www.vincentkong.com/2009/11/installing-guest-additions-for-virtualbox' rel='bookmark' title='Permanent Link: Installing Guest Additions for VirtualBox'>Installing Guest Additions for VirtualBox</a></li>
<li><a href='https://www.vincentkong.com/2008/01/running-windows-application-on-ubuntu' rel='bookmark' title='Permanent Link: Running Windows Application on Ubuntu'>Running Windows Application on Ubuntu</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>https://www.vincentkong.com/2009/12/running-virtualbox-in-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running GUI Software from Remote Servers with Xming</title>
		<link>https://www.vincentkong.com/2009/10/running-gui-software-from-remote-servers-with-xming</link>
		<comments>https://www.vincentkong.com/2009/10/running-gui-software-from-remote-servers-with-xming#comments</comments>
		<pubDate>Thu, 29 Oct 2009 03:50:31 +0000</pubDate>
		<dc:creator>Vincent Kong</dc:creator>
				<category><![CDATA[SSH]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Xubuntu]]></category>

		<guid isPermaLink="false">http://www.vincentkong.com/?p=618</guid>
		<description><![CDATA[Xming provides an implementation of the X Windows System (X11 server) for Microsoft Windows.  Its useful when needing to use a GUI application on a remote server that doesn&#8217;t provide remote desktop access. Installing Xming Installing Xming on Windows is easy; download the binary file and follow the installation wizard. To configure Xming run XLaunch [...]


Related posts:<ol><li><a href='https://www.vincentkong.com/2007/07/remote-desktop-with-ssh-tunneling' rel='bookmark' title='Permanent Link: Remote Desktop with SSH Tunneling'>Remote Desktop with SSH Tunneling</a></li>
<li><a href='https://www.vincentkong.com/2008/01/running-windows-application-on-ubuntu' rel='bookmark' title='Permanent Link: Running Windows Application on Ubuntu'>Running Windows Application on Ubuntu</a></li>
<li><a href='https://www.vincentkong.com/2008/02/remote-desktop-on-xubuntu' rel='bookmark' title='Permanent Link: Remote Desktop on Xubuntu'>Remote Desktop on Xubuntu</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Xming provides an implementation of the X Windows System (X11 server) for Microsoft Windows.  Its useful when needing to use a GUI application on a remote server that doesn&#8217;t provide remote desktop access.</p>
<h3>Installing Xming</h3>
<p>Installing Xming on Windows is easy; <a href="http://sourceforge.net/projects/xming/">download the binary file</a> and follow the installation wizard.</p>
<p>To configure Xming run XLaunch from the Start Menu, otherwise run Xming to start up the application.</p>
<p><a href="http://www.vincentkong.com/wp-content/uploads/2009/10/xming_menu.png"><img class="alignnone size-full wp-image-1115" title="Xming Menu" src="http://www.vincentkong.com/wp-content/uploads/2009/10/xming_menu.png" alt="Xming Menu" width="146" height="94" /></a></p>
<p>When started an icon would appear on the taskbar.</p>
<p><a href="http://www.vincentkong.com/wp-content/uploads/2009/10/xming_icon.png"><img class="alignnone size-full wp-image-1116" title="Xming Icon" src="http://www.vincentkong.com/wp-content/uploads/2009/10/xming_icon.png" alt="Xming Icon" width="124" height="30" /></a></p>
<h3>Configure X11 Forwarding in PuTTY</h3>
<p>Before establishing and SSH connection go to Connection -&gt; SSH -&gt; X11 in the configuration window and check the &#8220;Enable X11 forwarding&#8221; box.</p>
<div id="attachment_1117" class="wp-caption alignnone" style="width: 310px"><a href="http://www.vincentkong.com/wp-content/uploads/2009/10/putty_x11forward.png"><img class="size-medium wp-image-1117" title="PuTTY X11 Forwarding" src="http://www.vincentkong.com/wp-content/uploads/2009/10/putty_x11forward-300x290.png" alt="PuTTY X11 Forwarding" width="300" height="290" /></a><p class="wp-caption-text">PuTTY X11 Forwarding</p></div>
<p>After SSH connection has been established any GUI application can be run by executing it from the command prompt e.g. the Thunar file manager for Xubuntu</p>
<div id="attachment_1118" class="wp-caption alignnone" style="width: 310px"><a href="http://www.vincentkong.com/wp-content/uploads/2009/10/thunar_with_xming.png"><img class="size-medium wp-image-1118" title="Thunar with Xming" src="http://www.vincentkong.com/wp-content/uploads/2009/10/thunar_with_xming-300x211.png" alt="Running Thunar in Windows with Xming" width="300" height="211" /></a><p class="wp-caption-text">Running Thunar in Windows with Xming</p></div>
<p>More detail information can be found <a href="http://gears.aset.psu.edu/hpc/guides/xming/">here</a>.</p>


<p>Related posts:<ol><li><a href='https://www.vincentkong.com/2007/07/remote-desktop-with-ssh-tunneling' rel='bookmark' title='Permanent Link: Remote Desktop with SSH Tunneling'>Remote Desktop with SSH Tunneling</a></li>
<li><a href='https://www.vincentkong.com/2008/01/running-windows-application-on-ubuntu' rel='bookmark' title='Permanent Link: Running Windows Application on Ubuntu'>Running Windows Application on Ubuntu</a></li>
<li><a href='https://www.vincentkong.com/2008/02/remote-desktop-on-xubuntu' rel='bookmark' title='Permanent Link: Remote Desktop on Xubuntu'>Remote Desktop on Xubuntu</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>https://www.vincentkong.com/2009/10/running-gui-software-from-remote-servers-with-xming/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing BoutDuTunnel Server on Mono XSP</title>
		<link>https://www.vincentkong.com/2009/06/installing-boutdutunnel-server-on-mono-xsp</link>
		<comments>https://www.vincentkong.com/2009/06/installing-boutdutunnel-server-on-mono-xsp#comments</comments>
		<pubDate>Fri, 05 Jun 2009 21:43:37 +0000</pubDate>
		<dc:creator>Vincent Kong</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Mono]]></category>
		<category><![CDATA[Proxy]]></category>
		<category><![CDATA[Tunnel]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.vincentkong.com/?p=865</guid>
		<description><![CDATA[In my previous blog I talked about setting up a HTTP tunnel using BoutDuTunnel. To setup the server-side, a command line application was used: BdtServer. BoutDuTunnel also provides a web application solution BdtWebServer which lets you host the application inside a web server. To host BdtWebServer in Ubuntu, BoutDuTunnel recommends to use Apache/mod_mono, however I [...]


Related posts:<ol><li><a href='https://www.vincentkong.com/2009/05/http-tunnel-through-isa-server' rel='bookmark' title='Permanent Link: HTTP Tunnel Through ISA Server'>HTTP Tunnel Through ISA Server</a></li>
<li><a href='https://www.vincentkong.com/2009/05/building-mono-from-source' rel='bookmark' title='Permanent Link: Building Mono from Source'>Building Mono from Source</a></li>
<li><a href='https://www.vincentkong.com/2008/03/ssh-through-http-proxies' rel='bookmark' title='Permanent Link: SSH through HTTP Proxies'>SSH through HTTP Proxies</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In my previous blog I talked about setting up a <a href="http://www.vincentkong.com/2009/05/http-tunnel-through-isa-server/">HTTP tunnel using BoutDuTunnel</a>.  To setup the server-side, a command line application was used:  <code>BdtServer</code>.  BoutDuTunnel also provides a web application solution <code>BdtWebServer</code> which lets you host the application inside a web server.  To host BdtWebServer in Ubuntu, BoutDuTunnel recommends to use <code>Apache/mod_mono</code>, however I decided to use an alternative approach.</p>
<h3>Configuring BdtWebServer</h3>
<p>Mono XSP is a lightweight and simple webserver written in C# which runs run ASP.NET applications.</p>
<p>To install Mono XSP run the following:</p>
<pre>$ apt-get install mono-xsp2
$ apt-get install libmono-system-runtime2.0-cil</pre>
<p>To ensure that XSP is properly installed you can install the ASP.NET 1.1 and 2.0 demo pages.</p>
<pre>$ apt-get install asp.net2-examples
$ xsp2 --applications /:/usr/share/asp.net2-demos</pre>
<p>When the server has successfully started, point your browser to http://localhost:8080 (the default port for XSP web server is 8080) to display the web page below:</p>
<div id="attachment_887" class="wp-caption alignnone" style="width: 310px"><a href="http://www.vincentkong.com/wp-content/uploads/2009/06/asp_net_examples.png"><img class="size-medium wp-image-887" title="ASP.NET Examples" src="http://www.vincentkong.com/wp-content/uploads/2009/06/asp_net_examples-300x296.png" alt="ASP.NET Examples" width="300" height="296" /></a><p class="wp-caption-text">ASP.NET Examples</p></div>
<p>If the following error is encountered:</p>
<p><code>System.InvalidOperationException: Standard output has not been redirected or process has not been started.</code></p>
<p>Run the following command to address the issue:</p>
<pre>ln -s /usr/bin/gmcs2 /usr/bin/gmcs</pre>
<p>Now the BdtWebServer is ready to be started:</p>
<p><code>xsp2 --port 8080 --nonstop --applications /:/opt/bdt.bin.1.4.3066.mono/BdtWebServer</code></p>
<p><code>--nonstop</code> don&#8217;t stop the server by pressing enter. Must be used when the server has no controlling terminal.</p>
<h3>Configuring BdtClient</h3>
<p>Setting up the BdtClient to establish a connection to BdtWebServer is similar to BdtServer with the exception that the <code>name</code> attribute is set to <code>BdtServer.soap</code> in the <code>service</code> tag of the configuration file.</p>
<pre>&lt;service name="BdtServer.soap" .../&gt;</pre>
<h3>Security Issue</h3>
<p>When hosting the BdtWebServer application in a web server the <code>BdtServerCfg.xml</code> (which contains the username and passwords) will be exploit when you point the web browser http://my.server:8080/BdtServerCfg.xml.</p>
<p>To address this issue I setup XSP to integrate with <code>Apache/mod_proxy</code> by configuring the following Apache configuration to forbid access to <code>BdtServerCfg.xml</code></p>
<pre>    &lt;Location /BdtServerCfg.xml&gt;
        Order deny,allow
        Deny from all
    &lt;/Location&gt;

    &lt;Proxy *&gt;
        Order deny,allow
        Allow from all
    &lt;/Proxy&gt;
    ProxyRequests off
    ProxyPass / http://localhost:8080/
    ProxyPassReverse / http://localhost:8080/</pre>
<p>Finally, I setup a firewall to block port 8080 from public access.</p>


<p>Related posts:<ol><li><a href='https://www.vincentkong.com/2009/05/http-tunnel-through-isa-server' rel='bookmark' title='Permanent Link: HTTP Tunnel Through ISA Server'>HTTP Tunnel Through ISA Server</a></li>
<li><a href='https://www.vincentkong.com/2009/05/building-mono-from-source' rel='bookmark' title='Permanent Link: Building Mono from Source'>Building Mono from Source</a></li>
<li><a href='https://www.vincentkong.com/2008/03/ssh-through-http-proxies' rel='bookmark' title='Permanent Link: SSH through HTTP Proxies'>SSH through HTTP Proxies</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>https://www.vincentkong.com/2009/06/installing-boutdutunnel-server-on-mono-xsp/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building Mono from Source</title>
		<link>https://www.vincentkong.com/2009/05/building-mono-from-source</link>
		<comments>https://www.vincentkong.com/2009/05/building-mono-from-source#comments</comments>
		<pubDate>Sun, 31 May 2009 03:45:18 +0000</pubDate>
		<dc:creator>Vincent Kong</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Mono]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.vincentkong.com/?p=792</guid>
		<description><![CDATA[Installing  Mono on Ubuntu is easy: $ apt-get install mono-2.0-devel Unfortunately even the latest version of Ubuntu 9.04 only comes with Mono 2.0.1.  To install a newer (or different) version a solution would be to build Mono from source. Download the desire version from the Mono website and extract the packaged file. $ wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.4.tar.bz2 [...]


Related posts:<ol><li><a href='https://www.vincentkong.com/2009/06/installing-boutdutunnel-server-on-mono-xsp' rel='bookmark' title='Permanent Link: Installing BoutDuTunnel Server on Mono XSP'>Installing BoutDuTunnel Server on Mono XSP</a></li>
<li><a href='https://www.vincentkong.com/2009/05/http-tunnel-through-isa-server' rel='bookmark' title='Permanent Link: HTTP Tunnel Through ISA Server'>HTTP Tunnel Through ISA Server</a></li>
<li><a href='https://www.vincentkong.com/2008/01/running-windows-application-on-ubuntu' rel='bookmark' title='Permanent Link: Running Windows Application on Ubuntu'>Running Windows Application on Ubuntu</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Installing  Mono on Ubuntu is easy:</p>
<p><code>$ apt-get install mono-2.0-devel</code></p>
<p>Unfortunately even the latest version of Ubuntu 9.04 only comes with Mono 2.0.1.  To install a newer (or different) version a solution would be to build Mono from source.</p>
<p>Download the desire version from the <a href="http://www.mono-project.com/">Mono website</a> and extract the packaged file.</p>
<pre>$ wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.4.tar.bz2
$ tar -xf mono-2.4.tar.bz2</pre>
<p>To compile and install Mono execute the following</p>
<pre>$ cd mono-2.4
$ configure --prefix=/opt/mono-2.4</pre>
<p>Where <code>--prefix</code> option indicates which directory to installation should be; for more option run</p>
<pre>$ configure --help</pre>
<p>If anything is missing from the system, <code>configure</code> will throw an error, install the missing package with <code>apt-get</code> and try running it again.  Then execute the compilation and installation to complete the build.</p>
<pre>$ make
$ make install</pre>
<h3>Compiling Error with Mono 1.9.1</h3>
<p>If you are compiling Mono 1.9.1 the following error might be encountered:</p>
<pre>wapi_glob.c: In function 'globextend':
wapi_glob.c:303: error: 'ARG_MAX' undeclared (first use in this function)
wapi_glob.c:303: error: (Each undeclared identifier is reported only once
wapi_glob.c:303: error: for each function it appears in.)</pre>
<p>The problems is due to the newer versions of <code>GLib</code> no longer defines <code>ARG_MAX</code>. To fix this issue, add the following to <code>mono/io-layer/wapi_glob.c</code> in the Mono source directory:</p>
<pre>#include &lt;unistd.h&gt;</pre>
<pre>#if defined(_SC_ARG_MAX)
# if defined(ARG_MAX)
#    undef ARG_MAX
# endif
# define ARG_MAX sysconf (_SC_ARG_MAX)
#endif</pre>
<pre>#include "wapi_glob.h"</pre>


<p>Related posts:<ol><li><a href='https://www.vincentkong.com/2009/06/installing-boutdutunnel-server-on-mono-xsp' rel='bookmark' title='Permanent Link: Installing BoutDuTunnel Server on Mono XSP'>Installing BoutDuTunnel Server on Mono XSP</a></li>
<li><a href='https://www.vincentkong.com/2009/05/http-tunnel-through-isa-server' rel='bookmark' title='Permanent Link: HTTP Tunnel Through ISA Server'>HTTP Tunnel Through ISA Server</a></li>
<li><a href='https://www.vincentkong.com/2008/01/running-windows-application-on-ubuntu' rel='bookmark' title='Permanent Link: Running Windows Application on Ubuntu'>Running Windows Application on Ubuntu</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>https://www.vincentkong.com/2009/05/building-mono-from-source/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Monitoring Fan RPM in Ubuntu</title>
		<link>https://www.vincentkong.com/2009/05/monitoring-fan-rpm-in-ubuntu</link>
		<comments>https://www.vincentkong.com/2009/05/monitoring-fan-rpm-in-ubuntu#comments</comments>
		<pubDate>Sat, 30 May 2009 23:12:32 +0000</pubDate>
		<dc:creator>Vincent Kong</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.vincentkong.com/?p=798</guid>
		<description><![CDATA[I have two PWM fan&#8217;s installed in my Shuttle KPC K45 being monitor with of sensor-applet in Ubuntu, which also monitors the CPU and hard drive temperature. To begin run sensors-detect a utility which comes with lm-sensors $ sudo apt-get install lm-sensors $ sudo sensors-detect Answer YES to all the YES/no questions and allow sensors-detect [...]


Related posts:<ol><li><a href='https://www.vincentkong.com/2008/03/monitoring-cpu-and-hard-drive-temperature-on-xubuntu' rel='bookmark' title='Permanent Link: Monitoring CPU and Hard Drive Temperature on Xubuntu'>Monitoring CPU and Hard Drive Temperature on Xubuntu</a></li>
<li><a href='https://www.vincentkong.com/2007/05/ubuntulinux-folder-structure' rel='bookmark' title='Permanent Link: Ubuntu/Linux Folder Structure'>Ubuntu/Linux Folder Structure</a></li>
<li><a href='https://www.vincentkong.com/2007/05/ubuntu-quickstart-guide' rel='bookmark' title='Permanent Link: Ubuntu Quickstart Guide'>Ubuntu Quickstart Guide</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I have two PWM fan&#8217;s installed in my Shuttle KPC K45 being monitor with of <code>sensor-applet</code> in Ubuntu, which also <a href="http://www.vincentkong.com/2008/03/monitoring-cpu-and-hard-drive-temperature-on-xubuntu/">monitors the CPU and hard drive temperature</a>.</p>
<p>To begin run <code>sensors-detect</code> a utility which comes with <code>lm-sensors</code></p>
<pre>$ sudo apt-get install lm-sensors
$ sudo sensors-detect</pre>
<p>Answer YES to all the YES/no questions and allow <code>sensors-detect</code> to modify the <code>/etc/modules</code>, and reboot the computer.</p>
<p>To check the status of all the items <code>lm-sensors</code> can read.</p>
<p><code>$ sensors</code></p>
<p>To monitor the fan&#8217;s RPM from <code>sensor-applet</code>, select it from the &#8220;Sensors&#8221; tab.</p>
<div id="attachment_804" class="wp-caption alignnone" style="width: 310px"><a href="http://www.vincentkong.com/wp-content/uploads/2009/05/sensors_applet_fan.png"><img class="size-medium wp-image-804" title="Sensors Applet" src="http://www.vincentkong.com/wp-content/uploads/2009/05/sensors_applet_fan-300x261.png" alt="Sensors Applet" width="300" height="261" /></a><p class="wp-caption-text">Sensors Applet</p></div>


<p>Related posts:<ol><li><a href='https://www.vincentkong.com/2008/03/monitoring-cpu-and-hard-drive-temperature-on-xubuntu' rel='bookmark' title='Permanent Link: Monitoring CPU and Hard Drive Temperature on Xubuntu'>Monitoring CPU and Hard Drive Temperature on Xubuntu</a></li>
<li><a href='https://www.vincentkong.com/2007/05/ubuntulinux-folder-structure' rel='bookmark' title='Permanent Link: Ubuntu/Linux Folder Structure'>Ubuntu/Linux Folder Structure</a></li>
<li><a href='https://www.vincentkong.com/2007/05/ubuntu-quickstart-guide' rel='bookmark' title='Permanent Link: Ubuntu Quickstart Guide'>Ubuntu Quickstart Guide</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>https://www.vincentkong.com/2009/05/monitoring-fan-rpm-in-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding a Startup Script in Ubuntu</title>
		<link>https://www.vincentkong.com/2009/01/adding-a-startup-script-in-ubuntu</link>
		<comments>https://www.vincentkong.com/2009/01/adding-a-startup-script-in-ubuntu#comments</comments>
		<pubDate>Mon, 12 Jan 2009 13:00:11 +0000</pubDate>
		<dc:creator>Vincent Kong</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.vincentkong.com/?p=206</guid>
		<description><![CDATA[Sometimes there is a script which you wrote that you want to be run each time your system boots up. This was the case when I installed the GNU HTTP Tunnel server to allow SSH through HTTP Proxies for my server. The easiest way would probably be adding the script the /etc/rc.local file which works [...]


Related posts:<ol><li><a href='https://www.vincentkong.com/2007/05/apache-for-ubuntu-quickstart-guide' rel='bookmark' title='Permanent Link: Apache for Ubuntu Quickstart Guide'>Apache for Ubuntu Quickstart Guide</a></li>
<li><a href='https://www.vincentkong.com/2007/05/tomcat-55-for-ubuntu-quickstart-guide' rel='bookmark' title='Permanent Link: Tomcat 5.5 for Ubuntu Quickstart Guide'>Tomcat 5.5 for Ubuntu Quickstart Guide</a></li>
<li><a href='https://www.vincentkong.com/2007/05/managing-packages-in-ubuntu' rel='bookmark' title='Permanent Link: Managing Packages in Ubuntu'>Managing Packages in Ubuntu</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Sometimes there is a script which you wrote that you want to be run each time your system boots up. This was the case when I installed the GNU HTTP Tunnel server to <a href="http://www.vincentkong.com/2008/03/ssh-through-http-proxies/">allow SSH through HTTP Proxies</a> for my server.</p>
<p>The easiest way would probably be adding the script the <code>/etc/rc.local</code> file which works simililary to the Windows <code>autoexec.bat</code> file.</p>
<p>But if you want to use best practices then it&#8217;s recommend that you put the script in the <code>/etc/init.d</code> directory and run the <code>update-rc.d</code> command against it. A template is also available <code>/etc/init.d/skeleton</code> which you can use to get started.</p>
<pre>$ cd /etc/init.d
$ cp skeleton myscript
$ chmod 755 myscript
$ update-rc.d myscript defaults</pre>
<p>To remove the start up script in Ubuntu execute the following:</p>
<p><code>$ update-rc.d myscript remove</code></p>


<p>Related posts:<ol><li><a href='https://www.vincentkong.com/2007/05/apache-for-ubuntu-quickstart-guide' rel='bookmark' title='Permanent Link: Apache for Ubuntu Quickstart Guide'>Apache for Ubuntu Quickstart Guide</a></li>
<li><a href='https://www.vincentkong.com/2007/05/tomcat-55-for-ubuntu-quickstart-guide' rel='bookmark' title='Permanent Link: Tomcat 5.5 for Ubuntu Quickstart Guide'>Tomcat 5.5 for Ubuntu Quickstart Guide</a></li>
<li><a href='https://www.vincentkong.com/2007/05/managing-packages-in-ubuntu' rel='bookmark' title='Permanent Link: Managing Packages in Ubuntu'>Managing Packages in Ubuntu</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>https://www.vincentkong.com/2009/01/adding-a-startup-script-in-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restricting Shell Users to their Home Directory</title>
		<link>https://www.vincentkong.com/2009/01/restricting-shell-users-to-their-home-directory</link>
		<comments>https://www.vincentkong.com/2009/01/restricting-shell-users-to-their-home-directory#comments</comments>
		<pubDate>Wed, 07 Jan 2009 13:00:59 +0000</pubDate>
		<dc:creator>Vincent Kong</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.vincentkong.com/?p=226</guid>
		<description><![CDATA[The &#8220;easiest way&#8221; to lock down users to their home directory is to switch their shell account to rbash (restricted bash).  The rbash shell behaves like the bash shell, but some functions are disallowed e.g. change directory with cd. For more information refer to the man pages for rbash. $ man rbash To change the [...]


Related posts:<ol><li><a href='https://www.vincentkong.com/2008/11/restricting-shell-for-only-scpsftp' rel='bookmark' title='Permanent Link: Restricting Shell for only SCP/SFTP'>Restricting Shell for only SCP/SFTP</a></li>
<li><a href='https://www.vincentkong.com/2008/01/samba-on-ubuntu-quickstart-guide' rel='bookmark' title='Permanent Link: Samba on Ubuntu Quickstart Guide'>Samba on Ubuntu Quickstart Guide</a></li>
<li><a href='https://www.vincentkong.com/2008/02/apache-http-authentication' rel='bookmark' title='Permanent Link: Apache HTTP Authentication'>Apache HTTP Authentication</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The &#8220;easiest way&#8221; to lock down users to their home directory is to switch their shell account to <code>rbash</code> (restricted bash).  The <code>rbash</code> shell behaves like the <code>bash</code> shell, but some functions are disallowed e.g. change directory with <code>cd</code>.</p>
<p>For more information refer to the man pages for <code>rbash</code>.</p>
<p><code>$ man rbash</code></p>
<p>To change the user&#8217;s shell modify the file <code>/etc/passwd</code></p>
<p><code>$ nano /etc/passwd</code></p>
<p>and replace <code>/bin/bash</code> with <code>/bin/rbash</code> e.g.</p>
<p><code>guest:x:100:100::/home/guest:/bin/rbash</code></p>


<p>Related posts:<ol><li><a href='https://www.vincentkong.com/2008/11/restricting-shell-for-only-scpsftp' rel='bookmark' title='Permanent Link: Restricting Shell for only SCP/SFTP'>Restricting Shell for only SCP/SFTP</a></li>
<li><a href='https://www.vincentkong.com/2008/01/samba-on-ubuntu-quickstart-guide' rel='bookmark' title='Permanent Link: Samba on Ubuntu Quickstart Guide'>Samba on Ubuntu Quickstart Guide</a></li>
<li><a href='https://www.vincentkong.com/2008/02/apache-http-authentication' rel='bookmark' title='Permanent Link: Apache HTTP Authentication'>Apache HTTP Authentication</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>https://www.vincentkong.com/2009/01/restricting-shell-users-to-their-home-directory/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restricting Shell for only SCP/SFTP</title>
		<link>https://www.vincentkong.com/2008/11/restricting-shell-for-only-scpsftp</link>
		<comments>https://www.vincentkong.com/2008/11/restricting-shell-for-only-scpsftp#comments</comments>
		<pubDate>Fri, 21 Nov 2008 06:28:30 +0000</pubDate>
		<dc:creator>Vincent Kong</dc:creator>
				<category><![CDATA[SSH]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.vincentkong.com/?p=227</guid>
		<description><![CDATA[If you have a server, but only want to allow users to copy files via sFTP without providing shell access. This can be done with rssh, a restricted shell for use with OpenSSH that allows only scp and/or sftp. To install rssh $ apt-get install rssh By default rssh doesn&#8217;t allow anything, to allow only [...]


Related posts:<ol><li><a href='https://www.vincentkong.com/2009/01/restricting-shell-users-to-their-home-directory' rel='bookmark' title='Permanent Link: Restricting Shell Users to their Home Directory'>Restricting Shell Users to their Home Directory</a></li>
<li><a href='https://www.vincentkong.com/2008/02/apache-http-authentication' rel='bookmark' title='Permanent Link: Apache HTTP Authentication'>Apache HTTP Authentication</a></li>
<li><a href='https://www.vincentkong.com/2007/06/configuring-apache-for-ssl-support' rel='bookmark' title='Permanent Link: Configuring Apache for SSL Support'>Configuring Apache for SSL Support</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you have a server, but only want to allow users to copy files via sFTP without providing shell access. This can be done with <code>rssh</code>, a restricted shell for use with OpenSSH that allows only scp and/or sftp.</p>
<p>To install <code>rssh</code></p>
<p><code>$ apt-get install rssh</code></p>
<p>By default <code>rssh</code> doesn&#8217;t allow anything, to allow only sftp modify the <code>rssh.conf</code> file.</p>
<p><code>$ nano /etc/rssh.conf</code></p>
<p>Uncomment the line for <code>allowsftp</code> and other transfer protocols you want to enable.</p>
<p><code>#allowscp<br />
allowsftp<br />
#allowcvs<br />
#allowrdist<br />
#allowrsync</code></p>
<p>To restrict a user to only allow sftp access, modify the <code>/etc/passwd</code> file</p>
<p><code>$ nano /etc/passwd</code></p>
<p>For example</p>
<p><code>ftp:x:100:100::/home/ftp:/usr/bin/rssh</code></p>


<p>Related posts:<ol><li><a href='https://www.vincentkong.com/2009/01/restricting-shell-users-to-their-home-directory' rel='bookmark' title='Permanent Link: Restricting Shell Users to their Home Directory'>Restricting Shell Users to their Home Directory</a></li>
<li><a href='https://www.vincentkong.com/2008/02/apache-http-authentication' rel='bookmark' title='Permanent Link: Apache HTTP Authentication'>Apache HTTP Authentication</a></li>
<li><a href='https://www.vincentkong.com/2007/06/configuring-apache-for-ssl-support' rel='bookmark' title='Permanent Link: Configuring Apache for SSL Support'>Configuring Apache for SSL Support</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>https://www.vincentkong.com/2008/11/restricting-shell-for-only-scpsftp/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problem using MySQL JDBC on Tomcat 5.5 and Ubuntu 8.04</title>
		<link>https://www.vincentkong.com/2008/11/problem-using-mysql-jdbc-on-tomcat-55-and-ubuntu-804</link>
		<comments>https://www.vincentkong.com/2008/11/problem-using-mysql-jdbc-on-tomcat-55-and-ubuntu-804#comments</comments>
		<pubDate>Wed, 05 Nov 2008 03:36:39 +0000</pubDate>
		<dc:creator>Vincent Kong</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.vincentkong.com/?p=224</guid>
		<description><![CDATA[Normally when I build a web application that connects to a MySQL database, I would place the mysql-connector-java-bin.jar file into the WEB-INF/lib of the web application. However, when I deployed the application on Tomcat 5.5 on Ubuntu 8.04 I got an exception: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver I couldn&#8217;t find the reason which caused the exception, so I [...]


Related posts:<ol><li><a href='https://www.vincentkong.com/2007/10/tomcat-55-doesnt-start-in-ubuntu-710' rel='bookmark' title='Permanent Link: Tomcat 5.5 Doesn&#8217;t Start in Ubuntu 7.10'>Tomcat 5.5 Doesn&#8217;t Start in Ubuntu 7.10</a></li>
<li><a href='https://www.vincentkong.com/2007/05/mysql-for-ubuntu-quickstart-guide' rel='bookmark' title='Permanent Link: MySQL for Ubuntu Quickstart Guide'>MySQL for Ubuntu Quickstart Guide</a></li>
<li><a href='https://www.vincentkong.com/2007/05/tomcat-55-for-ubuntu-quickstart-guide' rel='bookmark' title='Permanent Link: Tomcat 5.5 for Ubuntu Quickstart Guide'>Tomcat 5.5 for Ubuntu Quickstart Guide</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Normally when I build a web application that connects to a MySQL database, I would place the <code>mysql-connector-java-bin.jar</code> file into the <code>WEB-INF/lib</code> of the web application.</p>
<p>However, when I deployed the application on Tomcat 5.5 on Ubuntu 8.04 I got an exception: <code>java.lang.ClassNotFoundException: com.mysql.jdbc.Driver</code></p>
<p>I couldn&#8217;t find the reason which caused the exception, so I did a quick fix by placing the jar file into the Tomcat&#8217;s common lib directory.</p>
<p><code>$ cp mysql-connector-java-bin.jar /usr/share/java<br />
$ cd /usr/share/tomcat5.5/common/lib<br />
$ ln -s ../../../java/mysql-connector-java-bin.jar mysql-connector-java-bin.jar</code></p>


<p>Related posts:<ol><li><a href='https://www.vincentkong.com/2007/10/tomcat-55-doesnt-start-in-ubuntu-710' rel='bookmark' title='Permanent Link: Tomcat 5.5 Doesn&#8217;t Start in Ubuntu 7.10'>Tomcat 5.5 Doesn&#8217;t Start in Ubuntu 7.10</a></li>
<li><a href='https://www.vincentkong.com/2007/05/mysql-for-ubuntu-quickstart-guide' rel='bookmark' title='Permanent Link: MySQL for Ubuntu Quickstart Guide'>MySQL for Ubuntu Quickstart Guide</a></li>
<li><a href='https://www.vincentkong.com/2007/05/tomcat-55-for-ubuntu-quickstart-guide' rel='bookmark' title='Permanent Link: Tomcat 5.5 for Ubuntu Quickstart Guide'>Tomcat 5.5 for Ubuntu Quickstart Guide</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>https://www.vincentkong.com/2008/11/problem-using-mysql-jdbc-on-tomcat-55-and-ubuntu-804/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open RAR Files in Ubuntu</title>
		<link>https://www.vincentkong.com/2008/10/open-rar-files-in-ubuntu</link>
		<comments>https://www.vincentkong.com/2008/10/open-rar-files-in-ubuntu#comments</comments>
		<pubDate>Wed, 29 Oct 2008 03:07:38 +0000</pubDate>
		<dc:creator>Vincent Kong</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.vincentkong.com/?p=207</guid>
		<description><![CDATA[RAR is a file format developed by Eugene Roshal, and one of the most popular format used for data compression and archiving next to the ZIP file format. By default, Ubuntu doesn&#8217;t have any support for extracting RAR files, however there is an available Linux freeware unrar for downloading. To install unrar in Ubuntu $ [...]


Related posts:<ol><li><a href='https://www.vincentkong.com/2007/06/freeware-and-open-source-software' rel='bookmark' title='Permanent Link: Freeware and Open Source Software'>Freeware and Open Source Software</a></li>
<li><a href='https://www.vincentkong.com/2007/05/ubuntu-quickstart-guide' rel='bookmark' title='Permanent Link: Ubuntu Quickstart Guide'>Ubuntu Quickstart Guide</a></li>
<li><a href='https://www.vincentkong.com/2008/01/running-windows-application-on-ubuntu' rel='bookmark' title='Permanent Link: Running Windows Application on Ubuntu'>Running Windows Application on Ubuntu</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>RAR is a file format developed by Eugene Roshal, and one of the most popular format used for data compression and archiving next to the ZIP file format.  By default, Ubuntu doesn&#8217;t have any support for extracting RAR files, however there is an available Linux freeware <a href="http://home.gna.org/unrar/">unrar</a> for downloading.</p>
<p>To install <code>unrar</code> in Ubuntu</p>
<p><code>$ apt-get install unrar</code></p>
<p>The drawback with this utility is that it only supports the RAR and RAR2 format, but not the RAR3 format which can only be extract by <a href="http://www.rarlab.com/rar_add.htm">RARLAB&#8217;s UnRAR</a> which is not free.</p>


<p>Related posts:<ol><li><a href='https://www.vincentkong.com/2007/06/freeware-and-open-source-software' rel='bookmark' title='Permanent Link: Freeware and Open Source Software'>Freeware and Open Source Software</a></li>
<li><a href='https://www.vincentkong.com/2007/05/ubuntu-quickstart-guide' rel='bookmark' title='Permanent Link: Ubuntu Quickstart Guide'>Ubuntu Quickstart Guide</a></li>
<li><a href='https://www.vincentkong.com/2008/01/running-windows-application-on-ubuntu' rel='bookmark' title='Permanent Link: Running Windows Application on Ubuntu'>Running Windows Application on Ubuntu</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>https://www.vincentkong.com/2008/10/open-rar-files-in-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
