<?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'/><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=26&amp;max-results=25'/><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>25</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></feed>
