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

<channel>
	<title>Victor Stanciu &#187; Linux</title>
	<atom:link href="http://www.victorstanciu.ro/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.victorstanciu.ro</link>
	<description>Web Developer, Geek</description>
	<lastBuildDate>Sat, 10 Jul 2010 07:39:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Redirect all requests (including POST) from one Apache server to another</title>
		<link>http://www.victorstanciu.ro/redirect-all-requests-including-post-from-one-apache-server-to-another/</link>
		<comments>http://www.victorstanciu.ro/redirect-all-requests-including-post-from-one-apache-server-to-another/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 14:04:36 +0000</pubDate>
		<dc:creator>Victor Stanciu</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://www.victorstanciu.ro/?p=461</guid>
		<description><![CDATA[In order to test POST callbacks made by a payment gateway without having to work via FTP on a publicly-accessible server, I needed a simple solution to redirect all requests from said server to my workstation, that is on the same network as the server, but is not accessible from outside. The easiest thing to [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>In order to test POST callbacks made by a payment gateway without having to work via FTP on a publicly-accessible server, I needed a simple solution to redirect all requests from said server to my workstation, that is on the same network as the server, but is not accessible from outside.</p>
<p>The easiest thing to do was to use the <strong>mod_rewrite</strong>, <strong>mod_proxy</strong> and <strong>mod_proxy_http</strong> Apache modules. You can easily activate all of them in Ubuntu with:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">sudo a2enmod rewrite proxy proxy_http</pre></td></tr></table></div>

<p>I created an empty folder on the server and placed a <strong>.htaccess</strong> file with the following lines in it:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">RewriteEngine On
RewriteRule ^(.*)$ http://10.4.2.155/$1 [NC,P]</pre></td></tr></table></div>

<p>The <strong>[P]</strong> at the end of the RewriteRule specifies that the request should be handled by the proxy module so all GET and POST data are preserved. Therefore, all requests made in that directory will be automatically forwarded to my machine.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.victorstanciu.ro/redirect-all-requests-including-post-from-one-apache-server-to-another/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset / change Windows 7 / Vista / XP password using a Ubuntu CD</title>
		<link>http://www.victorstanciu.ro/reset-change-windows-7-vista-xp-password-using-a-ubuntu-cd/</link>
		<comments>http://www.victorstanciu.ro/reset-change-windows-7-vista-xp-password-using-a-ubuntu-cd/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 19:27:40 +0000</pubDate>
		<dc:creator>Victor Stanciu</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.victorstanciu.ro/?p=432</guid>
		<description><![CDATA[So you forgot your Windows password, and want to reset it? No problem. All you need is a Ubuntu CD (download ISO file here, instructions on how to burn the image to a CD here). Step 1: Boot from Ubuntu CD Insert the Ubuntu CD, restart your computer. At the boot screen, select the language and [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>So you forgot your Windows password, and want to reset it? No problem. All you need is a Ubuntu CD (download ISO file <a title="Download Ubuntu ISO" href="http://www.ubuntu.com/getubuntu/download">here</a>, instructions on how to burn the image to a CD <a href="http://pcsupport.about.com/od/toolsofthetrade/ht/burnisofile.htm">here</a>).</p>
<h2>Step 1: Boot from Ubuntu CD</h2>
<p><a href="http://www.victorstanciu.ro/wp-content/uploads/2009/11/1.png" class="fullimg"><img src="http://victorstanciu.ro/wp-content/uploads/2009/11/thumbs/1.png" alt="" /></a></p>
<p>Insert the Ubuntu CD, restart your computer. At the boot screen, select the language and then the first option, &#8220;Try Ubuntu without any change to your computer.&#8221;</p>
<h2>Step 2: install chntpw</h2>
<p><i><a href="http://freshmeat.net/projects/chntpw/" title="chntpw">chntpw</a> is a Linux utility to (re)set the password of any user that has a valid (local) account</i></p>
<p>Go to Administration / Software Sources, and make sure the &#8220;Community maintained Open Source software (universe)&#8221; option is checked. Press &#8220;Close&#8221;.</p>
<p><a href="http://www.victorstanciu.ro/wp-content/uploads/2009/11/2.png" class="fullimg"><img src="http://victorstanciu.ro/wp-content/uploads/2009/11/thumbs/2.png" alt="" /></a><br />
<a href="http://www.victorstanciu.ro/wp-content/uploads/2009/11/3.png" class="fullimg"><img src="http://victorstanciu.ro/wp-content/uploads/2009/11/thumbs/3.png" alt="" /></a></p>
<p>You will be prompted to reload the package information. Press &#8220;Reload&#8221;</p>
<p><a href="http://www.victorstanciu.ro/wp-content/uploads/2009/11/4.png" class="fullimg"><img src="http://victorstanciu.ro/wp-content/uploads/2009/11/thumbs/4.png" alt="" /></a></p>
<p>Open a terminal (Applications / Accessories / Terminal):</p>
<p><a href="http://www.victorstanciu.ro/wp-content/uploads/2009/11/5.png" class="fullimg"><img src="http://victorstanciu.ro/wp-content/uploads/2009/11/thumbs/5.png" alt="" /></a></p>
<p>Once the terminal is opened, type the following command in it and press enter:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">sudo apt-get install chntpw</pre></td></tr></table></div>

<h3>Step 3: Reset password</h3>
<p>Once chntpw is installed, you have to mount the Windows partition. The easiest way to do this is to click the Windows drive in the Places menu (usually the first HDD in the list):</p>
<p><a href="http://www.victorstanciu.ro/wp-content/uploads/2009/11/6.png" class="fullimg"><img src="http://victorstanciu.ro/wp-content/uploads/2009/11/thumbs/6.png" alt="" /></a></p>
<p>When the Windows drive is opened, make sure to copy the location where the drive was mounted from the address bar, and paste it in the following command:</p>
<p><a href="http://www.victorstanciu.ro/wp-content/uploads/2009/11/7.png" class="fullimg"><img src="http://victorstanciu.ro/wp-content/uploads/2009/11/thumbs/7.png" alt="" /></a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">cd /media/A854C956382E2B62/WINDOWS/system32/config/</pre></td></tr></table></div>

<p>Now you have the following options:</p>
<h4>Reset / change the Administrator password:</h4>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">sudo chntpw SAM</pre></td></tr></table></div>

<h4>Reset / change another user&#8217;s password:</h4>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">sudo chntpw -u your_username SAM</pre></td></tr></table></div>

<p>Whichever you type, you will be presented with a list of options:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">- - - - User Edit Menu:
 1 - Clear (blank) user password
 2 - Edit (set new) user password (careful with this on XP or Vista)
 3 - Promote user (make user an administrator)
(4 - Unlock and enable user account) [seems unlocked already]
 q - Quit editing user, back to user select
Select: [q] &gt;</pre></td></tr></table></div>

<p>Pressing <b>1</b>, <b>enter</b>, <b>y</b> and another <b>enter</b> will remove the user&#8217;s password, and allow you to restart the computer and logon to Windows.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.victorstanciu.ro/reset-change-windows-7-vista-xp-password-using-a-ubuntu-cd/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
