<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1694022963302006053</id><updated>2012-02-16T20:10:13.774-08:00</updated><title type='text'>Networking | Linux | Windows | Server 2003</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default?start-index=101&amp;max-results=100'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>121</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-8566167543075158557</id><published>2011-10-19T00:18:00.000-07:00</published><updated>2011-10-19T00:19:07.191-07:00</updated><title type='text'>Script for IP Change Alert</title><content type='html'>If you need to be notified upon the IP address of the system it can be achieved through following Perl Script&lt;br&gt;At first a sendemail needs to be installed using : sudo apt-get install sendmail (in Debian based Distros)&lt;br&gt;  Else you may use another MTAs too like sendmail or postfix that is available.&lt;br&gt;&lt;span style="font-family: courier new,monospace;"&gt;#!/usr/bin/perl -w&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;#Anwesh Tiwari Oct 12 2011&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;  &lt;span style="font-family: courier new,monospace;"&gt;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;use strict;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;  &lt;span style="font-family: courier new,monospace;"&gt;my $today=`date +%Y-%m-%d&amp;quot; &amp;quot;%r`;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;#location of TEMP file&lt;br style="font-family: courier new,monospace;"&gt;  &lt;/span&gt;&lt;span style="font-family: courier new,monospace;"&gt;my $ip_last_check_file = &amp;quot;/home/tmp/IP-Address&amp;quot;;&lt;/span&gt; &lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;my $ip_now = `curl -s &lt;a href="http://checkip.dyndns.org"&gt;http://checkip.dyndns.org&lt;/a&gt;`;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;  &lt;span style="font-family: courier new,monospace;"&gt;$ip_now =~ s/.*?(\d+\.\d+\.\d+\.\d+).*/$1/s;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;open(IP, &amp;quot;&amp;lt;$ip_last_check_file&amp;quot;) or die &amp;quot;Cannot open $ip_last_check_file: $!&amp;quot;;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;  &lt;span style="font-family: courier new,monospace;"&gt;my $ip_last_check = &amp;lt;IP&amp;gt;;0&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;close(IP);&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;  &lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;if ($ip_now ne $ip_last_check)&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;{&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;  &lt;span style="font-family: courier new,monospace;"&gt;  open(IP, &amp;quot;&amp;gt;$ip_last_check_file&amp;quot;) or die &amp;quot;Cannot open $ip_last_check: $!&amp;quot;;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;  print IP $ip_now;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;  &lt;span style="font-family: courier new,monospace;"&gt;  close(IP);&lt;br&gt;#-s &amp;quot;SMTP address of your SMTP server instead&amp;quot; of &amp;quot;-s localhost&amp;quot; if you dont have ipaddress running.&lt;br style="font-family: courier new,monospace;"&gt;  &lt;/span&gt;&lt;span style="font-family: courier new,monospace;"&gt;  my $output = `sendemail -f sentname\@&lt;a href="http://yourdomain.com"&gt;yourdomain.com&lt;/a&gt; -t alertaddress\@&lt;a href="http://yourdomain.com"&gt;yourdomain.com&lt;/a&gt; -s localhost -u IP-CHANGE-ALERT -m Gateway IP-address has changed to $ip_now.\\\\n Event Time :$today`;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;  &lt;span style="font-family: courier new,monospace;"&gt;&lt;/span&gt;&lt;span style="font-family: courier new,monospace;"&gt;}&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;exit;&lt;/span&gt;&lt;br&gt;  &lt;br&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-8566167543075158557?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/8566167543075158557/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/10/script-for-ip-change-alert.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8566167543075158557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8566167543075158557'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/10/script-for-ip-change-alert.html' title='Script for IP Change Alert'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-7996865097477140595</id><published>2011-09-28T02:23:00.001-07:00</published><updated>2011-09-28T02:23:32.505-07:00</updated><title type='text'>Pending restart operation SQL server installation</title><content type='html'>if you  have tried to install SQL Server 2008  and cannot install, because of   the errormessage the prerequistite &amp;quot;Restart the computer is required&amp;quot;.&lt;br&gt;&lt;br&gt;But  every time you restart  computer and try to execute the setup of SQL  Server 2008, you get the same message&lt;br&gt;&lt;br&gt;Then you have change a registry entry in computer&lt;br&gt;&lt;ul&gt;&lt;li&gt; &lt;div align="left"&gt;&lt;font face="Courier"&gt;Open Regedit&lt;/font&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt; &lt;div align="left"&gt;&lt;font face="Courier"&gt;Find the key &amp;quot;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager&amp;quot;&lt;/font&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;&lt;div align="left"&gt;&lt;font face="Courier"&gt;Rename the &amp;quot;PendingFileRenameOperations&amp;quot; value to &amp;quot;PendingFileRenameOperations2&amp;quot;&lt;/font&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="left"&gt;&lt;font face="Courier"&gt;Try again&lt;/font&gt;&lt;/div&gt;  &lt;/li&gt;&lt;/ul&gt;This will solve the Restart Problem&lt;br&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-7996865097477140595?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/7996865097477140595/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/09/pending-restart-operation-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/7996865097477140595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/7996865097477140595'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/09/pending-restart-operation-sql-server.html' title='Pending restart operation SQL server installation'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-3739830410223988509</id><published>2011-09-16T06:04:00.001-07:00</published><updated>2011-09-16T06:04:38.752-07:00</updated><title type='text'>vsftpd virtual users</title><content type='html'>&lt;h2&gt;Installing vsftpd using text file for virtual users&lt;/h2&gt; &lt;p&gt;vsftpd is a secure, fast and stable FTP server. In this tutorial  we&amp;#39;ll install the server and make it check in a flat text file for  virtual users allowed to login.&lt;/p&gt; &lt;p&gt;1. Install required packages&lt;/p&gt; &lt;p&gt;&lt;code&gt;sudo apt-get install vsftpd libpam-pwdfile&lt;br&gt; &lt;/code&gt;&lt;span id="more-8"&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;2. Configure vsftpd (sudo pico /etc/vsftpd.conf)&lt;/p&gt; &lt;p&gt;Edit these variables in the config file and leave everything else with the default value.&lt;/p&gt; &lt;p&gt;&lt;code&gt;anonymous_enable=NO&lt;br&gt; local_enable=YES&lt;br&gt; write_enable=YES&lt;br&gt; local_umask=022&lt;br&gt; chroot_local_user=YES&lt;br&gt; virtual_use_local_privs=YES&lt;br&gt; guest_enable=YES&lt;br&gt; user_sub_token=$USER&lt;br&gt; local_root=/var/www/$USER&lt;br&gt; hide_ids=YES&lt;br&gt; &lt;/code&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;Set the local_root to the parent directory where the user&amp;#39;s home directories are located&lt;/em&gt;&lt;/p&gt; &lt;p&gt;3. Configure PAM to check the passwd file for users (sudo pico /etc/pam.d/vsftpd)&lt;/p&gt; &lt;p&gt;&lt;code&gt;auth    required pam_pwdfile.so pwdfile /etc/ftpd.passwd&lt;br&gt; account required pam_permit.so&lt;br&gt; &lt;/code&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;Make sure you remove everything else from the file&lt;/em&gt;&lt;/p&gt; &lt;p&gt;4. Create the passwd file containing the users&lt;/p&gt; &lt;p&gt;&lt;code&gt;sudo htpasswd -c /etc/ftpd.passwd user1&lt;br&gt; &lt;/code&gt;&lt;/p&gt; &lt;p&gt;You can later add additional users to the file like this:&lt;/p&gt; &lt;p&gt;&lt;code&gt;sudo htpasswd /etc/ftpd.passwd user2&lt;br&gt; &lt;/code&gt;&lt;/p&gt; &lt;p&gt;5. Restart vsftpd&lt;/p&gt; &lt;p&gt;&lt;code&gt;sudo /etc/init.d/vsftpd restart&lt;br&gt; &lt;/code&gt;&lt;/p&gt; &lt;p&gt;6. Create user&amp;#39;s home directory since vsftpd doesn&amp;#39;t do it automatically &lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt; &lt;code&gt;sudo mkdir /var/www/user1 &lt;/code&gt;&lt;br&gt;&lt;code&gt;&lt;br&gt;&lt;/code&gt;7.Create Appropriate Permissions for that folder for user ftp for uploads&lt;br&gt;&lt;br&gt;&lt;code&gt;chown 775 ftp:ftp &lt;/code&gt;&lt;code&gt;/var/www/user1&lt;/code&gt;&lt;br&gt;&lt;code&gt;&lt;br&gt; &lt;br&gt;&lt;/code&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-3739830410223988509?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/3739830410223988509/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/09/vsftpd-virtual-users.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/3739830410223988509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/3739830410223988509'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/09/vsftpd-virtual-users.html' title='vsftpd virtual users'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-3374503898612942673</id><published>2011-09-13T06:34:00.001-07:00</published><updated>2011-09-13T06:34:45.110-07:00</updated><title type='text'>Change Virtualbox UUID of Virtual Disk Vdi</title><content type='html'>&lt;h2&gt;&lt;/h2&gt; 				 Simply copying the .vdi file into another location will make a  verbatim copy of the virtual disk, including the UUID of the disk. If  you try to add the copy in the Virtual Media Manager, you will get an  error like this:&lt;br&gt; &lt;p style="text-align: center"&gt;&lt;img src="http://www.giannistsakiris.com/wp-content/uploads/2009/05/virtualbox-error.png" title="virtualbox-error.png" alt="virtualbox-error.png"&gt;&lt;/p&gt;&lt;br&gt; &lt;br&gt; In this case, you have to do the following:&lt;br&gt; &lt;br&gt; &lt;code&gt;giannis@giannis-laptop:~$ &lt;strong&gt;VBoxManage internalcommands setvdiuuid &lt;em&gt;/path/to/virtualdisk.vdi&lt;/em&gt;&lt;/strong&gt;&lt;br&gt; VirtualBox Command Line Management Interface Version 2.2.2&lt;br&gt; (C) 2005-2009 Sun Microsystems, Inc.&lt;br&gt; All rights reserved.&lt;br&gt; &lt;br&gt; UUID changed to: 9e89fe14-d010-469e-a737-cd65218c4acb&lt;/code&gt;&lt;br&gt; &lt;br&gt; Since the old UUID is replaced with a new one, you can now add and use the virtual disk.&lt;br&gt; &lt;br&gt; Please note, that you wouldn&amp;#39;t have to follow this procedure if you had used the &lt;em&gt;clonevdi&lt;/em&gt; function to copy the virtual disk image, in the first place. The &lt;em&gt;clonevdi&lt;/em&gt; function makes sure that the new disk image will have its own unique UUID.&lt;br&gt;   &lt;br&gt; The syntax of the clonedvi goes like this:&lt;br&gt; &lt;br&gt; &lt;code&gt;$ &lt;strong&gt;VBoxManage clonevdi &lt;em&gt;Master.vdi Clone.vdi&lt;br&gt;&lt;br&gt;Source: &lt;a href="http://www.giannistsakiris.com/index.php/2009/05/06/virtualbox-how-to-change-the-uuid-of-virtual-disk-vdi/"&gt;http://www.giannistsakiris.com/index.php/2009/05/06/virtualbox-how-to-change-the-uuid-of-virtual-disk-vdi/&lt;/a&gt;&lt;br&gt;  &lt;/em&gt;&lt;/strong&gt;&lt;/code&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-3374503898612942673?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/3374503898612942673/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/09/change-virtualbox-uuid-of-virtual-disk.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/3374503898612942673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/3374503898612942673'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/09/change-virtualbox-uuid-of-virtual-disk.html' title='Change Virtualbox UUID of Virtual Disk Vdi'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-6865206599594683423</id><published>2011-09-13T02:49:00.000-07:00</published><updated>2011-09-13T05:41:24.183-07:00</updated><title type='text'>Rescue locked SQL Server 2008</title><content type='html'>&lt;h3 class="procedureSubHeading"&gt;Reset Forgotten Sa password&lt;br&gt;&lt;/h3&gt;&lt;h3 class="procedureSubHeading"&gt;To configure startup options&lt;/h3&gt;&lt;div class="subSection"&gt;&lt;ol&gt;&lt;li&gt;Fist Login computer using administrator Account&lt;br&gt;&lt;/li&gt;&lt;li&gt;  &lt;p&gt;In SQL Server Configuration Manager, click &lt;span class="label"&gt;SQL Server Services&lt;/span&gt;.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;In the right pane, right-click &lt;span class="label"&gt;SQL Server (&lt;/span&gt;&lt;span class="parameter"&gt;&amp;lt;instance_name&amp;gt;&lt;/span&gt;&lt;span class="label"&gt;)&lt;/span&gt;, and then click &lt;span class="label"&gt;Properties&lt;/span&gt;.&lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p&gt;On the &lt;span class="label"&gt;Advanced&lt;/span&gt; tab, in the &lt;span class="label"&gt;Startup Parameters&lt;/span&gt; box, type the parameters separated by semicolons (&lt;strong&gt;;&lt;/strong&gt;).&lt;/p&gt;&lt;p&gt;For example, to start in single-user mode, insert &lt;span class="input"&gt;-m;&lt;/span&gt;  in front of the existing startup options, and then restart the  database. (When you start SQL Server in single-user mode, first stop SQL  Server Agent. Otherwise, SQL Server Agent might connect first and  prevent you from connecting as a second user.)&lt;/p&gt;&lt;div class="alert"&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th&gt;&lt;img id="alert_caution" alt="Important note" src="http://i.msdn.microsoft.com/Hash/030c41d9079671d09a62d8e2c1db6973.gif" title="Important note" class="cl_IC46226"&gt;&lt;strong&gt;Important&lt;/strong&gt;&lt;/th&gt;  &lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;After you are finished using single-user mode, you must remove the &lt;span class="input"&gt;-m;&lt;/span&gt; from the &lt;span class="label"&gt;Startup Parameters&lt;/span&gt; box before you can restart the server instance in the normal multi-user mode. &lt;/p&gt;  &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Click OK.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Restart the Database Engine.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Change security authentication mode (You may not require this step if you have already enabled sa user)&lt;br&gt; &lt;/p&gt; &lt;div style="margin-left: 40px;" class="subSection"&gt;&lt;ol&gt;&lt;li&gt;&lt;p&gt;In SQL Server Management Studio Object Explorer, right-click the server, and then click &lt;span class="label"&gt;Properties&lt;/span&gt;.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;On the &lt;span class="label"&gt;Security&lt;/span&gt; page, under &lt;span class="label"&gt;Server authentication&lt;/span&gt;, select the new server authentication mode, and then click &lt;span class="label"&gt;OK&lt;/span&gt;.&lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p&gt;In the SQL Server Management Studio dialog box, click &lt;span class="label"&gt;OK&lt;/span&gt; to acknowledge the requirement to restart SQL Server.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;You can change password here.&lt;br&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;Enable the sa login by using Management Studio(You may not require this step if you have already enabled dual authentication )&lt;div class="subSection"&gt;&lt;ol&gt;&lt;li&gt;&lt;p&gt;In Object Explorer, expand &lt;span class="label"&gt;Security&lt;/span&gt;, expand Logins, right-click &lt;span class="label"&gt;sa&lt;/span&gt;, and then click &lt;span class="label"&gt;Properties&lt;/span&gt;.&lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p&gt;On the &lt;span class="label"&gt;General&lt;/span&gt; page, you might have to create and confirm a password for the sa login.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;On the &lt;span class="label"&gt;Status&lt;/span&gt; page, in the &lt;span class="label"&gt;Login&lt;/span&gt; section, click &lt;span class="label"&gt;Enabled&lt;/span&gt;, and then click &lt;span class="label"&gt;OK&lt;/span&gt;.&lt;/p&gt;  &lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;Now you can logon with sa user and password .You can also set permission of the local user account from that.&lt;br&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="subSection"&gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-6865206599594683423?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/6865206599594683423/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/09/rescue-locked-sql-server-2008.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/6865206599594683423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/6865206599594683423'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/09/rescue-locked-sql-server-2008.html' title='Rescue locked SQL Server 2008'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-8672831752622919664</id><published>2011-08-07T05:03:00.001-07:00</published><updated>2011-08-07T05:03:48.842-07:00</updated><title type='text'>Rename a computer from domain domain Controller</title><content type='html'>Rename a computer from domain domain Controller&lt;br&gt;You can rename a computer that is in domain controller or in LAN using netdom command&lt;br&gt;&lt;div class="indent"&gt;&lt;b&gt;   Command &lt;br&gt;netdom renamecomputer &lt;var&gt;Computername&lt;/var&gt; /newname:&lt;var&gt;new_computername&lt;/var&gt;&lt;br&gt; /userd:&lt;var&gt;domain&lt;/var&gt;\&lt;var&gt;UserName &lt;/var&gt; /passwordd:password |* /usero:&lt;var&gt;UserName&lt;/var&gt;&lt;br&gt; /passwordo:password |* /force /reboot:&lt;var&gt;Time in seconds&lt;/var&gt;&lt;/b&gt;&lt;/div&gt; The following is a description of this command line: 				&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;var&gt;Computername&lt;/var&gt;: The current 					 name of the computer to be renamed. &lt;br&gt;&lt;/li&gt;&lt;li&gt;&lt;var&gt;New_computername&lt;/var&gt;: The name 					 that the computer will be renamed to. Both the Domain Name System (DNS) host 					 label and the NetBIOS name are changed to the new name. If the new name is 					 longer than 15 characters, the NetBIOS name is derived from the first 15 					 characters. &lt;br&gt;&lt;/li&gt;&lt;li&gt;/userd:&lt;var&gt;Domain&lt;/var&gt;\&lt;var&gt;UserName&lt;/var&gt;: 					 The user account to be used for the destination domain. This account is used to 					 make the connection with the domain to which the computer is joined. This 					 parameter is required, and if no domain is specified, the computer&amp;#39;s domain is 					 assumed. &lt;br&gt;&lt;/li&gt;&lt;li&gt;/usero:&lt;var&gt;UserName&lt;/var&gt;: A user 					 account to be used for the originating domain that has local administrative 					 permissions (this can be the same account specified for /userd:). This account 					 is used to make the connection with the computer to be renamed. If omitted, the 					 currently logged on user&amp;#39;s account is used. The user&amp;#39;s domain can be specified 					 as &amp;quot;/uo:domain\user&amp;quot;. If the domain is omitted, a local computer account is 					 assumed. &lt;br&gt;&lt;/li&gt;&lt;li&gt;/passwordd: &lt;var&gt;password&lt;/var&gt;: The 					 password of the user account specified by /userd.&lt;br&gt;&lt;/li&gt;&lt;li&gt;/passwordo: &lt;var&gt;password&lt;/var&gt;: The 					 password of the user account specified by /usero.&lt;br&gt; The asterisk symbol 					 (*): A value that can be connected to either /passwordd or /passwordo and which 					 indicates to prompt for the password. &lt;br&gt;&lt;/li&gt;&lt;li&gt;force&lt;var&gt;&lt;/var&gt;: This command can 					 adversely affect some services running on the computer. The user will be 					 prompted for confirmation unless the /force switch is specified. 					 &lt;br&gt;&lt;/li&gt;&lt;li&gt;&lt;var&gt;Reboot&lt;/var&gt;: This specifies that 					 the computer should be shut down and automatically restarted after the rename 					 operation is completed. The number of seconds before automatic shutdown can 					 also be provided. The default is 30 seconds. If this parameter is not 					 specified, the computer must be restarted manually.&lt;/li&gt;&lt;/ul&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-8672831752622919664?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/8672831752622919664/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/08/rename-computer-from-domain-domain.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8672831752622919664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8672831752622919664'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/08/rename-computer-from-domain-domain.html' title='Rename a computer from domain domain Controller'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-8453384256934429930</id><published>2011-08-03T07:12:00.001-07:00</published><updated>2011-08-03T07:12:54.198-07:00</updated><title type='text'>Remote Administration Server 2008</title><content type='html'>&lt;p&gt;&lt;b&gt;Remote Administrator Tool for Server 2008 / Server 2008 R2 available for Vista and windows 7 &lt;/b&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;An AdminPak (a.k.a AdminPack, Admin Pack) for Windows Server 2008 has  been released. Windows Server 200x administrators are familiar with the  "Administration Tools" or adminpak.msi that they used to install on  their management workstations for connecting remotely via MMC to servers  instead of having to login them via RDP.&lt;/p&gt; &lt;p&gt;Windows Server 2008 did not have the adminpak built in to the RTM  media. These are called the "Remote Server Administration Tools (RSAT)" and were released separately on March 24. The RSAT are available here&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=9FF6E897-23CE-4A36-B7FC-D52065DE9960&amp;amp;displaylang=en"&gt;RSAT For Vista  &lt;/a&gt;&lt;br&gt;  &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=7887"&gt;RSAT for Windows 7&lt;/a&gt;  &lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt; &lt;p&gt;RSAT contains the following tools:&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Role Administration Tools:&lt;/strong&gt;&lt;/p&gt; &lt;ul&gt;&lt;li&gt;Active Directory Certificate Services Tools&lt;/li&gt;&lt;li&gt;Active Directory Domain Services (AD DS) Tools&lt;/li&gt;&lt;li&gt;Active Directory Lightweight Directory Services (AD LDS) Tools&lt;/li&gt;&lt;li&gt;DHCP Server Tools&lt;/li&gt;&lt;li&gt;DNS Server Tools&lt;/li&gt;  &lt;li&gt;File Services Tools&lt;/li&gt;&lt;li&gt;Network Policy and Access Services Tools&lt;/li&gt;&lt;li&gt;Terminal Services Tools&lt;/li&gt;&lt;li&gt;Universal Description, Discovery, and Integration (UDDI) Services Tools&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;strong&gt;Feature Administration Tools:&lt;/strong&gt;&lt;/p&gt; &lt;ul&gt;&lt;li&gt;BitLocker Drive Encryption Tools&lt;/li&gt;&lt;li&gt;Failover Clustering Tools&lt;/li&gt;&lt;li&gt;Group Policy Management Tools&lt;/li&gt;&lt;li&gt;Network Load Balancing Tools&lt;/li&gt;&lt;li&gt;SMTP Server Tools&lt;/li&gt;&lt;li&gt;Storage Manager for SANs Tools&lt;/li&gt;&lt;li&gt;  Windows System Resource Manager Tools&lt;/li&gt;&lt;/ul&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-8453384256934429930?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/8453384256934429930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/08/remote-administration-server-2008.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8453384256934429930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8453384256934429930'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/08/remote-administration-server-2008.html' title='Remote Administration Server 2008'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-480011989617567864</id><published>2011-07-27T23:41:00.001-07:00</published><updated>2011-07-27T23:41:21.726-07:00</updated><title type='text'>set time zone ubuntu</title><content type='html'>To reconfigure time zone using terminal,use this command&lt;br&gt;sudo dpkg-reconfigure tzdata&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-480011989617567864?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/480011989617567864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/07/set-time-zone-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/480011989617567864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/480011989617567864'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/07/set-time-zone-ubuntu.html' title='set time zone ubuntu'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-7833147922184170742</id><published>2011-07-27T06:59:00.000-07:00</published><updated>2011-07-27T07:00:06.258-07:00</updated><title type='text'>Monitoring Server Traffic</title><content type='html'>Installing&lt;a href="http://bandwidthd.sourceforge.net/"&gt; bandwidthd&lt;/a&gt; for Network Monitoring in Debian Server&lt;br&gt;&lt;ol&gt;&lt;li&gt;    apt-get install bandwidthd&lt;/li&gt;&lt;li&gt;     follow prompts, main config file is /etc/bandwidthd/bandwidthd.con You can  copy the conf file from /usr/share/doc/bandwidthd/bandwidthd.conf to /etc/bandwidthd/bandwidthd.conf&lt;/li&gt;  &lt;li&gt;    apt-get install apache2&lt;/li&gt;&lt;li&gt;    cd to /var/www and create a soft link to the htdocs directory that bandwidthd uses (see /etc/bandwidthd/bandwidthd.conf)&lt;/li&gt;&lt;li&gt;    ln -s /var/lib/bandwidthd/htdocs bandwidthd&lt;/li&gt;  &lt;li&gt;    where bandwidthd in the name of the link&lt;/li&gt;&lt;li&gt;    restart apache /etc/init.d/apache2 restart (and bandwidthd if needed /etc/init.d/bandwidthd restart)&lt;/li&gt;&lt;li&gt;    access bandwidthd&lt;/li&gt;&lt;li&gt;    http://&amp;lt;localhost or IP&amp;gt;/bandwidthd&lt;/li&gt;  &lt;/ol&gt;References&lt;br&gt;&lt;a href="http://www.debianadmin.com/network-traffic-analyzer-for-your-ubuntu-system.html"&gt;http://www.debianadmin.com/network-traffic-analyzer-for-your-ubuntu-system.html&lt;/a&gt;&lt;br&gt;&lt;a href="http://infodotnet.blogspot.com/2008/02/install-and-configure-bandwidthd-per-ip.html"&gt;http://infodotnet.blogspot.com/2008/02/install-and-configure-bandwidthd-per-ip.html&lt;/a&gt;&lt;br&gt;  &lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-7833147922184170742?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/7833147922184170742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/07/monitoring-server-traffic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/7833147922184170742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/7833147922184170742'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/07/monitoring-server-traffic.html' title='Monitoring Server Traffic'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-4180774729150374969</id><published>2011-07-26T22:00:00.001-07:00</published><updated>2011-07-26T22:00:31.638-07:00</updated><title type='text'>fix mp3 showing incorrect length</title><content type='html'>If  MP3 shows incorrect length or  are encoded with variable bitrate (VBR), you can try VBRFix: It is found in ubuntu repository&lt;br&gt; &lt;div style="margin:20px; margin-top:5px"&gt; 	&lt;div class="smallfont" style="margin-bottom:2px"&gt;Code:&lt;/div&gt; 	&lt;pre class="alt2" dir="ltr" style="margin: 0px; 		padding: 6px; 		border: 1px inset; 		width: 640px; 		height: 34px; 		text-align: left; 		overflow: auto"&gt;sudo apt-get install vbrfix&lt;br&gt;&lt;br&gt;vbrfix in.mp3 out.mp3&lt;br&gt;&lt;/pre&gt; &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-4180774729150374969?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/4180774729150374969/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/07/fix-mp3-showing-incorrect-length.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/4180774729150374969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/4180774729150374969'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/07/fix-mp3-showing-incorrect-length.html' title='fix mp3 showing incorrect length'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-643290981827487765</id><published>2011-06-07T06:34:00.000-07:00</published><updated>2011-06-07T06:35:11.368-07:00</updated><title type='text'>relay mails through server with authentication</title><content type='html'>&lt;pre&gt;&lt;b&gt;Relay SMTP through another server with Authentication &lt;br&gt;&lt;/b&gt;Sometimes your ISP blocks 25 port so you need to relay the Email Messages through external authentication server.For that you can use postfix as relay server using following configuration&lt;b&gt;&lt;br&gt;   &lt;br&gt;1. Create password maps file&lt;/b&gt; (it assigns username/passwords to specified mail servers). You can choose any name, let&amp;#39;s say it is /etc/postfix/relay_passwd. It&amp;#39;s content should be as follows:        &lt;a href="http://smtp.google.com" target="_blank"&gt;smtp.google.com&lt;/a&gt; USERNAME:PASSWORD         &lt;b&gt;Note:&lt;/b&gt; Replace USERNAME and PASSWORD with your DNS EXIT mail relay username and PASSWORD.    USERNAME for google would be &lt;a href="mailto:username@gmail.com" target="_blank"&gt;username@gmail.com&lt;/a&gt;      &lt;b&gt;2. Set proper permissions for that file:&lt;/b&gt;     # chown root:root /etc/postfix/relay_passwd   # chmod 600 /etc/postfix/relay_passwd         &lt;b&gt;3. Create hash from maps file&lt;/b&gt; (remember to do it each time you change your maps file):    #  postmap /etc/postfix/relay_passwd           &lt;b&gt;4. Configure your /etc/postfix/&lt;a href="http://main.cf"&gt;main.cf&lt;/a&gt;:&lt;/b&gt;     relayhost = [SMTP address]   smtp_sasl_auth_enable = yes   smtp_sasl_password_maps = hash:/etc/postfix/relay_passwd   smtp_sasl_security_options =      &lt;b&gt;Note:&lt;/b&gt; If your ISP blocks outgoing port 25. You can choose to use alternative SMTP ports by appending the port at the end: relayhost = [SMTP Address]:26 for gmail it would be [&lt;a href="http://smtp.gmail.com" target="_blank"&gt;smtp.gmail.com&lt;/a&gt;]:587   &lt;b&gt;5. Reload or restart your postfix:&lt;/b&gt;   # /etc/init.d/postfix restart&lt;/pre&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-643290981827487765?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/643290981827487765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/06/relay-mails-through-server-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/643290981827487765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/643290981827487765'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/06/relay-mails-through-server-with.html' title='relay mails through server with authentication'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-1799454338836754423</id><published>2011-05-14T19:13:00.000-07:00</published><updated>2011-05-14T19:14:06.378-07:00</updated><title type='text'>crack password of microsoft access</title><content type='html'>This is a free utility to view password of Microsoft Acces access&lt;br&gt;&lt;a href="http://www.nirsoft.net/utils/accesspv.html"&gt;http://www.nirsoft.net/utils/accesspv.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-1799454338836754423?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/1799454338836754423/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/05/crack-password-of-microsoft-access.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/1799454338836754423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/1799454338836754423'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/05/crack-password-of-microsoft-access.html' title='crack password of microsoft access'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-637549360430347033</id><published>2011-05-03T06:59:00.001-07:00</published><updated>2011-05-03T06:59:59.799-07:00</updated><title type='text'>Rsync on a non default port for ssh</title><content type='html'>&lt;p&gt;Rsync on a non default port for ssh&lt;br&gt;&lt;/p&gt; &lt;p&gt; &lt;/p&gt;&lt;div class="codeblock"&gt;&lt;code&gt;# rsync -avz -e &amp;quot;ssh -p $portNumber&amp;quot; user@remoteip:/path/to/files/ /local/path/&lt;/code&gt;&lt;/div&gt;  &lt;p&gt;Passing the port parameter to ssh with the -e option worked like a charm.  :-)&lt;/p&gt; &lt;p&gt;This is why Unix rocks.&lt;/p&gt;&lt;p&gt; Thanks &lt;a href="http://mike-hostetler.com/blog/2007/12/rsync-non-standard-ssh-port"&gt;Mike Hostetler&lt;/a&gt; for the  tip. &lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-637549360430347033?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/637549360430347033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/05/rsync-on-non-default-port-for-ssh.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/637549360430347033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/637549360430347033'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/05/rsync-on-non-default-port-for-ssh.html' title='Rsync on a non default port for ssh'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-3399410099217084489</id><published>2011-04-12T02:48:00.001-07:00</published><updated>2011-04-12T02:48:37.287-07:00</updated><title type='text'>Updating status with music played</title><content type='html'>I have  trying  updating status of Pidgin as music played using some tools to update current status.I have found the tool&lt;br&gt;I have tried music Tracker from google codes&lt;br&gt;&lt;a href="http://code.google.com/p/musictracker/" target="_blank"&gt;http://code.google.com/p/musictracker/&lt;/a&gt;&lt;br&gt;   Prerequisites:&lt;br&gt;1. &amp;#39;pidgin-dev&amp;#39; libraries (sudo apt-get install pidgin-dev)&lt;br&gt;2. libpcre++ (sudo apt-get install libpcre++-dev)&lt;br&gt;I have compiled and installed it and it rocks now :) &lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-3399410099217084489?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/3399410099217084489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/04/updating-status-with-music-played.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/3399410099217084489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/3399410099217084489'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/04/updating-status-with-music-played.html' title='Updating status with music played'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-3186992167163576290</id><published>2011-04-04T06:16:00.001-07:00</published><updated>2011-04-04T06:16:30.912-07:00</updated><title type='text'>Mysql slow query from IP other than localhost</title><content type='html'>From long time I have been facing a slow query from when it was retrived from another PC but localhost was working well.After much toiling for the answer I found that placing  &amp;quot;skip-name-resolve&amp;quot; as a line in my.cnf solved the issue. Strangely,  this worked even though no user rights in my database were ever assigned  with names, only IP addresses.&lt;br&gt;&lt;br&gt;Reason:&lt;br&gt;When a client connects to mysqld, mysqld spawns a new thread to handle the request.This thread first checks whether the host name is in the host name cache. &lt;br&gt;If not, the thread attempts to resolve the host name The thread takes the IP address and resolves it to a host name. It then takes that host name and resolves it back to the IP address and compares to ensure it is the original IP address so this thread significantly increases the query time and slows down the system.This reverse DNS is suitable for the system connected to internet for letting certain domains to except the request but for system in the local LAN has to suffer a lot time since the local IP normally doesnot resolve to a name.&lt;br&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-3186992167163576290?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/3186992167163576290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/04/mysql-slow-query-from-ip-other-than.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/3186992167163576290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/3186992167163576290'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/04/mysql-slow-query-from-ip-other-than.html' title='Mysql slow query from IP other than localhost'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-3720433950519802411</id><published>2011-03-16T02:30:00.000-07:00</published><updated>2011-03-16T02:31:15.881-07:00</updated><title type='text'>Enable mod_rewrite apache</title><content type='html'>Enable the rewrite module..&lt;blockquote&gt;sudo a2enmod rewrite&lt;/blockquote&gt;Open the config file..&lt;blockquote&gt;sudo nano /etc/apache2/sites-available/default&lt;/blockquote&gt;Find the following lines..&lt;blockquote&gt;Options Indexes FollowSymLinks MultiViews&lt;br&gt;   AllowOverride &lt;b&gt;None&lt;/b&gt; &lt;br&gt; Order allow,deny&lt;br&gt; allow from all&lt;/blockquote&gt;Change &lt;b&gt;None&lt;/b&gt; to &lt;b&gt;all&lt;/b&gt; &amp;amp; save + close the file.&lt;br&gt; &lt;br&gt; Restart Apache..&lt;blockquote&gt;sudo /etc/init.d/apache2 restart&lt;br&gt;&lt;/blockquote&gt;It helped me :)&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-3720433950519802411?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/3720433950519802411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/03/enable-modrewrite-apache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/3720433950519802411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/3720433950519802411'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/03/enable-modrewrite-apache.html' title='Enable mod_rewrite apache'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-1857312952590255101</id><published>2011-02-12T21:02:00.001-08:00</published><updated>2011-02-12T21:02:48.664-08:00</updated><title type='text'>ssh login without password</title><content type='html'>&lt;span id="current_tags"&gt;&lt;/span&gt;&lt;p&gt;To enable the remote login you create a pair of keys, one of which  you simply append to a file upon the remote system.  When this is done  you&amp;#39;ll then be able to login without being prompted for a password - and  this also includes any cronjobs you have setup to run.&lt;/p&gt; &lt;p&gt;If you don&amp;#39;t already have a keypair generated you&amp;#39;ll first of all need to create one.&lt;/p&gt; &lt;p&gt;If you do have a keypair handy already you can keep using that, by  default the keys will be stored in one of the following pair of files:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;tt&gt;~/.ssh/identity&lt;/tt&gt; and &lt;tt&gt;~/.ssh/identity.pub&lt;/tt&gt; &lt;ul&gt;&lt;li&gt;(This is an older DSA key).&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;tt&gt;~/.ssh/id_rsa&lt;/tt&gt; and &lt;tt&gt;~/.ssh/id_rsa.pub&lt;/tt&gt; &lt;ul&gt;&lt;li&gt;(This is a newer RSA key).&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;If you have neither of the two files then you should generate one.   The DSA-style keys are older ones, and should probably be ignored in  favour of the newer RSA keytypes (unless you&amp;#39;re looking at connecting to  an outdated installation of OpenSSH).  We&amp;#39;ll use the RSA keytype in the  following example.&lt;/p&gt; &lt;p&gt;To generate a new keypair you run the following command:&lt;/p&gt; &lt;pre&gt;source@lappy:~$ ssh-keygen -t rsa&lt;br&gt;&lt;/pre&gt; &lt;p&gt;This will prompt you for a location to save the keys, and a pass-phrase:&lt;/p&gt; &lt;pre&gt;Generating public/private rsa key pair.&lt;br&gt;Enter file in which to save the key (/home/source/.ssh/id_rsa): &lt;br&gt;Enter passphrase (empty for no passphrase): &lt;br&gt;Enter same passphrase again: &lt;br&gt;Your identification has been saved in /home/source/.ssh/id_rsa.&lt;br&gt; Your public key has been saved in /home/source/.ssh/id_rsa.pub.&lt;br&gt;&lt;/pre&gt; &lt;p&gt;If you accept the defaults you&amp;#39;ll have a pair of files created, as  shown above, with no passphrase.  This means that the key files can be  used as they are, without being &amp;quot;unlocked&amp;quot; with a password first.  If  you&amp;#39;re wishing to automate things this is what you want.&lt;/p&gt; &lt;p&gt;Now that you have a pair of keyfiles generated, or pre-existing, you need to append the contents of the &lt;tt&gt;.pub&lt;/tt&gt; file to the correct location on the remote server.&lt;/p&gt; &lt;p&gt;Assuming that you wish to login to the machine called &lt;tt&gt;destination&lt;/tt&gt; from your current host with the &lt;tt&gt;id_rsa&lt;/tt&gt; and &lt;tt&gt;id_rsa.pub&lt;/tt&gt; files you&amp;#39;ve just generated you should run the following command:&lt;/p&gt;  &lt;pre&gt;ssh-copy-id -i ~/.ssh/id_rsa.pub username@&lt;tt&gt;destination&lt;/tt&gt;&lt;/pre&gt; &lt;p&gt;This will prompt you for the login password for the host, then copy  the keyfile for you, creating the correct directory and fixing the  permissions as necessary.&lt;/p&gt; &lt;p&gt;The contents of the keyfile will be appended to the file &lt;tt&gt;~/.ssh/authorized_keys2&lt;/tt&gt; for RSA keys, and &lt;tt&gt;~/.ssh/authorised_keys&lt;/tt&gt; for the older DSA key types.&lt;/p&gt; &lt;p&gt;Once this has been done you should be able to login remotely, and run commands, without being prompted for a password:&lt;/p&gt; &lt;pre&gt;source@lappy:~$ ssh &lt;tt&gt;destination &lt;/tt&gt;uptime&lt;br&gt; 09:52:50 up 96 days, 13:45,  0 users,  load average: 0.00, 0.00, 0.00&lt;br&gt;&lt;/pre&gt;  &lt;b&gt;What if it doesn&amp;#39;t work?&lt;/b&gt; &lt;blockquote&gt; &lt;p&gt;There are three common problems when setting up passwordless logins:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;The remote SSH server hasn&amp;#39;t been setup to allow public key authentication.&lt;/li&gt;&lt;li&gt;File permissions cause problems.&lt;/li&gt;&lt;li&gt;Your keytype isn&amp;#39;t supported.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Each of these problems is easily fixable, although the first will require you have root privileges upon the remote host.&lt;/p&gt; &lt;p&gt;If the remote server doesn&amp;#39;t allow public key based logins you will  need to updated the SSH configuration.  To do this edit the file &lt;tt&gt;/etc/sshd/sshd_config&lt;/tt&gt; with your favourite text editor.&lt;/p&gt; &lt;p&gt;You will need to uncomment, or add, the following two lines:&lt;/p&gt; &lt;pre&gt;RSAAuthentication yes&lt;br&gt;PubkeyAuthentication yes&lt;br&gt;&lt;/pre&gt; &lt;p&gt;Once that&amp;#39;s been done you can restart the SSH server - don&amp;#39;t worry this won&amp;#39;t kill existing sessions:&lt;/p&gt; &lt;pre&gt;/etc/init.d/ssh restart&lt;br&gt;&lt;/pre&gt; &lt;p&gt;File permission problems should be simple to fix.  Upon the remote machine your &lt;tt&gt;.ssh&lt;/tt&gt; file must &lt;b&gt;not&lt;/b&gt;  be writable to any other user - for obvious reasons.  (If it&amp;#39;s writable  to another user they could add their own keys to it, and login to your  account without your password!).&lt;/p&gt; &lt;p&gt;If this is your problem you will see a message similar to the following upon the remote machine, in the file &lt;tt&gt;/var/log/auth&lt;/tt&gt;:&lt;/p&gt; &lt;pre&gt;Jun  3 10:23:57 localhost sshd[18461]: Authentication refused: &lt;br&gt; bad ownership or modes for directory /home/source/.ssh&lt;br&gt;&lt;/pre&gt; &lt;p&gt;To fix this error you need to login to the machine (with your password!) and run the following command:&lt;/p&gt; &lt;pre&gt;cd&lt;br&gt;chmod 700 .ssh&lt;br&gt;&lt;/pre&gt; &lt;p&gt;Finally if you&amp;#39;re logging into an older system which has an older  version of OpenSSH installed upon it which you cannot immediately  upgrade you might discover that RSA files are not supported.&lt;/p&gt; &lt;p&gt;In this case use a DSA key instead - by generating one:&lt;/p&gt; &lt;pre&gt;ssh-keygen&lt;br&gt;&lt;/pre&gt; &lt;p&gt;Then appending it to the file &lt;tt&gt;~/.ssh/authorized_keys&lt;/tt&gt; on the remote machine - or using the &lt;tt&gt;ssh-copy-id&lt;/tt&gt; command we showed earlier.&lt;/p&gt; &lt;p&gt;&lt;b&gt;Note&lt;/b&gt; if you&amp;#39;ve got a system running an older version of  OpenSSH you should upgrade it unless you have a very good reason not to.   There are known security issues in several older releases.   Even if  the machine isn&amp;#39;t connected to the public internet, and it&amp;#39;s only  available &amp;quot;internally&amp;quot; you should fix it.&lt;/p&gt;&lt;hr&gt; &lt;p&gt;Instead of using &lt;tt&gt;authorized_keys&lt;/tt&gt;/&lt;tt&gt;authorized_keys2&lt;/tt&gt; you could also achieve a very similar effect with the use of the &lt;tt&gt;ssh-agent&lt;/tt&gt; command, although this isn&amp;#39;t so friendly for scripting commands.&lt;/p&gt;  &lt;p&gt;This program allows you to type in the passphrase for any of your  private keys when you login, then keep all the keys in memory, so you  don&amp;#39;t have password-less keys upon your disk and still gain the benefits  of reduced password usage.&lt;/p&gt; If you&amp;#39;re interested read the documentation by running: &lt;pre&gt;man ssh-agent&lt;br&gt;&lt;br&gt;&lt;span style="font-family: arial narrow,sans-serif;"&gt;Thanks &lt;/span&gt;&lt;a style="font-family: arial narrow,sans-serif;" href="http://www.debian-administration.org/users/Steve"&gt;Steve&lt;/a&gt;&lt;span style="font-family: arial narrow,sans-serif;"&gt;  for this great Tip&lt;/span&gt;&lt;br&gt; &lt;br&gt;&lt;br&gt;&lt;/pre&gt;&lt;/blockquote&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-1857312952590255101?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/1857312952590255101/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/02/ssh-login-without-password.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/1857312952590255101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/1857312952590255101'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/02/ssh-login-without-password.html' title='ssh login without password'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-2626916361395792883</id><published>2011-02-06T04:14:00.001-08:00</published><updated>2011-02-06T04:14:25.312-08:00</updated><title type='text'>system admin commands windows</title><content type='html'>Basic System Administration Commands for windows&lt;br&gt;&lt;br&gt;Control Panel &lt;br&gt;    * CONTROL: opens the control panel window &lt;br&gt;    * CONTROL ADMINTOOLS: opens the administrative tools &lt;br&gt;    * CONTROL KEYBOARD: opens keyboard properties &lt;br&gt;    * CONTROL COLOUR: opens display properties.Appearance tab &lt;br&gt;    * CONTROL FOLDERS: opens folder options &lt;br&gt;    * CONTROL FONTS: opens font policy management &lt;br&gt;    * CONTROL INTERNATIONAL or INTL.CPL: opens Regional and Language option &lt;br&gt;    * CONTROL MOUSE or MAIN.CPL: opens mouse properties &lt;br&gt;    * CONTROL USERPASSWORDS: opens User Accounts editor &lt;br&gt;    * CONTROL USERPASSWORDS2 or NETPLWIZ: User account access restrictions &lt;br&gt;    * CONTROL PRINTERS: opens faxes and printers available &lt;br&gt;    * APPWIZ.CPL: opens Add or Remove programs utility tool &lt;br&gt;    * OPTIONALFEATURES: opens Add or Remove Windows component utility &lt;br&gt;    * DESK.CPL: opens display properties. Themes tab &lt;br&gt;    * HDWWIZ.CPL: opens add hardware wizard &lt;br&gt;    * IRPROPS.CPL: infrared utility tool &lt;br&gt;    * JOY.CP: opens game controllers settings &lt;br&gt;    * MMSYS.CPL: opens Sound and Audio device Properties. Volume tab &lt;br&gt;    * SYSDM.CPL: opens System properties &lt;br&gt;    * TELEPHON.CPL: Opens phone and Modem options &lt;br&gt;    * TIMEDATE.CPL: Date and Time properties &lt;br&gt;    * WSCUI.CPL: opens Windows Security Center &lt;br&gt;    * ACCESS.CPL: opens Accessibility Options &lt;br&gt;    * WUAUCPL.CPL: opens Automatic Updates &lt;br&gt;    * POWERCFG.CPL: opens Power Options Properties &lt;br&gt;    * AZMAN.MSC: opens authorisation management utility tool &lt;br&gt;    * CERTMGR.MSC: opens certificate management tool &lt;br&gt;    * COMPMGMT.MSC: opens the Computer management tool &lt;br&gt;    * COMEXP.MSC or DCOMCNFG: opens the Computer Services management tool &lt;br&gt;    * DEVMGMT.MSC: opens Device Manager &lt;br&gt;    * EVENTVWR or EVENTVWR.MSC: opens Event Viewer &lt;br&gt;    * FSMGMT.MSC: opens Shared Folders &lt;br&gt;    * NAPCLCFG.MSC: NAP Client configuration utility tool &lt;br&gt;    * SERVICES.MSC: opens Service manager &lt;br&gt;    * TASKSCHD.MSC or CONTROL SCHEDTASKS: opens Schedule Tasks manager &lt;br&gt;    * GPEDIT.MSC: opens Group Policy utility tool &lt;br&gt;    * LUSRMGR.MSC: opens Local Users and Groups &lt;br&gt;    * SECPOL.MSC: opens local security settings &lt;br&gt;    * CIADV.MSC: opens indexing service &lt;br&gt;    * NTMSMGR.MSC: removable storage manager &lt;br&gt;    * NTMSOPRQ.MSC: removable storage operator requests &lt;br&gt;    * WMIMGMT.MSC: opens (WMI) Window Management Instrumentation &lt;br&gt;    * PERFMON or PERFMON.MSC: opens the Performance monitor &lt;br&gt;    * MMC: opens empty Console &lt;br&gt;    * MDSCHED: opens memory diagnostics tools &lt;br&gt;    * DXDIAG: opens DirectX diagnostics tools &lt;br&gt;    * ODBCAD32: opens ODBC Data source Administrator &lt;br&gt;    * REGEDIT or REGEDT32: opens Registry Editor &lt;br&gt;    * DRWTSN32: opens Dr. Watson &lt;br&gt;    * VERIFIER: opens Driver Verifier Manager &lt;br&gt;    * CLICONFG: opens SQL Server Client Network Utility &lt;br&gt;    * UTILMAN: opens Utility Manager &lt;br&gt;    * COLORCPL: opens color management &lt;br&gt;    * CREDWIZ: back up and recovery tool for user passwords &lt;br&gt;    * MOBSYNC: opens Synchronization center &lt;br&gt;    * MSCONFIG: opens System Configuration Utility &lt;br&gt;    * SYSEDIT: opens System Configuration Editor (careful while using this command) &lt;br&gt;    * SYSKEY: Windows Account Database Security management (careful while using this command) &lt;br&gt; &lt;br&gt;Windows utility and applications &lt;br&gt; &lt;br&gt;    * EXPLORER: Opens windows Explorer &lt;br&gt;    * IEXPLORER: Opens Internet explorer &lt;br&gt;    * WAB: opens Contacts &lt;br&gt;    * CHARMAP: opens Character Map &lt;br&gt;    * WRITE: opens WordPad &lt;br&gt;    * NOTEPAD: opens Notepad &lt;br&gt;    * CALC: opens Calculator &lt;br&gt;    * CLIPBRD: opens Clipbook Viewer &lt;br&gt;    * WINCHAT: opens Microsoft Chat Interface &lt;br&gt;    * SOUNDRECORDER: opens sound recording tool &lt;br&gt;    * DVDPLAY: run CD or DVD &lt;br&gt;    * WMPLAYER: opens Windows Media Player &lt;br&gt;    * MOVIEMK: Opens untitled Windows Movie Maker &lt;br&gt;    * OSK: opens on-screen Keyboard &lt;br&gt;    * MAGNIFY: opens Magnifier &lt;br&gt;    * WINCAL: opens Calendar &lt;br&gt;    * DIALER: opens phone Dialer &lt;br&gt;    * EUDCEDIT: opens Private Character Editor &lt;br&gt;    * NDVOL: opens the mixer volume &lt;br&gt;    * RSTRUI : opens Tool System Restore (For Vista only) &lt;br&gt;    * %WINDIR%\SYSTEM32\RESTORE\rstrui.exe: opens Tool System Restore (for XP only). &lt;br&gt;    * MSINFO32: Opens the System Information &lt;br&gt;    * MRT : launches the utility removal of malware. &lt;br&gt;    * Taskmgr : Opens the Windows Task Manager &lt;br&gt;    * CMD: opens a command prompt &lt;br&gt;    * MIGWIZ: Opens the tool for transferring files and settings from Windows (Vista only) &lt;br&gt;    * Migwiz.exe: Opens the tool for transferring files and settings from Windows (for XP only) &lt;br&gt;    * SIDEBAR: Open the Windows (Vista only) &lt;br&gt;    * Sigverif : Opens the tool for verification of signatures of files &lt;br&gt;    * Winver : Opens the window for your Windows version &lt;br&gt;    * FSQUIRT: Bluetooth Transfer Wizard &lt;br&gt;    * IExpress opens the wizard for creating self-extracting archives. Tutorial HERE &lt;br&gt;    * MBLCTR: opens the mobility center (Windows Vista only) &lt;br&gt;    * MSRA : Opens the Windows Remote Assistance &lt;br&gt;    * Mstsc : opens the tool connection Remote Desktop &lt;br&gt;    * MSDT: opens the diagnostic tools and support Microsoft &lt;br&gt;    * WERCON: opens the reporting tool and solutions to problems (for Vista only) &lt;br&gt;    * WINDOWSANYTIMEUPGRADE: Enables the upgrade of Windows Vista &lt;br&gt;    * WINWORD : opens Word (if installed) &lt;br&gt;    * PRINTBRMUI : Opens migration wizard printer (Vista only) &lt;br&gt; &lt;br&gt;Disk management &lt;br&gt; &lt;br&gt;    * DISKMGMT.MSC: opens disk management utility &lt;br&gt;    * CLEANMGR: opens disk drive clean up utility &lt;br&gt;    * DFRG.MSC: opens disk defragmenter &lt;br&gt;    * CHKDSK: complete analysis of disk partition &lt;br&gt;    * DISKPART: disk partitioning tool &lt;br&gt; &lt;br&gt;Connection management &lt;br&gt; &lt;br&gt;    * IPCONFIG: list the configuration of IP addresses on your PC (for more information type IPCONFIG/? in the CMD menu) &lt;br&gt;    * INETCPL.CPL: opens internet properties &lt;br&gt;    * FIREWALL.CPL: opens windows firewall &lt;br&gt;    * NETSETUP.CPL: opens network setup wizard &lt;br&gt; &lt;br&gt;Miscellaneous commands &lt;br&gt; &lt;br&gt;    * JAVAWS: View the cover of JAVA software (if installed) &lt;br&gt;    * AC3FILTER.CPL: Opens the properties AC3 Filter (if installed) &lt;br&gt;    * FIREFOX: Mozilla launches Firefox (if installed) &lt;br&gt;    * NETPROJ: allow or not connecting to a network projector (For Vista only) &lt;br&gt;    * LOGOFF: closes the current session &lt;br&gt;    * SHUTDOWN: shut down Windows &lt;br&gt;    * SHUTDOWN-A: to interrupt Windows shutdown &lt;br&gt;    * %WINDIR% or %SYSTEMROOT%: opens the Windows installation &lt;br&gt;    * %PROGRAMFILES%: Opens the folder where you installed other programs (Program Files) &lt;br&gt;    * %USERPROFILE%: opens the profile of the user currently logged &lt;br&gt;    * %HOMEDRIVE%: opens the browser on the partition or the operating system is installed &lt;br&gt;    * %HOMEPATH%: opens the currently logged user C: \ Documents and Settings \ [username] &lt;br&gt;    * %TEMP%: opens the temporary folder &lt;br&gt;    * VSP1CLN: deletes the cache for installation of the service pack 1 for Vista &lt;br&gt;    * System File Checker (Requires Windows CD if the cache is not available): &lt;br&gt;          o SFC / scannow: immediately scans all system files and repairs damaged files &lt;br&gt;          o SFC / VERIFYONLY: scans only those files system &lt;br&gt;          o SFC / Scanfil = &amp;quot;name and file path&amp;quot;: scans the specified file, and repaired if damaged &lt;br&gt;          o SFC / VERIFYFILE = &amp;quot;name and file path&amp;quot;: Scans only the file specified &lt;br&gt;          o SFC / scanonce: scans the system files on the next restart &lt;br&gt;          o SFC / REVERT: return the initial configuration (For more information, type SFC /? In the command prompt CMD. &lt;br&gt; &lt;br&gt;&lt;br&gt;Add/Remove Programs = appwiz.cpl &lt;br&gt;Administrative Tools = control admintools &lt;br&gt;Authorization Manager= azman.msc &amp;quot;New&amp;quot; &lt;br&gt; &lt;br&gt;Calculator = calc &lt;br&gt;Certificate Manager = certmgr.msc &lt;br&gt;Character Map = charmap &lt;br&gt;Check Disk Utility = chkdsk &lt;br&gt;Control Panel = control &amp;quot;New&amp;quot; &lt;br&gt;Command Prompt = cmd.exe &lt;br&gt;Component Services = dcomcnfg &lt;br&gt;Computer Management = compmgmt.msc = CompMgmtLauncher &amp;quot;New&amp;quot; &lt;br&gt; &lt;br&gt;Date and Time Properties = timedate.cpl &lt;br&gt;Downloads = Downloads &amp;quot;New&amp;quot; &lt;br&gt;Device Manager = devmgmt.msc &lt;br&gt;Direct X Troubleshooter = dxdiag &lt;br&gt;Disk Cleanup Utility = cleanmgr &lt;br&gt;Defragment User Interface = dfrgui &amp;quot;New&amp;quot; &lt;br&gt;Ditilizer Calibration Tool = tabcal &amp;quot;New&amp;quot; &lt;br&gt;Disk Management = diskmgmt.msc &lt;br&gt;Disk Parmelonion Manager = diskpart &lt;br&gt;Display Properties = control desktop or desk.cpl &lt;br&gt;DPI Scaling = dpiscaling &amp;quot;New&amp;quot; &lt;br&gt;Driver Package Installer = dpinst &amp;quot;New&amp;quot; &lt;br&gt;Driver Verifier Utility = verifier or /reset &lt;br&gt;DVD Player = dvdplay &amp;quot;New&amp;quot; &lt;br&gt; &lt;br&gt;Encryption File System = rekeywiz &amp;quot;New&amp;quot; &lt;br&gt;Event Viewer = eventvwr.msc &lt;br&gt; &lt;br&gt;Fax Cover Sheet Editor = fxscover &amp;quot;New&amp;quot; &lt;br&gt;File Signature Verification Tool = sigverif &lt;br&gt;Folders Properties = control folders &lt;br&gt;Fonts = control fonts &lt;br&gt;Free Cell Card Game = freecell &lt;br&gt; &lt;br&gt;Group Policy Editor = gpedit.msc &lt;br&gt; &lt;br&gt;Internet Explorer = iexplore &lt;br&gt;Iexpress Wizard = iexpress &lt;br&gt;Internet Properties = inetcpl.cpl &lt;br&gt;IP Configuration = ipconfig.exe &lt;br&gt;iSCSI Initiator = iscsicpl &amp;quot;New&amp;quot; &lt;br&gt; &lt;br&gt;Keyboard Properties = control keyboard &lt;br&gt; &lt;br&gt;Libraries = explorer or Windows key + E &lt;br&gt;Local Security Settings = secpol.msc &lt;br&gt;Local Users and Groups = lusrmgr.msc &lt;br&gt;Logs You Out Of Windows = logoff &lt;br&gt; &lt;br&gt;Microsoft Support Diagnostic Tool = msdt &amp;quot;New&amp;quot; &lt;br&gt;Microsoft Paint = mspaint.exe &lt;br&gt;Mouse Properties = control mouse &lt;br&gt;Mouse Properties = main.cpl &lt;br&gt;Mobility Center (only on mobile) = mblctr or Windows key + X &lt;br&gt;Network Connections = control netconnections &lt;br&gt;Network Connections = ncpa.cpl &lt;br&gt;Notepad = notepad &lt;br&gt; &lt;br&gt;ODBC Data Source Administrator = odbcad32 &amp;quot;New&amp;quot; &lt;br&gt;Optional Features Manager = optionalfeatures &amp;quot;New&amp;quot; &lt;br&gt;On Screen Keyboard = osk or Windows key + U &lt;br&gt; &lt;br&gt;Performance Monitor = perfmon.msc &lt;br&gt;Phone and Modem Options = telephon.cpl &lt;br&gt;Power Configuration = powercfg.cpl &lt;br&gt;Printers and Faxes = control printers &lt;br&gt;Printer Migration = PrintBrmUi &amp;quot;New&amp;quot; &lt;br&gt;Private Character Editor = eudcedit &lt;br&gt; &lt;br&gt;Regional Settings = intl.cpl &lt;br&gt;Registry Editor = regedit.exe &lt;br&gt;Remote Assistance = msra &amp;quot;New&amp;quot; &lt;br&gt;Remote Desktop = mstsc &lt;br&gt;Resultant Set of Policy = rsop.msc &lt;br&gt; &lt;br&gt;Scheduled Tasks = control schedtasks &lt;br&gt;Security Center = wscui.cpl &lt;br&gt;Services = services.msc &lt;br&gt;Shared Folders/MMC = fsmgmt.msc &lt;br&gt;Shuts Down Windows = shutdown &lt;br&gt;Snipping Tool = snippingtool &amp;quot;New&amp;quot; &lt;br&gt;Sounds and Audio = mmsys.cpl &lt;br&gt;Sound Recorder = soundrecorder &amp;quot;New&amp;quot; &lt;br&gt;Sound Volume = sndvol &amp;quot;New&amp;quot; &lt;br&gt;Spider Solitare Card Game = spider &lt;br&gt;SQL Client Configuration = cliconfg &lt;br&gt;Stored User Names and Passwords = credwiz &amp;quot;New&amp;quot; &lt;br&gt;Sticky Note = StikyNot &amp;quot;New&amp;quot; &lt;br&gt;System Configuration Editor = sysedit &lt;br&gt;System Configuration Utility = msconfig &lt;br&gt;System File Checker Utility = sfc &lt;br&gt;System Information = msinfo32 &lt;br&gt;System Properties = sysdm.cpl or Windows key + Pause/Break &lt;br&gt; &lt;br&gt;Task Manager = taskmgr &lt;br&gt;Trusted Platform Module = TpmInit &amp;quot;New&amp;quot; &lt;br&gt; &lt;br&gt;Utility Manager = utilman &lt;br&gt;User Accounts = netplwiz or control userpasswords2 &lt;br&gt; &lt;br&gt;Windows Activation = slui &amp;quot;New&amp;quot; &lt;br&gt;Windows Backup Utility = sdclt &amp;quot;New&amp;quot; &lt;br&gt;Windows Fax and Scan = wfs &amp;quot;New&amp;quot; &lt;br&gt;Windows Firewall = firewall.cpl &lt;br&gt;Windows Firewall with Advanced Security = wf.msc &amp;quot;New&amp;quot; &lt;br&gt;Windows Image Acquisition = wiaacmgr &amp;quot;New&amp;quot; &lt;br&gt;Windows Media Player = wmplayer &lt;br&gt;Windows Magnifier = magnify &lt;br&gt;Windows Management Infrastructure = wmimgmt.msc &lt;br&gt;Windows Update App Manager = wuapp &amp;quot;New&amp;quot; &lt;br&gt;Windows Standalong Update Manager = wusa &amp;quot;New&amp;#39; &lt;br&gt;Windows System Security Tool = syskey &lt;br&gt;Windows Share Creation Wizard = shrpubw &amp;quot;New&amp;quot; &lt;br&gt;Wordpad = write&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-2626916361395792883?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/2626916361395792883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/02/system-admin-commands-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/2626916361395792883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/2626916361395792883'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/02/system-admin-commands-windows.html' title='system admin commands windows'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-9138594619417648129</id><published>2011-02-01T04:02:00.001-08:00</published><updated>2011-02-01T04:02:29.488-08:00</updated><title type='text'>Change MAC address debian</title><content type='html'>If you wish to explicitly set your MAC address upon a Debian system you can do so by adding an entry to your&lt;span style="font-family: courier new,monospace;"&gt; /etc/network/interfaces&lt;/span&gt;  file.&lt;br&gt;&lt;br&gt;Beneath each interface you wish to setup add &amp;quot;hwaddress ether xx:xxx..&amp;quot;. For example:&lt;br&gt; &lt;br&gt;&lt;span style="font-family: courier new,monospace;"&gt;auto eth0 static&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;iface eth0 inet static&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt; &lt;span style="font-family: courier new,monospace;"&gt;  address 1.2.3.4&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;  gateway ...&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt; &lt;span style="font-family: courier new,monospace;"&gt;  broadcast ...&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;  hwaddress ether 02:01:02:03:04:08&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-9138594619417648129?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/9138594619417648129/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/02/change-mac-address-debian.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/9138594619417648129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/9138594619417648129'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/02/change-mac-address-debian.html' title='Change MAC address debian'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-7560835951800209237</id><published>2011-01-26T23:07:00.001-08:00</published><updated>2011-01-26T23:07:02.769-08:00</updated><title type='text'>full url access log in squid</title><content type='html'>Few days before I was wondering how to log a full URL in the squid log and finally found a solution&lt;br&gt;  &lt;span style="font-family: courier new,monospace;"&gt;strip_query_terms off&lt;/span&gt;&lt;br&gt;  &lt;br&gt;Logs it all now &lt;img src="http://static.linuxquestions.org/questions/images/smilies/smile.gif" alt="" title="Smilie" class="inlineimg" border="0"&gt;&lt;br&gt;When strip &lt;span style="font-family: courier new,monospace;"&gt;strip_query_terms on&lt;/span&gt; it logs only &lt;span style="font-family: courier new,monospace;"&gt;&lt;a href="http://www.google.com/search"&gt;http://www.google.com/search&lt;/a&gt;?&lt;br&gt; &lt;br&gt;&lt;/span&gt;When strip  &lt;span style="font-family: courier new,monospace;"&gt;&lt;b&gt;strip_query_terms off&lt;/b&gt; &lt;/span&gt; it logs whole URL &lt;span style="font-family: courier new,monospace;"&gt;&lt;a href="http://www.google.com/search?hl=en&amp;amp;q=full+url+squid+log&amp;amp;aq=f&amp;amp;aqi=&amp;amp;aql=&amp;amp;oq="&gt;http://www.google.com/search?hl=en&amp;amp;q=full+url+squid+log&amp;amp;aq=f&amp;amp;aqi=&amp;amp;aql=&amp;amp;oq=&lt;/a&gt;&lt;/span&gt;&lt;br&gt; &lt;br&gt;Thanks &lt;a href="http://www.linuxquestions.org/questions/linux-networking-3/squid-access-log-files-33902/"&gt;davebarnes&lt;/a&gt; for the trick.&lt;br&gt;&lt;br&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-7560835951800209237?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/7560835951800209237/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/01/full-url-access-log-in-squid.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/7560835951800209237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/7560835951800209237'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2011/01/full-url-access-log-in-squid.html' title='full url access log in squid'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-5748563036015042554</id><published>2010-12-30T23:00:00.001-08:00</published><updated>2010-12-30T23:00:16.992-08:00</updated><title type='text'>backup all databases MSSQL</title><content type='html'>A script to backup all databases in MSSQL&lt;br&gt;&lt;br&gt;&lt;code&gt;&lt;span style="color: blue;"&gt;DECLARE &lt;/span&gt;&lt;span style="color: rgb(67, 67, 67);"&gt;@name &lt;/span&gt;&lt;span style="color: blue;"&gt;VARCHAR&lt;/span&gt;&lt;span style="color: gray;"&gt;(&lt;/span&gt;&lt;span style="color: black;"&gt;50&lt;/span&gt;&lt;span style="color: gray;"&gt;) &lt;/span&gt;&lt;span style="color: green;"&gt;-- database name  &lt;br&gt; &lt;/span&gt;&lt;span style="color: blue;"&gt;DECLARE &lt;/span&gt;&lt;span style="color: rgb(67, 67, 67);"&gt;@path &lt;/span&gt;&lt;span style="color: blue;"&gt;VARCHAR&lt;/span&gt;&lt;span style="color: gray;"&gt;(&lt;/span&gt;&lt;span style="color: black;"&gt;256&lt;/span&gt;&lt;span style="color: gray;"&gt;) &lt;/span&gt;&lt;span style="color: green;"&gt;-- path for backup files  &lt;br&gt; &lt;/span&gt;&lt;span style="color: blue;"&gt;DECLARE &lt;/span&gt;&lt;span style="color: rgb(67, 67, 67);"&gt;@fileName &lt;/span&gt;&lt;span style="color: blue;"&gt;VARCHAR&lt;/span&gt;&lt;span style="color: gray;"&gt;(&lt;/span&gt;&lt;span style="color: black;"&gt;256&lt;/span&gt;&lt;span style="color: gray;"&gt;) &lt;/span&gt;&lt;span style="color: green;"&gt;-- filename for backup  &lt;br&gt; &lt;/span&gt;&lt;span style="color: blue;"&gt;DECLARE &lt;/span&gt;&lt;span style="color: rgb(67, 67, 67);"&gt;@fileDate &lt;/span&gt;&lt;span style="color: blue;"&gt;VARCHAR&lt;/span&gt;&lt;span style="color: gray;"&gt;(&lt;/span&gt;&lt;span style="color: black;"&gt;20&lt;/span&gt;&lt;span style="color: gray;"&gt;) &lt;/span&gt;&lt;span style="color: green;"&gt;-- used for file name &lt;br&gt; &lt;br&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;SET &lt;/span&gt;&lt;span style="color: rgb(67, 67, 67);"&gt;@path &lt;/span&gt;&lt;span style="color: blue;"&gt;= &lt;/span&gt;&lt;span style="color: red;"&gt;&amp;#39;C:\Backup\&amp;#39;  &lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;SELECT &lt;/span&gt;&lt;span style="color: rgb(67, 67, 67);"&gt;@fileDate &lt;/span&gt;&lt;span style="color: blue;"&gt;= &lt;/span&gt;&lt;span style="color: magenta;"&gt;CONVERT&lt;/span&gt;&lt;span style="color: gray;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;VARCHAR&lt;/span&gt;&lt;span style="color: gray;"&gt;(&lt;/span&gt;&lt;span style="color: black;"&gt;20&lt;/span&gt;&lt;span style="color: gray;"&gt;),&lt;/span&gt;&lt;span style="color: magenta;"&gt;GETDATE&lt;/span&gt;&lt;span style="color: gray;"&gt;(),&lt;/span&gt;&lt;span style="color: black;"&gt;112&lt;/span&gt;&lt;span style="color: gray;"&gt;) &lt;br&gt; &lt;br&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;DECLARE &lt;/span&gt;&lt;span style="color: black;"&gt;db_cursor &lt;/span&gt;&lt;span style="color: blue;"&gt;CURSOR FOR  &lt;br&gt;SELECT &lt;/span&gt;&lt;span style="color: black;"&gt;name &lt;br&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;FROM &lt;/span&gt;&lt;span style="color: black;"&gt;master.dbo.sysdatabases &lt;br&gt; &lt;/span&gt;&lt;span style="color: blue;"&gt;WHERE &lt;/span&gt;&lt;span style="color: black;"&gt;name &lt;/span&gt;&lt;span style="color: gray;"&gt;NOT &lt;/span&gt;&lt;span style="color: blue;"&gt;IN &lt;/span&gt;&lt;span style="color: gray;"&gt;(&lt;/span&gt;&lt;span style="color: red;"&gt;&amp;#39;master&amp;#39;&lt;/span&gt;&lt;span style="color: gray;"&gt;,&lt;/span&gt;&lt;span style="color: red;"&gt;&amp;#39;model&amp;#39;&lt;/span&gt;&lt;span style="color: gray;"&gt;,&lt;/span&gt;&lt;span style="color: red;"&gt;&amp;#39;msdb&amp;#39;&lt;/span&gt;&lt;span style="color: gray;"&gt;,&lt;/span&gt;&lt;span style="color: red;"&gt;&amp;#39;tempdb&amp;#39;&lt;/span&gt;&lt;span style="color: gray;"&gt;)  &lt;br&gt; &lt;br&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;OPEN &lt;/span&gt;&lt;span style="color: black;"&gt;db_cursor   &lt;br&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;FETCH &lt;/span&gt;&lt;span style="color: black;"&gt;NEXT &lt;/span&gt;&lt;span style="color: blue;"&gt;FROM &lt;/span&gt;&lt;span style="color: black;"&gt;db_cursor &lt;/span&gt;&lt;span style="color: blue;"&gt;INTO &lt;/span&gt;&lt;span style="color: rgb(67, 67, 67);"&gt;@name   &lt;br&gt; &lt;br&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;WHILE &lt;/span&gt;&lt;span style="color: rgb(67, 67, 67);"&gt;@@FETCH_STATUS &lt;/span&gt;&lt;span style="color: blue;"&gt;= &lt;/span&gt;&lt;span style="color: black;"&gt;0   &lt;br&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;BEGIN   &lt;br&gt;        SET &lt;/span&gt;&lt;span style="color: rgb(67, 67, 67);"&gt;@fileName &lt;/span&gt;&lt;span style="color: blue;"&gt;= &lt;/span&gt;&lt;span style="color: rgb(67, 67, 67);"&gt;@path &lt;/span&gt;&lt;span style="color: gray;"&gt;+ &lt;/span&gt;&lt;span style="color: rgb(67, 67, 67);"&gt;@name &lt;/span&gt;&lt;span style="color: gray;"&gt;+ &lt;/span&gt;&lt;span style="color: red;"&gt;&amp;#39;_&amp;#39; &lt;/span&gt;&lt;span style="color: gray;"&gt;+ &lt;/span&gt;&lt;span style="color: rgb(67, 67, 67);"&gt;@fileDate &lt;/span&gt;&lt;span style="color: gray;"&gt;+ &lt;/span&gt;&lt;span style="color: red;"&gt;&amp;#39;.BAK&amp;#39;  &lt;br&gt;        &lt;/span&gt;&lt;span style="color: blue;"&gt;BACKUP DATABASE &lt;/span&gt;&lt;span style="color: rgb(67, 67, 67);"&gt;@name &lt;/span&gt;&lt;span style="color: blue;"&gt;TO DISK = &lt;/span&gt;&lt;span style="color: rgb(67, 67, 67);"&gt;@fileName  &lt;br&gt;&lt;br&gt;       &lt;/span&gt;&lt;span style="color: blue;"&gt;FETCH &lt;/span&gt;&lt;span style="color: black;"&gt;NEXT &lt;/span&gt;&lt;span style="color: blue;"&gt;FROM &lt;/span&gt;&lt;span style="color: black;"&gt;db_cursor &lt;/span&gt;&lt;span style="color: blue;"&gt;INTO &lt;/span&gt;&lt;span style="color: rgb(67, 67, 67);"&gt;@name   &lt;br&gt; &lt;/span&gt;&lt;span style="color: blue;"&gt;END   &lt;br&gt;&lt;br&gt;CLOSE &lt;/span&gt;&lt;span style="color: black;"&gt;db_cursor   &lt;br&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;DEALLOCATE &lt;/span&gt;&lt;span style="color: black;"&gt;db_cursor&lt;br&gt;&lt;font size="4"&gt;&lt;br&gt;&lt;br&gt; &lt;/font&gt;&lt;a href="http://www.mssqltips.com/tip.asp?tip=1070"&gt;&lt;font size="4"&gt;&lt;font face="comic sans ms,sans-serif"&gt;adapted from&lt;/font&gt;&lt;/font&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;/code&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-5748563036015042554?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/5748563036015042554/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/12/backup-all-databases-mssql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/5748563036015042554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/5748563036015042554'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/12/backup-all-databases-mssql.html' title='backup all databases MSSQL'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-7862566737118550850</id><published>2010-12-21T04:09:00.001-08:00</published><updated>2010-12-21T04:21:24.783-08:00</updated><title type='text'>Multiple Instances Users in google talk</title><content type='html'>&lt;h4&gt;If you have several google talk accounts, you may want to run multiple instances of google talk at once.  Here's how to do it.&lt;/h4&gt; &lt;p&gt;&lt;span id="more-975"&gt;&lt;/span&gt; Many users, including myself, like to have several different  personalities on IM–Work, play, etc.  By default google talk with only  allow you to run instance of the program at a time.  Here's how to get  around that…&lt;/p&gt; &lt;p&gt;Run google talk with the following switch:  &lt;strong&gt;/nomutex&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;If you installed google talk to the default location, you can easily create a shortcut to this setting.&lt;/p&gt; &lt;ul&gt;1. Right-click on the desktop&lt;br /&gt;2. Select &lt;strong&gt;New&lt;/strong&gt;&lt;br /&gt;3. Select &lt;strong&gt;Shortcut&lt;/strong&gt;&lt;br /&gt;4. Paste this into the text box:&lt;br /&gt;&lt;code&gt;"c:\program files\google\google talk\googletalk.exe" /nomutex&lt;/code&gt;&lt;p&gt;5. Click &lt;strong&gt;Next&lt;/strong&gt;6. Name it whatever: Google Talk Multiple, etc.&lt;br /&gt;7. Click &lt;strong&gt;OK&lt;/strong&gt; until you are done.&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;span style="font-size:130%;"&gt;For Geeks : you can change the googletalk.exe using suitable tools like hexeditor and do this&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Change this:&lt;br /&gt;004536FD   . 3BC6          CMP EAX,ESI&lt;br /&gt;004536FF   . 75 05          JNZ SHORT googleta.00453706&lt;br /&gt;&lt;br /&gt;to this:&lt;br /&gt;004536FD   . 8BC1          MOV EAX,ECX&lt;br /&gt;004536FF   . EB 05          JMP SHORT googleta.00453706&lt;br /&gt;&lt;br /&gt;Please inform me if it isn't legal              &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.neowin.net/forum/topic/363145-google-talks-very-first-secrets/"&gt;Adpated from&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-7862566737118550850?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/7862566737118550850/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/12/multiple-instances-users-in-google-talk.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/7862566737118550850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/7862566737118550850'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/12/multiple-instances-users-in-google-talk.html' title='Multiple Instances Users in google talk'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-1699772420164303231</id><published>2010-12-19T05:09:00.001-08:00</published><updated>2010-12-19T05:09:52.886-08:00</updated><title type='text'>resize clone vdi image using Virtual box</title><content type='html'>&lt;h1&gt;Resize An Existing .vdi Virtualbox Image&lt;br&gt;&lt;/h1&gt; &lt;p&gt;Start off by creating a fresh new drive of the size you're after  using the VirtualBox user interface. Then, locate both the your old,  smaller HD and the new, larger one and run the following command:&lt;/p&gt; &lt;p&gt;&lt;code&gt;VBoxManage clonehd --existing oldhd.vdi newhd.vdi&lt;/code&gt;&lt;/p&gt; &lt;p&gt;After some progress indicators ahve come and gone your HD should have  been cloned to the larger one. You now need to use some software to  expand your drive partition into the new space. Vista and W7 have this  feature built in to Disk Management, or you could use something like  GParted. I have never had luck with the integrated windows disk  management tools, so I opted to use a free product called EASEUS  PARTITION MASTER – home edition:&lt;/p&gt; &lt;p&gt;&lt;img class="alignleft size-medium wp-image-681" style="border: 1px solid black; margin-left: 10px; margin-right: 10px;" title="resizer_tool" src="http://www.attackr.com/wp-content/uploads/2009/11/resizer_tool-300x262.jpg" alt="resizer_tool" height="262" width="300"&gt;&lt;br&gt; &lt;/p&gt;&lt;p&gt;This  tool was easy to install directly into the new vdi image.  Walked  through the wizard after clicking on "Resize" – it rebooted itself and  resized the partition without a fuss.&lt;/p&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-1699772420164303231?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/1699772420164303231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/12/resize-clone-vdi-image-using-virtual.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/1699772420164303231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/1699772420164303231'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/12/resize-clone-vdi-image-using-virtual.html' title='resize clone vdi image using Virtual box'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-528257820158999014</id><published>2010-12-09T23:51:00.001-08:00</published><updated>2010-12-09T23:51:15.279-08:00</updated><title type='text'>force SVN comit log</title><content type='html'>&lt;h2 class="post-title"&gt;Forcing SVN Comments with TortoiseSVN&lt;/h2&gt;               &lt;div class="post-content clearfix"&gt;     	        &lt;p&gt;But as a  developer you can force yourself to always comment before committing,  as well. This one is particulary to do with &lt;a title="http://tortoisesvn.tigris.org/" href="http://tortoisesvn.tigris.org/" target="_blank"&gt;TortoiseSVN &lt;/a&gt;as thats what I currently use at work.&lt;span id="more-161"&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;The way it works is, once you have checked out a folder from the  repository onto your local machine, you need to go to TortoiseSVN  properties and add an inbuilt property to one or all your files. You can  setup a property on one or more files so that it wont let you commit  unless you write a minimum number of characters as my commit comments.  The property is called tsvn:logminsize and it comes along with a set of  other inbuilt properties. Simply right click anywhere in the checked out  folder and go to TortoiseSVN Properties and add the property called  tsvn:logminsize and give it a value of whatever you want. I gave it 10  (screenshot below).&lt;/p&gt; &lt;p&gt;&lt;img class="size-full wp-image-164" title="TortoiseSVN logminsize" src="http://www.anujgakhar.com/wp-content/uploads/2008/07/screenshot0071.jpg" alt="TortoiseSVN logminsize" height="607" width="430"&gt;&lt;/p&gt; &lt;p&gt;I added the property recursively so it applies to all my files. Once  thats done, it wont even enable the "OK" button on the commit dialog box  until you enter atleast 10 characters. Just a little reminder to myself  that commenting is absolutely necessary.&lt;/p&gt; &lt;p&gt;I didnt realize this was possible until today and I am really liking it.&lt;/p&gt;               &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-528257820158999014?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/528257820158999014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/12/force-svn-comit-log.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/528257820158999014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/528257820158999014'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/12/force-svn-comit-log.html' title='force SVN comit log'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-2875744907128720306</id><published>2010-12-06T03:09:00.001-08:00</published><updated>2010-12-06T03:09:12.460-08:00</updated><title type='text'>Changing Graphics Resolution ubuntu</title><content type='html'>Changing Graphics Resolution shortcut in debian ubuntu Press Ctrl+Alt+ the (+,-) arows on the key board&lt;br&gt;&lt;br&gt;&lt;br clear="all"&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-2875744907128720306?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/2875744907128720306/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/12/changing-graphics-resolution-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/2875744907128720306'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/2875744907128720306'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/12/changing-graphics-resolution-ubuntu.html' title='Changing Graphics Resolution ubuntu'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-1223651163302949951</id><published>2010-11-26T04:12:00.001-08:00</published><updated>2010-11-26T04:12:59.245-08:00</updated><title type='text'>Change Tomcat Default port 8080</title><content type='html'>1. Open the folder tomcat\conf on your computer&lt;br&gt;&lt;br&gt;2. Now with a text editor you have to open and modify server.xml. Here you have to identify the following line (line 184) and you modify it so that changes from:&lt;br&gt;&lt;br&gt; &lt;span style="font-family: courier new,monospace;"&gt;&amp;lt;Http10Connector port=&amp;quot;8080&amp;quot;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;secure=&amp;quot;false&amp;quot;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt; &lt;span style="font-family: courier new,monospace;"&gt;maxThreads=&amp;quot;100&amp;quot;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;maxSpareThreads=&amp;quot;50&amp;quot;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt; &lt;span style="font-family: courier new,monospace;"&gt;minSpareThreads=&amp;quot;10&amp;quot; /&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;br&gt;to:&lt;br&gt;&lt;br&gt;&lt;span style="font-family: courier new,monospace;"&gt;&amp;lt;Http10Connector port=&amp;quot;80&amp;quot;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt; &lt;span style="font-family: courier new,monospace;"&gt;secure=&amp;quot;false&amp;quot;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;maxThreads=&amp;quot;100&amp;quot;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt; &lt;span style="font-family: courier new,monospace;"&gt;maxSpareThreads=&amp;quot;50&amp;quot;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;minSpareThreads=&amp;quot;10&amp;quot; /&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;br&gt;3. Startup the web server and access it now using:&lt;br&gt;&lt;br&gt;&lt;a href="http://localhost/"&gt;http://localhost/&lt;/a&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-1223651163302949951?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/1223651163302949951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/11/change-tomcat-default-port-8080.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/1223651163302949951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/1223651163302949951'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/11/change-tomcat-default-port-8080.html' title='Change Tomcat Default port 8080'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-146245078221748239</id><published>2010-11-26T01:29:00.001-08:00</published><updated>2010-11-26T01:29:59.648-08:00</updated><title type='text'>Install Redmine in windows</title><content type='html'>&lt;p&gt;Installing Redmine in Windows&lt;br&gt;&lt;/p&gt;&lt;p&gt; &lt;strong&gt;First Install Ruby Gems after Installing Ruby&lt;/strong&gt;&lt;br&gt; &lt;/p&gt;&lt;p&gt;&lt;/p&gt;location of ruby &lt;a href="http://rubyinstaller.rubyforge.org/"&gt;http://rubyinstaller.rubyforge.org/&lt;/a&gt;    &lt;br&gt;&lt;p&gt;C:\software\Ruby\rubygems-1.3.7&amp;gt;ruby setup.rb&lt;/p&gt;&lt;p&gt;RubyGems 1.3.7 installed&lt;br&gt; ∩╗┐=== 1.3.7 / 2010-05-13&lt;br&gt; NOTE:&lt;br&gt; &lt;a href="http://rubygems.org"&gt;http://rubygems.org&lt;/a&gt; is now the default source for downloading gems. You may have sources set via ~/.gemrc, so you should replace&lt;br&gt; &lt;a href="http://gems.rubyforge.org"&gt;http://gems.rubyforge.org&lt;/a&gt; with &lt;a href="http://rubygems.org"&gt;http://rubygems.org&lt;/a&gt;&lt;br&gt; &lt;a href="http://gems.rubyforge.org"&gt;http://gems.rubyforge.org&lt;/a&gt; will continue to work for the forseeable future.&lt;br&gt; New features:&lt;br&gt; * `gem` commands&lt;br&gt;   * `gem install` and `gem fetch` now report alternate platforms when a&lt;br&gt;     matching one couldn't be found.&lt;br&gt;   * `gem contents` –prefix is now the default as specified in –help.  Bug&lt;br&gt;     #27211 by Mamoru Tasaka.&lt;br&gt;   * `gem fetch` can fetch of old versions again.  Bug #27960 by Eric Hankins.&lt;br&gt;   * `gem query` and friends output now lists platforms.  Bug #27856 by Greg&lt;br&gt;     Hazel.&lt;br&gt;   * `gem server` now allows specification of multiple gem dirs for&lt;br&gt;     documentation.  Bug #27573 by Yuki Sonoda.&lt;br&gt;   * `gem unpack` can unpack gems again.  Bug #27872 by Timothy Jones.&lt;br&gt;   * `gem unpack` now unpacks remote gems.&lt;br&gt;   * –user-install is no longer the default.  If you really liked it, see&lt;br&gt;     Gem::ConfigFile to learn how to set it by default.  (This change was made&lt;br&gt;     in 1.3.6)&lt;br&gt; * RubyGems now has platform support for IronRuby.  Patch #27951 by Will Green.&lt;br&gt; Bug fixes:&lt;br&gt; * Require rubygems/custom_require if –disable-gem was set.  Bug #27700 by&lt;br&gt;   Roger Pack.&lt;br&gt; * RubyGems now protects against exceptions being raised by plugins.&lt;br&gt; * rubygems/builder now requires user_interaction.  Ruby Bug #1040 by Phillip&lt;br&gt;   Toland.&lt;br&gt; * Gem::Dependency support #version_requirements= with a warning.  Fix for old&lt;br&gt;   Rails versions.  Bug #27868 by Wei Jen Lu.&lt;br&gt; * Gem::PackageTask depends on the package dir like the other rake package&lt;br&gt;   tasks so dependencies can be hooked up correctly.&lt;/p&gt; &lt;p&gt;——————————————————————————&lt;br&gt; RubyGems installed the following executables:&lt;br&gt;         C:/setup/Ruby186/bin/gem&lt;br&gt; &lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Fetch Rails and install&lt;br&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;C:\software\ProjectManagement\Ruby\redmine-1.0.0&amp;gt;gem fetch rails -v=2.3.5&lt;br&gt; Downloaded rails-2.3.5&lt;br&gt; Install Rails Now&lt;/p&gt; &lt;p&gt;C:\software\ProjectManagement\Ruby\redmine-1.0.0&amp;gt;gem install rails -v=2.3.5&lt;br&gt; Successfully installed rake-0.8.7&lt;br&gt; Successfully installed activesupport-2.3.5&lt;br&gt; Successfully installed activerecord-2.3.5&lt;br&gt; Successfully installed rack-1.0.1&lt;br&gt; Successfully installed actionpack-2.3.5&lt;br&gt; Successfully installed actionmailer-2.3.5&lt;br&gt; Successfully installed activeresource-2.3.5&lt;br&gt; Successfully installed rails-2.3.5&lt;br&gt; 8 gems installed&lt;br&gt; Installing ri documentation for rake-0.8.7…&lt;br&gt; Installing ri documentation for activesupport-2.3.5…&lt;br&gt; Installing ri documentation for activerecord-2.3.5…&lt;br&gt; Installing ri documentation for rack-1.0.1…&lt;br&gt; Installing ri documentation for actionpack-2.3.5…&lt;br&gt; Installing ri documentation for actionmailer-2.3.5…&lt;br&gt; Installing ri documentation for activeresource-2.3.5…&lt;br&gt; Installing ri documentation for rails-2.3.5…&lt;br&gt; Installing RDoc documentation for rake-0.8.7…&lt;br&gt; Installing RDoc documentation for activesupport-2.3.5…&lt;br&gt; Installing RDoc documentation for activerecord-2.3.5…&lt;br&gt; Installing RDoc documentation for rack-1.0.1…&lt;br&gt; Installing RDoc documentation for actionpack-2.3.5…&lt;br&gt; Installing RDoc documentation for actionmailer-2.3.5…&lt;br&gt; Installing RDoc documentation for activeresource-2.3.5…&lt;br&gt; Installing RDoc documentation for rails-2.3.5…&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Now Install Rack&lt;/strong&gt;&lt;br&gt; C:\software\ProjectManagement\Ruby\redmine-1.0.0&amp;gt;gem install rack -v=1.0.1&lt;br&gt; Successfully installed rack-1.0.1&lt;br&gt; 1 gem installed&lt;br&gt; Installing ri documentation for rack-1.0.1…&lt;br&gt; Installing RDoc documentation for rack-1.0.1…&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Generate Session Store&lt;/strong&gt;&lt;br&gt; C:\software\ProjectManagement\Ruby\redmine-1.0.0&amp;gt;rake generate_session_store&lt;br&gt; (in C:/software/ProjectManagement/Ruby/redmine-1.0.0)&lt;/p&gt;&lt;p&gt;If you get error in this process move the redmine folder into C:\software\ProjectManagement\Ruby\bin and run the command it will work&lt;br&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Now Set Rails Environment&lt;/strong&gt;&lt;br&gt; C:\software\ProjectManagement\Ruby\redmine-1.0.0&amp;gt;set RAILS_ENV=production&lt;br&gt; &lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Now run DB Migrate to setup Data&lt;/strong&gt;&lt;br&gt; C:\software\ProjectManagement\Ruby\redmine-1.0.0&amp;gt;rake db:migrate&lt;br&gt; (in C:/software/ProjectManagement/Ruby/redmine-1.0.0)&lt;br&gt; !!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.&lt;br&gt; rake aborted!&lt;br&gt; no such file to load — mysql&lt;br&gt; (See full trace by running task with –trace)&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Install MySql if you don't have&lt;/strong&gt;&lt;br&gt; C:\software\ProjectManagement\Ruby\redmine-1.0.0&amp;gt;gem install mysql&lt;br&gt; Successfully installed mysql-2.8.1-x86-mingw32&lt;br&gt; 1 gem installed&lt;br&gt; Installing ri documentation for mysql-2.8.1-x86-mingw32…&lt;br&gt; No definition for next_result&lt;br&gt; No definition for field_name&lt;br&gt; No definition for field_table&lt;br&gt; No definition for field_def&lt;br&gt; No definition for field_type&lt;br&gt; No definition for field_length&lt;br&gt; No definition for field_max_length&lt;br&gt; No definition for field_flags&lt;br&gt; No definition for field_decimals&lt;br&gt; No definition for time_inspect&lt;br&gt; No definition for time_to_s&lt;br&gt; No definition for time_get_year&lt;br&gt; No definition for time_get_month&lt;br&gt; No definition for time_get_day&lt;br&gt; No definition for time_get_hour&lt;br&gt; No definition for time_get_minute&lt;br&gt; No definition for time_get_second&lt;br&gt; No definition for time_get_neg&lt;br&gt; No definition for time_get_second_part&lt;br&gt; No definition for time_set_year&lt;br&gt; No definition for time_set_month&lt;br&gt; No definition for time_set_day&lt;br&gt; No definition for time_set_hour&lt;br&gt; No definition for time_set_minute&lt;br&gt; No definition for time_set_second&lt;br&gt; No definition for time_set_neg&lt;br&gt; No definition for time_set_second_part&lt;br&gt; No definition for time_equal&lt;br&gt; No definition for error_errno&lt;br&gt; No definition for error_sqlstate&lt;br&gt; Installing RDoc documentation for mysql-2.8.1-x86-mingw32…&lt;br&gt; No definition for next_result&lt;br&gt; No definition for field_name&lt;br&gt; No definition for field_table&lt;br&gt; No definition for field_def&lt;br&gt; No definition for field_type&lt;br&gt; No definition for field_length&lt;br&gt; No definition for field_max_length&lt;br&gt; No definition for field_flags&lt;br&gt; No definition for field_decimals&lt;br&gt; No definition for time_inspect&lt;br&gt; No definition for time_to_s&lt;br&gt; No definition for time_get_year&lt;br&gt; No definition for time_get_month&lt;br&gt; No definition for time_get_day&lt;br&gt; No definition for time_get_hour&lt;br&gt; No definition for time_get_minute&lt;br&gt; No definition for time_get_second&lt;br&gt; No definition for time_get_neg&lt;br&gt; No definition for time_get_second_part&lt;br&gt; No definition for time_set_year&lt;br&gt; No definition for time_set_month&lt;br&gt; No definition for time_set_day&lt;br&gt; No definition for time_set_hour&lt;br&gt; No definition for time_set_minute&lt;br&gt; No definition for time_set_second&lt;br&gt; No definition for time_set_neg&lt;br&gt; No definition for time_set_second_part&lt;br&gt; No definition for time_equal&lt;br&gt; No definition for error_errno&lt;br&gt; No definition for error_sqlstate&lt;br&gt; C:\software\ProjectManagement\Ruby\redmine-1.0.0&amp;gt;set RAILS_ENV=production&lt;br&gt; &lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Before Doing this Configure database.yml&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;For Database Configuration goto redmine\conf and rename database.yml.example to database.yml if you use mysql then it should look like this&lt;/p&gt; &lt;span style="font-family: courier new,monospace;"&gt;production:&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;  adapter: mysql&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt; &lt;span style="font-family: courier new,monospace;"&gt;  database: redmine_production&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;  host: localhost&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt; &lt;span style="font-family: courier new,monospace;"&gt;  username: root&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;  password:&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt; &lt;span style="font-family: courier new,monospace;"&gt;  encoding: utf8&lt;/span&gt;&lt;br&gt;&lt;p&gt;Now you should create a database named redmine_production in mysql&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;C:\software\ProjectManagement\Ruby\redmine-1.0.0&amp;gt;rake db:migrate&lt;br&gt;  (in C:/software/ProjectManagement/Ruby/redmine-1.0.0)&lt;br&gt; rake aborted!&lt;br&gt; Access denied for user 'root'@&amp;#39;localhost' (using password: NO)&lt;br&gt; (See full trace by running task with –trace)&lt;br&gt; C:\software\ProjectManagement\Ruby\redmine-1.0.0&amp;gt;rake db:migrate&lt;br&gt; (in C:/software/ProjectManagement/Ruby/redmine-1.0.0)&lt;br&gt; ==  Setup: migrating ==========================================================&lt;br&gt; – create_table("attachments", {:force=&amp;gt;true})&lt;br&gt;    -&amp;gt; 0.2820s&lt;br&gt; – create_table("auth_sources", {:force=&amp;gt;true})&lt;br&gt;    -&amp;gt; 0.0110s&lt;br&gt; …………………………………………………………..&lt;br&gt; ==  ChangeChangesPathLengthLimit: migrated (0.0610s) ==========================&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;span style="font-weight: normal;"&gt;If you get error like &lt;/span&gt;&lt;/strong&gt;libmysql.&lt;strong&gt;&lt;span style="font-weight: normal;"&gt;dll missing in this stage.find the dll from here and copy it to bin folder of ruby&lt;br&gt; &lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;a href="http://www.dll-files.com/dllindex/dll-files.shtml?libmysql"&gt;http://www.dll-files.com/dllindex/dll-files.shtml?libmysql&lt;/a&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="font-weight: normal;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Now Try to run Mongrel&lt;/strong&gt;&lt;br&gt;  C:\software\ProjectManagement\Ruby\redmine-1.0.0&amp;gt;mongrel_rails start -p 3000 -e production&lt;br&gt; 'mongrel_rails' is not recognized as an internal or external command,&lt;br&gt; operable program or batch file.&lt;/p&gt; &lt;p&gt;C:\software\ProjectManagement\Ruby\redmine-1.0.0&amp;gt;gem install mongrel_service&lt;br&gt; Building native extensions.  This could take a while…&lt;br&gt; ERROR:  Error installing mongrel_service:&lt;br&gt;         ERROR: Failed to build gem native extension.&lt;/p&gt; &lt;p&gt;C:/setup/Ruby186/bin/ruby.exe extconf.rb&lt;br&gt; checking for RegisterServiceCtrlHandlerEx()… no&lt;br&gt; checking for EnumServicesStatusEx()… no&lt;br&gt; checking for QueryServiceStatusEx()… no&lt;br&gt; creating Makefile&lt;/p&gt; &lt;p&gt;make&lt;br&gt; 'make' is not recognized as an internal or external command,&lt;br&gt; operable program or batch file.&lt;/p&gt; &lt;p&gt;Gem files will remain installed in C:/setup/Ruby186/lib/ruby/gems/1.8/gems/win32-service-0.5.2 for inspection.&lt;br&gt; Results logged to C:/setup/Ruby186/lib/ruby/gems/1.8/gems/win32-service-0.5.2/gem_make.out&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Try to Windows Option&lt;/strong&gt;&lt;br&gt; C:\software\ProjectManagement\Ruby\redmine-1.0.0&amp;gt;gem install mongrel_service  –platform x86-mswin32&lt;br&gt; Successfully installed win32-service-0.5.2-x86-mswin32&lt;br&gt; Successfully installed mongrel_service-0.3.4-x86-mswin32&lt;br&gt; 2 gems installed&lt;br&gt; Installing ri documentation for win32-service-0.5.2-x86-mswin32…&lt;br&gt; Installing ri documentation for mongrel_service-0.3.4-x86-mswin32…&lt;br&gt; Installing RDoc documentation for win32-service-0.5.2-x86-mswin32…&lt;br&gt; Installing RDoc documentation for mongrel_service-0.3.4-x86-mswin32…&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Now Run Redmine&lt;/strong&gt;&lt;br&gt; C:\software\ProjectManagement\Ruby\redmine-1.0.0&amp;gt;mongrel_rails start -p 3000 -e production&lt;br&gt; ** Starting Mongrel listening at &lt;a href="http://0.0.0.0:3000"&gt;0.0.0.0:3000&lt;/a&gt;&lt;br&gt; ** Starting Rails with production environment…&lt;br&gt; C:/software/ProjectManagement/Ruby/redmine-1.0.0/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning:  Gem::Dependency#ve&lt;br&gt; rsion_requirements is deprecated and will be removed on or after August 2010.  Use #requirement&lt;br&gt; ** Rails loaded.&lt;br&gt; ** Loading any Rails specific GemPlugins&lt;br&gt; ** Signals ready.  INT =&amp;gt; stop (no restart).&lt;br&gt; ** Mongrel 1.1.5 available at &lt;a href="http://0.0.0.0:3000"&gt;0.0.0.0:3000&lt;/a&gt;&lt;br&gt; ** Use CTRL-C to stop.&lt;/p&gt; &lt;p&gt;&lt;a href="http://localhost:3000/"&gt;use http://localhost:3000&lt;/a&gt;&lt;/p&gt; &lt;p&gt;With Apache&lt;/p&gt; &lt;p&gt;Configuring Apache + Mongrel on Windows is not significantly different from *nix.&lt;br&gt; Essentially, you need to proxy requests coming into Apache to Mongrel. What this boils down to is something like this:&lt;br&gt; LoadModule proxy_module modules/mod_proxy.so&lt;br&gt; LoadModule proxy_http_module modules/mod_proxy_http.so&lt;/p&gt; &lt;p&gt;    ServerName www.myapp.comm&lt;br&gt;     DocumentRoot "C:/web/myapp/public"&lt;br&gt;     ProxyPass / &lt;a href="http://www.myapp.com:3000/"&gt;http://www.myapp.com:3000/&lt;/a&gt;&lt;br&gt;     ProxyPassReverse / &lt;a href="http://www.myapp.com:3000/"&gt;http://www.myapp.com:3000/&lt;/a&gt;&lt;br&gt;     ProxyPreserveHost On&lt;/p&gt; &lt;p&gt;Stick this in your httpd.conf (or httpd-vhost.conf if you're including it).&lt;br&gt; It assumes you're going to run mongrel on port 3000, your Rails root is  in C:\web\myapp, and you'll access the app at &lt;a href="http://www.myapp.com"&gt;www.myapp.com&lt;/a&gt;.&lt;br&gt; To run the rails app in production mode:&lt;br&gt; mongrel_rails start -p 3000 -e production&lt;br&gt; And away you go (actually mongrel defaults to port 3000 so you could skip -p 3000 if you want).&lt;br&gt; The main difference is that you cannot daemonize mongrel on Windows  (i.e. make it run in the background). Instead you can install it as a  service using the mongrel_service gem.&lt;/p&gt; &lt;p&gt;0 down vote&lt;br&gt; I'm new to RoR and have been attempting the same thing on Windows Server  2008, here are some additional notes on getting mongrel going as a  service:&lt;br&gt; if you get compilation errors when installing mongrel_service:&lt;br&gt; gem install mongrel_service&lt;br&gt; try using a binary instead by specifying your platform:&lt;br&gt; gem install mongrel_service –platform x86-mswin32&lt;br&gt; Additionally, to actually install the service you need to run this command in your RoR's app directory:&lt;br&gt; mongrel_rails service::install –name MyApp -e production -p 3001 -a 0.0.0.0&lt;br&gt; (or to remove: mongrel_rails service::remove –name MyApp)&lt;br&gt; Then you should be able to start/stop the app "MyApp" in your windows services control panel.&lt;/p&gt;&lt;p&gt;References&lt;/p&gt;&lt;a href="http://www.richardnichols.net/2009/09/1-minute-guide-installing-redmine-on-windows/"&gt;http://www.richardnichols.net/2009/09/1-minute-guide-installing-redmine-on-windows/&lt;/a&gt;&lt;br&gt; &lt;a href="http://www.rvaidya.com/blog/ruby/2009/09/15/step-by-step-quick-installation-of-redmine-svn-on-windows/"&gt;http://www.rvaidya.com/blog/ruby/2009/09/15/step-by-step-quick-installation-of-redmine-svn-on-windows/&lt;/a&gt;&lt;br&gt; &lt;a href="http://ashwinrayaprolu.wordpress.com/2010/08/05/installing-redmine-on-windows-for-newbie/"&gt;http://ashwinrayaprolu.wordpress.com/2010/08/05/installing-redmine-on-windows-for-newbie/&lt;/a&gt;&lt;br&gt;&lt;p&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-146245078221748239?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/146245078221748239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/11/install-redmine-in-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/146245078221748239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/146245078221748239'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/11/install-redmine-in-windows.html' title='Install Redmine in windows'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-5755466569636450089</id><published>2010-11-21T00:55:00.001-08:00</published><updated>2010-11-21T00:55:52.456-08:00</updated><title type='text'>Remote SQL Express 2008 Network Connections</title><content type='html'>&lt;h3 class="post-name"&gt;Enabling Remote SQL Express 2008 Network Connections&lt;br&gt;&lt;/h3&gt;&lt;div class="post-content user-defined-markup"&gt;&lt;p&gt;1. &lt;strong&gt;Open up the SQL Server Configuration Manager. &lt;/strong&gt;Programs / Microsoft SQL Server 2008 / Configuration Tools / SQL Server Configuration Manager. &lt;/p&gt;   &lt;p&gt;2. &lt;strong&gt;Expand&lt;/strong&gt; the SQL Server Network Configuration node and select the Protocols for SQLEXPRESS&lt;/p&gt;  &lt;p&gt;3. &lt;strong&gt;Enable TCP/IP&lt;/strong&gt; by right-clicking and selecting Enable, then OK.&lt;/p&gt;  &lt;p&gt;4. Click on the SQL Server Services node and in the right panel right-click SQL Server (EXPRESS) and select restart to &lt;strong&gt;restart the service&lt;/strong&gt;.&lt;/p&gt;   &lt;p&gt;5. Right-click on the SQL Server Browser and select start to &lt;strong&gt;start the browser service&lt;/strong&gt; if it isn&amp;#39;t started already. This will allow you to access the SQL Express instance by the computer name.&lt;/p&gt;   &lt;p&gt;6. &lt;strong&gt;Open up SQL Server Management Studio as Administrator&lt;/strong&gt;. (If you don&amp;#39;t have SSMS installed, &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=7522a683-4cb2-454e-b908-e805e9bd4e28&amp;amp;DisplayLang=en" target="_blank"&gt;get it here&lt;/a&gt;)&lt;/p&gt;   &lt;p&gt;7. In the Object Explorer under the Security node, &lt;strong&gt;add a new user&lt;/strong&gt;  for the account that will be connecting by right-clicking and selecting  &amp;quot;New User&amp;quot;. This opens the Login Properties page. If you&amp;#39;re on a domain  then use Windows Authentication. For my VPC scenario it wasn&amp;#39;t  connected to a domain so I added a SQL Server login and password. (To  enable SQL logins you need to first right-click on the SQL Express  instance at the top, select Properties and under Security select &amp;quot;SQL  Server and Windows Authentication mode&amp;quot;.) &lt;/p&gt;  &lt;p&gt;8. Select User Mapping on the Login Properties and &lt;strong&gt;check off the database you want to connect to&lt;/strong&gt;.  If you&amp;#39;re just testing then you can select db_owner in the role  membership to grant all access to the database, including altering the  schema. Please note that this is &lt;strong&gt;not secure&lt;/strong&gt; but it works for development and testing. &lt;/p&gt;  &lt;p&gt;If  you want to be secure you can go and specifically grant permissions  under the Security node for the specific database back up in the Object  Explorer. But if you&amp;#39;re on a domain then I would recommend creating a  least privileged Windows Security Group on your domain and adding that  to a SQL Server Role that you can configure explicit permissions on  (i.e. GRANT EXECUTE on your CRUD stored procs and GRANT SELECT on  tables, don&amp;#39;t let DELETE, INSERT and UPDATE directly). Then you can just  use normal Windows security to add users on the domain to the group.  This also lets you use integrated security in the connection strings  which is much more secure. &lt;/p&gt;  &lt;p&gt;9. &lt;strong&gt;Configure the Firewall. &lt;/strong&gt;This  is the step that I forgot and was banging my head on the wall 4-EV-R!  Open up Windows Firewall and select Change Settings, select the  Exceptions Tab and click Add Program. You&amp;#39;ll need to select the  SQLServer.exe in Program Files\Microsoft SQL  Server\MSSQL10.SQLEXPRESS\MSSQL\Binn\ and the SQLBrowser.exe in Program  Files\Microsoft SQL Server\90\Shared\. Then select Properties for each  of them and select the &amp;quot;Change Scope&amp;quot; button. Then select the proper  scope. For development and testing you could specify the remote  computer&amp;#39;s IP address or widen it to your network subnet. I recommend  not allowing Internet users. ;-)&lt;/p&gt;  &lt;p&gt;&lt;img src="http://blogs.msdn.com/photos/bethmassi/images/8956528/583x480.aspx"&gt; &lt;/p&gt;  &lt;p&gt;10. &lt;strong&gt;Configure the connection string. &lt;/strong&gt;Now  back in Visual Studio you can configure your connection string settings  in your Project Settings (app.config). If you used Windows  Authentication then it&amp;#39;s really easy:&lt;/p&gt;  &lt;pre class="code"&gt;Data Source=SERVERNAME\sqlexpress;Initial Catalog=MyDatabase;Integrated Security=True&lt;/pre&gt;   &lt;p&gt;If you used a SQL Login then you need to supply a less secure connection string with the username and password:&lt;/p&gt;  &lt;pre class="code"&gt;Data Source=SERVERNAME\sqlexpress;Initial Catalog=MyDatabase;User ID=username;Password=password&lt;/pre&gt;   &lt;p&gt;I hope that works for you, it did for me. If you&amp;#39;re still having trouble please see these &lt;a href="http://msdn.microsoft.com/en-us/library/ms190944.aspx" target="_blank"&gt;troubleshooting tips in the library&lt;/a&gt; or ask a question on the &lt;a href="http://forums.microsoft.com/MSDN/default.aspx?ForumGroupID=19&amp;amp;SiteID=1" target="_blank"&gt;SQL Server forums&lt;/a&gt;. I&amp;#39;m by no means an expert in SQL Server configuration or networks. &lt;br&gt; &lt;/p&gt;&lt;p&gt;If you  need to set up production environments I&amp;#39;d read the &lt;a href="http://msdn.microsoft.com/en-us/library/bb522543.aspx" target="_blank"&gt;SQL Server Books online&lt;/a&gt;. &lt;br&gt;&lt;/p&gt;&lt;p&gt;source : &lt;a href="http://blogs.msdn.com/b/bethmassi/archive/2008/09/17/enabling-remote-sql-express-2008-network-connections-on-vista.aspx"&gt;http://blogs.msdn.com/b/bethmassi/archive/2008/09/17/enabling-remote-sql-express-2008-network-connections-on-vista.aspx&lt;/a&gt;&lt;br&gt; &lt;/p&gt;  &lt;/div&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-5755466569636450089?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/5755466569636450089/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/11/remote-sql-express-2008-network.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/5755466569636450089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/5755466569636450089'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/11/remote-sql-express-2008-network.html' title='Remote SQL Express 2008 Network Connections'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-4874721044336185315</id><published>2010-11-04T02:16:00.001-07:00</published><updated>2010-11-04T02:16:08.052-07:00</updated><title type='text'>Send mail using command</title><content type='html'>&lt;div align="center"&gt;&lt;h2&gt;Telnet - SMTP Commands (sending mail using telnet)&lt;/h2&gt;&lt;/div&gt; 		In order to access your mailbox you will need 3 things: 		&lt;ul&gt;&lt;li&gt;An active internet connection (an embarrasing stage to miss sometimes!)&lt;/li&gt;&lt;li&gt;The address of a mail server capable of relaying for you - usually provided by your dialup provider (e.g. mail.domain.ext)&lt;/li&gt;&lt;li&gt; A valid email address (e.g. mail@domain.ext)&lt;/li&gt;&lt;/ul&gt; 		The first thing to do is to open a connection from your computer to your mail server.&lt;br&gt; 		&lt;code&gt;telnet mail.domain.ext 25&lt;/code&gt;&lt;br&gt; 		You should receive a reply like:&lt;br&gt; 		&lt;code&gt;Trying ???.???.???.???...&lt;br&gt; 		Connected to mail.domain.ext.&lt;br&gt; 		Escape character is &amp;#39;^]&amp;#39;.&lt;br&gt; 		220 mail.domain.ext ESMTP Sendmail ?version-number?; ?date+time+gmtoffset?&lt;/code&gt;&lt;br&gt; 		&lt;br&gt; 		You will then need to delcare where you are sending the email from:&lt;br&gt; 		&lt;code&gt;HELO &lt;a href="http://local.domain.name"&gt;local.domain.name&lt;/a&gt;&lt;/code&gt; - dont worry too much about your local domain name although you really &lt;i&gt;should&lt;/i&gt;  use your exact fully qualified domain name as seen by the outside world  the mail server has no choice but to take your word for it as of  RFC822-RFC1123.&lt;br&gt; 		This should give you:&lt;br&gt; 		&lt;code&gt;250 mail.domain.ext Hello &lt;a href="http://local.domain.name"&gt;local.domain.name&lt;/a&gt; [loc.al.i.p], pleased to meet you&lt;/code&gt;&lt;br&gt; 		&lt;br&gt; 		Now give your email address:&lt;br&gt; 		(On many mailservers the space after the : is required rather that optional. Thanks to Justing Goldberg)&lt;br&gt; 		&lt;code&gt;MAIL FROM: mail@domain.ext&lt;/code&gt;&lt;br&gt; 		Should yeild:&lt;br&gt; 		&lt;code&gt;250 2.1.0 mail@domain.ext... Sender ok&lt;/code&gt;&lt;br&gt; 		&lt;br&gt; 		&lt;br&gt; 		Now give the recipients address:&lt;br&gt; 		&lt;code&gt;RCPT TO: mail@otherdomain.ext&lt;/code&gt;&lt;br&gt; 		Should yeild:&lt;br&gt; 		&lt;code&gt;250 2.1.0 mail@otherdomain.ext... Recipient ok&lt;/code&gt;&lt;br&gt;Note Google mail servers require &amp;lt; and &amp;gt; around the email address (thanks to Paul Beattie).&lt;br&gt; 		&lt;br&gt; 		To start composing the message issue the command &lt;code&gt;DATA&lt;/code&gt;&lt;br&gt; 		&lt;br&gt; 		If you want a subject for your email type &lt;code&gt;Subject:-type subject here-&lt;/code&gt; then press enter twice (these are needed to conform to RFC 882)&lt;br&gt; 		&lt;br&gt; 		You may now proceed to type the body of your message (e.g. &lt;code&gt;hello mail@otherdomain.ext from mail@domain.ext&lt;/code&gt;)&lt;br&gt; 		&lt;br&gt; 		To tell the mail server that you have completed the message enter a single &amp;quot;&lt;code&gt;.&lt;/code&gt;&amp;quot; on a line on it&amp;#39;s own.&lt;br&gt; 		The mail server should reply with: &lt;code&gt;250 2.0.0 ???????? Message accepted for delivery&lt;/code&gt;&lt;br&gt; 		&lt;br&gt; 		You can close the connection by issuing the &lt;code&gt;QUIT&lt;/code&gt; command.&lt;br&gt; 		The mailserver should reply with something like:&lt;code&gt;221 2.0.0 mail.domain.ext closing connection&lt;br&gt;Connection closed by foreign host.&lt;/code&gt;&lt;br&gt; 		&lt;br&gt;&lt;a href="http://www.yuki-onna.co.uk/email/smtp.html"&gt;Reference&lt;/a&gt;&lt;br&gt; 		&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-4874721044336185315?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/4874721044336185315/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/11/send-mail-using-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/4874721044336185315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/4874721044336185315'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/11/send-mail-using-command.html' title='Send mail using command'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-8269017856364698222</id><published>2010-09-18T02:48:00.001-07:00</published><updated>2010-09-18T02:48:37.672-07:00</updated><title type='text'>Samba Gui in ubuntu/debian</title><content type='html'>&lt;table cellspacing="0" cellpadding="0" border="0" &gt;&lt;tr&gt;&lt;td valign="top" style="font: inherit;"&gt;&lt;br&gt; Gui in samba is available in linux through a package named  gadmin-samba.To install samba GUI in ubuntu or debian type following  command in terminal&lt;br&gt;#sudo apt-get install gadmin-samba&lt;br&gt;&lt;br&gt;&lt;img src="file:///C:/Users/admin/AppData/Local/Temp/moz-screenshot-5.png" alt=""&gt;&lt;img src="file:///C:/Users/admin/AppData/Local/Temp/moz-screenshot-6.png" alt=""&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-8269017856364698222?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/8269017856364698222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/09/samba-gui-in-ubuntudebian.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8269017856364698222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8269017856364698222'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/09/samba-gui-in-ubuntudebian.html' title='Samba Gui in ubuntu/debian'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-7052085939008682117</id><published>2010-09-18T01:07:00.001-07:00</published><updated>2010-09-18T01:07:54.854-07:00</updated><title type='text'>Windows-Execute script at startup and shutdown</title><content type='html'>&lt;table cellspacing="0" cellpadding="0" border="0" &gt;&lt;tr&gt;&lt;td valign="top" style="font: inherit;"&gt;&lt;h1&gt;Execute a script a startup and shutdown&lt;/h1&gt; &lt;br&gt;&lt;center&gt;&lt;img src="http://static.commentcamarche.net/en.kioskea.net/faq/images/0-4EGgvEkr-xp-s-.png" alt="" border="0" height="111" width="106"&gt;&lt;/center&gt; &lt;br&gt;The trick works  Windows XP, Vista and 7, but the method varies  depending on your edition of Windows. &lt;br&gt;&lt;a name="for-professional-or-full-editions"&gt;&lt;/a&gt;&lt;h2&gt;For professional  or full editions&lt;/h2&gt; &lt;br&gt;Start the policy editor of the local group: Start Menu&amp;gt; Run&amp;gt;  Type gpedit.msc  &lt;br&gt;Under Vista, you can type the command in the search bar of the start  menu or by shortcut Windows key + R  &lt;br&gt;Go to Computer Configuration&amp;gt; Windows Settings&amp;gt; Scripts  (Startup/Shutdown)  &lt;br&gt;Depending on what you want, double click on Start or Stop system  &lt;br&gt;Click Add&amp;gt; Browse and select the script you want to add.  &lt;br&gt;&lt;a name="for-all-editions"&gt;&lt;/a&gt;&lt;h2&gt;For all editions&lt;/h2&gt; &lt;br&gt;Note that implies midification of the Registry, it is recommended to  make backup before proceeding  &lt;br&gt; &lt;br&gt;Open notepad and copy the code below:  &lt;br&gt; &lt;br&gt;&lt;pre&gt;Windows Registry Editor Version 5.00&lt;br&gt;&lt;br&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine\Scripts]&lt;br&gt;&lt;br&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine\Scripts\Shutdown]&lt;br&gt;&lt;br&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine\Scripts\Startup]&lt;br&gt;&lt;br&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine\Scripts\Startup\0]&lt;br&gt;"GPO-ID"="LocalGPO"&lt;br&gt;"SOM-ID"="Local"&lt;br&gt;"FileSysPath"="C:\\Windows\\System32\\GroupPolicy\\Machine"&lt;br&gt;"DisplayName"="Stratégie de groupe locale"&lt;br&gt;"GPOName"="Stratégie de groupe locale"&lt;br&gt;&lt;br&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine\Scripts\Shutdown\0]&lt;br&gt;"GPO-ID"="LocalGPO"&lt;br&gt;"SOM-ID"="Local"&lt;br&gt;"FileSysPath"="C:\\Windows\\System32\\GroupPolicy\\Machine"&lt;br&gt;"DisplayName"="Stratégie de groupe  locale"&lt;br&gt;"GPOName"="Stratégie de groupe locale"&lt;br&gt;&lt;br&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine\Scripts\Startup\0\0]&lt;br&gt;"Script"="C:\\script1.bat"&lt;br&gt;"Parameters"=""&lt;br&gt;"ExecTime"=hex(b):00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00&lt;br&gt;&lt;/pre&gt; &lt;br&gt; &lt;br&gt;Note that what is underlined is a variable and that you can adapt it  to your needs.  &lt;br&gt;C:\\script.bat  represents the path to your script on the hard disk.   &lt;br&gt;0 represents the number of the script in case you have several  scripts to run. Just increment the number.  &lt;br&gt;Startup is the time of execution of the script (at startup is  Startup and shutdown is Shutdown)  &lt;br&gt; &lt;br&gt; &lt;br&gt;Add as many times as you want, always adapting to your needs, the  example below if you want to add multiple scripts:  &lt;br&gt; &lt;br&gt;&lt;pre&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine\Scripts\Startup\0\0]&lt;br&gt;"Script"="C:\\script1.bat"&lt;br&gt;"Parameters"=""&lt;br&gt;"ExecTime"=hex(b):00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00&lt;/pre&gt; &lt;br&gt; &lt;br&gt; &lt;br&gt;It is also possible to specify parameters for the execution of this  script by changing the Parameters field.  &lt;br&gt; &lt;br&gt;Finally, save this text file:   &lt;ul&gt;&lt;li&gt;Go to File&amp;gt; Save  &lt;/li&gt;&lt;li&gt;Give it a name ending with .reg &lt;/li&gt;&lt;li&gt;Select All files in the list box File Type  &lt;/li&gt;&lt;li&gt;Save the file to the desired location and double click on this  file.&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-7052085939008682117?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/7052085939008682117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/09/windows-execute-script-at-startup-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/7052085939008682117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/7052085939008682117'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/09/windows-execute-script-at-startup-and.html' title='Windows-Execute script at startup and shutdown'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-8830276355787587190</id><published>2010-09-18T00:38:00.001-07:00</published><updated>2010-09-18T00:38:59.116-07:00</updated><title type='text'>Sync Clock from Command Line</title><content type='html'>&lt;table cellspacing="0" cellpadding="0" border="0" &gt;&lt;tr&gt;&lt;td valign="top" style="font: inherit;"&gt;Sync Clock from Command Line&lt;br&gt;&lt;br&gt;Simply open an administrative mode command prompt (right-click, Run as administrator), and then type in the following command:&lt;br&gt;&lt;br&gt;    w32tm /resync&lt;br&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-8830276355787587190?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/8830276355787587190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/09/sync-clock-from-command-line.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8830276355787587190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8830276355787587190'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/09/sync-clock-from-command-line.html' title='Sync Clock from Command Line'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-6185980968897689960</id><published>2010-09-12T06:24:00.001-07:00</published><updated>2010-09-12T06:24:47.074-07:00</updated><title type='text'>VOIP behind NAT using asterisk</title><content type='html'>For all the technology behind Voice over IP (VoIP), you&amp;#39;d expect that it would work on every network, but this unfortunately isn&amp;#39;t the case. Network Address Translation (NAT) is a common practice used in networks, and it doesn&amp;#39;t play well with VoIP. Solving this problem requires an understanding of NAT, VoIP and your VoIP setup. This article focuses on the SIP protocol for VoIP and the Asterisk VoIP software, but the problems and solutions are applicable to most other situations.&lt;p&gt;NAT is used to hide multiple hosts behind a different set of IP addresses. As a packet leaves the gateway, the source address is rewritten to the new external address. When the return packet arrives, the gateway replaces the destination address with that of the originating host before sending the packet along its way. The gateway also can use the same external address for multiple internal hosts. The source port of the connection may be changed to ensure that the connection can be identified uniquely by the gateway, so that the return packets can have the proper address replaced.&lt;p&gt;This last scenario is also called Port Address Translation (PAT), or IP masquerading. It is what Linux and other home firewalls use to hide multiple internal hosts behind the single public IP address assigned by the carrier. The hosts must be hidden because they are using special, private, addresses that can&amp;#39;t be routed on the Internet (such as 192.168.1.1). NAT solves the connectivity problem by giving the host a proper source address on all external connections, which allows the remote host to respond. The downside is that the inside must originate all connections in order to build the translation table entries required for NAT to work.&lt;p&gt;The problem with VoIP and NAT is that both ends of the conversation have to be able to initiate a connection to each other. Consider the simplified sequence of events that happens when PhoneA calls PhoneB using their respective SIP servers, PBXA and PBXB.&lt;p&gt;   1.PBXA sends a SIP invitation to PBXB on PhoneA&amp;#39;s behalf. In this invitation, it is PhoneA&amp;#39;s IP address.&lt;br&gt;   2. PBXB invites PhoneB to the conversation specifying PhoneA&amp;#39;s IP address as the other end.&lt;br&gt;   3.If PhoneB accepts the call, PBXB responds to PBXA with an acknowledgment that includes PhoneB&amp;#39;s IP address.&lt;br&gt;   4.PBXA tells PhoneA about PhoneB.&lt;br&gt;   5.PhoneA sends audio using the Real-Time Protocol (RTP) to PhoneB.&lt;br&gt;   6.PhoneB sends audio using RTP to PhoneA.&lt;p&gt;NAT can cause problems in several places. If one of the PBXes is behind a NAT gateway, the other PBX won&amp;#39;t be able to contact it without some additional network setup. If one or more of the phones are behind a NAT gateway, the other phone will be trying to send audio to a non-routable address. This results in failed calls or missing audio.&lt;p&gt;Asterisk calls the handing off of the phone call in steps 2 and 4 above a re-invite or a native bridge. The steps above show that the phone talks to its local PBX, which in turn talks to the remote PBX. The local PBX then re-points the two sides of the call to each other, so that the local phone is talking to the remote end. Ideally, both sides will do this, and the phones are free to talk directly, leaving the SIP server out of the conversation.&lt;p&gt;The alternative to a re-invite is to have the PBX relay the voice packets between the two endpoints. We look at this in more detail later, but first, here&amp;#39;s a more common scenario.&lt;p&gt;The simplest situation is when a SIP client is behind a NAT gateway connecting to a server on the Internet. The client creates the translation entry for the SIP traffic when it first registers. As long as there is frequent communication between the two hosts, such as one packet per minute, the channel will stay open. The only configuration needed is to have the client use its external address in all SDP packets. On clients that support it, enable STUN (Simple Traversal of UDP through NAT), so the client can determine the external address dynamically, or enter it manually. Asterisk doesn&amp;#39;t support STUN at this time, so all NAT configuration must be done manually. The following commands in /etc/asterisk/sip.conf set up the NAT properly:&lt;p&gt;[general]&lt;br&gt;localnet=&lt;a href="http://192.168.0.0/255.255.0.0"&gt;192.168.0.0/255.255.0.0&lt;/a&gt; ; or your subnet&lt;br&gt;externip=x.x.x.x               ; use your address&lt;p&gt;[YOURREMOTEPEER]               ; your peer&amp;#39;s name&lt;br&gt;nat=yes&lt;br&gt;qualify=yes                    ; Force keepalives&lt;p&gt;With this configuration, Asterisk uses the address defined by externip for all calls to the peers configured with nat=yes. The addition of qualify=yes causes Asterisk to test the connection frequently so that the nat translations aren&amp;#39;t removed from the firewall. With these two commands, there always will be a communications channel between Asterisk and the peer, and Asterisk will use the outside address when sending SDP messages.&lt;p&gt;If you have multiple phones and an Asterisk server behind a NAT gateway, the solution gets more complex. Calls between the phones will work fine because NAT isn&amp;#39;t needed. For calls between you and other systems on the Internet though, there will be problems. Unless you register to the remote side as a client (as done in the previous example), you will not be able to receive SIP messages, so you will not be able to accept calls. Second, the address information in the call setup will point to the internal address of the phone, and the one-way audio problems mentioned previously will crop up.&lt;p&gt;The easiest solution to this is to avoid NAT entirely. This may seem out of place in an article dealing with NAT, but if you have a public IP address available for your call server, use it! If your Asterisk server is connected to both the Internet and the internal network, the SIP port is reachable from both the inside and the outside, and the only problem is ensuring RTP flows properly. The PBX server need not be configured to route between the interfaces or provide masquerading; it simply needs to bridge the inbound and outbound voice calls.&lt;p&gt;As I mentioned earlier, the PBX either can stay in the voice path or get out of the way. In the latter case, the PBX tells both endpoints about each other after which the endpoints talk directly. However, Asterisk could have a call setup with both endpoints and relay the RTP packets on behalf of each endpoint. The inside host would be talking to the inside address, and the outside host would be talking to the outside address. The only configuration required to achieve this in sip.conf is to disable re-invites:&lt;p&gt;[general]&lt;br&gt;canreinvite=no     ; force relaying&lt;p&gt;This configuration works well because the Asterisk server can speak freely to the Internet to send and receive calls. It also can talk to the internal phones, and by some simple bridging, completely ignore NAT.&lt;p&gt;As it turns out, this relaying behavior also is required when the Asterisk server has only a private address. The RTP ports will have to be forwarded on the firewall too. RTP chooses random port numbers based on configured limits. Before the ports can be configured, they should be limited in range. Configuring the firewall rules is much easier if the range of ports is known beforehand.&lt;p&gt;The range of ports to be used for RTP is defined in rtp.conf. The following configuration will limit Asterisk&amp;#39;s choice of RTP ports from 10000 to 10100:&lt;p&gt;[general]&lt;br&gt;rtpstart=10000 ; first port to use&lt;br&gt;rtpend=10100   ; last port to use&lt;br&gt;               ; rounded up if odd&lt;p&gt;Asterisk will need several RTP ports to operate properly. Only even ports are actually used, and disabling of re-invites causes two connections to be built per call. These ports and the SIP port must then be forwarded in by the firewall. The iptables syntax is:&lt;p&gt;iptables -t nat -A PREROUTING -i eth0 -p udp \&lt;br&gt;-m udp --dport 10000:10100 -j DNAT \&lt;br&gt;--to-destination 192.168.1.10&lt;br&gt;iptables -t nat -A PREROUTING -i eth0 -p udp \&lt;br&gt;-m udp --dport 5060 -j DNAT \&lt;br&gt;--to-destination 192.168.1.10&lt;p&gt;Replace eth0 with the outside interface of your firewall and 192.168.1.10 with the address of your Asterisk server. These rules tell the Linux kernel to translate the destination address of any UDP packets in the given range that are entering the outside interface. This must happen at the PREROUTING stage as opposed to the POSTROUTING stage, because the destination address is being translated. At this point, any SIP or RTP packet from the Internet will be forwarded to the internal Asterisk server for processing.&lt;p&gt;When a remote station makes a call to Asterisk, the SIP packet will be forwarded in because of the iptables rules. Asterisk will stay in the media stream because of the canreinvite=no command, and it will use the external address of the firewall in any SDP packets because of the NAT commands. Finally, the media stream will be forwarded to the Asterisk server because of the combination of iptables RTP forwarding and port ranges defined in rtp.conf.&lt;p&gt;Up to this point, the configuration has focused on getting Asterisk working behind a NAT gateway, with some extra details to make the phones relay through Asterisk. There are, of course, more general solutions.&lt;p&gt;As I said earlier, if you can avoid NAT in the first place, it&amp;#39;s in your best interests to do so because it avoids all the problems encountered so far. The Asterisk gateway can have a very restrictive firewall policy applied to it—all that is needed is to allow UDP 5060 for SIP and whatever port range is defined in rtp.conf. In this configuration, Asterisk can contact both the internal phones and the rest of the Internet.&lt;p&gt;The most promising solution to the NAT problem is to have the firewall rewrite the SIP body as it translates the source address. The address specified for the RTP session would be replaced by the firewall itself, which also would take care of forwarding the RTP stream once it arrives. Some commercial firewalls do this. Linux iptables have shipped with ip_nat_sip and ip_conntrack_sip modules since kernel version 2.6.18. These modules are designed to take care of translating SIP, but after extensive testing, I was unable to get it working completely. I had success with inbound calls from a VoIP provider with re-invites disabled, but that was it.&lt;p&gt;IP or GRE tunnels (unencrypted) and IPSec VPNs (encrypted) are another option for getting around the need for NAT. Multiple sites are connected with a tunnel that encapsulates the internal traffic in another IP packet using the gateway&amp;#39;s address as it leaves the outside gateway. The encapsulation is removed at the destination end. This is helpful only if you set up the tunnels beforehand. Because VPNs also are used to connect branch office data networks, this option already might be available to you. The issues of fragmentation that plague data applications aren&amp;#39;t a problem for VoIP because small packets are used.&lt;p&gt;If SIP is not a requirement, and you&amp;#39;re using Asterisk, consider using the IAX protocol. IAX tunnels both the control traffic and the voice traffic over a single UDP conversation that can be port-forwarded, filtered or translated easily. This method is limited to a static set of tunnels, which is sufficient if you&amp;#39;re connecting some PBXes over the Internet or connecting to a long-distance provider.&lt;p&gt;Sometimes the above solutions aren&amp;#39;t available to you. In that case, it might be advisable to move to a full-featured SIP proxy and use Asterisk only for voice applications, such as voice mail. SIP Express Router (SER) is a powerful SIP server that handles NAT well and is used by several high-volume services, including Free World Dialup. SER&amp;#39;s job is only in setting up calls between endpoints, so it must rely on other applications, such as specialized media proxies, to handle RTP streams if needed.&lt;p&gt;The step beyond a SIP proxy is a Session Border Controller (SBC), which is like a VoIP firewall. The SBC can intercede in either the signaling or RTP paths to add extra features, such as signaling protocol or codec translation, all while enforcing security policies. These are almost exclusively commercial products.&lt;p&gt;It is no secret that problems will be encountered when rolling out VoIP, especially when the Internet and NAT are involved. Understanding how the protocols involved work is the first step to solving these problems. You&amp;#39;ve now seen some of the solutions, from reconfiguring the phone or PBX to port translation to additional products or even an adjustment to the architecture. With these problems out of the way, you are free to enjoy the benefits of VoIP.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-6185980968897689960?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/6185980968897689960/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/09/voip-behind-nat-using-asterisk.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/6185980968897689960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/6185980968897689960'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/09/voip-behind-nat-using-asterisk.html' title='VOIP behind NAT using asterisk'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-8562943078907380056</id><published>2010-09-06T09:33:00.001-07:00</published><updated>2010-09-06T09:33:13.900-07:00</updated><title type='text'>Backup and restore drivers windows</title><content type='html'>You can backup your drivers of any devices attached to the computer and restore it in the same computer or different computer using this free software : &lt;A HREF="http://www.drivermax.com/download.htm"&gt;Drivermax&lt;/A&gt;&lt;BR&gt; For detail information URL : &lt;A HREF="http://drivermax.com"&gt;http://drivermax.com&lt;/A&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-8562943078907380056?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/8562943078907380056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/09/backup-and-restore-drivers-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8562943078907380056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8562943078907380056'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/09/backup-and-restore-drivers-windows.html' title='Backup and restore drivers windows'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-1102820813008574947</id><published>2010-08-15T23:24:00.001-07:00</published><updated>2010-08-15T23:24:40.965-07:00</updated><title type='text'>Get MAC address of PC in LAN</title><content type='html'>To Get MAC address of PC in LAN&lt;BR&gt; &lt;BR&gt; First Ping the IP address of the PC you want and use arp to get MAC address&lt;BR&gt; &lt;BR&gt; from a console as root type&lt;BR&gt; Code: &lt;PRE&gt; # ping 192.168.10.5 # arp -na &lt;/PRE&gt; &lt;BR&gt; This should give you the mac address and the ip assigned for all machines on the network. &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-1102820813008574947?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/1102820813008574947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/08/get-mac-address-of-pc-in-lan.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/1102820813008574947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/1102820813008574947'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/08/get-mac-address-of-pc-in-lan.html' title='Get MAC address of PC in LAN'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-2282202406414534330</id><published>2010-07-26T01:06:00.000-07:00</published><updated>2010-07-26T01:07:51.226-07:00</updated><title type='text'>Scan all system files and repair in windows</title><content type='html'>In windows to repair all system files and check if they are intact you may need a windows CD &lt;BR&gt; go to Start/Run, and type: &lt;BR&gt; SFC /SCANNOW &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-2282202406414534330?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/2282202406414534330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/07/scan-all-system-files-and-repair-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/2282202406414534330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/2282202406414534330'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/07/scan-all-system-files-and-repair-in.html' title='Scan all system files and repair in windows'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-1895116911106610992</id><published>2010-07-06T00:01:00.001-07:00</published><updated>2010-07-06T00:01:39.855-07:00</updated><title type='text'>loopback adapter in Xp and spoof MAC Address</title><content type='html'>&lt;p&gt;To manually install the Microsoft Loopback adapter in Windows XP,  follow these steps: &lt;/p&gt; &lt;ol type="1"&gt;&lt;li&gt;Click Start, and then click Control Panel. Because this is XP, you  may have it set up this way, or you may have your interface set up in  Classic view. Either way, navigate your way to 'Add Hardware', or  'Printers and Other Hardware' &lt;/li&gt;&lt;/ol&gt; &lt;blockquote dir="ltr"&gt; &lt;p&gt;&lt;img alt="" src="http://www.windowsnetworking.com/img/upl/image0031097073766646.jpg" hspace="0" align="baseline" border="0"&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;ol start="2" type="1"&gt;&lt;li&gt;Launch the Wizard to Add Hardware to your system. Do not be confused  because you are not actually installing any new hardware, just simply  adding a 'network adapter' which is acting as a virtual adapter.  &lt;/li&gt;&lt;li&gt;Click next, once you have launched the Wizard.  You will see a  series of dialog boxes open to ask you about scanning for hardware  changes, etc – you will want to do everything manually in this exercise.  There will be no automatic scanning for any reason because you have not  installed anything, the installation will immediately fail. &lt;/li&gt;&lt;/ol&gt; &lt;blockquote dir="ltr"&gt; &lt;p&gt;&lt;img alt="" src="http://www.windowsnetworking.com/img/upl/image0051097073766662.jpg" hspace="0" align="baseline" border="0"&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;ol start="4" type="1"&gt;&lt;li&gt;You will next be asked if the hardware is connected. You can select  Yes from the options and click Next. &lt;/li&gt;&lt;/ol&gt; &lt;blockquote dir="ltr"&gt; &lt;p&gt;&lt;img alt="" src="http://www.windowsnetworking.com/img/upl/image0071097073766662.jpg" hspace="0" align="baseline" border="0"&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;ol start="5" type="1"&gt;&lt;li&gt;Now, select *from the bottom of the list* the 'Add a new hardware  device' option, and then click Next. &lt;/li&gt;&lt;/ol&gt; &lt;blockquote dir="ltr"&gt; &lt;p&gt;&lt;img alt="" src="http://www.windowsnetworking.com/img/upl/image0091097073766662.jpg" hspace="0" align="baseline" border="0"&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;ol start="6" type="1"&gt;&lt;li&gt;Click Install the hardware that I manually select from a list, and  then click Next. &lt;/li&gt;&lt;/ol&gt; &lt;blockquote dir="ltr"&gt; &lt;p&gt;&lt;img alt="" src="http://www.windowsnetworking.com/img/upl/image0111097073766662.jpg" hspace="0" align="baseline" border="0"&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;ol start="7" type="1"&gt;&lt;li&gt;Select 'Network adapters' from the Common hardware types section  within the dialog box. Click Next. &lt;/li&gt;&lt;/ol&gt; &lt;blockquote dir="ltr"&gt; &lt;p&gt;&lt;img alt="" src="http://www.windowsnetworking.com/img/upl/image0131097073766662.jpg" hspace="0" align="baseline" border="0"&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;ol start="8" type="1"&gt;&lt;li&gt;Select Microsoft and then the Microsoft Loopback Adapater, and then  click Next. &lt;/li&gt;&lt;/ol&gt; &lt;blockquote dir="ltr"&gt; &lt;p&gt;&lt;img alt="" src="http://www.windowsnetworking.com/img/upl/image0151097073946881.jpg" hspace="0" align="baseline" border="0"&gt;&lt;/p&gt; &lt;p&gt;&lt;img alt="" src="http://www.windowsnetworking.com/img/upl/image0171097073946881.jpg" hspace="0" align="baseline" border="0"&gt;&lt;/p&gt; &lt;p&gt;&lt;img alt="" src="http://www.windowsnetworking.com/img/upl/image0191097073946881.jpg" hspace="0" align="baseline" border="0"&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Lastly, you will be prompted to Finish up the installation. &lt;/p&gt; &lt;h2&gt;Viewing and Configuring the Loopback Adapter&lt;/h2&gt; &lt;p&gt;Once you have finished the installation, you will have a brand new  loopback interface configured on your PC. There are a few things that  you should know about the use of the loopback adapter. &lt;/p&gt; &lt;ul type="disc"&gt;&lt;li&gt;First, it will appear as a new interface connection in the  properties of My Network Places. It will also show up with you view  IPCONFIG from the command line.  &lt;/li&gt;&lt;li&gt;Second, you will be confused about it when you see it because  if you have multiple adapters set up as most do, you will see Local Area  Connection, Local Area Connection 2, Local Area Connection 3 and so on.  A trick to seeing what is what is to hover your mouse over the  connections until you find the right one as seen in the illustration  here: &lt;/li&gt;&lt;/ul&gt; &lt;blockquote dir="ltr"&gt; &lt;p&gt;&lt;img alt="" src="http://www.windowsnetworking.com/img/upl/image0211097073946881.jpg" hspace="0" align="baseline" border="0"&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;ul type="disc"&gt;&lt;li&gt;It is recommended that you rename the connection to something like  'LOOPBACK' so you can differentiate what it is quicker, and if you use  IPCONFIG, check out the output below, you will know it's the LOOPBACK. &lt;/li&gt;&lt;/ul&gt; &lt;blockquote dir="ltr" style="margin-right: 0px;"&gt; &lt;p&gt;C:\&amp;gt;ipconfig&lt;/p&gt; &lt;p&gt;&amp;lt;&amp;lt;Output Omitted&amp;gt;&amp;gt;&lt;/p&gt; &lt;p&gt;Ethernet adapter LOOPBACK:&lt;/p&gt; &lt;p&gt;   Connection-specific DNS Suffix  . :&lt;br&gt;   Autoconfiguration IP  Address. . . : 169.254.25.129&lt;br&gt;   Subnet Mask . . . . . . . . . . . :  255.255.0.0&lt;br&gt;   Default Gateway . . . . . . . . . :&lt;/p&gt; &lt;p&gt;C:\&amp;gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;ul type="disc"&gt;&lt;li&gt;Lastly, notice that the address given to the adapter is on the APIPA  subnet. APIPA, which is Automatic Private IP Addressing, is a way for  the PC to put itself on the network if DHCP is configured but not  available. You can keep this on the APIPA range or hard code a static IP  address in to use and test with.  &lt;/li&gt;&lt;li&gt;Unless you disable the interface, it will always appear as up  because it cannot go down from a hardware failure as there is no  hardware to fail. &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Now you can test with this IP address, it will always remain stable  and so on. &lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="4"&gt;&lt;b&gt;You can create a MAC Spoof from loopback by using following trick&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;Just go &lt;br&gt;&lt;/p&gt;&lt;p&gt;1.run and type ncpa.cpl&lt;/p&gt;&lt;p&gt;2.Select  loopback LAN and your own LAN by using ctrl and click&lt;br&gt;  &lt;/p&gt;&lt;p&gt;3.Right click and select bridge &lt;br&gt;&lt;/p&gt;&lt;p&gt;4.You have done .Now the traffic flow through the Network bridge and your original mac is hidden&lt;br&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-1895116911106610992?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/1895116911106610992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/07/loopback-adapter-in-xp-and-spoof-mac.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/1895116911106610992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/1895116911106610992'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/07/loopback-adapter-in-xp-and-spoof-mac.html' title='loopback adapter in Xp and spoof MAC Address'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-6692372569342510725</id><published>2010-07-05T05:04:00.000-07:00</published><updated>2010-07-05T05:05:06.052-07:00</updated><title type='text'>Install any fonts in ubuntu</title><content type='html'>Close all OpenOffice windows. &lt;OL TYPE=1&gt;     &lt;LI TYPE=1 VALUE=2&gt;Navigate to the following Ubuntu menus. &lt;BR&gt;     &lt;B&gt;Application &amp;gt; Add/Remove...&lt;/B&gt;     &lt;LI TYPE=1 VALUE=3&gt;Install &lt;B&gt;&lt;I&gt;Fonty Python. &lt;/I&gt;&lt;/B&gt;This is a font manager for Ubuntu. It's similar to &lt;I&gt;Adobe Type Manager&lt;/I&gt;. Find below attached screenshot.     &lt;LI TYPE=1 VALUE=4&gt;Open &lt;I&gt;Fonty Python.&lt;/I&gt;     &lt;LI TYPE=1 VALUE=5&gt;Navigate to the following &lt;I&gt;Fonty Python's &lt;/I&gt;menu &lt;B&gt;&lt;I&gt;Help &amp;gt; Help F1.&lt;/I&gt;&lt;/B&gt;     &lt;LI TYPE=1 VALUE=6&gt;The help window will open. Follow instructions on this page.     &lt;LI TYPE=1 VALUE=7&gt;Open OpenOffice. Find the font under the font menu. &lt;/OL&gt; &lt;BR&gt; Option 2 : For advanced Users&lt;BR&gt; &lt;BR&gt; &lt;OL TYPE=1&gt;     &lt;LI TYPE=1 VALUE=1&gt;Close all OpenOffice windows.     &lt;LI TYPE=1 VALUE=2&gt;Download the font you want from the following site. For example &lt;B&gt;Arial Narrow&lt;/B&gt;. Find below attached screenshot to clarify download link location. &lt;BR&gt;     &lt;A HREF="http://www.facebook.com/note_redirect.php?note_id=348721834277&amp;amp;h=b6245847fe7f0ecaa3e8c01d1b8dd79e&amp;amp;url=http%3A%2F%2Fwww.free-fonts-ttf.org%2Ftrue-type-fonts%2Flexicon-17-high-quality-collections.htm%3Fpage%3D32"&gt;http://www.free-fonts-ttf.&lt;/A&gt;&lt;A HREF="http://www.facebook.com/note_redirect.php?note_id=348721834277&amp;amp;h=b6245847fe7f0ecaa3e8c01d1b8dd79e&amp;amp;url=http%3A%2F%2Fwww.free-fonts-ttf.org%2Ftrue-type-fonts%2Flexicon-17-high-quality-collections.htm%3Fpage%3D32"&gt;org/true-t...ns.htm?page=3&lt;/A&gt;&lt;A HREF="http://www.facebook.com/note_redirect.php?note_id=348721834277&amp;amp;h=b6245847fe7f0ecaa3e8c01d1b8dd79e&amp;amp;url=http%3A%2F%2Fwww.free-fonts-ttf.org%2Ftrue-type-fonts%2Flexicon-17-high-quality-collections.htm%3Fpage%3D32"&gt;2&lt;/A&gt;     &lt;LI TYPE=1 VALUE=3&gt;Copy the fonts to your &lt;I&gt;fonts&lt;/I&gt; directory. This directory is located under. This is optional but you can create sub-folders inside this directory. &lt;BR&gt;     &lt;B&gt;&lt;I&gt;/usr/share/fonts/truetype&lt;/I&gt;&lt;/B&gt;     &lt;LI TYPE=1 VALUE=4&gt;If you do not have access to copy the fonts the the above folder then type in the following command in TERMINAL. &lt;BR&gt;     Code: &lt;PRE&gt; &lt;B&gt;&lt;I&gt;gksudo nautilus&lt;/I&gt;&lt;/B&gt; &lt;/PRE&gt;     &lt;LI TYPE=1 VALUE=5&gt;Nautilus file browser will open.     &lt;LI TYPE=1 VALUE=6&gt;Use Nautilus to copy the fonts to your .fonts directory.     &lt;LI TYPE=1 VALUE=7&gt;To rebuild your fonts list. Type in the following command in TERMINAL&lt;BR&gt;     Code: &lt;PRE&gt; &lt;B&gt;&lt;I&gt;sudo fc-cache -vf&lt;/I&gt;&lt;/B&gt; &lt;/PRE&gt;     &lt;LI TYPE=1 VALUE=8&gt;Open OpenOffice. Find the font under the font menu.     &lt;LI TYPE=1 VALUE=9&gt;That's it. Now you can read &lt;I&gt;.doc&lt;/I&gt; or &lt;I&gt;.docx&lt;/I&gt; that comes from other people who uses this font. &lt;/OL&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-6692372569342510725?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/6692372569342510725/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/07/install-any-fonts-in-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/6692372569342510725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/6692372569342510725'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/07/install-any-fonts-in-ubuntu.html' title='Install any fonts in ubuntu'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-5922388735006547824</id><published>2010-07-04T00:50:00.001-07:00</published><updated>2010-07-04T00:50:51.249-07:00</updated><title type='text'>Concurrent multiple Remote Desktop Sessions XP</title><content type='html'>&lt;B&gt;&lt;FONT SIZE="6"&gt;Concurrent&amp;nbsp; Multiple Remote Desktop Sessions in Windows XP SP2&lt;/FONT&gt;&lt;/B&gt; &lt;BR&gt; Windows XP does not allow concurrent sessions for its Remote Desktop feature. What this means is that if a user is logged on at the local console, a remote user has to kick him off (and ironically, this can be done even without his permission) before starting work on the box. This is irritating and removes much of the productivity that Remote Desktop brings to Windows. Read on to learn how to remove that limitation in Windows XP SP2&lt;BR&gt; &lt;BR&gt; A much touted feature in SP2 (Service Pack 2) since then removed was the ability to do just this, have a user logged on locally while another connects to the terminal remotely. Microsoft however removed the feature in the final build. The reason probably is that the EULA (End User License Agreement) allows only a single user to use a computer at a time. This is (IMHO) a silly reason to curtail Remote Desktop's functionality, so we'll have a workaround.&lt;BR&gt; &lt;BR&gt; Microsoft did try out the feature in earlier builds of Service Pack 2 and it is this that we're going to exploit here. We're going to replace termserv.dll (The Terminal Server) with one from an earlier build (2055).&lt;BR&gt; &lt;BR&gt; To get Concurrent Sessions in Remote Desktop working, follow the steps below &lt;I&gt;exactly&lt;/I&gt;:&lt;BR&gt; &lt;BR&gt; &lt;OL TYPE=1&gt;     &lt;LI TYPE=1 VALUE=1&gt;Download the &lt;A HREF="http://sig9.com/files/termserv.zip"&gt;termserv.zip&lt;/A&gt; file&amp;nbsp; and extract it somewhere. (You have to be registered to see the file)     &lt;LI TYPE=1 VALUE=2&gt;Reboot into Safe Mode. This is necessary to remove Windows File Protection.     &lt;LI TYPE=1 VALUE=3&gt;Copy the termserv.dll in the zip to %windir%\System32 and %windir%\ServicePackFiles\i386. If the second folder doesn't exist, don't copy it there. Delete termserv.dll from the dllcache folder: %windir%\system32\dllcache     &lt;LI TYPE=1 VALUE=4&gt;Merge the contents of Concurrent Sessions SP2.reg file into the registry.     &lt;LI TYPE=1 VALUE=5&gt;Make sure Fast User Switching is turned on. Go Control Panel -&amp;gt; User Accounts -&amp;gt; Change the way users log on or off and turn on Fast User Switching.     &lt;LI TYPE=1 VALUE=6&gt;Open up the Group Policy Editor: Start Menu &amp;gt; Run &amp;gt; 'gpedit.msc'. Navigate to Computer Configuration &amp;gt; Administrative Templates &amp;gt; Windows Components &amp;gt; Terminal Services. Enable 'Limit Number of Connections' and set the number of connections to 3 (or more). This enables you to have more than one person remotely logged on.     &lt;LI TYPE=1 VALUE=7&gt;Now reboot back into normal Windows and try out whether Concurrent Sessions in Remote Desktop works. It should! &lt;/OL&gt; &lt;BR&gt; If anything goes wrong, the termserv_sp2.dll is the original file you replaced. Just rename it to termserv.dll, reboot into safe mode and copy it back.&lt;BR&gt; &lt;BR&gt; The &lt;I&gt;termserv.dl_&lt;/I&gt; file is provided in the zip is for you slipstreamers out there. Just replace that file with the corresponding file in the Windows installation disks.&lt;BR&gt; &lt;BR&gt; &lt;A HREF="http://www.isralet.com/files/termsrv_sp3_patch.rar"&gt;Alternate location for DLL&lt;/A&gt; for XP Service Pack 3.&lt;BR&gt; &lt;BR&gt; &lt;A HREF="http://sig9.com/articles/concurrent-remote-desktop"&gt;source&lt;/A&gt; &lt;BR&gt; &lt;BR&gt; &lt;BR&gt; &lt;BR&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-5922388735006547824?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/5922388735006547824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/07/concurrent-multiple-remote-desktop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/5922388735006547824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/5922388735006547824'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/07/concurrent-multiple-remote-desktop.html' title='Concurrent multiple Remote Desktop Sessions XP'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-2104382608783038929</id><published>2010-07-01T03:56:00.001-07:00</published><updated>2010-07-01T04:40:44.456-07:00</updated><title type='text'>Wake on LAN WOL in Linux</title><content type='html'>&lt;span style="font-size:180%;"&gt;&lt;b&gt;Configure WOL in Ubuntu&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. If you havent already, go to your BIOS, and turn on WakeOnLAN (it varies, look for it.) If your network card is onboard, your set for step 2, otherwise there is &lt;i&gt;probably&lt;/i&gt; a cable that should go from your network card to your motherboard, though this is not always the case.&lt;br /&gt;&lt;br /&gt;2. Back in ubuntu, kubuntu, xubuntu, w/e, we now need to make a script that will run every time the computer is started, because this command only lasts until the computer is turned on again once.&lt;br /&gt;&lt;br /&gt;2a. Find out what network device you want to have the computer wake-able from, usually all, which is just one. If you have more network devices in your system, 9 chances out of 10, you already know what they are called.&lt;br /&gt;&lt;b&gt;You can NOT wake up a laptop or computer that is only connected via wireless with wake-on-lan, unless the bios has a method for this, this is very rare. &lt;/b&gt;&lt;br /&gt;In your terminal, type: Code: &lt;pre&gt; ifconfig &lt;/pre&gt; You'll get something like: (I have removed my mac address for security) Code: &lt;pre&gt; eth0     &lt;br /&gt;Link encap:Ethernet&lt;br /&gt; HWaddr 01:23:45:67:89:ab         &lt;br /&gt;inet addr:192.168.1.2&lt;br /&gt;Bcast:192.168.1.255  Mask:255.255.255.0         &lt;br /&gt;inet6 addr: fe80::215:f2ff:fe6f:3487/64 Scope:Link         &lt;br /&gt;UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1         &lt;br /&gt;RX packets:71495 errors:0 dropped:0 overruns:0 frame:0         &lt;br /&gt;TX packets:76190 errors:0 dropped:0 overruns:0 carrier:0          &lt;br /&gt;collisions:0 txqueuelen:1000         &lt;br /&gt;RX bytes:23164212 (22.0 MiB)&lt;br /&gt;TX bytes:7625016 (7.2 MiB)         &lt;br /&gt;Interrupt:217 Base address:0xd400  lo      &lt;br /&gt;Link encap:Local Loopback         &lt;br /&gt;inet addr:127.0.0.1  Mask:255.0.0.0         &lt;br /&gt;inet6 addr: ::1/128 Scope:Host         &lt;br /&gt;UP LOOPBACK RUNNING  MTU:16436  Metric:1         &lt;br /&gt;RX packets:1290 errors:0 dropped:0 overruns:0 frame:0         &lt;br /&gt;TX packets:1290 errors:0 dropped:0 overruns:0 carrier:0         &lt;br /&gt;collisions:0 txqueuelen:0           RX bytes:161182 (157.4 KiB)  TX bytes:161182 (157.4 KiB) &lt;/pre&gt; So, I want this system to be wake-able from eth0.&lt;br /&gt;&lt;br /&gt;2b. Now we create the script.&lt;br /&gt;&lt;b&gt;Note: you must be an administrator on the system you are doing this to.&lt;/b&gt; Code: &lt;pre&gt; sudo -i &lt;/pre&gt; Enter your password at the prompt.&lt;br /&gt;Change to the startup script directory and start editing a new file: Code: &lt;pre&gt; cd /etc/init.d/&lt;br /&gt;pico wakeonlanconfig &lt;/pre&gt; Paste, or type this into the file, replacing eth0 with your network device, repeat the ethtool line as many times for your devices before the exit line: Code: &lt;pre&gt; #!/bin/bash&lt;br /&gt;ethtool -s eth0 wol g&lt;br /&gt; exit &lt;/pre&gt; Set the permissions of the file: Code: &lt;pre&gt; chmod a+x wakeonlanconfig &lt;/pre&gt; Make the script run on startup: Code: &lt;pre&gt; update-rc.d -f wakeonlanconfig defaults &lt;/pre&gt; You should see something like: Code: &lt;pre&gt; Adding system startup for&lt;br /&gt;/etc/init.d/wakeonlanconfig ...  &lt;br /&gt;/etc/rc0.d/K20wakeonlanconfig -&amp;gt;../init.d/wakeonlanconfig   &lt;br /&gt;/etc/rc1.d/K20wakeonlanconfig -&amp;gt; ../init.d/wakeonlanconfig   &lt;br /&gt;/etc/rc6.d/K20wakeonlanconfig -&amp;gt; ../init.d/wakeonlanconfig   &lt;br /&gt;/etc/rc2.d/S20wakeonlanconfig -&amp;gt; ../init.d/wakeonlanconfig   &lt;br /&gt;/etc/rc3.d/S20wakeonlanconfig -&amp;gt; ../init.d/wakeonlanconfig   &lt;br /&gt;/etc/rc4.d/S20wakeonlanconfig -&amp;gt; ../init.d/wakeonlanconfig   &lt;br /&gt;/etc/rc5.d/S20wakeonlanconfig -&amp;gt; ../init.d/wakeonlanconfig &lt;/pre&gt; Now we finish by running it, and making sure there are no errors. Code: &lt;pre&gt; /etc/init.d/wakeonlanconfig &lt;/pre&gt; This should produce no output and put you right back at the prompt you started at.&lt;br /&gt;&lt;br /&gt;3. Use it. you'll need something to send wake-on-lan packets with, "wakeonlan" is in the repos. And you'll need the mac address of the system.&lt;br /&gt;&lt;br /&gt;To get your MAC address, on the same system you just enabled WOL on, type: Code: &lt;pre&gt; ifconfig | grep HW &lt;/pre&gt; its the thing that looks like 01:23:45:67:89:ab , write it down.&lt;br /&gt;turn off that system: Code: &lt;pre&gt; sudo halt &lt;/pre&gt; if your using wakeonlan from the repos, and you are on the same network as the computer your tying to wake up, replace 01:23:45:67:89:ab with your mac address and do, from another computer: Code: &lt;pre&gt; wakeonlan 01:23:45:67:89:ab &lt;/pre&gt; &lt;b&gt;In MOST cases, you CAN SEND wake on lan packets from a wireless connected computer.&lt;/b&gt;&lt;br /&gt;If that doesnt work, its likely the port on the system your trying to wake up isnt the default (9), try 7, or if your BIOS settings or book told you one, use that one. Code: &lt;pre&gt; wakeonlan -p 7 01:23:45:67:89:ab &lt;/pre&gt; If that STILL doesnt work, make sure wakeonlan is enabled in your bios and your hardware supports it.&lt;br /&gt;&lt;br /&gt;*Note: It has been said that you need to disable -i from halt, however I have never had to do this, nor do I know how.&lt;br /&gt;&lt;a href="http://ubuntu-utah.ubuntuforums.org/showthread.php?t=234588"&gt;source &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color:#1a1a1a;"&gt;&lt;span style="font-size:180%;"&gt;WOL from internet&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Here is generic configuration for router (may vary depend on your router and IP addresses used):&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Name: WakeOnLan Broadcast&lt;br /&gt;Enable: yes&lt;br /&gt;IP Address: 192.168.0.255 &amp;lt;--- here is the private broadcast IP address, NOT your IP like 192.168.0.1&lt;br /&gt;Protocol: UDP&lt;br /&gt;Private Port: 9&lt;br /&gt;Public Port: 9&lt;br /&gt;Schedule: Always&lt;br /&gt;&lt;a href="http://www.wakeonlan.me/"&gt;source&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-2104382608783038929?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/2104382608783038929/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/07/wake-on-lan-wol-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/2104382608783038929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/2104382608783038929'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/07/wake-on-lan-wol-in-linux.html' title='Wake on LAN WOL in Linux'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-445840305088020187</id><published>2010-06-27T22:30:00.001-07:00</published><updated>2010-06-27T22:30:23.304-07:00</updated><title type='text'>Protect Web Directories using .htacess</title><content type='html'>&lt;table width="80%" align="center" border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td bgcolor="#336699"&gt;&lt;b&gt;&lt;font color="#ffffff"&gt;STEP 1:&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;      &lt;td bgcolor="#dde9f4"&gt;&lt;b&gt;Configuration of .htaccess file.&lt;/b&gt;&lt;/td&gt;    &lt;/tr&gt;    &lt;tr&gt;       &lt;td valign="top"&gt;&lt;br&gt;&lt;/td&gt;      &lt;td&gt;         &lt;ul&gt;&lt;li&gt;First we must create was is known as the .htaccess  authentication             file. This file is the key to providing who has access to the  files             in the directory and what types of operations they are allowed  to perform             within the directory. This tutorial will restrict who is able  to view             (GET) files from the directory and upload (POST) files into  the directory.             For more elaborate security measures, check out &lt;a href="http://httpd.apache.org/" target="_blank"&gt;Apache&amp;#39;s&lt;/a&gt;             web site.&lt;br&gt;            &lt;br&gt;          &lt;/li&gt;&lt;li&gt;Open your favorite editor (Windows®, Notepad works well) or  telnet             into your web server and use a Unix editor like vi.&lt;br&gt;            &lt;br&gt;          &lt;/li&gt;&lt;li&gt;Using the text below as a guideline, create a text file  where &lt;b&gt;&lt;font face="Courier New, Courier, mono" size="2"&gt;/var/www/html/private/&lt;/font&gt;&lt;/b&gt;              is the absolute path of the directory where you would like to  store             your authentication usernames/passwords and &lt;b&gt;&lt;font face="Courier New, Courier, mono" size="2"&gt;My             Private Directory&lt;/font&gt;&lt;/b&gt; is the name you would like for  the authentication             window.&lt;br&gt;            &lt;br&gt;            &lt;table width="400" align="center" border="1" cellpadding="3"&gt;              &lt;tbody&gt;&lt;tr bgcolor="#dde9f4"&gt;                 &lt;td&gt;                   &lt;p&gt;&lt;font face="Courier New, Courier, mono" size="2"&gt;AuthUserFile                      &lt;b&gt;/var/www/html/private/&lt;/b&gt;.htpasswd&lt;br&gt;                    AuthGroupFile /dev/null&lt;br&gt;                    AuthName &amp;quot;&lt;b&gt;My Private Directory&lt;/b&gt;&amp;quot;&lt;br&gt;                    AuthType Basic&lt;/font&gt;&lt;/p&gt;                  &lt;p&gt;&lt;font face="Courier New, Courier, mono" size="2"&gt;&amp;lt;Limit                      GET POST&amp;gt;&lt;br&gt;                    require valid-user&lt;br&gt;                    &amp;lt;/Limit&amp;gt;&lt;/font&gt;&lt;/p&gt;                &lt;/td&gt;              &lt;/tr&gt;            &lt;/tbody&gt;&lt;/table&gt;            &lt;br&gt;            &lt;ul&gt;&lt;li class="note"&gt;Note: the absolute path to the .htpasswd  file is                 very important. If unsure about this path, ask your  hosting provider                 or telnet into the server and from the directory you want  to keep                 your usernames/passwords, type &lt;b&gt;pwd&lt;/b&gt; at the shell  prompt.&lt;br&gt;                &lt;br&gt;              &lt;/li&gt;&lt;li class="note"&gt;Note: the .htaccess file also protects  subdirectories                 of the directory in which it is placed.&lt;br&gt;                &lt;br&gt;              &lt;/li&gt;&lt;/ul&gt;          &lt;/li&gt;&lt;li&gt;Save this file as &lt;b&gt;.htaccess&lt;/b&gt;.&lt;br&gt;            &lt;br&gt;          &lt;/li&gt;&lt;li&gt; The .htaccess file needs to be placed inside the directory  you would             like protected. If the file was created on your local  workstation, ftp             the file into the directory you want protected. If a Unix  editor like             vi             was used, use the &lt;b&gt;mv&lt;/b&gt;             command to move the file to the required directory.&lt;br&gt;          &lt;/li&gt;&lt;/ul&gt;      &lt;/td&gt;    &lt;/tr&gt;    &lt;tr&gt;       &lt;td valign="top"&gt; &lt;/td&gt;      &lt;td&gt; &lt;/td&gt;    &lt;/tr&gt;    &lt;tr&gt;       &lt;td valign="top" bgcolor="#336699"&gt;&lt;b&gt;&lt;font color="#ffffff"&gt;STEP         2:&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;      &lt;td bgcolor="#dde9f4"&gt;&lt;b&gt;Configuration of the  .htpasswd         file&lt;/b&gt;&lt;/td&gt;    &lt;/tr&gt;    &lt;tr&gt;       &lt;td valign="top"&gt; &lt;/td&gt;      &lt;td&gt;         &lt;ul&gt;&lt;li&gt;Second we must create the .htpasswd file. This file contains  the usernames             and passwords of those individuals who we authorize access to  our directory,             and subdirectories.&lt;br&gt;            &lt;br&gt;          &lt;/li&gt;&lt;li&gt;In order to create this file you must telnet              into your server.&lt;br&gt;            &lt;br&gt;          &lt;/li&gt;&lt;li&gt;Go to the directory, using the &lt;font face="Courier New,  Courier, mono" size="2"&gt;&lt;b&gt;cd&lt;/b&gt;&lt;/font&gt;              command, you specified your &lt;font face="Courier New, Courier,  mono" size="2"&gt;AuthUserFile&lt;/font&gt;             &lt;font size="2"&gt;(in this example, we specified &lt;b&gt;&lt;font face="Courier New, Courier, mono"&gt;/var/www/html/private/&lt;/font&gt;&lt;/b&gt;)&lt;/font&gt;.&lt;br&gt;            &lt;br&gt;          &lt;/li&gt;&lt;li&gt;Type &lt;font face="Courier New, Courier, mono" size="2"&gt;&lt;b&gt;htpasswd              -c .htpasswd &lt;i&gt;username&lt;/i&gt;&lt;/b&gt;&lt;/font&gt; to create the  .htpasswd file             and add &amp;quot;username&amp;quot; to list of authorized users. The program             will initially prompt you for a password and then ask you to  verify             it.&lt;/li&gt;&lt;/ul&gt;        &lt;p align="center"&gt;&lt;img src="http://www.sitedeveloper.ws/images/unix_shell.gif" height="86" width="361"&gt;&lt;/p&gt;        &lt;ul&gt;&lt;li&gt;To add new users, use the same command without the -c  switch. For             example, to add the user foo, type &lt;font size="2"&gt;&lt;b&gt;&lt;font face="Courier New, Courier, mono"&gt;htpasswd             .htpasswd foo&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;.&lt;br&gt;            &lt;br&gt;          &lt;/li&gt;&lt;li&gt;To delete users, open the .htpasswd file, using your  favorite unix             editor, like vi,              and delete the row(s) associated with the specific user(s)  that you             want to remove.&lt;/li&gt;&lt;/ul&gt;        &lt;p align="center"&gt;&lt;img src="http://www.sitedeveloper.ws/images/htpasswd.gif" height="46" width="167"&gt;&lt;/p&gt;        &lt;p align="left"&gt; &lt;/p&gt;      &lt;/td&gt;    &lt;/tr&gt;    &lt;tr&gt;       &lt;td valign="top" bgcolor="#336699"&gt;&lt;font color="#ffffff"&gt;&lt;b&gt;TEST&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;      &lt;td bgcolor="#dde9f4"&gt;&lt;b&gt;Test your  configuration&lt;/b&gt;&lt;/td&gt;    &lt;/tr&gt;    &lt;tr&gt;       &lt;td valign="top"&gt; &lt;/td&gt;      &lt;td&gt;         &lt;ul&gt;&lt;li&gt;Open your browser and type the URL and path to the directory  where             you placed the .htaccess file. For example, if you placed the  .htaccess             file in a subdirectory called private that is contained within  your             web directory, then you would type  &amp;lt;&lt;a href="http://www.mydomain.com/private/"&gt;http://www.mydomain.com/private/&lt;/a&gt;&amp;gt;.             If you were successful, you should get a dialog box prompting  you for             a username and password.&lt;/li&gt;&lt;/ul&gt;        &lt;p align="center"&gt;&lt;img src="http://www.sitedeveloper.ws/images/htaccess.gif" height="254" width="402"&gt;&lt;/p&gt;      &lt;/td&gt;    &lt;/tr&gt;    &lt;tr&gt;       &lt;td valign="top"&gt; &lt;/td&gt;      &lt;td&gt; &lt;/td&gt;    &lt;/tr&gt;    &lt;tr&gt;       &lt;td valign="top" bgcolor="#336699"&gt;&lt;b&gt;&lt;font color="#ffffff"&gt;MISC&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;      &lt;td bgcolor="#dde9f4"&gt;&lt;b&gt;Troubleshooting your configuration&lt;/b&gt;&lt;/td&gt;    &lt;/tr&gt;    &lt;tr&gt;       &lt;td valign="top"&gt;&lt;br&gt;&lt;/td&gt;      &lt;td&gt;         &lt;ul&gt;&lt;li&gt;The most common mistake is not using the correct path to the  .htpasswd             file in step one above. To be certain that you are using the  correct             absolute path, follow these steps:             &lt;ul&gt;&lt;li&gt;Telnet                  into your server.&lt;/li&gt;&lt;li&gt;Use the change directory command, &lt;b&gt;&lt;font face="Courier  New, Courier, mono" size="2"&gt;cd&lt;/font&gt;&lt;/b&gt;,                 to access the directory where your .htpasswd file is  located.&lt;/li&gt;&lt;li&gt;Use the list files command with the &amp;lt;all contents&amp;gt;  and &amp;lt;long                 format&amp;gt; options (&lt;b&gt;&lt;font face="Courier New, Courier,  mono" size="2"&gt;ls                 -la&lt;/font&gt;&lt;/b&gt;) to be sure your .htpasswd file is present.&lt;/li&gt;&lt;li&gt;Use the print working directory command (&lt;font face="Courier New, Courier, mono" size="2"&gt;&lt;b&gt;pwd&lt;/b&gt;&lt;/font&gt;)                 to display the absolute path to your .htpasswd file. This  path should                 be identical to the path listed in Step 1 (&lt;font face="Courier New, Courier, mono" size="2"&gt;&lt;b&gt;/var/www/html/private/&lt;/b&gt;&lt;/font&gt;                  in the example above).&lt;/li&gt;&lt;/ul&gt;            &lt;p&gt; &lt;/p&gt;          &lt;/li&gt;&lt;li&gt;Another common mistake is misconfiguration of the Apache  config file.             &lt;ul&gt;&lt;li&gt;If you have a hosting provider, contact technical  support to verify                 that they allow their users to use .htaccess  authentication.&lt;/li&gt;&lt;li&gt;If you host your own server, open your Apache config  file using                 your favorite editor (in RedHat® Linux 7.1, the file can  be found                 in &lt;b&gt;&lt;font face="Courier New, Courier, mono" size="2"&gt;/etc/httpd/conf/httpd.conf&lt;/font&gt;&lt;/b&gt;).                &lt;/li&gt;&lt;li&gt;Scroll down the file and make sure the &lt;font face="Courier New, Courier, mono" size="2"&gt;&lt;b&gt;AllowOverride&lt;/b&gt;&lt;/font&gt;                 option is set to &lt;font face="Courier New, Courier, mono" size="2"&gt;&lt;b&gt;All&lt;/b&gt;&lt;/font&gt;.&lt;/li&gt;&lt;/ul&gt;          &lt;/li&gt;&lt;/ul&gt;        &lt;p align="center"&gt;&lt;img src="http://www.sitedeveloper.ws/images/allowoverride.gif" height="81" width="532" align="middle"&gt;&lt;/p&gt;        &lt;ul&gt;&lt;li&gt; If you are still having problems, there are a &lt;a href="http://cgi.resourceindex.com/Programs_and_Scripts/Perl/Password_Protection/" target="_blank"&gt;variety&lt;/a&gt;             of free password protection scripts written in perl that may  be suitable             for your needs.&lt;/li&gt;&lt;/ul&gt;&lt;a href="http://www.sitedeveloper.ws/tutorials/htaccess.htm"&gt;Adapted from&lt;/a&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-445840305088020187?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/445840305088020187/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/06/protect-web-directories-using-htacess.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/445840305088020187'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/445840305088020187'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/06/protect-web-directories-using-htacess.html' title='Protect Web Directories using .htacess'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-1498215481856105139</id><published>2010-06-25T03:26:00.001-07:00</published><updated>2010-06-25T03:26:58.724-07:00</updated><title type='text'>eth0_rename in ethernet card</title><content type='html'>While Upgrading the Systrem with same hard disk but different system a problem eth0_rename in the name of Ethernet&amp;nbsp; card occurred. Solution : Remove the old records from&lt;BR&gt; &lt;TT&gt;/etc/udev/rules.d/70-persistent-net.rules&lt;/TT&gt; &lt;BR&gt; &lt;BR&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-1498215481856105139?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/1498215481856105139/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/06/eth0rename-in-ethernet-card.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/1498215481856105139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/1498215481856105139'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/06/eth0rename-in-ethernet-card.html' title='eth0_rename in ethernet card'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-2914954569597652253</id><published>2010-06-22T04:09:00.001-07:00</published><updated>2010-06-22T04:09:39.984-07:00</updated><title type='text'>Reset windows password using linux live CD</title><content type='html'>&lt;h1&gt;Reset Windows 7 passwords with Linux Ubuntu&lt;/h1&gt;&lt;p&gt;(Applicable to older windows ver. too )&lt;br&gt;&lt;/p&gt;&lt;p&gt;Have  you experienced the tragedy of forgotten passwords to log into your  windows 7? prior to re-install can be tried by using the tools on ubuntu  linux system whose name chntpw, the main  requirement is that you understand a little about Linux and the CLI have  a LiveCD Linux Ubuntu (any version).&lt;/p&gt;  &lt;p&gt;Steps you can do is:&lt;/p&gt;&lt;span id="more-2891"&gt;&lt;/span&gt;  &lt;ol&gt;&lt;li&gt;Booting the PC / laptop using the Ubuntu Linux LiveCD&lt;/li&gt;&lt;li&gt;Select   Menu Run &lt;strong class="scrolly"&gt;Ubuntu Linux&lt;/strong&gt;  without installation.&lt;/li&gt;&lt;li&gt;On the Desktop in the Places menu Select  Windows to the System Drive  can be mounted so.&lt;/li&gt;&lt;li&gt;Update the repository with: root@ubuntu:  apt-get update&lt;/li&gt;&lt;li&gt;Install the package chntpw way: root@ubuntu:  apt-get install chntpw  and let the installation process to complete.&lt;/li&gt;&lt;li&gt;Log into the CLI  in &lt;strong class="scrolly"&gt;Application&lt;/strong&gt; –  Accessories – Terminal and select: / Windows/System32/config following  manner:&lt;/li&gt;&lt;/ol&gt;  &lt;blockquote&gt;&lt;p&gt;root@ubuntu: cd/media/[name of the windows  partition/Drive C:]/Windows/System32/config&lt;/p&gt;&lt;/blockquote&gt;  &lt;p&gt;7. View user who is in her windows by running:&lt;/p&gt;  &lt;blockquote&gt;&lt;p&gt;root@ubuntu:/media/187823A87823839A/Windows/System32/config#    chntpw -l SAM&lt;/p&gt; &lt;div style="float: right;"&gt; &lt;p&gt;&lt;br&gt; &lt;/p&gt; &lt;/div&gt; &lt;p&gt;chntpw version 0.99.5 070923 (decade), (c) Petter N Hagen&lt;br&gt; Hive  name (from header): &amp;lt;SystemRootSystem32ConfigSAM&amp;gt;&lt;br&gt; ROOT KEY at offset: 0×001020 * Subkey indexing type is: 666c&lt;br&gt; Page at 0xf000 is not 'hbin', assuming file contains garbage at end&lt;br&gt; File size 262144 [40000] bytes, containing 6 pages (+ 1 headerpage)&lt;br&gt; Used for data: 247/52256 blocks/bytes, unused: 9/4896 blocks/bytes.&lt;/p&gt; &lt;p&gt;* SAM policy limits:&lt;br&gt; Failed logins before lockout is: 0&lt;br&gt; Minimum password length        : 0&lt;br&gt; Password history count         : 0&lt;br&gt; | RID -|———- Username ————| Admin? |- Lock? –|&lt;br&gt; | 01f4 | Administrator                  | ADMIN  | *dis/lock*  |&lt;br&gt; | 01f5 | Guest                          |        | dis/lock |&lt;br&gt; | 03e8 | totti                          | ADMIN  |  *dis/lock*        |&lt;/p&gt;&lt;/blockquote&gt;  &lt;p&gt;In the top menu for the user Administrator and Totti in the status  dis / lock -disable/lock, never to be edited please is enabled by  selecting the first number four on the menu:&lt;/p&gt;  &lt;blockquote&gt;&lt;p&gt;- – – – User Edit Menu:&lt;br&gt; 1 – Clear (blank) user password&lt;br&gt; 2 – Edit (set new) user password (careful with this on XP or Vista)&lt;br&gt; 3 – Promote user (make user an administrator)&lt;br&gt; 4 – Unlock and enable user account [seems locked ]&lt;br&gt; q – Quit editing user, back to user select&lt;/p&gt;&lt;/blockquote&gt;  &lt;p&gt;after that it commands the road: chntpw SAM-u Administrator to change  the administrator password.&lt;/p&gt;  &lt;blockquote&gt;&lt;p&gt;root@ubuntu:/media/187823A87823839A/Windows/System32/config#    chntpw -u Administrator SAM&lt;br&gt; chntpw version 0.99.5 070923 (decade), (c) Petter N Hagen&lt;br&gt; Hive  name (from header): &amp;lt;SystemRootSystem32ConfigSAM&amp;gt;&lt;br&gt; ROOT KEY at offset: 0×001020 * Subkey indexing type is: 666c&lt;br&gt; Page at 0xf000 is not 'hbin', assuming file contains garbage at end&lt;br&gt; File size 262144 [40000] bytes, containing 6 pages (+ 1 headerpage)&lt;br&gt; Used for data: 247/52256 blocks/bytes, unused: 9/4896 blocks/bytes.&lt;/p&gt; &lt;p&gt;* SAM policy limits:&lt;br&gt; Failed logins before lockout is: 0&lt;br&gt; Minimum password length        : 0&lt;br&gt; Password history count         : 0&lt;br&gt; | RID -|———- Username ————| Admin? |- Lock? –|&lt;br&gt; | 01f4 | Administrator                  | ADMIN  | *BLANK*  |&lt;br&gt; | 01f5 | Guest                          |        | dis/lock |&lt;br&gt; | 03e8 | totti                          | ADMIN  |          |&lt;/p&gt; &lt;p&gt;———————&amp;gt; SYSKEY CHECK &amp;lt;———————–     SYSTEM   SecureBoot             : -1 -&amp;gt; Not Set (not installed, good!)&lt;br&gt; SAM      AccountF             : 0 -&amp;gt; off&lt;br&gt; SECURITY PolSecretEncryptionKey: -1 -&amp;gt; Not Set (OK if this is NT4)&lt;br&gt; Syskey not installed!&lt;/p&gt; &lt;p&gt;RID     : 0500 [01f4]&lt;br&gt; Username: Administrator&lt;br&gt; fullname:&lt;br&gt; comment : Built-in account for administering the computer/domain&lt;br&gt; homedir :&lt;/p&gt; &lt;p&gt;User is member of 1 groups:&lt;br&gt; 00000220 = Administrators (which has 2 members)&lt;/p&gt; &lt;p&gt;Account bits: 0×0210 =&lt;br&gt; [ ] Disabled        | [ ] Homedir req.    | [ ] Passwd not req. |&lt;br&gt; [ ] Temp. duplicate | [X] Normal account  | [ ] NMS account     |&lt;br&gt; [ ] Domain trust ac | [ ] Wks trust act.  | [ ] Srv trust act   |&lt;br&gt; [X] Pwd don't expir | [ ] Auto lockout    | [ ] (unknown 0×08)  |&lt;br&gt; [ ] (unknown 0×10)  | [ ] (unknown 0×20)  | [ ] (unknown 0×40)  |&lt;/p&gt; &lt;p&gt;Failed login count: 0, while max tries is: 0&lt;br&gt; Total  login count: 4&lt;br&gt; ** No NT MD4 hash found. This user probably has a BLANK password!&lt;br&gt; ** No LANMAN hash found either. Sorry, cannot change. Try login with no  password!&lt;/p&gt; &lt;p&gt;- – – – User Edit Menu:&lt;br&gt; 1 – Clear (blank) user password&lt;br&gt; 2 – Edit (set new) user password (careful with this on XP or Vista)&lt;br&gt; 3 – Promote user (make user an administrator)&lt;br&gt; (4 – Unlock and enable user account) [seems unlocked already]&lt;br&gt; q – Quit editing user, back to user select&lt;/p&gt;&lt;/blockquote&gt;  &lt;p&gt;Please select whether to clear the password or create a new passwd.&lt;/p&gt;  &lt;p&gt;Please select whether to clear the password or create a new passwd.&lt;/p&gt;  Once completed please exit and unmount the windows partition had been  hand-picked by Places and restart the PC and go into Windows it, please  go to the windows with a new password or no password, here I select  blankpassword.  			&lt;small class="meta"&gt;   			&lt;span class="alignleft"&gt;           &lt;/span&gt;&lt;/small&gt;   				 &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-2914954569597652253?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/2914954569597652253/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/06/reset-windows-password-using-linux-live.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/2914954569597652253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/2914954569597652253'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/06/reset-windows-password-using-linux-live.html' title='Reset windows password using linux live CD'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-8839459176255047543</id><published>2010-06-21T00:26:00.001-07:00</published><updated>2010-06-21T00:26:17.322-07:00</updated><title type='text'>IPP printer configuration in windows</title><content type='html'>&lt;BR&gt; The steps outlined here should allow you to connect Windows 2000 or XP to a printer hosted by CUPS running on any Linux distribution.&amp;nbsp; My original instructions for connecting Windows 2000/Debain are included at the bottom of this page and may still apply to old versions of CUPS.&lt;BR&gt; &lt;BR&gt; &lt;H2&gt; &lt;B&gt;&lt;FONT SIZE="5"&gt;Windows XP / Fedora CUPS&lt;/FONT&gt;&lt;/B&gt; &lt;/H2&gt; There are two ways to configure a printer under Windows XP so that it works with CUPS:&lt;BR&gt; &lt;BR&gt; &lt;UL&gt;     &lt;LI&gt;As a Postscript capable printer.&amp;nbsp; This allows your Windows XP machine to print to your normal printer queue with no printer-specific configuration.     &lt;LI&gt;As a printer with a particular Windows XP driver.&amp;nbsp; On Fedora some additional configuration of CUPS is required, on other Linux/Unix systems it may work out of the box. &lt;/UL&gt; &lt;H3&gt; &lt;B&gt;&lt;FONT SIZE="4"&gt;Common Steps&lt;/FONT&gt;&lt;/B&gt; &lt;/H3&gt; &lt;H4&gt; &lt;B&gt;Share the CUPS Printer&lt;/B&gt; &lt;/H4&gt; One thing both of these options have in common is the requirement that the printer queues you create are shared.&amp;nbsp; In Fedora do this in the &amp;quot;Printer configuration&amp;quot; tool (from System Settings -&amp;gt; Printing) by selecting the printer queue, followed by &amp;quot;Action -&amp;gt; Sharing...&amp;quot;.&lt;BR&gt; &lt;BR&gt; Under other versions of Linux/Unix you may have to edit the CUPS configuration files directly, see Granting permission later in this document.&lt;BR&gt; &lt;BR&gt; &lt;BR&gt; &lt;H4&gt; &lt;B&gt;Hostname lookup&lt;/B&gt; &lt;/H4&gt; Another common step is to ensure that hostname broadcast by CUPS is accessible from the Windows XP machine.&amp;nbsp; If your CUPS machine is accessible using a name rather than just an IP address then you don't need to do anything for this step.&amp;nbsp; If the CUPS machine is not accessible via it's hostname then you need to set a mapping between the CUPS hostname and its IP address in the Windows hosts file.&amp;nbsp; Under WindowsXP the host file is in C:\WINDOWS\SYSTEM32\DRIVERS\ETC\HOSTS, in Win2k replace WINDOWS with WINNT.&amp;nbsp; The format is simple:&lt;BR&gt; &lt;BR&gt; &lt;PRE&gt; &lt;TT&gt;# Example hosts entry&lt;/TT&gt; &lt;TT&gt;192.168.0.3 rock&lt;/TT&gt; &lt;/PRE&gt; &lt;BR&gt; Under some CUPS server configurations you will be able to use the IP address instead of the hostname, but often only a hostname will work.&lt;BR&gt; &lt;BR&gt; &lt;BR&gt; &lt;H3&gt; &lt;B&gt;&lt;FONT SIZE="4"&gt;Postscript Printing&lt;/FONT&gt;&lt;/B&gt; &lt;/H3&gt; To use a printer queue as a Postscript printer requires a Windows XP Postscript printer driver, such as the built-in MS Publisher Imagesetter or this &lt;A HREF="http://www.adobe.com/support/downloads/product.jsp?product=44&amp;amp;platform=Windows"&gt;freely available one&lt;/A&gt; from Adobe.&lt;BR&gt; &lt;BR&gt; &lt;BR&gt; &lt;H4&gt; &lt;B&gt;Built-in MS Publisher Imagesetter&lt;/B&gt; &lt;/H4&gt; To use the MS Publisher Imagesetter driver, use &amp;quot;Add Printer&amp;quot; to add a new network printer, select &amp;quot;Connect to a printer on the Internet...&amp;quot; and enter the URL for your printer queue (e.g. http://rock:631/printers/Epson).&amp;nbsp; When prompted for a driver select a Manufacturer of &amp;quot;Generic&amp;quot; and the Printer &amp;quot;MS Publisher Imagesetter&amp;quot;.&lt;BR&gt; &lt;BR&gt; &lt;BR&gt; &lt;H4&gt; &lt;B&gt;Adobe Driver&lt;/B&gt; &lt;/H4&gt; To use the Adobe driver simply run the installer, select &amp;quot;Network Printer&amp;quot;, enter the URL of your printer queue (should be of the form http://hostname:631/printers/PrinterName), and then select &amp;quot;yes&amp;quot; when prompted.&amp;nbsp; You can either use the &amp;quot;Generic PostScript Printer&amp;quot; option, or &amp;quot;Browse&amp;quot; for the printer specific PPD file created by CUPS (located in /etc/cups/ppd/PrinterQueueName.ppd on the Linux machine).&lt;BR&gt; &lt;BR&gt; &lt;BR&gt; &lt;H3&gt; &lt;B&gt;&lt;FONT SIZE="4"&gt;Using a Printer Driver&lt;/FONT&gt;&lt;/B&gt; &lt;/H3&gt; If you have a Windows XP printer driver available for your printer you can use this instead of the Postscript driver.&amp;nbsp; In some configurations you can use the existing printer queue, and just select the correct printer driver in Windows.&amp;nbsp; &lt;BR&gt; &lt;BR&gt; Under Fedora, and possibly other systems, CUPS needs to be configured to accept printer data that is already in its native form.&amp;nbsp; There are two different approaches that can be used: either add a raw printer queue, or alter the CUPS configuration files with a text editor.&lt;BR&gt; &lt;BR&gt; &lt;BR&gt; &lt;H4&gt; &lt;B&gt;Add a raw queue&lt;/B&gt; &lt;/H4&gt; Adding a raw printer queue can be easily done through Fedora's &amp;quot;Printer configuration&amp;quot; tool (from System Settings -&amp;gt; Printing).&amp;nbsp; To do this select the &amp;quot;Generic&amp;quot; drop down when you reach the &amp;quot;Printer model&amp;quot; step of the wizard, then select &amp;quot;Raw Print Queue&amp;quot;.&amp;nbsp; When Fedora prompts you to print a test page, say &amp;quot;No&amp;quot;.&amp;nbsp; This printer queue will only be useful to those machines configured with a printer driver, and can not be used by applications running on Fedora.&amp;nbsp; (Also remember to share the queue!)&lt;BR&gt; &lt;BR&gt; In Windows XP use &amp;quot;Add Printer&amp;quot; to add a new network printer, selecting &amp;quot;Connect to a printer on the Internet&amp;quot;, and using a URL of http://hostname:631/printers/RawPrinterQueueName.&amp;nbsp; Select the printer driver for this printer as you would for a locally connected printer.&lt;BR&gt; &lt;BR&gt; &lt;BR&gt; &lt;H4&gt; &lt;B&gt;Modify CUPS Configuration&lt;/B&gt; &lt;/H4&gt; If you don't wish to create a raw printer queue then you can instead make the following changes to your CUPS mime.types and mime.convs configuration files.&amp;nbsp; Both of these files contain a commented out option starting with &amp;quot;#application/octet-stream&amp;quot;.&amp;nbsp; Enable these options by removing the &amp;quot;#&amp;quot;, and then restart CUPS.&lt;BR&gt; &lt;BR&gt; &lt;BR&gt; &lt;H2&gt; &lt;B&gt;&lt;FONT SIZE="5"&gt;Windows 2000 / Debian&lt;/FONT&gt;&lt;/B&gt; &lt;/H2&gt; These were the steps that I took to connect my printer, hosted under Debian, to my Windows 2000 machine.&amp;nbsp; This environment is no longer available to me for testing, so I'm not able to vouch that each of these steps is absolutely required.&lt;BR&gt; &lt;BR&gt; &lt;BR&gt; &lt;H3&gt; &lt;B&gt;&lt;FONT SIZE="4"&gt;Create a class&lt;/FONT&gt;&lt;/B&gt; &lt;/H3&gt; The major configuration change I had to make under CUPS was adding a class.&amp;nbsp; Based on feedback I've received it seems that only older combinations of CUPS and Windows require this (e.g. Debian Woody and Windows 2000), and newer versions do not.&lt;BR&gt; &lt;BR&gt; I could not make Win2K talk to my printer directly, but it was able to work with a class that held that printer.&amp;nbsp; To do this go to the CUPS admin screen on the Unix machine(e.g. &lt;A HREF="http://localhost:631/admin"&gt;http://localhost:631/admin&lt;/A&gt;) and select &amp;quot;Add Class&amp;quot;.&amp;nbsp; Enter a name, location and description as prompted and select continue.&amp;nbsp; Next select the printer you wish to share as a member of this group.&amp;nbsp; Select continue to save the class.&lt;BR&gt; &lt;BR&gt; &lt;BR&gt; &lt;H3&gt; &lt;B&gt;&lt;FONT SIZE="4"&gt;Granting permission&lt;/FONT&gt;&lt;/B&gt; &lt;/H3&gt; For an IPP client to be able to connect to CUPS it must have permission.&amp;nbsp; On Debian systems, and probably others, the default is for only local connections (i.e. those from 127.0.0.1) to be allowed.&amp;nbsp; To allow connections from across the network alter the &amp;lt;Location&amp;gt; directive in the cupsd.conf file (found in /etc/cups/).&amp;nbsp; For example to enable both local connections, and those from clients in the 192.168.0.* range use:&lt;BR&gt; &lt;BR&gt; &lt;PRE&gt; &lt;TT&gt;&amp;lt;Location /&amp;gt;&lt;/TT&gt; &lt;TT&gt;Order Deny,Allow&lt;/TT&gt; &lt;TT&gt;Deny From All&lt;/TT&gt; &lt;TT&gt;Allow From 127.0.0.1&lt;/TT&gt; &lt;TT&gt;Allow From 192.168.0.*&lt;/TT&gt; &lt;TT&gt;&amp;lt;/Location&amp;gt;&lt;/TT&gt; &lt;/PRE&gt; &lt;BR&gt; To give permission for all clients from all network connections replace &lt;I&gt;192.168.0.*&lt;/I&gt; with &lt;I&gt;All&lt;/I&gt;.&lt;BR&gt; &lt;BR&gt; &lt;BR&gt; &lt;H2&gt; &lt;B&gt;&lt;FONT SIZE="5"&gt;Win2k Configuration&lt;/FONT&gt;&lt;/B&gt; &lt;/H2&gt; I had two major problems setting up things on the Windows 2000 machine: getting Windows to see the Linux host and using the correct URL.&amp;nbsp; &lt;BR&gt; &lt;BR&gt; In theory Windows should be able to connect to an IP address, however I never managed to get this to work, but it could successfully use a hostname.&amp;nbsp; To set a mapping between your CUPS hostname and its IP address you need to put an entry in the Windows hosts file.&amp;nbsp; Under Win2k the host file is: C:\WINNT\SYSTEM32\DRIVERS\ETC\HOSTS.&amp;nbsp; The format is simple:&lt;BR&gt; &lt;BR&gt; &lt;PRE&gt; &lt;TT&gt;# Example hosts entry&lt;/TT&gt; &lt;TT&gt;192.168.0.3 rock&lt;/TT&gt; &lt;/PRE&gt; &lt;BR&gt; Now you can set up the new network printer.&amp;nbsp; In the Control Panel select &amp;quot;Add Printer&amp;quot;, &amp;quot;Network Printer&amp;quot;, and then &amp;quot;Connect to printer on the Internet or your intranet&amp;quot;.&amp;nbsp; The URL I use is:&lt;BR&gt; &lt;BR&gt; &lt;PRE&gt; &lt;TT&gt;http://rock:631/classes/Home&lt;/TT&gt; &lt;/PRE&gt; &lt;BR&gt; Replace 'rock' with the hostname of your Linux server, and replace 'Home' with the name of the class that you defined earlier.&lt;BR&gt; &lt;BR&gt; Depending on your configuration of CUPS you will probably be prompted to install a printer driver for the network printer.&amp;nbsp; Doing this is the final step, after that you should be able to print from Windows directly to a CUPS printer using IPP!&lt;BR&gt; &lt;BR&gt; &lt;BR&gt; &lt;BR&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-8839459176255047543?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/8839459176255047543/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/06/ipp-printer-configuration-in-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8839459176255047543'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8839459176255047543'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/06/ipp-printer-configuration-in-windows.html' title='IPP printer configuration in windows'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-9029221753502974609</id><published>2010-06-14T02:27:00.001-07:00</published><updated>2010-06-14T02:27:34.892-07:00</updated><title type='text'>Reinstall WIndows Fax and Picture viewer</title><content type='html'>In any case you lost&amp;nbsp; windows fax and picture viewer&amp;nbsp; in windows you can use following steps &lt;BR&gt; &lt;BR&gt; Click on &amp;quot;Run&amp;quot; on start menu.&lt;BR&gt; &lt;BR&gt; &lt;BR&gt; &lt;B&gt;STEP 1:&lt;/B&gt;&lt;BR&gt; When the little box pops up, type this in the white part of the box:&lt;BR&gt; &lt;BR&gt; regsvr32 /u %windir%\system32\shimgvw.dll&lt;BR&gt; &lt;BR&gt; A menu shows it was completed&lt;BR&gt; &lt;BR&gt; If you get error message like &amp;quot;LoadLibrary(&amp;quot;C:\WINDOWS\system32\shimgvw.dll&amp;quot;) failed - The specified module could not be found.&amp;quot;&lt;BR&gt; It means that the dll file &amp;quot;shimgvw.dll&amp;quot; is either corrupted or not available.You should find it from another computer inside &amp;quot;c:\windows\system32&amp;quot; and paste to your system 32&amp;nbsp; OR&amp;nbsp; download it from here&amp;nbsp; &lt;A HREF="http://www.dlldump.com/download-dll-files.php/dllfiles/S/shimgvw.dll/download.html"&gt;http://www.dlldump.com/download-dll-files.php/dllfiles/S/shimgvw.dll/download.html&lt;/A&gt; and paste to your system32 folder.&lt;BR&gt; &lt;BR&gt; &lt;BR&gt; &lt;B&gt;STEP 2:&lt;/B&gt;&lt;BR&gt; Click on Start, then Run... and type in:&lt;BR&gt; &lt;BR&gt; regsvr32 /i %windir%\system32\shimgvw.dll&lt;BR&gt; &lt;BR&gt; A menu shows it was completed&lt;BR&gt; &lt;BR&gt; This should reinstall the Windows Fax and Picture Viewer on your computer.&lt;BR&gt; (You may have to reboot after this for it to work.)&lt;BR&gt; &lt;BR&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-9029221753502974609?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/9029221753502974609/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/06/reinstall-windows-fax-and-picture.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/9029221753502974609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/9029221753502974609'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/06/reinstall-windows-fax-and-picture.html' title='Reinstall WIndows Fax and Picture viewer'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-3104759053925238165</id><published>2010-06-12T00:05:00.000-07:00</published><updated>2010-06-12T00:06:10.807-07:00</updated><title type='text'>Stream audio in Bluetooth Headset using Dongle</title><content type='html'>&lt;B&gt;Purpose:&lt;/B&gt; To play your audio such as MP3's and movie output through a Bluetooth-connected audio headset.&lt;BR&gt; &lt;BR&gt; &lt;B&gt;Scenario:&lt;/B&gt; You are too lazy to plug in a cable to your PC. You want to walk around your house without a long cable after you. You want to look cool to your mates. You want to psyche out your non-tech parents by listening to music without any audio device or cables attached to you. Problem is, very few Linux apps have direct support for directing sound to any other device.&lt;BR&gt; &lt;BR&gt; &lt;B&gt;Solution:&lt;/B&gt; Redirect all audio using the PulseAudio Server on Ubuntu &lt;BR&gt; &lt;BR&gt; &lt;B&gt;Pros:&lt;/B&gt; &lt;UL&gt;     &lt;LI&gt;You are cable free! You can walk around the house (as far as the range of your Bluetooth adapter goes) and listen to music/movies.     &lt;LI&gt;If your headset also has a mic, you can use that too for VOIP apps and the like. &lt;/UL&gt; &lt;BR&gt; &lt;B&gt;Cons:&lt;/B&gt; &lt;UL&gt;     &lt;LI&gt;A Bluetooth headset is generally more expensive than a cabled one.     &lt;LI&gt;Most headset batteries only last four hours in continuous use before needing a recharge (though the TDK unit I have plugs into mini-USB to recharge and can still be used whilst recharging, which is convenient).     &lt;LI&gt;Audio quality is generally not as good as a dedicated cabled headset.     &lt;LI&gt;For those headsets that have battery-saving functions when idle, some are known to clip the start of the audio playback when turning back on (my set causes Ubuntu to wait until it's up and running before streaming the audio, thus no clipping).     &lt;LI&gt;There are some known issues with using this method with 32-bit Skype under 64-bit Ubuntu, which I won't go into detail here (since I don't use Skype). Refer to the Ubuntu Forums for more details about it.     &lt;LI&gt;At least on my headset, there is an ever-so-slight delay in audio sync when watching video. &lt;/UL&gt; &lt;BR&gt; These instructions should be adaptable to other distributions. &lt;OL TYPE=1&gt;     &lt;LI TYPE=1 VALUE=1&gt;Fire up/install Ubuntu as normal.     &lt;LI TYPE=1 VALUE=2&gt;Plug in or enable your Bluetooth adapter. Your Bluetooth adapter will be automatically detected and drivers loaded - there is nothing for you to do manually here.     &lt;LI TYPE=1 VALUE=3&gt;If you have NEVER used Bluetooth on your Ubuntu setup before, then go to the next step, otherwise skip to Step 11 because you're probably already setup properly.     &lt;LI TYPE=1 VALUE=4&gt;Get into a terminal.     &lt;LI TYPE=1 VALUE=5&gt;Verify that your Bluetooth adapter is running with: &lt;/OL&gt; &lt;OL TYPE=1&gt;     Code: &lt;/OL&gt; &lt;OL TYPE=1&gt; &lt;PRE&gt; $ hciconfig -a &lt;/PRE&gt; &lt;/OL&gt; &lt;OL TYPE=1&gt;     If you get details about hci0 listed including manufacturer's name, then your adapter is working.&lt;BR&gt;     .     &lt;LI TYPE=1 VALUE=6&gt;Type in the following to edit your Bluetooth configuration file: &lt;/OL&gt; &lt;OL TYPE=1&gt;     Code: &lt;/OL&gt; &lt;OL TYPE=1&gt; &lt;PRE&gt; $ sudo gedit /etc/bluetooth/hcid.conf &lt;/PRE&gt; &lt;/OL&gt; &lt;OL TYPE=1&gt;     This will bring up the Bluetooth configuration into the GEdit text editor.&lt;BR&gt;     .     &lt;LI TYPE=1 VALUE=7&gt;Near the top of the file you will see the following: &lt;/OL&gt; &lt;OL TYPE=1&gt;     Code: &lt;/OL&gt; &lt;OL TYPE=1&gt; &lt;PRE&gt; # HCId options options { 	# Automatically initialize new devices 	autoinit yes;  	# Security Manager mode 	#   none - Security manager disabled 	#   auto - Use local PIN for incoming connections 	#   user - Always ask user for a PIN 	# 	security user; &lt;/PRE&gt; &lt;/OL&gt; &lt;OL TYPE=1&gt;     Change the &lt;B&gt;security user&lt;/B&gt; line to &lt;B&gt;security auto&lt;/B&gt;&lt;BR&gt;     .     &lt;LI TYPE=1 VALUE=8&gt;A few lines beneath this is a section that reads as follows: &lt;/OL&gt; &lt;OL TYPE=1&gt;     Code: &lt;/OL&gt; &lt;OL TYPE=1&gt; &lt;PRE&gt; 	# Default PIN code for incoming connections 	passkey &amp;quot;1234&amp;quot;; &lt;/PRE&gt; &lt;/OL&gt; &lt;OL TYPE=1&gt;     Change the &lt;B&gt;1234&lt;/B&gt; to something else, eg: &lt;B&gt;4493&lt;/B&gt;. This is the pin number required for other Bluetooth devices to connect to you and it would be insecure to leave it at the default.&lt;BR&gt;     .     &lt;LI TYPE=1 VALUE=9&gt;Save and exit.     &lt;LI TYPE=1 VALUE=10&gt;Now restart Bluetooth by typing in: &lt;/OL&gt; &lt;OL TYPE=1&gt;     Code: &lt;/OL&gt; &lt;OL TYPE=1&gt; &lt;PRE&gt; $ sudo /etc/init.d/bluetooth restart &lt;/PRE&gt; &lt;/OL&gt; &lt;OL TYPE=1&gt;     When you do this, an informational bubble will appear in your task bar saying &lt;B&gt;&amp;lt;hostname&amp;gt;-0 Device has been made connectable&lt;/B&gt;, eg: if your PC's name is &amp;quot;gordon&amp;quot;, the message would say &amp;quot;gordon-0 Device has been made connectable&amp;quot;.&lt;BR&gt;     .     &lt;LI TYPE=1 VALUE=11&gt;Turn on your Bluetooth headset, but don't go into pairing mode just yet.     &lt;LI TYPE=1 VALUE=12&gt;In your terminal, type in the following: &lt;/OL&gt; &lt;OL TYPE=1&gt;     Code: &lt;/OL&gt; &lt;OL TYPE=1&gt; &lt;PRE&gt; $ hcitool scan &lt;/PRE&gt; &lt;/OL&gt; &lt;OL TYPE=1&gt;     Your PC will now scan for local Bluetooth devices and your headset should appear in the resulting list after a few seconds (along with anyone's Bluetooth-enabled mobile phones that are in range). The output will look something like: &lt;/OL&gt; &lt;OL TYPE=1&gt;     Code: &lt;/OL&gt; &lt;OL TYPE=1&gt; &lt;PRE&gt; $ hcitool scan Scanning ... 	00:11:22:AA:BB:CC	Nokia N95 	00:33:44:DD:EE:FF	BT81 $ &lt;/PRE&gt; &lt;/OL&gt; &lt;OL TYPE=1&gt;     In this example, my PC has found my Nokia mobile phone and my Bluetooth headset and shown me the MAC addresses for both of them.&lt;BR&gt;     &lt;BR&gt;     NOTE: If your headset does NOT appear, you probably already have it paired with something else, like your mobile phone. In this case, switch the headset to pairing mode and then run the scan again.&lt;BR&gt;     .     &lt;LI TYPE=1 VALUE=13&gt;Highlight and copy the MAC address of the headset to the clipboard using your mouse and CTRL + SHIFT + C.     &lt;LI TYPE=1 VALUE=14&gt;Now type in: &lt;/OL&gt; &lt;OL TYPE=1&gt;     Code: &lt;/OL&gt; &lt;OL TYPE=1&gt; &lt;PRE&gt; sudo gedit ~/.asoundrc &lt;/PRE&gt; &lt;/OL&gt; &lt;OL TYPE=1&gt;     &lt;B&gt;Note the period before &amp;quot;asoundrc&amp;quot;.&lt;/B&gt; This will create a new hidden text file called .asoundrc in the root of your Home directory and open GEdit so you can add to it. The file is hidden because of the leading period.&lt;BR&gt;     .     &lt;LI TYPE=1 VALUE=15&gt;In the text editor, type in the following, replacing the MAC address with the one you copied earlier (paste with CTRL + V): &lt;/OL&gt; &lt;OL TYPE=1&gt;     Code: &lt;/OL&gt; &lt;OL TYPE=1&gt; &lt;PRE&gt; pcm.bluetooth {   type bluetooth   device 00:33:44:DD:EE:FF   profile &amp;quot;auto&amp;quot; } &lt;/PRE&gt; &lt;/OL&gt; &lt;OL TYPE=1&gt;     &lt;I&gt;NOTE: Depending on your distro, you may find that the word &amp;quot;Bluetooth&amp;quot; is reserved. If, when you get to Step 23, you hear anything BUT the audio you are playing, change the &amp;quot;pcm.bluetooth&amp;quot; bit above into something else, eg: &amp;quot;pcm.btheadset&amp;quot; and try your audio again. Remember then to change every typed reference in this guide from &amp;quot;bluetooth&amp;quot; to &amp;quot;btheadset&amp;quot;.&lt;/I&gt;&lt;BR&gt;     .     &lt;LI TYPE=1 VALUE=16&gt;Save and exit.     &lt;LI TYPE=1 VALUE=17&gt;Now type in: &lt;/OL&gt; &lt;OL TYPE=1&gt;     Code: &lt;/OL&gt; &lt;OL TYPE=1&gt; &lt;PRE&gt; $ sudo hciconfig hci0 voice 0x0060 $ sudo modprobe snd_bt_sco $ sudo modprobe sco &lt;/PRE&gt; &lt;/OL&gt; &lt;OL TYPE=1&gt;     This will enable sound on your adapter and load the modules necessary to carry bluetooth audio. Note that the two modprobe lines will only enable Bluetooth audio temporarily until you reboot. If you would like to load the drivers automatically on each boot, only add the two modprobe lines above to the end of the /etc/modules file (sudo gedit /etc/modules).&lt;BR&gt;     .     &lt;LI TYPE=1 VALUE=18&gt;Now we need to tell PulseAudio that your Bluetooth headset exists: &lt;/OL&gt; &lt;OL TYPE=1&gt;     Code: &lt;/OL&gt; &lt;OL TYPE=1&gt; &lt;PRE&gt; $ pactl load-module module-alsa-sink device=bluetooth $ pactl load-module module-alsa-source device=bluetooth &lt;/PRE&gt; &lt;/OL&gt; &lt;OL TYPE=1&gt;     Note that this enables your Bluetooth headset for PulseAudio only temporarily. To enable it permanently, create a new file using &lt;B&gt;gedit ~/.pulse/default.pa&lt;/B&gt; and paste the two lines above into it and then save. &lt;FONT COLOR="#ff0000"&gt;NOTE: I've just noticed this tends to break PulseAudio because the bonding of your headset needs to have occured &lt;/FONT&gt;&lt;FONT COLOR="#ff0000"&gt;&lt;B&gt;before&lt;/B&gt;&lt;/FONT&gt;&lt;FONT COLOR="#ff0000"&gt; issuing the above commands, or PulseAudio refuses to start upon reboot. Don't create this file (or delete/rename if you've already created it) and PulseAudio works fine again. To keep using your Bluetooth headset, move the file you created to your Desktop and make it executable. Once your Desktop has loaded and you've paired your headset, then execute the file by double-clicking on it to notify PulseAudio about the headset. &lt;/FONT&gt;     &lt;LI TYPE=1 VALUE=19&gt;We're almost ready to pair with the headset and hear some basic audio, but before we do that, do a right-mouse click on the Bluetooth icon in your system tray and choose &amp;quot;Preferences&amp;quot;.     &lt;LI TYPE=1 VALUE=20&gt;Now click on the Services tab and ensure Audio Service is enabled. If not, check the box and then close the window.     &lt;LI TYPE=1 VALUE=21&gt;Now type in: &lt;/OL&gt; &lt;OL TYPE=1&gt;     Code: &lt;/OL&gt; &lt;OL TYPE=1&gt; &lt;PRE&gt; $ sudo cat /proc/asound/cards &lt;/PRE&gt; &lt;/OL&gt; &lt;OL TYPE=1&gt;     ...and you should see output similar to the following: &lt;/OL&gt; &lt;OL TYPE=1&gt;     Code: &lt;/OL&gt; &lt;OL TYPE=1&gt; &lt;PRE&gt; 0 [Intel          ]: HDA-Intel - HDA Intel                       HDA Intel at 0xea400000 irq 22  1 [Headset        ]: Bluetooth SCO - BT Headset                       BT Headset 1 &lt;/PRE&gt; &lt;/OL&gt; &lt;OL TYPE=1&gt;     This shows us that the system is ready to use the Bluetooth headset as device 1 (but we haven't paired it yet, so technically it won't be able to use it just yet).&lt;BR&gt;     .     &lt;LI TYPE=1 VALUE=22&gt;The best way to trigger a pairing is to provoke the unit into a response as the normal methods don't always work. Switch your headset into pairing mode (refer to your headset's manual).     &lt;LI TYPE=1 VALUE=23&gt;While the headset it in pairing mode, type in the following: &lt;/OL&gt; &lt;OL TYPE=1&gt;     Code: &lt;/OL&gt; &lt;OL TYPE=1&gt; &lt;PRE&gt; $ aplay -D bluetooth -f s16_le /usr/share/sounds/login.wav &lt;/PRE&gt; &lt;/OL&gt; &lt;OL TYPE=1&gt;     This will attempt direct communication with your headset, and within a second or so, an information bubble will appear under the Bluetooth icon in the system tray asking you for the PIN number to access the headset. Click on the button to enter the PIN and then type it in. For most headsets, the PIN is &lt;B&gt;0000&lt;/B&gt;, but refer to your headset's manual.&lt;BR&gt;     &lt;BR&gt;     Ubuntu should soon after confirm that it has &amp;quot;bonded&amp;quot; with the headset and you should suddenly hear the familiar Ubuntu login sound play through your headset! Hooray! We have sound!&lt;BR&gt;     &lt;BR&gt;     Unfortunately only aplay will play anything through your headset. All other sounds are still coming through your speakers. Unless the application in question can redirect audio to another detected device, it will always play through the standard-out, so applications such as Totem and Rhythmbox will still output via your speakers and not give a hoot about your Bluetooth headset. To fix this, we need to make use of the PulseAudio Server which can redirect output to another device.&lt;BR&gt;     .     &lt;LI TYPE=1 VALUE=24&gt;The PulseAudio Server is already installed by default in Ubuntu Hardy, so we just need to install some tools to manipulate it. Go back to your terminal and type in the following: &lt;/OL&gt; &lt;OL TYPE=1&gt;     Code: &lt;/OL&gt; &lt;OL TYPE=1&gt; &lt;PRE&gt; $ sudo apt-get install paprefs paman padevchooser &lt;/PRE&gt; &lt;/OL&gt; &lt;OL TYPE=1&gt;     This will install the PulseAudio Preferences app, the PulseAudio Manager app and the PulseAudio Device Chooser app.&lt;BR&gt;     &lt;BR&gt;     &lt;LI TYPE=1 VALUE=25&gt;Once installed, go to the System-&amp;gt;Preferences-&amp;gt;Sound. The Sound prefs window will appear.     &lt;LI TYPE=1 VALUE=26&gt;Under the Devices tab, change the &amp;quot;Sound playback&amp;quot; option for Sound Events, Music and Movies, and Audio Conferencing from &amp;quot;Autodetect&amp;quot; to &amp;quot;PulseAudio Sound Server&amp;quot;.     &lt;LI TYPE=1 VALUE=27&gt;Click Close.     &lt;LI TYPE=1 VALUE=28&gt;Play something, be it an MP3 or video to ensure that your audio still works in general through your speakers. This confirms PulseAudio is working in general.     &lt;LI TYPE=1 VALUE=29&gt;Now go to Applications-&amp;gt;Sound &amp;amp; Video-&amp;gt;PulseAudio Device Chooser. This will add a black microphone jack icon to your system tray.     &lt;LI TYPE=1 VALUE=30&gt;Do a left-click on the jack icon and a menu appears. In this menu, choose &amp;quot;Manager&amp;quot;. A new window appears.     &lt;LI TYPE=1 VALUE=31&gt;If it's not already connected, click on the &amp;quot;Connect&amp;quot; button to connect to your local PulseAudio server. When connected, you will see details about it listed.     &lt;LI TYPE=1 VALUE=32&gt;Click on the Devices tab. Under &amp;quot;Sinks&amp;quot; you should see an entry for &amp;quot;alsa_output.bluetooth&amp;quot;. This is picked up directly from your .asoundrc file.     &lt;LI TYPE=1 VALUE=33&gt;Now go to the Sample Cache tab. At the bottom is a &amp;quot;Playback on&amp;quot; drop-down. Choose Bluetooth from this list and click on the Play button. You should hear the Ubuntu login sound through your speakers. This proves to us that PulseAudio can play through your Bluetooth headset (but this is NOT the redirection - this is just a test).     &lt;LI TYPE=1 VALUE=34&gt;Close the PulseAudio Manager.     &lt;LI TYPE=1 VALUE=35&gt;Do another left-click on the mic jack icon in your system tray.     &lt;LI TYPE=1 VALUE=36&gt;Go to &amp;quot;Default Sink&amp;quot; and then choose &amp;quot;Other&amp;quot; from the sub-menu. A window appears.     &lt;LI TYPE=1 VALUE=37&gt;In this window, type in &amp;quot;alsa_output.bluetooth&amp;quot; and click OK.     &lt;LI TYPE=1 VALUE=38&gt;Play a sound from somewhere, eg: MP3 or movie in Totem. You should now hear your audio coming through your Bluetooth headset!     &lt;LI TYPE=1 VALUE=39&gt;To switch back to your speakers, simply click on the mic jack icon again, choose &amp;quot;Default Sink&amp;quot; and choose &amp;quot;Default&amp;quot; from the sub-menu. The next audio stream played will go back through your speakers.     &lt;LI TYPE=1 VALUE=40&gt;To make the PulseAudio Device Chooser start automatically on startup, click on the mic jack icon again, choose Preferences from the menu and then click on &amp;quot;Start applet on Session Login&amp;quot; in the window.     &lt;LI TYPE=1 VALUE=41&gt;Enjoy!  &lt;/OL&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-3104759053925238165?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/3104759053925238165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/06/stream-audio-in-bluetooth-headset-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/3104759053925238165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/3104759053925238165'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/06/stream-audio-in-bluetooth-headset-using.html' title='Stream audio in Bluetooth Headset using Dongle'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-8727764283112176026</id><published>2010-06-09T00:46:00.001-07:00</published><updated>2010-06-09T00:46:49.046-07:00</updated><title type='text'>Convert image files to text</title><content type='html'>&lt;h2&gt;Optical Character Recognition With Tesseract OCR On Ubuntu &lt;br&gt;&lt;/h2&gt;  &lt;p&gt;This document describes how to set up Tesseract OCR on Ubuntu 7.04.  OCR means &amp;quot;Optical Character Recognition&amp;quot;. The resulting system will be  able to convert images with embedded text to text    files. Tesseract is licensed under the &lt;a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank"&gt;Apache     License v2.0&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;This howto is meant as a practical guide; it does not cover the  theoretical    backgrounds. They are treated in a lot of other documents in the web.&lt;/p&gt; &lt;p&gt;This document comes without warranty of any kind! I want to say that  this is      not the only way of setting up such a system. There are many ways of  achieving this goal but this is the way I take. I do  not issue any guarantee that this will work for you!&lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;h3&gt;1 Preparation&lt;/h3&gt; &lt;p&gt;Set up a basic Ubuntu  system and update it.&lt;/p&gt; &lt;p&gt;Get scanned images or scan documents yourself.&lt;/p&gt; &lt;p&gt;If you use a scanner, be sure that it is supported by sane. A list of  supported devices is vailable at &lt;a href="http://www.sane-project.org/" target="_blank"&gt;http://www.sane-project.org/&lt;/a&gt;.&lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;h3&gt;2 Get Imagemagick&lt;/h3&gt; &lt;p&gt;The current version of tesseract provided in the Ubuntu repositories  supports only uncompressed and G3-compressed tiff files.&lt;/p&gt; &lt;p&gt;To ensure, that tesseract is able to process your images, you should  convert them to uncompressed tiff.&lt;/p&gt; &lt;p&gt;Since conversions with Gimp to uncompressed tiff were unusable, I  used the convert tool, which is supplied by the Imagemagick package.&lt;/p&gt; &lt;p&gt;Install Imagemagick from the Ubuntu repositories with the Synaptic  Package Manager.&lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;h3&gt;3 Get Tesseract&lt;/h3&gt; &lt;p&gt;Install the packages &lt;span class="system"&gt;tesseract-ocr&lt;/span&gt; and &lt;span class="system"&gt;tesseract-ocr-eng (for english)&lt;/span&gt;    from the Ubuntu repositories with the Synaptic Package Manager.&lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;h3&gt;4 Prepare Images&lt;/h3&gt; &lt;p&gt;To get the best results from tesseract, you have to optimize the  images. I recommend the use of images with a minimum resolution of about  200dpi.&lt;/p&gt; &lt;p&gt;I used Gimp for the following steps 4.1 - 4.3.&lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;h4&gt;4.1 Cleaning&lt;/h4&gt; &lt;p&gt;Remove any non-alphanumeric content from the image to prevent  tesseract from producing chaotic text blocks.&lt;/p&gt; &lt;p&gt;That can be done easily with the erase-tool within Gimp.&lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;h4&gt;4.2 Threshold&lt;/h4&gt; &lt;p&gt;Convert the image to RGB or Greyscale mode.&lt;/p&gt; &lt;p&gt;Within gimp:&lt;/p&gt; &lt;p&gt;&lt;span class="system"&gt;Image - Mode - RGB &lt;/span&gt;or&lt;span class="system"&gt;  Grayscale&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Use the threshold function to reduce biased lighting and remove  fragments. Move the sliders to define the delimitation of bright and  dark areas. Have a look at the preview while you are doing this to see  the effects on the    image.&lt;/p&gt; &lt;p&gt;Within Gimp:&lt;/p&gt; &lt;p class="system"&gt;Tools - Color Tools - Threshold&lt;/p&gt; &lt;p class="system"&gt;&lt;img src="http://images.howtoforge.com/images/tesseract_on_ubuntu704/pic1.jpg" width="550" height="385"&gt;&lt;/p&gt;&lt;div&gt; &lt;/div&gt;&lt;noscript style="font-size: 7pt;"&gt;(JavaScript must be enabled in your browser to view the large image as an image overlay.)&lt;/noscript&gt;&lt;p&gt; &lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;h4&gt;4.3 Black And White&lt;/h4&gt; &lt;p&gt;To improve the text recognition, we reduce the colors to black an  white by switching the image to indexed mode.&lt;/p&gt;   &lt;p&gt;Within Gimp:&lt;/p&gt;   &lt;p class="system"&gt;Image - Mode - Indexed&lt;/p&gt; &lt;p class="system"&gt;&lt;img src="http://images.howtoforge.com/images/tesseract_on_ubuntu704/pic2.jpg" width="550" height="385"&gt;&lt;/p&gt;&lt;div&gt;&lt;br&gt; &lt;/div&gt;&lt;div id="adrectangleb" style="height: 250px;"&gt;&lt;div id="defer-adrectangleb"&gt; &lt;div align="center"&gt;   &lt;noscript&gt;&lt;a href="http://a.collective-media.net/jump/idgt.howtoforge.en/article_below;sec=article;fold=below;tile=3;sz=300x250;ord=123456789?" target="_blank"&gt;&lt;img src="http://a.collective-media.net/ad/idgt.howtoforge.en/article_below;sec=article;fold=below;tile=3;sz=300x250;ord=123456789?" width="300" height="250" border="0" alt=""&gt;&lt;/a&gt;&lt;/noscript&gt;   &lt;/div&gt; &lt;/div&gt;&lt;/div&gt;&lt;noscript style="font-size: 7pt;"&gt;(JavaScript must be enabled in your browser to view the large image as an image overlay.)&lt;/noscript&gt;&lt;p&gt;&lt;/p&gt; &lt;p class="highlight"&gt;Be sure to turn off dithering.&lt;/p&gt; &lt;p&gt;Save the image after this step.&lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;h3&gt;5 Convert To Tiff&lt;/h3&gt; &lt;p&gt;Now you have to convert the image to uncompressed tiff.&lt;/p&gt; &lt;p class="command"&gt;convert %source_file% %destination_file%&lt;/p&gt; &lt;p&gt;e.g.:&lt;/p&gt; &lt;p class="command"&gt;convert document.jpg document.tif&lt;/p&gt;&lt;p style="font-family: arial black,sans-serif;" class="command"&gt;&lt;/p&gt;&lt;p style="font-family: arial black,sans-serif;" class="command"&gt;&lt;font face="courier new,monospace"&gt;if you encounter problems, then use&lt;/font&gt;&lt;br&gt; &lt;/p&gt; convert newtext.jpg -flatten -monochrome newtext.tif&lt;p&gt;&lt;/p&gt; &lt;h3&gt;6 Use Tesseract&lt;/h3&gt; &lt;p&gt;At this point all preparations are completed, so you can start using  tesseract.&lt;/p&gt; &lt;p class="command"&gt;tesseract %tiff_file% %name_for_resulting_files%&lt;/p&gt; &lt;p&gt;e.g.:&lt;/p&gt; &lt;p class="command"&gt;tesseract document.tif result&lt;/p&gt; &lt;p&gt;Tesseract adds the file extensions for the resulting files itself. In  this example tesseract would create &lt;span class="system"&gt;result.txt&lt;/span&gt;,     &lt;span class="system"&gt;result.map&lt;/span&gt; and &lt;span class="system"&gt;result.raw&lt;/span&gt;     .&lt;/p&gt;&lt;p&gt;Modified and Rewritten from &lt;a href="http://www.howtoforge.com/ocr_with_tesseract_on_ubuntu704"&gt;http://www.howtoforge.com/ocr_with_tesseract_on_ubuntu704&lt;/a&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-8727764283112176026?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/8727764283112176026/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/06/convert-image-files-to-text.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8727764283112176026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8727764283112176026'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/06/convert-image-files-to-text.html' title='Convert image files to text'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-878254926118775300</id><published>2010-06-08T04:13:00.001-07:00</published><updated>2010-06-08T04:13:38.004-07:00</updated><title type='text'>Configuring exim4 in Ubuntu to use GMail for SMTP</title><content type='html'>I wanted to route the mail through GMail SMTP servers since that would improve reliability. Turns out there is an indeed a way to make exim, the default MTA in debain/ubuntu to route all mail through GMail SMTP servers. Second round of trawling the interwebs started I managed to get a working setup without much trouble. But I had to piece together the content from &lt;A HREF="http://typo.submonkey.net/articles/2005/9/9/use-gmail-as-a-smart-host"&gt;separate&lt;/A&gt; &lt;A HREF="http://kb.philross.co.uk/2008/03/15/configuring-exim-to-use-gmail-as-a-smarthost/"&gt;sources&lt;/A&gt;. Here is how I did it. &lt;H2&gt; &lt;B&gt;&lt;FONT SIZE="5"&gt;Step 1&lt;/FONT&gt;&lt;/B&gt; &lt;/H2&gt; Run &lt;I&gt;dpkg-reconfigure&amp;nbsp;exim4-config&lt;/I&gt;&lt;BR&gt; &lt;BR&gt; &lt;UL&gt;     &lt;LI&gt;Choose mail sent by smarthost; received via SMTP or fetchmail     &lt;LI&gt;Type System Mail Name: e.g. &lt;TT&gt;company.com&lt;/TT&gt;     &lt;LI&gt;Type IP Adresses to listen on for incoming SMTP connections: &lt;TT&gt;127.0.0.1&lt;/TT&gt;     &lt;LI&gt;Leave Other destinations for which mail is accepted blank     &lt;LI&gt;Leave Machines to relay mail for: blank     &lt;LI&gt;Type Machine handling outgoing mail for this host (smarthost): &lt;TT&gt;smtp.gmail.com::587&lt;/TT&gt;     &lt;LI&gt;Choose NO, don&amp;#8217;t hide local mail name in outgoing mail.     &lt;LI&gt;Chose NO, don&amp;#8217;t keep number of DNS-queries minimal (Dial-on-Demand).     &lt;LI&gt;Choose mbox     &lt;LI&gt;Choose NO, split configuration into small files     &lt;LI&gt;Mail for postmaster. Leaving blank will not cause any problems though it is not recommended &lt;/UL&gt; &lt;H2&gt; &lt;B&gt;&lt;FONT SIZE="5"&gt;Step 2&lt;/FONT&gt;&lt;/B&gt; &lt;/H2&gt; &lt;UL&gt;     &lt;LI&gt;Open the file /etc/exim4/exim4.conf.template     &lt;LI&gt;Find the line &lt;I&gt;.ifdef DCconfig_smarthost DCconfig_satellite&lt;/I&gt; and add the following in that section&lt;BR&gt; &lt;PRE&gt; send_via_gmail:        driver = manualroute        domains = ! +local_domains        transport = gmail_smtp        route_list = * smtp.gmail.com &lt;/PRE&gt;     &lt;BR&gt;     &lt;B&gt;If you have any other smarthost defined with &amp;#8220;domains = ! +local_domains&amp;#8221; remove that smarthost. &lt;/B&gt;&lt;BR&gt;     &lt;BR&gt;     &lt;LI&gt;Find the &amp;#8220;begin authenticators&amp;#8221;. In that section add the following&lt;BR&gt; &lt;PRE&gt; gmail_login:        driver = plaintext        public_name = LOGIN        client_send = : yourname@gmail.com : YourGmailPassword &lt;/PRE&gt;     &lt;BR&gt;     &lt;B&gt;Make sure you have no other authenticators with the same public_name (LOGIN). Comment them out if needed (Thanks Jakub for reminding me) &lt;/B&gt;&lt;BR&gt;     &lt;BR&gt;     &lt;LI&gt;Find the comment&amp;nbsp; &amp;#8220;&lt;I&gt;transport/30_exim4-config_remote_smtp_smarthos&lt;/I&gt;t&amp;#8221;. In that section add&lt;BR&gt; &lt;PRE&gt; gmail_smtp:        driver = smtp        port = 587        hosts_require_auth = $host_address        hosts_require_tls = $host_address &lt;/PRE&gt; &lt;/UL&gt; &lt;H2&gt; &lt;B&gt;&lt;FONT SIZE="5"&gt;Step 3&lt;/FONT&gt;&lt;/B&gt; &lt;/H2&gt; &lt;UL&gt;     &lt;LI&gt;Run &lt;I&gt;&lt;TT&gt;update-exim4.conf&lt;/TT&gt;&lt;/I&gt;     &lt;LI&gt;&lt;TT&gt;Do /etc/init.d/exim4 restart&lt;/TT&gt; &lt;/UL&gt; &lt;BR&gt; That should be it. You can test by using the command line mail client.&lt;BR&gt; &lt;BR&gt; &lt;UL&gt;     &lt;LI&gt;Run mail user@example.com     &lt;LI&gt;Give a subject and press enter     &lt;LI&gt;Type something and press enter     &lt;LI&gt;Type a single . (dot) and press enter     &lt;LI&gt;Press enter for a blank CC: &lt;/UL&gt; &lt;BR&gt; This was on an Ubuntu server. I believe that this instructions will also work on Debain without any need for modifications.&lt;BR&gt; &lt;BR&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-878254926118775300?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/878254926118775300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/06/configuring-exim4-in-ubuntu-to-use.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/878254926118775300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/878254926118775300'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/06/configuring-exim4-in-ubuntu-to-use.html' title='Configuring exim4 in Ubuntu to use GMail for SMTP'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-9210159990401976817</id><published>2010-06-06T03:35:00.001-07:00</published><updated>2010-06-06T03:35:56.516-07:00</updated><title type='text'>Change apache2 web directory</title><content type='html'>You want /etc/apache2/sites-available/default (assuming you want to&lt;br&gt;adjust the default site for your server). Replace the &amp;quot;/var/www&amp;quot; with&lt;br&gt;the path to your website. It can get a lot more complex than this but&lt;br&gt;that&amp;#39;s the easy way.&lt;p&gt;For peace of mind, it might not be a bad idea to backup the original&lt;br&gt;file before you start making changes. After you&amp;#39;re done I think you&lt;br&gt;need to restart apache - apache2 -k restart.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-9210159990401976817?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/9210159990401976817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/06/change-apache2-web-directory.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/9210159990401976817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/9210159990401976817'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/06/change-apache2-web-directory.html' title='Change apache2 web directory'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-5244695966686020728</id><published>2010-06-02T03:43:00.001-07:00</published><updated>2010-06-02T03:43:40.103-07:00</updated><title type='text'>Checking webserver vulnerabilities</title><content type='html'>&lt;h3 class="post-title entry-title"&gt; Checking  Webserver Vulnerabilities using Nikto &lt;/h3&gt; &lt;div class="post-footer"&gt;  &lt;div class="post-footer-line post-footer-line-1"&gt; &lt;span class="post-author vcard"&gt; &lt;span class="fn"&gt;&lt;/span&gt; &lt;/span&gt; &lt;span class="post-labels"&gt; &lt;/span&gt; &lt;/div&gt;  &lt;/div&gt;   &lt;a href="http://2.bp.blogspot.com/_VN8zHqq8Ns8/SyyPcVlZBII/AAAAAAAADPQ/ZY596KckTr0/s1600-h/nikto.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img src="http://2.bp.blogspot.com/_VN8zHqq8Ns8/SyyPcVlZBII/AAAAAAAADPQ/ZY596KckTr0/s1600/nikto.png" border="0"&gt;&lt;/a&gt;Nikto is a web server scanner which performs  comprehensive tests against web servers for multiple items, including  over &lt;b&gt;3500&lt;/b&gt; potentially dangerous files/CGIs, versions on over 900  servers, and version specific problems on over 250 servers. &lt;br&gt; &lt;br&gt; Scan items and plugins are frequently updated and can be automatically  updated (&lt;i&gt;if desired&lt;/i&gt;).&lt;br&gt; &lt;br&gt; Nikto is built on LibWhisker and can run any platform which has a Perl  environment, and supports SSL, proxies, host authentication, IDS evasion  and more.&lt;br&gt; &lt;br&gt; Nikto not only checks for CGI vulnerabilities but does so in an evasive  manner, so as to elude intrusion detection systems. It comes with  thorough documentation which should be carefully reviewed prior to  running the program. If you have Web servers serving up CGI scripts,  Nikto can be an excellent resource for checking the security of these  servers. &lt;br&gt; &lt;br&gt; &lt;b&gt;Installation:&lt;/b&gt;&lt;br&gt; OpenSuSe user can install nikto using &amp;quot;1-click&amp;quot; installer - &lt;a href="http://software.opensuse.org/ymp/security/openSUSE_11.2/nikto.ymp" rel="nofollow"&gt;here&lt;/a&gt;&lt;br&gt; Ubuntu / Debian: &lt;span style="color: blue;"&gt;$ sudo apt-get install nikto&lt;/span&gt;&lt;br&gt; &lt;br&gt; &lt;b&gt;Using Nikto:&lt;/b&gt;&lt;br&gt; The most basic Nikto scan requires simply a host to target, since port  80 is assumed if none is specified. The host can either be an IP or a  hostname of a machine, and is specified using the -h (-host) option.  This will scan the IP 192.168.1.2 on TCP port 80: &lt;span style="color: blue;"&gt;nikto -h 192.168.1.2&lt;/span&gt;&lt;br&gt; &lt;br&gt; &lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_VN8zHqq8Ns8/Syyzuf6lNAI/AAAAAAAADPU/Cu9klbhouQM/s1600-h/Nikto.png" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img src="http://4.bp.blogspot.com/_VN8zHqq8Ns8/Syyzuf6lNAI/AAAAAAAADPU/Cu9klbhouQM/s320/Nikto.png" height="210" width="320" border="0"&gt;&lt;/a&gt;&lt;br&gt;  &lt;/div&gt;&lt;span style="color: blue;"&gt;&lt;/span&gt;&lt;br&gt; &lt;br&gt; To check on a different port, specify the port number with the -p  (-port) option. This will scan the IP 192.168.0.1 on TCP port 443: &lt;span style="color: blue;"&gt; &lt;/span&gt;&lt;br&gt; &lt;blockquote&gt;&lt;span style="color: blue;"&gt;nikto -h 192.168.1.2 -p 443&lt;/span&gt;&lt;br&gt; &lt;/blockquote&gt;Hosts, ports and protocols may also be specified by using a  full URL syntax, and it will be scanned:&lt;br&gt; &lt;blockquote&gt;&lt;span style="color: blue;"&gt;nikto -h &lt;a href="https://192.168.0.1:443/"&gt;https://192.168.0.1:443/&lt;/a&gt;&lt;/span&gt;&lt;br&gt; &lt;/blockquote&gt;&lt;span style="color: blue;"&gt;&lt;b style="color: black;"&gt;Updating&lt;/b&gt;&lt;br style="color: black;"&gt;&lt;span style="color: black;"&gt;Nikto can be  automatically updated, To update to the latest plugins and databases,  simply run Nikto with the -update command: &lt;/span&gt;&lt;span style="color: blue;"&gt;nikto -update&lt;/span&gt;&lt;br style="color: black;"&gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color: blue;"&gt;&lt;span style="color: black;"&gt; &lt;/span&gt; &lt;/span&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-5244695966686020728?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/5244695966686020728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/06/checking-webserver-vulnerabilities.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/5244695966686020728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/5244695966686020728'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/06/checking-webserver-vulnerabilities.html' title='Checking webserver vulnerabilities'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_VN8zHqq8Ns8/SyyPcVlZBII/AAAAAAAADPQ/ZY596KckTr0/s72-c/nikto.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-1758778528640306335</id><published>2010-06-02T03:40:00.001-07:00</published><updated>2010-06-02T03:40:49.520-07:00</updated><title type='text'>Mount windows share from Linux</title><content type='html'>Samba can be used to allow connectivity between Linux and Windows. Samba can be used to share printers, share directories, connect to an windows domain, and many other useful features.&lt;BR&gt; &lt;BR&gt; In order to mount your samba share to your Linux client open up the &lt;I&gt;&lt;FONT COLOR="#0000ff"&gt;/etc/fstab&lt;/FONT&gt;&lt;/I&gt; file and insert the following line into this file&lt;BR&gt; &lt;BR&gt; &lt;BLOCKQUOTE&gt;     //192.168.10.5/e$ /mnt/winshare cifs credentials=/etc/accessfile 0 0&lt;BR&gt; &lt;/BLOCKQUOTE&gt; &lt;BR&gt; Now create a new file: &lt;I&gt;&lt;FONT COLOR="#0000ff"&gt;/etc/accessfile&lt;/FONT&gt;&lt;/I&gt; with following contents&lt;BR&gt; &lt;BLOCKQUOTE&gt;     username=tendydon&lt;BR&gt;     password=some_password&lt;BR&gt; &lt;/BLOCKQUOTE&gt; Save the above file and restart your Linux client (or type command &lt;I&gt;&lt;FONT COLOR="#0000ff"&gt;mount -a&lt;/FONT&gt;&lt;/I&gt;), after restart you should now able to access the share content from the samba server e$ of 192.168.10.5 under &lt;I&gt;&lt;FONT COLOR="#0000ff"&gt;/mnt/winshare&lt;/FONT&gt;&lt;/I&gt; directory.&lt;BR&gt; &lt;BR&gt; This is preferred over having passwords in plaintext in a shared file, such as /etc/fstab. Be sure to protect any credentials file properly and also note that there should not be any extra space in this file.&lt;BR&gt; &lt;BR&gt; It there are any space in this credentials file you might get the following error on trying to mount the file system&lt;BR&gt; &lt;BLOCKQUOTE&gt;     &lt;FONT COLOR="#0000ff"&gt;mount error(13): Permission denied&lt;/FONT&gt;&lt;BR&gt;     &lt;FONT COLOR="#0000ff"&gt;Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)&lt;/FONT&gt; &lt;/BLOCKQUOTE&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-1758778528640306335?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/1758778528640306335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/06/mount-windows-share-from-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/1758778528640306335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/1758778528640306335'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/06/mount-windows-share-from-linux.html' title='Mount windows share from Linux'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-4881166973269062832</id><published>2010-05-31T00:15:00.001-07:00</published><updated>2010-06-01T03:21:10.694-07:00</updated><title type='text'>Move the Minimize Maximize Close buttons to the Right in Lucid Lynx</title><content type='html'>&lt;p&gt;I am using Ubuntu 10.04 Lucid Lynx in my PC. The Ubuntu Design Team  has decided to move the Minimize, Maximize and Close buttons to the left  of the title bar. Not exactly like Mac OS X, which looks like the  following:&lt;/p&gt; &lt;div class="wp-caption alignnone" style="width: 417px;"&gt;&lt;a rel="nofollow"&gt;&lt;img title="Close, Maximize, Minimize in Mac OS X" src="http://img3.imageshack.us/img3/5030/macosxq.png" alt="Close,  Maximize, Minimize in Mac OS X" height="227" width="407" /&gt;&lt;/a&gt;&lt;p class="wp-caption-text"&gt;Close, Maximize, Minimize in Mac OS X&lt;/p&gt;&lt;/div&gt; &lt;p&gt;while Ubuntu button layout is as follows:&lt;/p&gt; &lt;div class="wp-caption alignnone" style="width: 405px;"&gt;&lt;img title="Maximize, Minimize, Close in Ubuntu Lucid" src="http://img248.imageshack.us/img248/8493/ubuntuj.png" alt="Maximize,  Minimize, Close in Ubuntu Lucid" height="197" width="395" /&gt;&lt;p class="wp-caption-text"&gt;Maximize, Minimize, Close in Ubuntu Lucid&lt;/p&gt;&lt;/div&gt; &lt;p&gt;The difference is the order in which they appear.&lt;/p&gt; &lt;p&gt;UPDATE April 2: The button order in Lucid will now follow Mac OS X  style.&lt;br /&gt;&lt;span id="more-708"&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;The head of Ubuntu Design Team does  not give out any particular reasons for that and Mark Shuttleworth  says he wants to use the right part for something else, probably in the  10.10 release.&lt;/p&gt; &lt;p&gt;I agree that moving that to the right might have some benefits as it  takes less mouse movement to get there rather than the right side, but I  am always looking for one of those on the right side, because of my  habit. So, I decided to move it to the right for now, but I may consider  switching to the left to see how it works for me.&lt;/p&gt; &lt;p&gt;To move it back to the right, you will need to launch Configuration  Editor (Alt+F2 and type in gconf-editor) and then navigate to  apps&amp;gt;metacity&amp;gt;general. Look for button_layout on the right hand  pane and double click on it to edit it. You should change it from&lt;/p&gt;  &lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="text" style="font-family: monospace;"&gt;maximize,minimize,close:&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;  &lt;p&gt;to&lt;/p&gt;  &lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="text" style="font-family: monospace;"&gt;menu:minimize,maximize,close&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;  &lt;p&gt;. This should do it.&lt;/p&gt; &lt;p&gt;Alternately, this can also be done by executing the following command  from the terminal or from the Run Application Dialog (Alt+F2):&lt;/p&gt;  &lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="1" style="font-family: monospace;"&gt;gconftool-2 --set /apps/metacity/general/button_layout --type string menu:minimize,maximize,close&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-4881166973269062832?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/4881166973269062832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/move-minimize-maximize-close-buttons-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/4881166973269062832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/4881166973269062832'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/move-minimize-maximize-close-buttons-to.html' title='Move the Minimize Maximize Close buttons to the Right in Lucid Lynx'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-8409117580349930539</id><published>2010-05-30T09:02:00.000-07:00</published><updated>2010-05-30T09:03:23.996-07:00</updated><title type='text'>Configure Pidgin for google application email</title><content type='html'>Once you &lt;A HREF="http://pidgin.im/"&gt;download Pidgin&lt;/A&gt;, you'll need to configure your client to connect to the Google Talk service.&lt;BR&gt; &lt;BR&gt; To configure your account: &lt;BR&gt; &lt;BR&gt; &lt;OL TYPE=1&gt;     &lt;LI TYPE=1 VALUE=1&gt;Open Pidgin.     &lt;LI TYPE=1 VALUE=2&gt;Select &lt;B&gt;Add&lt;/B&gt;. &lt;BR&gt;     &lt;BR&gt;     &lt;IMG SRC="cid:1275235147.1945.5.camel@Anwesh-PC" ALIGN="bottom" BORDER="0"&gt;&lt;BR&gt;     &lt;BR&gt;     &lt;LI TYPE=1 VALUE=3&gt;Enter the following information in the &lt;B&gt;Add Account&lt;/B&gt; window:&lt;BR&gt;     &lt;BR&gt;     &lt;UL&gt;         &lt;LI&gt;&lt;B&gt;Protocol&lt;/B&gt;: XMPP          &lt;LI&gt;&lt;B&gt;Screen Name&lt;/B&gt;: your Google Talk username (without any @ symbol or domain).          &lt;LI&gt;&lt;B&gt;Server&lt;/B&gt;: Enter the portion of your email address after the @ symbol. For example, &lt;I&gt;gordon@example.com&lt;/I&gt; will enter example.com as the server value. (If you're not a Google Apps for Your Domain user, please visit the &lt;A HREF="http://www.google.com/support/talk/bin/answer.py?answer=24073"&gt;Google Talk Help Center&lt;/A&gt; for instructions.)         &lt;LI&gt;&lt;B&gt;Password&lt;/B&gt;: we suggest leaving this field blank for increased security, but if you'd like to log in automatically, enter your password          &lt;LI&gt;&lt;B&gt;Local Alias&lt;/B&gt;: leave this field blank          &lt;LI&gt;&lt;B&gt;Remember password&lt;/B&gt;: check the box if you'd like Pidgin to remember your password (you won't be prompted to enter it each time you log in, if you select this option)          &lt;LI&gt;&lt;B&gt;New mail notifications:&lt;/B&gt; check the box if you'd like Pidgin to notify you of unread email in your inbox.&lt;BR&gt;         &lt;IMG SRC="cid:1275235147.1945.6.camel@Anwesh-PC" ALIGN="bottom" BORDER="0"&gt;&lt;BR&gt;         &lt;BR&gt;         &lt;BR&gt;     &lt;/UL&gt;     &lt;LI TYPE=1 VALUE=4&gt;Click on 'Advanced' tab and enter 'talk.google.com' in the Connect Server box.     &lt;LI TYPE=1 VALUE=5&gt;Uncheck&amp;nbsp; &amp;quot;Require SSL/TLS encryption&amp;quot; .     &lt;LI TYPE=1 VALUE=6&gt;Click &lt;B&gt;Save&lt;/B&gt;.  &lt;/OL&gt; You're now ready to connect to the Google Talk service using Pidgin.&lt;BR&gt; &lt;BR&gt; A little modification from source:&lt;A HREF="http://www.google.com/support/a/bin/answer.py?hl=en&amp;amp;answer=49147"&gt;http://www.google.com/support/a/bin/answer.py?hl=en&amp;amp;answer=49147&lt;/A&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-8409117580349930539?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/8409117580349930539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/configure-pidgin-for-google-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8409117580349930539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8409117580349930539'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/configure-pidgin-for-google-application.html' title='Configure Pidgin for google application email'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-8849139844347786948</id><published>2010-05-30T08:26:00.001-07:00</published><updated>2010-05-30T08:26:12.310-07:00</updated><title type='text'>Remake sources.list file</title><content type='html'>If you lost your &amp;quot;/etc/apt/sources.list&amp;quot; file  &lt;br&gt;You can generate the file using following website&lt;br&gt;&lt;a href="http://repogen.simplylinux.ch/"&gt;http://repogen.simplylinux.ch/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-8849139844347786948?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/8849139844347786948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/remake-sourceslist-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8849139844347786948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8849139844347786948'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/remake-sourceslist-file.html' title='Remake sources.list file'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-8350657222716900426</id><published>2010-05-28T18:25:00.001-07:00</published><updated>2010-05-28T18:25:17.520-07:00</updated><title type='text'>Upgade ubuntu using Alternate CD</title><content type='html'>Upgrade To Ubuntu 10.04 Lucid Lynx (or any new version)Without An Internet Connection&lt;BR&gt; &lt;BR&gt; Well, if you don't have an Internet connection, you can still upgrade to Ubuntu 10.04 Lucid Lynx, but you'll need to download the Ubuntu 10.04 Lucid Lynx alternate CD somehow. You can download the Ubuntu Alternate ISO from &lt;A HREF="http://www.ubuntu.com/getubuntu/downloadmirrors#alternate"&gt;HERE&lt;/A&gt;.&lt;BR&gt; &lt;BR&gt; &lt;BR&gt; Then, you can then either write the Ubuntu 10.04 Lucid Lynx Alternate ISO onto a CD or simply mount the ISO image using the following command:&lt;BR&gt; &lt;BR&gt; &lt;PRE&gt; $ sudo mount -o loop ubuntu-10.04-alternate-i386.iso /media/cdrom0 &lt;/PRE&gt; Give exact path to &amp;quot;ubuntu-10.04-alternate-i386.iso&amp;quot; if your are not in the directory where you have saved the alternate cd image.&lt;BR&gt; Once you insert the CD or mount the ISO image, a dialog should pop up offering you the option to upgrade using that CD / ISO image.&lt;BR&gt; &lt;BR&gt; &lt;BR&gt; If of any reason the pop up doesn't come, you can start the upgrade manually by typing the command below.&lt;BR&gt; &lt;BR&gt; &lt;PRE&gt; $ gksu &amp;quot;sh /cdrom/cdromupgrade&amp;quot; &lt;/PRE&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-8350657222716900426?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/8350657222716900426/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/upgade-ubuntu-using-alternate-cd.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8350657222716900426'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8350657222716900426'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/upgade-ubuntu-using-alternate-cd.html' title='Upgade ubuntu using Alternate CD'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-81646303676947216</id><published>2010-05-28T04:34:00.001-07:00</published><updated>2010-05-28T04:34:54.512-07:00</updated><title type='text'>Share blogger posts on Facebook</title><content type='html'>Some questions of &lt;span style="font-weight: bold;"&gt;How do I share my blogger posts on Facebook&lt;/span&gt; ? , look my news article here: &lt;span style="color: rgb(204, 0, 0); font-style: italic; font-size: 130%;"&gt;&lt;/span&gt;&lt;br&gt;&lt;br&gt; Here&amp;#39;s ,how make share button on your blogspot posts ,like appear at this blog . which will be good for readers to share your posts on &lt;b&gt;Facebook&lt;/b&gt;, such as Digg button.&lt;br&gt;&lt;br&gt;Oke, go to blogger dashboard -Edit HTML -Check Expand Widget - and find the code below:&lt;br&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; &amp;lt;b:if cond=&amp;#39;data:top.showAuthor&amp;#39;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;br&gt;Place following code before the code above&lt;br&gt;&lt;br&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&amp;lt;b:if cond=&amp;#39;data:post.url&amp;#39;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&amp;lt;a expr:href=&amp;#39;&amp;amp;quot;&lt;a href="http://www.facebook.com/share.php?u=&amp;amp;quot"&gt;http://www.facebook.com/share.php?u=&amp;amp;quot&lt;/a&gt;; + data:post.url&amp;#39;&amp;gt;&amp;lt;img alt=&amp;#39;&lt;a href="http://www.tips-fb.com"&gt;www.tips-fb.com&lt;/a&gt;&amp;#39; border=&amp;#39;0&amp;#39; src=&amp;#39;&lt;a href="http://i15.photobucket.com/albums/a398/syilpid/share_on_facebook_2.png&amp;#39;/"&gt;http://i15.photobucket.com/albums/a398/syilpid/share_on_facebook_2.png&amp;#39;/&lt;/a&gt;&amp;gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&amp;lt;/b:if&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;br&gt;The code above will appear be like this button:&lt;br&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 110px; height: 15px;" src="http://2.bp.blogspot.com/_g8jLp1CqJ08/SZxzYvSVIdI/AAAAAAAABzI/TOLxBLPUg0I/s400/tombol-facebook.png" alt="" id="BLOGGER_PHOTO_ID_5304241329983005138" border="0"&gt;&lt;br&gt; &lt;br&gt;&lt;br&gt;If you want to using another button , can use these code below  :&lt;br&gt;&lt;br&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 51px; height: 19px;" src="http://2.bp.blogspot.com/_g8jLp1CqJ08/SZxzwkXp8gI/AAAAAAAABzY/i8gp4z8HFoI/s400/tombol-facebook-3.png" alt="Cara memasang facebook di blog" id="BLOGGER_PHOTO_ID_5304241739369411074" border="0"&gt;&lt;br&gt; &lt;br&gt;&amp;lt;b:if cond=&amp;#39;data:post.url&amp;#39;&amp;gt;&lt;br&gt;&amp;lt;a expr:href=&amp;#39;&amp;amp;quot;&lt;a href="http://www.facebook.com/share.php?u=&amp;amp;quot"&gt;http://www.facebook.com/share.php?u=&amp;amp;quot&lt;/a&gt;; + data:post.url&amp;#39;&amp;gt;&amp;lt;img src=&amp;quot;&lt;a href="http://i15.photobucket.com/albums/a398/syilpid/share_on_facebook_4.png"&gt;http://i15.photobucket.com/albums/a398/syilpid/share_on_facebook_4.png&lt;/a&gt;&amp;quot; border=&amp;quot;0&amp;quot; alt=&amp;quot;&lt;a href="http://www.tips-fb.com"&gt;www.tips-fb.com&lt;/a&gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;br&gt;&amp;lt;/b:if&amp;gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 19px; height: 18px;" src="http://4.bp.blogspot.com/_g8jLp1CqJ08/SZxzk45GMyI/AAAAAAAABzQ/irCea5u2uJw/s400/tombol-facebook-2.png" alt="" id="BLOGGER_PHOTO_ID_5304241538719953698" border="0"&gt;&lt;br&gt; &lt;br&gt;&amp;lt;b:if cond=&amp;#39;data:post.url&amp;#39;&amp;gt;&lt;br&gt;&amp;lt;a expr:href=&amp;#39;&amp;amp;quot;&lt;a href="http://www.facebook.com/share.php?u=&amp;amp;quot"&gt;http://www.facebook.com/share.php?u=&amp;amp;quot&lt;/a&gt;; + data:post.url&amp;#39;&amp;gt;&amp;lt;img src=&amp;quot;&lt;a href="http://i15.photobucket.com/albums/a398/syilpid/share_on_facebook_3.png"&gt;http://i15.photobucket.com/albums/a398/syilpid/share_on_facebook_3.png&lt;/a&gt;&amp;quot; border=&amp;quot;0&amp;quot; alt=&amp;quot;&lt;a href="http://www.tips-fb.com"&gt;www.tips-fb.com&lt;/a&gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;br&gt;&amp;lt;/b:if&amp;gt;&lt;br&gt;&lt;br&gt;Or use your own text , for example : &amp;quot;Share On Facebook&amp;quot;&lt;br&gt;&lt;br&gt;&amp;lt;b:if cond=&amp;#39;data:post.url&amp;#39;&amp;gt;&lt;br&gt; &amp;lt;a expr:href=&amp;#39;&amp;amp;quot;&lt;a href="http://www.facebook.com/share.php?u=&amp;amp;quot"&gt;http://www.facebook.com/share.php?u=&amp;amp;quot&lt;/a&gt;; + data:post.url&amp;#39;&amp;gt;Share on Facebook&amp;lt;/a&amp;gt;&lt;br&gt;&amp;lt;/b:if&amp;gt;&lt;br&gt;&lt;br&gt;End... &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-81646303676947216?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/81646303676947216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/share-blogger-posts-on-facebook.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/81646303676947216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/81646303676947216'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/share-blogger-posts-on-facebook.html' title='Share blogger posts on Facebook'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_g8jLp1CqJ08/SZxzYvSVIdI/AAAAAAAABzI/TOLxBLPUg0I/s72-c/tombol-facebook.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-6083493945954868628</id><published>2010-05-26T09:43:00.001-07:00</published><updated>2010-05-26T09:43:06.835-07:00</updated><title type='text'>Solve wired network not managed karmic koala</title><content type='html'>&lt;table cellspacing="0" cellpadding="0" border="0" &gt;&lt;tr&gt;&lt;td valign="top" style="font: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial; font-size: 11px; line-height: 17px; "&gt;On Ubunty 9.10 (Karmic Koala), if clicking the&amp;nbsp;&lt;span class="bold" style="font-weight: bolder; "&gt;Network Manager&lt;/span&gt;&amp;nbsp;applet displays&lt;span class="courier" style="font-family: Courier; font-size: 12px; font-weight: bold; "&gt;device not managed&lt;/span&gt;, here is the instruction to enable it:&lt;ol&gt;&lt;li&gt;Edit&amp;nbsp;&lt;span class="courier" style="font-family: Courier; font-size: 12px; font-weight: bold; "&gt;/etc/NetworkManager/nm-system-settings.conf&lt;/span&gt;&amp;nbsp;and set&lt;span class="courier" style="font-family: Courier; font-size: 12px; font-weight: bold; "&gt;managed=true&lt;/span&gt;. It should be:&lt;div id="highlighter_811640" class="syntaxhighlighter  " style="margin-top: 1em !important; margin-right: 0px !important; margin-bottom: 1em !important; margin-left: 0px  !important; padding-top: 1px !important; padding-right: 1px !important; padding-bottom: 1px !important; padding-left: 1px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(255, 255, 255) !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: relative !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 435px; line-height: 1.1em !important; font-family: Consolas, 'Bitstream  Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;div class="lines" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial  !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;div class="line alt1" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important;  border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(255, 255, 255) !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important;  font-size: 1em !important; min-height: inherit !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;table style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float: none !important;  vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; border-collapse: collapse !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;tbody style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important;  border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; background-position: initial initial !important;  background-repeat: initial initial !important; "&gt;&lt;tr style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important;  right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;td class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style:  initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(255, 255, 255) !important; text-align: left !important; float: none !important; vertical-align: top !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; color: rgb(120, 120, 120) !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;code style="margin-top: 0px !important; margin-right: 0px  !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: right !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 2.7em !important;  line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; display: block !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;1&lt;/code&gt;&lt;/td&gt;&lt;td class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 1px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important;  background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: top !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; border-left-style: solid !important; border-left-color: rgb(212, 208, 200) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;code class="plain" style="margin-top: 0px  !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important;  width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;[ifupdown]&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div class="line alt2" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important;  outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(255, 255, 255) !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;table style="margin-top: 0px !important; margin-right: 0px !important;  margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em  !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; border-collapse: collapse !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;tbody style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important;  background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;tr style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important;  padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight:  normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;td class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(255,  255, 255) !important; text-align: left !important; float: none !important; vertical-align: top !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; color: rgb(120, 120, 120) !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important;  border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: right !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 2.7em !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height:  inherit !important; display: block !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;2&lt;/code&gt;&lt;/td&gt;&lt;td class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 1px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float:  none !important; vertical-align: top !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; border-left-style: solid !important; border-left-color: rgb(212, 208, 200) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important;  border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size:  1em !important; min-height: inherit !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;managed=&lt;/code&gt;&lt;code class="functions" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important;  text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; color: rgb(255, 20, 147) !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;true&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;Restart both&amp;nbsp;&lt;span class="bold" style="font-weight: bolder; "&gt;networking&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;span class="bold" style="font-weight: bolder; "&gt;network-manager&lt;/span&gt;&amp;nbsp;services. Or restarting the computer works too.&lt;div id="highlighter_548448"  class="syntaxhighlighter  " style="margin-top: 1em !important; margin-right: 0px !important; margin-bottom: 1em !important; margin-left: 0px !important; padding-top: 1px !important; padding-right: 1px !important; padding-bottom: 1px !important; padding-left: 1px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(255, 255, 255) !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: relative !important; left: auto !important; top: auto !important; right: auto  !important; bottom: auto !important; height: auto !important; width: 435px; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;div class="bar                                                                            show" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial  !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; display: block !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;table style="margin-top:  0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto  !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; border-collapse: collapse !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;tbody style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color:  initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;tr style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px  !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New',  Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;td class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip:  initial !important; background-color: rgb(255, 255, 255) !important; text-align: left !important; float: none !important; vertical-align: top !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; color: rgb(120, 120, 120) !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important;  border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: right !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 2.7em !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important;  font-size: 1em !important; min-height: inherit !important; display: block !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;1&lt;/code&gt;&lt;/td&gt;&lt;td class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 1px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial  !important; text-align: left !important; float: none !important; vertical-align: top !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; border-left-style: solid !important; border-left-color: rgb(212, 208, 200) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;code class="functions" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px  !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important;  font-style: normal !important; font-size: 1em !important; min-height: inherit !important; color: rgb(255, 20, 147) !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;sudo&lt;/code&gt;&amp;nbsp;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial  !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;/etc/init.d/network-manager restart&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div class="lines" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px  !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important;  font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;div class="line alt2" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important;  background-color: rgb(255, 255, 255) !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;table style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width:  0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important;  border-collapse: collapse !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;tbody style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align:  baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;tr style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important;  border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;td class="number"  style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(255, 255, 255) !important; text-align: left !important; float: none !important; vertical-align: top !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto  !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; color: rgb(120, 120, 120) !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial  !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: right !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 2.7em !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; display: block !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;2&lt;/code&gt;&lt;/td&gt;&lt;td class="content" style="margin-top: 0px !important; margin-right: 0px  !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 1px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: top !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important;  line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; border-left-style: solid !important; border-left-color: rgb(212, 208, 200) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;&lt;code class="functions" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px  !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; color: rgb(255, 20, 147) !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;sudo&lt;/code&gt;&amp;nbsp;&lt;code class="plain"  style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial !important; border-color: initial !important; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important;  height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; min-height: inherit !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; background-repeat: initial initial !important; "&gt;/etc/init.d/networking restart&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-6083493945954868628?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/6083493945954868628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/solve-wired-network-not-managed-karmic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/6083493945954868628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/6083493945954868628'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/solve-wired-network-not-managed-karmic.html' title='Solve wired network not managed karmic koala'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-6380206277712820803</id><published>2010-05-26T07:27:00.001-07:00</published><updated>2010-05-26T07:27:29.245-07:00</updated><title type='text'>unattended download using wget</title><content type='html'>&lt;table cellspacing="0" cellpadding="0" border="0" &gt;&lt;tr&gt;&lt;td valign="top" style="font: inherit;"&gt;&lt;p&gt;Here is quick tip, if you wish to perform an unattended download of large files such as Linux DVD ISO use wget as follows:&lt;/p&gt; &lt;p&gt;&lt;strong&gt;wget -bqc http://path.com/url.iso&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Where,&lt;/p&gt; &lt;p&gt;=&amp;gt; &lt;strong&gt;-b&lt;/strong&gt; : Go to background immediately after startup.  If no output file is specified via the -o, output is redirected to wget-log.&lt;/p&gt; &lt;p&gt;=&amp;gt; &lt;strong&gt;-q&lt;/strong&gt; : Turn off Wget's output aka save disk space.&lt;/p&gt; &lt;p&gt;=&amp;gt; &lt;strong&gt;-c&lt;/strong&gt; : Resume broken download i.e. continue getting a partially-downloaded file. This is useful when you want to finish up a download started by a previous instance of Wget, or by another program. &lt;/p&gt; &lt;p&gt;This tip will save your time while downloading large ISO image from the internet. &lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-6380206277712820803?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/6380206277712820803/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/unattended-download-using-wget.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/6380206277712820803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/6380206277712820803'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/unattended-download-using-wget.html' title='unattended download using wget'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-109176634550187683</id><published>2010-05-17T01:44:00.001-07:00</published><updated>2010-05-17T01:44:08.161-07:00</updated><title type='text'>Recover Ubuntu Linux after windows XP wipes MBR</title><content type='html'>&lt;h2 id="Recover Grub 2 via LiveCD"&gt;Recovering Ubuntu after Windows wipes Grub2 boot loader &lt;br&gt;&lt;/h2&gt;The below blog makes possible to install XP after Ubuntu linux.First installl XP normally in empty drive. Windows wipes MBR of Ubuntu and boot loader Grub.You just need ubuntu live CD Karmic Koala 9.10 or above&lt;br&gt; &lt;h2 id="Recover Grub 2 via LiveCD"&gt;Recover Grub 2 via LiveCD&lt;/h2&gt; &lt;span class="anchor" id="line-429"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-430"&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;p class="line862"&gt;First, grab a copy of  the latest &lt;a class="http" href="http://www.ubuntu.com/getubuntu/download"&gt;Ubuntu LiveCD&lt;/a&gt; and  boot it. &lt;span class="anchor" id="line-431"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;Open a  terminal and type &lt;span class="anchor" id="line-432"&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="line867"&gt;&lt;tt&gt;$ sudo fdisk -l&lt;/tt&gt; &lt;span class="anchor" id="line-433"&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Now, you need to remember which device  listed is your linux distribution, for reference, /dev/sda1 will be  used. Now we need to mount the filesystem to /mnt &lt;span class="anchor" id="line-434"&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="line867"&gt;&lt;tt&gt;$ sudo mount /dev/sda1 /mnt&lt;/tt&gt;  &lt;span class="anchor" id="line-435"&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;If you have /boot  on a separate partition, that need&amp;#39;s to be mounted aswell.  For  reference, /dev/sda2 will be used. &lt;span class="anchor" id="line-436"&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="line867"&gt;&lt;tt&gt;$ sudo mount /dev/sda2 /mnt/boot&lt;/tt&gt; &lt;span class="anchor" id="line-437"&gt;&lt;/span&gt;&lt;em&gt;Make sure you don&amp;#39;t mix these  up, pay attention to the output of FDISK&lt;/em&gt; &lt;span class="anchor" id="line-438"&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li style="list-style-type: none;"&gt;Now  mount the rest of your devices and some other things needed in the  chroot &lt;span class="anchor" id="line-439"&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="line867"&gt;&lt;tt&gt;$ sudo mount --bind /dev /mnt/dev&lt;/tt&gt;&lt;br&gt;  &lt;span class="anchor" id="line-440"&gt;&lt;/span&gt;&lt;tt&gt;$ sudo mount --bind /proc /mnt/proc&lt;/tt&gt;&lt;br&gt;  &lt;span class="anchor" id="line-441"&gt;&lt;/span&gt;&lt;tt&gt;$ sudo mount --bind /sys /mnt/sys&lt;/tt&gt;  &lt;span class="anchor" id="line-442"&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Now chroot into  your system &lt;span class="anchor" id="line-443"&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="line867"&gt;&lt;tt&gt;$ sudo chroot /mnt&lt;/tt&gt; &lt;span class="anchor" id="line-444"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-445"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="line874"&gt;You should be chroot&amp;#39;d into your system as root, you can  now run commands as root, without the need for sudo. &lt;span class="anchor" id="line-446"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-447"&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;p class="line862"&gt;Now you need to edit the &lt;strong&gt;/etc/default/grub&lt;/strong&gt;  file to fit your system &lt;span class="anchor" id="line-448"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="line867"&gt;&lt;tt&gt;$ nano /etc/default/grub&lt;/tt&gt; &lt;span class="anchor" id="line-449"&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;p class="line862"&gt;When that is done  you need to run &lt;strong&gt;update-grub&lt;/strong&gt; to create the configuration  file. &lt;strong&gt;If you have a separate /boot partition you need to mount  it first!&lt;/strong&gt; &lt;span class="anchor" id="line-450"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="line867"&gt;&lt;tt&gt;$ update-grub&lt;/tt&gt; &lt;span class="anchor" id="line-451"&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;p class="line862"&gt;To install GRUB 2 to  the MBR, next you need to run &lt;strong&gt;grub-install /dev/sda&lt;/strong&gt; &lt;span class="anchor" id="line-452"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="line867"&gt;&lt;tt&gt;$ grub-install /dev/sda&lt;/tt&gt;  &lt;span class="anchor" id="line-453"&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;p class="line862"&gt;If you encounter any errors, try &lt;strong&gt;grub-install  --recheck /dev/sda&lt;/strong&gt; &lt;span class="anchor" id="line-454"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="line867"&gt;&lt;tt&gt;$ grub-install --recheck /dev/sda&lt;/tt&gt; &lt;span class="anchor" id="line-455"&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Press Ctrl+D to exit out  of the chroot. &lt;span class="anchor" id="line-456"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Once  you exit back to your regular console, undo all the mounting, first the  /dev and others &lt;span class="anchor" id="line-457"&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="line867"&gt;&lt;tt&gt;$ sudo umount /mnt/dev&lt;/tt&gt;&lt;br&gt;  &lt;span class="anchor" id="line-458"&gt;&lt;/span&gt;&lt;tt&gt;$ sudo umount /mnt/sys&lt;/tt&gt;&lt;br&gt;  &lt;span class="anchor" id="line-459"&gt;&lt;/span&gt;&lt;tt&gt;$ sudo umount /mnt/proc&lt;/tt&gt;  &lt;span class="anchor" id="line-460"&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Now you can  unmount the root system. (But if you have a separate boot partition  which you mounted earlier, you have to unmount this first, or you will  get a &amp;quot;device busy&amp;quot; error message.) &lt;span class="anchor" id="line-461"&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="line867"&gt;&lt;tt&gt;$ sudo umount /mnt&lt;/tt&gt; &lt;span class="anchor" id="line-462"&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;And you should be free to restart your  system right into GRUB 2 and then into your system installation.  &lt;span class="anchor" id="line-463"&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;If you  had alternate OS entries, &lt;tt&gt;update-grub&lt;/tt&gt; might say &amp;quot;Cannot find  list of partitions!&amp;quot;.  Ignore it and continue - once you can boot into  your linux installation, do so and then rerun &lt;tt&gt;update-grub&lt;/tt&gt; and &lt;tt&gt;grub-install /dev/sda&lt;/tt&gt;  as root.  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-109176634550187683?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/109176634550187683/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/recover-ubuntu-linux-after-windows-xp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/109176634550187683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/109176634550187683'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/recover-ubuntu-linux-after-windows-xp.html' title='Recover Ubuntu Linux after windows XP wipes MBR'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-7347576374480285059</id><published>2010-05-12T22:23:00.001-07:00</published><updated>2010-05-12T22:23:35.813-07:00</updated><title type='text'>Disable auto login network share folders</title><content type='html'>Step 1:&lt;br&gt;Disconnect network folders In Run type &lt;font size="2"&gt;&lt;span style="font-family: courier new,monospace;"&gt;net use * /d&lt;/span&gt; &lt;/font&gt; It disconnects all the network shares&lt;br&gt;Step 2:&lt;br&gt;In Run type &lt;font style="font-family: courier new,monospace;" size="2"&gt;control userpasswords2  &lt;/font&gt;&lt;br&gt;in the next window go to the second tab on top, named: Advanced &lt;br&gt;and from there open: Manage Passwords &lt;br&gt;There you should see if there is a password stored for the address  that you have mentioned &lt;br&gt;If yes then delete it and close the windows with OK &lt;br&gt;try to connect again to that address, it should prompt for  authentication. &lt;br&gt;Do not check the Remember option... &lt;br&gt;&lt;font size="2"&gt;&lt;span style="font-family: arial black,sans-serif;"&gt;&lt;br&gt;A short cut to this step&lt;/span&gt;&lt;/font&gt;&lt;br&gt;start &amp;gt;run &amp;gt;  &lt;font size="4"&gt;&lt;span style="font-family: courier new,monospace;"&gt;rundll32.exe keymgr.dll, KRShowKeyMgr &lt;/span&gt;&lt;/font&gt;&lt;br&gt; and delete saved password&lt;br&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-7347576374480285059?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/7347576374480285059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/disable-auto-login-network-share.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/7347576374480285059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/7347576374480285059'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/disable-auto-login-network-share.html' title='Disable auto login network share folders'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-5334066205327723838</id><published>2010-05-12T04:44:00.001-07:00</published><updated>2010-05-12T04:44:21.142-07:00</updated><title type='text'>Make samba share without password</title><content type='html'>How to set &lt;b&gt;samba&lt;/b&gt; to allow read-only file sharing for  your LAN computers as guest ? (without be prompted for a password).Because users won&amp;#39;t be prompted for a user/password, this is  meant to be installed in a LAN where all host are to be trusted.&lt;br&gt;&lt;div class="gmail_quote"&gt;&lt;div class="gmail_quote"&gt;&lt;div class="im"&gt;Smoothen samba default security by changing the security variable: &lt;i&gt;security&lt;/i&gt;  and make sure it is set to &lt;i&gt;share&lt;/i&gt; instead of &lt;i&gt;user&lt;/i&gt; and  that guest account is enabled&lt;br&gt;&lt;br&gt;&lt;/div&gt;open and edit &lt;span&gt;/etc/samba/smb.conf&lt;/span&gt;&lt;div class="im"&gt;&lt;br&gt;&lt;pre&gt;&lt;font size="2"&gt;security = share&lt;br&gt;...&lt;br&gt;...&lt;br&gt;guest account = nobody&lt;/font&gt;&lt;br&gt;&lt;/pre&gt;&lt;p&gt;Now, we can create a share to be accessible to guest users:&lt;/p&gt;   &lt;pre&gt;[Guest Share]&lt;br&gt;        comment = Guest access share&lt;br&gt;        path = /path/to/dir/to/share&lt;br&gt;        browseable = yes&lt;br&gt;        read only = yes&lt;br&gt;        guest ok = yes&lt;br&gt;&lt;/pre&gt;&lt;p&gt;You can now test that your configuration is good using &lt;i&gt;testparm&lt;/i&gt;:&lt;/p&gt;    &lt;p&gt;$ testparm&lt;/p&gt; &lt;p&gt;If everything is fine, it is time to reload samba service to have  your new configuration taken into account:&lt;/p&gt; &lt;p&gt;$sudo /etc/init.d/samba reload&lt;/p&gt; &lt;p&gt;That&amp;#39;s it, anybody in your LAN can now access your share.&lt;/p&gt;&lt;br&gt; &lt;/div&gt;&lt;/div&gt;&lt;br&gt; &lt;/div&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-5334066205327723838?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/5334066205327723838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/make-samba-share-without-password_12.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/5334066205327723838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/5334066205327723838'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/make-samba-share-without-password_12.html' title='Make samba share without password'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-8491614490950098717</id><published>2010-05-11T22:50:00.001-07:00</published><updated>2010-05-11T22:50:57.939-07:00</updated><title type='text'>IP to host name and mac resolution</title><content type='html'>&lt;div class="gmail_quote"&gt;&lt;div class="im"&gt;&lt;div class="gmail_quote"&gt;Just use below command &lt;br&gt; &lt;br&gt;NBTSTAT -A IPADDRESS&lt;br&gt;&lt;br&gt;shows mac address and hostname &lt;br&gt; &lt;/div&gt;&lt;br&gt;&lt;/div&gt;More about&lt;span style="font-family: arial black,sans-serif;"&gt; Nbtstat &lt;/span&gt;   &lt;p&gt;Nbtstat is designed to  help troubleshoot NetBIOS name resolution problems. When a network is  functioning normally, NetBIOS over TCP/IP (NetBT) resolves NetBIOS names  to IP addresses. It does this through several options for NetBIOS name  resolution, including local cache lookup, WINS server query, broadcast,  LMHOSTS lookup, Hosts lookup, and DNS server query.&lt;/p&gt; &lt;p&gt;The  &lt;b&gt;nbtstat&lt;/b&gt;  command removes and corrects preloaded entries using a number of  case-sensitive switches. The  &lt;b&gt;nbtstat&lt;/b&gt; &lt;b&gt; &lt;i&gt; -&lt;/i&gt; &lt;/b&gt; &lt;b&gt; a&lt;/b&gt; &lt;b&gt; &lt;i&gt; &amp;lt;&lt;/i&gt; &lt;/b&gt; &lt;i&gt;name&lt;/i&gt; &lt;b&gt; &lt;i&gt;&amp;gt;&lt;/i&gt; &lt;/b&gt; &lt;i&gt; &lt;/i&gt;  command performs a NetBIOS adapter status command on the computer name  specified by &amp;lt; &lt;i&gt;name&amp;gt;&lt;/i&gt; .  The adapter status command returns the local NetBIOS name table for that  computer as well as the MAC address of the adapter card. The  &lt;b&gt;nbtstat -A &lt;/b&gt; &amp;lt; &lt;i&gt;IP address&lt;/i&gt; &amp;gt; command performs the same function using a target IP address rather  than a name.&lt;/p&gt; &lt;p&gt;The &lt;b&gt; nbtstat &lt;/b&gt; &lt;b&gt; &lt;i&gt;-&lt;/i&gt; &lt;/b&gt; &lt;b&gt; c&lt;/b&gt;  option shows the contents of the NetBIOS name cache, which contains  NetBIOS name-to-IP address mappings.&lt;/p&gt; &lt;p&gt; &lt;b&gt;nbtstat -n&lt;/b&gt;  displays the names that have been registered locally on the system by  NetBIOS applications such as the server and redirector.&lt;/p&gt; &lt;p&gt;The  &lt;b&gt;nbtstat&lt;/b&gt; &lt;b&gt; &lt;i&gt; &lt;/i&gt; &lt;/b&gt; &lt;b&gt; -r&lt;/b&gt;  command displays the count of all NetBIOS names resolved by broadcast  and by querying a WINS server. The  &lt;b&gt;nbtstat&lt;/b&gt; &lt;b&gt; &lt;i&gt; &lt;/i&gt; &lt;/b&gt; &lt;b&gt; -R&lt;/b&gt;  command purges the name cache and reloads all #PRE entries from the  LMHOSTS file. #PRE entries are the LMHOSTS name entries that are  preloaded into the cache. For more information about the LMHOSTS file,  see the appendix  &lt;a href="http://technet.microsoft.com/en-us/library/cc977602.aspx" target="_blank"&gt;&amp;quot;LMHOSTS  Files&amp;quot;&lt;/a&gt;  in this book.&lt;/p&gt; &lt;p&gt; &lt;b&gt;Nbtstat -RR&lt;/b&gt;  sends name release packets to the WINS server and starts a refresh,  thus re-registering all names with the name server without having to  reboot. This is a new option in Windows NT 4.0 with Service Pack 4 as  well as in Windows 2000.&lt;/p&gt; &lt;p&gt;You can use  &lt;b&gt;nbtstat&lt;/b&gt; &lt;b&gt; &lt;i&gt; &lt;/i&gt; &lt;/b&gt; &lt;b&gt; -S&lt;/b&gt;  to list the current NetBIOS sessions and their status, including  statistics. Sample output looks like this:&lt;/p&gt; &lt;p&gt;C:\&amp;gt;nbtstat -S&lt;/p&gt; &lt;p&gt;Local  Area Connection:&lt;/p&gt; &lt;p&gt;Node IpAddress: [172.16.0.142]     Scope Id: []&lt;/p&gt;  &lt;p&gt;           NetBIOS Connection Table&lt;/p&gt; &lt;p&gt;Local Name    State     In/Out Remote Host   Input   Output&lt;/p&gt; &lt;p&gt;------------------------------------------------------------------&lt;/p&gt;  &lt;p&gt;TESTPC1 &amp;lt;00&amp;gt; Connected Out    172.16.210.25    6MB     5MB&lt;/p&gt;  &lt;p&gt;TESTPC1 &amp;lt;00&amp;gt; Connected Out    172.16.3.1     108KB   116KB&lt;/p&gt;  &lt;p&gt;TESTPC1 &amp;lt;00&amp;gt; Connected Out    172.16.3.20     299KB    19KB&lt;/p&gt;  &lt;p&gt;TESTPC1 &amp;lt;00&amp;gt; Connected Out    172.16.3.4     324KB    19KB&lt;/p&gt;  &lt;p&gt;TESTPC1 &amp;lt;03&amp;gt; Listening&lt;/p&gt; &lt;p&gt;Finally,  &lt;b&gt;nbtstat -s&lt;/b&gt;  provides a similar set of session listings, but provides the remote  computer names, rather than their IP addresses.&lt;/p&gt; &lt;p&gt;&lt;img alt="note-icon" src="http://i.technet.microsoft.com/Cc940106.note%28en-us,TechNet.10%29.gif" border="0"&gt; &lt;b&gt;Note&lt;/b&gt; &lt;/p&gt; &lt;p&gt;The options for the  &lt;b&gt;Nbtstat&lt;/b&gt;  command are case sensitive.&lt;/p&gt; &lt;p&gt;The Nbtstat switches are listed in  Table 3.4.&lt;/p&gt; &lt;p&gt; &lt;b&gt;Table 3.4    Nbtstat Switches&lt;/b&gt; &lt;/p&gt;  &lt;table&gt;&lt;tbody&gt;&lt;tr&gt;  &lt;th&gt; &lt;p&gt; Switch&lt;/p&gt; &lt;/th&gt; &lt;th&gt; &lt;p&gt; Name&lt;/p&gt; &lt;/th&gt; &lt;th&gt; &lt;p&gt; Function&lt;/p&gt; &lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;p&gt; -a &amp;lt; &lt;i&gt;name&lt;/i&gt; &amp;gt;&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; adapter status&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; Returns the NetBIOS name table and MAC address of the address card for  the computer name specified.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;p&gt; -A &amp;lt; &lt;i&gt;IP address&lt;/i&gt; &amp;gt;&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; Adapter status&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; Lists the same information as -a when given the target&amp;#39;s IP address.&lt;/p&gt;  &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;p&gt; -c&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; cache&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; Lists the contents of the NetBIOS name cache.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;p&gt; [ &lt;i&gt;Number&lt;/i&gt; ]&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; Interval&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; Typing a numerical value tells Nbtstat to redisplay selected statistics  each interval seconds, pausing between each display. Press Ctrl+C to  stop redisplaying statistics.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;p&gt; -n&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; names&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; Displays the names registered locally by NetBIOS applications such as  the server and redirector.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;p&gt; -r&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; resolved&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; Displays a count of all names resolved by broadcast or WINS server.&lt;/p&gt; &lt;/td&gt;  &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;p&gt; -R&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; Reload&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; Purges the name cache and reloads all #PRE entries from LMHOSTS.&lt;/p&gt; &lt;/td&gt;  &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;p&gt; -RR&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; ReleaseRefresh&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; Releases and reregisters all names with the name server.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td&gt; &lt;p&gt; -s&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; sessions&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; Lists the NetBIOS sessions table converting destination IP addresses to  computer NetBIOS names.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;p&gt; -S&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; Sessions&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; Lists the current NetBIOS sessions and their status, with the IP  address.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;p&gt; /?&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; Help&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; Displays this list.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-8491614490950098717?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/8491614490950098717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/ip-to-host-name-and-mac-resolution_11.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8491614490950098717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8491614490950098717'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/ip-to-host-name-and-mac-resolution_11.html' title='IP to host name and mac resolution'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-2538840137655697638</id><published>2010-05-11T03:13:00.001-07:00</published><updated>2010-05-11T03:13:17.751-07:00</updated><title type='text'>change user's home directory</title><content type='html'>To change the user&amp;#39;s home directory, just use the &amp;#39;usermod&amp;#39; command,  which exists on all unices.&lt;br&gt;It works like this:&lt;br&gt;  usermod -d /path/to/new/homedir/ username &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-2538840137655697638?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/2538840137655697638/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/change-users-home-directory.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/2538840137655697638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/2538840137655697638'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/change-users-home-directory.html' title='change user&apos;s home directory'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-8158938233300356147</id><published>2010-05-10T02:45:00.001-07:00</published><updated>2010-05-10T02:45:20.269-07:00</updated><title type='text'>add a user to the sudoers list</title><content type='html'>    &lt;div style="float: left; margin-top: 15px; margin-right: 10px;"&gt; How to add a user to the sudoers list? Beleive it or not, this is  a fairly common question and in all reality the answer is quite simple.  Adding a user to the sudoers list on a fully installed Linux system  such as Debian is only possible via the command visudo. Users in the  sudoers list are allowed the privileges to run commands and open files  as the root user.  In the following quick tutorial, we will show you how  adding a new sudoer is quickly done.&lt;/div&gt; 			 				 &lt;p&gt;&lt;span id="more-247"&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;How to add a user to the sudoers list:&lt;/strong&gt;&lt;/p&gt; &lt;ol&gt;&lt;li&gt;Open a Root Terminal and type &lt;strong&gt;visudo&lt;/strong&gt; (to access and  edit the list)&lt;/li&gt;&lt;li&gt;Using the &lt;strong&gt;up/down arrows&lt;/strong&gt;, navigate to the bottom of  the sudoers file that is now displayed in the terminal&lt;/li&gt;&lt;li&gt;Just under the line that looks like the following:&lt;/li&gt;&lt;blockquote&gt;&lt;p&gt;root    ALL=(ALL) ALL&lt;/p&gt;&lt;/blockquote&gt;&lt;li&gt;Add the following (replacing user with your actual username):&lt;/li&gt; &lt;blockquote&gt;&lt;p&gt;user   ALL=(ALL) ALL&lt;/p&gt;&lt;/blockquote&gt;&lt;li&gt;Now press &lt;strong&gt;Ctrl+X&lt;/strong&gt; and press &lt;strong&gt;Y&lt;/strong&gt; when  promted to save&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;That&amp;#39;s it, your new user now has root privileges!&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Example Sudoers Screenshot:&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;img src="http://www.pendrivelinux.com/wp-content/uploads/sudoers.png" alt="Adding a new sudoer"&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-8158938233300356147?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/8158938233300356147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/add-user-to-sudoers-list.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8158938233300356147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8158938233300356147'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/add-user-to-sudoers-list.html' title='add a user to the sudoers list'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-5515220778675631615</id><published>2010-05-10T01:41:00.001-07:00</published><updated>2010-05-10T01:41:36.335-07:00</updated><title type='text'>Restart GNOME without rebooting the computer</title><content type='html'>&lt;h3&gt;&lt;/h3&gt;                                          &lt;p&gt;           &lt;/p&gt;&lt;ul&gt;&lt;li&gt;               &lt;p&gt;Save and close all open applications.&lt;/p&gt;             &lt;/li&gt;&lt;li&gt;               &lt;p&gt;Use the &lt;b&gt;Ctrl&lt;/b&gt;-&lt;b&gt;Alt&lt;/b&gt;-&lt;b&gt;Backspace&lt;/b&gt; 							 shortcut keys to restart GNOME. 					&lt;/p&gt;             &lt;/li&gt;&lt;li&gt;               &lt;p&gt;If &lt;b&gt;Ctrl&lt;/b&gt;-&lt;b&gt;Alt&lt;/b&gt;-&lt;b&gt;Backspace&lt;/b&gt;               is disabled, type 						&lt;/p&gt;               &lt;blockquote class="no"&gt;sudo /etc/init.d/gdm restart&lt;/blockquote&gt;&lt;/li&gt;&lt;/ul&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-5515220778675631615?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/5515220778675631615/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/restart-gnome-without-rebooting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/5515220778675631615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/5515220778675631615'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/restart-gnome-without-rebooting.html' title='Restart GNOME without rebooting the computer'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-5325460603525341153</id><published>2010-05-05T04:58:00.001-07:00</published><updated>2010-05-05T04:58:16.954-07:00</updated><title type='text'>start program automatically in Debian</title><content type='html'>&lt;h1 class="title"&gt;Starting programs automatically at startup in Gnome&lt;/h1&gt; 				&lt;span class="submitted"&gt;&lt;/span&gt;                     &lt;p&gt;&lt;img alt="Gnome Logo" style="float: right;" src="http://www.go2linux.org/pics/single_pictures/gnome_logo.gif"&gt;&lt;/p&gt;  &lt;div class="block block-adsense_managed" id="block-adsense_managed-0"&gt;        &lt;div class="content"&gt;&lt;div style="text-align: left;"&gt;&lt;div class="adsense adsense_managed"&gt;  There are some applications we always start as soon as we log into  our Linux, as Firefox or our news reader.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;  &lt;/div&gt;   &lt;p&gt;If you want you can ask Linux to start these programs for you as soon  as you log in, to do this just go to:&lt;/p&gt;  &lt;div class="block  block-block" id="block-block-18"&gt;        &lt;div class="content"&gt;  &lt;/div&gt;  &lt;/div&gt;  &lt;p&gt;&lt;code&gt;System-&amp;gt;Preferences-&amp;gt;Sessions&lt;/code&gt; in you Gnome menu.&lt;/p&gt; &lt;p&gt;&lt;img src="http://www.go2linux.org/pics/sessions/sessions.png" alt="Gnome Sessions screen shot"&gt;&lt;/p&gt; &lt;p&gt;Now click on Add, and fill in the fields the appropriate info, so you  can start you new application.&lt;/p&gt; &lt;p&gt;&lt;img src="http://www.go2linux.org/pics/sessions/sessions2.png" alt="Gnome Sessions screen shot"&gt;&lt;/p&gt; &lt;p&gt;Put in &lt;strong&gt;name&lt;/strong&gt; the name of the application, in &lt;strong&gt;command&lt;/strong&gt;  the command you need to start that applications (better if you use the  complete path) you can use the command &lt;code&gt;which&lt;/code&gt; to know where  an application is.&lt;/p&gt; &lt;p&gt;in this case I used&lt;/p&gt; &lt;p class="codigo"&gt;which firefox&lt;/p&gt; &lt;p&gt;Then fill in &lt;strong&gt;comment&lt;/strong&gt; anything that will describe to  you, what that command is going to do.&lt;/p&gt; &lt;p&gt;You can start as many applications as you want, but of course this  will slow down your Linux boot up.&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-5325460603525341153?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/5325460603525341153/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/start-program-automatically-in-debian.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/5325460603525341153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/5325460603525341153'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/start-program-automatically-in-debian.html' title='start program automatically in Debian'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-4997045372590821535</id><published>2010-05-05T04:13:00.001-07:00</published><updated>2010-05-05T04:13:29.690-07:00</updated><title type='text'>Assigning multiple IP address in debian</title><content type='html'>/etc/network/interfaces  file contains network interface  configuration information for the both Ubuntu and Debian Linux.  This is  where you configure how your system is connected to the network. &lt;h2&gt;Defining physical interfaces  such as eth0&lt;/h2&gt; &lt;p&gt;Lines beginning with the word &amp;quot;auto&amp;quot; are used to identify the  physical interfaces to be brought up when ifup is run with the -a  option.  (This option is used by  the  system  boot scripts.)  Physical  interface names should follow the word &amp;quot;auto&amp;quot; on the same line.  There  can be multiple &amp;quot;auto&amp;quot; stanzas.  ifup brings the named inter  faces up  in the order listed. For example following example setup eth0 (first  network interface card) with 192.168.1.5 IP address and gateway (router)  to &lt;a href="http://192.168.1.254"&gt;192.168.1.254&lt;/a&gt;:&lt;br&gt; &lt;code&gt;iface eth0 inet static&lt;br&gt; address 192.168.1.5&lt;br&gt; netmask 255.255.255.0&lt;br&gt; gateway 192.168.1.254&lt;/code&gt;&lt;/p&gt; &lt;h2&gt;Setup interface to dhcp&lt;/h2&gt; &lt;p&gt;To setup eth0 to dhcp, enter:&lt;br&gt; &lt;code&gt;auto eth0&lt;br&gt; iface eth0 inet dhcp&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="4"&gt;&lt;b&gt;Assigining Multiple IP address in Debian&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;Edit the file that Fedora places the interface info in, in Debian it&amp;#39;s  located in &lt;b&gt;/etc/networking/interfaces&lt;/b&gt;.&lt;br&gt;&lt;/p&gt;&lt;font style="font-family: courier new,monospace;" size="2"&gt;auto eth0&lt;br&gt;iface eth0 inet static&lt;br&gt;    address 192.168.1.20&lt;br&gt;    netmask 255.255.255.0&lt;br&gt;gateway 192.168.1.1&lt;br&gt; &lt;br&gt;auto eth0:0&lt;br&gt;iface eth0:0 inet static &amp;lt;---next interface in eth0&lt;br&gt;    address 192.168.10.21   &amp;lt;--- can not be the same as any other IP&lt;br&gt;    netmask 255.255.255.0&lt;br&gt;gateway 192.168.10.1&lt;/font&gt;&lt;br&gt;&lt;p&gt;Following is file located at &lt;span style="color: rgb(102, 102, 204);"&gt;/usr/share/doc/ifupdown/examples/network-interfaces&lt;/span&gt;,  use this file as reference (don&amp;#39;t forget &lt;span style="color: rgb(153, 51, 153);"&gt;interfaces&lt;/span&gt; man pages for more help): &lt;/p&gt; &lt;pre&gt;######################################################################&lt;br&gt;# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)&lt;br&gt;#&lt;br&gt;# A &amp;quot;#&amp;quot; character in the very first column makes the rest of the line&lt;br&gt; # be ignored. Blank lines are ignored. Lines may be indented freely.&lt;br&gt;# A &amp;quot;\&amp;quot; character at the very end of the line indicates the next line&lt;br&gt;# should be treated as a continuation of the current one.&lt;br&gt;#&lt;br&gt; # The &amp;quot;pre-up&amp;quot;, &amp;quot;up&amp;quot;, &amp;quot;down&amp;quot; and &amp;quot;post-down&amp;quot; options are valid for all&lt;br&gt;# interfaces, and may be specified multiple times. All other options&lt;br&gt;# may only be specified once.&lt;br&gt;#&lt;br&gt; # See the interfaces(5) manpage for information on what options are&lt;br&gt;# available.&lt;br&gt;######################################################################&lt;br&gt;&lt;br&gt;# We always want the loopback interface.&lt;br&gt;#&lt;br&gt;# auto lo&lt;br&gt; # iface lo inet loopback&lt;br&gt;&lt;br&gt;# An example ethernet card setup: (broadcast and gateway are optional)&lt;br&gt;#&lt;br&gt;# auto eth0&lt;br&gt;# iface eth0 inet static&lt;br&gt;#     address 192.168.0.42&lt;br&gt;#     network 192.168.0.0&lt;br&gt;#     netmask 255.255.255.0&lt;br&gt; #     broadcast 192.168.0.255&lt;br&gt;#     gateway 192.168.0.1&lt;br&gt;&lt;br&gt;# A more complicated ethernet setup, with a less common netmask, and a downright&lt;br&gt;# weird broadcast address: (the &amp;quot;up&amp;quot; lines are executed verbatim when the&lt;br&gt; # interface is brought up, the &amp;quot;down&amp;quot; lines when it&amp;#39;s brought down)&lt;br&gt;#&lt;br&gt;# auto eth0&lt;br&gt;# iface eth0 inet static&lt;br&gt;#     address 192.168.1.42&lt;br&gt;#     network 192.168.1.0&lt;br&gt;#     netmask 255.255.255.128&lt;br&gt; #     broadcast 192.168.1.0&lt;br&gt;#     up route add -net 192.168.1.128 netmask 255.255.255.128 gw 192.168.1.2&lt;br&gt;#     up route add default gw 192.168.1.200&lt;br&gt;#     down route del default gw 192.168.1.200&lt;br&gt;#     down route del -net 192.168.1.128 netmask 255.255.255.128 gw 192.168.1.2&lt;br&gt; &lt;br&gt;# A more complicated ethernet setup with a single ethernet card with&lt;br&gt;# two interfaces.&lt;br&gt;# Note: This happens to work since ifconfig handles it that way, not because&lt;br&gt;# ifup/down handles the &amp;#39;:&amp;#39; any differently.&lt;br&gt; # Warning: There is a known bug if you do this, since the state will not&lt;br&gt;# be properly defined if you try to &amp;#39;ifdown eth0&amp;#39; when both interfaces&lt;br&gt;# are up. The ifconfig program will not remove eth0 but it will be&lt;br&gt; # removed from the interfaces state so you will see it up until you execute:&lt;br&gt;# &amp;#39;ifdown eth0:1 ; ifup eth0; ifdown eth0&amp;#39;&lt;br&gt;# BTW, this is &amp;quot;bug&amp;quot; #193679 (it&amp;#39;s not really a bug, it&amp;#39;s more of a&lt;br&gt; # limitation)&lt;br&gt;#&lt;br&gt;# auto eth0 eth0:1&lt;br&gt;# iface eth0 inet static&lt;br&gt;#     address 192.168.0.100&lt;br&gt;#     network 192.168.0.0&lt;br&gt;#     netmask 255.255.255.0&lt;br&gt;#     broadcast 192.168.0.255&lt;br&gt;#     gateway 192.168.0.1&lt;br&gt; # iface eth0:1 inet static&lt;br&gt;#     address 192.168.0.200&lt;br&gt;#     network 192.168.0.0&lt;br&gt;#     netmask 255.255.255.0&lt;br&gt;&lt;br&gt;# &amp;quot;pre-up&amp;quot; and &amp;quot;post-down&amp;quot; commands are also available. In addition, the&lt;br&gt; # exit status of these commands are checked, and if any fail, configuration&lt;br&gt;# (or deconfiguration) is aborted. So:&lt;br&gt;#&lt;br&gt;# auto eth0&lt;br&gt;# iface eth0 inet dhcp&lt;br&gt;#     pre-up [ -f /etc/network/local-network-ok ]&lt;br&gt;#&lt;br&gt; # will allow you to only have eth0 brought up when the file&lt;br&gt;# /etc/network/local-network-ok exists.&lt;br&gt;&lt;br&gt;# Two ethernet interfaces, one connected to a trusted LAN, the other to&lt;br&gt;# the untrusted Internet. If their MAC addresses get swapped (because an&lt;br&gt; # updated kernel uses a different order when probing for network cards,&lt;br&gt;# say), then they don&amp;#39;t get brought up at all.&lt;br&gt;#&lt;br&gt;# auto eth0 eth1&lt;br&gt;# iface eth0 inet static&lt;br&gt;#     address 192.168.42.1&lt;br&gt;#     netmask 255.255.255.0&lt;br&gt; #     pre-up /path/to/check-mac-address.sh eth0 11:22:33:44:55:66&lt;br&gt;#     pre-up /usr/local/sbin/enable-masq&lt;br&gt;# iface eth1 inet dhcp&lt;br&gt;#     pre-up /path/to/check-mac-address.sh eth1 AA:BB:CC:DD:EE:FF&lt;br&gt;#     pre-up /usr/local/sbin/firewall&lt;br&gt; &lt;br&gt;# Two ethernet interfaces, one connected to a trusted LAN, the other to&lt;br&gt;# the untrusted Internet, identified by MAC address rather than interface&lt;br&gt;# name:&lt;br&gt;#&lt;br&gt;# auto eth0 eth1&lt;br&gt;# mapping eth0 eth1&lt;br&gt;#     script /path/to/get-mac-address.sh&lt;br&gt; #     map 11:22:33:44:55:66 lan&lt;br&gt;#     map AA:BB:CC:DD:EE:FF internet&lt;br&gt;# iface lan inet static&lt;br&gt;#     address 192.168.42.1&lt;br&gt;#     netmask 255.255.255.0&lt;br&gt;#     pre-up /usr/local/sbin/enable-masq $IFACE&lt;br&gt;# iface internet inet dhcp&lt;br&gt; #     pre-up /usr/local/sbin/firewall $IFACE&lt;br&gt;&lt;br&gt;# A PCMCIA interface for a laptop that is used in different locations:&lt;br&gt;# (note the lack of an &amp;quot;auto&amp;quot; line for any of these)&lt;br&gt;#&lt;br&gt;# mapping eth0&lt;br&gt;#    script /path/to/pcmcia-compat.sh&lt;br&gt; #    map home,*,*,*                  home&lt;br&gt;#    map work,*,*,00:11:22:33:44:55  work-wireless&lt;br&gt;#    map work,*,*,01:12:23:34:45:50  work-static&lt;br&gt;#&lt;br&gt;# iface home inet dhcp&lt;br&gt;# iface work-wireless bootp&lt;br&gt;# iface work-static static&lt;br&gt; #     address 10.15.43.23&lt;br&gt;#     netmask 255.255.255.0&lt;br&gt;#     gateway 10.15.43.1&lt;br&gt;#&lt;br&gt;# Note, this won&amp;#39;t work unless you specifically change the file&lt;br&gt;# /etc/pcmcia/network to look more like:&lt;br&gt;#&lt;br&gt;#     if [ -r ./shared ] ; then . ./shared ; else . /etc/pcmcia/shared ; fi&lt;br&gt; #     get_info $DEVICE&lt;br&gt;#     case &amp;quot;$ACTION&amp;quot; in&lt;br&gt;#         &amp;#39;start&amp;#39;)&lt;br&gt;#             /sbin/ifup $DEVICE&lt;br&gt;#             ;;&lt;br&gt;#         &amp;#39;stop&amp;#39;)&lt;br&gt;#             /sbin/ifdown $DEVICE&lt;br&gt;#             ;;&lt;br&gt; #     esac&lt;br&gt;#     exit 0&lt;br&gt;&lt;br&gt;# An alternate way of doing the same thing: (in this case identifying&lt;br&gt;# where the laptop is is done by configuring the interface as various&lt;br&gt;# options, and seeing if a computer that is known to be on each particular&lt;br&gt; # network will respond to pings. The various numbers here need to be chosen&lt;br&gt;# with a great deal of care.)&lt;br&gt;#&lt;br&gt;# mapping eth0&lt;br&gt;#    script /path/to/ping-places.sh&lt;br&gt;#    map &lt;a href="http://192.168.42.254/24"&gt;192.168.42.254/24&lt;/a&gt; 192.168.42.1 home&lt;br&gt; #    map &lt;a href="http://10.15.43.254/24"&gt;10.15.43.254/24&lt;/a&gt; 10.15.43.1 work-wireless&lt;br&gt;#    map &lt;a href="http://10.15.43.23/24"&gt;10.15.43.23/24&lt;/a&gt; 10.15.43.1 work-static&lt;br&gt;#&lt;br&gt;# iface home inet dhcp&lt;br&gt;# iface work-wireless bootp&lt;br&gt; # iface work-static static&lt;br&gt;#     address 10.15.43.23&lt;br&gt;#     netmask 255.255.255.0&lt;br&gt;#     gateway 10.15.43.1&lt;br&gt;#&lt;br&gt;# Note that the ping-places script requires the iproute package installed,&lt;br&gt;# and the same changes to /etc/pcmcia/network are required for this as for&lt;br&gt; # the previous example.&lt;br&gt;&lt;br&gt;# Set up an interface to read all the traffic on the network. This&lt;br&gt;# configuration can be useful to setup Network Intrusion Detection&lt;br&gt;# sensors in &amp;#39;stealth&amp;#39;-type configuration. This prevents the NIDS&lt;br&gt; # system to be a direct target in a hostile network since they have&lt;br&gt;# no IP address on the network. Notice, however, that there have been&lt;br&gt;# known bugs over time in sensors part of NIDS (for example see&lt;br&gt;# DSA-297 related to Snort) and remote buffer overflows might even be&lt;br&gt; # triggered by network packet processing.&lt;br&gt;#&lt;br&gt;# auto eth0&lt;br&gt;# iface eth0 inet manual&lt;br&gt;# 	up ifconfig $IFACE 0.0.0.0 up&lt;br&gt;#       up ip link set $IFACE promisc on&lt;br&gt;#       down ip link set $IFACE promisc off&lt;br&gt;#       down ifconfig $IFACE down&lt;br&gt; &lt;br&gt;# Set up an interface which will not be allocated an IP address by&lt;br&gt;# ifupdown but will be configured through external programs. This&lt;br&gt;# can be useful to setup interfaces configured through other programs,&lt;br&gt;# like, for example, PPPOE scripts.&lt;br&gt; #&lt;br&gt;# auto eth0&lt;br&gt;# iface eth0 inet manual&lt;br&gt;#       up ifconfig $IFACE 0.0.0.0 up&lt;br&gt;#       up /usr/local/bin/myconfigscript&lt;br&gt;#       down ifconfig $IFACE down&lt;br&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-4997045372590821535?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/4997045372590821535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/assigning-multiple-ip-address-in-debian.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/4997045372590821535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/4997045372590821535'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/05/assigning-multiple-ip-address-in-debian.html' title='Assigning multiple IP address in debian'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-1600477386155155548</id><published>2010-04-28T02:08:00.001-07:00</published><updated>2010-04-28T02:08:18.049-07:00</updated><title type='text'>Backup and Restore MySQL Database</title><content type='html'>&lt;font size="4"&gt;&lt;b&gt;How to Backup and restore MySQL database from sql dump file?&lt;/b&gt;&lt;/font&gt;&lt;p&gt;&lt;img src="http://static.flickr.com/95/249376907_0468ae5d5a_m.jpg" alt="mysql, mysql database, sql database, sql, database server, server,  sql database server, mysql database server"&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="txtplain1"&gt;&lt;p&gt;&lt;strong&gt;&lt;font size="4"&gt;Backup:&lt;/font&gt;&lt;br&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Playing with mysqldump&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;If  you have either a shell or telnet access to your database server, you  can backup the database using &lt;font face="courier new, courier, mono"&gt;mysqldump&lt;/font&gt;.  By default, the output of the command will dump the contents of the  database in SQL statements to your console. This output can then be  piped or redirected to any location you want. If you plan to backup your  database, you can pipe the output to a sql file, which will contain the  SQL statements to recreate and populate the database tables when you  wish to restore your database. There are more adventurous ways to use  the output of &lt;font face="courier new, courier, mono"&gt;mysqldump&lt;/font&gt;. &lt;/p&gt;&lt;p&gt;&lt;strong&gt;A  Simple Database Backup:&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;You can use mysqldump to create a  simple backup of your database using the following syntax. &lt;/p&gt;&lt;blockquote dir="ltr" style="margin-right: 0px;"&gt;&lt;p&gt;&lt;font face="courier new,  courier, mono"&gt;mysqldump -u [username] -p [password] [databasename] &amp;gt;  [backupfile.sql]&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;ul&gt;&lt;ul&gt;&lt;li&gt;&lt;font face="courier  new, courier, mono"&gt;[username]&lt;/font&gt; - this is your database username &lt;/li&gt;&lt;li&gt;&lt;font face="courier new, courier, mono"&gt;[password]&lt;/font&gt; - this is the  password for your database &lt;/li&gt;&lt;li&gt;&lt;font face="courier new, courier,  mono"&gt;[databasename]&lt;/font&gt; - the name of your database &lt;/li&gt;&lt;li&gt;&lt;font face="courier new, courier, mono"&gt;[backupfile.sql]&lt;/font&gt; - the file to  which the backup should be written. &lt;br&gt; &lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;p&gt;The resultant  dump file will contain all the SQL statements needed to create the  table and populate the table in a new database server. To backup your  database &amp;#39;Customers&amp;#39; with the username &amp;#39;sadmin&amp;#39; and password &amp;#39;pass21&amp;#39; to  a file custback.sql, you would issue the command:&lt;/p&gt;&lt;blockquote dir="ltr" style="margin-right: 0px;"&gt;&lt;p&gt;&lt;font face="courier new,  courier, mono"&gt;mysqldump -u sadmin -p pass21 Customers &amp;gt; custback.sql&lt;/font&gt;  &lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;You can also ask &lt;font face="courier new, courier,  mono"&gt;mysqldump&lt;/font&gt; to add a drop table command before every create  command by using the option &lt;font face="courier new, courier, mono"&gt;--add-drop-table&lt;/font&gt;.  This option is useful if you would like to create a backup file which  can rewrite an existing database without having to delete the older  database manually first.&lt;/p&gt;&lt;blockquote dir="ltr" style="margin-right: 0px;"&gt;&lt;p&gt;&lt;font face="courier new, courier, mono"&gt;mysqldump  --add-drop-table -u sadmin -p pass21 Customers &amp;gt; custback.sql&lt;/font&gt; &lt;/p&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;br&gt; &lt;/p&gt;&lt;p&gt;&lt;span class="txtplain1"&gt;&lt;p&gt;&lt;strong&gt;Playing with mysqldump&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;If  you have either a shell or telnet access to your database server, you  can backup the database using &lt;font face="courier new, courier, mono"&gt;mysqldump&lt;/font&gt;.  By default, the output of the command will dump the contents of the  database in SQL statements to your console. This output can then be  piped or redirected to any location you want. If you plan to backup your  database, you can pipe the output to a sql file, which will contain the  SQL statements to recreate and populate the database tables when you  wish to restore your database. There are more adventurous ways to use  the output of &lt;font face="courier new, courier, mono"&gt;mysqldump&lt;/font&gt;. &lt;/p&gt;&lt;p&gt;&lt;strong&gt;A  Simple Database Backup:&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;You can use mysqldump to create a  simple backup of your database using the following syntax. &lt;/p&gt;&lt;blockquote dir="ltr" style="margin-right: 0px;"&gt;&lt;p&gt;&lt;font face="courier new,  courier, mono"&gt;mysqldump -u [username] -p [password] [databasename] &amp;gt;  [backupfile.sql]&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;ul&gt;&lt;ul&gt;&lt;li&gt;&lt;font face="courier  new, courier, mono"&gt;[username]&lt;/font&gt; - this is your database username &lt;/li&gt;&lt;li&gt;&lt;font face="courier new, courier, mono"&gt;[password]&lt;/font&gt; - this is the  password for your database &lt;/li&gt;&lt;li&gt;&lt;font face="courier new, courier,  mono"&gt;[databasename]&lt;/font&gt; - the name of your database &lt;/li&gt;&lt;li&gt;&lt;font face="courier new, courier, mono"&gt;[backupfile.sql]&lt;/font&gt; - the file to  which the backup should be written. &lt;br&gt; &lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;p&gt;The resultant  dump file will contain all the SQL statements needed to create the  table and populate the table in a new database server. To backup your  database &amp;#39;Customers&amp;#39; with the username &amp;#39;sadmin&amp;#39; and password &amp;#39;pass21&amp;#39; to  a file custback.sql, you would issue the command:&lt;/p&gt;&lt;blockquote dir="ltr" style="margin-right: 0px;"&gt;&lt;p&gt;&lt;font face="courier new,  courier, mono"&gt;mysqldump -u sadmin -p pass21 Customers &amp;gt; custback.sql&lt;/font&gt;  &lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;You can also ask &lt;font face="courier new, courier,  mono"&gt;mysqldump&lt;/font&gt; to add a drop table command before every create  command by using the option &lt;font face="courier new, courier, mono"&gt;--add-drop-table&lt;/font&gt;.  This option is useful if you would like to create a backup file which  can rewrite an existing database without having to delete the older  database manually first.&lt;/p&gt;&lt;blockquote dir="ltr" style="margin-right: 0px;"&gt;&lt;p&gt;&lt;font face="courier new, courier, mono"&gt;mysqldump  --add-drop-table -u sadmin -p pass21 Customers &amp;gt; custback.sql&lt;/font&gt; &lt;/p&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;font size="4"&gt;&lt;b&gt;Restore&lt;br&gt;&lt;/b&gt;&lt;/font&gt;There are 2 ways &lt;span class="IL_AD" id="IL_AD10"&gt;to restore&lt;/span&gt; your MySQL &lt;span class="IL_AD" id="IL_AD2"&gt;database&lt;/span&gt; from sql dump file.&lt;/p&gt; &lt;p&gt;1st  way to restore mysql database from sql dump file is using mysql web  control panel – &lt;span class="IL_AD" id="IL_AD8"&gt;phpMyAdmin&lt;/span&gt;&lt;br&gt; -  Log into phpMyAdmin.&lt;br&gt; - Select your preference database on &lt;span class="IL_AD" id="IL_AD3"&gt;the left&lt;/span&gt; database &lt;span class="IL_AD" id="IL_AD9"&gt;navigation&lt;/span&gt; drop down list.&lt;br&gt; &lt;span id="more-31"&gt;&lt;/span&gt;&lt;br&gt;  - Click on &lt;strong&gt;Import&lt;/strong&gt; tab on the top.&lt;br&gt; - Select your  sql dumb file at &lt;strong&gt;File to import&lt;/strong&gt;&lt;br&gt; - Then select your  mysql database charset (ex: Latin1, utf-8)&lt;br&gt; - and click &lt;strong&gt;GO&lt;/strong&gt;  and it's done!&lt;/p&gt;&lt;p&gt;Do not use phpMyAdmin to import or restore your  MySQL database if your MySQL database file is large. This is because,  phpMyAdmin has limit on total upload size which depend on php setting.  Besides, there is also maximum execution time which may cause browser to  time out.&lt;/p&gt;&lt;p&gt;The solution to restore large mysql database from sql  dump file is using unix/linux shell command.&lt;br&gt; To restore mysql  database from a dump file, just type the command below:-&lt;/p&gt;&lt;pre&gt;&lt;font size="4"&gt;&lt;strong&gt;mysql -u #&lt;span class="IL_AD" id="IL_AD7"&gt;username&lt;/span&gt;# -p #database# &amp;lt; #dump_file#&lt;/strong&gt;&lt;/font&gt;&lt;br&gt;&lt;/pre&gt;Of course you need to replace #username# to your database  username and #database# to your target database. and rename #dump_file#  to your dump file file name (Ex: dump.sql) Once you enter the command,  the linux/unix shell will prompt you for your database user password,  just key in your database password and you are done &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-1600477386155155548?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/1600477386155155548/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/04/backup-and-restore-mysql-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/1600477386155155548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/1600477386155155548'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/04/backup-and-restore-mysql-database.html' title='Backup and Restore MySQL Database'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-3803964483827149040</id><published>2010-04-25T23:21:00.001-07:00</published><updated>2010-04-25T23:21:42.569-07:00</updated><title type='text'>Save youtube videos from firefox cache</title><content type='html'>&lt;span id="more-585"&gt;&lt;/span&gt;&lt;div class="gmcads"&gt; How could we save a copy of youtube videos or any other video from the Firefox cache  folder :&lt;br&gt; &lt;/div&gt;&lt;ol&gt;&lt;li&gt;Wait for the flash video loading completely, i.e. able to play   to the end&lt;br&gt;  &lt;/li&gt;&lt;li&gt;Open a new tab / window of Firefox and enter &lt;code&gt;about:cache&lt;/code&gt;  as an URL&lt;br&gt;  &lt;/li&gt;&lt;li&gt;Take note of the Firefox cache folder path specified in &lt;strong&gt;Cache  Directory:&lt;/strong&gt; and browse to this folder with Windows Explorer&lt;br&gt; &lt;blockquote&gt;&lt;br&gt;If the &lt;strong&gt;Storage In Use&lt;/strong&gt; greater than or  approaching &lt;strong&gt;Maximum Storage Size&lt;/strong&gt;, the video might not  be cached completely or you'll have to increase &lt;strong&gt;Maximum Storage  Size&lt;/strong&gt; and reload the video again. &lt;br&gt; &lt;br&gt;To set Firefox cache folder maximum storage size, click Tools |  Option… | Network | Cache&lt;br&gt;&lt;/blockquote&gt; &lt;/li&gt;&lt;li&gt;Sort the cached files by file size and try to open the biggest file  with Storm  Codec-MPC or FlV Player/ VLC media Player. (The biggest file is likely to be  the cached YouTube video)&lt;/li&gt;&lt;/ol&gt;  If you want to know what those files in the Firefox cache folder  exactly are, here we go:&lt;br&gt; &lt;ol&gt;&lt;li&gt;While in the &lt;code&gt;about:cache&lt;/code&gt; page, click the &lt;strong&gt;List  Cache Entries&lt;/strong&gt; link of the &lt;strong&gt;Disk cache device&lt;/strong&gt;  section&lt;br&gt;  &lt;/li&gt;&lt;li&gt;Press CTRL + F to search for &lt;strong&gt;Key:&lt;/strong&gt; (URL) with the &lt;code&gt;get_video&lt;/code&gt;  keyword and also with the biggest &lt;strong&gt;Data Size:&lt;/strong&gt; (YouTube  doesn't cache the flash video in FLV extension. For other flash video  hosting site, you may save time by trying to search for .FLV extension).&lt;br&gt;  &lt;/li&gt;&lt;li&gt;Right-click the URL and select the &lt;strong&gt;Open Link In New Tab&lt;/strong&gt;  and refer to the &lt;strong&gt;File on Disk:&lt;/strong&gt;&lt;/li&gt;&lt;/ol&gt; There are many Firefox plugins available to save flash video.  However, if you're not regularly download flash video, then it's worth  to know how to do it manually. Running too many plugins might slow down  the Firefox or overall PC performance too :-) &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-3803964483827149040?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/3803964483827149040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/04/save-youtube-videos-from-firefox-cache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/3803964483827149040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/3803964483827149040'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/04/save-youtube-videos-from-firefox-cache.html' title='Save youtube videos from firefox cache'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-1637985976216514041</id><published>2010-04-06T22:47:00.001-07:00</published><updated>2010-04-06T22:47:04.498-07:00</updated><title type='text'>Changing Default Gateway using many lan</title><content type='html'>&lt;table cellspacing="0" cellpadding="0" border="0" &gt;&lt;tr&gt;&lt;td valign="top" style="font: inherit;"&gt;If many LAN interference are used the default gateway can be changed by&lt;br&gt;command (in XP ,server 2003)&lt;br&gt;route change 0.0.0.0 mask 0.0.0.0&amp;nbsp; &amp;lt;IP of gateway preferred&amp;gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-1637985976216514041?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/1637985976216514041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/04/changing-default-gateway-using-many-lan.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/1637985976216514041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/1637985976216514041'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/04/changing-default-gateway-using-many-lan.html' title='Changing Default Gateway using many lan'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-2641385896844623378</id><published>2010-03-17T00:14:00.001-07:00</published><updated>2010-03-17T00:14:34.591-07:00</updated><title type='text'>Change Administrator Password Remotely</title><content type='html'>Systems administrators that manage local administrative accounts on  multiple computers regularly need to change the account password as part  of standard security practices. &lt;em&gt;PsPasswd&lt;/em&gt; is a tool that lets  you change an account password on the local or remote systems, enabling  administrators to create batch files that run &lt;em&gt;PsPasswd&lt;/em&gt; against  the computers they manage in order to perform a mass change of the  administrator password.&lt;p&gt;&lt;b&gt; Installation&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Just copy &lt;em&gt;PsPasswd&lt;/em&gt;  onto your executable path, and type &amp;quot;pspasswd&amp;quot; with the command-line  syntax shown below..&lt;/p&gt;&lt;p&gt;&lt;b&gt; Using PsPasswd&lt;/b&gt;&lt;/p&gt;&lt;p&gt;You can use &lt;em&gt;PsPasswd&lt;/em&gt;  to change the password of a local or domain account on the local or a  remote computer.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;usage: pspasswd  [[\\computer[,computer[,..] | @file [-u user [-p psswd]]] Username  [NewPassword]&lt;/strong&gt;&lt;/p&gt;&lt;table width="100%" border="0" cellpadding="1" cellspacing="2"&gt;&lt;tbody&gt;&lt;tr valign="top" align="left"&gt;&lt;td width="30"&gt;&lt;strong&gt;computer&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Perform  the command on the remote computer or computers specified. If you omit  the computer name the command runs on the local system, and if you  specify a wildcard (\\*), the command runs on all computers in the  current domain.&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td&gt;&lt;strong&gt;@file&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Run  the command on each computer listed in the text file specified.&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td&gt;&lt;strong&gt;-u&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Specifies  optional user name for login to remote computer.&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td&gt;&lt;strong&gt;-p&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Specifies  optional password for user name. If you omit this you will be prompted  to enter a hidden password.&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td&gt;&lt;strong&gt;Username&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Specifies  name of account for password change.&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td&gt;&lt;strong&gt;NewPassword&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;New password. If  ommitted a NULL password is applied.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;&lt;a id="ctl00_mainContentContainer_ctl19" href="http://download.sysinternals.com/Files/PsTools.zip" onclick="javascript:Track(&amp;#39;ctl00_mainContentContainer_ctl00|ctl00_mainContentContainer_ctl19&amp;#39;,this);"&gt;&lt;img alt="Download" src="http://i.technet.microsoft.com/ee694644.Download_lg%28en-us,MSDN.10%29.png" style="margin-right: 1em;" title="Download" width="45" align="Left" height="45"&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a id="ctl00_mainContentContainer_ctl20" href="http://download.sysinternals.com/Files/PsTools.zip" onclick="javascript:Track(&amp;#39;ctl00_mainContentContainer_ctl00|ctl00_mainContentContainer_ctl20&amp;#39;,this);"&gt;&lt;strong&gt;Download  PsTools&lt;/strong&gt;&lt;br&gt;&lt;/a&gt;&lt;strong&gt;(1.31 MB)&lt;/strong&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-2641385896844623378?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/2641385896844623378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/03/change-administrator-password-remotely.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/2641385896844623378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/2641385896844623378'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/03/change-administrator-password-remotely.html' title='Change Administrator Password Remotely'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-575049374950413522</id><published>2010-03-12T19:22:00.001-08:00</published><updated>2010-03-12T19:22:47.303-08:00</updated><title type='text'>Turn off autoplay in windows7</title><content type='html'>&lt;table cellspacing="0" cellpadding="0" border="0" &gt;&lt;tr&gt;&lt;td valign="top" style="font: inherit;"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="5"&gt;&lt;font color="red"&gt;&lt;font size="6"&gt;Method 1:&lt;/font&gt; &lt;/font&gt;&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;blockquote&gt;&lt;b&gt;&lt;font size="3"&gt;1.&lt;/font&gt;&lt;/b&gt; Go to &lt;b&gt;Control Panel\Hardware and Sound\AutoPlay. &lt;/b&gt;&lt;blockquote&gt;&lt;a href="http://www.sevenforums.com/attachments/tutorials/30384d1254676554-autoplay-enable-disable-autorun-2.png" rel="Lightbox_295423" id="attachment30384"&gt;&lt;img title="AutoPlay - Enable or Disable AutoRun-2.png" src="http://www.sevenforums.com/attachments/tutorials/30384d1254676554t-autoplay-enable-disable-autorun-2.png" class="thumbnail" alt="AutoPlay - Enable or Disable AutoRun-2.png" style="margin: 2px;" border="0"&gt;&lt;/a&gt;&lt;br&gt; &lt;/blockquote&gt;&lt;b&gt;&lt;font size="3"&gt;&lt;font color="blue"&gt;To Enable:&lt;/font&gt;&lt;/font&gt;&lt;/b&gt; &lt;br&gt; At the top, check &lt;b&gt;Use Autoplay for all devices&lt;/b&gt; and Click &lt;b&gt;Save.&lt;/b&gt;&lt;br&gt; &lt;br&gt; &lt;b&gt;&lt;font color="blue"&gt;&lt;font size="3"&gt;To Disable:&lt;/font&gt;&lt;/font&gt; &lt;/b&gt;&lt;br&gt; Uncheck &lt;b&gt;Use Autoplay for all devices&lt;/b&gt; and Click &lt;b&gt;Save.&lt;/b&gt;&lt;br&gt; &lt;/blockquote&gt; &lt;br&gt; &lt;b&gt;&lt;font size="5"&gt;&lt;font color="red"&gt;&lt;u&gt;&lt;font size="6"&gt;Method 2:&lt;/font&gt; &lt;/u&gt;&lt;/font&gt;&lt;/font&gt;&lt;/b&gt;&lt;b&gt;&lt;font size="3"&gt;1.&lt;/font&gt;&lt;/b&gt; Click Start and in the Search box, type &lt;b&gt;gpedit.msc&lt;/b&gt; and press Enter. &lt;br&gt; Now browse to &lt;b&gt;Computer Configuration\ Administrative Templates\ Windows Components\ Autoplay Policies\ Turn off Autoplay. &lt;/b&gt;&lt;br&gt; &lt;br&gt; &lt;b&gt;&lt;font size="3"&gt;&lt;font color="blue"&gt;To Enable:&lt;/font&gt;&lt;/font&gt; &lt;/b&gt;&lt;br&gt; Change the value of &lt;b&gt;Turn off Autoplay &lt;/b&gt;to &lt;u&gt;&lt;b&gt;disabled.&lt;/b&gt;&lt;/u&gt;&lt;blockquote&gt;&lt;a href="http://www.sevenforums.com/attachments/tutorials/30385d1254676554-autoplay-enable-disable-autorun-3.png" rel="Lightbox_295423" id="attachment30385"&gt;&lt;img title="AutoPlay - Enable or Disable AutoRun-3.png" src="http://www.sevenforums.com/attachments/tutorials/30385d1254676554t-autoplay-enable-disable-autorun-3.png" class="thumbnail" alt="AutoPlay - Enable or Disable AutoRun-3.png" style="margin: 2px;" border="0"&gt;&lt;/a&gt;&lt;br&gt; &lt;/blockquote&gt;&lt;b&gt;&lt;font size="3"&gt;&lt;font color="blue"&gt;To Disable:&lt;/font&gt;&lt;/font&gt;&lt;/b&gt;&lt;br&gt; Change the value of &lt;b&gt;Turn off Autoplay &lt;/b&gt;to &lt;u&gt;&lt;b&gt;enabled.&lt;/b&gt;&lt;/u&gt;&lt;a href="http://www.sevenforums.com/attachments/tutorials/30386d1254676554-autoplay-enable-disable-autorun-4.png" rel="Lightbox_295423" id="attachment30386"&gt;&lt;img title="AutoPlay - Enable or Disable AutoRun-4.png" src="http://www.sevenforums.com/attachments/tutorials/30386d1254676554t-autoplay-enable-disable-autorun-4.png" class="thumbnail" alt="AutoPlay - Enable or Disable AutoRun-4.png" style="margin: 2px;" border="0"&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;        &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-575049374950413522?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/575049374950413522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/03/turn-off-autoplay-in-windows7.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/575049374950413522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/575049374950413522'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/03/turn-off-autoplay-in-windows7.html' title='Turn off autoplay in windows7'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-4958981990931223933</id><published>2010-02-18T03:39:00.001-08:00</published><updated>2010-02-18T03:39:35.399-08:00</updated><title type='text'>See HTTP header using command telnet</title><content type='html'>You can see the HTTP (hypertext transfer protocol) header from a web site using  	the standard Telnet program that comes with Windows. For example, to see the  	header from the root page of the Microsoft web site, do these steps: &lt;ol&gt;&lt;li&gt; 	Start a DOS command prompt 	&lt;/li&gt;&lt;li&gt; 		From the command prompt type 		&lt;pre&gt;telnet &lt;a href="http://www.microsoft.com"&gt;www.microsoft.com&lt;/a&gt; 80&lt;/pre&gt; 	&lt;/li&gt;&lt;li&gt; Turn on localecho so you can see what you are doing. &lt;ol&gt;&lt;li&gt; 	Type Ctrl+] (hold down the Ctrl key and press the right bracket) 	&lt;/li&gt;&lt;li&gt; 		Type 		&lt;pre&gt;set localecho&lt;/pre&gt; 	&lt;/li&gt;&lt;li&gt; 		Press Enter on a blank line&lt;/li&gt;&lt;/ol&gt; &lt;/li&gt;&lt;li&gt; 	type&lt;br&gt; 	&lt;pre&gt;GET / HTTP/1.1&lt;br&gt;Host: &lt;a href="http://www.microsoft.com"&gt;www.microsoft.com&lt;/a&gt;&lt;br&gt;&lt;/pre&gt; &lt;/li&gt;&lt;li&gt; 	Press Enter twice&lt;/li&gt;&lt;/ol&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-4958981990931223933?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/4958981990931223933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/02/see-http-header-using-command-telnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/4958981990931223933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/4958981990931223933'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/02/see-http-header-using-command-telnet.html' title='See HTTP header using command telnet'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-588747659658563283</id><published>2010-02-10T03:57:00.001-08:00</published><updated>2010-02-10T03:57:38.494-08:00</updated><title type='text'>Installing samba in debian</title><content type='html'>&lt;div class="content"&gt;&lt;p&gt;You want to replace that expensive windows file server with a cheap linux solution. But you need to connect from a windows client. Use samba server to do this! Here is how you do it on debian. &lt;/p&gt; &lt;p&gt;&lt;code&gt;&lt;br&gt; apt-get install samba smbfs&lt;br&gt; &lt;/code&gt;&lt;/p&gt; &lt;p&gt;After downloading you will be asked a series of questions.&lt;br&gt; 1) workgroup/domain name: &lt;strong&gt;share&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;2)use password encription: &lt;strong&gt;YES&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;3) modify smb.conf to accept wins information:&lt;strong&gt; YES&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;4) How to run samba?: &lt;strong&gt;inetd&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;5) Create Samba password database: &lt;strong&gt;YES&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;6) now that your all done downloading, do this to get a new config file.  &lt;/p&gt; &lt;p&gt;&lt;code&gt;&lt;br&gt; cd /etc/samba/&lt;br&gt; mv smb.conf old.smb.conf&lt;br&gt; wget /smb.txt&lt;br&gt; mv smb.txt smb.conf&lt;br&gt; nano smb.conf&lt;br&gt; mkdir /share&lt;br&gt; /etc/init.d/samba restart&lt;br&gt; smbuser -a tendydon&lt;br&gt; smbpasswd -a tendydon&lt;br&gt; &lt;/code&gt;&lt;/p&gt; &lt;p&gt;if you want to add shares to your samba server add the following lines in the config file.  &lt;/p&gt; &lt;p&gt;[newshare]&lt;br&gt; path = /newshare&lt;br&gt; browseable = yes&lt;br&gt; comment = share&lt;br&gt; writable = yes&lt;br&gt; public = yes&lt;br&gt; guest ok = no&lt;/p&gt; &lt;p&gt;Now create the share and give it some permissions. &lt;/p&gt; &lt;p&gt;chmod 777 /share&lt;br&gt; chown tendydon:tendydon /share&lt;br&gt; chmod 755 /share/&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Here tendydon is user for more user permissions &lt;a href="http://tendydon.blogspot.com/2009/12/setting-up-file-ownership-and.html"&gt;here&lt;/a&gt;&lt;br&gt;&lt;/p&gt; &lt;p&gt;You should be able to open the share from a windows machine now.  Have fun.&lt;/p&gt; &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-588747659658563283?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/588747659658563283/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/02/installing-samba-in-debian.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/588747659658563283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/588747659658563283'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/02/installing-samba-in-debian.html' title='Installing samba in debian'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-7487964593309885634</id><published>2010-02-09T03:55:00.001-08:00</published><updated>2010-02-09T03:55:23.035-08:00</updated><title type='text'>Reverse lookup setup for debian</title><content type='html'>For reverse lookup setup in debian server following conf files are to be edited&lt;br&gt;&lt;br&gt;1.&lt;b&gt;named.conf &lt;/b&gt;:append the following at the end&lt;br&gt;&lt;br&gt;&lt;span style="font-family: courier new,monospace;"&gt;zone &amp;quot;10.168.192.in-addr.arpa&amp;quot; {&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt; &lt;span style="font-family: courier new,monospace;"&gt;       type master;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;       file &amp;quot;/etc/bind/&lt;b&gt;192.168.10.db&lt;/b&gt;&amp;quot;;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt; &lt;span style="font-family: courier new,monospace;"&gt;};&lt;/span&gt;&lt;br&gt;&lt;br&gt;where 192.168.10.X  is a lookup zone&lt;br&gt;&lt;br&gt;2.The above mentioned file &lt;span style="font-family: courier new,monospace;"&gt;&lt;b&gt;192.168.10.db &lt;/b&gt;&lt;/span&gt;should be in respective directory as below:&lt;br&gt; &lt;br&gt;&lt;span style="font-family: courier new,monospace;"&gt;; BIND reverse data file for local system&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt; &lt;span style="font-family: courier new,monospace;"&gt;$TTL    604800&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;@       IN      SOA     example. &lt;a href="http://example.com"&gt;example.com&lt;/a&gt;. (&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt; &lt;span style="font-family: courier new,monospace;"&gt;                              1         ; Serial&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;                         604800         ; Refresh&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt; &lt;span style="font-family: courier new,monospace;"&gt;                          86400         ; Retry&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;                        2419200         ; Expire&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt; &lt;span style="font-family: courier new,monospace;"&gt;                         604800 )       ; Negative Cache TTL&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt; &lt;span style="font-family: courier new,monospace;"&gt;@       IN      NS      &lt;a href="http://example.com"&gt;example.com&lt;/a&gt;.&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;71      IN      PTR     &lt;a href="http://example.com"&gt;example.com&lt;/a&gt;.&lt;/span&gt;&lt;br&gt; &lt;br&gt;192.168.10&lt;b&gt;.71&lt;/b&gt; is ip of system to be reversed lookonto&lt;br style="font-family: courier new,monospace;"&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt; &lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-7487964593309885634?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/7487964593309885634/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/02/reverse-lookup-setup-for-debian.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/7487964593309885634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/7487964593309885634'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/02/reverse-lookup-setup-for-debian.html' title='Reverse lookup setup for debian'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-6037299778406284405</id><published>2010-02-07T21:13:00.001-08:00</published><updated>2010-02-07T21:13:13.980-08:00</updated><title type='text'>Alert setting server 2003</title><content type='html'>&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;In this day of constant attacks and intrusions it becomes increasingly difficult to respond to all threats and intrusion attempts and this is why you need ISA's built in Alerting functionality to be operational as it can shut down services if the professional is not at the station.&lt;span style=""&gt;  &lt;/span&gt;Alert notification configuration follows:Alert notifications can be in the form of email or a program can be started&lt;/span&gt; &lt;p class="Section1"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;em&gt;To start the configurations please follow the steps below:&lt;/em&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="Section1" dir="ltr"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;strong&gt;1.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt; &lt;blockquote dir="ltr" style="margin-right: 0px;"&gt; &lt;p class="Section1"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;strong&gt;&lt;img src="http://www.isaserver.org/img/upl/image0021084522461528.jpg"&gt;&lt;br&gt;&lt;/strong&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;Click on your ISA server then click Monitoring and configuration then click Alerts.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;/blockquote&gt; &lt;p class="Section1" dir="ltr"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;strong&gt;2.&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;blockquote dir="ltr" style="margin-right: 0px;"&gt; &lt;p class="Section1" dir="ltr"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;strong&gt;&lt;img src="http://www.isaserver.org/img/upl/image0051084522652551.jpg"&gt;&lt;br&gt; &lt;/strong&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;In the details pane, &lt;strong&gt;right click&lt;/strong&gt; &lt;span style=""&gt;the alert of your choice&lt;/span&gt;, and click &lt;span style=""&gt;Properties&lt;/span&gt; &lt;span style=""&gt;the alert object you have chosen&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;/blockquote&gt; &lt;p class="Section1" dir="ltr"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;strong&gt;3.&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;blockquote dir="ltr" style="margin-right: 0px;"&gt; &lt;p dir="ltr" style="margin-right: 0px;"&gt;&lt;img src="http://www.isaserver.org/img/upl/image0061075973748737.jpg"&gt;&lt;br&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;In the &lt;span style=""&gt;Alert Properties &lt;/span&gt;dialog box, click the &lt;span style=""&gt;Actions &lt;/span&gt;tab&lt;/span&gt;&lt;/p&gt; &lt;/blockquote&gt; &lt;p dir="ltr" style="margin-right: 0px;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;strong&gt;4. &lt;/strong&gt;&lt;span&gt;Remember to select an SMTP server that allows the ISA server to relay messages.&lt;span style=""&gt;  &lt;/span&gt;Some servers do not allow relays and this in turn will cause the messages not to reach the administrator.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p dir="ltr" style="margin-right: 0px;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;span&gt;&lt;strong&gt;5. &lt;/strong&gt;&lt;span&gt;Make sure the alert is enabled. You can do this by checking in the details pane if there is a down red arrow on the alert or not.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;blockquote dir="ltr" style="margin-right: 0px;"&gt; &lt;p dir="ltr" style="margin-right: 0px;"&gt;&lt;img src="http://www.isaserver.org/img/upl/image0091084522953566.jpg"&gt; Enabled&lt;/p&gt; &lt;p dir="ltr" style="margin-right: 0px;"&gt;&lt;img src="http://www.isaserver.org/img/upl/image0111084522983891.jpg"&gt; Disabled&lt;/p&gt;&lt;/blockquote&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-6037299778406284405?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/6037299778406284405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/02/alert-setting-server-2003.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/6037299778406284405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/6037299778406284405'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/02/alert-setting-server-2003.html' title='Alert setting server 2003'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-7757131492810424929</id><published>2010-02-07T20:02:00.001-08:00</published><updated>2010-02-07T20:02:52.577-08:00</updated><title type='text'>reset root password red hat linux</title><content type='html'>&lt;p&gt;To enter single-user mode, reboot your computer. If you use 	the default boot loader, &lt;b class="APPLICATION"&gt;GRUB&lt;/b&gt;, you can enter 	single user mode by performing the following:&lt;/p&gt;&lt;ol type="1"&gt;&lt;li&gt;&lt;p&gt;At the boot loader menu, use the arrow keys to highlight the 	  installation you want to edit and type &lt;span class="KEYCAP"&gt;[A]&lt;/span&gt; to enter 	  into &lt;tt class="COMMAND"&gt;append&lt;/tt&gt; mode. 	  &lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;You are presented with a prompt that looks similar to the 	  following(you may get different than this):&lt;/p&gt;&lt;table class="SCREEN" width="90%" bgcolor="#dcdcdc"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre class="SCREEN"&gt;&lt;tt class="PROMPT"&gt;grub append&amp;gt;&lt;/tt&gt; ro root=LABEL=/&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/li&gt;&lt;li&gt;&lt;p&gt;Press the Spacebar once to add a blank space, then add the word 	    &lt;tt class="USERINPUT"&gt;&lt;b&gt;single&lt;/b&gt;&lt;/tt&gt; to tell GRUB to boot into single-user 	    Linux mode. The result should look like the following( just append single at the end) :&lt;/p&gt;&lt;table class="SCREEN" width="90%" bgcolor="#dcdcdc"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre class="SCREEN"&gt;ro root=LABEL=/ single&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Press &lt;span class="KEYCAP"&gt;[Enter]&lt;/span&gt; and GRUB will boot single-user Linux 	  mode. After it finishes loading, you will be presented with a shell 	  prompt similar to the following:&lt;/p&gt;&lt;table class="SCREEN" width="90%" bgcolor="#dcdcdc"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre class="SCREEN"&gt;&lt;tt class="COMPUTEROUTPUT"&gt;sh-2.05b#&lt;/tt&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;You can now change the root password by typing         &lt;/p&gt;&lt;table class="SCREEN" width="90%" bgcolor="#dcdcdc"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre class="SCREEN"&gt;&lt;tt class="USERINPUT"&gt;&lt;b&gt;passwd root&lt;/b&gt;&lt;/tt&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;You will be asked to re-type the password for verification. Once 	  you are 	  finished, the password will be changed. You can then reboot by typing 	  &lt;tt class="COMMAND"&gt;reboot&lt;/tt&gt; at the prompt; then you can log in 	  to root as you normally would. 	&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-7757131492810424929?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/7757131492810424929/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/02/reset-root-password-red-hat-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/7757131492810424929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/7757131492810424929'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/02/reset-root-password-red-hat-linux.html' title='reset root password red hat linux'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-2109385518664557024</id><published>2010-02-06T02:20:00.001-08:00</published><updated>2010-02-06T02:20:40.926-08:00</updated><title type='text'>Posting Photos in blog</title><content type='html'>&lt;div class="answer_heading"&gt; &lt;h2 class="answer-title"&gt;Posting Photos in blog&lt;br&gt;&lt;/h2&gt; You can now upload photos to your blog(s) using Blogger Images; just click the image icon in the post editor&amp;#39;s toolbar.&lt;/div&gt; &lt;img src="http://kbimages.blogspot.com/add-image.jpg" width="243" height="116"&gt; &lt;p&gt;When you click this icon, you&amp;#39;ll get a window that allows you to select an image or multiple images from your computer. Click the &lt;strong&gt;Browse&lt;/strong&gt; button to locate the ones you want. Alternatively, you can enter the URL of an image that&amp;#39;s already online and insert it into your post. &lt;/p&gt; &lt;img src="http://kbimages.blogspot.com/image-upload.jpg" width="410" height="122"&gt; &lt;p&gt;If you click the link to choose a layout, you can customize the way your images will appear in your post:&lt;/p&gt; &lt;img src="http://kbimages.blogspot.com/image-upload3.jpg" width="410" height="102"&gt; &lt;p&gt;The left, center and right options determine how the text of your post flows around the pictures. The size option lets you scale the pictures to different sizes within this posting area. Note that the picture will still be uploaded in its full size; this option just determines how it&amp;#39;s scaled within the content of your post.&lt;/p&gt; Alternatively, you can post images to your blog using&lt;a href="http://tendydon.blogspot.com/2010/02/posting-blogger-via-email.html"&gt; Mail-to-Blogger.&lt;/a&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-2109385518664557024?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/2109385518664557024/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/02/posting-photos-in-blog.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/2109385518664557024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/2109385518664557024'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/02/posting-photos-in-blog.html' title='Posting Photos in blog'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-8113314650955036808</id><published>2010-02-06T02:17:00.001-08:00</published><updated>2010-02-06T02:24:15.926-08:00</updated><title type='text'>Posting blogger via email</title><content type='html'>&lt;h2 class="answer-title"&gt;Post blog via email&lt;br /&gt;&lt;/h2&gt; &lt;a class="print-page" href="javascript:window.print();" onclick="trackOutgoing('Print')"&gt;&lt;/a&gt;   &lt;div class="article_content" id="article-content-div"&gt; &lt;p&gt;The Mail-to-Blogger feature turns any email account into a blog-posting application. In &lt;strong&gt;Settings | Email&lt;/strong&gt; you can create a Mail-to-Blogger address which you will use to send posts via email to your blog:&lt;/p&gt;  &lt;img src="http://photos1.blogger.com/x/blogger/7470/213/1600/255242/settings-email.jpg" alt="Settings | Email tab" width="410" /&gt; &lt;p&gt;To post to your blog via email, you need to configure your Mail-to-Blogger email address in &lt;strong&gt;Settings | Email&lt;/strong&gt;:&lt;/p&gt; &lt;img src="http://bp2.blogger.com/_U3bcIaG-j20/RzidPvVaMmI/AAAAAAAAANY/udUr2BmiVtg/s1600-/mail.jpg" /&gt; &lt;p&gt;The format of the email address is &lt;code&gt;&lt;a href="mailto:username.secretword@blogger.com"&gt;username.secretword@blogger.com&lt;/a&gt;&lt;/code&gt;. Note that this email address must be kept &lt;strong&gt;secret&lt;/strong&gt;. Otherwise, anyone who gets it will be able to post as you.&lt;/p&gt;  &lt;p&gt;Also be sure to specify whether or not you prefer your email posts to publish automatically. If this option is not checked, then your posts will be saved on your account but will not appear on your blog until you log in to Blogger.com and publish them yourself.&lt;/p&gt; &lt;p&gt;Once you have saved your Settings, you can send email to your blog. The subjects of your email letters will be the titles of your posts, and the body of the emails will be the posts themselves. To include an image in your post, you can attach an image to you your email.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Notes:&lt;/strong&gt; &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Sometimes email programs append text to the bottom of each sent message; to make sure this cruft doesn't get posted to your blog, put &lt;code&gt;#end&lt;/code&gt; at the end of your post.&lt;code&gt;&lt;/code&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-8113314650955036808?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/8113314650955036808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/02/posting-blogger-via-email.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8113314650955036808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8113314650955036808'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/02/posting-blogger-via-email.html' title='Posting blogger via email'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_U3bcIaG-j20/RzidPvVaMmI/AAAAAAAAANY/udUr2BmiVtg/s72-c/mail.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-2446204551172950736</id><published>2010-02-04T03:51:00.001-08:00</published><updated>2010-02-04T03:51:16.137-08:00</updated><title type='text'>Subdomain Configuration Bind and Apache</title><content type='html'>&lt;b&gt;Subdomain Configuration&lt;/b&gt;&lt;br&gt;A subdomain configuration is very similar to a domain name configuration. The only difference is that the subdomain entry is tied to the corresponding domain name lookup. A request for the subdomain (e.g. &lt;a href="http://content.websitegear.com"&gt;http://content.websitegear.com&lt;/a&gt;) will be routed to a DNS server containing the DNS information for the parent domain (&lt;a href="http://websitegear.com"&gt;websitegear.com&lt;/a&gt;). Once the DNS record for the subdomain is resolved to a particular IP address, the request is sent to the web server listening on that IP address. The web server can now delegate the request to the particular website based on the subdomain name in the host header of the request object. Various combinations of subdomain configurations are possible by using DNS server entries and web server application setup for load distribution, application isolation or security purposes.&lt;br&gt;&lt;br&gt;&lt;b&gt;Subdomain Setup on DNS server&lt;/b&gt;&lt;br&gt;The forward lookup zone of the parent domain in the DNS server should contain a pointer to the sub domain using either an alias (CNAME), a hostname (A) or a mail enchanger (MX) entry. The alias (CNAME) record is used for a subdomain if the subdomain points to a website running on the same web server at the same IP address as the parent domain website. A new hostname (A) record is used if the subdomain points to a different web server, or to the same web server listening on a different IP address (as in the case of load distribution).&lt;br&gt;                     &lt;br&gt;&lt;b&gt;Alias (CNAME) Setup:&lt;/b&gt; An alias points the subdomain to the same web server, which hosts the website for the parent domain. The canonical names (CNAMES) are added for each of the subdomains as shown below. Once the subdomain is resolved to the IP address of the web server, the web server can route the request to a different website (see section on web server setup below). Note that an alias for www is setup as a subdomain by default by most hosting companies, so that requests to &lt;a href="http://www.domain.com"&gt;www.domain.com&lt;/a&gt; is sent to the same website that handles the requests for &lt;a href="http://domain.com"&gt;domain.com&lt;/a&gt;.&lt;br&gt;&lt;br&gt;&lt;div class="code"&gt;www            IN  CNAME   &lt;a href="http://domain.com"&gt;domain.com&lt;/a&gt;.&lt;br&gt;subdomain1     IN  CNAME   &lt;a href="http://domain.com"&gt;domain.com&lt;/a&gt;.&lt;br&gt; subdomain2     IN  CNAME   &lt;a href="http://domain.com"&gt;domain.com&lt;/a&gt;. &lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Address (A) Record Setup:&lt;/b&gt; A hostname DNS entry is required if the subdomain is pointing to a different IP address than that set for the domain name. Add the address (A) records to the forward lookup zone of the parent domain and associate the address records with the IP addresses of the web servers, which will handle the requests for the subdomain.&lt;br&gt;&lt;br&gt;&lt;div class="code"&gt;subdomain1   IN  A   123.2.33.45.&lt;br&gt;subdomain2   IN  A   123.2.33.46. &lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Mail Exchanger (MX) Setup:&lt;/b&gt; The mail exchanger subdomain configuration is required if an email server is setup to handle the subdomain mail accounts. For example, an email address like &lt;a href="mailto:joe@arts.myschool.edu"&gt;joe@arts.myschool.edu&lt;/a&gt; will require a subdomain setup for resolving the mail server for &lt;a href="http://arts.myschool.edu"&gt;arts.myschool.edu&lt;/a&gt;. The setup is similar to the CNAME setup but with MX records.&lt;br&gt;&lt;br&gt;&lt;div class="code"&gt;subdomain1    IN  MX  10  &lt;a href="http://subdomain1.domain.com"&gt;subdomain1.domain.com&lt;/a&gt;.&lt;br&gt;subdomain2    IN  MX  10  &lt;a href="http://subdomain2.domain.com"&gt;subdomain2.domain.com&lt;/a&gt;.&lt;br&gt; &lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Note&lt;/b&gt;: If the sub-domain is configured on another DNS name server, a Name Server (NS) record has to be created for the sub-domain on the corresponding domain name DNS server, so that it can delegate the sub-domain lookup to the other name servers. Using different name servers can eliminate security issues in cases where the sub-domains are maintained by separate administrators. However, the lookup carries an additional overhead.&lt;br&gt;                     &lt;br&gt;&lt;b&gt;Configuring the web server for sub-domains&lt;/b&gt;&lt;br&gt;Once the DNS server is setup to send the request for the sub-domain to the corresponding IP address, the work of the web server begins. The web server needs to be configured appropriately to handle the request for the sub-domain based on either the IP address or the host header entry. Host headers are commonly used by web servers to host multiple domains or sub-domains on one IP address.&lt;br&gt;	 &lt;br&gt;&lt;b&gt;Microsoft Windows IIS :&lt;/b&gt; In case of Internet Information Server (IIS), create a new web site for the subdomain using the IIS Manager, and add the sub-domain (e.g. &lt;a href="http://subdomain.domain.com"&gt;subdomain.domain.com&lt;/a&gt;) as a new host header value listening to the same IP address as specified in the DNS entry. The port is set to 80 (the default for http requests). The host header can be added by clicking on the advanced tab next to the IP address configuration for that web site application. If the subdomain points to a subdirectory of the web site for the domain, then set the home directory for the subdomain web site to the subdirectory. For example, if the &lt;a href="http://domain.com"&gt;domain.com&lt;/a&gt; points to C:\Inetpub\wwwroot\ and the subdomain needs to be setup for C:\Inetpub\wwwroot\subdomain, then the directory for the subdomain website should be set to C:\Inetpub\wwwroot\subdomain.&lt;br&gt;&lt;br&gt;&lt;b&gt;Apache Web Server :&lt;/b&gt; In case of Apache web server, the subdomain is configured by virtual host entries in httpd.conf as shown below.&lt;br&gt;&lt;br&gt;&lt;div class="code"&gt; Listen 80&lt;br&gt;NameVirtualHost *&lt;br&gt;&lt;br&gt;&amp;lt;VirtualHost *&amp;gt;&lt;br&gt;  ServerName &lt;a href="http://www.domain.com"&gt;www.domain.com&lt;/a&gt;&lt;br&gt;  DocumentRoot /home/httpd/htdocs/&lt;br&gt;&amp;lt;/VirtualHost&amp;gt;&lt;br&gt;&lt;br&gt;&amp;lt;VirtualHost *&amp;gt;&lt;br&gt;   ServerName &lt;a href="http://subdomain.domain.com"&gt;subdomain.domain.com&lt;/a&gt;&lt;br&gt;  DocumentRoot /home/httpd/htdocs/subdomain/&lt;br&gt;&amp;lt;/VirtualHost&amp;gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Conclusion&lt;/b&gt;&lt;br&gt;Sub-domain configuration starts with an entry in the DNS server of the parent domain and the lookup resolves the sub-domain to an IP address of the web server. The web server in turn delegates the requests based on its configuration for the sub-domain. Various sub-domain configurations can be used effectively to distribute the load evenly among available web applications or web servers listening to different IP addresses. The load distribution is achieved by the DNS round robin feature of the BIND. Other uses include application isolation, simpler and professional looking URL, content categorization etc. &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-2446204551172950736?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/2446204551172950736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/02/subdomain-configuration-bind-and-apache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/2446204551172950736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/2446204551172950736'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/02/subdomain-configuration-bind-and-apache.html' title='Subdomain Configuration Bind and Apache'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-909359209398572714</id><published>2010-02-03T23:31:00.001-08:00</published><updated>2010-02-03T23:31:07.444-08:00</updated><title type='text'>Greyed Shut Down button available server 2003</title><content type='html'>To force Windows NT and Windows 2000 to display the Shut Down button on the logon screen, log on to your server as Administrator or as a user with administrator rights. Start the registry editor by selecting Run from the Start menu, typing &lt;i&gt;regedt32&lt;/i&gt; in the Open text box, and clicking OK. From here, the two systems diverge. If you're running Windows 2000, you'll make the registry change in a different location than Windows NT.&lt;br&gt;&lt;br&gt;In Windows NT, when the Registry Editor window opens, navigate the left pane until you get to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon hive. In the right pane, look for the value named ShutdownWithoutLogon.&lt;br&gt;&lt;br&gt;To change the value, double-click it. You'll then see the String Editor. Enter a value of 1 in the String field and click OK.&lt;br&gt;&lt;br&gt;If the value doesn&amp;#39;t exist, you&amp;#39;ll need to add it. Select Add Value from the Edit menu. When the Add Value menu appears, enter the name of the value in the Value Name field exactly as listed above. Make sure the Data Type list box contains the value REG_SZ and then click OK. You&amp;#39;ll then see the String Editor screen. In the String field, enter a value of 1 and click OK.&lt;br&gt;&lt;br&gt;In Windows 2000, you'll find the ShutdownWithoutLogon key in the exact same location as in Windows NT. However, if you change the value to 1, it won't change the Shut Down button. The key only appears to exist in this location for compatibility reasons.&lt;br&gt;&lt;br&gt;To enable the Shut Down button in this version of the OS, you must navigate the left pane until you get to the HKEY_LOCAL_MACHINE\SOFTWARE\CurrentVersion\policies\system hive. In the right pane, look for the value named shutdownwithoutlogon. For some reason, Windows 2000 also lists this key in all lowercase.&lt;br&gt;&lt;br&gt;To change the value, double-click it. You'll then see the DWORD Editor. Enter a value of 1 in the Data field and click OK.&lt;br&gt;&lt;br&gt;Add the value if it doesn&amp;#39;t exist by selecting Add Value from the Edit menu. When the Add Value menu appears, enter the name of the value in the Value Name field exactly as listed above. Make sure the Data Type list box contains the value REG_DWORD and then click OK. You&amp;#39;ll then see the Data Editor screen. In the String field, enter a value of 1 and click OK. &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-909359209398572714?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/909359209398572714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/02/greyed-shut-down-button-available.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/909359209398572714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/909359209398572714'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/02/greyed-shut-down-button-available.html' title='Greyed Shut Down button available server 2003'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-1972385313185501207</id><published>2010-02-02T20:54:00.001-08:00</published><updated>2010-02-02T20:54:23.719-08:00</updated><title type='text'>Bind 9 configuration Debian</title><content type='html'>&lt;h2&gt; &lt;span class="mw-headline"&gt; Introduction &lt;/span&gt;&lt;/h2&gt; &lt;p&gt;This HOWTO will assist you in getting a Domain Name Server (DNS) up and running using BIND9 on Debian Etch. When setting up a DNS server it is common practise to use two separate DNS servers for a domain as you are required to have at least two DNS servers running for DNS to work correctly. If one breaks, the other can continue to serve your domain. &lt;/p&gt;&lt;p&gt;However, when I setup my DNS system I did not have the resources on hand to use two different servers for DNS so the setup below will configure one server to run both nameservers. It&amp;#39;s not an ideal solution and is definitely not a best-practise solution but one can only work with what you have. &lt;/p&gt;&lt;p&gt;In this HOWTO I will use the fictional domain &amp;quot;&lt;a href="http://example.com"&gt;example.com&lt;/a&gt;&amp;quot;. The nameservers will use 192.168.254.1 and 192.168.254.2 as their IP addresses. Both the domain and namerserver IPs need to be changed to reflect your server. &lt;/p&gt; &lt;a name="Requirements" id="Requirements"&gt;&lt;/a&gt;&lt;h2&gt; &lt;span class="mw-headline"&gt; Requirements &lt;/span&gt;&lt;/h2&gt; &lt;ul&gt;&lt;li&gt; A Debian Etch base installation - &lt;a href="http://linux.justinhartman.com/Installing_a_Debian_Etch_base_system" title="Installing a Debian Etch base system"&gt;Installation HOWTO here&lt;/a&gt;. &lt;/li&gt;&lt;li&gt; At least two static IP addresses that you can use to setup the nameserver information. &lt;/li&gt;&lt;li&gt; Root access to your server. &lt;/li&gt;&lt;/ul&gt; &lt;a name="Pre-Installation" id="Pre-Installation"&gt;&lt;/a&gt;&lt;h2&gt; &lt;span class="mw-headline"&gt; Pre-Installation &lt;/span&gt;&lt;/h2&gt; &lt;p&gt;Before proceeding to install, update the necessary packages in Debian with this command. &lt;/p&gt; &lt;pre&gt;apt-get update&lt;br&gt;apt-get upgrade&lt;br&gt;&lt;/pre&gt; &lt;a name="Installing_lsb-base_and_BIND9" id="Installing_lsb-base_and_BIND9"&gt;&lt;/a&gt;&lt;h2&gt; &lt;span class="mw-headline"&gt; Installing lsb-base and BIND9 &lt;/span&gt;&lt;/h2&gt; &lt;p&gt;To continue we need some Debian building tools since we have to download source packages: &lt;/p&gt; &lt;pre&gt;apt-get install devscripts&lt;br&gt;&lt;/pre&gt; &lt;p&gt;BIND9 depends on lsb-base from testing. Lets grab it: (Syntax explanation: the -y tells apt to say yes to all questions, build-dep installs all packages required for -testing_packageX- from the Etch repository and with -b the source gets built straight away.) &lt;/p&gt; &lt;pre&gt;mkdir /usr/local/lsb-base/&lt;br&gt;cd /usr/local/lsb-base/&lt;br&gt;apt-get -y build-dep lsb-base&lt;br&gt;apt-get source lsb-base -b&lt;br&gt;dpkg-i lsb-base*.deb&lt;br&gt;&lt;/pre&gt; &lt;p&gt;Next is BIND9: &lt;/p&gt; &lt;pre&gt;mkdir /usr/local/bind9&lt;br&gt;cd /usr/local/bind9&lt;br&gt;apt-get -y build-dep bind9&lt;br&gt;apt-get source bind9 -b&lt;br&gt;dpkg -i *.deb&lt;br&gt;&lt;/pre&gt; &lt;a name="Configure_the_Master_DNS_Server" id="Configure_the_Master_DNS_Server"&gt;&lt;/a&gt;&lt;h2&gt; &lt;span class="mw-headline"&gt; Configure the Master DNS Server &lt;/span&gt;&lt;/h2&gt; &lt;p&gt;First we need to stop BIND9: &lt;/p&gt; &lt;pre&gt;/etc/init.d/bind9 stop&lt;br&gt;&lt;/pre&gt; &lt;p&gt;In order to chroot bind we need to set an option in /etc/default/bind9. &lt;/p&gt;&lt;p&gt;Locate this in /etc/default/bind9: &lt;/p&gt; &lt;pre&gt;OPTIONS=&amp;quot;-u bind&amp;quot;&lt;br&gt;&lt;/pre&gt; &lt;p&gt;Replace it with this: &lt;/p&gt; &lt;pre&gt;OPTIONS=&amp;quot;-u bind -t /var/lib/named&amp;quot;&lt;br&gt;&lt;/pre&gt; &lt;p&gt;It will now run as user &amp;#39;bind&amp;#39; chrooted in &amp;#39;/var/lib/named&amp;#39;. &lt;/p&gt;&lt;p&gt;These steps are required for the chroot jail: &lt;/p&gt; &lt;pre&gt;mkdir -p /var/lib/named/etc&lt;br&gt;mkdir /var/lib/named/dev&lt;br&gt;mkdir -p /var/lib/named/var/cache/bind&lt;br&gt;mkdir -p /var/lib/named/var/run/bind/run&lt;br&gt;mv /etc/bind /var/lib/named/etc&lt;br&gt;ln -s /var/lib/named/etc/bind /etc/bind&lt;br&gt; mknod /var/lib/named/dev/null c 1 3&lt;br&gt;mknod /var/lib/named/dev/random c 1 8&lt;br&gt;chmod 666 /var/lib/named/dev/*&lt;br&gt;chown -R bind:bind /var/lib/named/var/*&lt;br&gt;chown -R bind:bind /var/lib/named/etc/bind&lt;br&gt;&lt;/pre&gt; &lt;p&gt;Bind now has its own dir with space for .pid files and config files. In order to keep things clear we made a symlink back to /etc/. &lt;/p&gt;&lt;p&gt;Now edit /etc/init.d/sysklogd to allow logging of bind activity. Replace this: &lt;/p&gt; &lt;pre&gt;SYSLOGD=&amp;quot;&amp;quot;&lt;br&gt;&lt;/pre&gt; &lt;p&gt;With this: &lt;/p&gt; &lt;pre&gt;SYSLOGD=&amp;quot;-a /var/lib/named/dev/log&amp;quot;&lt;br&gt;&lt;/pre&gt; &lt;p&gt;Now restart sysklogd and BIND9: &lt;/p&gt; &lt;pre&gt;/etc/init.d/sysklogd restart&lt;br&gt;/etc/init.d/bind9 start&lt;br&gt;&lt;/pre&gt; &lt;p&gt;And test: &lt;/p&gt; &lt;pre&gt;ping &lt;a href="http://www.grabble.co.za"&gt;www.grabble.co.za&lt;/a&gt;&lt;br&gt;&lt;/pre&gt; &lt;p&gt;If you get a reply, then your DNS master server is working and ready to use. We will now complete and use the &lt;a href="http://example.com"&gt;example.com&lt;/a&gt; domain with our new master server. &lt;/p&gt; &lt;a name="Setting_up_the_example.com_domain" id="Setting_up_the_example.com_domain"&gt;&lt;/a&gt;&lt;h2&gt; &lt;span class="mw-headline"&gt; Setting up the &lt;a href="http://example.com"&gt;example.com&lt;/a&gt; domain &lt;/span&gt;&lt;/h2&gt; &lt;p&gt;The new master DNS server is currently just forwarding requests to the server of your ISP. So, we will now install and configure our own domain and let our new server handle all request regarding that domain. &lt;/p&gt;&lt;p&gt;Example.com has been chosen for illustrative purposes as per the &lt;a href="http://tools.ietf.org/html/rfc2606" class="external text" title="http://tools.ietf.org/html/rfc2606" rel="nofollow"&gt;RFC 2606&lt;/a&gt; - see this &lt;a href="http://en.wikipedia.org/wiki/Example.com" class="external text" title="http://en.wikipedia.org/wiki/Example.com" rel="nofollow"&gt;Wikipedia Example.com article&lt;/a&gt; for more information. &lt;/p&gt; &lt;a name="Creating_the_zone_files" id="Creating_the_zone_files"&gt;&lt;/a&gt;&lt;h3&gt; &lt;span class="mw-headline"&gt; Creating the zone files &lt;/span&gt;&lt;/h3&gt; &lt;p&gt;Lets start with creating the directory where we will store the zone file. This file contains all info about the domain. &lt;/p&gt; &lt;pre&gt;mkdir /etc/bind/zones/master/&lt;br&gt;&lt;/pre&gt; &lt;p&gt;Next we will create the zones file: &lt;/p&gt; &lt;pre&gt;vim /etc/bind/zones/master/example.com.db&lt;br&gt;&lt;/pre&gt; &lt;p&gt;Add the following (obviously replacing &lt;a href="http://example.com"&gt;example.com&lt;/a&gt; and 192.168.254.1 with your own details): &lt;/p&gt; &lt;pre&gt;;&lt;br&gt;; BIND data file for &lt;a href="http://example.com"&gt;example.com&lt;/a&gt;&lt;br&gt;;&lt;br&gt;$TTL    604800&lt;br&gt;@       IN      SOA     &lt;a href="http://ns1.example.com"&gt;ns1.example.com&lt;/a&gt;. &lt;a href="http://info.example.com"&gt;info.example.com&lt;/a&gt;. (&lt;br&gt;                             2007011501         ; Serial&lt;br&gt;                                  7200         ; Refresh&lt;br&gt;                                   120         ; Retry&lt;br&gt;                               2419200         ; Expire&lt;br&gt;                                 604800)        ; Default TTL&lt;br&gt;;&lt;br&gt;@       IN      NS      &lt;a href="http://ns1.example.com"&gt;ns1.example.com&lt;/a&gt;.&lt;br&gt;@       IN      NS      &lt;a href="http://ns2.example.com"&gt;ns2.example.com&lt;/a&gt;.&lt;br&gt; &lt;a href="http://example.com"&gt;example.com&lt;/a&gt;.    IN      MX      10      &lt;a href="http://mail.example.com"&gt;mail.example.com&lt;/a&gt;.&lt;br&gt;&lt;a href="http://example.com"&gt;example.com&lt;/a&gt;.    IN      A       192.168.254.1&lt;br&gt;ns1                     IN      A       192.168.254.1&lt;br&gt; ns2                     IN      A       192.168.254.2&lt;br&gt;www                     IN      CNAME   &lt;a href="http://example.com"&gt;example.com&lt;/a&gt;.&lt;br&gt;mail                    IN      A       192.168.254.1&lt;br&gt;ftp                     IN      CNAME   &lt;a href="http://example.com"&gt;example.com&lt;/a&gt;.&lt;br&gt; &lt;a href="http://example.com"&gt;example.com&lt;/a&gt;.            IN      TXT     &amp;quot;v=spf1 ip4:192.168.254.1 a mx ~all&amp;quot;&lt;br&gt;mail                    IN      TXT     &amp;quot;v=spf1 a -all&amp;quot;&lt;br&gt;&lt;/pre&gt; &lt;p&gt;Here we have created a DNS zone file with both nameservers as well as records for the mail and ftp server for the domain &lt;a href="http://example.com"&gt;example.com&lt;/a&gt;. Trying to go into more detail about what each item reflects above is beyond the scope of this HOWTO and you should do your own research into what each item means. &lt;/p&gt;&lt;p&gt;In South Africa registering domain names with the .&lt;a href="http://co.za"&gt;co.za&lt;/a&gt; extension requires that Reverse DNS (RDNS) is setup correctly. Other TLD&amp;#39;s don&amp;#39;t necessarily require RDNS but either way it&amp;#39;s good practise to setup RDNS for your DNS server so we&amp;#39;ll do so now. &lt;/p&gt;&lt;p&gt;Create a new file called 192.168.254.rev which follows the convention of the first three IP ranges in your IP address &lt;/p&gt; &lt;pre&gt;vim /etc/bind/zones/master/192.168.254.rev&lt;br&gt;&lt;/pre&gt; &lt;p&gt;Add the following: &lt;/p&gt; &lt;pre&gt;$TTL 1d ;&lt;br&gt;$ORIGIN 254.168.192.IN-ADDR.ARPA.&lt;br&gt;@       IN      SOA     &lt;a href="http://ns1.example.com"&gt;ns1.example.com&lt;/a&gt;.   &lt;a href="http://info.example.com"&gt;info.example.com&lt;/a&gt;. (&lt;br&gt;                                       2007011501&lt;br&gt;                                        7200&lt;br&gt;                                       120&lt;br&gt;                                       2419200&lt;br&gt;                                       604800&lt;br&gt;)&lt;br&gt;        IN      NS      &lt;a href="http://ns1.example.com"&gt;ns1.example.com&lt;/a&gt;.&lt;br&gt;         IN      NS      &lt;a href="http://ns2.example.com"&gt;ns2.example.com&lt;/a&gt;.&lt;br&gt;1       IN      PTR     &lt;a href="http://ns1.example.com"&gt;ns1.example.com&lt;/a&gt;.&lt;br&gt;2       IN      PTR     &lt;a href="http://ns2.example.com"&gt;ns2.example.com&lt;/a&gt;.&lt;br&gt; &lt;/pre&gt; &lt;p&gt;The reverse lookup files are almost identical to the domain zone files with only minor changes. The first section of this file is exactly the same as the first section of the domain zone file. The bottom section is where it is different. This time we are listing the last part of the IP address first and then the hostname last. &lt;/p&gt;&lt;p&gt;There are 2 things you must notice here. You have to use the fully qualified domain name here and you must put a &amp;quot;.&amp;quot; at the end of it. These 2 things are important to the file and weird things will happen if you don&amp;#39;t do it this way. &lt;/p&gt;&lt;p&gt;You must also change the $ORIGIN section at the top of the RDNS file to reflect the reverse IP address of your server. In this example our IP address ranges are &lt;a href="http://192.168.254.1/2"&gt;192.168.254.1/2&lt;/a&gt; and the reverse of this would be 254.168.192.IN-ADDR.ARPA. In the PTR records at the bottom we assign the final IP range to reflect our two nameservers - i.e. 1 &amp;amp; 2. &lt;/p&gt; &lt;a name="Making_sure_all_is_OK" id="Making_sure_all_is_OK"&gt;&lt;/a&gt;&lt;h3&gt; &lt;span class="mw-headline"&gt; Making sure all is OK &lt;/span&gt;&lt;/h3&gt; &lt;p&gt;Now that we&amp;#39;ve created both zone and reverse files we need to check that our main zone file is good to go. BIND9 breaks very easily so it&amp;#39;s best to run this check before committing your changes. &lt;/p&gt; &lt;pre&gt;cd /etc/bind/zones/master/&lt;br&gt;named-checkzone &lt;a href="http://example.com"&gt;example.com&lt;/a&gt; example.com.db&lt;br&gt;&lt;/pre&gt; &lt;p&gt;You should get an OK status when doing this. If not you need to double-check your zone file and make changes until you get an OK status. &lt;/p&gt; &lt;a name="Adding_zone_files_to_BIND9" id="Adding_zone_files_to_BIND9"&gt;&lt;/a&gt;&lt;h3&gt; &lt;span class="mw-headline"&gt; Adding zone files to BIND9 &lt;/span&gt;&lt;/h3&gt; &lt;p&gt;We now need to add the zone file data to the named.conf.local file: &lt;/p&gt; &lt;pre&gt;vim /etc/bind/named.conf.local&lt;br&gt;&lt;/pre&gt; &lt;p&gt;And add the following to the file: &lt;/p&gt; &lt;pre&gt;zone &amp;quot;&lt;a href="http://example.com"&gt;example.com&lt;/a&gt;&amp;quot; {&lt;br&gt;       type master;&lt;br&gt;       file &amp;quot;/etc/bind/zones/master/example.com.db&amp;quot;;&lt;br&gt;};&lt;br&gt;&lt;br&gt;zone &amp;quot;254.168.192.IN-ADDR.ARPA&amp;quot; {&lt;br&gt;       type master;&lt;br&gt;        file &amp;quot;/etc/bind/zones/master/192.168.254.rev&amp;quot;;&lt;br&gt;};&lt;br&gt;&lt;/pre&gt; &lt;a name="Testing" id="Testing"&gt;&lt;/a&gt;&lt;h2&gt; &lt;span class="mw-headline"&gt; Testing &lt;/span&gt;&lt;/h2&gt; &lt;p&gt;We can now restart bind and check if it works: &lt;/p&gt; &lt;pre&gt;/etc/init.d/bind9 restart&lt;br&gt;ping &lt;a href="http://ns1.example.com"&gt;ns1.example.com&lt;/a&gt;&lt;br&gt;&lt;/pre&gt; &lt;p&gt;This should bring bring up a ping result resolving to 192.168.254.1 &lt;/p&gt;&lt;p&gt;Try another test: &lt;/p&gt; &lt;pre&gt;nslookup&lt;br&gt;&lt;a href="http://ns1.example.com"&gt;ns1.example.com&lt;/a&gt;&lt;br&gt;&lt;/pre&gt; &lt;p&gt;Should give you 192.168.254.1 &lt;/p&gt;&lt;p&gt;Finally run this one: &lt;/p&gt; &lt;pre&gt;dig @localhost &lt;a href="http://example.com"&gt;example.com&lt;/a&gt;&lt;br&gt;&lt;/pre&gt; &lt;p&gt;If all is OK then you&amp;#39;ll be presented with the zone file information. &lt;/p&gt;&lt;p&gt;At this stage you now have a working and usable DNS server. &lt;/p&gt; &lt;a name="Troubleshooting" id="Troubleshooting"&gt;&lt;/a&gt;&lt;h2&gt; &lt;span class="mw-headline"&gt; Troubleshooting &lt;/span&gt;&lt;/h2&gt; &lt;p&gt;If you&amp;#39;re wondering why updates to the zone file on your master seem to fail, check the serial number inside the zone file. Each time you make a change to the zone file you will need to increase the Serial number in the zone file to ensure that your latest changes are updated. &lt;/p&gt;&lt;p&gt;The serial is setup and structured as follows: &lt;/p&gt; &lt;pre&gt;2007011501 = (2007)(01)(15)(01)&lt;br&gt;First 4 digits of the serial indicate the year - i.e. 2007&lt;br&gt;Next 2 digits of the serial indicate the month - i.e. 01 (January)&lt;br&gt;Next 2 digits of the serial indicate the date - i.e. 15&lt;br&gt; The final 2 digits of the serial indicate the revision number for that day - i.e. 01&lt;br&gt;&lt;/pre&gt; &lt;p&gt;If you are updating your Serial number but your changes are not being reflected I recommend that you reload your BIND data by executing the following command in a Linux shell: &lt;/p&gt; &lt;pre&gt;rndc reload&lt;br&gt;&lt;/pre&gt; &lt;p&gt;If you are running BIND on two different servers you will need to install ntpdate on both servers to ensure that zone transfers happen correctly. Both master and slave servers need to have the exact same time setting for zone transfers to take place: &lt;/p&gt; &lt;pre&gt;apt-get -y install ntpdate&lt;br&gt;&lt;/pre&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-1972385313185501207?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/1972385313185501207/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/02/bind-9-configuration-debian.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/1972385313185501207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/1972385313185501207'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/02/bind-9-configuration-debian.html' title='Bind 9 configuration Debian'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-8830840533569843501</id><published>2010-02-01T02:57:00.001-08:00</published><updated>2010-02-01T02:57:27.649-08:00</updated><title type='text'>reset root password linux</title><content type='html'>There are times for system administrators they might have forgot their debian machine root password and they want to reset this password.We will see the available options. &lt;p&gt;There are various methods available for resetting a root password.&lt;/p&gt; &lt;p&gt;Boot debian linux into single-user mode&lt;br&gt; Boot using a boot disk (like knoppix,gnoppix) and edit the password file&lt;br&gt; Mount the drive on another computer and edit the password file&lt;/p&gt; &lt;p&gt;&lt;span id="more-87"&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;It is possible to boot a system and log on to the root account without knowing the root password as long as one has access to the console keyboard.&lt;/p&gt; &lt;p&gt;This is a procedure which requires no external boot disks and no change in BIOS boot settings. Here, "Linux" is the label for booting the Linux kernel in the default Debian install.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Solution 1&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;At the lilo boot screen, as soon as boot: appears (you must press a shift key at this point on some systems to prevent automatic booting and when lilo uses the framebuffer you have to press TAB to see the options you type), enter:&lt;/p&gt; &lt;p&gt;boot: Linux init=/bin/sh        (for grub  init=/bin/bash)&lt;/p&gt; &lt;p&gt;This causes the system to boot the kernel and run /bin/sh instead of its standard init. Now you have gained root privileges and a root shell. Since / is currently mounted read-only and many disk partitions have not been mounted yet, you must do the following to have a reasonably functioning system.&lt;/p&gt; &lt;p&gt;# mount -n -o remount,rw /&lt;/p&gt; &lt;p&gt;# mount -avt nonfs,noproc,nosmbfs&lt;/p&gt; &lt;p&gt;# cd /etc&lt;/p&gt; &lt;p&gt;# vi passwd&lt;/p&gt; &lt;p&gt;# vi shadow&lt;/p&gt; &lt;p&gt;(If the second data field in /etc/passwd is "x" for every username, your system uses shadow passwords, and you must edit /etc/shadow.) To disable the root password, edit the second data field in the password file so that it is empty. Now the system can be rebooted and you can log on as root without a password. When booting into runlevel 1, Debian (at least after Potato) requires a password, which some older distributions did not.&lt;/p&gt; &lt;p&gt;It is a good idea to have a minimal editor in /bin/ in case /usr/ is not accessible.Also consider installing the sash package. When the system becomes unbootable, execute&lt;/p&gt; &lt;p&gt;boot: Linux init=/bin/sash&lt;/p&gt; &lt;p&gt;sash serves as an interactive substitute for sh even when /bin/sh is unusable. It's statically linked, and includes many standard utilities as built-ins.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Solution 2&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Boot from any emergency boot/root disk set. If /dev/hda3 is the original root partition, the following will let one edit the password file just as easily as the above.&lt;/p&gt; &lt;p&gt;# mkdir recovery&lt;/p&gt; &lt;p&gt;# mount /dev/hda3 recovery&lt;/p&gt; &lt;p&gt;# cd recovery/etc&lt;/p&gt; &lt;p&gt;# vi shadow&lt;/p&gt; &lt;p&gt;# vi passwd&lt;/p&gt; &lt;p&gt;Scroll down to the line containing the root user's information, which looks something like&lt;/p&gt; &lt;p&gt;root:weeWRSF!sfDFs:12581:0:99999:7:::&lt;/p&gt; &lt;p&gt;Delete everything between the first and second colons, so that the line looks like&lt;/p&gt; &lt;p&gt;root::12581:0:99999:7:::&lt;/p&gt; &lt;p&gt;Save the file and exit your editor.Type cd to return to your home directory.&lt;/p&gt; &lt;p&gt;Type umount mountplace to unmount the partition.&lt;/p&gt; &lt;p&gt;#unmount /dev/hda3 recovery&lt;/p&gt; &lt;p&gt;Type reboot to reboot your system&lt;/p&gt; &lt;p&gt;The advantage of this approach over the previous method is one does not need to know the lilo password . But to use it one must be able to access the BIOS setup to allow the system to boot from floppy disk or CD, if that is not already set.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Solution 3&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Reseting passwords by mounting on another system and editing the password file is bit more work need to be done.first you need to Shut down the machine after backing up all important data.Now remove you machine hard disk and connect this hard disk as slave drive for another machine(this should be linux OS) and boot this machine.Once the system finishes booting, mount the slave drive's root partition and edit the password file.If /dev/hda3 is the original root partition, the following will let one edit the password file just as easily as the above.&lt;/p&gt; &lt;p&gt;# mkdir recovery&lt;/p&gt; &lt;p&gt;# mount /dev/hda3 recovery&lt;/p&gt; &lt;p&gt;# cd recovery/etc&lt;/p&gt; &lt;p&gt;# vi shadow&lt;/p&gt; &lt;p&gt;# vi passwd&lt;/p&gt; &lt;p&gt;Scroll down to the line containing the root user's information, which looks something like&lt;/p&gt; &lt;p&gt;root:weeWRSF!sfDFs:12581:0:99999:7:::&lt;/p&gt; &lt;p&gt;Delete everything between the first and second colons, so that the line looks like&lt;/p&gt; &lt;p&gt;root::12581:0:99999:7:::&lt;/p&gt; &lt;p&gt;Save the file and exit your editor.Type cd to return to your home directory.&lt;/p&gt; &lt;p&gt;Type umount mountplace to unmount the partition.&lt;/p&gt; &lt;p&gt;#unmount /dev/hda3 recovery&lt;/p&gt; &lt;p&gt;Type reboot to reboot your system&lt;/p&gt;&lt;p&gt;&lt;font size="6"&gt;&lt;b&gt;Solution 4 (The most easy one)&lt;/b&gt;&lt;/font&gt;&lt;br&gt; &lt;/p&gt;&lt;p&gt;boot with livecd (i'm using ubuntu live )&lt;br&gt;&lt;/p&gt;&lt;p&gt;start terminal (use sudo or su to gain root previldge of live cd  )&lt;br&gt;&lt;/p&gt;&lt;p&gt;mkdir /d&lt;br&gt;mount /dev/hda1 /d&lt;br&gt;chroot /d&lt;br&gt; passwd (or passwd root)&lt;br&gt; type your new password&lt;br&gt; press Ctrl+Alt+Delete and enjoy&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt; &lt;p&gt;If you want to prevent others from resetting your root password you can use two options first one is protect your bootloader with password i.e your GRUB or LILO boot loaders and second one is protect BIOS with password.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-8830840533569843501?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/8830840533569843501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/02/reset-root-password-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8830840533569843501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/8830840533569843501'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/02/reset-root-password-linux.html' title='reset root password linux'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-2740842883481927314</id><published>2010-01-31T20:29:00.001-08:00</published><updated>2010-01-31T20:29:39.087-08:00</updated><title type='text'>Automatic Login in linux</title><content type='html'>&lt;h1 class="title"&gt;&lt;/h1&gt;				 &lt;span class="submitted"&gt;&lt;/span&gt;&lt;p&gt;I think this should work for any Linux operating system using Gnome, I have tested on Debian and Ubuntu.&lt;/p&gt;    &lt;p&gt;Well, automatic login will let you avoid to enter your login and password each time you turn on your PC, this could be insecure, but if your computer is physically secured it is Ok to enable this, that could make your booting more smooth.&lt;/p&gt; &lt;p&gt;How to do it?&lt;/p&gt;  &lt;div class="block block-block" id="block-block-18"&gt;        &lt;div class="content"&gt;  &lt;/div&gt;  &lt;/div&gt;  &lt;p&gt;On Gnome go to:&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Systems-&amp;gt;Administration-&amp;gt;Login Window&lt;/strong&gt;, you will be prompted for the administrator password, enter it and then select &lt;strong&gt;Security&lt;/strong&gt; tab, once in there select &lt;strong&gt;Enable automatic login&lt;/strong&gt; and select the user you want to be automatically logged in, each time you turn on your PC.&lt;/p&gt;  &lt;p&gt;&lt;img src="http://www.go2linux.org/pics/single_pictures/autologin.png" alt="autologin_linux_ubuntu_debian_gnome"&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-2740842883481927314?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/2740842883481927314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/01/automatic-login-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/2740842883481927314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/2740842883481927314'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/01/automatic-login-in-linux.html' title='Automatic Login in linux'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-173942639371067018</id><published>2010-01-28T22:08:00.001-08:00</published><updated>2010-01-28T22:08:06.008-08:00</updated><title type='text'>reset root password MYSQL</title><content type='html'>&lt;h5 class="title"&gt; Resetting the Root Password of mysql on Windows Systems&lt;/h5&gt; &lt;p&gt;             Use the following procedure for resetting the password for             any MySQL &lt;code class="literal"&gt;root&lt;/code&gt; accounts on Windows:           &lt;/p&gt; &lt;div class="orderedlist"&gt;&lt;ol type="1"&gt;&lt;li&gt;&lt;p&gt;                 Log on to your system as Administrator.               &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;p&gt;                 Stop the MySQL server if it is running. For a server                 that is running as a Windows service, go to the Services                 manager:               &lt;/p&gt; &lt;pre class="programlisting"&gt;Start Menu -&amp;gt; Control Panel -&amp;gt; Administrative Tools -&amp;gt; Services&lt;br&gt;&lt;/pre&gt; &lt;p&gt;                 Then find the MySQL service in the list, and stop it.               &lt;/p&gt; &lt;p&gt;                 If your server is not running as a service, you may need                 to use the Task Manager to force it to stop.               &lt;/p&gt; &lt;/li&gt;&lt;li&gt; &lt;p&gt;                 Create a text file and place the following statements in                 it. Replace the password with the password that you want                 to use.               &lt;/p&gt; &lt;pre class="programlisting"&gt;UPDATE mysql.user SET Password=PASSWORD(&amp;#39;MyNewPass&amp;#39;) WHERE User=&amp;#39;root&amp;#39;;&lt;br&gt;FLUSH PRIVILEGES;&lt;br&gt;&lt;/pre&gt; &lt;p&gt;                 The &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/update.html" title="12.2.11. UPDATE Syntax"&gt;&lt;code class="literal"&gt;UPDATE&lt;/code&gt;&lt;/a&gt; and                 &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/flush.html" title="12.5.6.2. FLUSH Syntax"&gt;&lt;code class="literal"&gt;FLUSH&lt;/code&gt;&lt;/a&gt; statements each                 must be written on a single line. The                 &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/update.html" title="12.2.11. UPDATE Syntax"&gt;&lt;code class="literal"&gt;UPDATE&lt;/code&gt;&lt;/a&gt; statement resets                 the password for all existing &lt;code class="literal"&gt;root&lt;/code&gt;                 accounts, and the &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/flush.html" title="12.5.6.2. FLUSH Syntax"&gt;&lt;code class="literal"&gt;FLUSH&lt;/code&gt;&lt;/a&gt;                 statement tells the server to reload the grant tables                 into memory.               &lt;/p&gt; &lt;/li&gt;&lt;li&gt;&lt;p&gt;                 Save the file. For this example, the file will be named                 &lt;code class="filename"&gt;C:\mysql-init.txt&lt;/code&gt;.               &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;p&gt;                 Open a console window to get to the command prompt:               &lt;/p&gt; &lt;pre class="programlisting"&gt;Start Menu -&amp;gt; Run -&amp;gt; cmd&lt;br&gt;&lt;/pre&gt; &lt;/li&gt;&lt;li&gt; &lt;p&gt;                 Start the MySQL server with the special                 &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/server-options.html#option_mysqld_init-file"&gt;&lt;code class="option"&gt;--init-file&lt;/code&gt;&lt;/a&gt; option:               &lt;/p&gt; &lt;pre class="programlisting"&gt;C:\&amp;gt; &lt;strong class="userinput"&gt;&lt;code&gt;C:\mysql\bin\mysqld-nt --init-file=C:\mysql-init.txt&lt;/code&gt;&lt;/strong&gt;&lt;br&gt;&lt;/pre&gt; &lt;p&gt;                 If you installed MySQL to a location other than                 &lt;code class="filename"&gt;C:\mysql&lt;/code&gt;, adjust the command                 accordingly.               &lt;/p&gt; &lt;p&gt;                 The server executes the contents of the file named by                 the &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/server-options.html#option_mysqld_init-file"&gt;&lt;code class="option"&gt;--init-file&lt;/code&gt;&lt;/a&gt; option at                 startup, changing each &lt;code class="literal"&gt;root&lt;/code&gt; account                 password.               &lt;/p&gt; &lt;p&gt;                 You can also add the                 &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/server-options.html#option_mysqld_console"&gt;&lt;code class="option"&gt;--console&lt;/code&gt;&lt;/a&gt; option to the                 command if you want server output to appear in the                 console window rather than in a log file.               &lt;/p&gt; &lt;p&gt;                 If you installed MySQL using the MySQL Installation                 Wizard, you may need to specify a                 &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/option-files.html#option_general_defaults-file"&gt;&lt;code class="option"&gt;--defaults-file&lt;/code&gt;&lt;/a&gt; option:               &lt;/p&gt; &lt;pre class="programlisting"&gt;C:\&amp;gt; &lt;strong class="userinput"&gt;&lt;code&gt;&amp;quot;C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld-nt.exe&amp;quot;&lt;/code&gt;&lt;/strong&gt;&lt;br&gt;         &lt;strong class="userinput"&gt;&lt;code&gt;--defaults-file=&amp;quot;C:\Program Files\MySQL\MySQL Server 5.0\my.ini&amp;quot;&lt;/code&gt;&lt;/strong&gt;&lt;br&gt;          &lt;strong class="userinput"&gt;&lt;code&gt;--init-file=C:\mysql-init.txt&lt;/code&gt;&lt;/strong&gt;&lt;br&gt;&lt;/pre&gt; &lt;p&gt;                 The appropriate                 &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/option-files.html#option_general_defaults-file"&gt;&lt;code class="option"&gt;--defaults-file&lt;/code&gt;&lt;/a&gt; setting                 can be found using the Services Manager:               &lt;/p&gt; &lt;pre class="programlisting"&gt;Start Menu -&amp;gt; Control Panel -&amp;gt; Administrative Tools -&amp;gt; Services&lt;br&gt;&lt;/pre&gt; &lt;p&gt;                 Find the MySQL service in the list, right-click on it,                 and choose the &lt;code class="literal"&gt;Properties&lt;/code&gt; option. The                 &lt;code class="literal"&gt;Path to executable&lt;/code&gt; field contains the                 &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/option-files.html#option_general_defaults-file"&gt;&lt;code class="option"&gt;--defaults-file&lt;/code&gt;&lt;/a&gt; setting.               &lt;/p&gt; &lt;/li&gt;&lt;li&gt;&lt;p&gt;                 After the server has started successfully, delete                 &lt;code class="filename"&gt;C:\mysql-init.txt&lt;/code&gt;.               &lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;                 Stop the MySQL server, then restart it in normal mode                 again. If you run the server as a service, start it from                 the Windows Services window. If you start the server                 manually, use whatever command you normally use.               &lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt; &lt;p&gt;             You should now be able to connect to MySQL as             &lt;code class="literal"&gt;root&lt;/code&gt; using the new password.           &lt;/p&gt;  &lt;div class="section" lang="en"&gt; &lt;div class="titlepage"&gt;&lt;div&gt;&lt;div&gt;&lt;h5 class="title"&gt; &lt;a name="resetting-permissions-unix"&gt;&lt;/a&gt; Resetting the Root Password on Unix Systems&lt;/h5&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p class="mnmas"&gt;&lt;b&gt;MySQL Enterprise. &lt;/b&gt;               For expert advice on security-related issues, subscribe to               the MySQL Enterprise Monitor. For more information, see               &lt;a href="http://www.mysql.com/products/enterprise/advisors.html" target="_top"&gt;http://www.mysql.com/products/enterprise/advisors.html&lt;/a&gt;.             &lt;/p&gt; &lt;p&gt;             Use the following procedure for resetting the password for             any MySQL &lt;code class="literal"&gt;root&lt;/code&gt; accounts on Unix. The             instructions assume that you will start the server so that             it runs using the Unix login account that you normally use             for running the server. For example, if you run the server             using the &lt;code class="literal"&gt;mysql&lt;/code&gt; login account, you should             log in as &lt;code class="literal"&gt;mysql&lt;/code&gt; before using the             instructions. (Alternatively, you can log in as             &lt;code class="literal"&gt;root&lt;/code&gt;, but in this case you             &lt;span class="emphasis"&gt;&lt;em&gt;must&lt;/em&gt;&lt;/span&gt; start &lt;span&gt;&lt;strong class="command"&gt;mysqld&lt;/strong&gt;&lt;/span&gt;             with the &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/server-options.html#option_mysqld_user"&gt;&lt;code class="option"&gt;--user=mysql&lt;/code&gt;&lt;/a&gt; option.             If you start the server as &lt;code class="literal"&gt;root&lt;/code&gt; without             using &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/server-options.html#option_mysqld_user"&gt;&lt;code class="option"&gt;--user=mysql&lt;/code&gt;&lt;/a&gt;, the             server may create &lt;code class="literal"&gt;root&lt;/code&gt;-owned files in the             data directory, such as log files, and these may cause             permission-related problems for future server startups. If             that happens, you will need to either change the ownership             of the files to &lt;code class="literal"&gt;mysql&lt;/code&gt; or remove them.)           &lt;/p&gt; &lt;div class="orderedlist"&gt;&lt;ol type="1"&gt;&lt;li&gt;&lt;p&gt;                 Log on to your system as the Unix                 &lt;code class="literal"&gt;mysql&lt;/code&gt; user that the                 &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/mysqld.html" title="4.3.1. mysqld — The MySQL Server"&gt;&lt;span&gt;&lt;strong class="command"&gt;mysqld&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt; server runs as.               &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;p&gt;                 Locate the &lt;code class="filename"&gt;.pid&lt;/code&gt; file that contains                 the server&amp;#39;s process ID. The exact location and name of                 this file depend on your distribution, host name, and                 configuration. Common locations are                 &lt;code class="filename"&gt;/var/lib/mysql/&lt;/code&gt;,                 &lt;code class="filename"&gt;/var/run/mysqld/&lt;/code&gt;, and                 &lt;code class="filename"&gt;/usr/local/mysql/data/&lt;/code&gt;. Generally,                 the file name has an extension of                 &lt;code class="filename"&gt;.pid&lt;/code&gt; and begins with either                 &lt;code class="filename"&gt;mysqld&lt;/code&gt; or your system&amp;#39;s host name.               &lt;/p&gt; &lt;p&gt;                 You can stop the MySQL server by sending a normal                 &lt;code class="literal"&gt;kill&lt;/code&gt; (not &lt;code class="literal"&gt;kill -9&lt;/code&gt;)                 to the &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/mysqld.html" title="4.3.1. mysqld — The MySQL Server"&gt;&lt;span&gt;&lt;strong class="command"&gt;mysqld&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt; process, using the path                 name of the &lt;code class="filename"&gt;.pid&lt;/code&gt; file in the                 following command:               &lt;/p&gt; &lt;pre class="programlisting"&gt;shell&amp;gt; &lt;strong class="userinput"&gt;&lt;code&gt;kill `cat /mysql-data-directory/host_name.pid`&lt;/code&gt;&lt;/strong&gt;&lt;br&gt;&lt;/pre&gt; &lt;p&gt;                 Note the use of backticks rather than forward quotes                 with the &lt;code class="literal"&gt;cat&lt;/code&gt; command; these cause the                 output of &lt;code class="literal"&gt;cat&lt;/code&gt; to be substituted into                 the &lt;code class="literal"&gt;kill&lt;/code&gt; command.               &lt;/p&gt; &lt;/li&gt;&lt;li&gt; &lt;p&gt;                 Create a text file and place the following statements in                 it. Replace the password with the password that you want                 to use.               &lt;/p&gt; &lt;pre class="programlisting"&gt;UPDATE mysql.user SET Password=PASSWORD(&amp;#39;MyNewPass&amp;#39;) WHERE User=&amp;#39;root&amp;#39;;&lt;br&gt;FLUSH PRIVILEGES;&lt;br&gt;&lt;/pre&gt; &lt;p&gt;                 The &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/update.html" title="12.2.11. UPDATE Syntax"&gt;&lt;code class="literal"&gt;UPDATE&lt;/code&gt;&lt;/a&gt; and                 &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/flush.html" title="12.5.6.2. FLUSH Syntax"&gt;&lt;code class="literal"&gt;FLUSH&lt;/code&gt;&lt;/a&gt; statements each                 must be written on a single line. The                 &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/update.html" title="12.2.11. UPDATE Syntax"&gt;&lt;code class="literal"&gt;UPDATE&lt;/code&gt;&lt;/a&gt; statement resets                 the password for all existing &lt;code class="literal"&gt;root&lt;/code&gt;                 accounts, and the &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/flush.html" title="12.5.6.2. FLUSH Syntax"&gt;&lt;code class="literal"&gt;FLUSH&lt;/code&gt;&lt;/a&gt;                 statement tells the server to reload the grant tables                 into memory.               &lt;/p&gt; &lt;/li&gt;&lt;li&gt;&lt;p&gt;                 Save the file. For this example, the file will be named                 &lt;code class="filename"&gt;/home/me/mysql-init&lt;/code&gt;. The file                 contains the password, so it should not be saved where                 it can be read by other users.               &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;p&gt;                 Start the MySQL server with the special                 &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/server-options.html#option_mysqld_init-file"&gt;&lt;code class="option"&gt;--init-file&lt;/code&gt;&lt;/a&gt; option:               &lt;/p&gt; &lt;pre class="programlisting"&gt;shell&amp;gt; &lt;strong class="userinput"&gt;&lt;code&gt;mysqld_safe --init-file=/home/me/mysql-init &amp;amp;&lt;/code&gt;&lt;/strong&gt;&lt;br&gt;&lt;/pre&gt; &lt;p&gt;                 The server executes the contents of the file named by                 the &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/server-options.html#option_mysqld_init-file"&gt;&lt;code class="option"&gt;--init-file&lt;/code&gt;&lt;/a&gt; option at                 startup, changing each &lt;code class="literal"&gt;root&lt;/code&gt; account                 password.               &lt;/p&gt; &lt;/li&gt;&lt;li&gt;&lt;p&gt;                 After the server has started successfully, delete                 &lt;code class="filename"&gt;/home/me/mysql-init&lt;/code&gt;.               &lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt; &lt;p&gt;             You should now be able to connect to MySQL as             &lt;code class="literal"&gt;root&lt;/code&gt; using the new password.           &lt;/p&gt; &lt;p&gt;             Alternatively, on any platform, you can set the new password             using the &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/mysql.html" title="4.5.1. mysql — The MySQL Command-Line Tool"&gt;&lt;span&gt;&lt;strong class="command"&gt;mysql&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt; client (but this approach             is less secure):           &lt;/p&gt; &lt;div class="orderedlist"&gt;&lt;ol type="1"&gt;&lt;li&gt;&lt;p&gt;                 Stop &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/mysqld.html" title="4.3.1. mysqld — The MySQL Server"&gt;&lt;span&gt;&lt;strong class="command"&gt;mysqld&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt; and restart it with the                 &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/server-options.html#option_mysqld_skip-grant-tables"&gt;&lt;code class="option"&gt;--skip-grant-tables&lt;/code&gt;&lt;/a&gt;                 option.               &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;p&gt;                 Connect to the &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/mysqld.html" title="4.3.1. mysqld — The MySQL Server"&gt;&lt;span&gt;&lt;strong class="command"&gt;mysqld&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt; server with                 this command:               &lt;/p&gt; &lt;pre class="programlisting"&gt;shell&amp;gt; &lt;strong class="userinput"&gt;&lt;code&gt;mysql&lt;/code&gt;&lt;/strong&gt;&lt;br&gt;&lt;/pre&gt; &lt;/li&gt;&lt;li&gt; &lt;p&gt;                 Issue the following statements in the                 &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/mysql.html" title="4.5.1. mysql — The MySQL Command-Line Tool"&gt;&lt;span&gt;&lt;strong class="command"&gt;mysql&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt; client. Replace the password                 with the password that you want to use.               &lt;/p&gt; &lt;pre class="programlisting"&gt;mysql&amp;gt; &lt;strong class="userinput"&gt;&lt;code&gt;UPDATE mysql.user SET Password=PASSWORD(&amp;#39;MyNewPass&amp;#39;)&lt;/code&gt;&lt;/strong&gt;&lt;br&gt;    -&amp;gt;                   &lt;strong class="userinput"&gt;&lt;code&gt;WHERE User=&amp;#39;root&amp;#39;;&lt;/code&gt;&lt;/strong&gt;&lt;br&gt; mysql&amp;gt; &lt;strong class="userinput"&gt;&lt;code&gt;FLUSH PRIVILEGES;&lt;/code&gt;&lt;/strong&gt;&lt;br&gt;&lt;/pre&gt; &lt;/li&gt;&lt;/ol&gt;&lt;/div&gt; &lt;p&gt;             You should now be able to connect to MySQL as             &lt;code class="literal"&gt;root&lt;/code&gt; using the new password.           &lt;/p&gt; &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-173942639371067018?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/173942639371067018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/01/reset-root-password-mysql.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/173942639371067018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/173942639371067018'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/01/reset-root-password-mysql.html' title='reset root password MYSQL'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-3188830887927868474</id><published>2010-01-28T03:01:00.001-08:00</published><updated>2010-01-28T03:01:03.281-08:00</updated><title type='text'>install Linux / UNIX .tar.gz tarball files</title><content type='html'>&lt;h1 class="entry-title"&gt;How to install Linux / UNIX *.tar.gz tarball files&lt;/h1&gt; 					 				 				 &lt;div style="float: right; margin-top: 0px; margin-left: 5px;"&gt;&lt;img src="http://figs.cyberciti.biz/3rdparty/linux-logo.png" border="0"&gt;&lt;/div&gt;&lt;p&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;/span&gt; tar.gz also known as tarball, an archive format for electronic data and software. Most Linux tarball contains a source code for software. If you are new to Linux I recommend using apt-get, rpm and yum command to install all binary packages.&lt;/p&gt; &lt;p&gt;Tarballs are a group of files in one file. Tarball files have the extension .tar.gz, .tgz or .tar.bz2. Most open source software use tarballs to distribute programs/source codes.&lt;/p&gt; &lt;h3&gt;# 1: Uncompress tarball&lt;/h3&gt; &lt;p&gt;To uncompress them, execute the following command(s) depending on the extension:&lt;br&gt; &lt;code&gt;$ tar zxf file.tar.gz&lt;br&gt; $ tar zxf file.tgz&lt;br&gt; $ tar jxf file.tar.bz2&lt;br&gt; $ tar jxf file.tbz2&lt;br&gt; &lt;/code&gt;&lt;br&gt; Now change directory&lt;br&gt; &lt;code&gt;$ ls&lt;br&gt; $ cd path-to-software/&lt;/code&gt;&lt;/p&gt; &lt;h3&gt;# 2: Build and install software&lt;/h3&gt; &lt;p&gt;Generally you need to type 3 commands as follows for building and compiling software:&lt;br&gt; &lt;code&gt;#  ./configure&lt;br&gt; # make&lt;br&gt; # make install&lt;/code&gt;&lt;/p&gt; &lt;p&gt;Where,&lt;/p&gt; &lt;ul&gt;&lt;li&gt;./configure will configure the software to ensure your system has the necessary functionality and libraries to successfully compile the package&lt;/li&gt;&lt;li&gt;make will compile all the source files into executable binaries.&lt;/li&gt;&lt;li&gt;Finally, make install will install the binaries and any supporting files into the appropriate locations.&lt;/li&gt;&lt;/ul&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1694022963302006053-3188830887927868474?l=techblog.anweshtiwari.com.np' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techblog.anweshtiwari.com.np/feeds/3188830887927868474/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/01/install-linux-unix-targz-tarball-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/3188830887927868474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1694022963302006053/posts/default/3188830887927868474'/><link rel='alternate' type='text/html' href='http://techblog.anweshtiwari.com.np/2010/01/install-linux-unix-targz-tarball-files.html' title='install Linux / UNIX .tar.gz tarball files'/><author><name>tendydon</name><uri>http://www.blogger.com/profile/10062627433685224612</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_fZCpMv_Zyog/S1U_IidAxqI/AAAAAAAAAAM/7hqRhKS3khM/S220/tendydon.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1694022963302006053.post-1512832161877770681</id><published>2010-01-26T22:57:00.001-08:00</published><updated>2010-01-26T22:57:33.043-08:00</updated><title type='text'>Public_html webpage for each user in linux</title><content type='html'>&lt;h1&gt;Apache2: Activating User public_html Directories &amp;amp; Virtual Directories- Hosts- Domains under Ubuntu Linux for a Private LAN&lt;/h1&gt;  &lt;h2&gt;Summary: Let the hacker beware&lt;/h2&gt;  &lt;p&gt;These pages describes how I activated the public_html user directories to be served up by the Apache web server and set up virtual directories, meaning fake domains. The audience is developers and home users who want to work on their websites at their desktop computers. I describe what has worked for me and some problems you might encounter using Ubuntu Linux 7.10 (Gutsy Gibbons) desktop software. I have no idea if this is applicable to the GUI-less server software. These are experiences I had using computers in my home. They may or may not work for you. I also don&amp;#39;t know the distinctions between virtual hosts, virtual directories, and virtual domains.&lt;/p&gt;  &lt;h2&gt;Step 1: Installing Apache2 and php5&lt;/h2&gt;  &lt;p&gt;In a terminal (Applications...Accessories...Terminal), type everything after &amp;quot;$&amp;quot;&lt;/p&gt;  &lt;p class="terminal"&gt;&lt;code&gt;me@myhost$ sudo apt-get install apache2 php5&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;and press enter. Yeah, you need to be connected to the internet. You will be told you&amp;#39;re getting some extra software packages with that order. Just say, &amp;quot;Yes, super-size me&amp;quot;. The software php5 is not necessary, but at some point it will probably be useful to you if you are developing your own website. You can also use System...Admin...Synaptic Package Manager to install the software.&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Test Step 1:&lt;/b&gt; When you install apache2 in Ubuntu linux, it is set to start automatically on each boot. You should be able to open a web browser and type in &amp;quot;&lt;a href="http://localhost"&gt;http://localhost&lt;/a&gt;&amp;quot; and see the default apache directory. Click on the directory for the &amp;quot;It Works!&amp;quot; message. If you can&amp;#39;t do this, don&amp;#39;t proceed. One thing to check is that you have the IP 127.0.0.1 associated with &amp;quot;localhost&amp;quot; in the /etc/hosts file. You can also check this through the GUI System...Admin...Network...Hosts Tab.&lt;/p&gt;  &lt;h2&gt;Error - Gotcha if Any Reinstalls Done&lt;/h2&gt;  &lt;p&gt;Subtitled &amp;quot;Don&amp;#39;t do what I have done&amp;quot;. If you have a problem and decide to reinstall apache... just using &amp;quot;mark for reinstallation&amp;quot; or &amp;quot;reinstall&amp;quot; on the command line did NOT get me a fresh /etc/apache2 setup. I&amp;#39;m not sure which package all this stuff is in, but if you select all the titles with &amp;quot;apache2&amp;quot; in them and &amp;quot;completely remove&amp;quot;, or &amp;quot;force remove&amp;quot;, or &amp;quot;--purge&amp;quot;, then you will be able to start anew again. Research &amp;quot;apt-get&amp;quot; for the right commands. &lt;span class="red"&gt;Make sure you check the timestamp on the files in the /etc/apache2 directory when you THINK you have a new installation!&lt;/span&gt;&lt;/p&gt;  &lt;h2&gt;Step 2: Activating the User&amp;#39;s public_html Directory with userdir&lt;/h2&gt;  &lt;p&gt;&lt;b&gt;Background:&lt;/b&gt; Firstly, create a directory (folder) called &amp;quot;public_html&amp;quot; in your home directory, with your file browser, or:&lt;/p&gt;  &lt;p class="terminal"&gt;&lt;code&gt;me@myhost$ mkdir public_html&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;There are a couple of reasons to do this. When you have a web server shared by many people, like a shared-hosting ISP, it is necessary to give each user separate access to the &amp;quot;live&amp;quot; files. I have found that on a simple development machine, it is also easier to have your work all within your own home directory and not have to worry about permission and folders owned by the root user. What it gets you is the ability to access your websites in your home directory by a URL in the form &lt;code&gt;&lt;a href="http://localhost/~myhome"&gt;http://localhost/~myhome&lt;/a&gt;&lt;/code&gt;.  We can improve upon this with virtual directories, but first things first.&lt;/p&gt;  &lt;p&gt;There are only two commands you need to enter to activate the User Directory feature, and then one command to reload the configuration files. The last command includes an absolute path, so it doesn&amp;#39;t matter where you execute it from. The first two &amp;quot;ln&amp;quot; commands assume yo
