<?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>Jonathan Arbib &#187; linux</title>
	<atom:link href="http://arbib.it/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://arbib.it</link>
	<description>Mzee mulimu; A bit of my work, life, and experiences.</description>
	<lastBuildDate>Sun, 22 Jan 2012 13:33:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PTY allocation request failed on channel 0</title>
		<link>http://arbib.it/2010/08/13/pty-allocation-request-failed-on-channel-0/</link>
		<comments>http://arbib.it/2010/08/13/pty-allocation-request-failed-on-channel-0/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 19:07:33 +0000</pubDate>
		<dc:creator>ac3bf1</dc:creator>
				<category><![CDATA[Tech Junk]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://arbib.it/?p=752</guid>
		<description><![CDATA[When installing a new virtual machine (Lenny) you may get this error: PTY allocation request failed on channel 0 stdin: is not a tty To fix this do the following: Add the following line to /etc/fstab (in the domU): none /dev/pts devpts defaults 0 0 Then run: mkdir /dev/pts mount /dev/pts Enjoy!]]></description>
			<content:encoded><![CDATA[<p>When installing a new virtual machine (Lenny) you may get this error:</p>
<pre>PTY allocation request failed on channel 0

stdin: is not a tty</pre>
<p>To fix this do the following:</p>
<p>Add the following line to /etc/fstab (in the domU):</p>
<p>none            /dev/pts      devpts    defaults        0   0</p>
<p>Then run:</p>
<pre>mkdir /dev/pts
mount /dev/pts</pre>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://arbib.it/2010/08/13/pty-allocation-request-failed-on-channel-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alix 3d3 scripts</title>
		<link>http://arbib.it/2010/05/18/alix-3d3-scripts/</link>
		<comments>http://arbib.it/2010/05/18/alix-3d3-scripts/#comments</comments>
		<pubDate>Tue, 18 May 2010 19:26:31 +0000</pubDate>
		<dc:creator>ac3bf1</dc:creator>
				<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[alic 3d3]]></category>
		<category><![CDATA[alix]]></category>
		<category><![CDATA[alix temperature]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://arbib.it/?p=653</guid>
		<description><![CDATA[Simple stats script: #!/bin/bash clear while [ 1 ] do uptime df -h &#124; grep Filesystem df -h &#124; grep rootfs df -h &#124; grep usb echo "" Temp1=$(cat /sys/bus/i2c/drivers/lm90/0-004c/temp1_input) Temp2=$(cat /sys/bus/i2c/drivers/lm90/0-004c/temp2_input) echo "MB T  = "$Temp1 echo "CPU T = "$Temp2 sleep 1 clear done Insert it in a file. I called it stats.sh [...]]]></description>
			<content:encoded><![CDATA[<p>Simple stats script:</p>
<pre>#!/bin/bash
clear
while [ 1 ]
do
 uptime
 df -h | grep Filesystem
 df -h | grep rootfs
 df -h | grep usb
 echo ""
 Temp1=$(cat /sys/bus/i2c/drivers/lm90/0-004c/temp1_input)
 Temp2=$(cat /sys/bus/i2c/drivers/lm90/0-004c/temp2_input)
 echo "MB T  = "$Temp1
 echo "CPU T = "$Temp2
 sleep 1
 clear
done</pre>
<p>Insert it in a file. I called it stats.sh</p>
<p>chmod a+x stats.sh</p>
<p>and run with ./stats.sh</p>
<p>It updates every second and returns:</p>
<ul>
<li>uptime with load</li>
<li>Disk space and usb disk space</li>
<li>MB temp</li>
<li>CPU temp</li>
</ul>
<p>You can add all you want in there or remove what you don&#8217;t need :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://arbib.it/2010/05/18/alix-3d3-scripts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fix GNU screen backspace</title>
		<link>http://arbib.it/2010/05/14/fix-gnu-screen-backspace/</link>
		<comments>http://arbib.it/2010/05/14/fix-gnu-screen-backspace/#comments</comments>
		<pubDate>Fri, 14 May 2010 17:03:14 +0000</pubDate>
		<dc:creator>ac3bf1</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[gnu screen]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[screen backspace]]></category>
		<category><![CDATA[screen backspace linux]]></category>
		<category><![CDATA[screen woof woof]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[woof woof]]></category>

		<guid isPermaLink="false">http://arbib.it/2010/05/14/fix-gnu-screen-backspace/</guid>
		<description><![CDATA[create a new .screenrc in your home directory and put these lines inside: bindkey -d ^? stuff ^H bindkey -d ^@ stuff ^H]]></description>
			<content:encoded><![CDATA[<p>create a new .screenrc in your home directory and put these lines  inside:</p>
<pre>bindkey -d ^? stuff ^H
bindkey -d ^@ stuff ^H</pre>
]]></content:encoded>
			<wfw:commentRss>http://arbib.it/2010/05/14/fix-gnu-screen-backspace/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>X Session from Linux to Windows</title>
		<link>http://arbib.it/2010/01/19/x-session-from-linux-to-windows/</link>
		<comments>http://arbib.it/2010/01/19/x-session-from-linux-to-windows/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 13:22:58 +0000</pubDate>
		<dc:creator>ac3bf1</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[eindows]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[X session]]></category>
		<category><![CDATA[X window from linux to windows]]></category>

		<guid isPermaLink="false">http://ac3bf1.org/?p=304</guid>
		<description><![CDATA[On the Linux Machine Install X on your system (example for Debian) apt-get install xserver-xorg-core xorg apt-get install gdm (or xdm/kdm) apt-get install fluxbox (or gnome/kde) apt-get install firefox (or iceweasel if you get an error) reboot Just in case run dpkg-reconfigure xserver-xorg On the Windows Machine Download Xming and install it. Download Putty and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>On the Linux Machine</strong><br />
Install X on your system (example for Debian)</p>
<pre>apt-get install xserver-xorg-core xorg
apt-get install gdm (or xdm/kdm)
apt-get install fluxbox (or gnome/kde)
apt-get install firefox (or iceweasel if you get an error)</pre>
<pre>reboot</pre>
<p>Just in case run</p>
<pre>dpkg-reconfigure xserver-xorg</pre>
<p><strong>On the Windows Machine</strong><br />
Download <a href="http://sourceforge.net/project/showfiles.php?group_id=156984">Xming</a> and install it.<br />
Download <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">Putty</a> and save it to disk.</p>
<p><strong>Configure Xming</strong><br />
Launch XLaunch (Start, Programs, XMing) and at the Display settings dialog box, select Multiple windows and set the Display number as 0. Click on Next until Finish.</p>
<p><strong>Configure PuTTY</strong><br />
Start PuTTY.<br />
In the PuTTY Configuration section, on the left panel, select Connection → SSH → X11<br />
On the right panel, click on the Enable X11 forwarding checkbox<br />
Set the X display location as :0.0<br />
Click on Session option on the left panel.<br />
Enter the hostname or IP address in the Host Name textbox<br />
Save the session.</p>
<p>Troubleshooting<br />
xf86PciVideoInfo is not set<br />
Could not get primary PCI info</p>
<p>waiting for X server to begin accepting connections<br />
giving up.<br />
xinit:  Connection reset by peer (errno 104):  unable to connect to X server<br />
xinit:  No such process (errno 3):  Server error.</p>
<p>Solution:<br />
a workaround to start only INDIVIDUAL APPS</p>
<p>http://www.breitenlee.net/index.php?option=com_content&#038;view=article&#038;id=33:xlib-putty-x11-proxy-wrong-authentication-protocol-attempted&#038;catid=16:linux-howto&#038;Itemid=54</p>
]]></content:encoded>
			<wfw:commentRss>http://arbib.it/2010/01/19/x-session-from-linux-to-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Screen error: no more PTYs</title>
		<link>http://arbib.it/2010/01/19/screen-error-no-more-ptys/</link>
		<comments>http://arbib.it/2010/01/19/screen-error-no-more-ptys/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 12:12:12 +0000</pubDate>
		<dc:creator>ac3bf1</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux screen]]></category>
		<category><![CDATA[no more pty]]></category>
		<category><![CDATA[no more ptys]]></category>
		<category><![CDATA[pty]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[Screen error: no more PTYs]]></category>
		<category><![CDATA[screen linux]]></category>

		<guid isPermaLink="false">http://ac3bf1.org/?p=302</guid>
		<description><![CDATA[Quick solution: mkdir /dev/pts mount -t devpts /dev/ptmx /dev/pts add the above code to run on bootup and make the file executable Alternate solution 1: Add the following at the end of your config file extra = 'console=hvc0 xencons=tty' Alternate Solution 2: chmod 666 /dev/ptmx chmod 666 /dev/null]]></description>
			<content:encoded><![CDATA[<p>Quick solution:</p>
<pre>mkdir /dev/pts
mount -t devpts /dev/ptmx /dev/pts</pre>
<p>add the above code to run on bootup and make the file executable</p>
<p>Alternate solution 1:<br />
Add the following at the end of your config file</p>
<pre>extra = 'console=hvc0 xencons=tty'</pre>
<p>Alternate Solution 2:</p>
<pre>chmod 666 /dev/ptmx
chmod 666 /dev/null</pre>
]]></content:encoded>
			<wfw:commentRss>http://arbib.it/2010/01/19/screen-error-no-more-ptys/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

