<?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>tech stuff &#187; linux</title>
	<atom:link href="http://codytaylor.org/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://codytaylor.org</link>
	<description>From Cody Taylor.</description>
	<lastBuildDate>Sun, 30 Oct 2011 04:15:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Django on Dreamhost: Virtual Python Install</title>
		<link>http://codytaylor.org/2010/07/django-on-dreamhost-virtual-python-install.html</link>
		<comments>http://codytaylor.org/2010/07/django-on-dreamhost-virtual-python-install.html#comments</comments>
		<pubDate>Fri, 02 Jul 2010 21:37:51 +0000</pubDate>
		<dc:creator>Cody Taylor</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[problems and solutions]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[reference]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[django dreamhost]]></category>
		<category><![CDATA[dreamhost]]></category>
		<category><![CDATA[dreamhost django python]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[python developer]]></category>
		<category><![CDATA[python host]]></category>
		<category><![CDATA[python hosting]]></category>
		<category><![CDATA[python programmer]]></category>
		<category><![CDATA[virtual python]]></category>
		<category><![CDATA[virtual python install]]></category>

		<guid isPermaLink="false">http://codytaylor.org/?p=14330</guid>
		<description><![CDATA[Setting up a virtual Python environment for Django on a Dreamhost Debian shared host.]]></description>
			<content:encoded><![CDATA[<p>After writing the backend for a new web app in python I went to start working on the Django portion. I was planning on hosting this application with a Dreamhost shared hosting plan which already has Python 2.5 installed. After trying unsuccessfully to install some new middleware with easy_install, I started looking for a solution that gives me more control over what I want to do with Python without having to purchase dreamhost <a href='http://www.webhostgear.com/vps-hosting.php' title='vps hosting'>vps hosting</a>. It seems that you can set up a virtual python install in your home directory and it was surprisingly easy. I&#8217;ve only had the need to use this virtual python install on Dreamhost, which is using Debian, but I can&#8217;t see any reason why it wouldn&#8217;t work on other environments. </p>
<p>Note that this is completely unnecessary if you have root access.</p>
<p>Assuming you already have a shell account and you are ssh&#8217;d in, execute these commands to install your virtual python environment:<br />
<pre><code>$ wget http://peak.telecommunity.com/dist/virtual-python.py 
$ python virtual-python.py</code></pre> </p>
<p>Those commands copy the Python binary to your /home/user/bin directory and sets up symbolic links to the system wide libraries. This means that the ~/bin/python executable will have access to the same libraries as the system Python but that any extra installed software will not affect the system wide Python install.  </p>
<p>Next you should add the ~/bin directory to your PATH by adding this block to your .bash_profile:<br />
<pre><code> if [ -d ~/bin ] ; then&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;PATH=~/bin:&quot;${PATH}&quot; 
fi 
</code></pre><br />
You&#8217;ll have to log out and back in for this to take effect.<br />
After you&#8217;re logged back in, run these commands to install easy_setup:<br />
<pre><code>$ wget http://peak.telecommunity.com/dist/ez_setup.py 
$ python ez_setup.py </code></pre> </p>
<p>Now you should be able to install whatever you want using easy_install. The first thing I did was install django-db-log using this command:<br />
<code>$ easy_install django-db-log</code></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcodytaylor.org%2F2010%2F07%2Fdjango-on-dreamhost-virtual-python-install.html&amp;linkname=Django%20on%20Dreamhost%3A%20Virtual%20Python%20Install"><img src="http://codytaylor.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://codytaylor.org/2010/07/django-on-dreamhost-virtual-python-install.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Reset Mysql Root Password On Linux</title>
		<link>http://codytaylor.org/2009/10/reset-mysql-root-password-on-linux.html</link>
		<comments>http://codytaylor.org/2009/10/reset-mysql-root-password-on-linux.html#comments</comments>
		<pubDate>Thu, 08 Oct 2009 01:19:03 +0000</pubDate>
		<dc:creator>Cody Taylor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[reference]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[reset mysql root password]]></category>
		<category><![CDATA[reset password]]></category>
		<category><![CDATA[reset root password]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://codytaylor.org/?p=14294</guid>
		<description><![CDATA[If you have root access to a linux server and you don't have the root mysql password, but need it..]]></description>
			<content:encoded><![CDATA[<p>If you have root access to a linux server and you don&#8217;t have the root mysql password, but need it, then you can easily reset the root mysql password in just a few commands. These commands probably differ depending on what linux distro you use. I was using Ubuntu 9.04 (Jaunty Jackalope) when I wrote this.</p>
<p>Firstly you will want to turn the mysql service off.<br />
<pre><code>
codytaylor@server:~$ sudo /etc/init.d/mysql stop
 * Stopping MySQL database server mysqld&nbsp;&nbsp; 
</code></pre><br />
Now we restart the mysql server with the &#8217;skip-grant-tables&#8217; option which basically allows anyone to do whatever they like. It&#8217;s usually preferable to include the &#8217;skip-networking&#8217; option so that only localhost (you) have access to the naked database.<br />
<pre><code>
 codytaylor@server:~$ sudo mysqld_safe --skip-grant-tables --skip-networking &amp;
</code></pre><br />
Now all that is left is actually changing the root password. Log into the mysql monitor and change the root password.<br />
<pre><code>
codytaylor@server:~$ mysql -u root mysql
mysql&gt; UPDATE user SET Password=PASSWORD(&#039;password&#039;) WHERE User=&#039;root&#039;;
mysql&gt; FLUSH PRIVILEGES;
</code></pre><br />
Those commands will reset the root mysql password to &#8216;password&#8217;. Now you&#8217;ll probably want to restart the mysql service and have it run normally.<br />
<pre><code>
codytaylor@server:~$ sudo /etc/init.d/mysql restart
</code></pre></p>
<p>If you are using windows and you want to reset the mysql root password then check the <a href='http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html' title='mysql documentation'>mysql documentation</a>.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcodytaylor.org%2F2009%2F10%2Freset-mysql-root-password-on-linux.html&amp;linkname=Reset%20Mysql%20Root%20Password%20On%20Linux"><img src="http://codytaylor.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://codytaylor.org/2009/10/reset-mysql-root-password-on-linux.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Vim Syntax Highlighting With .vimrc</title>
		<link>http://codytaylor.org/2009/09/vim-syntax-highlighting-with-vimrc.html</link>
		<comments>http://codytaylor.org/2009/09/vim-syntax-highlighting-with-vimrc.html#comments</comments>
		<pubDate>Thu, 01 Oct 2009 00:45:24 +0000</pubDate>
		<dc:creator>Cody Taylor</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[reference]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[syntax colors]]></category>
		<category><![CDATA[syntax highlighting]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[vimrc]]></category>

		<guid isPermaLink="false">http://codytaylor.org/?p=14289</guid>
		<description><![CDATA[im is my editor of choice but I hate coding without syntax highlighting and DreamHost doesn't have Vim Syntax highlighting on by default. It is possible to type]]></description>
			<content:encoded><![CDATA[<p>I recently had to move all my sites over to a new host due to Lunarpages basically kicking me off. I chose <a href='http://www.dreamhost.com/r.cgi?587709' title='DreamHost Web Hosting'>DreamHost</a> because they were having a promotion where I get a full year for $10. One of my coworkers uses them with no complaints and they give free shell access. </p>
<p>Vim is my editor of choice but I hate coding without syntax highlighting and DreamHost doesn&#8217;t have Vim Syntax highlighting on by default. It is possible to type &#8220;:syntax enable&#8221; when already in the editor to enable syntax highlighting on the current file that you&#8217;re editing but after closing it and opening another file you will be forced to do it again.</p>
<p>To enable syntax highlighting forever I had to edit the .vimrc file which lives in my home directory. It didn&#8217;t exist so I had to create one. After I created this file I added the lines :<br />
<pre><code>
syntax enable
set background=dark
set nocompatible
set autoindent
set smartindent
set tabstop=4
set shiftwidth=4
set showmatch
set ruler
set virtualedit=all
</code></pre><br />
Alternatively you could put &#8216;background=light&#8217; which will make the colors more readable if your console is black text on a white background. The rest of those lines are just personal preference and put there so I can copy and paste them elsewhere. More info and a great example can be found at <a href='http://www.vi-improved.org/vimrc.php' title='vim site'>this vim site</a>.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcodytaylor.org%2F2009%2F09%2Fvim-syntax-highlighting-with-vimrc.html&amp;linkname=Vim%20Syntax%20Highlighting%20With%20.vimrc"><img src="http://codytaylor.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://codytaylor.org/2009/09/vim-syntax-highlighting-with-vimrc.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linux Bang Commands</title>
		<link>http://codytaylor.org/2009/09/linux-bang-commands.html</link>
		<comments>http://codytaylor.org/2009/09/linux-bang-commands.html#comments</comments>
		<pubDate>Wed, 23 Sep 2009 02:45:20 +0000</pubDate>
		<dc:creator>Cody Taylor</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[reference]]></category>
		<category><![CDATA[!]]></category>
		<category><![CDATA[bang]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[efficiency]]></category>

		<guid isPermaLink="false">http://codytaylor.org/?p=14257</guid>
		<description><![CDATA[If you spend a lot of time on the linux command line you quickly find that it requires a lot of typing and retyping commands. I used to find myself using the exact same lengthy command..]]></description>
			<content:encoded><![CDATA[<p>If you spend a lot of time on the linux command line you quickly find that it requires a lot of typing and retyping commands. I used to find myself using the exact same lengthy command multiple times a day and to get there I would type &#8220;history | grep some_command&#8221; and then execute it from there. Since I knew enough to get the job done I hadn&#8217;t really tried to find more efficient ways of doing the same old thing. But when I found out about the Linux bang (!) commands I realized how wasteful what I was doing really was.</p>
<p>The exclamation mark, in this case, is referred to as a &#8216;bang&#8217;.</p>
<ul>
<li><strong><code>!!</code></strong> <br />This bang command, when entered into the bash shell will run the previous command. It basically does the same thing as hitting the up arrow to take you to the previous command and then hitting enter.<br />&nbsp;</li>
<li><strong><code>!ls</code></strong><br />This will run the last command that started with &#8216;ls&#8217;. If you ran &#8216;ls -al /etc/init.d&#8217; a few commands ago and then you type &#8216;!ls&#8217; the full command will be run again, assuming that you haven&#8217;t used that command since then.<br />&nbsp;</li>
<li><strong><code>!ls:p</code></strong><br />This will display the command instead of running it.<br />&nbsp;</li>
<li><strong><code>!$</code></strong><br />This one will run the last word of the previous command. This one is mainly useful for substitutions.<br />&nbsp;</li>
<li><strong><code>!$:p</code></strong><br />Instead of running the last word of the previous command this will print it out.<br />&nbsp;</li>
<li><strong><code>!*</code></strong><br />This bang command will run the previous command without the first word. This one is also only really useful for substitutions as we see in the examples that follow. <br />&nbsp;</li>
<li><strong><code>!*:p</code></strong><br />This will print the previous command without the first word.<br />&nbsp;</li>
</ul>
<p>Here are a few examples of how to use these bash bang commands in everyday command line usage :</p>
<p>For the purposes of these examples, every example will assume these are the last three commands you ran:<br />
<pre><code>
&nbsp;&nbsp;&nbsp;&nbsp;% which firefox
&nbsp;&nbsp;&nbsp;&nbsp;% make
&nbsp;&nbsp;&nbsp;&nbsp;% ./foo -f foo.conf
&nbsp;&nbsp;&nbsp;&nbsp;% vi foo.c bar.c

Getting stuff from the last command:

&nbsp;&nbsp;&nbsp;&nbsp;Full line:&nbsp;&nbsp;&nbsp;&nbsp; % !!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;becomes:&nbsp;&nbsp; % vi foo.c bar.c
&nbsp;&nbsp;&nbsp;&nbsp;Last arg :&nbsp;&nbsp;&nbsp;&nbsp; % svn ci !$&nbsp;&nbsp;&nbsp;&nbsp; becomes:&nbsp;&nbsp; % svn ci bar.c
&nbsp;&nbsp;&nbsp;&nbsp;All args :&nbsp;&nbsp;&nbsp;&nbsp; % svn ci !*&nbsp;&nbsp;&nbsp;&nbsp; becomes:&nbsp;&nbsp; % svn ci foo.c bar.c
&nbsp;&nbsp;&nbsp;&nbsp;First arg:&nbsp;&nbsp;&nbsp;&nbsp; % svn ci !!:1&nbsp;&nbsp; becomes:&nbsp;&nbsp; % svn ci foo.c

Accessing commandlines by pattern:

&nbsp;&nbsp;&nbsp;&nbsp;Full line:&nbsp;&nbsp;&nbsp;&nbsp; % !./f&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;becomes:&nbsp;&nbsp; % ./foo -f foo.conf
&nbsp;&nbsp;&nbsp;&nbsp;Full line:&nbsp;&nbsp;&nbsp;&nbsp; % vi `!whi`&nbsp;&nbsp;&nbsp;&nbsp; becomes:&nbsp;&nbsp; % vi `which firefox`
&nbsp;&nbsp;&nbsp;&nbsp;Last arg :&nbsp;&nbsp;&nbsp;&nbsp; % vi !./f:$&nbsp;&nbsp;&nbsp;&nbsp; becomes:&nbsp;&nbsp; % vi foo.conf
&nbsp;&nbsp;&nbsp;&nbsp;All args :&nbsp;&nbsp;&nbsp;&nbsp; % ./bar !./f:*&nbsp;&nbsp;becomes:&nbsp;&nbsp; % ./bar -f foo.conf
&nbsp;&nbsp;&nbsp;&nbsp;First arg:&nbsp;&nbsp;&nbsp;&nbsp; % svn ci !vi:1&nbsp;&nbsp;becomes:&nbsp;&nbsp; % svn ci foo.c
</code></pre><br />
I found those examples <a href='http://mail.linux.ie/pipermail/ilug/2006-May/087799.html' title='bang command usage examples'>here</a>.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcodytaylor.org%2F2009%2F09%2Flinux-bang-commands.html&amp;linkname=Linux%20Bang%20Commands"><img src="http://codytaylor.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://codytaylor.org/2009/09/linux-bang-commands.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Vim Syntax Highlighting In Ubuntu</title>
		<link>http://codytaylor.org/2009/09/vim-syntax-highlighting-in-ubuntu.html</link>
		<comments>http://codytaylor.org/2009/09/vim-syntax-highlighting-in-ubuntu.html#comments</comments>
		<pubDate>Mon, 21 Sep 2009 14:08:49 +0000</pubDate>
		<dc:creator>Cody Taylor</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[problems and solutions]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[reference]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[syntax highlighting]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[vimrc]]></category>

		<guid isPermaLink="false">http://codytaylor.org/?p=14254</guid>
		<description><![CDATA[Get Vim Syntax Highlighting In Ubuntu.]]></description>
			<content:encoded><![CDATA[<p>Spending a lot of time on the command line lately I noticed that Ubuntu does not come with Vim syntax highlighting by default. Apparently it installs a version of Vim called vim-tiny which doesn&#8217;t include any syntax highlighting.</p>
<p>There are two packages that you can install to get syntax highlighting to work in Vim: vim-full and vim-common. Because I didn&#8217;t have gnome installed vim-full was a very large download (like 50MB) and it errored out anyway. vim-common is definitely the way to go.<br />
<pre><code>
sudo apt-get install vim
</code></pre><br />
The above line will replace vim-tiny with vim-common and will allow for syntax highlighting. A lot of the time you will have to enable syntax highlighting by editing the vimrc config file either in /etc/vim or in yur home directory. You will need to uncomment the line &#8220;syntax on&#8221;.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcodytaylor.org%2F2009%2F09%2Fvim-syntax-highlighting-in-ubuntu.html&amp;linkname=Vim%20Syntax%20Highlighting%20In%20Ubuntu"><img src="http://codytaylor.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://codytaylor.org/2009/09/vim-syntax-highlighting-in-ubuntu.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash Shell Script Error. &#8220;bad interpreter: No such file or directory error&#8221;</title>
		<link>http://codytaylor.org/2009/09/bash-shell-script-error-bad-interpreter-no-such-file-or-directory-error.html</link>
		<comments>http://codytaylor.org/2009/09/bash-shell-script-error-bad-interpreter-no-such-file-or-directory-error.html#comments</comments>
		<pubDate>Sun, 20 Sep 2009 17:31:37 +0000</pubDate>
		<dc:creator>Cody Taylor</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[problems and solutions]]></category>
		<category><![CDATA[reference]]></category>
		<category><![CDATA[.ipa]]></category>
		<category><![CDATA[bad interpreter]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wikipedia]]></category>

		<guid isPermaLink="false">http://codytaylor.org/?p=14250</guid>
		<description><![CDATA[bad interpreter: No such file or directory error  /bin/sh^M: bad interpreter: No such file or directory error bash problem]]></description>
			<content:encoded><![CDATA[<p>Today I created a simple shell script and I was getting a few odd errors:<pre><code>
cody@taylor:/var/some_folder/server$ ./process_xml.sh
-bash: ./process_xml.sh: /bin/sh^M: bad interpreter: No such file or directory
</code></pre></p>
<p>I figured it was probably a permissions error or an issue with the <a href='http://en.wikipedia.org/wiki/Shebang_(Unix)' title='shebang'>shebang</a> (#!/bin/sh) line. I tried removing the shebang line, changing it to use dash or bash explicitly, chmoding to 777 and still no luck and another odd error.<pre><code>
cody@taylor:/var/some_folder/server$ sh process_xml.sh
: not found.sh: 4:
</code></pre></p>
<p>I then checked the log file that the commands were supposed to be writing to and it was filled with &#8216;^M&#8217; on every line break and the log name itself was followed by a &#8216;?&#8217;. Took a minute or two but I finally clued in that I wrote that script on a windows machine and then exported it to an ubuntu linux server via subversion. It was just a basic text format issue.</p>
<p>Under DOS (Windows/PC) the end of a line of text is signalled using the ASCII code sequence CarriageReturn,LineFeed. Alternately written as CR,LF or the bytes 0&#215;0D,0&#215;0A. On the Macintosh platform, only the CR character is used. Under UNIX, the opposite is true and only the LF character is used. </p>
<p>After a quick :<br />
<pre><code>
cody@taylor:/var/some_folder/server$ apt-get install tofrodos
cody@taylor:/var/some_folder/server$ dos2unix process_xml.sh
</code></pre></p>
<p>Everything worked fine.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcodytaylor.org%2F2009%2F09%2Fbash-shell-script-error-bad-interpreter-no-such-file-or-directory-error.html&amp;linkname=Bash%20Shell%20Script%20Error.%20%26%238220%3Bbad%20interpreter%3A%20No%20such%20file%20or%20directory%20error%26%238221%3B"><img src="http://codytaylor.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://codytaylor.org/2009/09/bash-shell-script-error-bad-interpreter-no-such-file-or-directory-error.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Re-Enable Grub For Linux After Windows Install</title>
		<link>http://codytaylor.org/2009/08/re-enable-grub-for-linux-after-windows-install.html</link>
		<comments>http://codytaylor.org/2009/08/re-enable-grub-for-linux-after-windows-install.html#comments</comments>
		<pubDate>Mon, 17 Aug 2009 04:30:24 +0000</pubDate>
		<dc:creator>Cody Taylor</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[reference]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[re-enable grub]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://codytaylor.org/?p=14228</guid>
		<description><![CDATA[Easy instructions on how to re-enable grub after windows install on a dual boot pc.]]></description>
			<content:encoded><![CDATA[<p>Following the installation of Windows 7 on my desktop machine that was previously running Ubuntu 9.04, I realized that one of my partitions was missing. It was formatted as ext3 so of course it wouldn&#8217;t show up in windows. When I went to boot back into linux the grub boot manager was gone. The machine just booted straight into windows 7. </p>
<p>To re-enable grub was a lot simpler than I thought it would be. Since the Ubuntu 8.04 install disc that I had lying around also works as a live disc I booted my desktop off that. Once Ubuntu started up I opened up a terminal and typed these commands:<br />
<pre><code>
sudo grub
root(hd0,7)
setup(hd0)
quit
</code></pre><br />
I then rebooted and grub was back to normal with both my Ubuntu operating system and windows 7 listed. Note that hd0,7 was the partition where I installed Ubuntu. If you installed linux before windows then you will probably want to use hd0,0. I installed windows 7 over a broken windows xp partition that I had installed before everything else.</p>
<p>If you installed ubuntu before you installed windows then you&#8217;re probably going to have to edit your &#8216;/boot/grub/menu.lst&#8217; file. The <a href='http://www.gnu.org/software/grub/manual/html_node/index.html' title='grub docs'>grub documentation</a> may be helpful.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcodytaylor.org%2F2009%2F08%2Fre-enable-grub-for-linux-after-windows-install.html&amp;linkname=Re-Enable%20Grub%20For%20Linux%20After%20Windows%20Install"><img src="http://codytaylor.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://codytaylor.org/2009/08/re-enable-grub-for-linux-after-windows-install.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Burning DVD ISO Images Fails In Ubuntu 9.04</title>
		<link>http://codytaylor.org/2009/08/burning-dvd-iso-images-fails-in-ubuntu-9-04.html</link>
		<comments>http://codytaylor.org/2009/08/burning-dvd-iso-images-fails-in-ubuntu-9-04.html#comments</comments>
		<pubDate>Sun, 16 Aug 2009 17:49:15 +0000</pubDate>
		<dc:creator>Cody Taylor</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[burning]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[Jaunty Jackalope]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://codytaylor.org/?p=14226</guid>
		<description><![CDATA[Ubuntu DVD ISO burning fails after upgrade to Ubuntu 9.04 64.]]></description>
			<content:encoded><![CDATA[<p>I upgraded to Ubuntu 9.04 Jaunty Jackalope 64 from Ubuntu 8.04 Hardy Heron 64 the other day with the hopes that some of my issues with the operating system and desktop experience would be resolved. While a lot of my problems seemed to be improved if not fixed, the Ubuntu 9.04 upgrade did introduce one big problem that is a deal breaker. I can no longer burn dvd images. I can still burn CD data discs and I didn&#8217;t try and CD ISO&#8217;s because I didn&#8217;t want to waste the discs. </p>
<p>K3b gives me this error :<br />
<pre><code>
:-[ WRITE@LBA=0h failed with SK=3h/ASC=0Ch/ACQ=80h]: Input/output error
:-( write failed: Input/output error
</code></pre><br />
And Brasero gave me this error :<br />
<pre><code>
BraseroWodim process finished with status 254
BraseroWodim called brasero_job_error
BraseroWodim finished with an error
BraseroWodim asked to stop because of an error
&nbsp;&nbsp;error&nbsp;&nbsp;&nbsp;&nbsp;= 0
&nbsp;&nbsp;message&nbsp;&nbsp;= &quot;no message&quot;
BraseroWodim stopping
BraseroWodim got killed
Session error : unknown (brasero_burn_record burn.c:2602)
</code></pre><br />
Apparently <a href='https://bugs.launchpad.net/ubuntu/+source/brasero/+bug/397412' title='bug report'>other people</a> are having the same issue. After a bit of searching I gave up on finding a fix or workaround for either K3b or Brasero. I even tried installing the <a href='http://www.nero.com/eng/downloads-linux3-trial.php' title='nero trial'>Nero Linux Trial for 64 bit</a> but I got some ambiguous write error. </p>
<p>I ended up taking my burner out of my ubuntu machine and putting it in an old windows box. The first dvd that I&#8217;m burning is a windows 7 install disc. After using ubuntu for about 6 months as my primary desktop operating system I think I&#8217;m done.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcodytaylor.org%2F2009%2F08%2Fburning-dvd-iso-images-fails-in-ubuntu-9-04.html&amp;linkname=Burning%20DVD%20ISO%20Images%20Fails%20In%20Ubuntu%209.04"><img src="http://codytaylor.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://codytaylor.org/2009/08/burning-dvd-iso-images-fails-in-ubuntu-9-04.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

