<?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>Noop.lv. Живу я тут &#187; linux</title>
	<atom:link href="http://www.noop.lv/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.noop.lv</link>
	<description>Маленькая личная помойка</description>
	<lastBuildDate>Fri, 06 Jan 2012 09:15:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Pst&#8230; Zsh now friends with symfony</title>
		<link>http://www.noop.lv/2011/12/20/pst-zsh-now-friends-with-symfony/</link>
		<comments>http://www.noop.lv/2011/12/20/pst-zsh-now-friends-with-symfony/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 11:55:37 +0000</pubDate>
		<dc:creator>melnays</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[autocomplete]]></category>
		<category><![CDATA[completion]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[oh-my-zsh]]></category>
		<category><![CDATA[zsh]]></category>

		<guid isPermaLink="false">http://www.noop.lv/?p=187</guid>
		<description><![CDATA[Well, thanks to Robby Russel and a little bit of my shellscripting oh-my-zsh project now supports symfony2 completion. Just install oh-my-zsh, edit .zshrc and add symfony2 to plugins list: &#160; plugins=&#40;git github symfony2&#41; &#160; or update omz: &#160; cd ~/.oh-my-zsh &#8230; <a href="http://www.noop.lv/2011/12/20/pst-zsh-now-friends-with-symfony/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Well, thanks to <a href="https://github.com/robbyrussell">Robby Russel</a> and a little bit of my shellscripting <a href="https://github.com/robbyrussell/oh-my-zsh">oh-my-zsh</a> project now supports symfony2 completion. Just install oh-my-zsh, edit .zshrc and add symfony2 to plugins list:</p>
<pre class="bash">&nbsp;
<span style="color: #007800;">plugins=</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>git github symfony2<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;</pre>
<p>or update omz:</p>
<pre class="bash">&nbsp;
<span style="color: #7a0874; font-weight: bold;">cd</span> ~/.oh-my-<span style="color: #c20cb9; font-weight: bold;">zsh</span>
git pull origin master
&nbsp;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.noop.lv/2011/12/20/pst-zsh-now-friends-with-symfony/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ok, I&#8217;m an idiot</title>
		<link>http://www.noop.lv/2011/12/18/ok-im-an-idiot/</link>
		<comments>http://www.noop.lv/2011/12/18/ok-im-an-idiot/#comments</comments>
		<pubDate>Sun, 18 Dec 2011 21:15:16 +0000</pubDate>
		<dc:creator>melnays</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[swap]]></category>
		<category><![CDATA[swapiness]]></category>

		<guid isPermaLink="false">http://www.noop.lv/?p=181</guid>
		<description><![CDATA[Swapiness 100 means 'swap as much as possible', sorry. Correct way to reduce swapping in Ubuntu is vm.swappiness=1 is /etc/sysctl.conf . After edit, do sudo sysctl -p or reboot. Now uptime 7 hours, no swap used. PS: Can't wait for &#8230; <a href="http://www.noop.lv/2011/12/18/ok-im-an-idiot/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Swapiness 100 means 'swap as much as possible', sorry. Correct way to reduce swapping in Ubuntu is </p>
<pre>
vm.swappiness=1
</pre>
<p>is /etc/sysctl.conf . After edit, do sudo sysctl -p or reboot. Now uptime 7 hours, no swap used.</p>
<p>PS: Can't wait for my ssd to arrive <img src='http://www.noop.lv/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.noop.lv/2011/12/18/ok-im-an-idiot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Memcachedb &amp; logs</title>
		<link>http://www.noop.lv/2011/11/26/memcachedb-logs/</link>
		<comments>http://www.noop.lv/2011/11/26/memcachedb-logs/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 18:59:52 +0000</pubDate>
		<dc:creator>melnays</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[logs]]></category>
		<category><![CDATA[memcachedb]]></category>

		<guid isPermaLink="false">http://www.noop.lv/?p=175</guid>
		<description><![CDATA[Well, the memcachedb again ate whole sshd with infinite log.xxxxxxsomething files. After a lot of digging around, found this memcachedb-guide-1.0. It appeared that memcachedb has db_archive command to purge all un-needed logs! Just create a following file somewhere, e.g. /root/memcachedb_rotate_logs: &#8230; <a href="http://www.noop.lv/2011/11/26/memcachedb-logs/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Well, the memcachedb again ate whole sshd with infinite log.xxxxxxsomething files.</p>
<p>After a lot of digging around, found this <a href="http://www.noop.lv/wp-content/uploads/2011/11/memcachedb-guide-1.0.pdf">memcachedb-guide-1.0</a>. It appeared that memcachedb has db_archive command to purge all un-needed logs!</p>
<p>Just create a following file somewhere, e.g. /root/memcachedb_rotate_logs:</p>
<pre>
db_archive
quit
</pre>
<p>and add following to crontab to rotate memcachedb logs hourly:</p>
<pre>
0 * * * * /usr/bin/telnet localhost 21201 < /root/memcachedb_rotate_logs
</pre>
<p>(fix port number if needed).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.noop.lv/2011/11/26/memcachedb-logs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redmine rack initscript</title>
		<link>http://www.noop.lv/2011/11/26/redmine-rack-initscript/</link>
		<comments>http://www.noop.lv/2011/11/26/redmine-rack-initscript/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 17:55:09 +0000</pubDate>
		<dc:creator>melnays</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[initscipt]]></category>
		<category><![CDATA[redmine]]></category>

		<guid isPermaLink="false">http://www.noop.lv/?p=171</guid>
		<description><![CDATA[Seems like the only normal way to run redmine is with rack &#160; ruby script/server -e production &#160; and this simple initscript: &#160; #!/bin/bash ### BEGIN INIT INFO # Provides: redmine # Required-Start: $local_fs $all # Required-Stop: # Default-Start: 2 &#8230; <a href="http://www.noop.lv/2011/11/26/redmine-rack-initscript/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Seems like the only normal way to run redmine is with rack</p>
<pre>&nbsp;
ruby script/server -e production
&nbsp;</pre>
<p>and this simple initscript:</p>
<pre>&nbsp;
#!/bin/bash
### BEGIN INIT INFO
# Provides:          redmine
# Required-Start:    $local_fs $all
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Redmine issue tracker
### END INIT INFO
&nbsp;
case &quot;$1&quot; in
    start)
      cd /var/www/redmine/
      /usr/bin/ruby script/server -d -e production
    ;;
    stop)
      kill -9 `ps aux | grep &quot;ruby script/server&quot; | awk '{ print $2 }' | head -n 1`
    ;;
esac
&nbsp;</pre>
<p>mograil / passenger sucks beyond understanding</p>
]]></content:encoded>
			<wfw:commentRss>http://www.noop.lv/2011/11/26/redmine-rack-initscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bash &#8211; stripping newlines and replacing with spaces</title>
		<link>http://www.noop.lv/2011/11/06/bash-stripping-newlines-and-replacing-with-spaces/</link>
		<comments>http://www.noop.lv/2011/11/06/bash-stripping-newlines-and-replacing-with-spaces/#comments</comments>
		<pubDate>Sat, 05 Nov 2011 22:27:53 +0000</pubDate>
		<dc:creator>melnays</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://www.noop.lv/?p=144</guid>
		<description><![CDATA[For example, if you have an linux shell command output, newline-separated, and need to convert output to space-separated, pipe it to tr "\n" " " like so: &#160; dpkg -l &#124; grep php &#124; cut -d &#34; &#34; -f 3 &#8230; <a href="http://www.noop.lv/2011/11/06/bash-stripping-newlines-and-replacing-with-spaces/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For example, if you have an linux shell command output, newline-separated, and need to convert output to space-separated, pipe it to tr "\n" " " like so:</p>
<pre class="bash">&nbsp;
dpkg -l | <span style="color: #c20cb9; font-weight: bold;">grep</span> php | <span style="color: #c20cb9; font-weight: bold;">cut</span> -d <span style="color: #ff0000;">&quot; &quot;</span> -f <span style="color: #000000;">3</span> | <span style="color: #c20cb9; font-weight: bold;">tr</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #ff0000;">&quot; &quot;</span>
&nbsp;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.noop.lv/2011/11/06/bash-stripping-newlines-and-replacing-with-spaces/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Openvz Munin CPU monitoring</title>
		<link>http://www.noop.lv/2011/10/31/openvz-munin-cpu-monitoring/</link>
		<comments>http://www.noop.lv/2011/10/31/openvz-munin-cpu-monitoring/#comments</comments>
		<pubDate>Mon, 31 Oct 2011 10:12:57 +0000</pubDate>
		<dc:creator>melnays</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[munin]]></category>
		<category><![CDATA[openvz]]></category>

		<guid isPermaLink="false">http://www.noop.lv/?p=134</guid>
		<description><![CDATA[Found a wonderful plugin to monitor CPU usage on openvz containers: http://exchange.munin-monitoring.org/plugins/openvzcpu/version/3/raw]]></description>
			<content:encoded><![CDATA[<p>Found a wonderful plugin to monitor CPU usage on openvz containers:</p>
<p><a href="http://exchange.munin-monitoring.org/plugins/openvzcpu/version/3/raw">http://exchange.munin-monitoring.org/plugins/openvzcpu/version/3/raw</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.noop.lv/2011/10/31/openvz-munin-cpu-monitoring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash: how to copy permissions recursively</title>
		<link>http://www.noop.lv/2011/10/25/bash-how-to-copy-permission-recursively/</link>
		<comments>http://www.noop.lv/2011/10/25/bash-how-to-copy-permission-recursively/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 13:39:43 +0000</pubDate>
		<dc:creator>melnays</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[permissions]]></category>

		<guid isPermaLink="false">http://www.noop.lv/?p=122</guid>
		<description><![CDATA[Imagine you were copying an, eg, virtual server from /server to /newserver, and messed permissions in /etc; thre's a way to copy permissions with this simple script: &#160; #!/bin/bash &#160; source=$1 target=$2 &#160; echo &#34;Copy files from $source to $target&#34; &#8230; <a href="http://www.noop.lv/2011/10/25/bash-how-to-copy-permission-recursively/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Imagine you were copying an, eg, virtual server from /server to /newserver, and messed permissions in /etc; thre's a way to copy permissions with this simple script:</p>
<pre class="bash">&nbsp;
<span style="color: #808080; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #007800;">source=</span>$<span style="color: #000000;">1</span>
<span style="color: #007800;">target=</span>$<span style="color: #000000;">2</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Copy files from $source to $target&quot;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #007800;">$source</span>
<span style="color: #007800;">files=</span>`<span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #007800;">$source</span>`
&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$files</span>
<span style="color: #000000; font-weight: bold;">do</span>
  <span style="color: #808080; font-style: italic;">#this is some bash voodoo - string part replacement</span>
  <span style="color: #007800;">targetFile=</span><span style="color: #007800;">$target</span>$<span style="color: #7a0874; font-weight: bold;">&#123;</span>file<span style="color: #808080; font-style: italic;">#<span style="color: #007800;">$source</span><span style="color: #7a0874; font-weight: bold;">&#125;</span></span>
  <span style="color: #808080; font-style: italic;">#stat <span style="color: #7a0874; font-weight: bold;">command</span> can accept -c parameter and <span style="color: #7a0874; font-weight: bold;">return</span> data <span style="color: #000000; font-weight: bold;">in</span> needed format</span>
  <span style="color: #808080; font-style: italic;">#where %u and %g are numeric user/group ids, and %a - octal permissions</span>
  <span style="color: #007800;">permissions=</span>`<span style="color: #c20cb9; font-weight: bold;">stat</span> -c%a <span style="color: #007800;">$file</span>`
  <span style="color: #007800;">ownership=</span>`<span style="color: #c20cb9; font-weight: bold;">stat</span> -c%u:%g <span style="color: #007800;">$file</span>`
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$targetFile</span> to <span style="color: #007800;">$ownership</span> <span style="color: #007800;">$permissions</span>
  <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #007800;">$permissions</span> <span style="color: #007800;">$targetFile</span>
  <span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #007800;">$ownership</span> <span style="color: #007800;">$targetFile</span>
<span style="color: #000000; font-weight: bold;">done</span>
&nbsp;</pre>
<p>invoke this like </p>
<pre>&nbsp;
./permissions.sh /server/etc /newserver/etc
&nbsp;</pre>
<p>change <code>%u:%g</code> to <code>%U:%G</code> if you prefer string id's (www-data:www-data) more than numeric (0:0)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.noop.lv/2011/10/25/bash-how-to-copy-permission-recursively/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>ActiveMQ initscript</title>
		<link>http://www.noop.lv/2011/09/14/activemq-initscript/</link>
		<comments>http://www.noop.lv/2011/09/14/activemq-initscript/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 08:13:29 +0000</pubDate>
		<dc:creator>melnays</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[activemq]]></category>

		<guid isPermaLink="false">http://www.noop.lv/?p=98</guid>
		<description><![CDATA[A quick'n'dirty ActiveMQ initscript, if activemq extracted to /opt/activemq. Enable with update-rc.d activemq defaults , LSB-tags present. &#160; #! /bin/sh ### BEGIN INIT INFO # Provides: activemq # Required-Start: $local_fs $all # Required-Stop: # Default-Start: 2 3 4 5 # &#8230; <a href="http://www.noop.lv/2011/09/14/activemq-initscript/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A quick'n'dirty ActiveMQ initscript, if activemq extracted to /opt/activemq.<br />
Enable with
<pre>update-rc.d activemq defaults</pre>
<p>, LSB-tags present.</p>
<pre class="bash">&nbsp;
<span style="color: #808080; font-style: italic;">#! /bin/sh</span>
<span style="color: #808080; font-style: italic;">### BEGIN INIT INFO</span>
<span style="color: #808080; font-style: italic;"># Provides:          activemq</span>
<span style="color: #808080; font-style: italic;"># Required-Start:    <span style="color: #007800;">$local_fs</span> <span style="color: #007800;">$all</span></span>
<span style="color: #808080; font-style: italic;"># Required-Stop:</span>
<span style="color: #808080; font-style: italic;"># Default-Start:     <span style="color: #000000;">2</span> <span style="color: #000000;">3</span> <span style="color: #000000;">4</span> <span style="color: #000000;">5</span></span>
<span style="color: #808080; font-style: italic;"># Default-Stop:      <span style="color: #000000;">0</span> <span style="color: #000000;">1</span> <span style="color: #000000;">6</span></span>
<span style="color: #808080; font-style: italic;"># ActiveMQ message broker</span>
<span style="color: #808080; font-style: italic;">### END INIT INFO</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
  start<span style="color: #7a0874; font-weight: bold;">&#41;</span>
          /opt/activemq/bin/activemq start &gt; /dev/null
          <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> $? -eq <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
          <span style="color: #000000; font-weight: bold;">then</span>
                  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Started ok!&quot;</span>
          <span style="color: #000000; font-weight: bold;">else</span>
                  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Start error, try /opt/activemq/bin/activemq start&quot;</span>
          <span style="color: #000000; font-weight: bold;">fi</span>
          ;;
  stop<span style="color: #7a0874; font-weight: bold;">&#41;</span>
          /opt/activemq/bin/activemq stop &gt; /dev/null
          <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> $? -eq <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
          <span style="color: #000000; font-weight: bold;">then</span>
                  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Stopped ok!&quot;</span>
          <span style="color: #000000; font-weight: bold;">else</span>
                  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Stop error, try /opt/activemq/bin/activemq stop&quot;</span>
          <span style="color: #000000; font-weight: bold;">fi</span>
          ;;
  status<span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> `/opt/activemq/bin/activemq list | <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;Connection refused&quot;</span> | <span style="color: #c20cb9; font-weight: bold;">wc</span> -l` -eq <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
    <span style="color: #000000; font-weight: bold;">then</span>
      <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Running and connected, web-interface on port 8161&quot;</span>
    <span style="color: #000000; font-weight: bold;">else</span>
      <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Not running or connection refused&quot;</span>
    <span style="color: #000000; font-weight: bold;">fi</span>
    ;;
  restart<span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Stopping...&quot;</span>
    /opt/activemq/bin/activemq stop &gt; /dev/null
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Starting...&quot;</span>
    /opt/activemq/bin/activemq start &gt; /dev/null
    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> `/opt/activemq/bin/activemq list | <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;Connection refused&quot;</span> | <span style="color: #c20cb9; font-weight: bold;">wc</span> -l` -eq <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
    <span style="color: #000000; font-weight: bold;">then</span>
      <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Running and connected, web-interface on port 8161&quot;</span>
    <span style="color: #000000; font-weight: bold;">else</span>
      <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Not running or connection refused&quot;</span>
    <span style="color: #000000; font-weight: bold;">fi</span>
    ;;
  *<span style="color: #7a0874; font-weight: bold;">&#41;</span>
          <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Usage: $0 start|stop|status|restart&quot;</span> &gt;&amp;<span style="color: #000000;">2</span>
          <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">3</span>
          ;;
<span style="color: #000000; font-weight: bold;">esac</span>
&nbsp;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.noop.lv/2011/09/14/activemq-initscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gitosis setup step-by-step</title>
		<link>http://www.noop.lv/2011/01/06/gitosis-setup-step-by-step/</link>
		<comments>http://www.noop.lv/2011/01/06/gitosis-setup-step-by-step/#comments</comments>
		<pubDate>Thu, 06 Jan 2011 09:16:55 +0000</pubDate>
		<dc:creator>melnays</dc:creator>
				<category><![CDATA[git]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[gitosis]]></category>

		<guid isPermaLink="false">http://www.noop.lv/?p=63</guid>
		<description><![CDATA[Just to remember how to setup this ) Via scie.nti.st Put your admin key in /tmp/id_rsa.pub &#160; apt-get install gitosis sudo adduser \ --system \ --shell /bin/sh \ --gecos 'git version control' \ --group \ --disabled-password \ --home /var/git \ &#8230; <a href="http://www.noop.lv/2011/01/06/gitosis-setup-step-by-step/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Just to remember how to setup this )<br />
Via <a href="http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way">scie.nti.st</a></p>
<p>Put your admin key in /tmp/id_rsa.pub</p>
<pre class="bash">&nbsp;
apt-get <span style="color: #c20cb9; font-weight: bold;">install</span> gitosis
<span style="color: #c20cb9; font-weight: bold;">sudo</span> adduser \
    --system \
    --shell /bin/<span style="color: #c20cb9; font-weight: bold;">sh</span> \
    --gecos <span style="color: #ff0000;">'git version control'</span> \
    --group \
    --disabled-password \
    --home /var/git \
    git
<span style="color: #c20cb9; font-weight: bold;">sudo</span> -H -u git gitosis-init &lt; /tmp/id_rsa.pub
&nbsp;</pre>
<p>fetch admin</p>
<pre class="bash">&nbsp;
git clone git@YOUR_SERVER_HOSTNAME:gitosis-admin.git
<span style="color: #7a0874; font-weight: bold;">cd</span> gitosis-admin
&nbsp;</pre>
<p>config file cheat sheet:</p>
<pre class="ini">&nbsp;
<span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>group officeworkers<span style="">&#93;</span></span>
<span style="color: #000099;">members </span>=<span style="color: #660066;"> john ken barbie</span>
<span style="color: #000099;">writable </span>=<span style="color: #660066;"> repo1</span>
<span style="color: #000099;">readonly </span>=<span style="color: #660066;"> repo2 repo3</span>
&nbsp;</pre>
<p>...and just add/commit/push admin.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.noop.lv/2011/01/06/gitosis-setup-step-by-step/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hp-setup</title>
		<link>http://www.noop.lv/2010/12/22/hp-setup/</link>
		<comments>http://www.noop.lv/2010/12/22/hp-setup/#comments</comments>
		<pubDate>Wed, 22 Dec 2010 12:03:04 +0000</pubDate>
		<dc:creator>melnays</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.noop.lv/?p=30</guid>
		<description><![CDATA[Инсталляция принтера Canon в Linux: - фтыкаешь - линукс такой "ааааа! принтер! вкусне сладке принтер!" - работаешь Инсталляция принтера HP в Linux: - фтыкаешь - ничего - перефтыкаешь - определяется, но не работает - запускаешь hp-setup - виснет - запускаешь &#8230; <a href="http://www.noop.lv/2010/12/22/hp-setup/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Инсталляция принтера Canon в Linux:<br />
- фтыкаешь<br />
- линукс такой "ааааа! принтер! вкусне сладке принтер!"<br />
- работаешь</p>
<p>Инсталляция принтера HP в Linux:<br />
- фтыкаешь<br />
- ничего<br />
- перефтыкаешь<br />
- определяется, но не работает<br />
- запускаешь hp-setup<br />
- виснет<br />
- запускаешь kdesudo hp-setup<br />
- виснет на next<br />
- через полчаса предлагает лениво  скачать дравер<br />
- думаешь качет? фуй, оно полчаса рисует окно с лицензией<br />
- временем на две сигареты инсталлится<br />
- принтер жалобно мигает лампочками<br />
- может быть печатает</p>
]]></content:encoded>
			<wfw:commentRss>http://www.noop.lv/2010/12/22/hp-setup/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

