<?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; Debian</title>
	<atom:link href="http://www.surlyjake.com/tag/debian/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>Install Open-VM-tools on Debian 6 squeeze</title>
		<link>http://www.surlyjake.com/2011/02/install-open-vm-tools-on-debian-6-squeeze/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-open-vm-tools-on-debian-6-squeeze</link>
		<comments>http://www.surlyjake.com/2011/02/install-open-vm-tools-on-debian-6-squeeze/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 21:51:53 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Debian Squeeze]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[squeeze]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[VM]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[vmware tools]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=700</guid>
		<description><![CDATA[Installing Open Virtual Machine Tools is a nice alternative to managing and installing the vmware tools package that comes with Vmware&#8217;s hypervisor products.  It allows you to use APT to manage all the dependencies and updates. Module assistant will recompile the kernel modules for you automatically when you update kernels too. I have verified that [...]]]></description>
			<content:encoded><![CDATA[<p>Installing Open <a href="http://www.surlyjake.com/tag/virtual-machine/" class="st_tag internal_tag" rel="tag" title="Posts tagged with virtual machine">Virtual Machine</a> Tools is a nice alternative to managing and installing the <a href="http://www.surlyjake.com/tag/vmware/" class="st_tag internal_tag" rel="tag" title="Posts tagged with VMware">vmware</a> tools package that comes with <a href="http://www.surlyjake.com/tag/vmware/" class="st_tag internal_tag" rel="tag" title="Posts tagged with VMware">Vmware</a>&#8217;s hypervisor products.  It allows you to use APT to manage all the dependencies and updates. Module assistant will recompile the kernel modules for you automatically when you update kernels too.</p>
<p>I have verified that this configuration works under ESXi 4.1.0, 260247 and a new <a href="http://www.surlyjake.com/tag/squeeze/" class="st_tag internal_tag" rel="tag" title="Posts tagged with squeeze">Squeeze</a> <a href="http://www.surlyjake.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with install">install</a>. All of the essential functions like being able to see guest OS information on the Vsphere summary page and performing &#8220;Shut Down Guest&#8221; and &#8220;Restart Guest&#8221; all work as expected. If your experiences vary, please leave a comment</p>
<p><em>This should all be performed by the root user (otherwise prepend &#8216;sudo&#8217; to the commands if you must use sudo). </em><br />
The first thing you need to do is add the &#8216;contrib&#8217; archive to your apt sources config:</p>
<pre><code>nano /etc/apt/sources.list</code></pre>
<p>Add the &#8216;contrib&#8217; to the end of these source lines. I use the <a href="http://www.surlyjake.com/tag/debian/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Debian">debian</a>.uchicago.edu repository, so mine look like this on a new install:</p>
<pre><code>deb http://debian.uchicago.edu/debian/ squeeze main contrib
deb-src http://debian.uchicago.edu/debian/ squeeze main contrib</code></pre>
<p>After you save changes to the file, simply update your package list and perform the install:</p>
<pre><code>apt-get update
apt-get install open-<a href="http://www.surlyjake.com/tag/vm/" class="st_tag internal_tag" rel="tag" title="Posts tagged with VM">vm</a>-tools open-<a href="http://www.surlyjake.com/tag/vm/" class="st_tag internal_tag" rel="tag" title="Posts tagged with VM">vm</a>-source</code></pre>
<p>You might see an error that looks like this:</p>
<pre><code>Loading open-vm-tools modules: vmhgfsFATAL: Module vmhgfs not found.
 vmmemctlFATAL: Module vmmemctl not found.
 vmsyncFATAL: Module vmsync not found.</code></pre>
<p>Don&#8217;t worry, this is because we have not installed the kernel modules for some of the more advanced VMware functions like the vmhgfs file system, Memory Balloon (vmmemctl) <a href="http://www.surlyjake.com/tag/driver/" class="st_tag internal_tag" rel="tag" title="Posts tagged with driver">Driver</a>,  and vmsync, which helps freeze the VM while taking snapshots.<br />
To install these kernel modules, we&#8217;re going to use module-assistant. It will compile the modules for your kernel:</p>
<pre><code>module-assistant auto-install open-vm -i</code></pre>
<p>The &#8216;-i&#8217; puts module assistant into non-interactive mode. It wont ask you to confirm any additional package installs necesarry to set up the build environment.<br />
If you&#8217;re running a server without a Graphical environment, you&#8217;re finished. If you want features such as automatically adjusting the VM&#8217;s monitor resolution or allowing your mouse to seamlessly move between your host system and the VM, you need to install one more package:</p>
<pre><code>apt-get install open-vm-toolbox</code></pre>
<p>Now you won&#8217;t need to use CTRL+ALT to switch back and forth.</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2011/02/install-open-vm-tools-on-debian-6-squeeze/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2011/02/install-open-vm-tools-on-debian-6-squeeze/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Debian eth0, eth1, eth2, in Virtualbox or VMware Virtual machines when copying</title>
		<link>http://www.surlyjake.com/2009/11/debian-eth0-eth1-eth2-etc-in-vms-when-copying/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=debian-eth0-eth1-eth2-etc-in-vms-when-copying</link>
		<comments>http://www.surlyjake.com/2009/11/debian-eth0-eth1-eth2-etc-in-vms-when-copying/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 19:44:17 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Debian Etch]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[eth]]></category>
		<category><![CDATA[VM]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=60</guid>
		<description><![CDATA[Debian uses udev. Udev handles mapping MAC&#8217;s to the appropriate /dev/eth(X) file. If you copy a Virtual machine, Udev will remember the MAC address of the old NIC. When you copy the machine, the virtual host usually generates a new MAC address for the VM. Udev will assign the new Device to eth1, eth2, and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.surlyjake.com/tag/debian/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Debian">Debian</a> uses udev. Udev handles mapping MAC&#8217;s to the appropriate /<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/eth/" class="st_tag internal_tag" rel="tag" title="Posts tagged with eth">eth</a>(X) file. If you copy a <a href="http://www.surlyjake.com/tag/virtual-machine/" class="st_tag internal_tag" rel="tag" title="Posts tagged with virtual machine">Virtual machine</a>, Udev will remember the MAC address of the old NIC. When you copy the machine, the virtual host usually generates a new MAC address for the <a href="http://www.surlyjake.com/tag/vm/" class="st_tag internal_tag" rel="tag" title="Posts tagged with VM">VM</a>.<br />
Udev will assign the new Device to eth1, eth2, and so on. If you want to change your NIC assignments make Udev forget the old MAC.<br />
In Debian 5 (<a href="http://www.surlyjake.com/tag/lenny/" class="st_tag internal_tag" rel="tag" title="Posts tagged with lenny">lenny</a>) it is in this file:</p>
<pre><code>/etc/udev/rules.d/70-persistent-net.rules</code></pre>
<p>In Debian 4 (etch) it is in this file:</p>
<pre><code>/etc/udev/rules.d/z25_persistent-net.rules
</code></pre>
<p>To apply changes in Lenny: &#8220;udevadm trigger&#8221; or &#8220;udevtrigger&#8221; (in Etch)</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2009/11/debian-eth0-eth1-eth2-etc-in-vms-when-copying/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2009/11/debian-eth0-eth1-eth2-etc-in-vms-when-copying/feed/</wfw:commentRss>
		<slash:comments>2</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>, <a href="http://www.surlyjake.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with install">install</a> 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>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 <a href="http://www.surlyjake.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with install">install</a> 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>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 <a href="http://www.surlyjake.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with install">install</a> GNOME 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 <a href="http://www.surlyjake.com/tag/vmware/" class="st_tag internal_tag" rel="tag" title="Posts tagged with VMware">VMware</a> <a href="http://www.surlyjake.com/tag/virtual-machine/" class="st_tag internal_tag" rel="tag" title="Posts tagged with virtual machine">Virtual machine</a>, install <a href="http://www.surlyjake.com/tag/vmware-tools/" class="st_tag internal_tag" rel="tag" title="Posts tagged with vmware tools">VMware tools</a>. 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 share, 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>22</slash:comments>
		</item>
		<item>
		<title>Rip and convert to MP3 files in Debian Lenny</title>
		<link>http://www.surlyjake.com/2009/03/rip-and-convert-to-mp3-files-in-debian-lenny/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rip-and-convert-to-mp3-files-in-debian-lenny</link>
		<comments>http://www.surlyjake.com/2009/03/rip-and-convert-to-mp3-files-in-debian-lenny/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 02:53:45 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Debian Lenny]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[rip]]></category>
		<category><![CDATA[sound juicer]]></category>
		<category><![CDATA[soundconverter]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=328</guid>
		<description><![CDATA[To create an MP3 audio file in Lenny, you need to install the proper package to encode them. I suggest you add the &#8220;debian-multimedia&#8221; repository while you are at it. Edit your  /etc/apt/sources.list and add: deb http://www.debian-multimedia.org lenny main run aptitude update then install the gstreamer lame encoder: aptitude install gstreamer0.10-lame Then you are done. [...]]]></description>
			<content:encoded><![CDATA[<p>To create an <a href="http://www.surlyjake.com/tag/mp3/" class="st_tag internal_tag" rel="tag" title="Posts tagged with mp3">MP3</a> audio file in <a href="http://www.surlyjake.com/tag/lenny/" class="st_tag internal_tag" rel="tag" title="Posts tagged with lenny">Lenny</a>, you need to <a href="http://www.surlyjake.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with install">install</a> the proper package to encode them. I suggest you add the &#8220;<a href="http://www.debian-multimedia.org/" target="_blank">debian-multimedia</a>&#8221; repository while you are at it. Edit your  /etc/apt/sources.list and add:</p>
<pre><code>deb http://www.<a href="http://www.surlyjake.com/tag/debian/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Debian">debian</a>-multimedia.org lenny main</code></pre>
<p>run</p>
<pre><code>aptitude update</code></pre>
<p>then install the gstreamer lame encoder:</p>
<pre><code>aptitude install gstreamer0.10-lame</code></pre>
<p>Then you are done. You can launch <a href="http://www.surlyjake.com/tag/soundconverter/" class="st_tag internal_tag" rel="tag" title="Posts tagged with soundconverter">soundconverter</a> and convert formats to MP3 using VBR and other technologies. You can also use <a href="http://www.surlyjake.com/tag/sound-juicer/" class="st_tag internal_tag" rel="tag" title="Posts tagged with sound juicer">sound juicer</a> to <a href="http://www.surlyjake.com/tag/rip/" class="st_tag internal_tag" rel="tag" title="Posts tagged with rip">Rip</a> CD&#8217;s</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2009/03/rip-and-convert-to-mp3-files-in-debian-lenny/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2009/03/rip-and-convert-to-mp3-files-in-debian-lenny/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install the proprietary Closed source version of Virtualbox on Debian Lenny</title>
		<link>http://www.surlyjake.com/2009/02/install-the-proprietary-closed-source-version-of-virtualbox-on-debian-lenny/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-the-proprietary-closed-source-version-of-virtualbox-on-debian-lenny</link>
		<comments>http://www.surlyjake.com/2009/02/install-the-proprietary-closed-source-version-of-virtualbox-on-debian-lenny/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 17:21:28 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Debian Lenny]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=291</guid>
		<description><![CDATA[I like the closed source version of virtualbox. I just do. This is how to install it quickly and simply: add this to sources.list deb http://download.virtualbox.org/virtualbox/debian lenny non-free run this to get the public key and install it: wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- &#124; sudo apt-key add - then just install it aptitude install virtualbox-2.1 this [...]]]></description>
			<content:encoded><![CDATA[<p>I like the closed source version of <a href="http://www.surlyjake.com/tag/virtualbox/" class="st_tag internal_tag" rel="tag" title="Posts tagged with virtualbox">virtualbox</a>. I just do. This is how to <a href="http://www.surlyjake.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with install">install</a> it quickly and simply:</p>
<p>add this to sources.list</p>
<pre><code>deb http://download.virtualbox.org/virtualbox/<a href="http://www.surlyjake.com/tag/debian/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Debian">debian</a> <a href="http://www.surlyjake.com/tag/lenny/" class="st_tag internal_tag" rel="tag" title="Posts tagged with lenny">lenny</a> non-free</code></pre>
<p>run this to get the public key and install it:</p>
<pre><code>wget -q http://download.virtualbox.org/virtualbox/<span class="searchword0">deb</span>ian/sun_vbox.asc -O- | sudo apt-key add -</code></pre>
<p>then just install it</p>
<pre><code>aptitude install virtualbox-2.1</code></pre>
<p>this will automatically create the group &#8220;vboxusers&#8221; and add the user who installed it to the group. If you need to add others:</p>
<pre><code>sudo adduser `[username]` vboxusers</code></pre>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2009/02/install-the-proprietary-closed-source-version-of-virtualbox-on-debian-lenny/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2009/02/install-the-proprietary-closed-source-version-of-virtualbox-on-debian-lenny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Debian Lenny Nvidia Drivers using binary packages</title>
		<link>http://www.surlyjake.com/2009/02/install-debian-lenny-nvidia-drivers-using-binary-packages/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-debian-lenny-nvidia-drivers-using-binary-packages</link>
		<comments>http://www.surlyjake.com/2009/02/install-debian-lenny-nvidia-drivers-using-binary-packages/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 03:30:40 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Debian Lenny]]></category>
		<category><![CDATA[binary]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[driver]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[nvidia]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=287</guid>
		<description><![CDATA[As usual, the official Debian wiki has a great writeup on getting the Drivers installed. http://wiki.debian.org/NvidiaGraphicsDrivers. Do yourself a favor and read the document. It will give you the full story and not just the regurgitated short version below. I use debian because I like the packaging system. I think it works well. why add [...]]]></description>
			<content:encoded><![CDATA[<p>As usual, the official <a href="http://www.surlyjake.com/tag/debian/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Debian">Debian</a> wiki has a great writeup on getting the Drivers installed.<a href="http://wiki.debian.org/NvidiaGraphicsDrivers" target="_blank"> http://wiki.debian.org/NvidiaGraphicsDrivers</a>. Do yourself a favor and read the document. It will give you the full story and not just the regurgitated short version below. I use debian because I like the packaging system. I think it works well. why add the agony of recompiling drivers whenever you update kernels and whatnot. Since X was broken, The key was to switch to a console session BEFORE logging in using GDM. As soon as the login page comes up, press CTRL+ALT+F2. This is what I had to be able to log in and use my X session:</p>
<p>Login as root.</p>
<p>I used the netinst disk and had to add the &#8220;non-free&#8221; and &#8220;contrib&#8221; repositories. to do this, edit /etc/apt/sources.list.</p>
<pre><code>nano /etc/apt/sources.list</code></pre>
<p>Find the line line that has something like</p>
<pre><code>deb http://mirror.cc.columbia.edu/pub/<a href="http://www.surlyjake.com/tag/linux/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Linux">linux</a>/debian/debian/ <a href="http://www.surlyjake.com/tag/lenny/" class="st_tag internal_tag" rel="tag" title="Posts tagged with lenny">lenny</a> main
deb-src http://mirror.cc.columbia.edu/pub/linux/debian/debian/ <a href="http://www.surlyjake.com/tag/lenny/" class="st_tag internal_tag" rel="tag" title="Posts tagged with lenny">lenny</a> main
</code></pre>
<p>add &#8220;contrib non-free&#8221; to the end of both of these lines and then do a &#8220;aptitude update&#8221;</p>
<pre><code># apt-get <a href="http://www.surlyjake.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with install">install</a> module-assistant <a href="http://www.surlyjake.com/tag/nvidia/" class="st_tag internal_tag" rel="tag" title="Posts tagged with nvidia">nvidia</a>-kernel-common
# m-a auto-install <a href="http://www.surlyjake.com/tag/nvidia/" class="st_tag internal_tag" rel="tag" title="Posts tagged with nvidia">nvidia</a>-kernel${VERSION}-source
# apt-get install <a href="http://www.surlyjake.com/tag/nvidia/" class="st_tag internal_tag" rel="tag" title="Posts tagged with nvidia">nvidia</a>-glx${VERSION}</code></pre>
<p>In the device section, add</p>
<pre><code><a href="http://www.surlyjake.com/tag/driver/" class="st_tag internal_tag" rel="tag" title="Posts tagged with driver">Driver</a> "nvidia"</code></pre>
<p>Restart GDM (and subsequently X)</p>
<pre><code># invoke-rc.d gdm restart</code></pre>
<p>Install The nvidia settings interface thingy if you want. This can also verify if the driver is actually running.</p>
<pre><code>aptitude install nvidia-settings</code></pre>
<p>In debian, the package doesn&#8217;t install a shortcut for some reason, so just launch it by typing &#8220;nvidia-settings&#8221; into the console.</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2009/02/install-debian-lenny-nvidia-drivers-using-binary-packages/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2009/02/install-debian-lenny-nvidia-drivers-using-binary-packages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian Samba share. no password. read only</title>
		<link>http://www.surlyjake.com/2008/10/debian-samba-share-no-password-read-only/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=debian-samba-share-no-password-read-only</link>
		<comments>http://www.surlyjake.com/2008/10/debian-samba-share-no-password-read-only/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 18:28:24 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Debian Etch]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=63</guid>
		<description><![CDATA[Just install samba server: apt-get install samba edit the config: nano /etc/samba/smb.conf set security to &#8220;share&#8221; security = share and guest account to nobody guest account = nobody then you just need to create your share like this: [guest share] comment = a guest share path = /path/to/files browseable = yes read only = yes [...]]]></description>
			<content:encoded><![CDATA[<p>Just <a href="http://www.surlyjake.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with install">install</a> <a href="http://www.surlyjake.com/tag/samba/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Samba">samba</a> server:</p>
<pre><code>apt-get install samba
</code></pre>
<p>edit the config:</p>
<pre><code>nano /etc/samba/smb.conf
</code></pre>
<p>set security to &#8220;share&#8221;</p>
<pre><code>security = share
</code></pre>
<p>and guest account to nobody</p>
<pre><code>guest account = nobody
</code></pre>
<p>then you just need to create your share like this:</p>
<pre><code>[guest share]
comment = a guest share
path = /path/to/files
browseable = yes
read only = yes
guest ok = yes
</code></pre>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2008/10/debian-samba-share-no-password-read-only/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2008/10/debian-samba-share-no-password-read-only/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zabbix 1.6 Proxy with Debian</title>
		<link>http://www.surlyjake.com/2008/10/zabbix-16-proxy-with-debian/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=zabbix-16-proxy-with-debian</link>
		<comments>http://www.surlyjake.com/2008/10/zabbix-16-proxy-with-debian/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 19:10:21 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Debian Etch]]></category>
		<category><![CDATA[Zabbix]]></category>
		<category><![CDATA[1.6]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=42</guid>
		<description><![CDATA[I set up a Zabbix Proxy today on a little VM. looks to work nicely. Intructions will be kept up to date on this page.]]></description>
			<content:encoded><![CDATA[<p>I set up a <a href="http://www.surlyjake.com/tag/zabbix/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Zabbix">Zabbix</a> <a href="http://www.surlyjake.com/tag/proxy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with proxy">Proxy</a> today on a little <a href="http://www.surlyjake.com/tag/vm/" class="st_tag internal_tag" rel="tag" title="Posts tagged with VM">VM</a>. looks to work nicely. Intructions will be kept up to date on <a title="this page" href="http://www.zabbix.com/wiki/howto/install/debian/zabbix_proxy_on_debian_sqlite" target="_self">this page</a>.</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2008/10/zabbix-16-proxy-with-debian/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2008/10/zabbix-16-proxy-with-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

