<?xml version="1.0" encoding="UTF-8" standalone="no"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:gd="http://schemas.google.com/g/2005" xmlns:georss="http://www.georss.org/georss" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-5493482958642955820</atom:id><lastBuildDate>Fri, 13 Sep 2024 17:47:42 +0000</lastBuildDate><category>Ubuntu</category><category>Squid</category><category>MySql</category><category>PC Router</category><category>Java</category><category>Mail</category><category>Tip And Trik Blog</category><category>Webmail</category><category>monitoring</category><title>Ubuntu Indo</title><description>This is only For Education or Tutorial for all - ( 20 - Mochamad Januaridwan )</description><link>http://ubuntu-indo.blogspot.com/</link><managingEditor>noreply@blogger.com (Ubuntu Indo)</managingEditor><generator>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:subtitle>This is only For Education or Tutorial for all - ( 20 - Mochamad Januaridwan )</itunes:subtitle><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5493482958642955820.post-9055809990101771101</guid><pubDate>Sun, 03 Feb 2013 09:03:00 +0000</pubDate><atom:updated>2013-02-03T16:04:24.650+07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">MySql</category><title>Konfigurasi MySQL Connector  JDBC Di Ubuntu dan Windows</title><description>&lt;div style="font-family: Verdana,sans-serif; text-align: center;"&gt;
&lt;span style="font-size: x-small;"&gt;&lt;img alt="" src="https://lh4.googleusercontent.com/-j09nJ9rybf8/TvC-JO3DLWI/AAAAAAAABgQ/qJ8iHF5Boc8/s288/JDBC.jpg" /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana,sans-serif;"&gt;
&lt;span style="font-size: x-small;"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Step 1 : Kebutuhan&lt;/span&gt;&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol style="font-family: Verdana,sans-serif;"&gt;&lt;ol&gt;
&lt;li&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-size: x-small;"&gt;Jdk&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-size: x-small;"&gt;Download : &lt;a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html" target="_blank"&gt;http://www.oracle.com/technetwork/java/javase/downloads/index.html&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-size: x-small;"&gt;Install (Microsoft Windows (XP/Vista/7) &amp;amp; Ubuntu): &lt;a href="http://sidiq.mercubuana-yogya.ac.id/2010/09/installasi-dan-konfigurasi-java-jdk-dan-jre-di-ubuntu-dan-windows/" target="_blank"&gt;http://sidiq.mercubuana-yogya.ac.id/2010/09/installasi-dan-konfigurasi-java-jdk-dan-jre-di-ubuntu-dan-windows/&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;div style="font-family: Verdana,sans-serif;"&gt;
&lt;span style="font-size: x-small;"&gt;&lt;strong&gt;&lt;br /&gt;
&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="right" style="font-family: Verdana,sans-serif;"&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span id="more-203"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol style="font-family: Verdana,sans-serif;"&gt;
&lt;li&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-size: x-small;"&gt;Xampp / Lampp&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="text-decoration: underline;"&gt;Microsoft Windows (XP/Vista/7)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;blockquote&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-size: x-small;"&gt;Download : &lt;a href="http://www.apachefriends.org/en/xampp-windows.html" target="_blank"&gt;http://www.apachefriends.org/en/xampp-windows.html&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-size: x-small;"&gt;Install : Double klik File xampp-win32-1.7.3.exe&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="text-decoration: underline;"&gt;Ubuntu (Linux)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;blockquote&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-size: x-small;"&gt;Download : &lt;a href="http://www.apachefriends.org/en/xampp-linux.html" target="_blank"&gt;http://www.apachefriends.org/en/xampp-linux.html&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-size: x-small;"&gt;Install :&lt;/span&gt;&lt;/div&gt;
&lt;pre class="wrap" id="sources-list-entries" style="border-color: gray; border-style: solid; border-width: 1px; line-height: 13px; margin: 1em 0px; padding: 0.3em; text-align: left; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span style="font-size: x-small;"&gt;dnd@riyaniezt:~$ sudo tar xvfz xampp-linux-1.7.3a.tar.gz -C /opt&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-size: x-small;"&gt;JDBC&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-size: x-small;"&gt;Download “MySQL Connector For Java” : &lt;a href="http://dev.mysql.com/downloads/connector/j/" target="_blank"&gt;http://dev.mysql.com/downloads/connector/j/&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Verdana,sans-serif;"&gt;
&lt;span style="font-size: x-small;"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Step 2 : Install&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana,sans-serif;"&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="text-decoration: underline;"&gt;Microsoft Windows (XP/Vista/7)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol style="font-family: Verdana,sans-serif;"&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;Ekstrak file “mysql-connector-java-5.1.18.tar.gz”.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;copy-kan file “mysql-connector-java-5.1.18-bin.jar” ke directory : “C:\Program Files\Java\jdk1.7.0_02\lib”.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Verdana,sans-serif;"&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="text-decoration: underline;"&gt;Ubuntu (Linux) &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol style="font-family: Verdana,sans-serif;"&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;Ekstrak file “mysql-connector-java-5.1.18.tar.gz”&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;Copy-kan file “mysql-connector-java-5.1.18-bin.jar” ke directory : “/opt/java/jdk1.7.0_02/lib/”,Console :
&lt;/span&gt;&lt;pre class="wrap" id="sources-list-entries" style="border: 1px solid gray; line-height: 13px; margin: 1em 0px; padding: 0.3em; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span style="font-size: x-small;"&gt;dnd@riyaniezt:~$ sudo cp  mysql-connector-java-5.1.18-bin.jar /opt/java/jdk1.7.0_02/lib/&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Verdana,sans-serif;"&gt;
&lt;span style="font-size: x-small;"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Step 3 : Konfigurasi CLASSPATH&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana,sans-serif;"&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="text-decoration: underline;"&gt;Microsoft Windows (XP/Vista/7)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol style="font-family: Verdana,sans-serif;"&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;Klik kanan icon My Computer, kemudian klik Properties,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;Kemudian pilih Advanced System Setting,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;Setelah muncul window System Properties,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;Pilih tab Advanced klik Environment Variables, maka akan muncul window Environment Variables ,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;Untuk menambahkan CLASSPATH, Pada bagian System variables klik New ,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;Pada text box Variable name isi dengan CLASSPATH,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;Pada Variable value isi dengan Alamat dari directory dimana MySQL Conector diletakkan,
&lt;/span&gt;&lt;pre class="wrap" id="sources-list-entries" style="border: 1px solid gray; line-height: 13px; margin: 1em 0px; padding: 0.3em; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span style="font-size: x-small;"&gt;.;C:\Program Files\Java\jdk1.7.0_02\libmysql-connector-java-5.1.18-bin.jar&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;Klik OK sebanyak tiga kali berturut-turut,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;Untuk memastikan setingan sudah berhasil, buka Command Prompt (CMD)
&lt;/span&gt;&lt;pre class="wrap" id="sources-list-entries" style="border: 1px solid gray; line-height: 13px; margin: 1em 0px; padding: 0.3em; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span style="font-size: x-small;"&gt;echo %CLASSPATH%&lt;/span&gt;&lt;/pre&gt;
&lt;div style="text-align: center;"&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-size: x-small;"&gt;&lt;img alt="" class="aligncenter" height="134" src="https://lh3.googleusercontent.com/-Gk3-nd2siRU/Tv3cKI3V2kI/AAAAAAAAAM8/tnHS6fJvZY0/s1600/CLASSPATH2.jpg" width="460" /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;Restart komputer.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Verdana,sans-serif;"&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="text-decoration: underline;"&gt;Ubuntu (Linux) &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol style="font-family: Verdana,sans-serif;"&gt;&lt;ol&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;File Dependencies,
&lt;/span&gt;&lt;pre class="wrap" id="sources-list-entries" style="border: 1px solid gray; line-height: 13px; margin: 1em 0px; padding: 0.3em; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span style="font-size: x-small;"&gt;dnd@riyaniezt:~$ sudo apt-get install libmysql-java&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;Edit File “Environment”,
&lt;/span&gt;&lt;pre class="wrap" id="sources-list-entries" style="border: 1px solid gray; line-height: 13px; margin: 1em 0px; padding: 0.3em; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span style="font-size: x-small;"&gt;dnd@riyaniezt:~$ sudo gedit /etc/environment&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;Tambahkan baris perintah berikut ke dalam file “Environment” :
&lt;/span&gt;&lt;pre class="wrap" id="sources-list-entries" style="border: 1px solid gray; line-height: 13px; margin: 1em 0px; padding: 0.3em; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span style="font-size: x-small;"&gt;CLASSPATH=".:/opt/java/jdk1.7.0_02/lib/mysql-connector-java-5.1.18-bin.jar"&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;div style="font-family: Verdana,sans-serif;"&gt;
&lt;span style="font-size: x-small;"&gt;kemudian Save.&lt;/span&gt;&lt;/div&gt;
&lt;ol style="font-family: Verdana,sans-serif;"&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;Tulis perintah berikut (untuk memastikan bahwa setingan JDBC telah berhasil)
&lt;/span&gt;&lt;pre class="wrap" id="sources-list-entries" style="border: 1px solid gray; line-height: 13px; margin: 1em 0px; padding: 0.3em; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span style="font-size: x-small;"&gt;dnd@riyaniezt:~$ echo $CLASSPATH
.:/opt/java/jdk1.7.0_02/lib/mysql-connector-java-5.1.18-bin.jar
dnd@riyaniezt:~$&lt;/span&gt;&lt;/pre&gt;
&lt;div style="text-align: center;"&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-size: x-small;"&gt;&lt;img alt="" class="aligncenter" height="125" src="https://lh5.googleusercontent.com/-DROOnO7d_X0/Tv2x6UUaXLI/AAAAAAAAAMw/ZKthNmPPJiU/s400/CLASSPATH1.png" width="400" /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;Restart komputer.
&lt;/span&gt;&lt;pre class="wrap" id="sources-list-entries" style="border: 1px solid gray; line-height: 13px; margin: 1em 0px; padding: 0.3em; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span style="font-size: x-small;"&gt;dnd@riyaniezt:~$ sudo reboot&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Verdana,sans-serif;"&gt;
&lt;span style="font-size: x-small;"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Step 4 : Test Koneksi JDBC &amp;amp; MySQL&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="wrap" id="sources-list-entries" style="border: 1px solid gray; font-family: Verdana,sans-serif; line-height: 13px; margin: 1em 0px; padding: 0.3em; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span style="font-size: x-small;"&gt;import java.sql.Connection;
import java.sql.DriverManager;

class TestJDBC
{
  private static final String url = "jdbc:mysql://localhost";
  private static final String user = "[Insert User to access MySQL]";
  private static final String password = "[Insert password to access MySQL]";

  public static void main(String args[])
  {
    try
     {
       Connection con = DriverManager.getConnection(url, user, password);
       System.out.println("JDBC &amp;amp; MySQL successfully connected");
       System.out.println("By : http://sq.web.id");
     }
    catch (Exception e)
     {
       e.printStackTrace();
     }
  }
}&lt;/span&gt;&lt;/pre&gt;
&lt;div style="font-family: Verdana,sans-serif;"&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="text-decoration: underline;"&gt;Output :&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana,sans-serif; text-align: left;"&gt;
&lt;span style="font-size: x-small;"&gt;&lt;img alt="" class="aligncenter" src="https://lh6.googleusercontent.com/-8ZUPYTO4aLM/Tv2moZn7nwI/AAAAAAAAAMg/7wZ2Ad7t4PM/s800/JDBC%252526MYSQL.png" /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana,sans-serif; text-align: center;"&gt;
&lt;span style="font-size: x-small;"&gt;* … Good Luck !… *&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; border: medium none; color: black; font-family: Verdana,sans-serif; overflow: hidden; text-align: left; text-decoration: none;"&gt;
&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;Read more: &lt;a href="http://sidiq.mercubuana-yogya.ac.id/konfigurasi-jdbc-di-ubuntu-dan-windows/#ixzz2JpAooTu1" style="color: #003399;"&gt;http://sidiq.mercubuana-yogya.ac.id/konfigurasi-jdbc-di-ubuntu-dan-windows/#ixzz2JpAooTu1&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
</description><link>http://ubuntu-indo.blogspot.com/2013/02/konfigurasi-mysql-connector-jdbc-di.html</link><author>noreply@blogger.com (Ubuntu Indo)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://lh4.googleusercontent.com/-j09nJ9rybf8/TvC-JO3DLWI/AAAAAAAABgQ/qJ8iHF5Boc8/s72-c/JDBC.jpg" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5493482958642955820.post-6494600143771467675</guid><pubDate>Mon, 26 Nov 2012 09:43:00 +0000</pubDate><atom:updated>2012-11-26T16:43:47.791+07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Java</category><category domain="http://www.blogger.com/atom/ns#">MySql</category><title>Koneksi Java ke MySQL dengan JDBC</title><description>&lt;br /&gt;
&lt;div class="entry-content"&gt;
&lt;b&gt;&lt;a href="http://thesuhu.files.wordpress.com/2011/11/javamysql.jpg"&gt;&lt;img alt="" class="alignnone size-full wp-image-266" src="http://thesuhu.files.wordpress.com/2011/11/javamysql.jpg?w=625" title="Java MySQL" /&gt;&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Berikut contoh class koneksi Java ke database MySQL menggunakan JDBC. Sebelumnya import library &lt;i&gt;MySQL JDBC Driver&lt;/i&gt; ke project. Apabila menggunakan NetBean IDE, caranya adalah klik kanan pada &lt;i&gt;Libraries&lt;/i&gt; &amp;gt; pilih &lt;i&gt;Add Library… &lt;/i&gt;(&lt;a href="http://thesuhu.files.wordpress.com/2011/11/java1.jpg" target="_blank" title="MySQL JDBC Lib"&gt;gambar 1&lt;/a&gt;)&lt;i&gt;. &lt;/i&gt;Setelah itu baru buat&lt;i&gt; java class&lt;/i&gt; dengan nama &lt;i&gt;DatabaseConnection, &lt;/i&gt;berikut source codenya:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;

&lt;/div&gt;
&lt;b&gt;&lt;textarea class="c#" cols="60" name="code" rows="10"&gt;package controller;

import com.mysql.jdbc.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 * @about : class untuk koneksi ke database MySQL dengan JDBC
 */
public class DatabaseConnection {

    private Connection con = null;
    private static DatabaseConnection dbcon = null;
    static final String DB_URL = "jdbc:mysql://localhost:3306/latihan";
    static final String DB_USER = "root";
    static final String DB_PASS = "";

    // constructor
    public DatabaseConnection() {
        if (con == null) {
            try {
                // loading driver
                Class.forName("com.mysql.jdbc.Driver").newInstance();
                // connect ke database
                con = (Connection) DriverManager.getConnection(DB_URL, DB_USER, DB_PASS);
                System.out.println("Koneksi Berhasil");
            } catch (Exception ex) {
                System.out.println("Koneksi Gagal");
            }
        }
    }

    // mengecek apakah sudah ada koneksi
    public static DatabaseConnection getInstance() {
        DatabaseConnection con = null;
        if (dbcon == null) {
            dbcon = new DatabaseConnection();
            con = dbcon;
        } else {
            con = dbcon;
        }
        return con;
    }

    public Connection getCon() throws SQLException {
        return this.con;
    }
}
&lt;/textarea&gt;
&lt;br /&gt;&lt;br /&gt;
Sekarang kita bisa panggil class tersebut pada class lain, contohnya buat 
&lt;i&gt;java class&lt;/i&gt; dengan nama &lt;i&gt;TesConnection, &lt;/i&gt;berikut contoh source codenya:&lt;br /&gt;&lt;br /&gt;&lt;textarea class="c#" cols="60" name="code" rows="10"&gt;package controller;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * @about : coba koneksi
 */
public class TestConnection {

    public static void main(String[] args) {
        DatabaseConnection koneksi = DatabaseConnection.getInstance();
        try {
            Connection con = koneksi.getCon();
        } catch (SQLException ex) {
            Logger.getLogger(TestConnection.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}


&lt;/textarea&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;References : http://thesuhu.wordpress.com/2011/11/04/koneksi-java-ke-mysql-dengan-jdbc/&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;http://bisakomputer.com/koneksi-database-mysql-berbasis-gui-menggunakan-java/ &lt;/b&gt;</description><link>http://ubuntu-indo.blogspot.com/2012/11/koneksi-java-ke-mysql-dengan-jdbc.html</link><author>noreply@blogger.com (Ubuntu Indo)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5493482958642955820.post-4127137164626636494</guid><pubDate>Mon, 26 Nov 2012 09:25:00 +0000</pubDate><atom:updated>2012-11-26T16:35:38.728+07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tip And Trik Blog</category><title>Membuat Syntax Highlighter di Blog</title><description>&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;Mudah
Membuat Syntax Highlighter di Blog&lt;/b&gt; ~ Apakah anda merasa asing dengan istilah tersebut atau
bahkan sebaliknya, istilah &lt;b&gt;Syntax
Highlighter&lt;/b&gt; sudah sering terdengar di telinga anda?. 

&lt;span style="font-weight: normal;"&gt;Jangan lupa baca juga&lt;/span&gt; &lt;a href="http://bangvandawablog.blogspot.com/2012/10/cara-mudah-membatasi-jumlah-tampilan-label-blog.html" rel="nofollow" target="_blank"&gt;&lt;b&gt;Cara Mudah Membatasi Jumlah Tampilan Posting Label Blog&lt;/b&gt;&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"&gt;
&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;

&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"&gt;
&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;Syntax Highlighter&lt;/b&gt; atau Penyorotan Sintaks adalah
fitur dari beberapa editor teks yang menampilkan teks, terutama &lt;b&gt;source code&lt;/b&gt; dalam berbagai warna serta
font sesuai dengan kategori istilah.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"&gt;
&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Fitur ini
memudahkan kita dalam menulis dalam bahasa terstruktur seperti bahasa pemrograman
atau bahasa markup serta penulisan berupa syntax-syntax blog. Berikut ini cara
membuat &lt;b&gt;syntax highlighter &lt;/b&gt;di blog :&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0cm 18pt; text-align: justify; text-indent: -18pt;"&gt;
&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;1.&lt;span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Login ke
akun blogger anda&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0cm 18pt; text-align: justify; text-indent: -18pt;"&gt;
&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;2.&lt;span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Klik Menu
Rancangan, lalu pilih &lt;b&gt;&lt;span style="color: red;"&gt;Edit HTML&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0cm 18pt; text-align: justify; text-indent: -18pt;"&gt;
&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;3.&lt;span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Jangan lupa
centang terlebih dahulu&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0cm 18pt; text-align: justify; text-indent: -18pt;"&gt;
&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;4.&lt;span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Cari kode&lt;b&gt; &lt;span style="color: red;"&gt;]]&amp;gt;&amp;lt;/b:skin&amp;gt;&lt;/span&gt;&lt;/b&gt; dan letakkan kode di bawah ini
sebelum kode&lt;b&gt; &lt;span style="color: red;"&gt;]]&amp;gt;&amp;lt;/b:skin&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0cm 18pt; text-align: justify; text-indent: -18pt;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0cm 18pt; text-align: justify; text-indent: -18pt;"&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;textarea class="c#" cols="60" name="code" rows="10"&gt;.dp-highlighter
{
 font-family: "Consolas", "Monaco", "Courier New", Courier, monospace;
 font-size: 12px;
 background-color: #E7E5DC;
 width: 99%;
 overflow: auto;
 margin: 18px 0 18px 0 !important;
 padding-top: 1px; /* adds a little border on top when controls are hidden */
}

/* clear styles */
.dp-highlighter ol,
.dp-highlighter ol li,
.dp-highlighter ol li span
{
 margin: 0;
 padding: 0;
 border: none;
}

.dp-highlighter a,
.dp-highlighter a:hover
{
 background: none;
 border: none;
 padding: 0;
 margin: 0;
}

.dp-highlighter .bar
{
 padding-left: 45px;
}

.dp-highlighter.collapsed .bar,
.dp-highlighter.nogutter .bar
{
 padding-left: 0px;
}

.dp-highlighter ol
{
 list-style: decimal; /* for ie */
 background-color: #fff;
 margin: 0px 0px 1px 45px !important; /* 1px bottom margin seems to fix occasional Firefox scrolling */
 padding: 0px;
 color: #5C5C5C;
}

.dp-highlighter.nogutter ol,
.dp-highlighter.nogutter ol li
{
 list-style: none !important;
 margin-left: 0px !important;
}

.dp-highlighter ol li,
.dp-highlighter .columns div
{
 list-style: decimal-leading-zero;
 list-style-position: outside !important;
 border-left: 3px solid #6CE26C;
 background-color: #F8F8F8;
 color: #5C5C5C;
 padding: 0 3px 0 10px !important;
 margin: 0 !important;
 line-height: 14px;
}

.dp-highlighter.nogutter ol li,
.dp-highlighter.nogutter .columns div
{
 border: 0;
}

.dp-highlighter .columns
{
 background-color: #F8F8F8;
 color: gray;
 overflow: hidden;
 width: 100%;
}

.dp-highlighter .columns div
{
 padding-bottom: 5px;
}

.dp-highlighter ol li.alt
{
 background-color: #FFF;
 color: inherit;
}

.dp-highlighter ol li span
{
 color: black;
 background-color: inherit;
}

/* Adjust some properties when collapsed */
.dp-highlighter.collapsed ol
{
 margin: 0px;
}

.dp-highlighter.collapsed ol li
{
 display: none;
}

/* Additional modifications when in print-view */
.dp-highlighter.printing
{
 border: none;
}

.dp-highlighter.printing .tools
{
 display: none !important;
}

.dp-highlighter.printing li
{
 display: list-item !important;
}

/* Styles for the tools */
.dp-highlighter .tools
{
 padding: 3px 8px 3px 10px;
 font: 9px Verdana, Geneva, Arial, Helvetica, sans-serif;
 color: silver;
 background-color: #f8f8f8;
 padding-bottom: 10px;
 border-left: 3px solid #6CE26C;
}

.dp-highlighter.nogutter .tools
{
 border-left: 0;
}

.dp-highlighter.collapsed .tools
{
 border-bottom: 0;
}

.dp-highlighter .tools a
{
 font-size: 9px;
 color: #a0a0a0;
 background-color: inherit;
 text-decoration: none;
 margin-right: 10px;
}

.dp-highlighter .tools a:hover
{
 color: red;
 background-color: inherit;
 text-decoration: underline;
}

/* About dialog styles */
.dp-about { background-color: #fff; color: #333; margin: 0px; padding: 0px; }
.dp-about table { width: 100%; height: 100%; font-size: 11px; font-family: Tahoma, Verdana, Arial, sans-serif !important; }
.dp-about td { padding: 10px; vertical-align: top; }
.dp-about .copy { border-bottom: 1px solid #ACA899; height: 95%; }
.dp-about .title { color: red; background-color: inherit; font-weight: bold; }
.dp-about .para { margin: 0 0 4px 0; }
.dp-about .footer { background-color: #ECEADB; color: #333; border-top: 1px solid #fff; text-align: right; }
.dp-about .close { font-size: 11px; font-family: Tahoma, Verdana, Arial, sans-serif !important; background-color: #ECEADB; color: #333; width: 60px; height: 22px; }

/* Language specific styles */
.dp-highlighter .comment, .dp-highlighter .comments { color: #008200; background-color: inherit; }
.dp-highlighter .string { color: blue; background-color: inherit; }
.dp-highlighter .keyword { color: #069; font-weight: bold; background-color: inherit; }
.dp-highlighter .preprocessor { color: gray; background-color: inherit; }
&lt;/textarea&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0cm 18pt; text-indent: -18pt;"&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;5.&lt;span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Cari kode &lt;b&gt;&lt;span style="color: red;"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/b&gt; dan letakkan kode di bawah ini sebelum
kode &lt;b&gt;&lt;span style="color: red;"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0cm 18pt; text-indent: -18pt;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0cm 18pt; text-indent: -18pt;"&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;textarea class="c#" cols="60" name="code" rows="10"&gt;&lt;script gapi_processed="true" src="https://apis.google.com/js/plusone.js" async="" type="text/javascript"&gt;&lt;/script&gt;&lt;script src="http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shCore.js" type="text/javascript"&gt;
&lt;/script&gt;    
&lt;script src="http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCpp.js" type="text/javascript"&gt;
&lt;/script&gt;    
&lt;script src="http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCSharp.js" type="text/javascript"&gt;
&lt;/script&gt;    
&lt;script src="http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCss.js" type="text/javascript"&gt;
&lt;/script&gt;    
&lt;script src="http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushDelphi.js" type="text/javascript"&gt;
&lt;/script&gt;    
&lt;script src="http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushJava.js" type="text/javascript"&gt;
&lt;/script&gt;    
&lt;script src="http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushJScript.js" type="text/javascript"&gt;
&lt;/script&gt;    
&lt;script src="http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushPhp.js" type="text/javascript"&gt;
&lt;/script&gt;    
&lt;script src="http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushPython.js" type="text/javascript"&gt;
&lt;/script&gt;    
&lt;script src="http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushRuby.js" type="text/javascript"&gt;
&lt;/script&gt;    
&lt;script src="http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushSql.js" type="text/javascript"&gt;
&lt;/script&gt;    
&lt;script src="http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushVb.js" type="text/javascript"&gt;
&lt;/script&gt;    
&lt;script src="http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushXml.js" type="text/javascript"&gt;
&lt;/script&gt; &lt;/textarea&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 18.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 18.0pt; text-align: justify; text-indent: -18.0pt;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: IN;"&gt;&lt;span style="mso-list: Ignore;"&gt;6.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: IN;"&gt;Cari kode &lt;span style="color: red;"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt; dan letakkan kode di bawah ini sebelum
kode &lt;span style="color: red;"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 18.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 18.0pt; text-align: justify; text-indent: -18.0pt;"&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;textarea class="c#" cols="60" name="code" rows="10" style="height: 83px; width: 498px;"&gt; &lt;script language='javascript'&gt; dp.SyntaxHighlighter.BloggerMode(); dp.SyntaxHighlighter.HighlightAll('code'); &lt;/script&gt;
&lt;/textarea&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: IN;"&gt;&lt;u&gt;&lt;i&gt;&lt;b&gt;Info :&lt;/b&gt;&lt;/i&gt;&lt;/u&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: IN;"&gt;Setiap
mempublikasikan post yang terdapat kode-kode di dalamnya, sobat blogger harus
memasukkan kode tersebut seperti contoh d bawah ini!&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;"&gt;
&lt;br /&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;"&gt;
&lt;b&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="color: red;"&gt;&amp;lt;textarea
name="code" class="c#" cols="60"
rows="10"&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"&gt;
&lt;b&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;i&gt;&lt;span style="color: #00b050;"&gt;Kode Yang Akan
Ditampilkan Diletakkan Disini&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"&gt;
&lt;b&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="color: red;"&gt;&amp;lt;/textarea&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;"&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;b&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: red;"&gt;References : http://bangvandawablog.blogspot.com/2012/10/cara-mudah-membuat-syntax-highlighter-diblog.html&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;</description><link>http://ubuntu-indo.blogspot.com/2012/11/membuat-syntax-highlighter-di-blog.html</link><author>noreply@blogger.com (Ubuntu Indo)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5493482958642955820.post-1384754331742632689</guid><pubDate>Wed, 14 Nov 2012 10:11:00 +0000</pubDate><atom:updated>2012-11-14T17:11:15.845+07:00</atom:updated><title>Disk drive for /boot is not ready yet or not present?</title><description>&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;fter a long gap,I am back to Ubuntu from Fedora and I am really impressed by the pleasing interface ‘Lucid Lynx’ comes up with. &lt;img alt=":-)" class="wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g" /&gt;&lt;/span&gt;&lt;/span&gt; 
&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;After installing Windows XP ,I installed Ubuntu 10.04.The 
installation process was smooth.But the problem I faced when I restarted
 the system is, at the splash startup screen.It said ,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;strong&gt;The disk drive for /boot is not ready yet or not present.&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;strong&gt;Continue to wait, press S to skip or M for manual recovery.&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;I waited for a long time and it is of no use.so I skipped the process and edited some file to mount it automatically.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;here is what I did,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;1.Open your terminal by ctrl+alt+t or Applications –&amp;gt; Accessories –&amp;gt; Terminal&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;2.use the below command in terminal,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;strong&gt;gksudo gedit /etc/fstab&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;3.A file will open,find /boot line.It will look something like this ,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;strong&gt; /dev/sda2     /boot ext4 defaults    0   0&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;4.Now open another terminal and use the below command ,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;strong&gt; ls -l /dev/disk/by-uuid&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;5.Now find the UUID for /dev/sda2 and replace the below line in fstab ,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;strong&gt; /dev/sda2     /boot ext4 defaults    0   0&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;strong&gt; as&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;strong&gt; UUID=a647ea33-74ee-4123-84bf-7edc32e2e39b /boot ext4 defaults 0 0&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;strong&gt; [Replace the UUID number with your number]&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;6.save the file and restart the system.It will work fine.The same solution can be addressed for /dev/sda mounting problem.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;img alt=";-)" class="wp-smiley" src="http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif?m=1129645325g" /&gt;&lt;/span&gt;&lt;/span&gt; </description><link>http://ubuntu-indo.blogspot.com/2012/11/disk-drive-for-boot-is-not-ready-yet-or.html</link><author>noreply@blogger.com (Ubuntu Indo)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5493482958642955820.post-6275403743585548394</guid><pubDate>Tue, 13 Nov 2012 09:02:00 +0000</pubDate><atom:updated>2012-11-13T16:02:37.627+07:00</atom:updated><title>Mysql Password Reset</title><description>&lt;div id="title"&gt;
&lt;h1&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span id="pagelocation"&gt;&lt;a class="backlink" href="https://help.ubuntu.com/community/MysqlPasswordReset?action=fullsearch&amp;amp;value=linkto%3A%22MysqlPasswordReset%22&amp;amp;context=180" rel="nofollow" title="Click to do a full-text search for this title"&gt;MysqlPasswordReset&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/h1&gt;
&lt;/div&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;
            &lt;/span&gt;&lt;/span&gt;&lt;div id="cwt-nav3"&gt;

 &lt;hr class="clear" /&gt;
            &lt;/div&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;
                &lt;/span&gt;&lt;/span&gt;&lt;div class="clearfix content-area" id="cwt-content"&gt;

&lt;div dir="ltr" id="page" lang="en"&gt;
&lt;div dir="ltr" id="content" lang="en"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="top"&gt;&lt;/span&gt;
&lt;span class="anchor" id="line-1"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div dir="ltr" id="Tag.2BAC8-ContentCleanup.content" lang="en"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="Tag.2BAC8-ContentCleanup.top"&gt;&lt;/span&gt;
&lt;span class="anchor" id="Tag.2BAC8-ContentCleanup.line-1"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;
&lt;table style="background: none repeat scroll 0% 0% rgb(160, 184, 226); border: 2px solid black; margin-left: 10%; margin-right: 10%; text-align: center; width: 80%;"&gt;&lt;tbody&gt;
&lt;tr&gt;  &lt;td&gt;&lt;div class="line862"&gt;
 &lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;strong&gt;Content Cleanup Required:&lt;/strong&gt; This article should be cleaned-up to follow the content standards in the Wiki Guide. &lt;a href="https://help.ubuntu.com/community/Tag#ContentCleanup"&gt;More info...&lt;/a&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="Tag.2BAC8-ContentCleanup.line-2"&gt;&lt;/span&gt;&lt;span class="anchor" id="Tag.2BAC8-ContentCleanup.bottom"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-2"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-3"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="line867"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;strong&gt;Please do not make any edits to this article.  Its contents are currently under review and being merged with the &lt;em&gt;Ubuntu Server Guide&lt;/em&gt;.  To find the Ubuntu Server Guide related to your specific version, please go to:&lt;/strong&gt; &lt;span class="anchor" id="line-4"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-5"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style="list-style-type: none;"&gt;&lt;div class="line891"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;strong&gt;&lt;a class="https" href="https://help.ubuntu.com/"&gt;https://help.ubuntu.com/&lt;/a&gt; and click on &lt;em&gt;Ubuntu Server Guide&lt;/em&gt;&lt;/strong&gt; &lt;span class="anchor" id="line-6"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-7"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="line867"&gt;
&lt;/div&gt;
&lt;h2 id="Why_are_you_looking_at_this_wiki_page.3F"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Why are you looking at this wiki page?&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-8"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-9"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-10"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="line874"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Are
 you looking at this page because you cannot access the mysql server 
installed on your pc/server when you were trying to see if it works 
well? Or do you receive error messages like the following? : &lt;span class="anchor" id="line-11"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-12"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-13"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line867"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-14"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-15"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-16"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-1"&gt;&lt;/span&gt;&lt;b&gt;ERROR 1045: Access denied for user: 'root@localhost' (Using 
&lt;span class="anchor" id="line-2"&gt;&lt;/span&gt;password: NO)&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;b&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-17"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-18"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;div class="line874"&gt;
&lt;b&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;or &lt;span class="anchor" id="line-19"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-20"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class="line867"&gt;
&lt;b&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-21"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-22"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-23"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;pre&gt;&lt;b&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-1-1"&gt;&lt;/span&gt;ERROR 1045: Access denied for user: 'root@localhost' (Using 
&lt;span class="anchor" id="line-2-1"&gt;&lt;/span&gt;password: YES)&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-24"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-25"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="line874"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;To resolve this problem ,a fast and always working way is the "Password Resetting" . &lt;span class="anchor" id="line-26"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-27"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-28"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line867"&gt;
&lt;/div&gt;
&lt;h2 id="How_can_I_reset_my_MySQL_password.3F"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;How can I reset my MySQL password?&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-29"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-30"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="line867"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;img alt="IconsPage/IconWarning3.png" class="attachment" src="https://help.ubuntu.com/community/IconsPage?action=AttachFile&amp;amp;do=get&amp;amp;target=IconWarning3.png" title="IconsPage/IconWarning3.png" /&gt;
 Following this procedure, you will disable access control on the MySQL 
server. All connexions will have a root access. It is a good thing to 
unplug your server from the network or at least disable remote access. &lt;span class="anchor" id="line-31"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-32"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line874"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;To reset your mysqld password just follow these instructions : &lt;span class="anchor" id="line-33"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-34"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Stop the mysql demon process using this command : &lt;span class="anchor" id="line-35"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;ul&gt;
&lt;li style="list-style-type: none;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-36"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-37"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;pre&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-1-2"&gt;&lt;/span&gt;   &lt;b&gt;sudo /etc/init.d/mysql stop&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-38"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Start the mysqld demon process using the &lt;b&gt;--skip-grant-tables&lt;/b&gt; option with this command  &lt;span class="anchor" id="line-39"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;ul&gt;
&lt;li style="list-style-type: none;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-40"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-41"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;pre&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-1-3"&gt;&lt;/span&gt;  &lt;b&gt; sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &amp;amp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-42"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="line867"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;strong&gt;Because you are not checking user privs at this point, it's safest to disable networking.&lt;/strong&gt; &lt;span class="anchor" id="line-43"&gt;&lt;/span&gt;&lt;strong&gt;In Dapper, /usr/bin/mysgld... did not work. However, mysqld&amp;nbsp;--skip-grant-tables  did.&lt;/strong&gt; &lt;span class="anchor" id="line-44"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;start the mysql client process using this command  &lt;span class="anchor" id="line-45"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;ul&gt;
&lt;li style="list-style-type: none;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-46"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-47"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;pre&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-1-4"&gt;&lt;/span&gt;  &lt;b&gt; mysql -u root&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-48"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;from the mysql prompt execute this command to be able to change any password &lt;span class="anchor" id="line-49"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;ul&gt;
&lt;li style="list-style-type: none;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-50"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-51"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;pre&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-1-5"&gt;&lt;/span&gt;  &lt;b&gt; FLUSH PRIVILEGES;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-52"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Then reset/update your password  &lt;span class="anchor" id="line-53"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;ul&gt;
&lt;li style="list-style-type: none;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-54"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-55"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;pre&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-1-6"&gt;&lt;/span&gt;   &lt;b&gt;SET PASSWORD FOR root@'localhost' = PASSWORD('password');&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-56"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;If you have a mysql root account that can connect from everywhere, you should also do: &lt;span class="anchor" id="line-57"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;ul&gt;
&lt;li style="list-style-type: none;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-58"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-59"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;pre&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-1-7"&gt;&lt;/span&gt; &lt;b&gt;  UPDATE mysql.user SET Password=PASSWORD('newpwd') WHERE User='root';&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-60"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-61"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li class="gap"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Alternate Method: &lt;span class="anchor" id="line-62"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;ul&gt;
&lt;li style="list-style-type: none;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-63"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-64"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-65"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-66"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;pre&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-1-8"&gt;&lt;/span&gt;  &lt;b&gt; USE mysql
&lt;span class="anchor" id="line-2-2"&gt;&lt;/span&gt;   UPDATE user SET Password = PASSWORD('newpwd')
&lt;span class="anchor" id="line-3"&gt;&lt;/span&gt;   WHERE Host = 'localhost' AND User = 'root';&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-67"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;And if you have a root account that can access from everywhere: &lt;span class="anchor" id="line-68"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;ul&gt;
&lt;li style="list-style-type: none;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-69"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-70"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-71"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-72"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;pre&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-1-9"&gt;&lt;/span&gt;  &lt;b&gt; USE mysql
&lt;span class="anchor" id="line-2-3"&gt;&lt;/span&gt;   UPDATE user SET Password = PASSWORD('newpwd')
&lt;span class="anchor" id="line-3-1"&gt;&lt;/span&gt;   WHERE Host = '%' AND User = 'root';&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-73"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-74"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="line874"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;For either method, once have received a message indicating a successful query (one or more rows affected), flush privileges: &lt;span class="anchor" id="line-75"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-76"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-77"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-1-10"&gt;&lt;/span&gt;&lt;b&gt;FLUSH PRIVILEGES;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-78"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-79"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="line862"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Then stop the mysqld process and relaunch it with the classical way: &lt;span class="anchor" id="line-80"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-81"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-82"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-83"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-1-11"&gt;&lt;/span&gt;&lt;b&gt;sudo /etc/init.d/mysql stop
&lt;span class="anchor" id="line-2-4"&gt;&lt;/span&gt;sudo /etc/init.d/mysql start&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-84"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-85"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="line874"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;When
 you have completed all this steps ,you can easily access to your mysql 
server with the password you have set in the step before. &lt;span class="anchor" id="line-86"&gt;&lt;/span&gt;An
 easy way to have a full control of your mysql server is phpmyadmin 
(www.phpmyadmin.net), software made in php that can give you a  web 
interface that can be very usefull to people that havent got a lot of 
confidence with bash .To install phpmyadmin on you server you will need 
to have 4 things: &lt;span class="anchor" id="line-87"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-88"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;web server apache &lt;span class="anchor" id="line-89"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;php  &lt;span class="anchor" id="line-90"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;mysql server/mysql client installed &lt;span class="anchor" id="line-91"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;php_mysql support for apache  &lt;span class="anchor" id="line-92"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-93"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="line874"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;All packages can be found browsing synaptic. &lt;span class="anchor" id="line-94"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;hr /&gt;
&lt;div class="line874"&gt;
 &lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-95"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-96"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line867"&gt;
&lt;/div&gt;
&lt;h2 id="Another_way.2C_purge"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Another way, purge&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-97"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-98"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-99"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="line874"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;I
 also had some problems with mysql just not accepting my password. I 
tried the other way as well and it just ended up being difficult. I had 
not been able to use mysql so it was empty anyway. If this is also your 
case you may opt for the PURGE way. This removes every file related to 
mysql. Depending on your installation the packages might be diffrent, 
mysql-server in 6.10 is called mysql-server-5.0 as an example. &lt;span class="anchor" id="line-100"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-101"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line867"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;img alt="IconsPage/IconWarning3.png" class="attachment" src="https://help.ubuntu.com/community/IconsPage?action=AttachFile&amp;amp;do=get&amp;amp;target=IconWarning3.png" title="IconsPage/IconWarning3.png" /&gt; USE THIS AS A LAST RESORT METHOD, YOU WILL LOSE ALL YOUR MYSQL DATA &lt;span class="anchor" id="line-102"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-103"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line867"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-104"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-105"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-1-12"&gt;&lt;/span&gt;sudo apt-get --purge remove mysql-server mysql-common mysql-client&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-106"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-107"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="line867"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-108"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-109"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-1-13"&gt;&lt;/span&gt;sudo apt-get install mysql-server mysql-common mysql-client&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-110"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-111"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="line874"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;In the next step be sure to chance the your-new-password with the password you want! &lt;span class="anchor" id="line-112"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-113"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line867"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-114"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-115"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-116"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-1-14"&gt;&lt;/span&gt;mysqladmin -u root password your-new-password
&lt;span class="anchor" id="line-2-5"&gt;&lt;/span&gt;sudo /etc/init.d/mysql restart&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-117"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-118"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="line867"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-119"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-120"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-1-15"&gt;&lt;/span&gt;mysql -u root -p&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-121"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-122"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="line874"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;You should now be logged in as root. Make sure to notedown your password! &lt;span class="anchor" id="line-123"&gt;&lt;/span&gt;Thanks to Illuvator for posting this method in the ubuntu forum. &lt;span class="anchor" id="line-124"&gt;&lt;/span&gt;&lt;span class="anchor" id="bottom"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class="info" dir="ltr" id="pageinfo" lang="en"&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;MysqlPasswordReset  (last edited 2011-03-14 21:42:35 by &lt;span title="https://login.launchpad.net/+id/Hm8Meef @ 216-239-45-4.google.com[216.239.45.4]"&gt;&lt;a class="interwiki" href="https://launchpad.net/%7Eanatol" title="https://login.launchpad.net/+id/Hm8Meef @ 216-239-45-4.google.com[216.239.45.4]"&gt;anatol&lt;/a&gt;&lt;/span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</description><link>http://ubuntu-indo.blogspot.com/2012/11/mysql-password-reset.html</link><author>noreply@blogger.com (Ubuntu Indo)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5493482958642955820.post-2341170666690887754</guid><pubDate>Mon, 12 Nov 2012 11:42:00 +0000</pubDate><atom:updated>2012-11-12T18:43:11.521+07:00</atom:updated><title>Remote Desktop Logins directly from the login screen has been enabled in Ubuntu 12.10.</title><description>&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;b&gt;Support for Remote Desktop Logins&lt;i&gt; directly&lt;/i&gt; from the login screen has been enabled in Ubuntu 12.10.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;The feature will allow you to enter a full-screen remote login 
without needing to login to Ubuntu itself, or install additional apps. 
It all happens ‘out of the box’.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Now, as if that wasn’t handy enough Canonical are also integrating Remote Login with the&amp;nbsp;&lt;b&gt;&lt;i&gt;Ubuntu Single Sign On&lt;/i&gt;&amp;nbsp;&lt;/b&gt;service.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;The result of this tie-up is that you won’t need to remember endless 
technical logins, server hosts and passwords; you just ener your Ubuntu 
One account details and the greeter will pull in your Remote data.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h3&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Adding Remote Login Data&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;In the version of Remote Login in Ubuntu 12.10 &lt;b&gt;&lt;i&gt;at present&lt;/i&gt;&lt;/b&gt;
 you can’t use the feature without using the Ubuntu SSO method. If you 
just want to hammer in the details directly you can’t – you’ll still 
need to login to a session and use one the &lt;i&gt;Remmina&lt;/i&gt;&amp;nbsp;client.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;But if you already have an Ubuntu One account then you’re all set. Hit the &lt;i&gt;‘?’&lt;/i&gt; icon in the upper-right of the login box and you’ll see a set-up prompt appear.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Clicking ‘Ok’ on this launches an Ubuntu&amp;nbsp;guest session, with Firefox already opened on the UCCS page.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Hit the ‘Remote Desktops’ tab, enter your Ubuntu One account details, followed by ‘ Add Remote Desktop’ button.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;a href="http://cloudfront.omgubuntu.co.uk/wp-content/uploads/2012/09/remote-desktops.jpg" rel="fancybox"&gt;&lt;img alt="" class="aligncenter  wp-image-64530" src="http://cloudfront.omgubuntu.co.uk/wp-content/uploads/2012/09/remote-desktops.jpg" title="remote-desktops" width="500" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Three types of ‘remote’ connections are supported at present:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;a href="http://en.wikipedia.org/wiki/Independent_Computing_Architecture" target="_blank"&gt;ICA&lt;/a&gt; (Citrux)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;a href="http://en.wikipedia.org/wiki/Remote_Desktop_Protocol" target="_blank"&gt;RDP&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;a href="http://en.wikipedia.org/wiki/VMware_View" target="_blank"&gt;VMWare View&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;After you’re done adding (and you’ve remembered to hit ‘Add’) you can
 log out of the guest session and return to the main login screen. Here,
 select the ‘Remote Login’ option and enter your &lt;i&gt;Ubuntu Single Sign On&lt;/i&gt; details.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;After a brief stutter the remote desktops you added to your account will be available for you to select:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;img alt="" class="aligncenter" height="347" src="http://cloudfront.omgubuntu.co.uk/wp-content/uploads/2012/09/remote.jpg" title="remote" width="500" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: right;"&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;i&gt;Image Credit: &lt;a href="http://gould.cx/ted/blog/Desktop_in_the_cloud" target="_blank"&gt;Ted Gould&lt;/a&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</description><link>http://ubuntu-indo.blogspot.com/2012/11/support-for-remote-desktop-logins.html</link><author>noreply@blogger.com (Ubuntu Indo)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5493482958642955820.post-9211489701848335813</guid><pubDate>Mon, 12 Nov 2012 11:39:00 +0000</pubDate><atom:updated>2012-11-12T18:39:06.712+07:00</atom:updated><title>Connect to Ubuntu 11.04 from Windows via Remote Desktop</title><description>&lt;h1&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Connect to Ubuntu 11.04 from Windows via Remote Desktop&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Last week we &lt;a href="http://www.liberiangeek.net/2011/06/connect-to-windows-7-from-ubuntu-via-remote-desktop-connection/" target="_blank"&gt;showed&lt;/a&gt;
 you how to use Remote Desktop Protocol (RDP) to connect from Ubuntu to 
Windows 7. Today, I will show you how to use the same Remote Desktop 
Protocol to connect from Windows to Ubuntu 11.04 Natty Narwhal. If you 
ever wanted to connect to Ubuntu via Remote Desktop Connection, then 
this tutorial will help you do that.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;There are many ways to connect to Ubuntu from Windows and RDP protocol is just one of the many ways.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span id="more-23009"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;strong&gt;&lt;span&gt;Getting started:&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;To get started, press &lt;strong&gt;&lt;span&gt;Ctrl – Alt – T&lt;/span&gt;&lt;/strong&gt; on your keyboard to open Terminal. When Terminal opens, type the command below to install xrdp server.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style="background-color: #fbfbfb; margin: 0em; width: 100%;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;sudo apt-&lt;a href="http://search.microsoft.com/default.asp?so=RECCNT&amp;amp;siteid=us%2Fdev&amp;amp;p=1&amp;amp;nq=NEW&amp;amp;qu=get&amp;amp;IntlSearch=&amp;amp;boolean=PHRASE&amp;amp;ig=01&amp;amp;i=09&amp;amp;i=99" style="color: blue;"&gt;get&lt;/a&gt; install xrdp
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;a href="http://www.liberiangeek.net/wp-content/uploads/2011/06/Connect-to-Ubuntu-from-Windows-via-Remot_C7F9/natty_xrdp.png"&gt;&lt;img alt="natty_xrdp" border="0" height="119" src="http://1-ps.googleusercontent.com/h/www.liberiangeek.net/wp-content/uploads/2011/06/Connect-to-Ubuntu-from-Windows-via-Remot_C7F9/465x119xnatty_xrdp_thumb.png.pagespeed.ic.q4_1Kr0i9i.jpg" style="background-image: none; border: 0px none; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="natty_xrdp" width="465" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Next, go to &lt;em&gt;Start –&amp;gt; All Programs –&amp;gt; Accessories –&amp;gt; Remote Desktop Connection&lt;/em&gt; from your Windows computer and type the IP address or Hostname of the Ubuntu machine then click &lt;strong&gt;&lt;em&gt;‘Connect’&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;a href="http://www.liberiangeek.net/wp-content/uploads/2011/06/Connect-to-Ubuntu-from-Windows-via-Remot_C7F9/natty_xrdp_1.png"&gt;&lt;img alt="natty_xrdp_1" border="0" height="270" src="http://1-ps.googleusercontent.com/h/www.liberiangeek.net/wp-content/uploads/2011/06/Connect-to-Ubuntu-from-Windows-via-Remot_C7F9/465x270xnatty_xrdp_1_thumb.png.pagespeed.ic.JSkQ9FDWJQ.png" style="background-image: none; border: 0px none; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="natty_xrdp_1" width="465" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;When prompted, enter your Ubuntu username and password and click &lt;strong&gt;&lt;em&gt;‘OK’&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;a href="http://www.liberiangeek.net/wp-content/uploads/2011/06/Connect-to-Ubuntu-from-Windows-via-Remot_C7F9/natty_xrdp_2.png"&gt;&lt;img alt="natty_xrdp_2" border="0" height="253" src="http://1-ps.googleusercontent.com/h/www.liberiangeek.net/wp-content/uploads/2011/06/Connect-to-Ubuntu-from-Windows-via-Remot_C7F9/470x253xnatty_xrdp_2_thumb.png.pagespeed.ic.7kxEKxgVgO.png" style="background-image: none; border: 0px none; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="natty_xrdp_2" width="470" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Enjoy!&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;a href="http://www.liberiangeek.net/wp-content/uploads/2011/06/Connect-to-Ubuntu-from-Windows-via-Remot_C7F9/natty_xrdp_3.png"&gt;&lt;img alt="natty_xrdp_3" border="0" height="256" src="http://1-ps.googleusercontent.com/h/www.liberiangeek.net/wp-content/uploads/2011/06/Connect-to-Ubuntu-from-Windows-via-Remot_C7F9/464x256xnatty_xrdp_3_thumb.png.pagespeed.ic.B5VQZeupad.jpg" style="background-image: none; border: 0px none; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="natty_xrdp_3" width="464" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;That’s all to it.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;h3 class="nr_title"&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;You may also like -&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
</description><link>http://ubuntu-indo.blogspot.com/2012/11/connect-to-ubuntu-1104-from-windows-via.html</link><author>noreply@blogger.com (Ubuntu Indo)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5493482958642955820.post-8869706550658395693</guid><pubDate>Sat, 09 Jul 2011 14:25:00 +0000</pubDate><atom:updated>2011-07-09T21:28:31.619+07:00</atom:updated><title>Quick subnet calculating techniques</title><description>&lt;span class="Apple-style-span" style="background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 860px;"&gt;&lt;div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 774px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=5493482958642955820&amp;amp;postID=8869706550658395693" name="top" style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 774px;"&gt;&lt;div class="wiki" style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 1em; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class="wiki" style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 1em; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Note:&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;It is highly suggested to read the above prerequisite link before reading this topic due to some terminologies and understanding of the link content. Basically this is the 2nd chapter of the prerequisite link content. Even when you feel you understand Class C network subnetting already and are ready to move up to the next level, it is always a good idea to refresh the concepts and some definitions.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;The Basic Concept&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Similar to Class C subnet calculation (/24 or smaller subnet), basic concept applies to Class B (/16 or smaller subnet up to /23) and Class A (/8 or smaller subnet up to /15) subnet calculations. When the first 3 octets in Class C subnet calculation are always constant and only last octet changes (as shown above), the first 2 and last octets in Class B subnet calculation are always constant where only the third octet changes. Similarly, the first and last two octets in Class A subnet calculation are always constant where only the second octet changes.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Quick Review&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Let's review a 192.168.0.0/23 network. As you can see, this is a broadcast network. You can then determine the following&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;192.168.0.0/23&lt;/span&gt;&lt;br /&gt;
&lt;pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.1em; margin-top: 0.1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;IP Address           : 192.168.0.0
Subnet Mask          : /23 (or 255.255.254.0)
IP address range     : 192.168.0.0 - 192.168.1.255
Network ID           : 192.168.0.0
Network Broadcast    : 192.168.1.255
Host IP address range: 192.168.0.1 - 192.168.1.254&lt;/span&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Understanding /23 and Larger Network&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;In 255.255.255.254 (/31), you can see this as a network that consists of two 255.255.255.255 (/32) networks. You can apply the same understanding on looking /23 network. By considering the last octet, you should be able to see 255.255.254.0 (/23) as a network consisting of two 255.255.255.0 (/24) networks.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;The above concepts show that you can see subnet as groups of multiple single IP addresses (/32) or as groups of multiple smaller subnets. Recall that in the »&lt;a href="http://www.dslreports.com/faq/cisco" style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0051b2; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;Cisco Forum FAQ&lt;/a&gt;&amp;nbsp;»&lt;a href="http://www.dslreports.com/faq/8426" style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0051b2; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;Quick and Easy Subnetting on Routing, Switching and Network Design Relationship&lt;/a&gt;, there are illustrations showing such in Class C network subnetting.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Following is a list of smaller subnet groups to make up Class B network&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/16 = 2 x /17 = 4 x /18 = 8 x /19 = 16 x /20 = 32 x /21 = 64 x /22 = 128 x /23 = 256 x /24&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/17 = 2 x /18 = 4 x /19 = 8 x /20 = 16 x /21 = 32 x /22 = 64 x /23 = 128 x /24&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/18 = 2 x /19 = 4 x /20 = 8 x /21 = 16 x /22 = 32 x /23 = 64 x /24&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/19 = 2 x /20 = 4 x /21 = 8 x /22 = 16 x /23 = 32 x /24&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/20 = 2 x /21 = 4 x /22 = 8 x /23 = 16 x /24&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/21 = 2 x /22 = 4 x /23 = 8 x /24&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/22 = 2 x /23 = 4 x /24&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/23 = 2 x /24&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;The same concept applies to both Class B and Class A network subnetting. While the Class B network (such as /23 network or larger up to /16) can be seen as groups of Class C networks (/24) as shown, the same concept applies to Class A network (/15 network or larger) where the Class A network can be seen as groups of Class B networks.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Following is a list of smaller subnet groups to make up Class A network&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/8 = 2 x /9 = 4 x /10 = 8 x /11 = 16 x /12 = 32 x /13 = 64 x /14 = 128 x /15 = 256 x /16&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/9 = 2 x /10 = 4 x /11 = 8 x /12 = 16 x /13 = 32 x /14 = 64 x /15 = 128 x /16&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/10 = 2 x /11 = 4 x /12 = 8 x /13 = 16 x /14 = 32 x /15 = 64 x /16&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/11 = 2 x /12 = 4 x /13 = 8 x /14 = 16 x /15 = 32 x /16&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/12 = 2 x /13 = 4 x /14 = 8 x /15 = 16 x /16&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/13 = 2 x /14 = 4 x /15 = 8 x /16&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/14 = 2 x /15 = 4 x /16&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/15 = 2 x /16&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Some discussions&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;»&lt;a href="http://www.dslreports.com/forum/r24096199-CCNA-Calculating-VLSM-summary-for-ICEND2" style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0051b2; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;[CCNA] Calculating VLSM summary for ICEND2&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;»&lt;a href="http://www.dslreports.com/forum/r24581374-Route-Summarization" style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0051b2; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;Route Summarization&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Determine Subnet Mask Format&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;You may wonder how to state the subnet mask format as 255.255.254.0. Determine such basically follows the same understanding as determine 255.255.255.254 (the /31).&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;As you may notice, the 255 represents one of 255 and the 254 represents two of 255. In /31 (255.255.255.&lt;b style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: green; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;254&lt;/span&gt;&lt;/b&gt;), there are two 255 (two 255.255.255.&lt;b style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: green; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;255&lt;/span&gt;&lt;/b&gt;). By applying the same understanding, there are two 255 (two 255.255.&lt;b style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: green; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;255&lt;/span&gt;&lt;/b&gt;.0) in /23 (255.255.&lt;b style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: green; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;254&lt;/span&gt;&lt;/b&gt;.0).&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Determine IP Address Number&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;In /24 or smaller networks (within Class C network),&lt;/span&gt;&lt;br /&gt;
&lt;pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.1em; margin-top: 0.1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/32 = 255.255.255.255 = 1   IP address
/31 = 255.255.255.254 = 2   IP addresses
/30 = 255.255.255.252 = 4   IP addresses
/29 = 255.255.255.248 = 8   IP addresses
/28 = 255.255.255.240 = 16  IP addresses
/27 = 255.255.255.224 = 32  IP addresses
/26 = 255.255.255.192 = 64  IP addresses
/25 = 255.255.255.128 = 128 IP addresses
/24 = 255.255.255.0   = 256 IP addresses = a single Class C network&lt;/span&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Within Class B network, you have the following&lt;/span&gt;&lt;br /&gt;
&lt;pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.1em; margin-top: 0.1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/24 = 255.255.255.0 = 1   Class C network  = 1   x 256 = 256 IP addresses
/23 = 255.255.254.0 = 2   Class C networks = 2   x 256 = 512 IP addresses
/22 = 255.255.252.0 = 4   Class C networks = 4   x 256 = 1024 IP addresses
/21 = 255.255.248.0 = 8   Class C networks = 8   x 256 = 2048 IP addresses
/20 = 255.255.240.0 = 16  Class C networks = 16  x 256 = 4096 IP addresses
/19 = 255.255.224.0 = 32  Class C networks = 32  x 256 = 8192 IP addresses
/18 = 255.255.192.0 = 64  Class C networks = 64  x 256 = 16384 IP addresses
/17 = 255.255.128.0 = 128 Class C networks = 128 x 256 = 32768 IP addresses
/16 = 255.255.0.0   = 256 Class C networks = 256 x 256 = 65536 IP addresses = one Class B  network&lt;/span&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Note that the concept of size doubling still applies in Class B network as in Class C network as mentioned. As illustrations, there are 2 of /24 within /23; 2 of /23 within /22; and 2 of /18 within /17 networks.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Implementing /23 Network&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Let's say an organization decide to use 192.168.0.0/23 as a single subnet without subnetting it to smaller subnets. Let's say the gateway IP address would be 192.168.0.1, although in reality a gateway IP address can be any IP address within valid range of 192.168.0.1 - 192.168.1.254.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Some hosts within the subnet will have the following network info&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;192.168.0.34/23&lt;/span&gt;&lt;br /&gt;
&lt;pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.1em; margin-top: 0.1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;IP Address           : 192.168.0.34
Subnet Mask          : /23 (or 255.255.254.0)
IP address range     : 192.168.0.0 - 192.168.1.255
Network ID           : 192.168.0.0
Network Broadcast    : 192.168.1.255
IP Address Order #   : 35
Gateway IP Address   : 192.168.0.1
Host IP address range: 192.168.0.2 - 192.168.1.254&lt;/span&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;192.168.1.0/23&lt;/span&gt;&lt;br /&gt;
&lt;pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.1em; margin-top: 0.1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;IP Address           : 192.168.1.0
Subnet Mask          : /23 (or 255.255.254.0)
IP address range     : 192.168.0.0 - 192.168.1.255
Network ID           : 192.168.0.0
Network Broadcast    : 192.168.1.255
IP Address Order #   : 257
Gateway IP Address   : 192.168.0.1
Host IP address range: 192.168.0.2 - 192.168.1.254&lt;/span&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;192.168.0.255/23&lt;/span&gt;&lt;br /&gt;
&lt;pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.1em; margin-top: 0.1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;IP Address           : 192.168.0.255
Subnet Mask          : /23 (or 255.255.254.0)
IP address range     : 192.168.0.0 - 192.168.1.255
Network ID           : 192.168.0.0
Network Broadcast    : 192.168.1.255
IP Address Order #   : 256
Gateway IP Address   : 192.168.0.1
Host IP address range: 192.168.0.2 - 192.168.1.254&lt;/span&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Octet and Subnet Calculation&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Similar to /24 and smaller subnets, we keep referring to octets when working with /23 or larger subnets. As illustration, let's say you have 192.168.65.27/22 network. You need to determine the following&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* the network range&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* the IP address order number&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;You need to see the /22 network as part of larger /16 network (the whole 192.168.0.0 Class B network). /22 equals to 255.255.252.0. The 252 means that there are four /24 networks. On the 1st /22 network, the 3rd octet range would be .0 to .3.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Here is the breakdown on the 1st network&lt;/span&gt;&lt;br /&gt;
&lt;pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.1em; margin-top: 0.1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;192.168.0.0/22       = 192.168.0.0/24, 192.168.1.0/24, 192.168.2.0/24, 192.168.3.0/24
                     = 192.168.0.0 - 192.168.3.255
 
Network ID           : 192.168.0.0
Network Broadcast    : 192.168.0.255
Host IP Address range: 192.168.0.1 - 192.168.3.254&lt;/span&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;The remaining networks would be the following&lt;/span&gt;&lt;br /&gt;
&lt;pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.1em; margin-top: 0.1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;192.168.4.0  - 192.168.7.255  = 192.168.4.0/22
192.168.8.0  - 192.168.11.255 = 192.168.8.0/22
192.168.12.0 - 192.168.15.255 = 192.168.12.0/22
192.168.16.0 - 192.168.19.255 = 192.168.16.0/22
192.168.20.0 - 192.168.23.255 = 192.168.20.0/22
192.168.24.0 - 192.168.27.255 = 192.168.24.0/22
192.168.28.0 - 192.168.31.255 = 192.168.28.0/22
192.168.32.0 - 192.168.35.255 = 192.168.32.0/22
192.168.36.0 - 192.168.39.255 = 192.168.36.0/22
192.168.40.0 - 192.168.43.255 = 192.168.40.0/22
192.168.44.0 - 192.168.47.255 = 192.168.44.0/22
192.168.48.0 - 192.168.51.255 = 192.168.48.0/22
192.168.52.0 - 192.168.55.255 = 192.168.52.0/22
192.168.56.0 - 192.168.59.255 = 192.168.56.0/22
192.168.60.0 - 192.168.63.255 = 192.168.60.0/22
192.168.64.0 - 192.168.67.255 = 192.168.64.0/22
  .
  .
  .
  .
192.168.252.0 - 192.168.255.255 = 192.168.252.0/22&lt;/span&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;As you can see, the 192.168.65.27/22 within the 192.168.64.0/22 network with order number of 283.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Some Tips and Tricks&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;u style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;1. Convert CIDR Subnet Mask Format To Dotted 4-Tuple Format&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Note that when deals with /24 network or longer prefix, you only focus on the last octet. With Class B network, it is similar concept with focusing on the 3rd octet.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Class B network is between /16 and /23 CIDR. As mentioned, you only focus on the 3rd octet where the 1st two and last octets are constant. In other word, only the 3rd octet is changing as follows.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/24: 255.255.255.0&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/23: 255.255.254.0&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/22: 255.255.252.0&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/21: 255.255.248.0&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/20: 255.255.240.0&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/19: 255.255.224.0&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/18: 255.255.192.0&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/17: 255.255.128.0&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/16: 255.255.0.0&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;With Class B, there is a similar formula to convert CIDR format into dotted 4-tuple format by holding on these&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* The "longest" Class B network (the /24) always has 255 as the 3rd octet&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* The /24 always has a single Class C network&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* The next larger Class B network is always double size of the current Class B network. In other word, the next larger Class B network has double quantities of Class C network than the current Class B network&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* The 1st two octet are always 255 and the last octet is always 0 where the 3rd octet is changing&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;For illustration, you like to convert /18 CIDR into dotted 4-tuple format.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;The 3rd octet on the Class B network:&lt;/span&gt;&lt;br /&gt;
&lt;pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.1em; margin-top: 0.1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;CIDR     current 3rd        previous number        new current 3rd 
         octet number     of Class C network        octet number
 
/24:         255       -           0           =        255
/23:         255       -           1           =        254
/22:         254       -       2  (1 x 2)      =        252 
/21:         252       -       4  (2 x 2)      =        248 
/20:         248       -       8  (4 x 2)      =        240
/19:         240       -      16  (8 x 2)      =        224
/18:         224       -      32 (16 x 2)      =        192&lt;/span&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Since the 1st two octet are always 255 and the last octet is always 0, then the /18 CIDR is equal to 255.255.192.0 subnet mask.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;u style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;2. Find Out IP Address Quantity Within Specific Subnet&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;There is also similar formula like the one with the Class C network subnetting&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;(256 - The 3rd Octet) x 256 = IP Address Quantity Within Specific Subnet&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Illustration&lt;/span&gt;&lt;br /&gt;
&lt;pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.1em; margin-top: 0.1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/24: (256 - 255) x 256 =   1 x 256 =   256 IP addresses within the subnet
/23: (256 - 254) x 256 =   2 x 256 =   512 IP addresses within the subnet
/22: (256 - 252) x 256 =   4 x 256 =  1024 IP addresses within the subnet
/21: (256 - 248) x 256 =   8 x 256 =  2048 IP addresses within the subnet
/20: (256 - 240) x 256 =  16 x 256 =  4096 IP addresses within the subnet
/19: (256 - 224) x 256 =  32 x 256 =  8192 IP addresses within the subnet
/18: (256 - 192) x 256 =  64 x 256 = 16384 IP addresses within the subnet
/17: (256 - 128) x 256 = 128 x 256 = 32768 IP addresses within the subnet
/16: (256 - 0)   x 256 = 256 x 256 = 65536 IP addresses within the subnet&lt;/span&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;u style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;3. Reverse Bit Correlation Between Subnet Mask and Number of IP Address&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Let's visit the binary format of Class B network&lt;/span&gt;&lt;br /&gt;
&lt;pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.1em; margin-top: 0.1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;CIDR   Dotted 4-Tuple                 Binary
 
         O C T E T                  O C T E T
       1st.2nd.3rd.4th     1st   .  2nd   .  3rd   .  4th
 
/24:   255.255.255.0   = 11111111.11111111.11111111.00000000 
/23:   255.255.254.0   = 11111111.11111111.11111110.00000000
/22:   255.255.252.0   = 11111111.11111111.11111100.00000000
/21:   255.255.248.0   = 11111111.11111111.11111000.00000000
/20:   255.255.240.0   = 11111111.11111111.11110000.00000000
/19:   255.255.224.0   = 11111111.11111111.11100000.00000000
/18:   255.255.192.0   = 11111111.11111111.11000000.00000000
/17:   255.255.128.0   = 11111111.11111111.10000000.00000000
/16:   255.255.0.0     = 11111111.11111111.00000000.00000000&lt;/span&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;There is similar correlation between subnet mask and IP address quantity within the subnet on Class B network as on the Class C network. You can apply this correlation to find out smaller subnet quantity when subnetting Class B network into smaller Class C network. Here is the process.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* Find out the number of CIDR form of the smaller subnet, i.e. /n&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* Take n as the power of two as 2^n&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* Calculate 2^n&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* The 2^n represents the number of /n subnet will be when subnetting a Class B network into /n subnet&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Let's have an illustration. Say you have a full Class B network and you subnet it into smaller /28 network. You like to know how many /28 subnets will be, assuming you can use Subnet Zero.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Recall the /24 subnetting process where you only focus on the last octet. With Class B subnetting process, you only focus on the last two octets; the 3rd and the 4th.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;The /28 network in binary format has the 1st 28 bits set to one where the remaining 4 bits are set to zero. Let's remove the 1st two octets and just focus on the last two octets.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;When only focusing on the last two octets, there are the 1st 12 bits set to one where the remaining 4 bits are set to zero. Take the 1st bits that are set to one, which is 12; as the power of two as 2^12. The 2^12 equals to 4096. This 4096 represents the number of /28 subnet will be when subnetting a Class B network into /28 subnet.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Let's calculate how many /28 subnet will be within full Class B network using different method. As you may recall, there are 16 of /28 subnets within Class C network. Using the concept of size doubling, then you have the following table.&lt;/span&gt;&lt;br /&gt;
&lt;pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.1em; margin-top: 0.1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;/24:   16 of /28 subnets
/23:   32 of /28 subnets
/22:   64 of /28 subnets
/21:  128 of /28 subnets
/20:  256 of /28 subnets
/19:  512 of /28 subnets
/18: 1024 of /28 subnets
/17: 2048 of /28 subnets
/16: 4096 of /28 subnets&lt;/span&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;As to find out quickly the number of IP address within the a Class B network, you are using the same concept as dealing with the Class C network; which is based on the number of bits that are set to zero.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Following is an illustration. When you have let's say /19 network; there are the 1st 19 bits set to one and the remaining 13 bits set to zero. Take this number 13 as the power of two as 2^13. The 2^13 = 8192. This 8192 represents the number of IP addresses within the /19 network.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;As you may notice, the illustration assumes you can use Subnet Zero.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;u style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;4. Determine Smaller Subnet Range&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Problem 1:&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Let's say you have a full Class B network, which is 172.16.0.0/16 network. You subnet it into smaller /28 network. You like to find out how the 897th of /28 subnet looks like.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Here are the process&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* Find out how many subnets will be if the bigger subnet is /24&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* Take the number of the subnets and assigns it into m&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* Take a number n as of n-th of the smaller subnet&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* Calculate (n - 1) / m&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* When the calculation result is a round number, such number represents the 3rd octet of the n-th subnet. In addition, the 4th octet equals to 0&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* The 1st and 2nd octets are always constants&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* The IP address represented as such 1st, 2nd, 3rd, and 4th octets is the Network ID&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* The Network Broadcast last octet = m - 1&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Using the illustration, you need to find out how many /28 subnets within /24 network. As you may recall, there are 16 of /28 subnets within /24 network. You are finding out the 897th of the /28 subnet range is. Therefore&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;n = 897, m = 16&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;When you calculate (n - 1) / m, you have&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;(n - 1) / m = (897 - 1) / 16 = 56&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Since 56 is a round number, then the following two occur&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* The 56 represents as the 3rd octet&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* The 4th octet equals to 0&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;The 1st and 2nd octets are always constant. As a result, the IP address you have is 172.16.56.0; which is also the Network ID IP address. As to the Network Broadcast,&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Network Broadcast IP address last octet = m - 1 = 16 - 1 = 15&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;The 897th /28 subnet itself look like the following&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;172.16.56.0/28 = 172.16.56.0 - 172.16.56.15&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;where&lt;/span&gt;&lt;br /&gt;
&lt;pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.1em; margin-top: 0.1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Network ID IP address       : 172.16.56.0
Network Broadcast IP address: 172.16.56.15
Usable IP address for hosts : 172.16.56.1, 172.16.56.2, ...., 172.16.56.14&lt;/span&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Problem 2:&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Let's say you have a full Class B network, which is 172.16.0.0/16 network. You subnet it into smaller /28 network. You like to find out how the 3117th of /28 subnet looks like.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;There is a similar process as previous problem, with some additional steps to deal with non-round number.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* Find out how many subnets will be if the bigger subnet is /24&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* Take the number of the subnets and assigns it into m&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* Take a number n as of n-th of the smaller subnet&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* Calculate (n - 1) / m&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* When the calculation result is not a round number, you only consider the round number part and remove the fraction&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* The round part represents the 3rd octet&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* Multiple the round number part (the 3rd octet) by m&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* Add the result by 1&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* Assign p as the final result, where p = (the 3rd octet x m) + 1&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* The result of (n - p) x m represents the Network ID IP address last octet&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* The result of (Network ID IP address last octet + (m - 1)) represents the Network Broadcast IP address last octet&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* The 1st and 2nd octets are always constants&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* The IP address represented as such 1st, 2nd, 3rd, and 4th (last) octets is the n-th of how the smaller subnet look like&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Using the illustration, you need to find out how many /28 subnets within /24 network. As you may recall, there are 16 of /28 subnets within /24 network. You are finding out the 3117th of the /28 subnet range is. Therefore&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;n = 3117, m = 16&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;(n - 1) / m = (3117 - 1) / 16 = 3116/16 = 194.75&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;The 194.75 is not a round number, so we only consider the round part and remove the fraction. In other word, we take the 194 only. This 194 round number represents the 3rd octet.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;p = (the 3rd octet x m) + 1 = (194 x 16) + 1 = 3104 + 1 = 3105&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;(n - p) x m = (3117 - 3105) x 16 = 192&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;This 192 represents the last octet of the Network ID IP address. In other word,&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;3117th subnet Network ID IP address: 172.16.194.192/28&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Network ID last octet + (m - 1) = 192 + (16 - 1) = 192 + 15 = 207&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;This 207 represents the last octet of the Network Broadcast IP address. In other word,&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;3117th subnet Network Broadcast IP address: 172.16.194.207/28&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Since you now have both Network ID and Network Broadcast IP addresses, then the 3117th /28 subnet off the 172.16.0.0/16 looks like the following.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;3117th subnet: 172.16.194.192/28 = 172.16.194.192 - 172.16.194.207&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;where&lt;/span&gt;&lt;br /&gt;
&lt;pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.1em; margin-top: 0.1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Network ID IP address       : 172.16.194.192
Network Broadcast IP address: 172.16.194.207
Usable IP address for hosts : 172.16.194.193, 172.16.194.194, ...., 172.16.194.206&lt;/span&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Note&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;1. These two problems assume that you can use Subnet Zero. If you cannot use Subnet Zero, you need to modify the formula although the concept is the same.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;2. The p = 3105 represents the 3105-th subnet. In other words, p = n = 3105 in case you like to find out how the 3105th /28 subnet range is.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;3. From previous note, you can then apply the formula or process within Problem 2 into Problem 1 with the same result. In other words, Problem 2 formula or process is in general form compared to the Problem 1.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;u style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;5. Convert Dotted 4-Tuple Subnet Mask Format Into CIDR Format&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Let's say you have 255.255.192.0 subnet mask. You like to know how the subnet mask looks in CIDR format.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;You are using the similar process as in the Class C network with the difference of working on the 3rd octet only where the 1st, 2nd, and 4th octets are constant.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Following are the steps when deals with Class B subnetting:&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* Focus only on the 3rd octet&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* Set the octet as the last octet of a /24 network subnet mask where 1st, 2nd, and 3rd octets are 255&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* Determine IP address quantity within the new /24 network subnet&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* Find out n where 2^n = IP address quantity within the subnet&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* Subtract 8 by n&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* Take the subtraction result as additional set-to-one bits to the 1st 16 bits set to one of the full Class B subnet mask&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* Add the total number of bits set to one&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;* This total number represents the CIDR format&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Let's use an illustration to convert the 255.255.192.0 into CIDR format. Focus only on the 3rd octet, which is the&lt;span style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: blue; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;b style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;192&lt;/b&gt;&lt;/span&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Set the&amp;nbsp;&lt;span style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: blue; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;b style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;192&lt;/b&gt;&lt;/span&gt;&amp;nbsp;as the last octet of a /24 network subnet mask as 255.255.255.&lt;span style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: blue; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;b style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;192&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;When you build up your own table (or memorize it), you know there are 64 IP addresses within 255.255.255.192 subnet mask.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Find out n where 2^n = 64&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;By simple calculation (and probably some trial and error), you find that n = 6&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Recall the previous discussion that in binary format, all the bits within 1st and 2nd octet of Class B network are set to one. Similarly all bits within the last octet are set to zero. Only bits within the 3rd octet are changing. Let's focus on the bits within this 3rd octet.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;As you know, there are 8 bits within the 3rd octet. In /16 network (the full Class B network), all of those 8 bits within the 3rd octet are set to zero. With the value of n = 6, this means that there are 6 last bits set to zero within the 3rd octet itself.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Subtract 8 by 6 to have 2. This 2 represents the remaining 2 bits set to one; which are also the 1st 2 bits within those 8 bits. Take these 2 bits as additional set-to-one bits into the 1st 16 bits of the full Class B subnet mask.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;The full Class B subnet mask has the 1st 16 bits set to one. With additional 2 bits set to one, there are total of the 1st 18 bits set to one. Therefore 255.255.192.0 network has the 1st 18 bits set to one (16 + additional 2) where the remaining 14 bits are set to zero.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Since CIDR format bases on the 1st set-to-one bits, the 255.255.192.0 subnet mask is equal to /18 CIDR.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://ubuntu-indo.blogspot.com/2011/07/quick-subnet-calculating-techniques.html</link><author>noreply@blogger.com (Ubuntu Indo)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5493482958642955820.post-6584955324078657528</guid><pubDate>Tue, 29 Mar 2011 16:28:00 +0000</pubDate><atom:updated>2011-03-29T23:28:18.812+07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">PC Router</category><category domain="http://www.blogger.com/atom/ns#">Ubuntu</category><title>LINUX HOWTO MINI INTERNET-CONNECTION-SHARING</title><description>&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;LINUX HOWTO MINI INTERNET-CONNECTION-SHARING&lt;br /&gt;
&lt;br /&gt;
I have ADSL ethernet modem, wired/cable, DNS.&lt;br /&gt;
&lt;br /&gt;
www/adsl -&amp;gt; eth0 -&amp;gt; wlan0 -&amp;gt; ath0&lt;br /&gt;
&lt;br /&gt;
Desktop network card eth0&lt;br /&gt;
Desktop wireless card wlan0&lt;br /&gt;
Laptop wireless card ath0&lt;br /&gt;
&lt;br /&gt;
In Terminal:&lt;br /&gt;
&lt;br /&gt;
echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE&lt;br /&gt;
iptables -A FORWARD -i wlan0 -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
(Second iptables command - prevents ratelimit messages)&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
eth0 IP&lt;br /&gt;
ifconfig&lt;br /&gt;
192.168.1.2&lt;br /&gt;
&lt;br /&gt;
Desktop&lt;br /&gt;
iwconfig wlan0 mode ad-hoc&lt;br /&gt;
ifconfig wlan0 192.168.2.2&lt;br /&gt;
&lt;br /&gt;
Check mode ad-hoc&lt;br /&gt;
iwconfig&lt;br /&gt;
&lt;br /&gt;
Laptop&lt;br /&gt;
iwconfig ath0 mode ad-hoc&lt;br /&gt;
ifconfig ath0 192.168.2.3&lt;br /&gt;
route add default gw 192.168.2.2 (IP address wlan0)&lt;br /&gt;
&lt;br /&gt;
Check mode ad-hoc&lt;br /&gt;
iwconfig&lt;br /&gt;
&lt;br /&gt;
Desktop:&lt;br /&gt;
/etc/resolv.conf&lt;br /&gt;
nameserver XXX.XXX.XXX.XXX&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
nameserver XXX.XXX.XXX.XXX&lt;br /&gt;
nameserver XXX.XXX.XXX.XXX&lt;br /&gt;
&lt;br /&gt;
Edit laptop /etc/resolv.conf same as desktop.&lt;br /&gt;
ping -c 4 www_dot_gewgle_dot_commm&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
www/cable/adsl -&amp;gt; eth0 -&amp;gt; wlan0 -&amp;gt; ath0&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;or&lt;br /&gt;
www/wifi_modem/router -&amp;gt; wlan0 -&amp;gt; wlan1 -&amp;gt; ath0&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;or&lt;br /&gt;
www/gprs/cable_usb -&amp;gt; ppp0 -&amp;gt; wlan0 -&amp;gt; ath0&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;or&lt;br /&gt;
www/gprs/bluetooth -&amp;gt; rfcomm0 -&amp;gt; wlan0 -&amp;gt; ath0&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;or next task satellite &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
www/gprs/cable_usb -&amp;gt; ppp0 -&amp;gt; wlan0 -&amp;gt; ath0 #ATD*99# or ATD*99***1#&lt;br /&gt;
&lt;br /&gt;
pppd  connect 'chat "" AT+CGDCONT=1,IP,APN_example_pp.vodapone.co.uk OK  ATD*99#' ttyACM0 noauth defaultroute usepeerdns noipdefault&lt;br /&gt;
&lt;br /&gt;
Desktop GPRS connection ppp0&lt;br /&gt;
Desktop wireless card wlan0&lt;br /&gt;
Laptop wireless card ath0&lt;br /&gt;
&lt;br /&gt;
In Terminal:&lt;br /&gt;
&lt;br /&gt;
echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE&lt;br /&gt;
iptables -A FORWARD -i wlan0 -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
(Second iptables command - prevents ratelimit messages)&lt;br /&gt;
&lt;br /&gt;
ppp0 IP&lt;br /&gt;
ifconfig&lt;br /&gt;
XXX.XXX.XXX.XXX&lt;br /&gt;
&lt;br /&gt;
Desktop&lt;br /&gt;
iwconfig wlan0 mode ad-hoc&lt;br /&gt;
ifconfig wlan0 192.168.2.2&lt;br /&gt;
&lt;br /&gt;
Check mode ad-hoc&lt;br /&gt;
iwconfig&lt;br /&gt;
&lt;br /&gt;
Laptop&lt;br /&gt;
iwconfig ath0 mode ad-hoc&lt;br /&gt;
ifconfig ath0 192.168.2.3&lt;br /&gt;
route add default gw 192.168.2.2 (IP address wlan0)&lt;br /&gt;
&lt;br /&gt;
Check mode ad-hoc&lt;br /&gt;
iwconfig&lt;br /&gt;
&lt;br /&gt;
Desktop:&lt;br /&gt;
/etc/resolv.conf&lt;br /&gt;
nameserver XXX.XXX.XXX.XXX&lt;br /&gt;
nameserver XXX.XXX.XXX.XXX&lt;br /&gt;
&lt;br /&gt;
Edit laptop /etc/resolv.conf same as desktop.&lt;br /&gt;
ping -c 4 www_dot_gewgle_dot_commm&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
/etc/rfcomm.conf&lt;br /&gt;
passkey "1234";&lt;br /&gt;
pin_helper /usr/local/bin/hook&lt;br /&gt;
&lt;br /&gt;
#!/bin/sh #hook&lt;br /&gt;
PIN='cat /etc/bluetooth/pin'&lt;br /&gt;
echo "PIN:$PIN"&lt;br /&gt;
&lt;br /&gt;
/var/lib/bluetooth/MA:CM:AC:MA:CM:AC/pincodes #dongle MAC&lt;br /&gt;
MA:CM:AC:MA:CM:AC 1234 #cell-phone MAC&lt;br /&gt;
&lt;br /&gt;
#Display dongle(MAC) - hcitool dev #Display cell-phone(MAC) - hcitool scan #Pair dongle - rfcomm connect rfcomm0&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------&lt;/span&gt;                                           &lt;/div&gt;</description><link>http://ubuntu-indo.blogspot.com/2011/03/linux-howto-mini-internet-connection.html</link><author>noreply@blogger.com (Ubuntu Indo)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5493482958642955820.post-5970994787058300549</guid><pubDate>Mon, 14 Mar 2011 05:59:00 +0000</pubDate><atom:updated>2011-03-14T13:01:07.832+07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">PC Router</category><category domain="http://www.blogger.com/atom/ns#">Ubuntu</category><title>Pc Router On Ubuntu</title><description>&lt;div class="style1" style="text-align: justify;"&gt;&lt;span style="font-family: sans-serif; font-size: x-small;"&gt;As I said above, that here I assume you all have been successfully installed ubuntu 8.04 server version on a computer, then the first step to install the PC router on ubuntu is the Ubuntu updates and upgrades you, this is for all the packages required by ubuntu can be installed updates and upgrades as such, but before the update and upgrade our ubuntu to set ip address from your ISP and LAN as well, the following steps (login as root) :&lt;br /&gt;
&lt;/span&gt;             &lt;div style="font-family: sans-serif; text-align: left;"&gt;&lt;span style="font-size: x-small;"&gt;root@server:~#                 &lt;strong&gt;vim /etc/network/interfaces&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style="font-family: sans-serif; font-size: x-small;"&gt;&amp;nbsp; &lt;/span&gt;                                  &lt;div style="color: #999999; font-family: sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;-- by pressing the letter &lt;b&gt;i&lt;/b&gt; add the following line --&lt;/span&gt;&lt;/div&gt;&lt;div class="style1"&gt;&lt;span style="font-family: sans-serif; font-size: x-small;"&gt;## ISP Connection&lt;br /&gt;
auto eth0&lt;br /&gt;
iface eth0 inet static&lt;br /&gt;
address 202.172.16.41&lt;br /&gt;
netmask 255.255.255.248&lt;br /&gt;
network 202.172.16.39&lt;br /&gt;
broadcast 202.172.16.47&lt;br /&gt;
gateway 202.172.16.40&lt;/span&gt;&lt;/div&gt;&lt;table border="0" cellpadding="2" cellspacing="0" style="height: 32px; text-align: left; width: 582px;"&gt;&lt;tbody&gt;
&lt;tr&gt;             &lt;td style="vertical-align: top; width: 340px;"&gt;                          &lt;ins style="border: medium none; display: inline-table; height: 280px; margin: 0pt; padding: 0pt; position: relative; visibility: visible; width: 336px;"&gt;&lt;ins id="google_ads_frame4_anchor" style="border: medium none; display: block; height: 280px; margin: 0pt; padding: 0pt; position: relative; visibility: visible; width: 336px;"&gt;&lt;/ins&gt;&lt;/ins&gt;&lt;/td&gt;             &lt;td style="vertical-align: top;"&gt;             &lt;div class="style1"&gt;&lt;span style="font-family: sans-serif; font-size: x-small;"&gt;## Koneksi to LAN&lt;br /&gt;
auto eth1&lt;br /&gt;
iface eth1 inet static&lt;br /&gt;
address 192.168.1.1&lt;br /&gt;
netmask 255.255.255.0&lt;br /&gt;
network 192.168.1.0&lt;br /&gt;
broadcast 192.168.1.255&lt;br /&gt;
##gateway 192.168.1.1&lt;/span&gt;&lt;/div&gt;&lt;span style="color: #999999;"&gt; &lt;span style="font-family: sans-serif; font-size: x-small;"&gt;&lt;span style="font-size: x-small;"&gt;-- save by pressing &lt;b&gt;:wq&lt;/b&gt; and &lt;b&gt;Enter&lt;/b&gt;               --&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #999999;"&gt;&lt;span style="font-family: sans-serif; font-size: x-small;"&gt;If everything is ok, the               next step is to make sure that the connection to the internet is ok,&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;           &lt;/tr&gt;
&lt;/tbody&gt;       &lt;/table&gt;&lt;div class="style1"&gt;        &lt;span style="font-family: sans-serif; font-size: x-small;"&gt;with a step ping yahoo.com and if the reply is the connection to the Internet was ok and continue to update and upgrade ubuntu :&lt;/span&gt;&lt;/div&gt;&lt;div class="style1"&gt;        &lt;span style="font-family: sans-serif; font-size: x-small;"&gt;root@server:~# &lt;strong&gt;aptitude update &amp;amp;&amp;amp; aptitude upgrade&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="style1"&gt;        &lt;span style="font-family: sans-serif; font-size: x-small;"&gt;For the next step after the update and upgrade is finished editing the sysctl.conf file:&lt;/span&gt;&lt;/div&gt;&lt;div class="style1"&gt;        &lt;span style="font-family: sans-serif; font-size: x-small;"&gt;root@server:~# &lt;strong&gt;vim /etc/sysctl.conf&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="style1"&gt;        &lt;span style="font-family: sans-serif; font-size: x-small;"&gt;         by pressing the letter i find writing #net.ipv4.conf.default.forwarding         = 1 and remove the fence that marks the         net.ipv4.conf.default.forwarding = 1&lt;/span&gt;&lt;/div&gt;&lt;div class="style1"&gt;        &lt;span style="font-family: sans-serif; font-size: x-small;"&gt; save by pressing :wq and Enter&lt;/span&gt;&lt;/div&gt;&lt;div class="style1"&gt;        &lt;span style="font-family: sans-serif; font-size: x-small;"&gt;Edit the file ip_forward the valuabe 0 fox into 1 with the following         steps:&lt;/span&gt;&lt;/div&gt;&lt;div class="style1"&gt;        &lt;span style="font-family: sans-serif; font-size: x-small;"&gt;root@server:~# &lt;strong&gt;echo "1" &amp;gt;           /proc/sys/net/ipv4/ip_forward&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="style1"&gt;        &lt;span style="font-family: sans-serif; font-size: x-small;"&gt;            Next we have to make the routing of eth 1 (LAN) to the eth0 (ISP /            WAN), it is intended to allow LAN users can communicate with the            outside world (the Global Internet), with the command:&lt;/span&gt;&lt;/div&gt;&lt;div class="style1"&gt;        &lt;span style="font-family: sans-serif; font-size: x-small;"&gt;root@server:~#&lt;strong&gt; /sbin/iptables -t nat -A POSTROUTING              -s 192.168.1.0/255.255.255.0 -d 0/0 -j MASQUERADE&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="style1"&gt;        &lt;span style="font-family: sans-serif; font-size: x-small;"&gt;             Do not forget to save the command script we have made earlier in the             rc.local, it is intended that when the computer is restarted the server             then automatically orders we have made can be run by the server             computer:&lt;/span&gt;&lt;/div&gt;&lt;div class="style1"&gt;        &lt;span style="font-family: sans-serif; font-size: x-small;"&gt;root@server:~# &lt;strong&gt;Vim /etc/rc.local&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="style1"&gt;        &lt;span style="font-family: sans-serif; font-size: x-small;"&gt;-- by pressing the letter &lt;b&gt;i&lt;/b&gt; add the following line --&lt;/span&gt;&lt;/div&gt;&lt;div class="style1"&gt;        &lt;span style="font-family: sans-serif; font-size: x-small;"&gt;    echo "1" &amp;gt; /proc/sys/net/ipv4/ip_forward &lt;br /&gt;
/sbin/iptables -t nat -A POSTROUTING -s 192.168.1.0/255.255.255.0 -d&lt;br /&gt;
0/0 -j MASQUERADE&lt;/span&gt;&lt;/div&gt;&lt;div class="style1"&gt;        &lt;span style="font-family: sans-serif; font-size: x-small;"&gt;Computer server restart:&lt;/span&gt;&lt;/div&gt;&lt;div class="style1"&gt;        &lt;span style="font-family: sans-serif; font-size: x-small;"&gt;root@server:~#&lt;strong&gt; reboot&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="style1"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="style1"&gt;&lt;span style="font-family: sans-serif; font-size: x-small;"&gt;&lt;strong&gt;references : http://udiniqgeek.com/router_pc.html &lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;</description><link>http://ubuntu-indo.blogspot.com/2011/03/pc-router-on-ubuntu.html</link><author>noreply@blogger.com (Ubuntu Indo)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5493482958642955820.post-8902483314558472600</guid><pubDate>Mon, 14 Mar 2011 05:49:00 +0000</pubDate><atom:updated>2011-03-14T12:51:34.626+07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Ubuntu</category><title>Install Subversion and WebSvn on Ubuntu Server</title><description>&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;On my last post I wrote about Ubuntu server and Webmin and why I changed WHS with Ubuntu server. Today I'm going to write about &lt;a href="http://subversion.tigris.org/"&gt;Subversion&lt;/a&gt; and &lt;a href="http://websvn.tigris.org/"&gt;WebSVN&lt;/a&gt;  on Ubuntu server. One of the things that I had in WHS was a source  control where I stored my code and documents. For that I used &lt;a href="http://www.visualsvn.com/server/"&gt;VisualSVN&lt;/a&gt;. &lt;a href="http://www.visualsvn.com/server/"&gt;VisualSVN&lt;/a&gt; combines &lt;a href="http://subversion.tigris.org/"&gt;Subversion&lt;/a&gt; with a web interface of all repositories and also includes user management. To me &lt;a href="http://www.visualsvn.com/server/"&gt;VisualSVN&lt;/a&gt; is the all in one...Veryyy goood product and unfortunately for me &lt;a href="http://www.visualsvn.com/server/"&gt;VisualSVN&lt;/a&gt; is just for Windows :(. &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;So one of the things I did before move to Ubuntu Server was backup my &lt;a href="http://subversion.tigris.org/"&gt;Subversion&lt;/a&gt; repositories so I could restore them on Ubuntu Server. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;In  Ubuntu Server I had to do install a few packages and do a few steps in  order to once again have source control and a web interface. So today  I'm going to explain how to install &lt;a href="http://subversion.tigris.org/"&gt;Subversion&lt;/a&gt; and &lt;a href="http://websvn.tigris.org/"&gt;WebSVN&lt;/a&gt; on Ubuntu server. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;The first thing to do is install &lt;a href="http://subversion.tigris.org/"&gt;Subversion&lt;/a&gt; and apache package for &lt;a href="http://subversion.tigris.org/"&gt;Subversion&lt;/a&gt;. All I need to do is:&amp;nbsp;&lt;a name='more'&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;blockquote style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sudo aptitude install subversion libapache2-svn &lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;In  the next step I need to create a directory where my repositories will  be stored. In my case /var/sourcecontrol/svn/. The default location is  /var/lib/svn/.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;This command will create de directory where all my repositories will be:&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;blockquote style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sudo mkdir /var/sourcecontrol/svn &lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;After create the directory I copied my entire repository backup from windows into this directory. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;Note if I need to create new repositories I just had to do: &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;blockquote style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sudo svnadmin create /var/sourcecontrol/svn/newRepository &lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;newRepository is the name of the new repository. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;Next I need to change the owner of the files in order to access using apache. This can be done with this command: &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;blockquote style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sudo chown www-data:www-data&amp;nbsp; /var/sourcecontrol/svn/repositoryName -R &lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;repositoryName is the name of the repository. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;Next  I just need to configure all my repositories to be access in apache.  This can be done by editing the file  /etc/apache2/mods-available/dav_svn.conf &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;To edit I just run the command:&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;blockquote style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sudo nano /etc/apache2/mods-available/dav_svn.conf &lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;Scroll all the way down and add the following code for each repository: &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;&amp;lt;Location /repositoryName&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
DAV svn     &lt;br /&gt;
SVNPath /var/sourcecontrol/svn/repositoryName     &lt;br /&gt;
AuthType Basic     &lt;br /&gt;
AuthName "Subversion repository repositoryName"     &lt;br /&gt;
&amp;lt;/Location&amp;gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;Next restart the apache :&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;blockquote style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sudo /etc/init.d/apache2 restart &lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;Open a browser and type &lt;a href="http://[serverip]/repositoryName"&gt;http://[serverip]/repositoryName&lt;/a&gt; and the repository is now availably in browser. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;Notice the &lt;b&gt;/repositoryName&lt;/b&gt; in the location is the same as &lt;b&gt;/repositoryName&lt;/b&gt; in the url. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;After this step you can start doing some checkin's :P &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;The next step is to install &lt;a href="http://websvn.tigris.org/"&gt;WebSVN&lt;/a&gt;. &lt;a href="http://websvn.tigris.org/"&gt;WebSVN&lt;/a&gt; is a very good web interface to see all repositories. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;The first thing to do is install the package. This can be done with the command: &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;blockquote style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sudo aptitude install websvn &lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;To have syntax highlight in the source code just install enscript . This can be done with this command: &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;blockquote style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sudo aptitude install enscript &lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;Now a few things you should know: &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;During the install of &lt;a href="http://websvn.tigris.org/"&gt;WebSVN&lt;/a&gt; three screens will appear:     &lt;br /&gt;
1 - Select the webserver for configuration.     &lt;br /&gt;
2 - Specify the path of the subversion repositories, in this case (/var/sourcecontrol/svn).     &lt;br /&gt;
3  - If all repositories are in the same parent folder leave this in blank  otherwise you will have to specify all repositories separated by comma.  &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;The package &lt;a href="http://websvn.tigris.org/"&gt;WebSVN&lt;/a&gt; is installed into /usr/share/websvn/, it's necessary to copy to /var/www/. This can be done with the command:&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;blockquote style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sudo cp -r /usr/share/websvn/ /var/www/ &lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;After copy to /var/www it's necessary to edit the file /etc/apache2/mods-available/dav_svn.conf, again with the command:&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;blockquote style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sudo nano /etc/apache2/mods-available/dav_svn.conf &lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;Next, scroll down and add the following &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;&amp;lt;Location /websvn/&amp;gt;    &lt;br /&gt;
Options FollowSymLinks     &lt;br /&gt;
order allow,deny     &lt;br /&gt;
allow from all     &lt;br /&gt;
AuthType Basic     &lt;br /&gt;
AuthName "Subversion Repository"&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;lt;/Location&amp;gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;Save the file and restart apache by doing: &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;blockquote style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sudo /etc/init.d/apache2 restart &lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;Now just type &lt;a href="http://[serverip]/websvn"&gt;http://[serverip]/websvn&lt;/a&gt; and you will see the &lt;a href="http://websvn.tigris.org/"&gt;WebSVN&lt;/a&gt; page and your repositories. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;If for some reason your repositories have strange names in just edit the file /etc/websvn/svn_deb_conf.inc with the command :&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;blockquote style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sudo nano /etc/websvn/svn_deb_conf.inc &lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;In this file you will have something like this: &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;&amp;lt;?php    &lt;br /&gt;
// please edit /etc/websvn/config.php     &lt;br /&gt;
// or use dpkg-reconfigure websvn     &lt;br /&gt;
$config-&amp;gt;parentPath("/var/sourcecontrol/svn/");     &lt;br /&gt;
$config-&amp;gt;addRepository("repositoryName\", file:///var/sourcecontrol/svn/repositoryName1);     &lt;br /&gt;
$config-&amp;gt;addRepository("repositoryName", "file:///var/sourcecontrol/svn/repositoryName2");     &lt;br /&gt;
$config-&amp;gt;setEnscriptPath("/usr/bin");     &lt;br /&gt;
$config-&amp;gt;setSedPath("/bin");     &lt;br /&gt;
$config-&amp;gt;useEnscript();     &lt;br /&gt;
?&amp;gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;Here  it's possible specify the parent path of all repositories and specify  each repository name and location. it's here also that it's specified  the path on enscript installed before. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;Hope you enjoy the source control and as much as I do :)&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;references : http://agilior.pt/blogs/pedro.rainho/archive/2010/02/06/11698.aspx &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;Special Thanks for &lt;a href="http://www.guerratopia.com/subversion-websvn-en-ubuntu"&gt;Guerrix and his post on how to install subversion and websvn.&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;</description><link>http://ubuntu-indo.blogspot.com/2011/03/install-subversion-and-websvn-on-ubuntu.html</link><author>noreply@blogger.com (Ubuntu Indo)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5493482958642955820.post-8673541233272733678</guid><pubDate>Mon, 14 Mar 2011 05:42:00 +0000</pubDate><atom:updated>2011-03-14T12:53:35.429+07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Mail</category><category domain="http://www.blogger.com/atom/ns#">Ubuntu</category><category domain="http://www.blogger.com/atom/ns#">Webmail</category><title>RoundCube Change icon, logo, title  ( Web Mail Tricks &amp; Tips )</title><description>&lt;div class="post-bodycopy clearfix" style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;h2&gt;&lt;span style="color: black; font-size: x-small;"&gt;How to change the Logo&lt;/span&gt;&lt;/h2&gt;&lt;span style="font-size: x-small;"&gt;By default, the logo is located in the roundcube here:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;/roundcube/skins/default/images&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;and the file name is&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;roundcube_logo.png&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;The easiest thing to do, is to use your favorite image editor, and  create a png image that is is 165px x 55px. And name it  roundcube_logo.png&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;Next step is to access your site via FTP/SFTP and change the name of the original file to something like&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;roundcube_logo.png.old&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;Then upload your custom image to the same directory. Refresh the browser and bask in the glow of your custom logo!&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;Change Page Title&lt;a name='more'&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;change the page title and log in welcome message&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;&lt;span style="font-size: x-small;"&gt;By default, the page title in the browser always shows as:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;RoundCube Webmail&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;But you want it to say the name of your website or hosting company. All you need to do is edit the&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;main.inc.php&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;file that is located in&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;/roundcube/config/&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;find&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;// use this name to compose page titles&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;$rcmail_config['product_name'] = ‘RoundCube Webmail’;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;And change RoundCube Webmail to whatever you want.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;You can edit this file directly on the server with an editor like VI, or you can download the file, edit and reupload.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;Once you’re done, reload your browser, and enjoy.&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;Change favicon.ico&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;&lt;span style="font-size: x-small;"&gt;So you don’t want the little RoundCube favicon in your browser either? Easy enough.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;If you dont have an icon editor, create the icon in your favorite  graphic editor, and then use a favicon creator like Dynamic Drive.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;Next, change the name of the original favicon.ico in&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;/home/username/public_html/roundcube/skins/default/images/&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;to something like&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;favicon.ico.old&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;And then upload your new favicon.ico.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;Clear your browser cache, and reload your page.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;References : http://support.benjamintech.net/?p=1040 &lt;/span&gt;&lt;/div&gt;</description><link>http://ubuntu-indo.blogspot.com/2011/03/roundcube-change-icon-logo-title-web.html</link><author>noreply@blogger.com (Ubuntu Indo)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5493482958642955820.post-8122278464250409829</guid><pubDate>Mon, 14 Mar 2011 02:29:00 +0000</pubDate><atom:updated>2011-03-14T09:29:16.225+07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Squid</category><category domain="http://www.blogger.com/atom/ns#">Ubuntu</category><title>Squid content filtering: Block / download of music MP3, mpg, mpeg, exec files</title><description>&lt;div class="format_text entry-content"&gt;&lt;div style="float: right; margin-left: 5px; margin-top: 0px;"&gt;&lt;a href="http://www.cyberciti.biz/faq/category/squid/" title="See all Squid related FAQ"&gt;&lt;img border="0" src="http://files.cyberciti.biz/cbzcache/3rdparty/squid-logo.png" /&gt;&lt;/a&gt;&lt;/div&gt;Q. For security and to save bandwidth I would like to configure Squid  proxy server such way that I do not want my users to download all of  the following files:&lt;br /&gt;
MP3&lt;br /&gt;
MPEG&lt;br /&gt;
MPG&lt;br /&gt;
AVG&lt;br /&gt;
AVI&lt;br /&gt;
EXE&lt;br /&gt;
How do I configure squid content filtering?&lt;br /&gt;
A. You can use squid ACL (access control list) to block all these files easily. &lt;br /&gt;
&lt;h3&gt;How do I  block music files using squid content filtering ACL?&lt;/h3&gt;&lt;h3&gt;&lt;a name='more'&gt;&lt;/a&gt;&amp;nbsp;&lt;/h3&gt;First open squid.conf file /etc/squid/squid.conf:&lt;br /&gt;
&lt;code&gt;# vi /etc/squid/squid.conf&lt;/code&gt;&lt;br /&gt;
Now add following lines to your squid ACL section:&lt;br /&gt;
&lt;code&gt;acl blockfiles urlpath_regex &lt;span style="color: red;"&gt;"/etc/squid/blocks.files.acl"&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
You want display custom error message when a file is blocked:&lt;br /&gt;
&lt;code&gt;# Deny all blocked extension&lt;br /&gt;
deny_info &lt;span style="color: red;"&gt;ERR_BLOCKED_FILES&lt;/span&gt; blockfiles&lt;br /&gt;
http_access deny &lt;span style="color: red;"&gt;blockfiles&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
Save and close the file.&lt;br /&gt;
Create custom  error message HTML file called ERR_BLOCKED_FILES in  /etc/squid/error/ directory or /usr/share/squid/errors/English  directory.&lt;br /&gt;
&lt;code&gt;# vi ERR_BLOCKED_FILES&lt;/code&gt;&lt;br /&gt;
Append following content:&lt;br /&gt;
&lt;pre&gt;&lt;tt&gt;&lt;span style="color: red;"&gt;&amp;lt;HTML&amp;gt;&lt;/span&gt;
&lt;span style="color: red;"&gt;&amp;lt;HEAD&amp;gt;&lt;/span&gt;
&lt;span style="color: red;"&gt;&amp;lt;TITLE&amp;gt;&lt;/span&gt;ERROR&lt;span style="color: #990000;"&gt;:&lt;/span&gt; Blocked &lt;span style="font-weight: bold;"&gt;&lt;span style="color: blue;"&gt;file&lt;/span&gt;&lt;/span&gt; content&lt;span style="color: red;"&gt;&amp;lt;/TITLE&amp;gt;&lt;/span&gt;
&lt;span style="color: red;"&gt;&amp;lt;/HEAD&amp;gt;&lt;/span&gt;
&lt;span style="color: red;"&gt;&amp;lt;BODY&amp;gt;&lt;/span&gt;
&lt;span style="color: red;"&gt;&amp;lt;H1&amp;gt;&lt;/span&gt;File is blocked due to new IT policy&lt;span style="color: red;"&gt;&amp;lt;/H1&amp;gt;&lt;/span&gt;
&lt;span style="color: red;"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;Please contact helpdesk &lt;span style="font-weight: bold;"&gt;&lt;span style="color: blue;"&gt;for&lt;/span&gt;&lt;/span&gt; more information&lt;span style="color: #990000;"&gt;:&lt;/span&gt;&lt;span style="color: red;"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
Phone&lt;span style="color: #990000;"&gt;:&lt;/span&gt; &lt;span style="color: #993399;"&gt;555&lt;/span&gt;&lt;span style="color: #990000;"&gt;-&lt;/span&gt;&lt;span style="color: #993399;"&gt;12435&lt;/span&gt; &lt;span style="color: #990000;"&gt;(&lt;/span&gt;ext &lt;span style="color: #993399;"&gt;44&lt;/span&gt;&lt;span style="color: #990000;"&gt;)&lt;/span&gt;&lt;span style="color: red;"&gt;&amp;lt;br&amp;gt;&lt;/span&gt;
Email&lt;span style="color: #990000;"&gt;:&lt;/span&gt; helpdesk&lt;span style="color: #009900;"&gt;@yourcorp&lt;/span&gt;&lt;span style="color: #990000;"&gt;.&lt;/span&gt;com&lt;span style="color: red;"&gt;&amp;lt;br&amp;gt;&lt;/span&gt;&lt;/tt&gt;&lt;/pre&gt;&lt;b&gt;&lt;span style="color: red;"&gt;Caution:&lt;/span&gt;&lt;/b&gt; Do not include HTML close tags &lt;i&gt;&amp;lt;/HTML&amp;gt;&lt;/i&gt; &lt;i&gt;&amp;lt;/BODY&amp;gt;&lt;/i&gt; as it will be closed by squid.&lt;br /&gt;
Now create /etc/squid/blocks.files.acl file:&lt;br /&gt;
&lt;code&gt;# vi /etc/squid/blocks.files.acl&lt;/code&gt;&lt;br /&gt;
Append following text:&lt;br /&gt;
&lt;code&gt;\.[Ee][Xx][Ee]$&lt;br /&gt;
\.[Aa][Vv][Ii]$&lt;br /&gt;
\.[Mm][Pp][Gg]$&lt;br /&gt;
\.[Mm][Pp][Ee][Gg]$&lt;br /&gt;
\.[Mm][Pp]3$&lt;/code&gt;&lt;br /&gt;
Save and close the file. Restart Squid:&lt;br /&gt;
&lt;code&gt;# /etc/init.d/squid restart&lt;/code&gt;&lt;br /&gt;
Squid in action:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;&lt;a class="imagelink" href="http://files.cyberciti.biz/uploads/faq/2007/01/squid-block-mp3s.jpg" title="Squid content filtering howto"&gt;&lt;img alt="Squid content filtering howto" border="0" height="320" id="image458" src="http://www.cyberciti.biz/faq/wp-content/uploads/2007/01/squid-block-mp3s.jpg" width="399" /&gt;&lt;/a&gt;&lt;/center&gt;&lt;/div&gt;</description><link>http://ubuntu-indo.blogspot.com/2011/03/squid-content-filtering-block-download.html</link><author>noreply@blogger.com (Ubuntu Indo)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5493482958642955820.post-3943119910848362805</guid><pubDate>Sat, 12 Mar 2011 04:03:00 +0000</pubDate><atom:updated>2011-05-14T19:44:48.466+07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Ubuntu</category><title>Install Java Runtime Environment (JRE) in Ubuntu</title><description>&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Java is an object-oriented programming language developed by Sun  Microsystems in the early 1990s. Java applications are compiled to  bytecode, which at runtime is either interpreted or compiled to native  machine code for execution.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;The language itself derives much of its syntax from C and C++ but has a  simpler object model and fewer low-level facilities. JavaScript, a  scripting language, shares a similar name and has similar syntax, but is  not directly related to Java. Currently Ubuntu has the following Java packages&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sun-java6-bin - Contains the binaries&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sun-java6-demo - Contains demos and examples&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sun-java6-doc - Contains the documentation&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sun-java6-fonts - Contains the Lucida TrueType fonts from the JRE&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sun-java6-jdk - Contains the metapackage for the JDK&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sun-java6-jre - Contains the metapackage for the JRE&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sun-java6-plugin - Contains the plug-in for Mozilla-based browsers&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sun-java6-source - Contains source files for the JDK&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;Installing the Java Runtime Environment&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;First you need to check multiverse repository enabled or not after  that open a terminal window. Since you are going to be installing the  JRE and the &lt;a class="itxtrst itxtrsta itxthook" href="http://www.ubuntugeek.com/install-java-runtime-environment-jre-in-ubuntu-9-10-karmic.html#" id="itxthook0" rel="nofollow" style="background-color: transparent; border-bottom: 1px dotted rgb(149, 24, 28); border-top: medium none; color: #95181c; text-decoration: none;"&gt;&lt;span class="itxtrst itxtrstspan itxthookspan" id="itxthook0w0" style="background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat; color: #95181c; font-weight: inherit;"&gt;web&lt;/span&gt;&lt;span class="itxtrst itxtrstspan itxthookspan" id="itxthook0w1" style="background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat; color: #95181c; font-weight: inherit;"&gt; &lt;/span&gt;&lt;nobr class="itxtrst itxtrstnobr itxthooknobr" id="itxthook0w2nobr" style="color: #95181c;"&gt;&lt;span class="itxtrst itxtrstspan itxthookspan" id="itxthook0w2" style="background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat; font-weight: inherit;"&gt;browser&lt;/span&gt;&lt;img class="itxtrst itxtrstimg itxthookicon" id="itxthook0icon" src="http://images.intellitxt.com/ast/adTypes/mag-glass_10x10.gif" /&gt;&lt;/nobr&gt;&lt;/a&gt; plug-in, you’ll be using the following command from a terminal&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;sudo pico /etc/apt/source.list&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;add this line&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: monospace; font-size: 14px; line-height: 20px; white-space: pre;"&gt;deb http://archive.canonical.com/ lucid partner&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #444444; font-family: monospace; font-size: 14px; line-height: 20px; white-space: pre;"&gt;exit and save&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;blockquote style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts&lt;/span&gt;&lt;/blockquote&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Once it downloads the packages and begins the installation, you’ll get a screen that contains the Sun &lt;a class="itxtrst itxtrsta itxthook" href="http://www.ubuntugeek.com/install-java-runtime-environment-jre-in-ubuntu-9-10-karmic.html#" id="itxthook1" rel="nofollow" style="background-color: transparent; border-bottom: 1px dotted rgb(149, 24, 28); border-top: medium none; color: #95181c; text-decoration: none;"&gt;&lt;span class="itxtrst itxtrstspan itxthookspan" id="itxthook1w0" style="background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat; color: #95181c; font-weight: inherit;"&gt;Operating&lt;/span&gt;&lt;span class="itxtrst itxtrstspan itxthookspan" id="itxthook1w1" style="background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat; color: #95181c; font-weight: inherit;"&gt; &lt;/span&gt;&lt;nobr class="itxtrst itxtrstnobr itxthooknobr" id="itxthook1w2nobr" style="color: #95181c;"&gt;&lt;span class="itxtrst itxtrstspan itxthookspan" id="itxthook1w2" style="background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat; font-weight: inherit;"&gt;System&lt;/span&gt;&lt;img class="itxtrst itxtrstimg itxthookicon" id="itxthook1icon" src="http://images.intellitxt.com/ast/adTypes/mag-glass_10x10.gif" /&gt;&lt;/nobr&gt;&lt;/a&gt; Distributor License for Java and hit Enter to continue.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;img alt="1" class="alignnone size-full wp-image-2549" height="335" src="http://www.ubuntugeek.com/wp-content/uploads/2009/11/11.png" title="1" width="616" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;You’ll see a dialog that asks you if you agree with the DLJ license  terms. Select Yes, and hit Enter; the JRE will finish installing.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;img alt="2" class="alignnone size-full wp-image-2550" height="185" src="http://www.ubuntugeek.com/wp-content/uploads/2009/11/21.png" title="2" width="607" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;Testing Java Runtime Environment&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;You’ll want to confirm that your system is configured properly for Sun’s JRE. This is a two-step process.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;First, check that the JRE is properly installed by running the following command from a terminal.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;code&gt;java -version&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;You should get similar output&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;img alt="3" class="alignnone size-full wp-image-2551" height="133" src="http://www.ubuntugeek.com/wp-content/uploads/2009/11/32.png" title="3" width="517" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;Testing Java Plugin for Firefox&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;open Firefox and typing about:plugins in the address bar and check for java plugin&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;img alt="4" class="alignnone size-full wp-image-2552" height="323" src="http://www.ubuntugeek.com/wp-content/uploads/2009/11/41.png" title="4" width="640" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;/div&gt;</description><link>http://ubuntu-indo.blogspot.com/2011/03/install-java-runtime-environment-jre-in.html</link><author>noreply@blogger.com (Ubuntu Indo)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5493482958642955820.post-4815011126899663823</guid><pubDate>Sat, 12 Mar 2011 04:02:00 +0000</pubDate><atom:updated>2011-03-12T11:02:59.476+07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Squid</category><category domain="http://www.blogger.com/atom/ns#">Ubuntu</category><title>Block Torrent Files on Squid Proxies</title><description>&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;"&lt;i&gt;BitTorrent is a peer-to-peer file  sharing protocol used for distributing large amounts of data. BitTorrent  is one of the most common protocols for transferring large files, and  it has been estimated that it accounts for approximately 27-55% of all  Internet traffic (depending on geographical location) as of February  2009&lt;/i&gt;" (see Wikipedia.org).&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;a name='more'&gt;&lt;/a&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;h1 id="1-bittorrent-and-downloads" style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;1.&amp;nbsp;BitTorrent and Downloads&lt;/span&gt;&lt;/h1&gt;&lt;h1 id="1-bittorrent-and-downloads" style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;/h1&gt;&lt;div&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;BitTorrent is a decentralized network to provide files of any size to  other internet users. You may use BitTorrent as a powerful successor of  FTP servers with the additional features (highly available download  resources and contents are findable via search engines). E.g. the major  Linux distributions are available via the BitTorrent network.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;Beside these and other nice features there is a dark side that may be  considered then providing internet access to employees or customers. A  number of users are using the BitTorrent network to distribute contents  for free by breaking national and international law. This is a problem  that is not dedicated to BitTorrent but if you decide to restrict  internet access for your users and you are running a &lt;i&gt;Squid &lt;/i&gt;proxy  server you may build up a basic barrier to prevent the download of  torrent files containing meta data required for finding resources in the  BitTorrent network.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;h1 id="2-configure-your-squid-proxy" style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;2.&amp;nbsp;Configure your Squid Proxy&lt;/span&gt;&lt;/h1&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;To prevent your users to download torrent files, you have to add the  following lines to your squid configuration file. The new rules will  prevent users from downloading contents specified in a separate file  called &lt;i&gt;/etc/squid/extensiondeny&lt;/i&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="rj_insertcode" style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;div class="rj_insertcode_text"&gt;&lt;div class="text" style="background: none repeat scroll 0% 0% rgb(248, 248, 248); border-collapse: collapse; border: 1px solid rgb(5, 75, 110); width: 100%;"&gt;&lt;pre style="background: none repeat scroll 0% 0% transparent; margin: 0pt; padding: 0px 4px; vertical-align: top;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="vertical-align: top;"&gt;acl extensiondeny url_regex -i "/etc/squid/extensiondeny"&lt;/span&gt;
&lt;span style="vertical-align: top;"&gt;acl download method GET&lt;/span&gt;
&lt;span style="vertical-align: top;"&gt;http_access deny extensiondeny download&lt;/span&gt;
&lt;span style="vertical-align: top;"&gt;http_access deny extensiondeny&lt;/span&gt;
&lt;span style="vertical-align: top;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;The file&amp;nbsp; &lt;i&gt;/etc/squid/extensiondeny&lt;/i&gt; will contain regular  expressions. If one of these expressions matches the download request  squid will veto and will not provide the requested contents. Example of a  basic configuration entry.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="rj_insertcode" style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;div class="rj_insertcode_text"&gt;&lt;div class="text" style="background: none repeat scroll 0% 0% rgb(248, 248, 248); border-collapse: collapse; border: 1px solid rgb(5, 75, 110); width: 100%;"&gt;&lt;pre style="background: none repeat scroll 0% 0% transparent; margin: 0pt; padding: 0px 4px; vertical-align: top;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="vertical-align: top;"&gt;\.torrent$&lt;/span&gt;
&lt;span style="vertical-align: top;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;This regular expression will match file names with the extension '&lt;i&gt;.torrent&lt;/i&gt;'.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;Related resources:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;ul style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;li&gt;&lt;span style="font-size: x-small;"&gt;&lt;a href="http://en.wikipedia.org/wiki/BitTorrent_%28protocol%29" title="http://en.wikipedia.org/wiki/BitTorrent_%28protocol%29"&gt;BitTorrent on Wikipedia.org&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;&lt;a href="http://www.squid-cache.org/" title="http://www.squid-cache.org"&gt;Squid home page&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Verdana,sans-serif; font-size: x-small;"&gt;&lt;span class="modifydate"&gt;   Last Updated on Monday, 01 March 2010 14:33 &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</description><link>http://ubuntu-indo.blogspot.com/2011/03/block-torrent-files-on-squid-proxies.html</link><author>noreply@blogger.com (Ubuntu Indo)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5493482958642955820.post-7527500393277191824</guid><pubDate>Sat, 12 Mar 2011 03:56:00 +0000</pubDate><atom:updated>2011-03-12T10:56:36.082+07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">monitoring</category><category domain="http://www.blogger.com/atom/ns#">Ubuntu</category><title>Install Ntop monitoring in Ubuntu</title><description>&lt;div class="line874" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Ntop shows the current network usage. It displays a  list of hosts that are currently using the network and reports  information concerning the IP (Internet Protocol) and Fibre Channel (FC)  traffic generated by each host. The traffic is sorted according to host  and protocol. Protocols (user configurable) include: &lt;span class="anchor" id="line-4"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-5"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style="font-family: Verdana,sans-serif;"&gt;&lt;li&gt;&lt;span style="font-size: x-small;"&gt;TCP/UDP/ICMP &lt;span class="anchor" id="line-6"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;(R)ARP &lt;span class="anchor" id="line-7"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;IPX &lt;span class="anchor" id="line-8"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;DLC &lt;span class="anchor" id="line-9"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;Decnet &lt;span class="anchor" id="line-10"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;div class="line891"&gt;&lt;span style="font-size: x-small;"&gt;&lt;a href="https://help.ubuntu.com/community/AppleTalk"&gt;AppleTalk&lt;/a&gt;&lt;span class="anchor" id="line-11"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;Netbios &lt;span class="anchor" id="line-12"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;TCP/UDP &lt;span class="anchor" id="line-13"&gt;&lt;/span&gt;&lt;/span&gt;&lt;ul&gt;&lt;li style="list-style-type: none;"&gt;&lt;span style="font-size: x-small;"&gt;o FTP &lt;span class="anchor" id="line-14"&gt;&lt;/span&gt;o HTTP &lt;span class="anchor" id="line-15"&gt;&lt;/span&gt;o DNS &lt;span class="anchor" id="line-16"&gt;&lt;/span&gt;o Telnet &lt;span class="anchor" id="line-17"&gt;&lt;/span&gt;o SMTP/POP/IMAP &lt;span class="anchor" id="line-18"&gt;&lt;/span&gt;o SNMP &lt;span class="anchor" id="line-19"&gt;&lt;/span&gt;o NFS &lt;span class="anchor" id="line-20"&gt;&lt;/span&gt;o X11 &lt;span class="anchor" id="line-21"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: x-small;"&gt;Fibre Channel &lt;span class="anchor" id="line-22"&gt;&lt;/span&gt;&lt;/span&gt;&lt;ul&gt;&lt;li style="list-style-type: none;"&gt;&lt;span style="font-size: x-small;"&gt;o Control Traffic - SW2, GS3, ELS &lt;span class="anchor" id="line-23"&gt;&lt;/span&gt;o SCSI &lt;span class="anchor" id="line-24"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-25"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class="line862" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;(In  human-readable, this means you can very comprehensively monitor your  network traffic, connections &amp;amp; bandwidth via a web output) &lt;span class="anchor" id="line-26"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-27"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;/div&gt;&lt;h1 id="Installation" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Installation&lt;/span&gt;&lt;/h1&gt;&lt;h1 id="Installation" style="font-family: Verdana,sans-serif; text-align: right;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;a name='more'&gt;&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-28" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="line874" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Packages needed for installation are: &lt;span class="anchor" id="line-29"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-30"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-31"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-32"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;ntop&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-33" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-34" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="line874" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;You can just type the following to install it (make sure you enable the Universe repositories): &lt;span class="anchor" id="line-35"&gt;&lt;/span&gt;&lt;a class="https" href="https://help.ubuntu.com/7.10/add-applications/C/extra-repositories.html"&gt;https://help.ubuntu.com/7.10/add-applications/C/extra-repositories.html&lt;/a&gt;&lt;span class="anchor" id="line-36"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-37"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-38"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-39"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sudo apt-get install ntop -y&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-40" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-41" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;/div&gt;&lt;h2 id="Compiling ntop from source or SVN" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Compiling ntop from source or SVN&lt;/span&gt;&lt;/h2&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-42" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="line874" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;The ntop source can be retrieved from Ubuntu's servers using a command like: &lt;span class="anchor" id="line-43"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-44"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-45"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-46"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;apt-get source ntop&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-47" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-48" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="line862" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;which will unpack the source package into the current working directory with a name like &lt;span class="backtick"&gt;ntop-3.3.10&lt;/span&gt;. You can also follow the instructions at &lt;a class="http" href="http://www.ntop.org/download.html"&gt;ntop.org&lt;/a&gt; to retrieve the latest version from SVN (trunk): &lt;span class="anchor" id="line-49"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-50"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-51"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-52"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;svn co https://svn.ntop.org/svn/ntop/trunk/ntop&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-53" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-54" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="line874" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Most  of the packages which will be required to build ntop from source on an  Ubuntu 9.10 (Karmic) can be retrieved with the following command: &lt;span class="anchor" id="line-55"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-56"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-57"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-58"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sudo apt-get install libpcap-dev libgdbm-dev libevent-dev librrd-dev python-dev libgeoip-dev&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-59" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-60" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="line862" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;You must first run &lt;span class="backtick"&gt;./autogen.sh&lt;/span&gt; in the &lt;span class="backtick"&gt;ntop&lt;/span&gt; directory to create the &lt;span class="backtick"&gt;configure&lt;/span&gt; script, Makefiles, and such, as described &lt;a class="http" href="http://www.ntop.org/download.html"&gt;here&lt;/a&gt;. The &lt;span class="backtick"&gt;configure&lt;/span&gt; script is pretty good about telling you which dependencies are missing, if any. Don't forget you can pass &lt;span class="backtick"&gt;configure&lt;/span&gt; options to &lt;span class="backtick"&gt;autogen.sh&lt;/span&gt;, as in: &lt;span class="anchor" id="line-61"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-62"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-63"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-64"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;./autogen.sh --prefix=/usr/local/stow/ntop-svn&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-65" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-66" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;References&lt;/b&gt;: &lt;span class="anchor" id="line-67"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol style="font-family: Verdana,sans-serif;" type="1"&gt;&lt;li&gt;&lt;div class="line891"&gt;&lt;span style="font-size: x-small;"&gt;&lt;a class="http" href="http://www.ntop.org/download.html"&gt;http://www.ntop.org/download.html&lt;/a&gt;&lt;span class="anchor" id="line-68"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div class="line891"&gt;&lt;span style="font-size: x-small;"&gt;&lt;a class="http" href="http://www.gnu.org/software/stow/"&gt;http://www.gnu.org/software/stow/&lt;/a&gt; - &lt;i&gt;helps manage source packages without sullying &lt;span class="backtick"&gt;/usr/bin&lt;/span&gt;, &lt;span class="backtick"&gt;/usr/share&lt;/span&gt;, and so on&lt;/i&gt;&lt;span class="anchor" id="line-69"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-70"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;/div&gt;&lt;h1 id="Configuration" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Configuration&lt;/span&gt;&lt;/h1&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-71" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="line862" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;When first installing &amp;amp; configuring the ntop application you need to set an admin password. &lt;span class="anchor" id="line-72"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-73"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-74"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-75"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sudo ntop --set-admin-password&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-76" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-77" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="line874" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;restart the service with &lt;span class="anchor" id="line-78"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-79"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-80"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sudo /etc/init.d/ntop restart&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-81" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-82" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;/div&gt;&lt;h2 id="Fixing &amp;quot;Physical Host Location&amp;quot; feature (mapper.pl)" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Fixing "Physical Host Location" feature (mapper.pl)&lt;/span&gt;&lt;/h2&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-83" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;i&gt;The link to &lt;a class="http" href="http://www.ntop.org/cgi-bin/mapper.pl"&gt;http://www.ntop.org/cgi-bin/mapper.pl&lt;/a&gt; for physical host locations (the compass icon in traffic listings) is broken (&lt;span class="backtick"&gt;Error&amp;nbsp;404&lt;/span&gt;) as of this writing (2010-07-01). This affects ntop package version &lt;b&gt;3.3-11ubuntu1&lt;/b&gt; for Karmic (9.10). &lt;span class="anchor" id="line-84"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-85"&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line862" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;i&gt;Check this space for a workaround using a local &lt;span class="backtick"&gt;http&lt;/span&gt; server and links to relevant Launchpad bug reports.&lt;/i&gt;&lt;span class="anchor" id="line-86"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-87"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;/div&gt;&lt;h3 id="Status of host location mapping in SVN (reported as of SVN revision 4304)" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Status of host location mapping in SVN (reported as of SVN revision 4304)&lt;/span&gt;&lt;/h3&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-88" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="line862" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;The issue with the dead &lt;span class="backtick"&gt;mapper.pl&lt;/span&gt; link &lt;b&gt;is resolved in the latest SVN&lt;/b&gt;, as of this writing (2010-07-02). The host location results com from &lt;a class="http" href="http://geotool.servehttp.com/"&gt;http://geotool.servehttp.com&lt;/a&gt; instead, a service of MaxMind, who provide the &lt;b&gt;libgeoip1&lt;/b&gt; library also used in ntop. &lt;span class="anchor" id="line-89"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-90"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;/div&gt;&lt;h1 id="Access" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Access&lt;/span&gt;&lt;/h1&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-91" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="line874" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;To access your network statistics via the web visit the web address: &lt;span class="anchor" id="line-92"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-93"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;a class="http" href="http://localhost:3000/"&gt;http://localhost:3000&lt;/a&gt;&lt;span class="anchor" id="line-94"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-95"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;/div&gt;&lt;h1 id="Links" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Links&lt;/span&gt;&lt;/h1&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-96" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;a class="http" href="http://www.ntop.org/"&gt;http://www.ntop.org/&lt;/a&gt;&lt;span class="anchor" id="line-97"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-98"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;/div&gt;&lt;h1 id="Sigfaults" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Sigfaults&lt;/span&gt;&lt;/h1&gt;&lt;span style="font-size: x-small;"&gt;&lt;span class="anchor" id="line-99" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="line874" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;The packaged  version of ntop is plagued with sigfaults. You will be using ntop and  it just cuts out in the middle of your session. There is luckily a way  around this, that is easier than the SVN method. &lt;span class="anchor" id="line-100"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-101"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line874" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Thanks to Sylvain Garcia who has packaged the newest version of ntop in a PPA to install just do the following from a terminal: &lt;span class="anchor" id="line-102"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-103"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sudo&amp;nbsp;apt-add&amp;nbsp;repository&amp;nbsp;ppa:sylvain-garcia&lt;span class="anchor" id="line-104"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-105"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="line862" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;If you &lt;b&gt;have&lt;/b&gt; already installed ntop: &lt;span class="anchor" id="line-106"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-107"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sudo&amp;nbsp;aptitude&amp;nbsp;update&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;sudo&amp;nbsp;aptitude&amp;nbsp;safe-upgrade&lt;span class="anchor" id="line-108"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-109"&gt;&lt;/span&gt;&lt;/span&gt;  &lt;/div&gt;&lt;div class="line862" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;If you &lt;b&gt;haven't&lt;/b&gt; yet installed ntop: &lt;span class="anchor" id="line-110"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-111"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sudo&amp;nbsp;aptitude&amp;nbsp;update&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;sudo&amp;nbsp;aptitude&amp;nbsp;install&amp;nbsp;ntop&lt;span class="anchor" id="line-112"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-113"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="line874" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Next  there is one setting missing in the Ubuntu build of ntop. It's easy  enough to change. (note nano is the default editor for Ubuntu. You may  use of course any editor you prefer.) &lt;span class="anchor" id="line-114"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-115"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sudo&amp;nbsp;nano&amp;nbsp;/etc/init.d/ntop&lt;span class="anchor" id="line-116"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-117"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="line862" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;CTRL+&lt;b&gt;_&lt;/b&gt; 96  (that's an underscore, the command in nano to go to a specific line) &lt;span class="anchor" id="line-118"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-119"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line874" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;In the line that reads: &lt;span class="anchor" id="line-120"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style="font-family: Verdana,sans-serif;"&gt;&lt;li style="list-style-type: none;"&gt;&lt;span style="font-size: x-small;"&gt;start-stop-daemon --start --quiet --name $NAME --exec $DAEMON -- \ &lt;span class="anchor" id="line-121"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-122"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-123"&gt;&lt;/span&gt;-d -L -u $USER -P $HOMEDIR \ &lt;span class="anchor" id="line-124"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-125"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class="line874" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;add -b so that it now reads: &lt;span class="anchor" id="line-126"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-127"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style="font-family: Verdana,sans-serif;"&gt;&lt;li style="list-style-type: none;"&gt;&lt;span style="font-size: x-small;"&gt;start-stop-daemon --start --quiet --name $NAME --exec $DAEMON -- \ &lt;span class="anchor" id="line-128"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-129"&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="line862"&gt;&lt;span style="font-size: x-small;"&gt;-d &lt;b&gt;-b&lt;/b&gt; -L -u $USER -P $HOMEDIR \ &lt;span class="anchor" id="line-130"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-131"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class="line874" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;CTRL+O CTRL+X (save and quit in nano) &lt;span class="anchor" id="line-132"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-133"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line867" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;sudo&amp;nbsp;service&amp;nbsp;ntop&amp;nbsp;restart&lt;span class="anchor" id="line-134"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-135"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="line874" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;now browse to localhost:3000 and have fun with ntop &lt;span class="anchor" id="line-136"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-137"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Reference: &lt;/span&gt;&lt;a class="https" href="https://bugs.launchpad.net/ubuntu/+source/ntop/+bug/588049" style="font-family: Verdana,sans-serif;"&gt;https://bugs.launchpad.net/ubuntu/+source/ntop/+bug/588049&lt;/a&gt;&lt;/span&gt;</description><link>http://ubuntu-indo.blogspot.com/2011/03/install-ntop-monitoring-in-ubuntu.html</link><author>noreply@blogger.com (Ubuntu Indo)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5493482958642955820.post-3373775203114511788</guid><pubDate>Sat, 12 Mar 2011 03:49:00 +0000</pubDate><atom:updated>2011-03-12T10:55:25.383+07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Squid</category><category domain="http://www.blogger.com/atom/ns#">Ubuntu</category><title>Install DansGuardian on Ubuntu Content Filtering</title><description>To install DansGuardian, use the following command&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; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;sudo aptitude install dansguardian&lt;/pre&gt;&lt;/div&gt;Once  the package is installed, edit the following lines in the conf file to  match, this will set DansGuardian to do basic filtering and use Squid as  its proxy server.&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; height: 98px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;# UNCONFIGURED
filterip =
filterport = 8080
proxyip = 127.0.0.1
proxyport = 3128&lt;/pre&gt;&lt;/div&gt;&lt;div style="text-align: right;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
To configure banned/exception sites based  on either phrases, ip addresses, urls, mime type, etc… you would need  to edit one of the following files using nano. All files are located in  /etc/dansguardian/&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; height: 306px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;bannedextensionlist
bannediplist
bannedmimetypelist
bannedphraselist
bannedregexpurllist
bannedsitelist
bannedurllist
banneduserlist

exceptioniplist
exceptionphraselist
exceptionsitelist
exceptionurllist
exceptionuserlist
exceptionvirusextensionlist
exceptionvirusmimetypelist
exceptionvirussitelist
exceptionvirusurllist&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;Restarting Squid and DansGuardian&lt;/b&gt;&lt;br /&gt;
Whenever a file is edited, it is good practice to restart both Squid and DansGuardian services by using the following commands&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; height: 98px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;sudo /etc/init.d/dansguardian stop
sudo /etc/init.d/squid stop
sudo /etc/init.d/squid start
sudo /etc/init.d/dansguardian start
ps –e | grep dansguardian ## to see if the service is running&lt;/pre&gt;&lt;/div&gt;Now  that Squid and DansGuardian are configured, test it by setting up your  browser to use the proxy server with port 8080. A site that is blocked  by default in DansGuardian is &lt;a href="http://www.porn.com/" target="_blank"&gt;www.porn.com&lt;/a&gt;, if you get a page redirect then you’re good to go.</description><link>http://ubuntu-indo.blogspot.com/2011/03/install-dansguardian-on-ubuntu-content.html</link><author>noreply@blogger.com (Ubuntu Indo)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5493482958642955820.post-7363194105137104774</guid><pubDate>Fri, 11 Mar 2011 05:58:00 +0000</pubDate><atom:updated>2011-03-12T11:00:43.838+07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Ubuntu</category><title>Ubuntu Linux: NFS Client Configuration To Mount NFS Share</title><description>&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;NFS (Network File System) client allows you to access shared directory  from Linux client. The computer sharing the directory is called the NFS  server (it can be NAS server too) and the computers or devices  connecting to that server are called clients. The clients need to use  the mount command to access the shared directory.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;/div&gt;&lt;div style="float: right; font-family: Verdana,sans-serif; margin-left: 5px; margin-top: 0px;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;a href="http://www.cyberciti.biz/tips/category/networking" title="See all Linux/UNIX networking related tips/articles"&gt;&lt;img border="0" src="http://files.cyberciti.biz/cbzcache/3rdparty/networking.png" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Ubuntu NFS&lt;/span&gt;&lt;/h2&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;You need to install nfs-command package as follows (open terminal and type the following command):&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;code&gt;$ sudo apt-get update&lt;br /&gt;
$ sudo apt-get install nfs-common&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: right;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Sample outputs:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;pre style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libgssglue1 libnfsidmap2 librpcsecgss3 portmap
The following NEW packages will be installed:
  libgssglue1 libnfsidmap2 librpcsecgss3 nfs-common portmap
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 333kB of archives.
After this operation, 1,126kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com/ubuntu/ lucid/main libgssglue1 0.1-4 [22.4kB]
Get:2 http://archive.ubuntu.com/ubuntu/ lucid/main libnfsidmap2 0.23-2 [29.1kB]
Get:3 http://archive.ubuntu.com/ubuntu/ lucid/main librpcsecgss3 0.19-2 [33.1kB]
Get:4 http://archive.ubuntu.com/ubuntu/ lucid/main portmap 6.0.0-1ubuntu2 [37.2kB]
Get:5 http://archive.ubuntu.com/ubuntu/ lucid/main nfs-common 1:1.2.0-4ubuntu4 [212kB]
Fetched 333kB in 3s (95.3kB/s)
Preconfiguring packages ...
Selecting previously deselected package libgssglue1.
(Reading database ... 161647 files and directories currently installed.)
Unpacking libgssglue1 (from .../libgssglue1_0.1-4_i386.deb) ...
Selecting previously deselected package libnfsidmap2.
Unpacking libnfsidmap2 (from .../libnfsidmap2_0.23-2_i386.deb) ...
Selecting previously deselected package librpcsecgss3.
Unpacking librpcsecgss3 (from .../librpcsecgss3_0.19-2_i386.deb) ...
Selecting previously deselected package portmap.
Unpacking portmap (from .../portmap_6.0.0-1ubuntu2_i386.deb) ...
Selecting previously deselected package nfs-common.
Unpacking nfs-common (from .../nfs-common_1%3a1.2.0-4ubuntu4_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up libgssglue1 (0.1-4) ...

Setting up libnfsidmap2 (0.23-2) ...

Setting up librpcsecgss3 (0.19-2) ...

Setting up portmap (6.0.0-1ubuntu2) ...
portmap start/running, process 4193

Setting up nfs-common (1:1.2.0-4ubuntu4) ...

Creating config file /etc/idmapd.conf with new version

Creating config file /etc/default/nfs-common with new version
Adding system user `statd' (UID 116) ...
Adding new user `statd' (UID 116) with group `nogroup' ...
Not creating home directory `/var/lib/nfs'.
statd start/running, process 4416
gssd stop/pre-start, process 4441
idmapd stop/pre-start, process 4469

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place&lt;/span&gt;&lt;/pre&gt;&lt;h2 style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Task: See The List Of All Shared Directories&lt;/span&gt;&lt;/h2&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Type the following command:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;code&gt;$ showmount -e server-Ip-address&lt;br /&gt;
$ showmount -e 192.168.1.1&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Sample outputs from my 192.168.1.1 NFS server:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;pre style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Export list for 192.168.1.1:
/viveks
/Web
/Usb
/Recordings
/Public
/Network Recycle Bin 1
/Multimedia
/Download&lt;/span&gt;&lt;/pre&gt;&lt;h2 style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Task: Mount Shared Directory&lt;/span&gt;&lt;/h2&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Now mount /viveks directory as follows&amp;gt;:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;code&gt;$ sudo mkdir /nfs&lt;br /&gt;
$ sudo mount  -o soft,intr,rsize=8192,wsize=8192 192.168.1.1:/viveks /nfs&lt;br /&gt;
$ df -h&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Sample outputs:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;pre style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;/dev/sda5              477G    25G   428G   6% /
none                   4.2G   398k   4.2G   1% /dev
none                   4.2G   377k   4.2G   1% /dev/shm
none                   4.2G   230k   4.2G   1% /var/run
none                   4.2G      0   4.2G   0% /var/lock
none                   4.2G      0   4.2G   0% /lib/init/rw
192.168.1.1:/viveks    491G   208M   491G   1% /nfs&lt;/span&gt;&lt;/pre&gt;&lt;h2 style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;How do I Access My Files Using NFS?&lt;/span&gt;&lt;/h2&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Just go to mount point i.e. /nfs directory with the cd command:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;code&gt;cd /nfs&lt;br /&gt;
ls&lt;br /&gt;
gedit file.c&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;How Do I Mount NFS Automatically After Reboot?&lt;/span&gt;&lt;/h2&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Edit /etc/fstab, enter:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;code&gt;$ sudo vi /etc/fstab&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;OR use gui text editor such as gedit:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;code&gt;$ sudo gedit /etc/fstab&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Append the following line:&lt;/span&gt;&lt;/div&gt;&lt;pre style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;192.168.1.1:/viveks  /nfs  nfs   soft,intr,rsize=8192,wsize=8192&lt;/span&gt;&lt;/pre&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Save and close the file.&lt;/span&gt;&lt;/div&gt;&lt;h2 style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;How Do I Remove Mounted NFS Directory (unmount NFS)?&lt;/span&gt;&lt;/h2&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Type the following command:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;code&gt;$ cd&lt;br /&gt;
$ sudo umount /nfs&lt;br /&gt;
$ df -H&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;h4 style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Featured Articles:&lt;/span&gt;&lt;/h4&gt;</description><link>http://ubuntu-indo.blogspot.com/2011/03/ubuntu-linux-nfs-client-configuration.html</link><author>noreply@blogger.com (Ubuntu Indo)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5493482958642955820.post-7526031124098268648</guid><pubDate>Tue, 08 Mar 2011 11:46:00 +0000</pubDate><atom:updated>2011-03-12T11:07:54.327+07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Ubuntu</category><title>How to know the Computer Specifications in Ubuntu</title><description>&lt;span class="" id="result_box" lang="en"&gt;&lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;Just like&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;as in&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;Windows&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;may&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;have&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;the command&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;Run -&lt;/span&gt;&lt;span class="" title="Klik untuk terjemahan alternatif"&gt;&amp;gt;&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;dxdiag&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;Then&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;it&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;would&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;appear&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;we&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;spec&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;PC&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;in&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;Linux&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;is also&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;available.&lt;/span&gt;&lt;br /&gt;
&lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;To Learn&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;Computer&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;Specs&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;us&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;in&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;Linux&lt;/span&gt;&lt;span class="" title="Klik untuk terjemahan alternatif"&gt;, especially&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;in&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;Ubuntu&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;may&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;be&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;more&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;complete&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;information&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;than the&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;Si&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;Windows&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;with&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;default&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;program&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;the steps are&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;as&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;follows&lt;/span&gt;&lt;span class="" title="Klik untuk terjemahan alternatif"&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;Application&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;-&lt;/span&gt;&lt;span class="" title="Klik untuk terjemahan alternatif"&gt;&amp;gt;&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;Accessories&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;-&lt;/span&gt;&lt;span class="" title="Klik untuk terjemahan alternatif"&gt;&amp;gt;&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;Terminal&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;enter the following command&lt;/span&gt;&lt;span class="" title="Klik untuk terjemahan alternatif"&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;$&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;sudo&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;lshw&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://fendies.files.wordpress.com/2009/05/sudo-lshw.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="75" src="http://fendies.files.wordpress.com/2009/05/sudo-lshw.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="" id="result_box" lang="en"&gt;&lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="" id="result_box" lang="en"&gt;&lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="" id="result_box" lang="en"&gt;&lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;After that&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;we&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;will&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;know&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;the&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;specifications of&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;the PC&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;in&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;Terminal&lt;/span&gt;&lt;br /&gt;
&lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;But&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;it is better&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;if&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;we&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;create&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;an HTML&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;file&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;to&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;be&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;more&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;userfriendly&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;GUI&lt;/span&gt;&lt;br /&gt;
&lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;with&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;the command&lt;/span&gt;&lt;span class="" title="Klik untuk terjemahan alternatif"&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;$&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;sudo&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;lshw&lt;/span&gt;&lt;span class="atn" title="Klik untuk terjemahan alternatif"&gt; -&lt;/span&gt;&lt;span class="" title="Klik untuk terjemahan alternatif"&gt;html&lt;/span&gt;&lt;span class="" title="Klik untuk terjemahan alternatif"&gt; &amp;gt;&lt;/span&gt; &lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;infohardware.html&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="" id="result_box" lang="en"&gt;&lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;then open infohardware.html with browser like firefox / opera .&lt;/span&gt;&lt;/span&gt;&lt;span class="" id="result_box" lang="en"&gt;&lt;span class="hps" title="Klik untuk terjemahan alternatif"&gt;&lt;/span&gt;&lt;/span&gt;</description><link>http://ubuntu-indo.blogspot.com/2011/03/how-to-know-computer-specifications-in.html</link><author>noreply@blogger.com (Ubuntu Indo)</author><thr:total>0</thr:total></item></channel></rss>