<?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>:: Stracca Blog ::</title>
	<atom:link href="http://www.stracca.net/blog/index.php?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.stracca.net/blog</link>
	<description>Stefano Stracuzzi TECH blog</description>
	<lastBuildDate>Fri, 09 Sep 2011 08:10:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>VMware ESX SSH No Matching Cipher Found Error</title>
		<link>http://www.stracca.net/blog/?p=156</link>
		<comments>http://www.stracca.net/blog/?p=156#comments</comments>
		<pubDate>Fri, 09 Sep 2011 08:07:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[blowfish]]></category>
		<category><![CDATA[chiper]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.stracca.net/blog/?p=156</guid>
		<description><![CDATA[If you need to speedup file transfer to you ESX server using scp you can change the Chiper to 'blowfish' or '3des', example: scp -c blowfish filename.tar.gz root@10.10.10.1:/vmfs/volumes/storage1/ But you can get this error Message: no matching cipher found: client blowfish-cbc server aes256-cbc,aes128-cbc You can edit your Ciphers list to include blowfish-cbc by doing the [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to speedup file transfer to you ESX server using scp you can change the Chiper to 'blowfish' or '3des', example:<br />
<code><br />
<strong>scp -c blowfish filename.tar.gz root@10.10.10.1:/vmfs/volumes/storage1/</strong></code></p>
<p>But you can get this error Message:</p>
<p><strong><code>no matching cipher found: client blowfish-cbc server aes256-cbc,aes128-cbc</code></strong></p>
<p>You can edit your Ciphers list to include blowfish-cbc by doing the following:</p>
<p><strong><code>vi /etc/ssh/sshd_config</code></strong></p>
<p>at the end of the file you should see a line like: Ciphers aes256-cbc,aes128-cbc</p>
<p>Change this line to:</p>
<p><strong>Ciphers aes256-cbc,aes128-cbc,blowfish-cbc</strong></p>
<p>Once the file has been updated run the following command to restart the sshd service:</p>
<p><strong><code>service sshd restart</code></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stracca.net/blog/?feed=rss2&#038;p=156</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Identify disk device with the UUID</title>
		<link>http://www.stracca.net/blog/?p=141</link>
		<comments>http://www.stracca.net/blog/?p=141#comments</comments>
		<pubDate>Mon, 08 Nov 2010 22:35:24 +0000</pubDate>
		<dc:creator>Stracca</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[blkid]]></category>
		<category><![CDATA[dumpe2fs]]></category>
		<category><![CDATA[fstab]]></category>
		<category><![CDATA[uuid]]></category>

		<guid isPermaLink="false">http://www.stracca.net/blog/?p=141</guid>
		<description><![CDATA[When linux system starts, auto mounting partition will be done by refering to the configuration file /etc/fstab (File System Table), in this file you specify the disk, the mount point and the type of mount to do at system startup: # &#60;file system&#62;     &#60;mount point&#62;   &#60;type&#62;  &#60;options&#62;                 &#60;dump&#62;  &#60;pass&#62; /dev/sda1 /my/disk vfat default,umask=077,gid=46 0 0 [...]]]></description>
			<content:encoded><![CDATA[<p>When linux system starts, auto mounting partition will be done by refering to the configuration file /etc/fstab (File System Table), in this file you specify the disk, the mount point and the type of mount to do at system startup:</p>
<p><strong><code># &lt;file system&gt;     &lt;mount point&gt;   &lt;type&gt;  &lt;options&gt;                 &lt;dump&gt;  &lt;pass&gt;</code></strong><br />
<strong><code>   /dev/sda1         /my/disk        vfat    default,umask=077,gid=46  0       0</code></strong></p>
<p>In the above example <strong>/dev/sda1</strong> is the device you want to be mounted in <strong>/my/disk</strong> directory, but the name /dev/sda1 can change when you change the order on your controller or when you change the port where you connect your external usb-drive.<br />
So the name of the device isn't an unique identifier of the specific disk; you need to refer to it in a different way, using the <strong>UUID</strong> (<em>Universally Unique IDentifier</em>). The UUID is a specific identifier for this specific file system, it changes only when you reinitialize the filesystem but not when you change the order you connect it to you machine.</p>
<p>So you can change you /etc/fstab in this way and you no need to worry about the reordering of hard disk anymore:</p>
<p><strong><code>UUID=1928b637-4daa-4073-b42c-14a05220ce8a    /my/disk        vfat    defaults,umask=007,gid=46 0       0</code></strong></p>
<p>To retrive the UUID of a specific partition you had different ways depending on your linux distribution, here are some example, try the one that fits your linux distribution:</p>
<p><strong><code>dumpe2fs /dev/sda1 | grep -i uuid</code></strong></p>
<p><code><strong>blkid /dev/sda1</strong></code></p>
<p><code><strong>ls -l /dev/disk/by-uuid/</strong></code><strong></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stracca.net/blog/?feed=rss2&#038;p=141</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset ILO (Integrated Lights-Out 2) on HP Server</title>
		<link>http://www.stracca.net/blog/?p=132</link>
		<comments>http://www.stracca.net/blog/?p=132#comments</comments>
		<pubDate>Mon, 08 Mar 2010 16:12:04 +0000</pubDate>
		<dc:creator>Stracca</dc:creator>
				<category><![CDATA[HP]]></category>
		<category><![CDATA[ILO]]></category>
		<category><![CDATA[reset]]></category>

		<guid isPermaLink="false">http://www.stracca.net/blog/?p=132</guid>
		<description><![CDATA[Recently I had the necessity to reset the ILO interface of an HP Proliant Server. I found that you need to connect in ssh (or in telnet) to do it. One connect give this commands: cd /Map1 reset Here an example: User:admin logged-in to ILOGB87451B7E(10.1.1.15) iLO 2 Advanced 1.81 at 11:05:47 Jan 15 2010 Server [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I had the necessity to reset the ILO interface of an HP Proliant Server.<br />
I found that you need to connect in ssh (or in telnet) to do it.<br />
One connect give this commands:<br />
<code>cd /Map1<br />
reset</code></p>
<p>Here an example:</p>
<p><code>User:admin logged-in to ILOGB87451B7E(10.1.1.15)<br />
iLO 2 Advanced 1.81 at 11:05:47 Jan 15 2010<br />
Server Name: myserver.mydomain.com<br />
Server Power: On</p>
<p>hpiLO-> cd /Map1<br />
status=0<br />
status_tag=COMMAND COMPLETED</p>
<p>/Map1</p>
<p>hpiLO-> reset<br />
status=0<br />
status_tag=COMMAND COMPLETED<br />
Resetting iLO.</p>
<p>CLI session stopped</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stracca.net/blog/?feed=rss2&#038;p=132</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can&#8217;t find Telnet in Windows Vista</title>
		<link>http://www.stracca.net/blog/?p=128</link>
		<comments>http://www.stracca.net/blog/?p=128#comments</comments>
		<pubDate>Thu, 18 Feb 2010 11:10:25 +0000</pubDate>
		<dc:creator>Stracca</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[telnet]]></category>
		<category><![CDATA[vista]]></category>

		<guid isPermaLink="false">http://www.stracca.net/blog/?p=128</guid>
		<description><![CDATA[For some strange security reasons Microsoft decided to don't enable by default the telnet client in Windows Vista. In order to enable it follow this simple steps: Go to Control Panel Select Programs and Features Select Turn Windows features on or off Select the Telnet Client option Click OK A dialog box will appear to [...]]]></description>
			<content:encoded><![CDATA[<p>For some strange security reasons Microsoft decided to don't enable by default the telnet client in Windows Vista.</p>
<p>In order to enable it follow this simple steps:</p>
<ol>
<li>Go to <strong>Control Panel</strong></li>
<li>Select <strong>Programs and Features</strong></li>
<li>Select <strong>Turn Windows features on or off</strong></li>
<li>Select the <strong>Telnet Client</strong> option</li>
<li>Click OK</li>
<li>A dialog box will appear to confirm installation</li>
</ol>
<p>The telnet command should now be available!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stracca.net/blog/?feed=rss2&#038;p=128</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solve Issue: &#8220;can’t open /etc/ntp/drift.TEMP: Permission denied&#8221;</title>
		<link>http://www.stracca.net/blog/?p=123</link>
		<comments>http://www.stracca.net/blog/?p=123#comments</comments>
		<pubDate>Tue, 16 Feb 2010 17:20:37 +0000</pubDate>
		<dc:creator>Stracca</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[redhat]]></category>

		<guid isPermaLink="false">http://www.stracca.net/blog/?p=123</guid>
		<description><![CDATA[If you get the error "can’t open /etc/ntp/drift.TEMP: Permission denied" in your /var/log/messages just simply modify the configuration file /etc/ntp.conf changing the incorrect entry: driftfile /etc/ntp/drift to the correct one: driftfile /var/lib/ntp/drift This is due to the fact that the ntp daemon doesn't run as root but the directory /etc/ntp is owned by root! On [...]]]></description>
			<content:encoded><![CDATA[<p>If you get the error <em>"can’t open /etc/ntp/drift.TEMP: Permission denied"</em> in your /var/log/messages just simply modify the configuration file <strong>/etc/ntp.conf</strong> changing the incorrect entry:<br />
<code>driftfile /etc/ntp/drift</code><br />
to the correct one:<br />
<code>driftfile /var/lib/ntp/drift</code></p>
<p>This is due to the fact that the ntp daemon doesn't run as root but the directory /etc/ntp is owned by root!<br />
On the newest release of RedHat the preferred location for the drift file is the directory /var/lib/ntp but you can set an other one owned by ntp:ntp .</p>
<p>Source: <a href="http://magazine.redhat.com/2007/02/06/why-do-i-get-cant-open-etcntpdrifttemp-permission-denied-entries-in-varlogmessages-when-i-use-ntpd/">http://magazine.redhat.com/2007/02/06/why-do-i-get-cant-open-etcntpdrifttemp-permission-denied-entries-in-varlogmessages-when-i-use-ntpd/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stracca.net/blog/?feed=rss2&#038;p=123</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix RMAN-06059: expected archived log not found</title>
		<link>http://www.stracca.net/blog/?p=117</link>
		<comments>http://www.stracca.net/blog/?p=117#comments</comments>
		<pubDate>Mon, 30 Nov 2009 09:40:57 +0000</pubDate>
		<dc:creator>Stracca</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[rman]]></category>

		<guid isPermaLink="false">http://www.stracca.net/blog/?p=117</guid>
		<description><![CDATA[If you get RMAN-06059: expected archived log not found it means that rman can't find one or more archivelog file that he had to archive. In order to fix it you can restore the archivelog he can't find or you had to force the crosscheck of all the archivelog issuing this command: RMAN> change archivelog [...]]]></description>
			<content:encoded><![CDATA[<p>If you get <b>RMAN-06059: expected archived log not found</b> it means that rman can't find one or more archivelog file that he had to archive.<br />
In order to fix it you can restore the archivelog he can't find or you had to force the crosscheck of all the archivelog issuing this command:</p>
<pre>RMAN> change archivelog all crosscheck;</pre>
<p>In this way you probably don't have a consistent backup so it's reccomended to make a full backup in order to go to a consistent situation.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stracca.net/blog/?feed=rss2&#038;p=117</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Enable root login in GUI Gnome</title>
		<link>http://www.stracca.net/blog/?p=107</link>
		<comments>http://www.stracca.net/blog/?p=107#comments</comments>
		<pubDate>Fri, 20 Nov 2009 17:49:34 +0000</pubDate>
		<dc:creator>Stracca</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[fedora]]></category>

		<guid isPermaLink="false">http://www.stracca.net/blog/?p=107</guid>
		<description><![CDATA[For security reason is a very bad idea logging in with the root account directly to you box, but if you need it here's the solution. First of all make a backup copy of the file you need to modify: cp /etc/gdm/gdm /etc/gdm/gdm.backup cp /etc/gdm/gdm-password /etc/gdm/gdmpassword.backup cp /etc/gdm/gdm-fingerprint /etc/gdm/gdm-fingerprint.backup Now modify these files: vi gdm [...]]]></description>
			<content:encoded><![CDATA[<p>For security reason is a very bad idea logging in with the root account directly to you box, but if you need it here's the solution.</p>
<p>First of all make a backup copy of the file you need to modify:</p>
<pre>cp /etc/gdm/gdm             /etc/gdm/gdm.backup
cp /etc/gdm/gdm-password    /etc/gdm/gdmpassword.backup
cp /etc/gdm/gdm-fingerprint /etc/gdm/gdm-fingerprint.backup</pre>
<p>Now modify these files:</p>
<pre>vi gdm
vi gdm-password
vi gdm-fingerprint</pre>
<p>You need to comment or remove the line:</p>
<pre>auth       required    pam_succeed_if.so user != root quiet</pre>
<p>Reboot you system and you can logon with root in the GUI.</p>
<p>If you don't have the fingerprint sensor on you machine, probably you don't need to change this file!</p>
<p><em>Tested only on Fedora Core 11 &#038; 12</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stracca.net/blog/?feed=rss2&#038;p=107</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Add and Remove kernel</title>
		<link>http://www.stracca.net/blog/?p=105</link>
		<comments>http://www.stracca.net/blog/?p=105#comments</comments>
		<pubDate>Thu, 19 Nov 2009 11:56:00 +0000</pubDate>
		<dc:creator>Stracca</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.stracca.net/blog/?p=105</guid>
		<description><![CDATA[Some simple commands to add/remove/change kernels on RedHat based Linux Install a new kernel: rpm -ivh kernel.....rpm Show the kernel installed: rpm -qa &#124; grep kernel Remove unused kernel: rpm -e kernel..... Removing kernel it should remove also the entries in the grub.conf In order to check the current kernel you can simply use the [...]]]></description>
			<content:encoded><![CDATA[<p>Some simple commands to add/remove/change kernels on RedHat based Linux</p>
<p>Install a new kernel:</p>
<pre>rpm -ivh kernel.....rpm</pre>
<p>Show the kernel installed:</p>
<pre>rpm -qa | grep kernel</pre>
<p>Remove unused kernel:</p>
<pre>rpm -e kernel.....</pre>
<p>Removing kernel it should remove also the entries in the grub.conf<br />
In order to check the current kernel you can simply use the command:</p>
<pre>uname -a</pre>
<p>In order to change the kernel to load at startup edit the file /boot/grub/grub.conf.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stracca.net/blog/?feed=rss2&#038;p=105</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show routing table in AIX</title>
		<link>http://www.stracca.net/blog/?p=102</link>
		<comments>http://www.stracca.net/blog/?p=102#comments</comments>
		<pubDate>Fri, 13 Nov 2009 15:30:53 +0000</pubDate>
		<dc:creator>Stracca</dc:creator>
				<category><![CDATA[*NIX]]></category>

		<guid isPermaLink="false">http://www.stracca.net/blog/?p=102</guid>
		<description><![CDATA[On an AIX system in order to show the routing you need to user this command: netstat -nr]]></description>
			<content:encoded><![CDATA[<p>On an AIX system in order to show the routing you need to user this command:</p>
<pre><b>netstat -nr</b></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.stracca.net/blog/?feed=rss2&#038;p=102</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Recreate Enterprise Manager Repository on 10g Windows with multiple ip addresses</title>
		<link>http://www.stracca.net/blog/?p=89</link>
		<comments>http://www.stracca.net/blog/?p=89#comments</comments>
		<pubDate>Wed, 04 Nov 2009 16:31:39 +0000</pubDate>
		<dc:creator>Stracca</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.stracca.net/blog/?p=89</guid>
		<description><![CDATA[If you have a Windows Server with multiple IP addresses and you install a Database Instance with Enterprise Manager Repository and you bind your LISTENER to a different ip address than the one that respond to the machine name you had to manually drop and recreate the EM. You had to open a dos command [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a Windows Server with multiple IP addresses and you install a Database Instance with Enterprise Manager Repository and you bind your LISTENER to a different ip address than the one that respond to the machine name you had to manually drop and recreate the EM.</p>
<p>You had to open a dos command prompt and setup your SID and you correct IP Address:</p>
<pre>C:\> <strong>set ORACLE_SID=YOUR_SID</strong>
C:\> <strong>set ORACLE_HOSTNAME=10.1.0.100</strong></pre>
<p>Unlock DBSNMP and SYSMAN user and reset their password connecting :</p>
<pre><strong>sqlplus "sys/YOUR_PASSWORD@YOUR_SID as sysdba"
alter user dbsnmp account unlock identified by YOUR_PASSWORD;
alter user sysman account unlock identified by YOUR_PASSWORD;</strong></pre>
<p>Go to %ORACLE_HOME%\bin directory and drop EM Repository:</p>
<pre>C:\oracle\product\10.2.0\db1\bin> <strong>emca -deconfig dbcontrol db -repos drop</strong></pre>
<p>Clear some DB Object that can remain:</p>
<pre><strong>sqlplus "sys/YOUR_PASSWORD@YOUR_SID as sysdba"
drop public synonym SETEMVIEWUSERCONTEXT;
drop ROLE MGMT_USER;
drop PUBLIC SYNONYM MGMT_TARGET_BLACKOUTS;
drop user sysman cascade;
drop user MGMT_VIEW cascade;
exit;</strong></pre>
<p>Recreate the EM Repository:</p>
<pre>C:\oracle\product\10.2.0\db1\bin> <strong>emca -config dbcontrol db -repos create</strong></pre>
<p>When you start emca operations follow online instructions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stracca.net/blog/?feed=rss2&#038;p=89</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

