<?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>Deadlypenguin &#187; satellite</title>
	<atom:link href="http://blog.deadlypenguin.com/blog/category/linux/satellite-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.deadlypenguin.com/blog</link>
	<description>My notes and rants about tech things</description>
	<lastBuildDate>Thu, 20 May 2010 17:46:58 +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>DVD player with xsessions</title>
		<link>http://blog.deadlypenguin.com/blog/2009/06/12/dvd-player-with-xsessions/</link>
		<comments>http://blog.deadlypenguin.com/blog/2009/06/12/dvd-player-with-xsessions/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 18:55:15 +0000</pubDate>
		<dc:creator>pcon</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[satellite]]></category>

		<guid isPermaLink="false">http://blog.deadlypenguin.com/blog/?p=87</guid>
		<description><![CDATA[I&#8217;ve come across the need to simply the dvd playing process.  I&#8217;m having to set up a laptop to play a dvd and use a remote presenter control.  Now in the past I&#8217;ve just been in charge of this setup, and haven&#8217;t had to worry about explaining how to start it up for others.  This [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve come across the need to simply the dvd playing process.  I&#8217;m having to set up a laptop to play a dvd and use a remote presenter control.  Now in the past I&#8217;ve just been in charge of this setup, and haven&#8217;t had to worry about explaining how to start it up for others.  This time, I need to make it as user friendly as possible.  So, I&#8217;ve decided to do this with a couple of bash scripts and a couple of xsessions.<br />
<strong>Goals</strong></p>
<ul>
<li>Generic user with a generic password to hand to the person in charge</li>
<li>Ability to play dvd stored locally.  (Called presentation_dvd)</li>
<li>Ability to play any dvd inserted.</li>
<li>Require no user input except to choose <em>presentation_dvd</em> or <em>dvd</em></li>
</ul>
<p><strong>Preperation</strong></p>
<p>To get ready, we need to do a couple of things</p>
<ul>
<li>Create a presenter user</li>
<li>Install xine and xine-lib-extras-freeworld</li>
<li>Copy our presentation_dvd to an iso<br />
<blockquote><p>dd if=/dev/dvd of=/home/presenter/presentation_dvd.iso</p></blockquote>
</li>
</ul>
<p><strong>Xesssions</strong></p>
<p>Xsessions are what defines your window manager.  It&#8217;s what tells X11 what to run when you say Session-&gt;Gnome or Session-&gt;fluxbox.  These files are stored in <em>/usr/share/xsessions</em>.</p>
<blockquote><p>[Desktop Entry]<br />
Encoding=UTF-8<br />
Name=Presentation_DVD<br />
Comment=Start the presentation DVD<br />
Exec=/usr/local/bin/presentation_dvd<br />
Terminal=False</p>
<p>[Window Manager]<br />
SessionManaged=true</p></blockquote>
<p>This is our file in <em>/usr/share/xesssions/presentation_dvd.desktop</em> We then create one in <em>/usr/share/xesssions/dvd.desktop</em> and replace presentation_dvd with dvd.</p>
<p><strong>The Scripts</strong></p>
<p>Our /usr/local/bin/presentation_dvd looks like this:</p>
<blockquote><div class="codesnip-container" >#!bin/bash<br />
amixer set Master playback 100%<br />
xine -f -g &#8211;no-splash dvd:/home/presenter/presentation_dvd.iso</div>
</blockquote>
<p>This will turn the volume up to 100% and then start xine on the iso.  To exit, just right click and say exit.  This will take you back to the login screen.</p>
<p>Now to handle any dvd with the <em>/usr/local/bin/dvd</em></p>
<blockquote><div class="codesnip-container" >#!/bin/bash<br />
amixer set Master playback 100%<br />
xine -f -g<em> </em>&#8211;no-splash dvd://</div>
</blockquote>
<p>And the final touch, make them both executable</p>
<blockquote><p>chmod a+x /usr/local/bin/dvd /usr/local/bin/presentation_dvd</p></blockquote>
<p><em>NOTE:  The xine parameter is dash dash no dash splash.  The font I&#8217;m using doesn&#8217;t render two dashes well</em></p>
<p><em><br />
</em></p>
<p><strong>Usage</strong></p>
<p>From the login menu, choose your presenter user, and then choose the appropriate session at the bottom.  Then type in the password.  Like magic, everything should work.</p>
<p><strong>Potential problems</strong></p>
<p>If you don&#8217;t see your session in the list, you might have a typo in your xsession file</p>
<p>If one of the xine scripts don&#8217;t work, try logging into gnome and running the script from the command-line to see why.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.deadlypenguin.com/blog/2009/06/12/dvd-player-with-xsessions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom boot isos and imgs</title>
		<link>http://blog.deadlypenguin.com/blog/2008/06/06/custom-boot-isos-and-imgs/</link>
		<comments>http://blog.deadlypenguin.com/blog/2008/06/06/custom-boot-isos-and-imgs/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 07:18:00 +0000</pubDate>
		<dc:creator>pcon</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[satellite]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[kickstart]]></category>

		<guid isPermaLink="false">http://blog.deadlypenguin.com/?p=4</guid>
		<description><![CDATA[I&#8217;ve spent the past couple of days banging my head against the desk trying to get this to work out correctly.  And now it finally does.  Just as a note, I&#8217;ve tested that the general steps work.  I have not verified that i haven&#8217;t skipped a step.  So if anything&#8217;s missing let me know.
Disclaimer: This [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve spent the past couple of days banging my head against the desk trying to get this to work out correctly.  And now it finally does.  Just as a note, I&#8217;ve tested that the general steps work.  I have not verified that i haven&#8217;t skipped a step.  So if anything&#8217;s missing let me know.</p>
<p><em><strong>Disclaimer:</strong> This has only been tested with RHEL and nothing else, but there is no reason why it won&#8217;t work.  And if you don&#8217;t have a satellite you can use this with any old kickstart.  Assuming you have the tree setup correctly.  Please test your kickstart tree first.</em></p>
<p style="text-align: center;"><strong>Satellite prep</strong></p>
<p>Create your kickstart as you normally would. Then, make sure the kickstart is accessiable via the following style URL:</p>
<p>http://satellite.example.com/kickstart/ks/view_label/&lt;kickstart_label&gt;</p>
<p>Replace <em>&lt;kickstart_label&gt;</em> with the name of label set on the satellite.  Remember this URL, you&#8217;ll need it later</p>
<p style="text-align: center;"><strong>view_label VS label<br />
</strong></p>
<p>In the kickstart URL, you can use either view_label or label.  <em>view_label</em> will not register the box if there is not an activation key set inside the kickstart.  <em>label</em> generates a one time use activation key and registers the box to the satellite</p>
<p><em>Why use one over the other?</em></p>
<p>view_label is good if you are using an activation key, or if you have to install a box a bunch of times, and don&#8217;t want to have a bunch of extra profiles lingering around.label is good if you don&#8217;t want to have to set up an activation key, and a machine is only going to be kickstarted once.  If you are going to be using the disk image in a PXE like fasion, view_label is your best option.</p>
<p style="text-align: center;"><strong>Rolling the disk image (For usb-key)</strong></p>
<p>Get the first disk of what ever you are trying to install from the kickstart.  For this document, I will be using RHEL 5 U2 x86_64</p>
<p>NOTE:  The arch and update must match or it will fail.</p>
<ul>
<li>Copy the images/diskboot.img file to /root/rhel5u2-64bit.img</li>
<li> Mount the /root/rhel5u2-64bit.img file on the loopback (/mnt/)</li>
<li> Edit the /mnt/syslinux.cfg file, and add/edit the following:</li>
</ul>
<blockquote><p>default custom<br />
prompt 0<br />
timeout 0<br />
display boot.msg<br />
label custom<br />
kernel vmlinuz<br />
append initrd=initrd.img ks=http://satellite.example.com/kickstart/ks/view_label/&lt;kickstart_label&gt; ksdevice=link noipv6</p></blockquote>
<ul>
<li>Edit the /mnt/boot.msg to say what you want.  I recommend removing the lines below &#8217;splash.lss&#8217; and replace with something like:</li>
</ul>
<blockquote><p>Your install of Red Hat Enterprise Linux Update 2 (x86_64) will start shortly.</p></blockquote>
<ul>
<li>Unmount the diskboot.img file</li>
<li>Then burn to a cd, or copy to a jumpdrive with the following command:</li>
</ul>
<blockquote><p>dd if=/root/rhel5u2-64bit.img of=/dev/sdc</p></blockquote>
<p><em>NOTE:  Replace /dev/sdc with the device name of your jumpdrive</em></p>
<p style="text-align: center;"><strong>Rolling the disk image (For cdrom)</strong></p>
<p>Get the first disk of what ever you are trying to install from the kickstart.  For this document, I<br />
will be using RHEL 5 U2 x86_64</p>
<p>NOTE:  The arch and update must match or it will fail.</p>
<ul>
<li>Copy the images/boot.iso file to /root/rhel5u2-64bit-boot.iso</li>
<li>Mount the /root/rhel5u2-64bit-boot.iso file on the loopback (/mnt/)</li>
<li>Make a directory in /tmp/ (/tmp/rhel5u2-64bit/)</li>
<li>Copy /mnt/* to that directory</li>
<li>Unmount the rhel5u2-64bit-boot.iso file</li>
<li>Remove the rhel5u2-64bit-boot.iso file to reduce confusion</li>
<li>Make the /tmp/rhel5u2-64bit/isolinux/isolinux.cfg writable by root</li>
<li>Edit the /tmp/rhel5u2-64bit/isolinux/isolinux.cfg file, and add/edit the following:</li>
</ul>
<blockquote><p>default custom<br />
prompt 0<br />
timeout 0<br />
display boot.msg<br />
label custom<br />
kernel vmlinuz</p>
<p>append initrd=initrd.img ks=http://satellite.example.com/kickstart/ks/view_label/&lt;kickstart_label&gt; ksdevice=link noipv6</p></blockquote>
<ul>
<li>Edit the /tmp/rhel5u2-64bit/isolinux/boot.msg to say what you want.  I recommend removing the lines below &#8217;splash.lss&#8217; and replace with something like:</li>
</ul>
<blockquote><p>Your install of Red Hat Enterprise Linux Update 2 (x86_64) will start shortly.</p></blockquote>
<ul>
<li>Then make a bootable iso by running:</li>
</ul>
<blockquote><p>cd /tmp/<br />
mkisofs -r -T -J \<br />
-V &#8220;RHEL 5u2 x86_64 kickstart iso&#8221; \<br />
-b isolinux/isolinux.bin -c isolinux/boot.cat \<br />
-no-emul-boot -boot-load-size 4 -boot-info-table \<br />
-v -o &#8220;/root/rhel5u2-64bit.iso&#8221; /tmp/rhel5u2-64bit/</p></blockquote>
<ul>
<li>The burn the cd as a cd image</li>
</ul>
<p style="text-align: center;"><strong>Boot</strong></p>
<p>The insert the media into the machine and boot off of it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.deadlypenguin.com/blog/2008/06/06/custom-boot-isos-and-imgs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
