<?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>Stuporglue.org &#187; ubuntu</title>
	<atom:link href="http://stuporglue.org/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://stuporglue.org</link>
	<description>Programming, Rambling and More!</description>
	<lastBuildDate>Tue, 24 Jan 2012 04:18:54 +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>Have Pidgin Beep at You Through the PC Speaker</title>
		<link>http://stuporglue.org/have-pidgin-beep-at-you-through-the-pc-speaker/</link>
		<comments>http://stuporglue.org/have-pidgin-beep-at-you-through-the-pc-speaker/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 13:00:49 +0000</pubDate>
		<dc:creator>stuporglue</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Something Interesting]]></category>
		<category><![CDATA[pidgin]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://stuporglue.org/?p=467</guid>
		<description><![CDATA[This post will show you how to make Pidgin beep at you through your PC speaker when an event occurs. The PC speaker is NOT the speaker which plays music for you. It&#8217;s the speaker that makes a beep when &#8230; <a href="http://stuporglue.org/have-pidgin-beep-at-you-through-the-pc-speaker/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This post will show you how to make Pidgin beep at you through your PC speaker when an event occurs. The PC speaker is NOT the speaker which plays music for you. It&#8217;s the speaker that makes a beep when your computer turns on or when you do something wrong in the terminal.</p>
<p>There are a couple of different reasons why you might want to have Pidgin beep at you through the PC speaker instead of through your normal audio output device. Both of these scenarios have been applicable to me over the years.</p>
<p><strong>Scenario 1 </strong>: You want computer volume down, but want an audible notification of new messages</p>
<p>I have left my headphones hooked up, and walked away only to find out later that a friend had sent me messages wondering where I was. At other times I have turned the computer volume down while listening to music late at night only to be unable to hear Pidgin in the din of day.</p>
<p><strong>Scenario 2</strong>: You don&#8217;t have speakers hooked up to your computer, but want to hear when a message comes in</p>
<p>This is my current setup, and has been for quite a while. I have a laptop for taking work with me and for watching videos on, but when I&#8217;m at my desktop it&#8217;s because there&#8217;s something so important to do on the computer that I can&#8217;t do it while lounging on the couch. Usually that means I won&#8217;t have a video or even music going. Basically it&#8217;s a work station, and if I need sound I can grab my laptop.</p>
<p>When doing development though, I don&#8217;t want to miss a co-worker&#8217;s incoming message. And I definitely don&#8217;t want to miss a message from my wife!</p>
<p>There is a built in option in Pidgin to use a Console Beep, but if you want more than just a simple beep, you&#8217;ll need to follow these instructions. The following instructions apply to Ubuntu Linux 9.10 and may or may not apply to other versions of Ubuntu and/or Linux.</p>
<h2>Step 1 : Install the Beep Program</h2>
<p>Beep lets you easily play different length and frequency beeps. Go ahead and install it with</p>
<p>$ sudo aptitude install beep</p>
<h2>Step 2: Check if You Have Beep Power</h2>
<p>Run the command &#8216;beep&#8217;. If you get a beep,  you&#8217;re in good shape. If not&#8230;</p>
<p>1) Verify that the pcspkr kernel module is enabled</p>
<p>$ lsmod | grep pcspkr</p>
<p>2) If it isn&#8217;t, try enabling with modprobe for testing</p>
<p>$ sudo modprobe pcspkr</p>
<p>3) If that works, add pcspkr to /etc/modules</p>
<h2>Step 3 : Find a Nice Beep Command</h2>
<p>The command I use for my beeps is :</p>
<p>$ beep -l 90 -f  1000 -n -l 200 -f 2000 -n -l 100 -f 1000 -n -l 75 -f 500</p>
<p>-l &#8212; The length (in milliseconds)</p>
<p>-f &#8212; The frequency</p>
<p>-n &#8212; Start a new beep</p>
<p>So my Pidgin alert sound is 4 beeps which go from 1000Mhz to 2000Mhz then down to 500Mhz. It&#8217;s different enough that I know it&#8217;s an incoming chat message and not some other computer beeping noise.</p>
<h2>Step 4: Add Your Command To Pidgin</h2>
<p>In Pidgin, open the Preferences page from the Tools menu.</p>
<p>Under the Sounds tab, select Command as your method. Enter your beep command into the command text box. Close the preference pane.</p>
<p style="text-align: center;"><a href="http://stuporglue.org/wp-content/uploads/2010/04/pidgin_pc_speaker_beep.png"><img title="Configure Pidgin to beep through the PC Speaker instead of through normal audio out" src="http://stuporglue.org/wp-content/uploads/2010/04/pidgin_pc_speaker_beep-495x570.png" alt="Configure Pidgin to beep through the PC Speaker instead of through normal audio out" width="495" height="570" /></a></p>
<p>You&#8217;re all set, Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://stuporglue.org/have-pidgin-beep-at-you-through-the-pc-speaker/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>EEEPC Touchscreen with Ubuntu Mobile</title>
		<link>http://stuporglue.org/eeepc-touchscreen-ubuntu-mobile/</link>
		<comments>http://stuporglue.org/eeepc-touchscreen-ubuntu-mobile/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 15:41:51 +0000</pubDate>
		<dc:creator>stuporglue</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[EEEPC]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://stuporglue.org/?p=46</guid>
		<description><![CDATA[Once upon a time An EeePC 701 was a brand new toy and I had big plans for a touchscreen  hack with Ubuntu Mobile Edition. I ended up frying the touchscreen due to soldering the wrong spot, though I ran &#8230; <a href="http://stuporglue.org/eeepc-touchscreen-ubuntu-mobile/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Once upon a time An EeePC 701 was a brand new toy and I had big plans for a touchscreen  hack with Ubuntu Mobile Edition.</p>
<p>I ended up frying the touchscreen due to soldering the wrong spot, though I ran Ubuntu Mobile for some time. By now Ubuntu Mobile and the EeePC are several versions beyond what I had at the time. Now I have a non-touchscreen Thinkpad for my laptop and I use my EeePC as a relatively energy efficient home media server and Asterisk server.</p>
<p>Since I&#8217;m not even using my EeePC as a laptop anymore, I&#8217;m not even up to date on that any more. So when I moved to WordPress, I abandoned my EeePC pages. Keep Googleing, and I hope you find what you&#8217;re looking for!</p>
]]></content:encoded>
			<wfw:commentRss>http://stuporglue.org/eeepc-touchscreen-ubuntu-mobile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu on an External USB harddrive</title>
		<link>http://stuporglue.org/ubuntu-external/</link>
		<comments>http://stuporglue.org/ubuntu-external/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 13:58:56 +0000</pubDate>
		<dc:creator>stuporglue</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[external hard drive]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://stuporglue.org/?p=25</guid>
		<description><![CDATA[Goal Ubuntu on an external USB HD, which can be plugged in to any USB bootable computer (x86) and run. This entails: GRUB on the HDs MBR Hardware auto-detection at boot time Our setup I worked on this with a &#8230; <a href="http://stuporglue.org/ubuntu-external/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h4>Goal</h4>
<p>Ubuntu on an external USB HD, which can be plugged in to any USB bootable computer (x86) and run. This entails:</p>
<ul>
<li>GRUB on the HDs MBR</li>
<li>Hardware auto-detection at boot time</li>
</ul>
<h4>Our setup</h4>
<p>I worked on this with a friend. We used:</p>
<ul>
<li>HP Compaq dc7600 computer</li>
<li>Western Digital 80 GB USB laptop hard drive (bus powered)</li>
<li>Ubuntu Edgy (6.10) Desktop install CD</li>
</ul>
<p><span style="color: #ff0000;">This page is OLD and probably contains errors, out of date information, security flaws or other problems. I am keeping it around because it might be helpful to someone. If you can believe it, back in the day (Ubuntu 6.10) installing Ubuntu on an external drive really was a good  bit of work. In my opinion, making the X server basically always work has been the greatest improvement in Linux Land since 2006.<br />
</span></p>
<h4>How to</h4>
<ol>
<li>Remove all internal HDs from the computer
<ul>
<li>GRUB by default installs to the first HD. We found this to be the simplest way to make it install to the correct location</li>
</ul>
</li>
<li>Boot from the Ubuntu install CD, with the USB drive connected</li>
<li>Run the Ubuntu installer
<ul>
<li>You may want to manually partition the drive so that you have a portion of the disk in FAT 32 format. If you do this, be sure to mark the linux partition as bootable! That will make it easy to access your files from the USB drive without booting into Linux</li>
<li>When you&#8217;re done with the installer <strong>CONTINUE USING THE LIVE CD</strong></li>
</ul>
</li>
<li>Modify GRUB&#8217;s menu.lst file on the new install
<ul>
<li>Use the Gnome Partition Editor (System-&gt;Administration menu -&gt; GNOME Partition Editor) to mount the newly created root partition</li>
<li>Locate the menu.lst file. It should be at boot/GRUB/menu.lst</li>
<li>Open a terminal and type &#8220;gksudo gedit &#8220;, then drag the menu.lst file to the terminal, then press ENTER. The file should open</li>
<li>Find the line in the menu.lst file that says &#8220;kopt=root=UUID=(Long HEX number here)&#8221;. Copy from &#8220;root=UUID=&#8221; through the end of the HEX number.</li>
<li>Replace all instances of root=/dev/sda1 (where sda1 is the partition you installed to) and replace them with the &#8220;root=HEX-NUMBER&#8221; line.</li>
<li>This is to make GRUB find the HD no matter what device it shows up as.</li>
<li>Save and close the file</li>
</ul>
</li>
<li>Modify the gdm init script to reconfigure the graphics card each time it starts
<ul>
<li>In the terminal, type &#8220;gksudo gedit &#8221; again, but this time drag the file etc/init.d/gdm from the new install</li>
<li>Find the line that says &#8220;start)&#8221;.</li>
<li>Insert a new line below the &#8220;start)&#8221; line that says &#8220;dpkg-reconfigure -fnoninteractive &#8211;no-reload -phigh xserver-xorg&#8221; (this auto reconfigures the xserver. I believe it&#8217;s the same command used in the Ubuntu Live CD)</li>
<p>Save and close the file</ul>
</li>
<li>Add an updated sources.list
<ul>
<li>For some packages that we need to install, we will need to access more than the default set of software Ubuntu provides. To do this, we will update our apt config file. <a href="../apt.php">Another page on this site</a> talks more about apt.</li>
<li>Download this new <a href="../downloads/sources.list">sources.list</a> file to your desktop.</li>
<li>In a terminal type &#8220;sudo cp ~/Desktop/sources.list &#8220;</li>
<li>Find the old sources.list file at etc/apt/sources.list on your new install, and drag it to the terminal</li>
<li>Press ENTER and the old file will be overwritten</li>
</ul>
</li>
<li>Shutdown, disconnect the HD, and you should be set!</li>
</ol>
<h4>Issues</h4>
<ul>
<li>GRUB wants to be on hd0 (the first HD the BIOS sees). In some BIOSes, simply selecting to boot from USB is enough to make this the case. On others, the boot order makes a difference. If you are selecting to boot from USB, but get GRUB errors, try changing the default boot order.</li>
<li>This would probably work in a very similar fashion on other distros. Ubuntu Edgy uses volume IDs in the fstab which helps this work. That may not be the case for other distros</li>
<li>Other? &#8212; We only had a handfull of computers to test this on so far</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://stuporglue.org/ubuntu-external/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a custom initrd.img</title>
		<link>http://stuporglue.org/creating-a-custom-initrd-img/</link>
		<comments>http://stuporglue.org/creating-a-custom-initrd-img/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 13:44:26 +0000</pubDate>
		<dc:creator>stuporglue</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[busybox]]></category>
		<category><![CDATA[drivers]]></category>
		<category><![CDATA[initrd]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://stuporglue.org/?p=11</guid>
		<description><![CDATA[If Ubuntu installed, tries to boot, but fails, you probably are missing some important driver. To have a driver available at boot time, you'll need to rebuild initrd.img. It's a gzipped cpio file now, and this is how to build it on Ubuntu. Any tutorial that you find using ramfs or cramfs doesn't apply to the Ubuntu initrd! <a href="http://stuporglue.org/creating-a-custom-initrd-img/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If Ubuntu installed, tries to boot, but fails, you probably are missing some important driver. To have a driver available at boot time, you&#8217;ll need to rebuild initrd.img. It&#8217;s a gzipped cpio file now, and this is how to build it on Ubuntu. Any tutorial that you find using ramfs or cramfs doesn&#8217;t apply to the Ubuntu initrd!</p>
<p><span style="color: #ff0000;">This page is OLD and probably contains errors, out of date information, security flaws or other problems. I am keeping it around because it might be helpful to someone.</span></p>
<p>This assumes your boot failed, and you landed in busbox. Busybox is a mini all-in-one shell. It&#8217;s good enough for our purposes.  1) From the busybox shell, check if the device you can&#8217;t access shows up in /dev. If it doesn&#8217;t, this tutorial is what you&#8217;re looking for. Figgure out what modules you need to load. Alternate between modprobing and starting udev again until the devices show up.</p>
<p>For OldWorld Macs, try these modules: mesh, mace, sd_mod, mac53c94.</p>
<p># modprobe mesh<br />
# modprobe sd_mod<br />
# udevstart<br />
# ls /dev</p>
<p>2) mount the root partition and chroot to it</p>
<p>mkdir /mount<br />
mount -t ext3 /dev/YourRootPartition /mount<br />
mount -o bind /dev /mount/dev<br />
chroot /mount /bin/bash<br />
cd</p>
<p>3) Edit the text file /etc/mkinitrd/modules and enter the names of the modules you had to probe to get the devices to show up.</p>
<p>4) Run &#8220;dpkg-reconfigure linux-image-`uname -r`</p>
<p>If you don&#8217;t have an OldWorld Mac, exit the chroot, exit busybox and reboot.</p>
<p>Good luck!</p>
<p>The rest is OldWorld Mac specific!</p>
<p>5) Mount the MacOS partition.<br />
modprobe hfs<br />
mkdir /mnt/hfs<br />
mount -t hfs /dev/MacOSPartition /mnt/hfs</p>
<p>6) Copy /boot/initrd.img-kernel-name to /mnt/hfs and put it in the Linux Kernels folder.</p>
<p>7) Unmount the hfs partition<br />
umount /mnt/hfs</p>
<p>8) Reboot into MacOS and try with the new initrd.</p>
]]></content:encoded>
			<wfw:commentRss>http://stuporglue.org/creating-a-custom-initrd-img/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OldWorld Macintosh Computers</title>
		<link>http://stuporglue.org/oldworld-macintosh-computers/</link>
		<comments>http://stuporglue.org/oldworld-macintosh-computers/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 06:00:12 +0000</pubDate>
		<dc:creator>stuporglue</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[bootx]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[oldworld]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://stuporglue.org/?p=6</guid>
		<description><![CDATA[OldWorld Macs can only (easily) boot into Mac OS. We'll create a 50 Meg Mac OS partition with Mac OS7 installed on it for this stage. The computer boots to Mac OS. From Mac OS, you run BootX which boots Linux from within Mac OS. Mac OS can't see the Linux partitions, so you must place a copy of the Kernel and initrd (initial RAM disk) on the Mac partition. <a href="http://stuporglue.org/oldworld-macintosh-computers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3>Install procedure for OldWorld Macs</h3>
<p><span style="color: #ff0000;">This page is OLD and probably contains errors, out of date information, security flaws or other problems. I am keeping it around because it might be helpful to someone. </span></p>
<p>I refurbished and gave away old computers to people for a while as a service project.This post is from when I was involved in that.</p>
<p>We give these computers away, and want to provide people with comptuers with legal software on them. Since we want to stay legal, we can&#8217;t just use the one OS9 CD we have, on every computer. We will use Mac OS7 as the first stage boot OS since it is available for free from Apple&#8217;s site. You may be able to skip or simplify some steps if you don&#8217;t need to worry about having enough legal copies of systems.</p>
<p>Boot process summary:<br />
OldWorld Macs can only (easily) boot into Mac OS. We&#8217;ll create a 50 Meg Mac OS partition with Mac OS7 installed on it for this stage. The computer boots to Mac OS. From Mac OS, you run BootX which boots Linux from within Mac OS. Mac OS can&#8217;t see the Linux partitions, so you must place a copy of the Kernel and initrd (initial RAM disk) on the Mac partition.</p>
<p>You will need:<br />
Mac OS install CD/Disks &#8212; I will refer to this as OS9, but others may work.<br />
A copy of Stuffit Expander (comes on OS9 install CD)<br />
Mac OS 7 image parts from Apple&#8217;s site<br />
BootX<br />
Ubuntu install CD</p>
<p>I) Setting up the install process</p>
<p>1) Boot from the OS9 CD and partition the HD into at least three parts. Partition 1 should be 50 Mb, in the Mac format (Not the Extended Mac format!) . Partition 2 should be about 200 Mb, which will be used for OS9 during the OS7 install. The rest can be free space.</p>
<p>2) Install OS9 on one the 200 Mb partition. It should hold a full install of OS9. A full install is convenient because it includes Internet support and Stuffit Expander.</p>
<p>3) Boot to the installed OS9.</p>
<p>4) Download or otherwise aquire the OS7 disk image parts.</p>
<p>5) Decompress the 19 OS7 image parts with Stuffit Expander. Run the first one and a new disk will apear on the desktop with the OS7 installer in it. Install a minimal OS7 to the 50 Mb partition.</p>
<p>6) Download or copy BootX to the OS7 partition.</p>
<p>7) Copy initrd.gz and vmlinux from the PowerPC Ubuntu install CD. Both files can be found in install/powerpc on the CD. They should be placed in the &#8220;Linux Kernels&#8221; folder in the BootX folder on the OS7 partition.</p>
<p>8) Boot to OS7.</p>
<p>II) Installing Ubuntu</p>
<p>9) Insert the Ubuntu CD and run BootX. Choose vmlinux as your kernel. Choose &#8220;Options&#8221; and select initrd.gz as the initial ramdisk. Click &#8220;Linux&#8221; to boot to Linux.</p>
<p>10) When the install process has already installed the kernel, switch to a console. Mount the OS7 partition.<br />
You may have to modprobe the following modules first: mesh, sd_mod, hfs</p>
<p>11) Copy the kernel and initrd images to the OS7 partition. Note that vmlinux and initrd.img are symlinks, you need the real files!</p>
<p>12) Wait for the Ubuntu install process to finish. It should display a warning at the end that a bootloader could not be installed, and tell you what the root partition is. Write down this partition, you will need it.</p>
<p>III) First boot?</p>
<p>13) Boot into OS7 and run BootX. Use the newly copied kernel and initrd.  Put the root=/dev/sdWhatever which was told to you in step 12 into the kernel arguments line. Click Linux.</p>
<p>14) If you get dropped into a busybox shell, don&#8217;t dispair! You just need to create an initrd that will probe the modules you need. See creating a custom initrd.</p>
<h3><a name="devices"></a> Creating a custom initrd.img for oldworld machines</h3>
<p>The initrd.img tutorial is now a <a href="../initrd.php">separate page</a> as it applies to more than just old Macs.</p>
<h3><a name="partitions"></a> Starts to boot, but can&#8217;t mount swap home, etc.</h3>
<p>If you have two disks on an OldWorld Mac, the Ubuntu installer seems to get mixed up when creating the /etc/fstab file. Try editing it and check if /dev/sda should be /dev/sdb and vice versa.</p>
]]></content:encoded>
			<wfw:commentRss>http://stuporglue.org/oldworld-macintosh-computers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

