<?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>SurlyJake &#187; Linux</title>
	<atom:link href="http://www.surlyjake.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.surlyjake.com</link>
	<description></description>
	<lastBuildDate>Fri, 30 Dec 2011 15:28:12 +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>Create a custom application launcher in GNOME3</title>
		<link>http://www.surlyjake.com/2011/12/create-a-custom-application-launcher-in-gnome3/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=create-a-custom-application-launcher-in-gnome3</link>
		<comments>http://www.surlyjake.com/2011/12/create-a-custom-application-launcher-in-gnome3/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 15:26:51 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Arch]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[svg]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=879</guid>
		<description><![CDATA[On Arch, the system-wide shortcuts are stored in /usr/share/applications. Each one is a .desktop file with a few parameters. user-specific icons are stored in ~/.local/share/applications. I downloaded eclipse and extracted it in my home directory, so I&#8217;ll use eclipse as the example application. Create the .desktop file: nano ~/.local/share/applications/Eclipse.desktop Paste this in: [Desktop Entry] Encoding=UTF-8 [...]]]></description>
			<content:encoded><![CDATA[<p>On Arch, the system-wide shortcuts are stored in /usr/<a href="http://www.surlyjake.com/tag/share/" class="st_tag internal_tag" rel="tag" title="Posts tagged with share">share</a>/applications. Each one is a .desktop file with a few parameters. user-specific icons are stored in ~/.local/<a href="http://www.surlyjake.com/tag/share/" class="st_tag internal_tag" rel="tag" title="Posts tagged with share">share</a>/applications. I downloaded eclipse and extracted it in my home directory, so I&#8217;ll use eclipse as the example application.</p>
<ol>
<li><strong>Create the .desktop file:</strong>
<pre><code>nano ~/.local/share/applications/Eclipse.desktop</code></pre>
<p>Paste this in:</p>
<pre><code>[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
NoDisplay=false
Exec=/path/to/eclipse/eclipse
Name=Eclipse Comment=Launcher for Eclipse</code></pre>
<p>Each line is pretty self-explanatory. Edit to suit your needs. As soon as you save the file, you will be able to see your new shortcut in the list.</li>
<li><strong>(Optional) Give the shortcut a nice-looking icon:</strong><br />
You probably noticed that your icon is an ugly diamond. To pretty it up, you simply have to add one more line to the desktop file.</p>
<pre><code> Icon=/path/to/eclipse/eclipse.<a href="http://www.surlyjake.com/tag/svg/" class="st_tag internal_tag" rel="tag" title="Posts tagged with svg">svg</a></code></pre>
<p>Your application may have included a png icon, but to make it really look nice, you should grab an SVG file of the logo from somewhere. Arch has a very simple packaging process which lets you examine all of the package building elements through their webpage at http://www.archlinux.org/packages/. I was able to grab the SVG which the package uses like this:</p>
<pre><code>wget -O eclipse.svg http://projects.archlinux.org/svntogit/packages.git/plain/trunk/eclipse.svg\?h\=packages/eclipse</code></pre>
</li>
</ol>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2011/12/create-a-custom-application-launcher-in-gnome3/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2011/12/create-a-custom-application-launcher-in-gnome3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitoring Flexlm usage with Zabbix</title>
		<link>http://www.surlyjake.com/2010/11/monitoring-flexlm-usage-with-zabbix/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=monitoring-flexlm-usage-with-zabbix</link>
		<comments>http://www.surlyjake.com/2010/11/monitoring-flexlm-usage-with-zabbix/#comments</comments>
		<pubDate>Thu, 18 Nov 2010 20:16:10 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Zabbix]]></category>
		<category><![CDATA[gnu tools]]></category>
		<category><![CDATA[license usage]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[lmtools]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=677</guid>
		<description><![CDATA[Flexlm license usage can be a hard thing to accurately measure and monitor. Luckily, the output from lmutil can be used to display license usage. First thing to do is locate the lmutil binary and try to get it to run. I use Flexlm for autodesk on Windows and ESRI on linux(centOS). Windows: This server [...]]]></description>
			<content:encoded><![CDATA[<p>Flexlm <a href="http://www.surlyjake.com/tag/license-usage/" class="st_tag internal_tag" rel="tag" title="Posts tagged with license usage">license usage</a> can be a hard thing to accurately measure and monitor. Luckily, the output from lmutil can be used to display <a href="http://www.surlyjake.com/tag/license-usage/" class="st_tag internal_tag" rel="tag" title="Posts tagged with license usage">license usage</a>. First thing to do is locate the lmutil binary and try to get it to run. I use Flexlm for autodesk on <a href="http://www.surlyjake.com/tag/windows/" class="st_tag internal_tag" rel="tag" title="Posts tagged with windows">Windows</a> and ESRI on <a href="http://www.surlyjake.com/tag/linux/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Linux">linux</a>(centOS).</p>
<p style="padding-left: 30px;"><strong>Windows:</strong><br />
This server seemed to want the  license file specified. You may need to launch the <a href="http://www.surlyjake.com/tag/lmtools/" class="st_tag internal_tag" rel="tag" title="Posts tagged with lmtools">lmtools</a> GUI tool and  watch the status bar for the path to it. This is what mine looked like:</p>
<pre><code>"c:\program files\autodesk network license manager\lmutil" lmstat -c "c:\program files\autodesk network license manager\license\license.lic" -a</code></pre>
<p style="padding-left: 30px;"><strong>Linux:</strong></p>
<pre><code>/home/esri/arcgis/license10.0/bin/lmutil lmstat -a</code></pre>
<p>That will spit out the current license usage for all your products. To isolate the numbers we want to monitor, we will be piping the output into some other commands like find and cut.<br />
I recommend using the <a href="http://www.surlyjake.com/tag/gnu-tools/" class="st_tag internal_tag" rel="tag" title="Posts tagged with gnu tools">GNU tools</a> for windows http://gnuwin32.sourceforge.net/. These examples use the built-in &#8216;find&#8217; utility, and a &#8216;cut.exe&#8217; tool i found googling around. I had overlooked the gnutools when I first set this up. My mistake can be your gain. With gnutools, it will be easy to isolate the output you want using &#8216;grep&#8217; and &#8216;cut&#8217;. First, isolate the line you are looking for with grep. You will have to figure out what feature code you want to monitor. mine looks like this:</p>
<p style="padding-left: 30px;"><strong>Windows:</strong></p>
<pre><code>"c:\program files\autodesk network license manager\lmutil" lmstat -c "c:\program files\autodesk network license manager\license\license.lic" -a | find /i "64300acd_f:"</code></pre>
<p style="padding-left: 30px;"><strong>Linux:</strong></p>
<pre><code>/home/esri/arcgis/license10.0/bin/lmutil lmstat -a | grep ARC/INFO</code></pre>
<p>now that you have the right line,  you can trim the extra characters with &#8216;cut&#8217;. It will take some experimentation to get it right.:</p>
<p style="padding-left: 30px;"><strong>Windows:</strong></p>
<pre><code>"c:\program files\autodesk network license manager\lmutil" lmstat -c "c:\program files\autodesk network license manager\license\license.lic" -a | find /i "64300acd_f:" | cut -c 62-64</code></pre>
<p style="padding-left: 30px;"><strong>Linux:</strong></p>
<pre><code>/home/esri/arcgis/license10.0/bin/lmutil lmstat -a | grep ARC/INFO | cut -c 59-61</code></pre>
<p>The output now should be only the number of licenses being used.</p>
<p>To allow zabbix to monitor this value, we need to create a &#8216;UserParameter&#8217; read up on it here: <a href="http://www.zabbix.com/documentation/1.8/manual/config/user_parameters">http://www.zabbix.com/documentation/1.8/manual/config/user_parameters</a>. This is what the parameter looks like on my servers:</p>
<p style="padding-left: 30px;"><strong>Windows:</strong></p>
<pre><code>UserParameter=licenses.autocad.used,"c:\program files\autodesk network license manager\lmutil" lmstat -c "c:\program files\autodesk network license manager\license\license.lic" -a | find /i "64300acd_f:" | cut -c 62-64</code></pre>
<p style="padding-left: 30px;"><strong>Linux:</strong></p>
<pre><code>UserParameter=licenses.arcinfo.used,/home/esri/arcgis/license10.0/bin/lmutil lmstat -a | grep ARC/INFO | cut -c 59-61</code></pre>
<p>Once you have the userparameter created on the license server, restart the agent and add an item in zabbix to begin collecting values.</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2010/11/monitoring-flexlm-usage-with-zabbix/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2010/11/monitoring-flexlm-usage-with-zabbix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert High-Def MKV to play on xbox 360 using Linux</title>
		<link>http://www.surlyjake.com/2010/06/convert-high-def-mkv-to-play-on-xbox-360-using-linux/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=convert-high-def-mkv-to-play-on-xbox-360-using-linux</link>
		<comments>http://www.surlyjake.com/2010/06/convert-high-def-mkv-to-play-on-xbox-360-using-linux/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 21:23:32 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[codec]]></category>
		<category><![CDATA[h 264]]></category>
		<category><![CDATA[mkv file]]></category>
		<category><![CDATA[xbox360]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=612</guid>
		<description><![CDATA[There are a million different tutorials out there on how to convert a MKV file into a format that an xbox360 will play. You may have found, like i did, that most of them use 50 different questionable pieces of software to manipulate individual tracks and separate the mkv, etc, etc&#8230; I think those are [...]]]></description>
			<content:encoded><![CDATA[<p>There are a million different tutorials out there on how to convert a <a href="http://www.surlyjake.com/tag/mkv-file/" class="st_tag internal_tag" rel="tag" title="Posts tagged with mkv file">MKV file</a> into a format that an <a href="http://www.surlyjake.com/tag/xbox360/" class="st_tag internal_tag" rel="tag" title="Posts tagged with xbox360">xbox360</a> will play. You may have found, like i did, that most of them use 50 different questionable pieces of software to manipulate individual tracks and separate the mkv, etc, etc&#8230; I think those are ridiculous.</p>
<p>Please read the<a href="http://support.xbox.com/support/en/us/nxe/gamesandmedia/movies/videofaq/viewvideoplaybackfaq.aspx" target="_blank"> FAQ regarding xbox360 file format compatibility</a>.  It may help you pick better options for your particular files than the general ones i offer below.</p>
<p>The solution is simple: Use <a href="http://avidemux.sourceforge.net/" target="_blank">Avidemux</a>.</p>
<ol>
<li>Install avidemux. To install it is simple. It&#8217;s in the <a href="http://www.surlyjake.com/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ubuntu">Ubuntu</a> repositories and I imagine you can also find it in other distros quite easily.</li>
<li>Open avidemux and open the mkv you want to convert. If prompted some garbage about 264 and safemode, just use safe mode and dont worry about it.</li>
<li>Select File -&gt; Properties. This will tell you some info on the formats in use in your video file. Take this opportunity to identify what the <a href="http://www.surlyjake.com/tag/xbox/" class="st_tag internal_tag" rel="tag" title="Posts tagged with XBox">xbox</a> doesn&#8217;t like. When you are finished, click OK. If you want a second opinion, open up the folder with your mkv in it.  Right click -&gt; properties -&gt; Audio/Video tab. This will also tell  you the video and audio formats.</li>
<li>We obviously know that it wont play a video in a MKV container, so first thing to do is change the &#8220;Format&#8221; dropdown to say &#8220;MP4&#8243; <em>(you can, of course use AVI, but the majority of files I run into are h.264 and aac audio. For this combo, you want mp4&#8230;)</em></li>
<li>From the Properties menu, recall the video <a href="http://www.surlyjake.com/tag/codec/" class="st_tag internal_tag" rel="tag" title="Posts tagged with codec">codec</a>. H264 files show as &#8220;AVC1&#8243; inside of avidemux. I&#8217;m sure theres a technical reason for this, but do you want to talk about it or watch your video?<br />
Most of the time, you can leave the video droptown in avidemux on &#8220;Copy&#8221; this is nice because it means that your processor wont be re-encoding the video. This saves you quality and time.</li>
<li>From the properties menu, recall the audio codec. If you have a video with AAC stereo audio, leave the dropdown on &#8220;copy&#8221;.<br />
This is where most of my files need some love. Many MKV&#8217;s have 5.1 surround audio tracks. This is great, but not for an xbox360. To mix the audio down to stereo, select AAC on the audio dropdown, then click &#8220;filters&#8221;. In the mixer dropdown, select &#8220;stereo&#8221;.</li>
<li>Click &#8220;save&#8221;. Avidemux will prompt you for a filename for the converted file. It does not default a file extension, so do yourself and your xbox a favor and add one yourself like &#8220;&lt;videoname&gt;.mp4&#8243;.</li>
</ol>
<p>Once avidemux is finished with your file, it&#8217;s ready to go.</p>
<p><a class="linkification-ext" title="Linkification: http://avidemux.sourceforge.net/" href="http://avidemux.sourceforge.net/">http://avidemux.sourceforge.net/</a></p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2010/06/convert-high-def-mkv-to-play-on-xbox-360-using-linux/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2010/06/convert-high-def-mkv-to-play-on-xbox-360-using-linux/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Linux command line bandwidth monitor</title>
		<link>http://www.surlyjake.com/2009/07/linux-command-line-bandwidth-monitor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=linux-command-line-bandwidth-monitor</link>
		<comments>http://www.surlyjake.com/2009/07/linux-command-line-bandwidth-monitor/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 21:50:48 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bandwidth]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[eth]]></category>
		<category><![CDATA[iface]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=521</guid>
		<description><![CDATA[You can find out how much bandwidth your linux machine is using with a simple tool called &#8220;bwm-ng&#8221;. In Debian, install it with aptitude install bwm-ng Then, just type &#8216;bwm-ng&#8217; in the command line. It will give you something like this: bwm-ng v0.6 (probing every 5.000s), press 'h' for help input: /proc/net/dev type: rate - [...]]]></description>
			<content:encoded><![CDATA[<p>You can find out how much <a href="http://www.surlyjake.com/tag/bandwidth/" class="st_tag internal_tag" rel="tag" title="Posts tagged with bandwidth">bandwidth</a> your <a href="http://www.surlyjake.com/tag/linux/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Linux">linux</a> machine is using with a simple tool called &#8220;bwm-ng&#8221;. In <a href="http://www.surlyjake.com/tag/debian/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Debian">Debian</a>, install it with</p>
<pre><code>aptitude install bwm-ng</code></pre>
<p>Then, just type &#8216;bwm-ng&#8217; in the command line. It will give you something like this:</p>
<pre><code>bwm-ng v0.6 (probing every 5.000s), press 'h' for help
  input: /proc/net/<a href="http://www.surlyjake.com/tag/dev/" class="st_tag internal_tag" rel="tag" title="Posts tagged with dev">dev</a> type: rate
  -         <a href="http://www.surlyjake.com/tag/iface/" class="st_tag internal_tag" rel="tag" title="Posts tagged with iface">iface</a>                   Rx                   Tx                Total
  ==============================================================================
               lo:           0.00 KB/s            0.00 KB/s            0.00 KB/s
             <a href="http://www.surlyjake.com/tag/eth/" class="st_tag internal_tag" rel="tag" title="Posts tagged with eth">eth</a>0:        2221.47 KB/s           48.13 KB/s         2269.60 KB/s
  ------------------------------------------------------------------------------
            total:        2221.47 KB/s           48.13 KB/s         2269.60 KB/s</code></pre>
<p>Pressing the &#8220;h&#8221; key while it is running wil actually pull up a nice menu to change some of the options you are looking at.</p>
<p>bwm-ng is very basic, &#8220;<strong>iptraf</strong>&#8221; is another tool that provides some more functionality if you want to drill further into what is moving in and out of your box.</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2009/07/linux-command-line-bandwidth-monitor/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2009/07/linux-command-line-bandwidth-monitor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xbox Media Center on original XBox</title>
		<link>http://www.surlyjake.com/2009/06/xbox-media-center-on-original-xbox/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=xbox-media-center-on-original-xbox</link>
		<comments>http://www.surlyjake.com/2009/06/xbox-media-center-on-original-xbox/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 02:23:13 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[trickery]]></category>
		<category><![CDATA[WINE]]></category>
		<category><![CDATA[XBMC]]></category>
		<category><![CDATA[XBox]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/uncategorized/xbox-media-center-on-original-xbox/</guid>
		<description><![CDATA[I picked up a refurbished original XBox specifically so i could install XBMC on it. Turns out it is a GREAT project, and through some trickery, was able to get it installed and running thanks to this post: http://www.boards.ie/vbulletin/showthread.php?t=2055256404 by &#8216;SuperCell&#8217; at boards.ie. I highly recommend using this &#8216;hotswap&#8217; method if you don&#8217;t already have [...]]]></description>
			<content:encoded><![CDATA[<p>I picked up a refurbished original <a href="http://www.surlyjake.com/tag/xbox/" class="st_tag internal_tag" rel="tag" title="Posts tagged with XBox">XBox</a> specifically so i could install <a href="http://www.surlyjake.com/tag/xbmc/" class="st_tag internal_tag" rel="tag" title="Posts tagged with XBMC">XBMC</a> on it. Turns out it is a GREAT project, and through some <a href="http://www.surlyjake.com/tag/trickery/" class="st_tag internal_tag" rel="tag" title="Posts tagged with trickery">trickery</a>, was able to get it installed and running thanks to this post: <a href="http://www.boards.ie/vbulletin/showthread.php?t=2055256404">http://www.boards.ie/vbulletin/showthread.php?t=2055256404</a> by &#8216;SuperCell&#8217; at boards.ie. I highly recommend using this &#8216;hotswap&#8217; method if you don&#8217;t already have the gear necesarry to mod an xbox with a chip, or by using a savegame exploit. It&#8217;ll save you some cash, plus who doesn&#8217;t like yanking an <a href="http://www.surlyjake.com/tag/ide/" class="st_tag internal_tag" rel="tag" title="Posts tagged with IDE">IDE</a> cable from a spinning hard drive?</p>
<p>Best of all, all of the tools used in the process run perfectly in <a href="http://www.surlyjake.com/tag/wine/" class="st_tag internal_tag" rel="tag" title="Posts tagged with WINE">WINE</a>, or directly on my <a href="http://www.surlyjake.com/tag/linux/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Linux">Linux</a> desktop.</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2009/06/xbox-media-center-on-original-xbox/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2009/06/xbox-media-center-on-original-xbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install backupexec 12.5 agent on Debian Lenny</title>
		<link>http://www.surlyjake.com/2009/05/install-backupexec-125-agent-on-debian-lennyinstall-backupexec-125-agent-on-debian-lenny/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-backupexec-125-agent-on-debian-lennyinstall-backupexec-125-agent-on-debian-lenny</link>
		<comments>http://www.surlyjake.com/2009/05/install-backupexec-125-agent-on-debian-lennyinstall-backupexec-125-agent-on-debian-lenny/#comments</comments>
		<pubDate>Tue, 12 May 2009 20:24:16 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Debian Lenny]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[backupexec]]></category>
		<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=388</guid>
		<description><![CDATA[The path to it is BEWS_12.5.2213_LINUX-UNIX-MAC-SAP_AGENTS.tar.gz\BEWS_12.5.2213_LINUX-UNIX-MAC-SAP_AGENTS.tar\pkgs\Linux\VRTSralus.tar.gz\VRTSralus.tar\VRTSralus-12.5.2213-0.i386.deb Unfortunately, the Deb package doesn&#8217;t specify It&#8217;s dependencies. You need to manually install the libstdc++5 package. aptitude install libstdc++5 You can follow the rest of the install here: http://insanelabs.com/debian/linux-symantec-backup-exec-12-and-debian-etch-3264/]]></description>
			<content:encoded><![CDATA[<p>The path to it is</p>
<pre><code>BEWS_12.5.2213_<a href="http://www.surlyjake.com/tag/linux/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Linux">LINUX</a>-UNIX-MAC-SAP_AGENTS.tar.gz\BEWS_12.5.2213_<a href="http://www.surlyjake.com/tag/linux/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Linux">LINUX</a>-UNIX-MAC-SAP_AGENTS.tar\pkgs\<a href="http://www.surlyjake.com/tag/linux/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Linux">Linux</a>\VRTSralus.tar.gz\VRTSralus.tar\VRTSralus-12.5.2213-0.i386.deb</code></pre>
<p>Unfortunately, the Deb package doesn&#8217;t specify It&#8217;s dependencies. You need to manually install the libstdc++5 package.</p>
<pre><code>aptitude install libstdc++5</code></pre>
<p>You can follow the rest of the install here: <a href="http://insanelabs.com/debian/linux-symantec-backup-exec-12-and-debian-etch-3264/" target="_blank">http://insanelabs.com/debian/linux-symantec-backup-exec-12-and-debian-etch-3264/</a></p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2009/05/install-backupexec-125-agent-on-debian-lennyinstall-backupexec-125-agent-on-debian-lenny/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2009/05/install-backupexec-125-agent-on-debian-lennyinstall-backupexec-125-agent-on-debian-lenny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Group share for a Active Directory domain group with Samba</title>
		<link>http://www.surlyjake.com/2009/05/create-a-group-share-for-a-domain-group-with-samba/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=create-a-group-share-for-a-domain-group-with-samba</link>
		<comments>http://www.surlyjake.com/2009/05/create-a-group-share-for-a-domain-group-with-samba/#comments</comments>
		<pubDate>Wed, 06 May 2009 20:38:36 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Debian Lenny]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[share]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=370</guid>
		<description><![CDATA[Once you have joined your samba server to your domain and have set up user authentication, creating a share that will allow a group of users to access files is pretty simple.  We need to create a folder that is owned by the root user and the domain group. The samba share will inherit permissions [...]]]></description>
			<content:encoded><![CDATA[<p>Once you have joined your <a href="http://www.surlyjake.com/tag/samba/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Samba">samba</a> server to your domain and have set up user authentication, creating a <a href="http://www.surlyjake.com/tag/share/" class="st_tag internal_tag" rel="tag" title="Posts tagged with share">share</a> that will allow a group of users to access files is pretty simple.  We need to create a folder that is owned by the root user and the domain group. The <a href="http://www.surlyjake.com/tag/samba/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Samba">samba</a> share will inherit permissions from the parent folder.  Here is an example for creating a folder for a domain group called &#8220;corporate_HR&#8221;. The domain is called &#8220;acme&#8221;. There is administrative support group called &#8220;admins&#8221;. Setting the folder&#8217;s permissions to &#8220;2771&#8243; means that the owner (root) and the group (corporate_HR) have full access.  The &#8220;2&#8243; is a setgid bit. It will force all new files created under the HR folder to take the group parameter from it&#8217;s parent.  We use the &#8220;force group&#8221; parameter to ensure that permissions are set properly when a member of the &#8220;ACME\admins&#8221; group accesses the files.</p>
<p>login as root.</p>
<p>to set up the filesystem:</p>
<pre><code>cd /home
mkdir HR
chgrp corporate_HR HR
chmod 2771 HR</code></pre>
<p>set up the share:</p>
<pre><code>[HR]
comment    =    share for corporate HR group
readonly    =   no
inherrit owner    =    yes
inherit permissions    =    yes
authorized users    =    @ACME\corporate_HR @ACME\admins
force group    =    ACME\corporate_HR</code></pre>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2009/05/create-a-group-share-for-a-domain-group-with-samba/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2009/05/create-a-group-share-for-a-domain-group-with-samba/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Join Debian Lenny to Active Directory using Samba</title>
		<link>http://www.surlyjake.com/2009/05/join-debian-lenny-to-active-directory-using-samba/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=join-debian-lenny-to-active-directory-using-samba</link>
		<comments>http://www.surlyjake.com/2009/05/join-debian-lenny-to-active-directory-using-samba/#comments</comments>
		<pubDate>Fri, 01 May 2009 20:48:45 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Debian Lenny]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[winbind]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=338</guid>
		<description><![CDATA[If you install GNOME on Debian and intend to use it as a server, first thing you should do is remove the network-manager and network-manager-gnome packages. This tool can be helpful on a desktop, but since we are tweaking DNS, IP addresses, and perhaps even NIC bonding, the network-manager can screw up your settings. aptitude [...]]]></description>
			<content:encoded><![CDATA[<p>If you install <a href="http://www.surlyjake.com/tag/gnome/" class="st_tag internal_tag" rel="tag" title="Posts tagged with GNOME">GNOME</a> on <a href="http://www.surlyjake.com/tag/debian/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Debian">Debian</a> and intend to use it as a server, first thing you should do is remove the network-manager and network-manager-gnome packages. This tool can be helpful on a desktop, but since we are tweaking DNS, IP addresses, and perhaps even NIC bonding, the network-manager can screw up your settings.</p>
<pre><code>aptitude purge network-manager-gnome network-manager </code></pre>
<p>If this is a VMware Virtual machine, install VMware tools. The prerequisites for Debian <a href="http://www.surlyjake.com/tag/lenny/" class="st_tag internal_tag" rel="tag" title="Posts tagged with lenny">Lenny</a> are:</p>
<pre><code>aptitude install build-essential openssl libssl-<a href="http://www.surlyjake.com/tag/dev/" class="st_tag internal_tag" rel="tag" title="Posts tagged with dev">dev</a> <a href="http://www.surlyjake.com/tag/linux/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Linux">linux</a>-headers-$(uname -r) psmiscapt</code></pre>
<p>You may have to manually create a DNS entry for your server. Just to be safe, do that now.</p>
<p>If you plan to support NTFS-like ACL&#8217;s, install support for it now.</p>
<pre><code>aptitude install acl</code></pre>
<p>now, you need to mount the partition with ACL&#8217;s enabled, to do this, edit your /etc/fstab.</p>
<pre><code>nano /etc/fstab</code></pre>
<p>The line I needed looked like this:</p>
<pre><code>/dev/sda9 / ext3 acl,defaults 0 1</code></pre>
<p>The important part is to get &#8220;acl&#8221; into the options list. Dont forget the comma.<br />
I recommend rebooting just to make sure your fstab is set before you continue.<br />
It&#8217;s easy to screw something up here and make your system unbootable, so if you reboot, and cant get your system back up and running, get into single user mode, and use this command. (You will have to adjust /dev/sda1 to your root partition. In my experience, it is usually /dev/sda1 or /dev/hda1. Use fdisk -l to list the partitions on the disk.</p>
<pre><code>mount -o remount,rw /dev/sda1</code></pre>
<p>Now lets get the <a href="http://www.surlyjake.com/tag/samba/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Samba">samba</a> and kerberos software packages installed.</p>
<pre><code>aptitude install samba ntpdate smbclient <a href="http://www.surlyjake.com/tag/winbind/" class="st_tag internal_tag" rel="tag" title="Posts tagged with winbind">winbind</a> krb5-config krb5-user</code></pre>
<p>Put in the Workgroup/domain info when prompted if you like. They will set up some .conf files for you, but we&#8217;re not going to use them anyways. We wont worry about WINS for now.<br />
Now lets stop samba and winbind:</p>
<pre><code>/etc/init.d/samba stop /etc/init.d/winbind stop</code></pre>
<p>move the /etc/samba files somewhere</p>
<pre><code>mkdir /etc/samba/vanillaconf mv /etc/samba/* /etc/samba/vanillaconf/</code></pre>
<p>create your own /etc/samba/smb.conf: Make sure that the domain and realm fields are all caps.</p>
<pre><code>[global] workgroup = ((DOMAIN)) server string = %h server wins support = no security = ads realm = ((DOMAIN)).COM encrypt passwords = yes obey pam restrictions = yes winbind use default domain = yes winbind enum users = yes winbind enum groups = yes template shell = /bin/bash idmap uid = 10000-20000 idmap gid = 10000-20000 </code></pre>
<p>sync time</p>
<pre><code>ntpdate ((domain controller))</code></pre>
<p>now that samba knows what domain its part of, and we have a basic config for it, we need to get the authentication part working. Kerberos is the softare that communicates with your <a href="http://www.surlyjake.com/tag/active-directory/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Active Directory">Active Directory</a> domain to authenticate users.</p>
<pre><code>nano /etc/krb5.conf</code></pre>
<p>configure domain in /etc/krb5.conf. important parts:</p>
<pre><code>[libdefaults] default_realm = ((domain)).COM [realms] ((DOMAIN.COM)) = { kdc = ((domain controller)) kdc = ((backup DC)) admin_server = (domain controller)) } [domain_realm] .(domain).com = (domain controller).(domain).COM</code></pre>
<p>do a test by typing:</p>
<pre><code>kinit [username]</code></pre>
<p>then type:</p>
<pre><code>klist</code></pre>
<p>if you get some output looking like this, you are ready to go.</p>
<pre><code>Ticket cache: FILE:/tmp/krb5cc_0 Default principal: (username)@(domain).COM Valid starting Expires Service principal 04/27/09 13:54:23 04/27/09 23:54:26 krbtgt/(domain).COM@(domain).COM renew until 04/27/09 23:54:23</code></pre>
<p>To get Debian to recognize your Active Directory users, you need to update /etc/nsswitch.conf</p>
<pre><code>nano /etc/nsswitch.conf</code></pre>
<p>add &#8220;winbind&#8221; to the passwd and group lines. if you have &#8220;compat&#8221; in the line, put in like this:</p>
<pre><code>passwd: compat winbind passwd_compat: winbind group: compat winbind group_compat: winbind </code></pre>
<p>Now start samba and winbind back up</p>
<pre><code>/etc/init.d/winbind start /etc/init.d/samba start</code></pre>
<p>Join your machine to the domain.</p>
<pre><code>net ads join -U (administrative user)</code></pre>
<p>You should see</p>
<pre><code>Joined '(server name)' to realm '(domain).com'</code></pre>
<p>If you see</p>
<pre><code>No DNS domain configured for '(servername)'. Unable to perform DNS Update. DNS update failed!</code></pre>
<p>Don&#8217;t worry. Just create an entry in your DNS server for the samba machine.<br />
Test if winbind is working properly with</p>
<pre><code>wbinfo -t</code></pre>
<p>If you get</p>
<pre><code>checking the trust secret via RPC calls failed Could not check secret</code></pre>
<p>Then restart winbind:</p>
<pre><code>/etc/init.d/winbind restart</code></pre>
<p>allow AD accounts to logon to the machine:</p>
<pre><code># /etc/pam.d/common-account account sufficient pam_winbind.so account required pam_unix.so </code></pre>
<pre><code># /etc/pam.d/common-auth auth sufficient pam_winbind.so auth required pam_unix.so use_first_pass nullok_secure</code></pre>
<pre><code># /etc/pam.d/common-session session required pam_mkhomedir.so skel=/etc/skel/ umask=0066 session sufficient pam_winbind.so session required pam_unix.so</code></pre>
<p>It is critical that &#8220;obey pam restrictions&#8221; is set to &#8220;yes&#8221;. in your smb.conf for these pam settings to take effect.There are some other changes to these Pam.d settings i decided to make upon putting the server into production. I will write about that in another page [link].</p>
<p>Now, give your admin group from AD root access to the box</p>
<pre><code>aptitude install sudo visudo</code></pre>
<p>add this line:</p>
<pre><code>%(domain)\\(admin's group) ALL =(ALL) ALL</code></pre>
<p>When creating shares, to give an AD user access to a <a href="http://www.surlyjake.com/tag/share/" class="st_tag internal_tag" rel="tag" title="Posts tagged with share">share</a>, use:(More info in the future)</p>
<pre><code>valid users = (domain)\username</code></pre>
<p>to give an AD group access to a share, use:</p>
<pre><code>valid users = @(domain)\groupname</code></pre>
<p>Sometimes, I have to reboot my <a href="http://www.surlyjake.com/tag/windows/" class="st_tag internal_tag" rel="tag" title="Posts tagged with windows">windows</a> client machine to make it work&#8230; fyi.<br />
Sources:</p>
<ul>
<li>O&#8217;reilly Samba book 3rd Edition.</li>
<li><a href="http://www.ccs.neu.edu/home/battista/documentation/winbind/index.html">http://www.ccs.neu.edu/home/battista/documentation/winbind/index.html</a></li>
<li>&#8230;Countless articles, mailing lists, forums.</li>
</ul>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2009/05/join-debian-lenny-to-active-directory-using-samba/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2009/05/join-debian-lenny-to-active-directory-using-samba/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Add a Single User mode entry in Grub bootloader.</title>
		<link>http://www.surlyjake.com/2009/02/add-a-single-user-mode-entry-in-grub-bootloader/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=add-a-single-user-mode-entry-in-grub-bootloader</link>
		<comments>http://www.surlyjake.com/2009/02/add-a-single-user-mode-entry-in-grub-bootloader/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 23:20:58 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bootloader]]></category>
		<category><![CDATA[grub]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=282</guid>
		<description><![CDATA[All you need to do is add &#8216;single&#8217; to the end of any bootloader entry to make it single user. So what you need to do is edit the /boot/grub/menu.lst, copy one of the entries, and all &#8216;single&#8217; to the end. gksudo kate /boot/grub/menu.lst take the &#8216;kernel&#8217; line and add &#8216;single&#8217; to the end. Like [...]]]></description>
			<content:encoded><![CDATA[<p>All you need to do is add &#8216;single&#8217; to the end of any <a href="http://www.surlyjake.com/tag/bootloader/" class="st_tag internal_tag" rel="tag" title="Posts tagged with bootloader">bootloader</a> entry to make it single user. So what you need to do is edit the /boot/<a href="http://www.surlyjake.com/tag/grub/" class="st_tag internal_tag" rel="tag" title="Posts tagged with grub">grub</a>/menu.lst, copy one of the entries, and all &#8216;single&#8217; to the end.</p>
<pre><code>gksudo kate /boot/grub/menu.lst</code></pre>
<p>take the &#8216;kernel&#8217; line and add &#8216;single&#8217; to the end. Like this:</p>
<pre><code>kernel		/boot/vmlinuz-2.6.27-11-generic root=UUID=3699a36a-dd96-4186-8028-43776214c01e ro quiet splash single</code></pre>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2009/02/add-a-single-user-mode-entry-in-grub-bootloader/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2009/02/add-a-single-user-mode-entry-in-grub-bootloader/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenOffice Remove mis-spelled words</title>
		<link>http://www.surlyjake.com/2009/01/openoffice-remove-mis-spelled-words/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=openoffice-remove-mis-spelled-words</link>
		<comments>http://www.surlyjake.com/2009/01/openoffice-remove-mis-spelled-words/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 17:26:04 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[OpenOffice]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=260</guid>
		<description><![CDATA[beleive or believe? If you mistakenly add a word to Firefox&#8217;s custom dictionary, the word is added to ~/.mozilla/firefox/[unique-alphanumeric-string].default/persdict.dat just edit the file and remove your mistaken &#8216;custom&#8217; word.]]></description>
			<content:encoded><![CDATA[<p>beleive or believe?<br />
If you mistakenly add a word to Firefox&#8217;s custom dictionary, the word is added to</p>
<pre><code>~/.mozilla/firefox/[unique-alphanumeric-string].default/persdict.dat</code></pre>
<p>just edit the file and remove your mistaken &#8216;custom&#8217; word.</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2009/01/openoffice-remove-mis-spelled-words/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2009/01/openoffice-remove-mis-spelled-words/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

