<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-33644379</id><updated>2011-11-28T08:01:46.485+07:00</updated><title type='text'>Blog is (not) a Tutorial</title><subtitle type='html'>Tutorial Repository</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://rudylie.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33644379/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://rudylie.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ZhouYu</name><uri>http://www.blogger.com/profile/10922209059812280786</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-33644379.post-2761960499876258521</id><published>2009-02-22T18:02:00.000+07:00</published><updated>2009-02-22T18:03:37.912+07:00</updated><title type='text'>Ubuntu Tutorial: How To Redesign Your Desktop The ‘WOW’ Way</title><content type='html'>&lt;p&gt;I love Ubuntu as it is simply the best operating system that I have come across. If there is one thing that I dislike about Ubuntu, it has to be the desktop. Don’t get me wrong, it is not GNOME that I dislike, but the default color and theme that Ubuntu use for their distribution. I just can’t stand the brown color and theme.&lt;/p&gt; &lt;p&gt;In this tutorial, I am going to show you how to redesign your desktop and transform it to a nice eyecandy that makes people ‘wow’. The distro I am using is Ubuntu Gutsy.&lt;/p&gt; &lt;p&gt;&lt;span id="more-88"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://maketecheasier.com/wp-content/uploads/2008/01/desktop-Screenshot.png" title="desktop Screenshot" rel="lightbox"&gt;&lt;img src="http://maketecheasier.com/wp-content/uploads/2008/01/desktop-screenshot-thumbnail.png" alt="desktop Screenshot thumbnai" border="0" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Changing of theme&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;The first step to redesign your desktop is to change the desktop theme. Go to &lt;a href="http://www.gnome-look.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.gnome-look.org');" title="Gnome-looks" target="_blank"&gt;http://www.gnome-look.org&lt;/a&gt; where you can find great themes that you can download for free. Gnome desktop theme can be found under the GTK 2.x section. Select the “&lt;em&gt;most downloads&lt;/em&gt;” tab to see the most popular theme in the library. The theme that I am using is Clearlooks, a simple but elegant theme.&lt;/p&gt; &lt;p&gt;Still in the same website, go to the Wallpaper section and select your favorite wallpaper. Omit this step if you already have a wallpaper.&lt;/p&gt; &lt;p&gt;Next, proceed on the icon theme section and select a theme that you like. The theme I am using is &lt;em&gt;Glass Icon&lt;/em&gt;.&lt;/p&gt; &lt;p&gt;The themes are in tar file. After downloaded, DO NOT UNTAR THEM. Leave them as it is.&lt;/p&gt; &lt;p&gt;Now, go to &lt;em&gt;System -&gt; Preferences -&gt; Appearance&lt;/em&gt;.&lt;/p&gt; &lt;p&gt;&lt;img src="http://maketecheasier.com/wp-content/uploads/2008/01/appearance-theme-screenshot.png" alt="appearance-theme-screenshot.png" /&gt;&lt;/p&gt; &lt;p&gt;At the theme tab, click on the install button. This will bring up a window. Navigate to the folder where you download the theme. Select the desktop theme (the tar file that you have downloaded) and click ‘Open’. It will automatically install. When prompted, select “Apply New Theme”. You can now see changes to your desktop. Repeat the same step to install your icon theme.&lt;/p&gt; &lt;p&gt;Next, proceed on to the Background tab, this is where you add your wallpaper. Click the ‘Add’ button and select the wallpaper that you have downloaded.&lt;/p&gt; &lt;p&gt;&lt;img src="http://maketecheasier.com/wp-content/uploads/2008/01/appearance-background-screnshot.png" alt="appearance-background-screnshot.png" /&gt;&lt;/p&gt; &lt;p&gt;You should now have a nice desktop, but it haven’t finish yet.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Changing the bottom panel&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;The next thing that I am going to do is to convert the ugly panel at the bottom of the desktop to a Mac-style dock. This is just the imitation; there won’t be any animation of the icon. To achieve the Mac dock effect, you may want to try &lt;a href="https://developer.berlios.de/projects/cairo-dock/" onclick="javascript:pageTracker._trackPageview('/outbound/article/https://developer.berlios.de/projects/cairo-dock/');" title="Cairo dock" target="_blank"&gt;Cairo-dock&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;&lt;em&gt;Remove the window list&lt;/em&gt;&lt;/p&gt; &lt;p&gt;Launch any application. You should see the window list on the bottom panel. Toward the left of the window list, there is a bar where you can drag the window list around. Right click on the drag bar and select “&lt;em&gt;Remove from panel&lt;/em&gt;“.&lt;/p&gt; &lt;p&gt;&lt;em&gt;Resize the panel&lt;/em&gt;&lt;/p&gt; &lt;p&gt;Right click on the panel and select ‘&lt;em&gt;Properties&lt;/em&gt;‘. On the General tab,&lt;/p&gt; &lt;ul&gt;&lt;li&gt; set the size to 50 (This will change your icon size. Depending on your screen resolution, you might want to vary this. I am using 1280×800 and a size of 50 suits me well).&lt;/li&gt;&lt;li&gt;Uncheck &lt;em&gt;Expand&lt;/em&gt;.&lt;/li&gt;&lt;li&gt;Check &lt;em&gt;Autohide&lt;/em&gt;.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;On the Background tab, select ‘&lt;em&gt;Solid color&lt;/em&gt;‘. Under the style, drag the slider all the way to the left that says &lt;em&gt;Transparent&lt;/em&gt;. This will make the background of the panel transparent. Click ‘Close’.&lt;/p&gt; &lt;p&gt;You will now see the panel shrink to a mini dock on the bottom of the screen. Move your mouse over the panel and it will unhide itself. The workspace switcher does not blend in well with the panel, so right click and “Remove from panel”. At this moment, your panel should have only “&lt;em&gt;Show Desktop&lt;/em&gt;” and ‘&lt;em&gt;Trash&lt;/em&gt;‘ icons. Right click on the panel again and this time, select “&lt;em&gt;Add to panel&lt;/em&gt;“. Add the icon of the applications that you frequently use to the panel.&lt;/p&gt; &lt;p&gt;Everything seems fine with the dock except for one problem: it is not responsive enough to mouse movement. The default timing for the panel to unhide is 500ms. We need to change it to 100ms for better response. This can be solved easily. Open up a terminal. Type in&lt;/p&gt; &lt;p class="codeblock"&gt;gconf-editor&lt;/p&gt; &lt;p&gt;&lt;img src="http://maketecheasier.com/wp-content/uploads/2008/01/terminal.png" alt="terminal screenshot" /&gt;&lt;/p&gt; &lt;p&gt;This will open up the configuration editor. On the left, navigate to &lt;em&gt;apps -&gt; panel -&gt; toplevels -&gt; bottom_panel_screen0&lt;/em&gt;. On the right, scroll down to find the row with &lt;em&gt;unhide_delay&lt;/em&gt;. Change the value to 100. Exit the editor. Your panel is now responsive to your mouse.&lt;/p&gt; &lt;p&gt;&lt;img src="http://maketecheasier.com/wp-content/uploads/2008/01/configuration-editor-schreenshot.png" alt="configuration editor screenshot" /&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Changing the top panel&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;We are done with the bottom panel. Now we will deal with the top panel.&lt;/p&gt; &lt;p&gt;For a better uniform effect, it is a good idea to remove the Firefox and Evolution icons from the top panel and add them to the bottom panel. Right click on the Firefox icon and uncheck ‘&lt;em&gt;lock to panel&lt;/em&gt;‘. Right click again and select “&lt;em&gt;Remove from panel&lt;/em&gt;“. Do the same for the Evolution icon.&lt;/p&gt; &lt;p&gt;Right click on the panel and select ‘&lt;em&gt;Properties&lt;/em&gt;‘. Go to the Background tab. Select “&lt;em&gt;Solid Color&lt;/em&gt;” and under the style, drag the bar to the center (half way between the transparent and opaque). This will give a translucent appearance to the panel.&lt;/p&gt; &lt;p&gt;Remember just now we removed the window list from the bottom panel? Now we need to replace it back to the top panel. Right click on the top panel and select “&lt;em&gt;Add to panel&lt;/em&gt;“. Scroll down till you find the Window list icon. Click “&lt;em&gt;Add&lt;/em&gt;“.&lt;/p&gt; &lt;p&gt;If the window list is not align to the left, you can drag the bar on the left all the way to the left.&lt;/p&gt; &lt;p&gt;Done. You have just redesigned your desktop.&lt;/p&gt; &lt;p&gt;PS: For added effect, you might want to add &lt;a href="http://www.screenlets.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.screenlets.org');" title="screenlets" target="_blank"&gt;screenlets&lt;/a&gt; widget on your desktop. If your video card supports compiz, you can even have a Mac-style dashboard.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33644379-2761960499876258521?l=rudylie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rudylie.blogspot.com/feeds/2761960499876258521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33644379&amp;postID=2761960499876258521' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33644379/posts/default/2761960499876258521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33644379/posts/default/2761960499876258521'/><link rel='alternate' type='text/html' href='http://rudylie.blogspot.com/2009/02/ubuntu-tutorial-how-to-redesign-your.html' title='Ubuntu Tutorial: How To Redesign Your Desktop The ‘WOW’ Way'/><author><name>ZhouYu</name><uri>http://www.blogger.com/profile/10922209059812280786</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33644379.post-3842443666753676747</id><published>2008-12-16T13:24:00.000+07:00</published><updated>2008-12-16T13:25:56.247+07:00</updated><title type='text'>HOWTO CASify Zimbra</title><content type='html'>&lt;p&gt;&lt;a href="http://zimbra.com/" rel="nofollow"&gt;Zimbra&lt;/a&gt; is web suite for email, calendaring, and document collaboration. This guide makes it possible to use both the built-in authentication of Zimbra, and also provide a custom URL that allows access to Zimbra using your site's CAS implementation.&lt;/p&gt;  &lt;h3&gt;&lt;a name="CASifyingZimbra-1.ConfigureSSL"&gt;&lt;/a&gt;1. Configure SSL&lt;/h3&gt;  &lt;p&gt;The first requirement is that your Zimbra server's java keystore contain the appropriate SSL certificates for you CAS server. If you are using an SSL certificate on your CAS server that requires a "chaining certificate," such as &lt;a href="http://certs.ipsca.com/" rel="nofollow"&gt;ipsCA&lt;/a&gt;, you'll need to import the CA, the chain cert, and finally the cert for you CAS server.&lt;/p&gt; &lt;ul&gt;&lt;li&gt;Import your CAS certificate into the Zimbra cacerts &lt;div class="code panel" style="border-width: 1px;"&gt;&lt;div class="codeContent panelContent"&gt; &lt;pre class="code-java"&gt;/opt/zimbra/java/bin/keytool -&lt;span class="code-keyword"&gt;import&lt;/span&gt; -file yourfile.cer -alias cas -trustcacerts -keystore /opt/zimbra/java/jre/lib/security/cacerts&lt;/pre&gt; &lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;   &lt;ul&gt;&lt;li&gt;When using ipsCA, I used &lt;a href="http://certs.ipsca.com/Support/CSRJakarta-Tomcat.asp" rel="nofollow"&gt;ipsCA's guide&lt;/a&gt; for Tomcat to get the certs &lt;tt&gt;root_der.cer&lt;/tt&gt;, &lt;tt&gt;chain_der.cer&lt;/tt&gt;, &lt;tt&gt;mycasserver.example.com.cer&lt;/tt&gt; on my CAS server, which I then copied to my Zimbra server securely, and installed with the following command: &lt;div class="code panel" style="border-width: 1px;"&gt;&lt;div class="codeContent panelContent"&gt; &lt;pre class="code-java"&gt;/opt/zimbra/java/bin/keytool -&lt;span class="code-keyword"&gt;import&lt;/span&gt; -trustcacerts -keystore /opt/zimbra/java/jre/lib/security/cacerts -alias root -file root_der.cer&lt;br /&gt;/opt/zimbra/java/bin/keytool -&lt;span class="code-keyword"&gt;import&lt;/span&gt; -trustcacerts -keystore /opt/zimbra/java/jre/lib/security/cacerts -alias chain -file chain_der.cer&lt;br /&gt;/opt/zimbra/java/bin/keytool -&lt;span class="code-keyword"&gt;import&lt;/span&gt; -trustcacerts -keystore /opt/zimbra/java/jre/lib/security/cacerts -alias cas -file mycasserver.example.com.cer&lt;/pre&gt; &lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;   &lt;h3&gt;&lt;a name="CASifyingZimbra-2.Addjarfiles"&gt;&lt;/a&gt;2. Add jar files&lt;/h3&gt;  &lt;p&gt;You need to provide the necessary java libraries to your Zimbra server so it can use CAS.  These can be downloaded from &lt;a href="http://www.ibiblio.org/maven/cas/jars/" rel="nofollow"&gt;http://www.ibiblio.org/maven/cas/jars/&lt;/a&gt;.  A version known to work with CAS 3.0 and Zimbra 4.5 is &lt;a href="http://www.ibiblio.org/maven/cas/jars/casclient-2.1.1.jar" rel="nofollow"&gt;casclient-2.1.1.jar&lt;/a&gt;.&lt;/p&gt; &lt;ul&gt;&lt;li&gt;Copy the casclient.jar into &lt;tt&gt;/opt/zimbra/tomcat/common/lib&lt;/tt&gt;&lt;/li&gt;&lt;/ul&gt;   &lt;h3&gt;&lt;a name="CASifyingZimbra-3.Modifyweb.xml"&gt;&lt;/a&gt;3. Modify web.xml&lt;/h3&gt;  &lt;p&gt;Add the following lines to &lt;tt&gt;/opt/zimbra/tomcat/conf/zimbra.web.xml.in&lt;/tt&gt; (or &lt;tt&gt;/opt/zimbra/jetty/etc/zimbra.web.xml.in&lt;/tt&gt; for Zimbra 5.0), substituting the appropriate server names, ports and URLs as necessary for your setup. For Zimbra 4.5 this is about line 108 (or line 158 for Zimbra 5.0), just after all the other &lt;tt&gt;&lt;filter&gt;&lt;/filter&gt;&lt;/tt&gt; and &lt;tt&gt;&lt;filter-mapping&gt;&lt;/filter-mapping&gt;&lt;/tt&gt; sections but before the first &lt;tt&gt;&lt;servlet&gt;&lt;/servlet&gt;&lt;/tt&gt; section:&lt;/p&gt; &lt;div class="code panel" style="border-width: 1px;"&gt;&lt;div class="codeContent panelContent"&gt; &lt;pre class="code-xml"&gt;&lt;span class="code-tag"&gt;&lt;filter&gt;&lt;/filter&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="code-tag"&gt;&lt;filter-name&gt;&lt;/filter-name&gt;&lt;/span&gt;CAS Filter&lt;span class="code-tag"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="code-tag"&gt;&lt;filter-class&gt;&lt;/filter-class&gt;&lt;/span&gt;edu.yale.its.tp.cas.client.filter.CASFilter&lt;span class="code-tag"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="code-tag"&gt;&lt;init-param&gt;&lt;/init-param&gt;&lt;/span&gt;&lt;br /&gt;   &lt;span class="code-tag"&gt;&lt;param-name&gt;&lt;/param-name&gt;&lt;/span&gt;edu.yale.its.tp.cas.client.filter.loginUrl&lt;span class="code-tag"&gt;&lt;/span&gt;&lt;br /&gt;   &lt;span class="code-tag"&gt;&lt;param-value&gt;&lt;/param-value&gt;&lt;/span&gt;https://casserver.example.com:8443/cas/login&lt;span class="code-tag"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="code-tag"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="code-tag"&gt;&lt;init-param&gt;&lt;/init-param&gt;&lt;/span&gt;&lt;br /&gt;   &lt;span class="code-tag"&gt;&lt;param-name&gt;&lt;/param-name&gt;&lt;/span&gt;edu.yale.its.tp.cas.client.filter.validateUrl&lt;span class="code-tag"&gt;&lt;/span&gt;&lt;br /&gt;   &lt;span class="code-tag"&gt;&lt;param-value&gt;&lt;/param-value&gt;&lt;/span&gt;https://casserver.example.com:8443/cas/proxyValidate&lt;span class="code-tag"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="code-tag"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="code-tag"&gt;&lt;init-param&gt;&lt;/init-param&gt;&lt;/span&gt;&lt;br /&gt;   &lt;span class="code-tag"&gt;&lt;param-name&gt;&lt;/param-name&gt;&lt;/span&gt;edu.yale.its.tp.cas.client.filter.serverName&lt;span class="code-tag"&gt;&lt;/span&gt;&lt;br /&gt;   &lt;span class="code-tag"&gt;&lt;param-value&gt;&lt;/param-value&gt;&lt;/span&gt;zimbraserver.example.com:80&lt;span class="code-tag"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="code-tag"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="code-tag"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="code-tag"&gt;&lt;filter-mapping&gt;&lt;/filter-mapping&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="code-tag"&gt;&lt;filter-name&gt;&lt;/filter-name&gt;&lt;/span&gt;CAS Filter&lt;span class="code-tag"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="code-tag"&gt;&lt;url-pattern&gt;&lt;/url-pattern&gt;&lt;/span&gt;/*&lt;span class="code-tag"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="code-tag"&gt;&lt;/span&gt;&lt;/pre&gt; &lt;/div&gt;&lt;/div&gt;  &lt;h3&gt;&lt;a name="CASifyingZimbra-4.Runzmprov"&gt;&lt;/a&gt;4. Run zmprov&lt;/h3&gt;  &lt;div class="code panel" style="border-width: 1px;"&gt;&lt;div class="codeContent panelContent"&gt; &lt;pre class="code-java"&gt;zmprov gdpak yourmail.domain&lt;/pre&gt; &lt;/div&gt;&lt;/div&gt; &lt;p&gt;This will create a preAuthKey: &lt;tt&gt;359d722926fc3daebd0fee5d8b9dad9bbe1646e68041afa8ab662c6a9152e6b9&lt;/tt&gt;&lt;/p&gt;  &lt;h3&gt;&lt;a name="CASifyingZimbra-5.Configurepreauth.jsp"&gt;&lt;/a&gt;5. Configure preauth.jsp&lt;/h3&gt;  &lt;p&gt;Now you need to provide a new JSP page to Zimbra that authenticates your users using CAS instead of the built-in Zimbra auth.&lt;/p&gt; &lt;ol&gt;&lt;li&gt;Copy preauth.jsp (an attachment to this wiki page) to: &lt;tt&gt;/opt/zimbra/tomcat/webapps/zimbra&lt;/tt&gt; for Zimbra 4.5, or &lt;tt&gt;/opt/zimbra/jetty/webapps/zimbra&lt;/tt&gt; for Zimbra 5.0&lt;/li&gt;&lt;/ol&gt;   &lt;ol&gt;&lt;li&gt;Replace the DOMAIN_KEY with the key you generated with zmprov in step 4. &lt;div class="code panel" style="border-width: 1px;"&gt;&lt;div class="codeContent panelContent"&gt; &lt;pre class="code-java"&gt;&lt;span class="code-keyword"&gt;public&lt;/span&gt; &lt;span class="code-keyword"&gt;static&lt;/span&gt; &lt;span class="code-keyword"&gt;final&lt;/span&gt; &lt;span class="code-object"&gt;String&lt;/span&gt; DOMAIN_KEY = &lt;span class="code-quote"&gt;"359d722926fc3daebd0fee5d8b9dad9bbe1646e68041afa8ab662c6a9152e6b9"&lt;/span&gt;;&lt;/pre&gt; &lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;Add/Modify the following lines in the JSP page (around line 111), substituting in your zimbra server hostname for "yourdomain": &lt;div class="code panel" style="border-width: 1px;"&gt;&lt;div class="codeContent panelContent"&gt; &lt;pre class="code-java"&gt;           &lt;span class="code-object"&gt;String&lt;/span&gt; user = (&lt;span class="code-object"&gt;String&lt;/span&gt;)request.getSession().getAttribute(&lt;span class="code-quote"&gt;"edu.yale.its.tp.cas.client.filter.user"&lt;/span&gt;);&lt;br /&gt;         &lt;span class="code-object"&gt;String&lt;/span&gt; redirect = generateRedirect(request, user + &lt;span class="code-quote"&gt;"@yourdomain"&lt;/span&gt;);&lt;br /&gt;         response.sendRedirect(redirect);&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;   &lt;h3&gt;&lt;a name="CASifyingZimbra-6.RestartZimbra"&gt;&lt;/a&gt;6. Restart Zimbra&lt;/h3&gt;  &lt;p&gt;Zimbra needs to be restarted to recognize the new jars and config files:&lt;/p&gt; &lt;div class="code panel" style="border-width: 1px;"&gt;&lt;div class="codeContent panelContent"&gt; &lt;pre class="code-java"&gt;zmcontrol stop&lt;br /&gt;zmcontrol start&lt;/pre&gt; &lt;/div&gt;&lt;/div&gt; &lt;p&gt;I've found that it is necessary to restart the zimbra service as the root user to be sure everything comes up and uses the right ports.&lt;/p&gt; &lt;div class="code panel" style="border-width: 1px;"&gt;&lt;div class="codeContent panelContent"&gt; &lt;pre class="code-java"&gt;/etc/init.d/zimbra restart&lt;/pre&gt; &lt;/div&gt;&lt;/div&gt;  &lt;h3&gt;&lt;a name="CASifyingZimbra-7.Test"&gt;&lt;/a&gt;7. Test&lt;/h3&gt;  &lt;p&gt;Now, you should be able to point customers at the JSP preauth page you installed on the server and this will redirect to your CAS server for authentication, after which you will gain access to the Zimbra web software. An example URL would be (again, insert the hostname of your zimbra server):&lt;/p&gt; &lt;div class="preformatted panel" style="border-width: 1px;"&gt;&lt;div class="preformattedContent panelContent"&gt; &lt;pre&gt;http://zimbraserver.example.com/zimbra/preauth.jsp&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33644379-3842443666753676747?l=rudylie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rudylie.blogspot.com/feeds/3842443666753676747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33644379&amp;postID=3842443666753676747' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33644379/posts/default/3842443666753676747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33644379/posts/default/3842443666753676747'/><link rel='alternate' type='text/html' href='http://rudylie.blogspot.com/2008/12/howto-casify-zimbra.html' title='HOWTO CASify Zimbra'/><author><name>ZhouYu</name><uri>http://www.blogger.com/profile/10922209059812280786</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33644379.post-4641227788059118259</id><published>2008-11-21T11:45:00.000+07:00</published><updated>2008-11-21T11:49:05.146+07:00</updated><title type='text'>How to install zimbra</title><content type='html'>&lt;p&gt;This guide shows how to install the &lt;a mce_real_href="http://www.zimbra.com/" href="http://www.zimbra.com/" target="_blank"&gt;Zimbra Collaboration Suite (ZCS)&lt;/a&gt; on Ubuntu 6.10 (Edgy Eft) and 6.06 (Dapper Drake) server systems. Zimbra is a full-featured, open source collaboration suite - email, group calendaring, contacts, and web document management and authoring. It has a feature-rich AJAX web interface and is compatible with clients such as Microsoft Outlook, Apple Mail, and Novell Evolution so that mail, contacts, and calendar items can be synchronised from these to the ZCS server. It can also be synchronized to many mobile devices. ZCS makes use of many existing open source projects such as Postfix, MySQL, and OpenLDAP.&lt;/p&gt; &lt;p&gt;I do not issue any guarantee that this will work for you!&lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;h3&gt;1 Preliminary Note&lt;/h3&gt; &lt;p&gt;Please download the Ubuntu 6.10 or 6.06 server CD from &lt;a mce_real_href="http://www.ubuntu.com/download" href="http://www.ubuntu.com/download" target="_blank"&gt;http://www.ubuntu.com/download&lt;/a&gt; and install a basic Ubuntu system with it. Don't install/enable any services (e.g. like LAMP or DNS) - if you do, you'll have to disable them later on as they might interfere with Zimbra!&lt;/p&gt; &lt;p&gt;After the installation of the base system, we'll do some additional configuration, e.g. enable the root account, install an SSH daemon, apply a static IP address and a hostname to the system.&lt;/p&gt; &lt;p&gt;I will use the hostname &lt;span class="system"&gt;mail.example.com&lt;/span&gt; in this tutorial together with the IP address &lt;span class="system"&gt;192.168.0.110&lt;/span&gt;. Adjust this to your needs, but make sure that &lt;span class="system"&gt;mail.example.com&lt;/span&gt; has a valid MX record in DNS (&lt;span class="highlight"&gt;Zimbra needs this!&lt;/span&gt;). I assume you want to create email accounts for &lt;span class="system"&gt;example.com&lt;/span&gt; instead of &lt;span class="system"&gt;mail.example.com&lt;/span&gt;, so you should have an MX record for &lt;span class="system"&gt;example.com&lt;/span&gt; as well. &lt;/p&gt; &lt;p&gt;In this example the Zimbra server is in a local network (&lt;span class="system"&gt;192.168.0.110&lt;/span&gt; is a private IP address) behind a router, so make sure you use the router's public IP address (&lt;span class="system"&gt;1.2.3.4&lt;/span&gt; in this example) in the DNS records - of course this IP address should be static. If you have a dynamic IP address, you could use a service such as &lt;a mce_real_href="http://www.dyndns.com/" href="http://www.dyndns.com/" target="_blank"&gt;DynDNS.org&lt;/a&gt;, but keep in mind that most public IP addresses are blacklisted nowadays. &lt;/p&gt; &lt;p&gt;So if you use BIND on the authoritative name server for &lt;span class="system"&gt;example.com&lt;/span&gt;, you should have something like this in &lt;span class="system"&gt;example.com&lt;/span&gt;'s zone file:&lt;/p&gt; &lt;table class="" align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%"&gt;       &lt;tbody&gt;&lt;tr&gt;         &lt;td class=""&gt;       &lt;pre&gt;[...]&lt;br /&gt;mail.example.com.        A    1.2.3.4&lt;br /&gt;mail.example.com.        MX 0 mail.example.com.&lt;br /&gt;example.com.             MX 0 mail.example.com.&lt;br /&gt;[...]&lt;/pre&gt; &lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;If your Ubuntu server is behind router, make sure that you forward at least port 25 from your router to your Ubuntu server. &lt;/p&gt; &lt;p&gt;If your Ubuntu server is in a data center, it most likely has a static public IP address and a hostname, so you can skip chapter 1.3, but still you must make sure that this hostname has a valid MX record. &lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;h4&gt;1.1 Enable The root Account&lt;/h4&gt; &lt;p&gt;To enable the root account, run&lt;/p&gt; &lt;p class="command"&gt;sudo passwd root&lt;/p&gt; &lt;p&gt;and specify a password for root. &lt;/p&gt; &lt;p&gt;Afterwards, become root by running&lt;/p&gt; &lt;p class="command"&gt;su&lt;/p&gt; &lt;p&gt;All following commands in this tutorial are executed as root (unless something else is written)!&lt;br /&gt;&lt;/p&gt;&lt;h4&gt;1.2 Install The SSH Daemon&lt;/h4&gt; &lt;p&gt;Just run&lt;/p&gt; &lt;p class="command"&gt;apt-get install ssh openssh-server&lt;/p&gt; &lt;p&gt;to install the SSH daemon.   &lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;h4&gt;1.3 Apply A Static IP Address And Hostname&lt;/h4&gt; &lt;p&gt;Edit &lt;i class="system"&gt;/etc/network/interfaces &lt;/i&gt; and adjust it to your needs (in this example setup I will use the IP address &lt;i class="system"&gt;192.168.0.110&lt;/i&gt;): &lt;/p&gt; &lt;p class="command"&gt;vi /etc/network/interfaces&lt;/p&gt; &lt;table class="" align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%"&gt;   &lt;tbody&gt;&lt;tr&gt;     &lt;td class=""&gt;       &lt;pre&gt;# This file describes the network interfaces available on your system&lt;br /&gt;# and how to activate them. For more information, see interfaces(5).&lt;br /&gt;&lt;br /&gt;# The loopback network interface&lt;br /&gt;auto lo&lt;br /&gt;iface lo inet loopback&lt;br /&gt;&lt;br /&gt;# The primary network interface&lt;br /&gt;auto eth0&lt;br /&gt;iface eth0 inet static&lt;br /&gt;       address 192.168.0.110&lt;br /&gt;       netmask 255.255.255.0&lt;br /&gt;       network 192.168.0.0&lt;br /&gt;       broadcast 192.168.0.255&lt;br /&gt;       gateway 192.168.0.1&lt;/pre&gt;     &lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;Then restart your network: &lt;/p&gt; &lt;p class="command"&gt;&lt;i&gt;/etc/init.d/networking restart &lt;/i&gt;&lt;/p&gt; &lt;p&gt;Then edit &lt;span class="system"&gt;/etc/hosts&lt;/span&gt;. Make it look like this:&lt;/p&gt; &lt;p class="command"&gt;vi /etc/hosts&lt;/p&gt; &lt;table class="" align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%"&gt;   &lt;tbody&gt;&lt;tr&gt;     &lt;td class=""&gt;       &lt;pre&gt;127.0.0.1       localhost.localdomain    localhost&lt;br /&gt;192.168.0.110   mail.example.com      mail&lt;br /&gt;&lt;br /&gt;# The following lines are desirable for IPv6 capable hosts&lt;br /&gt;::1     ip6-localhost ip6-loopback&lt;br /&gt;fe00::0 ip6-localnet&lt;br /&gt;ff00::0 ip6-mcastprefix&lt;br /&gt;ff02::1 ip6-allnodes&lt;br /&gt;ff02::2 ip6-allrouters&lt;br /&gt;ff02::3 ip6-allhosts&lt;/pre&gt;     &lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;Now run&lt;/p&gt; &lt;p class="command"&gt;echo mail.example.com &gt; /etc/hostname&lt;/p&gt; &lt;p&gt;and reboot the system:&lt;/p&gt; &lt;p class="command"&gt;shutdown -r now&lt;/p&gt; &lt;p&gt;Afterwards, run&lt;/p&gt; &lt;p class="command"&gt;hostname&lt;br /&gt;  hostname -f&lt;/p&gt; &lt;p&gt;Both should show &lt;span class="system"&gt;mail.example.com&lt;/span&gt;. &lt;/p&gt; &lt;p&gt;From now on you can use an SSH client such as &lt;a mce_real_href="http://www.chiark.greenend.org.uk/%7Esgtatham/putty/download.html" href="http://www.chiark.greenend.org.uk/%7Esgtatham/putty/download.html" target="_blank"&gt;PuTTY&lt;/a&gt; and connect from your workstation to your Ubuntu server and follow the remaining steps from this tutorial. &lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;h4&gt;1.4 Disable The Ubuntu CD In /etc/apt/sources.list&lt;/h4&gt; &lt;p&gt;I like to install all packages over the internet instead of from the Ubuntu CD, therefore I disable the Ubuntu CD in &lt;span class="system"&gt;/etc/apt/sources.list&lt;/span&gt; now:&lt;/p&gt; &lt;p class="command"&gt;vi /etc/apt/sources.list &lt;/p&gt; &lt;p&gt;On Ubuntu 6.10 ("Edgy Eft"), comment out this line:&lt;/p&gt; &lt;table class="" align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%"&gt;   &lt;tbody&gt;&lt;tr&gt;     &lt;td class=""&gt;       &lt;pre&gt;[...]&lt;br /&gt;#deb cdrom:[Ubuntu-Server 6.10 _Edgy Eft_ - Release i386 (20061025.1)]/ edgy main restricted&lt;br /&gt;[...]&lt;/pre&gt;     &lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;On Ubuntu 6.06 ("Dapper Drake"), it's this line:&lt;/p&gt; &lt;table class="" align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%"&gt;   &lt;tbody&gt;&lt;tr&gt;     &lt;td class=""&gt;       &lt;pre&gt;[...]&lt;br /&gt;#deb cdrom:[Ubuntu-Server 6.06 _Dapper Drake_ - Release i386 (20060531)]/ dapper main restricted&lt;br /&gt;[...]&lt;/pre&gt;     &lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;Then update the packages database by running&lt;/p&gt; &lt;p class="command"&gt;apt-get update&lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;h4&gt;1.5 Disable Services&lt;/h4&gt; &lt;p&gt;If this is no fresh system and you have some services already running (such as Postfix, Apache, OpenLDAP), you must disable them first before installing Zimbra. Otherwise Zimbra will fail to install.&lt;/p&gt; &lt;p&gt;For example, to disable Postfix on your system, run&lt;/p&gt; &lt;p class="command"&gt;/etc/init.d/postfix stop&lt;br /&gt;update-rc.d -f postfix remove &lt;/p&gt; &lt;p&gt;The commands for the other services are similar.&lt;br /&gt;&lt;/p&gt;&lt;h3&gt;2 Change The Default Shell (Ubuntu 6.10 Edgy Eft Only)&lt;/h3&gt; &lt;p&gt;If you are on Ubuntu Edgy Eft, most probably &lt;span class="system"&gt;/bin/sh&lt;/span&gt; is a symlink to &lt;span class="system"&gt;/bin/dash&lt;/span&gt;, however we need &lt;span class="system"&gt;/bin/bash&lt;/span&gt;, not &lt;span class="system"&gt;/bin/dash&lt;/span&gt;. Therefore we do this:&lt;/p&gt; &lt;p class="command"&gt;rm -f /bin/sh&lt;br /&gt;  ln -s /bin/bash /bin/sh&lt;/p&gt; &lt;p&gt;If you don't do this, you will most likely get an error like this during the Zimbra installation:&lt;/p&gt; &lt;p class="system"&gt;Creating SSL certificate...Done&lt;br /&gt;  Initializing ldap...TLS: error:02001002:system library:fopen:No such file or directory bss_file.c:352&lt;br /&gt;  TLS: error:20074002:BIO routines:FILE_CTRL:system lib bss_file.c:354&lt;br /&gt;  TLS: error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib ssl_rsa.c:648&lt;br /&gt;  main: TLS init def ctx failed: -1&lt;br /&gt;ERROR - failed to start slapd&lt;/p&gt; &lt;p class="system"&gt;FAILED (1)&lt;/p&gt; &lt;p&gt;On Ubuntu Dapper Drake, &lt;span class="system"&gt;/bin/sh&lt;/span&gt; points to &lt;span class="system"&gt;/bin/bash&lt;/span&gt; by default, so everything is ok. &lt;/p&gt; &lt;p&gt;  &lt;/p&gt; &lt;h3&gt;3 Install Zimbra&lt;/h3&gt; &lt;p&gt;First let's install some prerequisites for Zimbra:&lt;/p&gt; &lt;p class="command"&gt;apt-get install curl fetchmail libpcre3 libgmp3c2 libexpat1 libxml2 libtie-ixhash-perl&lt;/p&gt; &lt;p&gt;Afterwards, go to &lt;a href="http://www.zimbra.com/community/downloads.html" target="_blank"&gt;http://www.zimbra.com/community/downloads.html&lt;/a&gt; and download the &lt;span class="system"&gt;Ubuntu 6 (.tgz)&lt;/span&gt; package to &lt;span class="system"&gt;/usr/src&lt;/span&gt;, for example like this:&lt;/p&gt; &lt;p class="command"&gt;cd /usr/src&lt;br /&gt;wget http://kent.dl.sourceforge.net/sourceforge/zimbra/zcs-4.5.3_GA_733.UBUNTU6.tgz&lt;/p&gt; &lt;p&gt;(Replace the download URL with the one you get from SourceForge.)&lt;/p&gt; &lt;p&gt;Afterwards, unpack the Zimbra &lt;span class="system"&gt;.tgz&lt;/span&gt; file and start the installer:&lt;/p&gt; &lt;p class="command"&gt;tar xvfz zcs-4.5.3_GA_733.UBUNTU6.tgz&lt;br /&gt;  cd zcs/&lt;br /&gt;./install.sh&lt;/p&gt; &lt;p&gt;The installer will ask a few questions. Answer them like this:&lt;/p&gt; &lt;p&gt;&lt;span class="system"&gt;Operations logged to /tmp/install.log.4416&lt;br /&gt;  Checking for existing installation...&lt;br /&gt;    zimbra-ldap...NOT FOUND&lt;br /&gt;    zimbra-logger...NOT FOUND&lt;br /&gt;    zimbra-mta...NOT FOUND&lt;br /&gt;    zimbra-snmp...NOT FOUND&lt;br /&gt;    zimbra-store...NOT FOUND&lt;br /&gt;    zimbra-apache...NOT FOUND&lt;br /&gt;    zimbra-spell...NOT FOUND&lt;br /&gt;    zimbra-core...NOT FOUND&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.&lt;br /&gt;ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU&lt;br /&gt;FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING&lt;br /&gt;THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY&lt;br /&gt;THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS&lt;br /&gt;AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.&lt;br /&gt;&lt;br /&gt;License Terms for the Zimbra Collaboration Suite:&lt;br /&gt;        http://www.zimbra.com/license/collaboration_suite_collective_license_1.0.html&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Press Return to continue&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- &lt;enter&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="system"&gt;Install zimbra-ldap [Y]&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- &lt;enter&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="system"&gt;Install zimbra-logger [Y]&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- &lt;enter&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="system"&gt;Install zimbra-mta [Y]&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- &lt;enter&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="system"&gt;Install zimbra-snmp [Y]&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- &lt;enter&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="system"&gt;Install zimbra-store [Y]&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- &lt;enter&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="system"&gt;Install zimbra-spell [Y]&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- &lt;enter&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="system"&gt;The system will be modified.  Continue? [N]&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- y&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="system"&gt;Main menu&lt;br /&gt;&lt;br /&gt;   1) Hostname:                                mail.example.com&lt;br /&gt;   2) Ldap master host:                        mail.example.com&lt;br /&gt;   3) Ldap port:                               389&lt;br /&gt;   4) Ldap password:                           set&lt;br /&gt;   5) zimbra-ldap:                             Enabled&lt;br /&gt;   6) zimbra-store:                            Enabled&lt;br /&gt;        +Create Admin User:                    yes&lt;br /&gt;        +Admin user to create:                 admin@mail.example.com&lt;br /&gt;******* +Admin Password                        UNSET&lt;br /&gt;        +Enable automated spam training:       yes&lt;br /&gt;        +Spam training user:                   spam.tukjrdnaco@mail.example.com&lt;br /&gt;        +Non-spam(Ham) training user:          ham.rg8fvq6cd4@mail.example.com&lt;br /&gt;        +Global Documents Account:             wiki@mail.example.com&lt;br /&gt;        +SMTP host:                            mail.example.com&lt;br /&gt;        +Web server HTTP port:                 80&lt;br /&gt;        +Web server HTTPS port:                443&lt;br /&gt;        +Web server mode:                      http&lt;br /&gt;        +Enable POP/IMAP proxy:                no&lt;br /&gt;        +IMAP server port:                     143&lt;br /&gt;        +IMAP server SSL port:                 993&lt;br /&gt;        +POP server port:                      110&lt;br /&gt;        +POP server SSL port:                  995&lt;br /&gt;        +Use spell check server:               yes&lt;br /&gt;        +Spell server URL:                     http://mail.example.com:7780/aspell.php&lt;br /&gt;&lt;br /&gt;   7) zimbra-mta:                              Enabled&lt;br /&gt;   8) zimbra-snmp:                             Enabled&lt;br /&gt;   9) zimbra-logger:                           Enabled&lt;br /&gt;  10) zimbra-spell:                            Enabled&lt;br /&gt;   r) Start servers after configuration        yes&lt;br /&gt;   s) Save config to file&lt;br /&gt;   x) Expand menu&lt;br /&gt;   q) Quit&lt;br /&gt;&lt;br /&gt;Address unconfigured (**) items  (? - help)&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- 6&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="system"&gt;Store configuration&lt;br /&gt;&lt;br /&gt;   1) Status:                                  Enabled&lt;br /&gt;   2) Create Admin User:                       yes&lt;br /&gt;   3) Admin user to create:                    admin@mail.example.com&lt;br /&gt;** 4) Admin Password                           UNSET&lt;br /&gt;   5) Enable automated spam training:          yes&lt;br /&gt;   6) Spam training user:                      spam.tukjrdnaco@mail.example.com&lt;br /&gt;   7) Non-spam(Ham) training user:             ham.rg8fvq6cd4@mail.example.com&lt;br /&gt;   8) Global Documents Account:                wiki@mail.example.com&lt;br /&gt;   9) SMTP host:                               mail.example.com&lt;br /&gt;  10) Web server HTTP port:                    80&lt;br /&gt;  11) Web server HTTPS port:                   443&lt;br /&gt;  12) Web server mode:                         http&lt;br /&gt;  13) Enable POP/IMAP proxy:                   no&lt;br /&gt;  14) IMAP server port:                        143&lt;br /&gt;  15) IMAP server SSL port:                    993&lt;br /&gt;  16) POP server port:                         110&lt;br /&gt;  17) POP server SSL port:                     995&lt;br /&gt;  18) Use spell check server:                  yes&lt;br /&gt;  19) Spell server URL:                        http://mail.example.com:7780/aspell.php&lt;br /&gt;&lt;br /&gt;Select, or 'r' for previous menu [r]&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- 4&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="system"&gt;Password for admin@mail.example.com (min 6 characters): [8BD.yZtFh]&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- [specify a password for the admin user, e.g. howtoforge]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="system"&gt;Select, or 'r' for previous menu [r]&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- &lt;enter&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="system"&gt;Main menu&lt;br /&gt;&lt;br /&gt;   1) Hostname:                                mail.example.com&lt;br /&gt;   2) Ldap master host:                        mail.example.com&lt;br /&gt;   3) Ldap port:                               389&lt;br /&gt;   4) Ldap password:                           set&lt;br /&gt;   5) zimbra-ldap:                             Enabled&lt;br /&gt;   6) zimbra-store:                            Enabled&lt;br /&gt;   7) zimbra-mta:                              Enabled&lt;br /&gt;   8) zimbra-snmp:                             Enabled&lt;br /&gt;   9) zimbra-logger:                           Enabled&lt;br /&gt;  10) zimbra-spell:                            Enabled&lt;br /&gt;   r) Start servers after configuration        yes&lt;br /&gt;   s) Save config to file&lt;br /&gt;   x) Expand menu&lt;br /&gt;   q) Quit&lt;br /&gt;&lt;br /&gt;*** CONFIGURATION COMPLETE - press 'a' to apply&lt;br /&gt;Select from menu, or press 'a' to apply config (? - help)&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- a&lt;/span&gt;&lt;br /&gt;&lt;span class="system"&gt;Save configuration data to a file? [Yes]&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- &lt;enter&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="system"&gt;Save config in file: [/opt/zimbra/config.5762]&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- &lt;enter&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="system"&gt;Saving config in /opt/zimbra/config.5762...Done&lt;br /&gt;The system will be modified - continue? [No]&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- y&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="system"&gt;You have the option of notifying Zimbra of your installation.&lt;br /&gt;This helps us to track the uptake of the Zimbra Collaboration Suite.&lt;br /&gt;The only information that will be transmitted is:&lt;br /&gt;        The VERSION of zcs installed (4.5.3_GA_733_UBUNTU6)&lt;br /&gt;        The ADMIN EMAIL ADDRESS created (admin@mail.example.com)&lt;br /&gt;&lt;br /&gt;Notify Zimbra of your installation? [Yes]&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- [if you want to notify Zimbra of your installation, type y, otherwise n]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="system"&gt;Configuration complete - press return to exit&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- &lt;enter&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;That's it already. To test if all Zimbra services are running, become the &lt;span class="system"&gt;zimbra&lt;/span&gt; user:&lt;/p&gt; &lt;p class="command"&gt;su - zimbra&lt;/p&gt; &lt;p&gt;and run&lt;/p&gt; &lt;p class="command"&gt;zmcontrol status&lt;/p&gt; &lt;p&gt;The output should look like this:&lt;/p&gt; &lt;p class="system"&gt;zimbra@mail:~$ zmcontrol status&lt;br /&gt;Host mail.example.com&lt;br /&gt;        antispam                Running&lt;br /&gt;        antivirus               Running&lt;br /&gt;        ldap                    Running&lt;br /&gt;        logger                  Running&lt;br /&gt;        mailbox                 Running&lt;br /&gt;        mta                     Running&lt;br /&gt;        snmp                    Running&lt;br /&gt;        spell                   Running&lt;/p&gt; &lt;p&gt;If not all services are started, run&lt;/p&gt; &lt;p class="command"&gt;zmcontrol start&lt;/p&gt; &lt;p&gt;Type&lt;/p&gt; &lt;p class="command"&gt;exit&lt;/p&gt; &lt;p&gt;to become root again.&lt;br /&gt;&lt;/p&gt;&lt;h3&gt;4 The Zimbra Web Interface&lt;/h3&gt; &lt;p&gt;Zimbra comes with a web interface for the administrator (&lt;span class="system"&gt;https://mail.example.com:7071/zimbraAdmin&lt;/span&gt;) and normal users (&lt;span class="system"&gt;http://mail.example.com&lt;/span&gt;). I'm going to show some basic screenshots here, but no help on how to use Zimbra. To learn how to use Zimbra, please refer to &lt;a href="http://www.zimbra.com/community/documentation.html" target="_blank"&gt;http://www.zimbra.com/community/documentation.html&lt;/a&gt; and &lt;a href="http://wiki.zimbra.com/" target="_blank"&gt;http://wiki.zimbra.com&lt;/a&gt;.&lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;h4&gt;4.1 The Administration Console &lt;/h4&gt; &lt;p&gt;You can now open a browser and open the Zimbra Administrator web interface. The URL is &lt;span class="system"&gt;https://mail.example.com:7071/zimbraAdmin&lt;/span&gt;. Log in with the username &lt;span class="system"&gt;admin&lt;/span&gt; and the password you specified during the Zimbra installation: &lt;/p&gt; &lt;p&gt;&lt;img src="http://images.howtoforge.com/images/zimbra_ubuntu/1.png" width="550" height="451" /&gt; &lt;/p&gt; &lt;p&gt;This is how the admin panel looks like: &lt;/p&gt; &lt;p&gt;&lt;img src="http://images.howtoforge.com/images/zimbra_ubuntu/2.png" width="550" height="451" /&gt;&lt;/p&gt; &lt;p&gt;You can find all pre-configured email addresses under &lt;span class="system"&gt;Accounts&lt;/span&gt;: &lt;/p&gt; &lt;p&gt;&lt;img src="http://images.howtoforge.com/images/zimbra_ubuntu/3.png" width="550" height="451" /&gt;&lt;/p&gt; &lt;p&gt;If you want to add a new domain (e.g. &lt;span class="system"&gt;example.com&lt;/span&gt; because you want email addresses of the form &lt;span class="system"&gt;user@example.com&lt;/span&gt; instead of &lt;span class="system"&gt;user@mail.example.com&lt;/span&gt;), click on &lt;span class="system"&gt;Domains&lt;/span&gt; and then on &lt;span class="system"&gt;New&lt;/span&gt;: &lt;/p&gt; &lt;p&gt;&lt;img src="http://images.howtoforge.com/images/zimbra_ubuntu/4.png" width="550" height="451" /&gt;&lt;/p&gt; &lt;p&gt;Create &lt;span class="system"&gt;example.com&lt;/span&gt;: &lt;/p&gt; &lt;p&gt;&lt;img src="http://images.howtoforge.com/images/zimbra_ubuntu/5.png" width="550" height="451" /&gt;&lt;/p&gt; &lt;p&gt;Afterwards, &lt;span class="system"&gt;example.com&lt;/span&gt; is listed in the domains list: &lt;/p&gt; &lt;p&gt;&lt;img src="http://images.howtoforge.com/images/zimbra_ubuntu/6.png" width="550" height="451" /&gt;&lt;/p&gt; &lt;p&gt;To create a new user, go to &lt;span class="system"&gt;Accounts&lt;/span&gt; and click on &lt;span class="system"&gt;New&lt;/span&gt;: &lt;/p&gt; &lt;p&gt;&lt;img src="http://images.howtoforge.com/images/zimbra_ubuntu/7.png" width="550" height="451" /&gt;&lt;/p&gt; &lt;p&gt;Follow the wizard to create a new email account. Take care that you select the right domain (&lt;span class="system"&gt;example.com&lt;/span&gt; vs. &lt;span class="system"&gt;mail.example.com&lt;/span&gt;): &lt;/p&gt; &lt;p&gt;&lt;img src="http://images.howtoforge.com/images/zimbra_ubuntu/8.png" width="550" height="451" /&gt;&lt;/p&gt; &lt;p&gt;Afterwards, mark the new account in the accounts list and click on &lt;span class="system"&gt;Edit&lt;/span&gt;: &lt;/p&gt; &lt;p&gt;&lt;img src="http://images.howtoforge.com/images/zimbra_ubuntu/9.png" width="550" height="451" /&gt;&lt;/p&gt; &lt;p&gt;Specify a password for the new account on the &lt;span class="system"&gt;General Information&lt;/span&gt; tab and click on &lt;span class="system"&gt;Save&lt;/span&gt;:&lt;/p&gt; &lt;p&gt;&lt;img src="http://images.howtoforge.com/images/zimbra_ubuntu/10.png" width="550" height="451" /&gt;&lt;/p&gt;&lt;h4&gt;4.2 The User Webinterface&lt;/h4&gt; &lt;p&gt;Now that you've created a normal user account, you can log out of the admin panel and go to &lt;span class="system"&gt;http://mail.example.com&lt;/span&gt;. Log in with the email address and the password of the new account: &lt;/p&gt; &lt;p&gt;&lt;img src="http://images.howtoforge.com/images/zimbra_ubuntu/11.png" width="550" height="451" /&gt;&lt;/p&gt; &lt;p&gt;This is how the user webinterface looks like. You have tabs to manage your emails, address book, calendar, documents, etc.&lt;/p&gt; &lt;p&gt;&lt;img src="http://images.howtoforge.com/images/zimbra_ubuntu/12.png" width="550" height="451" /&gt;&lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;h3&gt;5 Uninstall Zimbra &lt;/h3&gt; &lt;p&gt;If you want to uninstall Zimbra, do it like this:&lt;/p&gt; &lt;p&gt;Go the the Zimbra installation directory (I hope you didn't delete it):&lt;/p&gt; &lt;p class="command"&gt;cd /usr/src/zcs &lt;/p&gt; &lt;p&gt;Then run&lt;/p&gt; &lt;p class="command"&gt;./install.sh -u&lt;/p&gt; &lt;p&gt;and delete the Zimbra installation directory afterwards:&lt;/p&gt; &lt;p class="command"&gt;cd /usr/src&lt;br /&gt;rm -rf zcs  &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33644379-4641227788059118259?l=rudylie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rudylie.blogspot.com/feeds/4641227788059118259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33644379&amp;postID=4641227788059118259' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33644379/posts/default/4641227788059118259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33644379/posts/default/4641227788059118259'/><link rel='alternate' type='text/html' href='http://rudylie.blogspot.com/2008/11/how-to-install-zimbra.html' title='How to install zimbra'/><author><name>ZhouYu</name><uri>http://www.blogger.com/profile/10922209059812280786</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33644379.post-2669498050116426976</id><published>2008-10-06T22:22:00.000+07:00</published><updated>2008-10-06T22:25:01.106+07:00</updated><title type='text'>Turn Ubuntu 8.04 ( Hardy ) into Mac OS X</title><content type='html'>&lt;p&gt;You can’t really turn a Linux system to a Mac, but you definitely can make your Ubuntu Hardy looks like a Mac OSX Leopard.&lt;/p&gt; &lt;p&gt;If you want to change this&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/ubuntu-desktop-original.jpg" alt="ubuntu-desktop-original" width="304" border="0" height="227" /&gt; into&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/ubuntu-leopard-screenshot.jpg" alt="ubuntu-leopard-screenshot" width="304" border="0" height="192" /&gt; , follow the steps below.&lt;/p&gt; &lt;p&gt;&lt;span id="more-631"&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;em&gt;Before we start…&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;First, create a folder in your Home and name it &lt;em&gt;Mac_files.&lt;/em&gt; Download the following files to the Mac_files folder.&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;a href="http://maketecheasier.com/a/Mac4Lin_modified_theme/" target="_blank"&gt;Modified Mac4Lin theme&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://maketecheasier.com/a/Mac4Lin_Icons_modified/" target="_blank"&gt;Mac4Lin icon set&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://downloads.sourceforge.net/mac4lin/Mac4Lin_Wallpapers_Part3_v0.4.tar.gz?modtime=1198007584&amp;amp;big_mirror=0&amp;amp;filesize=12555519" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/downloads.sourceforge.net');"&gt;Mac4Lin wallpaper&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://gnome-look.org/CONTENT/content-files/66381-Elegant_glass.tgz" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/gnome-look.org');"&gt;Avant Windows Manager elegant glass theme&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Using Archive manager, extract the &lt;del datetime="2008-07-29T03:09:17+00:00"&gt;three Mac4Lin zip files&lt;/del&gt; &lt;em&gt;Modified Mac4Lin theme&lt;/em&gt; and &lt;em&gt;Mac4Lin wallpaper&lt;/em&gt; to the &lt;em&gt;Mac_files&lt;/em&gt; folder.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Apply Mac OSX Leopard Theme&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Go to &lt;em&gt;System-&gt;Preferences-&gt;Appearance&lt;/em&gt;.&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/appearance.jpg" alt="appearance" width="454" border="0" height="403" /&gt;&lt;/p&gt; &lt;p&gt;Select &lt;em&gt;Install&lt;/em&gt; and select the &lt;em&gt;Mac4Lin GTK theme&lt;/em&gt; &lt;em&gt;(/home/username/Mac_files/Mac4Lin_v0.4/GTK Metacity Theme/Mac4Lin_GTK_v0.4.tar.gz&lt;/em&gt;).&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/appearance-select-gtk-theme.jpg" alt="appearance-select-gtk-theme" width="454" border="0" height="316" /&gt;&lt;/p&gt; &lt;p&gt;Next, click &lt;em&gt;Install&lt;/em&gt; again and select the &lt;em&gt;Mac4Lin icon theme&lt;/em&gt;. &lt;em&gt;(&lt;del datetime="2008-07-29T03:09:17+00:00"&gt;/home/username/Mac_files/Mac4Lin_Icons_Part2_v0.4.tar.gz&lt;/del&gt; /home/username/Mac_files/Mac4Lin_Icons_modified.tar.gz)&lt;/em&gt;. When prompted, select “&lt;em&gt;Apply new themes&lt;/em&gt;“.&lt;/p&gt; &lt;p&gt;Click &lt;em&gt;Install&lt;/em&gt; again and select the &lt;em&gt;Mac4Lin mouse cursor theme&lt;/em&gt;. &lt;em&gt;(/home/username/Mac_files/Mac4Lin_v0.4/GTK Cursor Theme/Mac4Lin_Cursors_v0.4.tar.gz&lt;/em&gt;). Select “&lt;em&gt;Apply new themes&lt;/em&gt;” when prompted.&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/appearance-cursor-apply-theme.jpg" alt="appearance-cursor-apply-theme" width="404" border="0" height="169" /&gt;&lt;/p&gt; &lt;p&gt;Click ‘&lt;em&gt;customize’&lt;/em&gt; and choose &lt;em&gt;Mac4Lin_GTK_v0.4&lt;/em&gt;. Go to the “&lt;em&gt;Window border”&lt;/em&gt; tab, choose &lt;em&gt;Mac4Lin_GTK_v0.4&lt;/em&gt;. Click Close.&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/appearance-customize.jpg" alt="appearance-customize" width="335" border="0" height="440" /&gt;&lt;/p&gt; &lt;p&gt;On the top, go to the &lt;em&gt;Background&lt;/em&gt; tab. Click &lt;em&gt;Add&lt;/em&gt; and select the Leopard wallpaper. &lt;em&gt;(/home/username/Mac_files/Wallpapers/Leopard.jpg&lt;/em&gt;). Click &lt;em&gt;Close&lt;/em&gt; to terminate the Appearance window&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/appearance-select-wallpaper.jpg" alt="appearance-select-wallpaper" width="454" border="0" height="397" /&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Install the Dock (Avant Window Navigator)&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Open a terminal (&lt;em&gt;Applications-&gt;Accessories-&gt;Terminal&lt;/em&gt;) and type&lt;/p&gt; &lt;p class="codeblock"&gt;gksu gedit /etc/apt/sources.list&lt;/p&gt; &lt;p&gt;and add the following lines to the end of the file:&lt;/p&gt; &lt;p class="codeblock"&gt;deb http://ppa.launchpad.net/awn-testing/ubuntu hardy main&lt;br /&gt;deb-src http://ppa.launchpad.net/awn-testing/ubuntu hardy main&lt;/p&gt; &lt;p&gt;Save and close the file. In your terminal, type&lt;/p&gt; &lt;p class="codeblock"&gt;sudo apt-get update&lt;br /&gt;sudo apt-get install avant-window-navigator-trunk awn-manager-trunk awn-extras-applets-trunk&lt;/p&gt; &lt;p&gt;Go to &lt;em&gt;System-&gt;Preferences-&gt;AWN manager&lt;/em&gt;. On the left, click on the &lt;em&gt;Theme&lt;/em&gt;. On the right, click &lt;em&gt;Add&lt;/em&gt; and navigate to the &lt;em&gt;Mac_files&lt;/em&gt; folder. Select the &lt;em&gt;Elegant_glass.tgz file&lt;/em&gt;. Check the bullet beside the Elegant glass theme and click &lt;em&gt;Apply&lt;/em&gt;.&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/awn-select-theme.jpg" alt="awn-select-theme" width="454" border="0" height="361" /&gt;&lt;/p&gt; &lt;p&gt;Next on the left, click on the &lt;em&gt;Applet&lt;/em&gt; icon. On the right, scroll down to the stack Applet. Highlight it, then click Activate. This will add the Mac Leopard stack to your dock.&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/awn-select-applet.jpg" alt="awn-select-applet" width="454" border="0" height="362" /&gt;&lt;/p&gt; &lt;p&gt;Before you launch the AWN, remove the bottom panel from the &lt;a id="KonaLink0" target="_new" class="kLink" style="text-decoration: underline ! important; position: static;" href="http://maketecheasier.com/turn-your-ubuntu-hardy-to-mac-osx-leopard/2008/07/23#"&gt;&lt;span style="color: rgb(59, 120, 169) ! important; font-family: Arial,Verdana,Tahoma,Helvetica,sans-serif; font-weight: 400; font-size: 14px; position: static;color:#3b78a9;" &gt;&lt;span class="kLink" style="color: rgb(59, 120, 169) ! important; font-family: Arial,Verdana,Tahoma,Helvetica,sans-serif; font-weight: 400; font-size: 14px; position: static;"&gt;desktop&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; first. Right click on the bottom panel and select “&lt;em&gt;delete this panel”&lt;/em&gt;. Open AWN via &lt;em&gt;Applications-&gt;Accessories-&gt;Avant Window Navigator&lt;/em&gt;. Once it is activated, you can simply drag and drop the applications into the dock.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Install OSX Fonts&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Open a terminal and type the following:&lt;/p&gt; &lt;p class="codeblock"&gt;sudo apt-get install msttcorefonts&lt;/p&gt; &lt;p&gt;This will Install the Microsoft core fonts.&lt;/p&gt; &lt;p&gt;Next, copy the OSX fonts to the fonts folder&lt;/p&gt; &lt;p class="codeblock"&gt;cd /usr/share/fonts&lt;br /&gt;sudo tar xvzf /home/username/Mac_files/Mac4Lin_v0.4/Fonts/OSX_Fonts.tar.gz&lt;/p&gt; &lt;p&gt;Configure the fonts:&lt;/p&gt; &lt;p class="codeblock"&gt;cd/&lt;br /&gt;sudo tar xvjpf /home/username/Mac_files/Mac4Lin_v0.4/Fonts/fontconfig.tbz -C /etc/fonts&lt;/p&gt; &lt;p&gt;Open the Appearance window (&lt;em&gt;System-&gt;Preferences-&gt;Appearance&lt;/em&gt;) and select &lt;em&gt;Fonts&lt;/em&gt; tab. Select the following fonts according to the image below. Click Close.&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/appearance-configure-fonts.jpg" alt="appearance-configure-fonts" width="454" border="0" height="368" /&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Change the traffic light window control to the left&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;In the terminal, type&lt;/p&gt; &lt;p class="codeblock"&gt;gconf-editor&lt;/p&gt; &lt;p&gt;This will bring up the gconf-editor window. Scroll down to &lt;em&gt;App-&gt;Metacity-&gt;general&lt;/em&gt;. On the right, double click on the button_layout and change the content to &lt;em&gt;‘close,minimize,maximize:menu’&lt;/em&gt; (without the quote). Click &lt;em&gt;Ok&lt;/em&gt; and close the gconf-editor.&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/gconf-editor.jpg" alt="gconf-editor" width="548" border="0" height="440" /&gt;&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/gconf-editor2.jpg" alt="gconf-editor2" width="337" border="0" height="192" /&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Change the menubar&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Remove all the icon and applications on the left side of the top panel. Right-click on the icon and select &lt;em&gt;‘Remove from panel&lt;/em&gt;‘. You will left with something like this:&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/menubar-remove-icon.jpg" alt="menubar-remove-icon" width="554" border="0" height="18" /&gt;&lt;/p&gt; &lt;p&gt;On the right of the top panel, remove the logout icon. Still on the right hand side of the top panel, right click and select &lt;em&gt;‘Add to panel&lt;/em&gt;‘. Scroll down the list and add &lt;em&gt;‘Search for files&lt;/em&gt;‘. This will add the spotlight icon to the panel.&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/menubar-add-search.jpg" alt="menubar-add-search" width="454" border="0" height="423" /&gt;&lt;/p&gt; &lt;p&gt;On the extreme left, right-click and select &lt;em&gt;‘Add to panel&lt;/em&gt;‘. Scroll down the list and add &lt;em&gt;‘Main Menu&lt;/em&gt;‘. This will add the apple icon on the left. You can now log out and shut down from the Apple dropdown menu (same as Mac OSX).&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/menubar-add-mainmenu.jpg" alt="menubar-add-mainmenu" width="454" border="0" height="423" /&gt;&lt;/p&gt; &lt;p&gt;Next, we are going to install &lt;em&gt;globalmenu&lt;/em&gt; so as to display the menubar for each application. In your terminal,&lt;/p&gt; &lt;p class="codeblock"&gt;cd Mac_files&lt;br /&gt;wget http://gnome2-globalmenu.googlecode.com/files/gnome-globalmenu-0.4-svn964.tar.gz&lt;br /&gt;tar zxvf gnome-globalmenu-0.4-svn964.tar.gz&lt;br /&gt;cd globalmenu&lt;br /&gt;sudo dpkg -i *.deb&lt;/p&gt; &lt;p&gt;If you have any errors when installing the package, try&lt;/p&gt; &lt;p class="codeblock"&gt;sudo dpkg -i –force-overwrite *.deb&lt;/p&gt; &lt;p&gt;If you are having some installation problems with the &lt;em&gt;gnome-globalmenu-applet&lt;/em&gt;, try&lt;/p&gt; &lt;p class="codeblock"&gt;sudo apt-get install -f&lt;/p&gt; &lt;p&gt;Once finished, right click on the top panel and select &lt;em&gt;‘Add to panel&lt;/em&gt;‘. Scroll down the list and add &lt;em&gt;‘Global Menu Applet&lt;/em&gt;‘.&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/menubar-add-globalmenu.jpg" alt="menubar-add-globalmenu" width="454" border="0" height="420" /&gt;&lt;/p&gt; &lt;p&gt;You might not see anything initially. Log out and log in again, you should now see the menubar for each application showing on the panel.&lt;/p&gt; &lt;p&gt;If your &lt;em&gt;globalmenu&lt;/em&gt; is of a different shade of grey from the rest of the panel (as shown in the image below), right click on any empty space on the panel and select ‘&lt;em&gt;Properties&lt;/em&gt;‘. Go to Background tab and select &lt;em&gt;‘Background image’&lt;/em&gt;. Under the selection, go to &lt;em&gt;/home/username/.themes/Mac4Lin_GTK_v0.4/gtk-2.0/Panel&lt;/em&gt; and select &lt;em&gt;panel-bg.png&lt;/em&gt;. Click OK. (&lt;strong&gt;Updated&lt;/strong&gt;: If you can’t find the &lt;em&gt;.themes &lt;/em&gt;folder, right-click and select ‘&lt;em&gt;show hidden files&lt;/em&gt;‘.)&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/globalmenu-w-darkbg.jpg" alt="globalmenu-w-darkbg" width="554" border="0" height="19" /&gt;&lt;/p&gt; &lt;p&gt;Drag the &lt;em&gt;globalmenu&lt;/em&gt; to the left just beside the Apple icon. Right click on the globalmenu and select &lt;em&gt;‘Preferences’&lt;/em&gt;. Tick the box beside &lt;em&gt;‘Display the title of the current application&lt;/em&gt;‘ and put maximum width 100. Select the font to be &lt;em&gt;Lucida Grande Bold&lt;/em&gt;. Click &lt;em&gt;Apply&lt;/em&gt; and &lt;em&gt;OK&lt;/em&gt;. You should now have a desktop that resemble Mac Leopard.&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/globalmenu-preferences.jpg" alt="globalmenu-preferences" width="341" border="0" height="188" /&gt;&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/menubar-with-globalmenu.jpg" alt="menubar-with-globalmenu" width="554" border="0" height="19" /&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Configuring the Login screen&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Click on the Apple icon, go to &lt;em&gt;System-&gt;Administration-&gt;Login Window&lt;/em&gt;. On the &lt;em&gt;Local&lt;/em&gt; tab, click &lt;em&gt;Add&lt;/em&gt;. Navigate to the path &lt;em&gt;/filesystem/home/username/Mac_files/Mac4Lin_v0.4/GDM Theme&lt;/em&gt; and select the file &lt;em&gt;Mac4Lin_GDM_v0.4.tar.gz&lt;/em&gt;. Check the box beside the newly installed theme to activate it.&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/install-login-screen.jpg" alt="install-login-screen" width="343" border="0" height="440" /&gt;&lt;/p&gt; &lt;p&gt;Underneath, there is a color selection field, select it and key in the number &lt;em&gt;E5E5E5&lt;/em&gt; into the &lt;a id="KonaLink1" target="_new" class="kLink" style="text-decoration: underline ! important; position: static;" href="http://maketecheasier.com/turn-your-ubuntu-hardy-to-mac-osx-leopard/2008/07/23#"&gt;&lt;span style="color: rgb(59, 120, 169) ! important; font-family: Arial,Verdana,Tahoma,Helvetica,sans-serif; font-weight: 400; font-size: 14px; position: static;color:#3b78a9;" &gt;&lt;span class="kLink" style="color: rgb(59, 120, 169) ! important; font-family: Arial,Verdana,Tahoma,Helvetica,sans-serif; font-weight: 400; font-size: 14px; position: static;"&gt;color &lt;/span&gt;&lt;span class="kLink" style="color: rgb(59, 120, 169) ! important; font-family: Arial,Verdana,Tahoma,Helvetica,sans-serif; font-weight: 400; font-size: 14px; position: static;"&gt;code&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; field.&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/login-screen-color.jpg" alt="login-screen-color" width="454" border="0" height="263" /&gt;&lt;/p&gt; &lt;p&gt;Click &lt;em&gt;Ok&lt;/em&gt;. Log out. You should see the login screen as the diagram below.&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/login-screen.jpg" alt="login-screen" width="554" border="0" height="307" /&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Configure usplash screen&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;usplash is the screen that you see when your &lt;a id="KonaLink2" target="_new" class="kLink" style="text-decoration: underline ! important; position: static;" href="http://maketecheasier.com/turn-your-ubuntu-hardy-to-mac-osx-leopard/2008/07/23#"&gt;&lt;span style="color: rgb(59, 120, 169) ! important; font-family: Arial,Verdana,Tahoma,Helvetica,sans-serif; font-weight: 400; font-size: 14px; position: static;color:#3b78a9;" &gt;&lt;span class="kLink" style="color: rgb(59, 120, 169) ! important; font-family: Arial,Verdana,Tahoma,Helvetica,sans-serif; font-weight: 400; font-size: 14px; position: static;"&gt;computer&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; is booting up. We are going to change it to show the white apple screen. In your terminal,&lt;/p&gt; &lt;p class="codeblock"&gt;sudo apt-get install startupmanager&lt;/p&gt; &lt;p&gt;Go to &lt;em&gt;System-&gt;Administration-&gt;Start-Up Manager&lt;/em&gt; Go to &lt;em&gt;Appearance&lt;/em&gt; tab. Click on the &lt;em&gt;‘Manage bootloader theme&lt;/em&gt;‘. Click &lt;em&gt;Add&lt;/em&gt; and navigate to the file &lt;em&gt;/filesystem/home/username/Mac_files/Mac4Lin_v0.4/GRUB Splash/appleblack.xpm.gz&lt;/em&gt;. Check the box “&lt;em&gt;Use background image for bootloader menu&lt;/em&gt;” and select &lt;em&gt;‘appleblack&lt;/em&gt;”.&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/startupmanager-configuration.jpg" alt="startupmanager-configuration" width="454" border="0" height="419" /&gt;&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/startupmanager-addtheme.jpg" alt="startupmanager-addtheme" width="303" border="0" height="328" /&gt;&lt;/p&gt; &lt;p&gt;Next, click “&lt;em&gt;Manage usplash theme&lt;/em&gt;”. Click &lt;em&gt;Add&lt;/em&gt; and add the file &lt;em&gt;/filesystem/home/username/Mac_files/Mac4Lin_v0.4/USplash Theme/osx-splash.so&lt;/em&gt;. Click &lt;em&gt;OK&lt;/em&gt;. Select &lt;em&gt;OSX-splash&lt;/em&gt; from the dropdown box.&lt;/p&gt; &lt;p&gt;Now reboot. You should see the following images:&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/bootloader.jpg" alt="bootloader" width="454" border="0" height="342" /&gt;&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/usplash.jpg" alt="usplash" width="454" border="0" height="342" /&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Creating Dashboard effect&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;We will use a combination of &lt;a href="http://www.screenlets.org/" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/www.screenlets.org');"&gt;screenlets&lt;/a&gt; and Compiz widget plugin to achieve the dashboard effect.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Install Screenlets&lt;/strong&gt;&lt;/p&gt; &lt;p class="codeblock"&gt;sudo apt-get install screenlets compizconfig-settings-manager&lt;/p&gt; &lt;p&gt;Go to &lt;em&gt;System-&gt;Preferences-&gt;Advanced Desktop Effect Setting&lt;/em&gt;. On the Left, click on &lt;em&gt;Desktop&lt;/em&gt;. On the right, put a check beside &lt;em&gt;‘Widget layer’&lt;/em&gt;&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/ccsm-widget-setting.jpg" alt="ccsm-widget-setting" width="554" border="0" height="342" /&gt;&lt;/p&gt; &lt;p&gt;Go to &lt;em&gt;Accessories-&gt;Screenlets&lt;/em&gt;. Activate the widgets that you want to display. Right click on the widget and select &lt;em&gt;‘Properties’&lt;/em&gt;. Go to Options tab and select &lt;em&gt;‘Treat as widget’&lt;/em&gt;. Do this for all the widgets that you have activated.&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/screenlets-as-widget.jpg" alt="screenlets-as-widget" width="400" border="0" height="118" /&gt;&lt;/p&gt; &lt;p&gt;You can now see your dashboard in action by pressing F9.&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/dashboard-effect.jpg" alt="dashboard-effect" width="554" border="0" height="348" /&gt;&lt;/p&gt; &lt;p&gt;Done. You have completed the transformation of your Ubuntu desktop to Mac OSX Leopard.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Some screenshots:&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://maketecheasier.com/wp-content/uploads/2008/07/ubuntu-leopard-screenshot-big.jpg"&gt;&lt;img style="border-width: 0px;" src="http://maketecheasier.com/wp-content/uploads/2008/07/ubuntu-leopard-screenshot-big-thumb.jpg" alt="ubuntu-leopard-screenshot-big" width="594" border="0" height="373" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33644379-2669498050116426976?l=rudylie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rudylie.blogspot.com/feeds/2669498050116426976/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33644379&amp;postID=2669498050116426976' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33644379/posts/default/2669498050116426976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33644379/posts/default/2669498050116426976'/><link rel='alternate' type='text/html' href='http://rudylie.blogspot.com/2008/10/turn-ubuntu-804-hardy-into-mac-os-x.html' title='Turn Ubuntu 8.04 ( Hardy ) into Mac OS X'/><author><name>ZhouYu</name><uri>http://www.blogger.com/profile/10922209059812280786</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33644379.post-5354355199262114745</id><published>2008-09-10T16:30:00.000+07:00</published><updated>2008-09-10T16:31:17.628+07:00</updated><title type='text'>NFS Server and Client Configuration in Ubuntu</title><content type='html'>NFS was developed at a time when we weren’t able to share our drives like we are able to today - in the Windows environment. It offers the ability to share the hard disk space of a big server with many smaller clients. Again, this is a client/server environment. While this seems like a standard service to offer, it was not always like this. In the past, clients and servers were unable to share their disk space. &lt;p&gt;&lt;span id="more-157"&gt;&lt;/span&gt;Thin clients have no hard drives and thus need a “virtual” hard-disk. The NFS mount their hard disk from the server and, while the user thinks they are saving their documents to their local (thin client) disk, they are in fact saving them to the server. In a thin client environment, the root, usr and home partitions are all offered to the client from the server via NFS.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;NFS Advantages&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;• Local workstations use less disk space because commonly used data can be stored on a single machine and still remain accessible to others over the network.&lt;/p&gt; &lt;p&gt;• There is no need for users to have separate home directories on every network machine. Home directories could be set up on the NFS server and made available throughout the network.&lt;/p&gt; &lt;p&gt;• Storage devices such as floppy disks, CDROM drives, and Zip® drives can be used by other machines on the network. This may reduce the number of removable media drives throughout the network.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Install NFS Server in Ubuntu&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;sudo apt-get install nfs-kernel-server nfs-common portmap&lt;/p&gt; &lt;p&gt;When configuring portmap do =not= bind loopback. If you do you can either edit /etc/default/portmap using the following&lt;/p&gt; &lt;p&gt;sudo vi /etc/default/portmap&lt;/p&gt; &lt;p&gt;or use the following command&lt;/p&gt; &lt;p&gt;sudo dpkg-reconfigure portmap&lt;/p&gt; &lt;p&gt;Restart Portmap using the following command&lt;/p&gt; &lt;p&gt;sudo /etc/init.d/portmap restart&lt;/p&gt; &lt;p&gt;&lt;strong&gt;NFS Server Configuration &lt;/strong&gt;&lt;/p&gt; &lt;p&gt;NFS exports from a server are controlled by the file /etc/exports. Each line begins with the absolute path of a directory to be exported, followed by a space-seperated list of allowed clients.&lt;/p&gt; &lt;p&gt;You need to edit the exports file using the following command&lt;/p&gt; &lt;p&gt;sudo vi /etc/exports&lt;/p&gt; &lt;p&gt;Here are some quick examples of what you could add to your /etc/exports&lt;/p&gt; &lt;p&gt;For Full Read Write Permissions allowing any computer from 192.168.1.1 through 192.168.1.255&lt;/p&gt; &lt;p&gt;/files 192.168.1.1/24(rw,no_root_squash,async)&lt;/p&gt; &lt;p&gt;Or for Read Only from a single machine&lt;/p&gt; &lt;p&gt;/files 192.168.1.2 (ro,async)&lt;/p&gt; &lt;p&gt;save this file and exit&lt;/p&gt; &lt;p&gt;A client can be specified either by name or IP address. Wildcards (*) are allowed in names, as are netmasks (e.g. /24) following IP addresses, but should usually be avoided for security reasons.&lt;/p&gt; &lt;p&gt;A client specification may be followed by a set of options, in parenthesis. It is important not to leave any space between the last client specification character and the opening parenthesis, since spaces are intrepreted as client seperators.&lt;/p&gt; &lt;p&gt;Now you need to restart NFS server using the following command&lt;/p&gt; &lt;p&gt;sudo /etc/init.d/nfs-kernel-server restart&lt;/p&gt; &lt;p&gt;If you make changes to /etc/exports on a running NFS server, you can make these changes effective by issuing the command&lt;/p&gt; &lt;p&gt;sudo exportfs -a&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Install NFS client support in Ubuntu&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;sudo apt-get install portmap nfs-common&lt;/p&gt; &lt;p&gt;This will install all the required packages for nfs client&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Mounting manually&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Example to mount server.mydomain.com:/files to /files. In this example server.mydomain.com is the name of the server containing the nfs share, and files is the name of the share on the nfs server&lt;/p&gt; &lt;p&gt;The mount point /files must first exist on the client machine.&lt;/p&gt; &lt;p&gt;Create files directory using the following command&lt;/p&gt; &lt;p&gt;sudo mkdir files&lt;/p&gt; &lt;p&gt;You need to mount the share using the following command&lt;/p&gt; &lt;p&gt;sudo mount server.mydomain.com:/files /files&lt;/p&gt; &lt;p&gt;Now you may need to restart services using the following command&lt;/p&gt; &lt;p&gt;sudo /etc/init.d/portmap restart&lt;/p&gt; &lt;p&gt;sudo /etc/init.d/nfs-common restart&lt;/p&gt; &lt;p&gt;Mounting at boot using /etc/fstab&lt;/p&gt; &lt;p&gt;If you want to mount using fstab file&lt;/p&gt; &lt;p&gt;sudo vi /etc/fstab&lt;/p&gt; &lt;p&gt;In this example my /etc/fstab was like this&lt;/p&gt; &lt;p&gt;server.mydomain.com:/files /files nfs rsize=8192,wsize=8192,timeo=14,intr&lt;/p&gt; &lt;p&gt;Change “servername.mydomain.com:/files”, and “/files” to match your server name,share name, and the name of the mount point you created.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Firewall Ports for NFS &lt;/strong&gt;&lt;/p&gt; &lt;p&gt;If you have a firewall you need to make sure ports 32771, 111 and 2049 are open&lt;br /&gt;&lt;strong&gt;Testing Your Configuration&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Use the following command in terminal to test&lt;/p&gt; &lt;p&gt;mount /files&lt;/p&gt; &lt;p&gt;the mount point /files will be mounted from the server.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Reference&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;http://czarism.com/easy-peasy-ubuntu-linux-nfs-file-sharing&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33644379-5354355199262114745?l=rudylie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rudylie.blogspot.com/feeds/5354355199262114745/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33644379&amp;postID=5354355199262114745' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33644379/posts/default/5354355199262114745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33644379/posts/default/5354355199262114745'/><link rel='alternate' type='text/html' href='http://rudylie.blogspot.com/2008/09/nfs-server-and-client-configuration-in.html' title='NFS Server and Client Configuration in Ubuntu'/><author><name>ZhouYu</name><uri>http://www.blogger.com/profile/10922209059812280786</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33644379.post-8511186186645792515</id><published>2008-09-10T16:03:00.000+07:00</published><updated>2008-09-10T16:04:14.046+07:00</updated><title type='text'>cara remote MySQL</title><content type='html'>&lt;div class="post-content"&gt;             &lt;p&gt;Ada kalanya kita memerlukan untuk melakukan remote terhadap server mysql. Ini terjadi terutama apabila server aplikasi yang kita bangun terpisah dengan server database. Secara default mysql tidak mengijinkan komputer lain melakukan remote terhadap dirinya. Agar diijinkan untuk melakukan remot, maka lakukan langkah-langkah di bawah ini:&lt;/p&gt; &lt;p&gt;1. Berdo’alah dulu agar berhasil.&lt;br /&gt;2. Edit file my.cnf&lt;/p&gt; &lt;p&gt;#&lt;em&gt;vim /etc/mysql/my.cnf&lt;br /&gt;&lt;/em&gt;Cari teks berikut&lt;br /&gt;&lt;em&gt; bind-address = 127.0.0.1&lt;/em&gt;&lt;/p&gt; &lt;p&gt;ubah menjadi&lt;br /&gt;&lt;em&gt;bind-address = ip_mysql_server&lt;/em&gt;&lt;/p&gt; &lt;p&gt;3. Minum kopi dulu kalau ada&lt;/p&gt; &lt;p&gt;4. membuat user pada mysql&lt;/p&gt; &lt;p&gt;&lt;em&gt;#mysql -u root&lt;/em&gt; (enter)&lt;/p&gt; &lt;p&gt;Jika semua komputer diijinkan remote&lt;/p&gt; &lt;p&gt;&lt;em&gt;mysql&gt;create user ‘user’  identified by ‘password’;&lt;/em&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;    mysql&gt;grant all on *.* to ‘user’ identified by ‘password’;&lt;/em&gt;&lt;/p&gt; &lt;p&gt;Jika komputer dengan ip tertentu yang diijinkan remote&lt;/p&gt; &lt;p&gt;&lt;em&gt;mysql&gt;create user ‘user’@'ip_tertentu’  identified by ‘password’;&lt;/em&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;    mysql&gt;grant all on *.* to ‘user’@'ip_tertentu’ identified by ‘password’;&lt;/em&gt;&lt;/p&gt; &lt;p&gt;5. restartlah mysql server&lt;/p&gt; &lt;p&gt;&lt;em&gt;#/etc/init.d/mysql&lt;/em&gt; restart (enter)&lt;/p&gt; &lt;p&gt;6. Coba lakukan remote dari mysql front atau aplikasi sejenis. (selamat mencoba)&lt;/p&gt;               &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33644379-8511186186645792515?l=rudylie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rudylie.blogspot.com/feeds/8511186186645792515/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33644379&amp;postID=8511186186645792515' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33644379/posts/default/8511186186645792515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33644379/posts/default/8511186186645792515'/><link rel='alternate' type='text/html' href='http://rudylie.blogspot.com/2008/09/cara-remote-mysql.html' title='cara remote MySQL'/><author><name>ZhouYu</name><uri>http://www.blogger.com/profile/10922209059812280786</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33644379.post-7001898190697834183</id><published>2008-08-26T15:08:00.000+07:00</published><updated>2008-08-26T15:35:29.167+07:00</updated><title type='text'>Setting CAS with LDAP</title><content type='html'>Preparation :&lt;br /&gt;1.Apache Tomcat Server Installed + running&lt;br /&gt;2.LDAP Server ( ex: OpenLDAP )&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ja-sig.org/products/cas/"&gt;http://www.ja-sig.org/products/cas/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ja-sig.org/wiki/display/CASUM/Building+and+Deploying"&gt;http://www.ja-sig.org/wiki/display/CASUM/Building+and+Deploying&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ja-sig.org/wiki/display/CASUM/CAS+Quickly+%28LDAP%2C+Windows%2C+Apache+Directory+Server%29"&gt;http://www.ja-sig.org/wiki/display/CASUM/CAS+Quickly+%28LDAP%2C+Windows%2C+Apache+Directory+Server%29&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ja-sig.org/wiki/display/CASUM/LDAP"&gt;http://www.ja-sig.org/wiki/display/CASUM/LDAP&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://202.58.181.204/files/deployerConfigContext.xml"&gt;Sample of deployerConfigContext.xml&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33644379-7001898190697834183?l=rudylie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rudylie.blogspot.com/feeds/7001898190697834183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33644379&amp;postID=7001898190697834183' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33644379/posts/default/7001898190697834183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33644379/posts/default/7001898190697834183'/><link rel='alternate' type='text/html' href='http://rudylie.blogspot.com/2008/08/setting-cas-with-ldap.html' title='Setting CAS with LDAP'/><author><name>ZhouYu</name><uri>http://www.blogger.com/profile/10922209059812280786</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33644379.post-1518418277592645501</id><published>2008-08-16T12:51:00.000+07:00</published><updated>2008-08-16T12:52:00.696+07:00</updated><title type='text'>How to install PHP mssql library in Ubuntu 8.04</title><content type='html'>&lt;p&gt;I recently set up an Ubuntu server that needed to access a MSSQL database. The php5-sybase package sort of worked (the queries appeared to work, but data was missing). So, I set out to build some .deb packages with MSSQL support built in.&lt;/p&gt; &lt;p&gt;&lt;span id="more-113"&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;First make sure you have the Debian package development tools:&lt;/p&gt; &lt;p&gt;&lt;code&gt;apt-get install build-essential debhelper&lt;/code&gt;&lt;/p&gt; &lt;p&gt;(More tools might be needed depending on what you already have installed, but you will tend to get warnings about what is missing)&lt;/p&gt; &lt;p&gt;Then, download the PHP sources:&lt;/p&gt; &lt;p&gt;&lt;code&gt;apt-get source php5&lt;/code&gt;&lt;/p&gt; &lt;p&gt;(The current version in the Ubuntu repositories at this time is php5-5.1.2, so adjust for version numbers in the future.)&lt;/p&gt; &lt;p&gt;And you will need all the dependencies for building PHP:&lt;/p&gt; &lt;p&gt;&lt;code&gt;apt-get build-dep php5&lt;/code&gt;&lt;/p&gt; &lt;p&gt;Change into the debian build directory for PHP:&lt;/p&gt; &lt;p&gt;&lt;code&gt;cd php5-5.1.2/debian&lt;/code&gt;&lt;/p&gt; &lt;p&gt;The first step is to edit the â€œmodulelistâ€? file. Insert a line above the one that says&lt;/p&gt; &lt;p&gt;&lt;code&gt;mysql MySQL&lt;/code&gt;&lt;/p&gt; &lt;p&gt;with the contents:&lt;/p&gt; &lt;p&gt;&lt;code&gt;mssql MSSQL&lt;/code&gt;&lt;/p&gt; &lt;p&gt;Next, edit the file “rules” and look for the section starting with “configure-apache2-stamp”. You will see a line similar to:&lt;/p&gt; &lt;p&gt;&lt;code&gt;--with-mysql=shared,/usr&lt;/code&gt;&lt;/p&gt; &lt;p&gt;Open a line above this with the contents:&lt;/p&gt; &lt;p&gt;&lt;code&gt;--with-mssql=shared,/usr&lt;/code&gt;&lt;/p&gt; &lt;p&gt;Make sure not to forget the backslash on the end.Now, we must edit the “control” file in the same directory. Add this to the end of the file:&lt;/p&gt; &lt;pre style="font-size: 11px;"&gt;Package: php5-mssql&lt;br /&gt;Architecture: any&lt;br /&gt;Depends: ${shlibs:Depends}, ${misc:Depends}, ${php:Depends}, php5-common (= ${Source-Version})&lt;br /&gt;Description: MSSQL module for php5&lt;br /&gt;This package provides a module for MSSQL using FreeTDS.&lt;br /&gt;.&lt;br /&gt;PHP5 is an HTML-embedded scripting language. Much of its syntax is borrowed&lt;br /&gt;from C, Java and Perl with a couple of unique PHP-specific features thrown&lt;br /&gt;in. The goal of the language is to allow web developers to write&lt;br /&gt;dynamically generated pages quickly.&lt;/pre&gt; &lt;p&gt;Move up a directory.&lt;/p&gt; &lt;p&gt;&lt;code&gt;cd ..&lt;/code&gt;&lt;/p&gt; &lt;p&gt;Now, run:&lt;/p&gt; &lt;p&gt;&lt;code&gt;dpkg-buildpackage&lt;/code&gt;&lt;/p&gt; &lt;p&gt;And go get something to eat. This will do the whole configure/compile for PHP and create debs in the parent directory. When this process is done, move up to the parent directory:&lt;/p&gt; &lt;p&gt;&lt;code&gt;cd ..&lt;/code&gt;&lt;/p&gt; &lt;p&gt;And, you will see all of the PHP debs, including the new php5-mssql_[version].deb&lt;/p&gt; &lt;p&gt;Run a dpkg -i on the ones you need, and you should be all set to connect to MSSQL databases.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33644379-1518418277592645501?l=rudylie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rudylie.blogspot.com/feeds/1518418277592645501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33644379&amp;postID=1518418277592645501' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33644379/posts/default/1518418277592645501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33644379/posts/default/1518418277592645501'/><link rel='alternate' type='text/html' href='http://rudylie.blogspot.com/2008/08/how-to-install-php-mssql-library-in.html' title='How to install PHP mssql library in Ubuntu 8.04'/><author><name>ZhouYu</name><uri>http://www.blogger.com/profile/10922209059812280786</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33644379.post-9164241910625349372</id><published>2008-08-13T16:42:00.000+07:00</published><updated>2008-08-13T21:45:49.083+07:00</updated><title type='text'>Installing Tomcat 6 Ubuntu 8.04</title><content type='html'>If you are running Ubuntu and want to use the Tomcat servlet container, you should not use the version from the repositories as it just doesn't work correctly. Instead you'll need to use the manual installation process that I'm outlining here. &lt;p&gt;Before you install Tomcat you'll want to make sure that you've installed Java. I would assume if you are trying to install Tomcat you've already installed java, but if you aren't sure you can check with the dpkg command like so:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;dpkg –get-selections | grep sun-java&lt;/p&gt; &lt;/blockquote&gt; &lt;p&gt;This should give you this output if you already installed java:&lt;/p&gt; &lt;blockquote&gt;&lt;pre&gt;sun-java6-bin                                   install&lt;br /&gt;sun-java6-jdk                                   install&lt;br /&gt;sun-java6-jre                                   install&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt; &lt;p&gt;If that command has no results, you'll want to install the latest version with this command:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;sudo apt-get install sun-java6-jdk&lt;/p&gt; &lt;/blockquote&gt; &lt;p&gt;&lt;strong&gt;Installation&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Now we'll download and extract Tomcat from the &lt;a href="http://tomcat.apache.org/"&gt;apache site&lt;/a&gt;. You should check to make sure there's not another version and adjust accordingly.&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;wget http://apache.hoxt.com/tomcat/tomcat-6/v6.0.14/bin/apache-tomcat-6.0.14.tar.gz&lt;/p&gt; &lt;p&gt;tar xvzf apache-tomcat-6.0.14.tar.gz&lt;/p&gt; &lt;/blockquote&gt; &lt;p&gt;The best thing to do is move the tomcat folder to a permanent location. I chose /usr/local/tomcat, but you could move it somewhere else if you wanted to.&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;sudo mv apache-tomcat-6.0.14 /usr/local/tomcat &lt;/p&gt; &lt;/blockquote&gt; &lt;p&gt;Tomcat requires setting the JAVA_HOME variable. The best way to do this is to set it in your .bashrc file. You could also edit your startup.sh file if you so chose.&lt;/p&gt; &lt;p&gt;The better method is editing your .bashrc file and adding the bolded line there. You'll have to logout of the shell for the change to take effect.&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;vi ~/.bashrc&lt;/p&gt; &lt;/blockquote&gt; &lt;p&gt;Add the following line:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;export JAVA_HOME=/usr/lib/jvm/java-6-sun &lt;/p&gt; &lt;/blockquote&gt; &lt;p&gt;At this point you can start tomcat by just executing the startup.sh script in the tomcat/bin folder.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Automatic Starting&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;To make tomcat automatically start when we boot up the computer, you can add a script to make it auto-start and shutdown.&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;sudo vi /etc/init.d/tomcat&lt;/p&gt; &lt;/blockquote&gt; &lt;p&gt;Now paste in the following: &lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;# Tomcat auto-start&lt;br /&gt;#&lt;br /&gt;# description: Auto-starts tomcat&lt;br /&gt;# processname: tomcat&lt;br /&gt;# pidfile: /var/run/tomcat.pid &lt;/p&gt; &lt;p&gt;export JAVA_HOME=/usr/lib/jvm/java-6-sun &lt;/p&gt; &lt;p&gt;case $1 in&lt;br /&gt;start)&lt;br /&gt;    sh /usr/local/tomcat/bin/startup.sh&lt;br /&gt;    ;;&lt;br /&gt;stop)&lt;br /&gt;    sh /usr/local/tomcat/bin/shutdown.sh&lt;br /&gt;    ;;&lt;br /&gt;restart)&lt;br /&gt;    sh /usr/local/tomcat/bin/shutdown.sh&lt;br /&gt;    sh /usr/local/tomcat/bin/startup.sh&lt;br /&gt;    ;;&lt;br /&gt;esac&lt;br /&gt;exit 0&lt;/p&gt; &lt;/blockquote&gt; &lt;p&gt;You'll need to make the script executable by running the chmod command: &lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;sudo chmod 755 /etc/init.d/tomcat&lt;/p&gt; &lt;/blockquote&gt; &lt;p&gt;The last step is actually linking this script to the startup folders with a symbolic link. Execute these two commands and we should be on our way. &lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;sudo ln -s /etc/init.d/tomcat /etc/rc1.d/K99tomcat&lt;br /&gt;sudo ln -s /etc/init.d/tomcat /etc/rc2.d/S99tomcat&lt;/p&gt; &lt;/blockquote&gt; &lt;p&gt;Tomcat should now be fully installed and operational. Enjoy!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33644379-9164241910625349372?l=rudylie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rudylie.blogspot.com/feeds/9164241910625349372/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33644379&amp;postID=9164241910625349372' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33644379/posts/default/9164241910625349372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33644379/posts/default/9164241910625349372'/><link rel='alternate' type='text/html' href='http://rudylie.blogspot.com/2008/08/install-tomcat-6-ubuntu-804.html' title='Installing Tomcat 6 Ubuntu 8.04'/><author><name>ZhouYu</name><uri>http://www.blogger.com/profile/10922209059812280786</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33644379.post-3549436663351421742</id><published>2008-08-13T11:52:00.000+07:00</published><updated>2008-08-13T11:53:15.680+07:00</updated><title type='text'>Setting FTP Server di Ubuntu 8.04</title><content type='html'>I believe I finally have vsftp installed and working securely, but it took me one heck of a time to figure it out and find a reference. The reason I am posting this here is for 2 reasons: 1) to share my new found knowledge of vsftp and 2) for the experts in the forum to review my steps and make sure they are, in fact, as secure as they can be.&lt;br /&gt;&lt;br /&gt;My goal with vsftp was to create an ftp user that was chrooted (jailed) in a directory in my apache http folder and all communication to go through port 21. This username and password should not have shell or any other access on the computer. So to start I installed the program: &lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;"&gt;sudo apt-get install vsftpd&lt;/pre&gt; &lt;/div&gt;This even launched the deamon for me. Immediately I wanted to change a few things on the config so stop the vsftp process and edit the config file:&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 50px; text-align: left;"&gt;sudo /etc/init.d/vsftpd stop&lt;br /&gt;sudo vi /etc/vsftpd.conf&lt;/pre&gt; &lt;/div&gt;I changed these lines:&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 242px; text-align: left;"&gt;# Turn off anonymous users&lt;br /&gt;anonymous_enable=NO&lt;br /&gt;&lt;br /&gt;# Turn on local users&lt;br /&gt;local_enable=YES&lt;br /&gt;&lt;br /&gt;# Users should be able to write&lt;br /&gt;write_enable=YES&lt;br /&gt;&lt;br /&gt;# I don't give access to port 20 so turn this off&lt;br /&gt;connect_from_port_20=NO&lt;br /&gt;&lt;br /&gt;# chroot everyone&lt;br /&gt;chroot_local_user=YES&lt;/pre&gt; &lt;/div&gt;With this configuration anyone who is a local computer user can log into ftp. I don't even want to tempt my web developers with ssh access to login with ftp and send out all their information with clear text. I want a dedicated ftp user with a home directory in the httpdocs folder and no shell access and set his password.&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 50px; text-align: left;"&gt;sudo useradd -d /var/www/path/to/chrooted/home/dir -s /usr/sbin/nologin ftpuser&lt;br /&gt;sudo passwd ftpuser&lt;/pre&gt; &lt;/div&gt;Remember to change the permissions of the home dir to allow ftpuser to read and write into it.&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 50px; text-align: left;"&gt;sudo chown /var/www/path/to/chrooted/home/dir -R ftpuser&lt;br /&gt;sudo chmod 775 /var/www/path/to/chrooted/home/dir&lt;/pre&gt; &lt;/div&gt;I only want that user to be able to login into the ftp so I create the file vsftpd.userlist in the /etc/ folder:&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;"&gt;sudo vi /etc/vsftpd.userlist&lt;/pre&gt; &lt;/div&gt;and add the user/users I want to give ftp access&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;"&gt;ftpuser&lt;/pre&gt; &lt;/div&gt;save the file and open the vsftpd.conf file again:&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;"&gt;sudo vi /etc/vsftpd.conf&lt;/pre&gt; &lt;/div&gt;and add these lines to the end of the file&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 114px; text-align: left;"&gt;# the list of users to give access&lt;br /&gt;userlist_file=/etc/vsftpd.userlist&lt;br /&gt;# this list is on&lt;br /&gt;userlist_enable=YES&lt;br /&gt;# It is not a list of users to deny ftp access&lt;br /&gt;userlist_deny=NO&lt;/pre&gt; &lt;/div&gt;'man vsftpd.conf' can give you a better handle on the different options in vsftpd.conf.&lt;br /&gt;&lt;br /&gt;Start up the vsftpd:&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;"&gt;sudo /etc/init.d/vsftpd start&lt;/pre&gt; &lt;/div&gt;So now vsftpd is configured and you try to login with ftpuser and wait you get a permission denied error. What the?&lt;br /&gt;&lt;br /&gt;The problem is with the shell set to /usr/sbin/nologin isn't letting the user log in, but I still don't want this user to have shell access. The trick here, and I would love an explanation as to why this isn't already done, is to add the nologin shell to the /etc/shells file:&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;"&gt;sudo vi /etc/shells&lt;/pre&gt; &lt;/div&gt;It should look something like&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 162px; text-align: left;"&gt;...&lt;br /&gt;/bin/ksh&lt;br /&gt;/usr/bin/rc&lt;br /&gt;/usr/bin/tcsh&lt;br /&gt;/bin/tcsh&lt;br /&gt;/usr/bin/esh&lt;br /&gt;/bin/dash&lt;br /&gt;/bin/bash&lt;br /&gt;/bin/rbash&lt;/pre&gt; &lt;/div&gt;add a new line for the nologin shell:&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;"&gt;/usr/sbin/nologin&lt;/pre&gt; &lt;/div&gt;There it is that is it. You set up a ftp user without shell access chrooted into a folder.&lt;br /&gt;To add to my organization I added the user to a group called ftpusers:&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 50px; text-align: left;"&gt;sudo addgroup ftpusers&lt;br /&gt;sudo usermod -Gftpusers ftpuser&lt;/pre&gt; &lt;/div&gt;Hope that helps anyone with a similar problem as I had.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33644379-3549436663351421742?l=rudylie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rudylie.blogspot.com/feeds/3549436663351421742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33644379&amp;postID=3549436663351421742' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33644379/posts/default/3549436663351421742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33644379/posts/default/3549436663351421742'/><link rel='alternate' type='text/html' href='http://rudylie.blogspot.com/2008/08/setting-ftp-server-di-ubuntu-804.html' title='Setting FTP Server di Ubuntu 8.04'/><author><name>ZhouYu</name><uri>http://www.blogger.com/profile/10922209059812280786</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
