tag:www.rhnh.net,2008:/ubuntu Ubuntu - Xavier Shay's Blog 2008-05-03T11:43:53Z Enki Xavier Shay notreal@rhnh.net tag:www.rhnh.net,2008:Post/204 2007-11-02T23:52:00Z 2007-11-02T23:59:35Z Gutsy upgrade <p>Just upgraded Ubuntu from feisty (7.04) to gusty (7.10). Was a bit touch and go for a moment &#8230; got a filesystem check failure on reboot. Miamoto_musashi, my knight in shining armour from #roro, saved the day. <code>ls -l /dev/disk/by-id/</code> revealed that my HDs had been remapped from <code>/dev/hd</code> to <code>/dev/sd</code>. The gutsy upgrade had modified all of the standard partitions to use UUIDs, but had failed to update a custom mount I had (<code>/data -&gt; /dev/hdc1</code>). Changed that over in <code>/etc/fstab</code>, reboot, hooray we have a winner.</p> tag:www.rhnh.net,2008:Post/127 2007-07-23T07:24:00Z 2007-08-15T07:25:29Z Convert M4A to WAV in Ubuntu <table class="CodeRay"><tr> <td class="line_numbers" title="click to toggle" onclick="with (this.firstChild.style) { display = (display == '') ? 'none' : '' }"><pre>1<tt> </tt></pre></td> <td class="code"><pre ondblclick="with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }">mplayer -ao pcm:file=targetfile.wav sourcefile.m4a<tt> </tt></pre></td> </tr></table> tag:www.rhnh.net,2008:Post/205 2007-01-08T00:58:00Z 2007-11-03T00:58:49Z No Audio in Ubuntu <p>Just a quick one &#8211; for some reason my sound stopped working in Ubuntu. To fix, right click volume icon (once you&#8217;ve re added it to the panel if it&#8217;s not usually there), select &#8220;Open Volume Control&#8221; and ensure that <span class="caps">PCM</span> is not muted.</p> <p>Also, to allow sounds from multiple sources to play simultaneously, go to System -&gt; Preferences -&gt; Sound and select <span class="caps">ESD</span> for your output device and ensure &#8220;Enable Software Sound Mixing (ESD)&#8221; is selected. Not sure why this wasn&#8217;t working as a default for me.</p> tag:www.rhnh.net,2008:Post/208 2006-10-07T02:05:00Z 2007-11-03T01:08:21Z Passwordless Login <p>I&#8217;ve been typing in <span class="caps">SSH</span> passwords for ever now. For some reason I just assumed it was a pain to setup passwordless login. Wrong! It took me about 10 minutes. Ubuntu already has all the tools you need.</p><table class="CodeRay"><tr> <td class="line_numbers" title="click to toggle" onclick="with (this.firstChild.style) { display = (display == '') ? 'none' : '' }"><pre>1<tt> </tt>2<tt> </tt>3<tt> </tt></pre></td> <td class="code"><pre ondblclick="with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }">ssh-keygen -t rsa -f ~/.ssh/id_rsa -C &quot;xavier@home&quot;<tt> </tt>ssh-add ~/.ssh/id_rsa<tt> </tt>cat ~/.ssh/id_rsa.pub | ssh xavier@remote_host 'cat - &gt;&gt; ~/.ssh/authorized_keys'<tt> </tt></pre></td> </tr></table> <p>Repeats steps 3 and 4 for each remote host.</p> <p>It just works. And you know how much I like that.</p> <p><a href="http://mah.everybody.org/docs/ssh">Reference</a></p> tag:www.rhnh.net,2008:Post/761 2006-05-17T15:07:00Z 2008-05-03T11:13:16Z RAMDISK: Ran out of compressed data <p>Getting the above error on boot is fairly scary. Thankfully, it&#8217;s not hard to fix. It probably means you have filled up your <code>/boot</code> partition. In my case, I had 4 kernels/configs stored on there and it was right on 100%. Simply clean out the old ones &#8211; I keep the latest (obviously) and the one before, assuming it works. Then if you&#8217;re on ubuntu, issue:</p><table class="CodeRay"><tr> <td class="line_numbers" title="click to toggle" onclick="with (this.firstChild.style) { display = (display == '') ? 'none' : '' }"><pre>1<tt> </tt></pre></td> <td class="code"><pre ondblclick="with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }">dpkg-reconfigure linux-image-`uname -r`<tt> </tt></pre></td> </tr></table> <p>To regenerate your initrd file, because if <code>/boot</code> was full it was probably corrupt.</p> tag:www.rhnh.net,2008:Post/764 2006-05-10T13:17:00Z 2008-05-03T11:21:34Z Do stupid things... <p>... stupid things happen.</p> <p>Like running ubuntu dapper as your primary, despite an explicit, stickied recommendation against the practice on the forums. I just wanted to try out compiz&#8230;</p> <p>So as of 10 o&#8217;clock this morning I can&#8217;t boot properly. It was working at 7:30 &#8211; should never have restarted. I can get in to safe mode (no <span class="caps">GUI</span>), but the work I need (Ent .NET) is on my virtual PC. So I need to revert to breezy, reconfigure nvidia drivers, reconfigure vmware, and hope to god nothing ridiculous happens. .NET assignment checkpoint due tomorrow. At the worst I&#8217;ve only lost 2 hours of work, hopefully will take a lot less time to recreate. Except I&#8217;ll have to do it in the lab. I hate working on any computer that isn&#8217;t mine. It&#8217;s just not <i>right</i>.</p> <p><span class="caps">EDIT</span>: We&#8217;re back in action now. dist-upgrade to the latest kernel version, had to manually grab the matching linux-restricted-modules since apt-get wasn&#8217;t finding it, re-install nvidia-glx, vmware-config.pl. <span class="caps">YAY COMPUTER WORKS</span>. In the process I also disabled my network shares in fstab, not sure if this had anything to do with it, but when trying to debug I found I couldn&#8217;t ls one of them. I never thought I&#8217;d hang ls, but it&#8217;s been done. I suspect if I&#8217;d left my comp for 5 minutes initially it would have eventually come up. You live, you learn. Although after all that I&#8217;m still running Dapper. In another stupid move I put my OS on the same partition as my home dir, so I need to find space on the server to back everything up for a reinstall. Including an 8Gb VM. I am such an idiot.</p> <p>We&#8217;ve now added <span class="caps">WSE</span> to our .NET project and it&#8217;s starting to look rather fancy.</p> tag:www.rhnh.net,2008:Post/771 2006-04-07T01:26:00Z 2008-05-03T11:43:53Z LDAP Authentication <p>Spent the better part of the evening setting up <span class="caps">LDAP</span> authentication for my boxen. The portage issue I mentioned prior was because I hadn&#8217;t updated portage for like 8 months &#8230; my bad. Slapd installed without a hitch on my gentoo server, and I was even able to set it up with an <span class="caps">SSL</span> certificate. The problems came getting pam_ldap setup on my ubuntu client. I&#8217;m not really sure what I did, but part of my problem was installing all the packages a few days ago, and then changing my mind on the configuration today but not reinstalling the packages. As such, I learnt a handy new command, to reconfigure without reinstall:</p><table class="CodeRay"><tr> <td class="line_numbers" title="click to toggle" onclick="with (this.firstChild.style) { display = (display == '') ? 'none' : '' }"><pre>1<tt> </tt>2<tt> </tt></pre></td> <td class="code"><pre ondblclick="with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }">dpkg-reconfigure libpam-ldap<tt> </tt>dpkg-reconfigure libnss-ldap<tt> </tt></pre></td> </tr></table> <p>I&#8217;d also warn against using the libnss-ldap sample nsswitch.conf without a contigency plan &#8211; I wasn&#8217;t able to execute commands (ls, sudo) after using it, and my machine wouldn&#8217;t reboot properly, even in recovery mode. Moral of the story &#8211; Always have a LiveCD handy!</p> <p>I&#8217;m at the point now where everything seems to work &#8230; except passwd. When changing my password I get &#8220;passwd: Authentication information cannot be recovered&#8221;. Posted something on the forums, hopefully someone helps me out.</p>