<?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>Gianluca Varisco &#187; Fedora</title>
	<atom:link href="http://www.gvarisco.com/category/fedora/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gvarisco.com</link>
	<description>When the government fears the people, there is liberty; When the people fear the government, there is tyranny.</description>
	<lastBuildDate>Fri, 30 Dec 2011 01:24:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>OpenVZ, Tips and Tricks #2 &#8211; No bash history using &#8220;vzctl enter&#8221;!</title>
		<link>http://www.gvarisco.com/2011/05/01/openvz-tips-and-tricks-bash_history-2/</link>
		<comments>http://www.gvarisco.com/2011/05/01/openvz-tips-and-tricks-bash_history-2/#comments</comments>
		<pubDate>Sun, 01 May 2011 01:15:19 +0000</pubDate>
		<dc:creator>Gianluca Varisco</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[openvz]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[vzctl]]></category>

		<guid isPermaLink="false">http://www.gvarisco.com/?p=422</guid>
		<description><![CDATA[Second episode on OpenVZ, tips and tricks for administrators. This time, I&#8217;m going to show you how to solve a strange behaviour with the BASH history file of your VE (container) not being read/written when accessed through the &#8220;vzctl enter&#8221; command, as shown below: # vzctl enter &#60;ctid&#62; OpenVZ documentation: vzctl enter is similar to [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Second episode on OpenVZ, tips and tricks for administrators. This time, I&#8217;m going to show you how to solve a strange behaviour with the BASH history file of your VE (container) not being read/written when accessed through the &#8220;vzctl enter&#8221; command, as shown below:</p>
<p><code># vzctl enter &lt;</code><code>ctid</code><code>&gt; </code></p>
<blockquote><p>OpenVZ documentation:</p>
<p><code>vzctl enter</code> is similar to <code>vzctl exec /bin/bash</code>. The difference between the two is that <code>vzctl enter</code> makes the shell interpreter believe that it is connected to a terminal.  As such, you receive a shell prompt and are able to execute multiple  commands as if you were logged in to the Container.</p>
<p>However, be aware that <code>vzctl enter</code> is a potentially dangerous command if you have un-trusted users inside  the Container. Your shell will have its file descriptors accessible for  the Container root in the <code>/proc</code> filesystem and a malicious user could run <code>ioctl</code> calls on it. Never use <code>vzctl enter</code> for Containers you do not trust. That is why, <code>vzctl enter</code> is only supposed to be an off-duty way of connecting to Containers, not a complete replacement of <code>ssh</code>. Therefore, it has certain limitations, for example, you cannot establish <code>ssh</code> connections while being connected to a Container through <code>vzctl enter</code>.</p></blockquote>
<p>So, what&#8217;s the problem?</p>
<p>The &#8216;HISTFILE&#8217; environment variable is exported by vzctl to &#8216;<strong>/dev/null</strong>&#8216; instead of &#8216;<strong>~/.bash_history</strong>&#8216;. But I wanted the history file logged EVERY time, whether you use SSH for connecting or the &#8216;vzctl&#8217; command! <img src='http://www.gvarisco.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Here we go, just add the following line to your <strong>/root/.bashrc </strong>file:</p>
<pre>HISTFILE=~/.bash_history</pre>
<p>It will correctly export the env. variable every time you access the VE container.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gvarisco.com/2011/05/01/openvz-tips-and-tricks-bash_history-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenVZ, Tips and Tricks #1 &#8211; ntpdate, Operation not permitted!</title>
		<link>http://www.gvarisco.com/2011/05/01/openvz-tips-and-tricks-ntpdate-1/</link>
		<comments>http://www.gvarisco.com/2011/05/01/openvz-tips-and-tricks-ntpdate-1/#comments</comments>
		<pubDate>Sun, 01 May 2011 00:48:56 +0000</pubDate>
		<dc:creator>Gianluca Varisco</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ntpdate]]></category>
		<category><![CDATA[openvz]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[vzctl]]></category>

		<guid isPermaLink="false">http://www.gvarisco.com/?p=404</guid>
		<description><![CDATA[This is the first episode of my ongoing series on OpenVZ: tips and tricks for administrators. OpenVZ VE and ntpdate: Operation not permitted! Scenario Your isolated container (also known as VE) is not able to execute the &#8216;ntpdate&#8216; command (it sets the local date and time by polling the Network Time Protocol (NTP) server(s) given [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>This is the first episode of my ongoing series on OpenVZ: tips and tricks for administrators.<br />
<strong> </strong></p>
<ol>
<li><strong>OpenVZ VE and ntpdate: Operation not permitted!</strong><span style="text-decoration: underline;"><em> </em></span></li>
</ol>
<p><span style="text-decoration: underline;"><em>Scenario</em></span></p>
<p>Your isolated container (also known as VE) is not able to execute the &#8216;<strong>ntpdate</strong>&#8216; command (it sets the local date and time by polling the Network Time Protocol (NTP) server(s) given as the <em>server</em> arguments to determine the correct time) due to the following error message</p>
<p><code># ntpdate time.example.com<br />
ntpdate[$pid]: <strong><span style="color: #ff0000;">step-systime: Operation not permitted</span></strong></code><br />
<span style="text-decoration: underline; color: #000000;"><br />
Suggested Fix</span><br />
<code><br />
# vzctl set &lt;</code><code>ctid</code><code>&gt; --capability sys_time:on --save</code></p>
<ul>
<li>&lt;<code>ctid</code>&gt; needs to be replaced by your container&#8217;s ID</li>
</ul>
<p>After executing the command above, your container&#8217;s configuration file needs to be reloaded. Thus, use &#8216;<strong>vzctl</strong>&#8216; to restart it.</p>
<p><code># vzctl restart &lt;<code>ctid</code>&gt; </code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gvarisco.com/2011/05/01/openvz-tips-and-tricks-ntpdate-1/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Fedora 11: Display goes blank briefly, apparently at random (fixed!)</title>
		<link>http://www.gvarisco.com/2009/08/14/fedora-11-display-goes-blank-briefly-apparently-at-random-fixed/</link>
		<comments>http://www.gvarisco.com/2009/08/14/fedora-11-display-goes-blank-briefly-apparently-at-random-fixed/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 11:31:37 +0000</pubDate>
		<dc:creator>Gianluca Varisco</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[X server]]></category>

		<guid isPermaLink="false">http://www.techtemple.org/?p=152</guid>
		<description><![CDATA[Several of us have reported, since the F11 GA release date, that the display sometimes suddenly go blank for a brief period &#8211; a second or two &#8211; before coming back. Listed under the &#8220;Common F11 bugs&#8221; wiki page (bugzilla id #501601), the root cause has been identified in the X server and fixed (git [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Several of us have reported, since the <strong>F11 GA release</strong> date, that the display sometimes suddenly go blank for a brief period &#8211; a second or two &#8211; before coming back. Listed under the &#8220;<a href="https://fedoraproject.org/wiki/Common_F11_bugs#Display_goes_blank_briefly.2C_apparently_at_random" target="_blank"><strong>Common F11 bugs</strong></a>&#8221; wiki page (bugzilla id <a href="https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=501601" target="_blank"><strong>#501601</strong></a>), the root cause has been identified in the X server and fixed (<a href="http://cgit.freedesktop.org/xorg/xserver/patch/?id=db568f9eabf3450d8a023597ff007df355b13ea8" target="_blank">git commit</a>) by <a href="http://who-t.blogspot.com/" target="_blank"><strong>Peter Hutterer</strong></a>. As Richard Hughes <a href="http://blogs.gnome.org/hughsie/2009/08/14/blanking-in-gnome-power-manager-fixed/" target="_blank"><strong>said</strong></a>: &#8220;XIDLETIME now works as expected, and gnome-session and gnome-power-manager do the right thing. This means no more random blanking when typing.&#8221;</p>
<p>There’s a pending Fedora 11 update <strong><a href="https://admin.fedoraproject.org/updates/xorg-x11-server-1.6.3-2.fc11" target="_blank">here</a></strong>: please <strong>test it</strong> and <strong>add your feedback</strong> at the bottom of that page!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gvarisco.com/2009/08/14/fedora-11-display-goes-blank-briefly-apparently-at-random-fixed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

