<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: how do I run a minimal Gnome session for intensive calc ?</title>
	<link>http://ask.metafilter.com/100686/how-do-I-run-a-minimal-Gnome-session-for-intensive-calc/</link>
	<description>Comments on Ask MetaFilter post how do I run a minimal Gnome session for intensive calc ?</description>
	<pubDate>Tue, 02 Sep 2008 06:45:19 -0800</pubDate>
	<lastBuildDate>Tue, 02 Sep 2008 06:45:19 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: how do I run a minimal Gnome session for intensive calc ?</title>
		<link>http://ask.metafilter.com/100686/how-do-I-run-a-minimal-Gnome-session-for-intensive-calc</link>	
		<description>[Linux/Ubuntu] I need to run some pretty intensive calculations. How can I load a very minimal Gnome session for that purpose ? &lt;br /&gt;&lt;br /&gt; The idea is to create a new user, whose session would load only the minimum necessary.&lt;br&gt;
My script runs in Python with various libraries, but it won&apos;t run without an X session because it uses Pylab. It is very CPU intensive and uses lots of RAM too because the dataset is huge.&lt;br&gt;
&lt;br&gt;
I know how to add a user to my Ubuntu installation. Once I&apos;ve done that, what do I do to disable loading of most of the usual services for this user&apos;s session, but not for the main user ?&lt;br&gt;
or should I try to use a lighter desktop environment for that ?&lt;br&gt;
&lt;br&gt;
I welcome any piece of advice on that ! thanks.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2008:site.100686</guid>
		<pubDate>Tue, 02 Sep 2008 06:19:18 -0800</pubDate>
		<dc:creator>nalf</dc:creator>
		
			<category>linux</category>
		
			<category>ubuntu</category>
		
			<category>python</category>
		
	</item> <item>
		<title>By: tomwheeler</title>
		<link>http://ask.metafilter.com/100686/how-do-I-run-a-minimal-Gnome-session-for-intensive-calc#1463194</link>	
		<description>GNOME is an entire desktop environment.  You can slim it down a little, but for better performance, I would recommend either a smaller desktop environment like Xfce or just a minimal window manager without a desktop like FVWM.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.100686-1463194</guid>
		<pubDate>Tue, 02 Sep 2008 06:45:19 -0800</pubDate>
		<dc:creator>tomwheeler</dc:creator>
	</item><item>
		<title>By: tallus</title>
		<link>http://ask.metafilter.com/100686/how-do-I-run-a-minimal-Gnome-session-for-intensive-calc#1463196</link>	
		<description>It&apos;s going to be difficult eliminating all the things Gnome drags in, going with a lightweight desktop manager is  going to be easier, as well as producing better results. I use &lt;a href=&quot;https://help.ubuntu.com/community/Fluxbox&quot;&gt;Fluxbox&lt;/a&gt; for all my desktop installs (for aesthetic and efficiency/productivity reasons as  well as its relatively light system load). Its easy enough to set that up as a default for just one user.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.100686-1463196</guid>
		<pubDate>Tue, 02 Sep 2008 06:47:29 -0800</pubDate>
		<dc:creator>tallus</dc:creator>
	</item><item>
		<title>By: moift</title>
		<link>http://ask.metafilter.com/100686/how-do-I-run-a-minimal-Gnome-session-for-intensive-calc#1463199</link>	
		<description>You can launch an X session without loading a window manager at all. (Or maybe it is technically a window manager, but you just get the really crappy lightweight default X grey thing).&lt;br&gt;
&lt;br&gt;
Just move your ~/.xsession and make a new file of the same name with the command(s) you need to run in it. All commands except the last should end with &amp;amp;, and when the last command exits the X session goes away too.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.100686-1463199</guid>
		<pubDate>Tue, 02 Sep 2008 06:54:58 -0800</pubDate>
		<dc:creator>moift</dc:creator>
	</item><item>
		<title>By: jrishel</title>
		<link>http://ask.metafilter.com/100686/how-do-I-run-a-minimal-Gnome-session-for-intensive-calc#1463207</link>	
		<description>you can just run a virtual frame buffer.  X does it&apos;s display in a memory buffer without actual screen output.  this combines  moift&apos;s suggestion with the added benefit of no hardware latency/graphics actually required.&lt;br&gt;
&lt;br&gt;
http://en.wikipedia.org/wiki/Xvfb&lt;br&gt;
&lt;br&gt;
http://packages.ubuntu.com/dapper/x11/xvfb&lt;br&gt;
&lt;br&gt;
so you&apos;d want to do something like this.  boot into runlevel 3, which prevents X from launching (runlevel 5)&lt;br&gt;
&lt;code&gt;&lt;br&gt;
Xvfb :1 &amp;amp;             # launches your virtual X frame buffer&lt;br&gt;
./yourscript.sh  &amp;amp;   # and whatever arguments you need&lt;br&gt;
vi ./youroutput.txt  # read what the script ouputs&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
that should be good as you can get.  you could also renice your script so it grabs all the system resources it can get.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.100686-1463207</guid>
		<pubDate>Tue, 02 Sep 2008 07:04:46 -0800</pubDate>
		<dc:creator>jrishel</dc:creator>
	</item><item>
		<title>By: jaymzjulian</title>
		<link>http://ask.metafilter.com/100686/how-do-I-run-a-minimal-Gnome-session-for-intensive-calc#1463228</link>	
		<description>In stock ubuntu, you can load no window manager at all by selecting failsafe.  Don&apos;t do this, instead consider installing (apt-get install, aptitude install, synaptic, whatever) a very light window manager such as xfwm4 or even fvwm2 (still my WM of choice.  w0rd).  You can then select that as your session on the login screen.&lt;br&gt;
&lt;br&gt;
Also, if you need to see the output, so Xvfb above is not enough (from your desciprtion tho, it should be), try vnc4server (again, your favourite apt-get method).&lt;br&gt;
&lt;br&gt;
&lt;small&gt;(You&apos;ll need universe enabled for this.  you can do that in synaptic, or google for how to edit your sources.list)&lt;/small&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.100686-1463228</guid>
		<pubDate>Tue, 02 Sep 2008 07:37:27 -0800</pubDate>
		<dc:creator>jaymzjulian</dc:creator>
	</item><item>
		<title>By: Zed_Lopez</title>
		<link>http://ask.metafilter.com/100686/how-do-I-run-a-minimal-Gnome-session-for-intensive-calc#1463252</link>	
		<description>Looking at matplotlib&apos;s requirements, it doesn&apos;t look like it requires an X session, just that it requires a bunch of X libraries. So you should be able to run this from a console. &lt;br&gt;
&lt;br&gt;
You might still have a bunch of cruft running from any servers you&apos;ve installed in the past, though. To be sure of a minimal installation, you may want to repartition your drive and reinstall an instance of Ubuntu from the alternate install CD -- a command-line-only system -- and then install onto that only what you need to run your app. Boot into that instance, and you&apos;ll be running about as lightweight a system as could be hoped without going to a lot of effort.&lt;br&gt;
&lt;br&gt;
It&apos;s generally easier to start with a stripped-down system and build up than to start with a big desktop environment and try to strip down.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.100686-1463252</guid>
		<pubDate>Tue, 02 Sep 2008 08:07:27 -0800</pubDate>
		<dc:creator>Zed_Lopez</dc:creator>
	</item><item>
		<title>By: Zed_Lopez</title>
		<link>http://ask.metafilter.com/100686/how-do-I-run-a-minimal-Gnome-session-for-intensive-calc#1463254</link>	
		<description>Also check out &lt;a href=&quot;http://psyco.sourceforge.net/&quot;&gt;psyco&lt;/a&gt;, which can massively speed up python execution.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.100686-1463254</guid>
		<pubDate>Tue, 02 Sep 2008 08:09:38 -0800</pubDate>
		<dc:creator>Zed_Lopez</dc:creator>
	</item><item>
		<title>By: nalf</title>
		<link>http://ask.metafilter.com/100686/how-do-I-run-a-minimal-Gnome-session-for-intensive-calc#1463268</link>	
		<description>Thanks for the input, I will try some of your solutions and see what works best for me.&lt;br&gt;
&lt;br&gt;
&lt;em&gt;Looking at matplotlib&apos;s requirements, it doesn&apos;t look like it requires an X session, just that it requires a bunch of X libraries. So you should be able to run this from a console.&lt;/em&gt;&lt;br&gt;
I don&apos;t know, I tried without an X session and it couldn&apos;t load the libraries...&lt;br&gt;
&lt;br&gt;
&lt;em&gt;Also check out psyco, which can massively speed up python execution.&lt;/em&gt;&lt;br&gt;
I think my code is as optimised as it can get, any cpu intensive stuff is compiled in C with cython.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.100686-1463268</guid>
		<pubDate>Tue, 02 Sep 2008 08:27:21 -0800</pubDate>
		<dc:creator>nalf</dc:creator>
	</item><item>
		<title>By: donut</title>
		<link>http://ask.metafilter.com/100686/how-do-I-run-a-minimal-Gnome-session-for-intensive-calc#1463384</link>	
		<description>Simplest X-Session:&lt;br&gt;
put &quot;exec xterm&quot; into ~/.xinitrc and make in executable (chmod 755 .xinitrc).&lt;br&gt;
&lt;br&gt;
It starts an X-Server and now window manager, just an xterm where you can start your application.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.100686-1463384</guid>
		<pubDate>Tue, 02 Sep 2008 10:15:22 -0800</pubDate>
		<dc:creator>donut</dc:creator>
	</item><item>
		<title>By: jrishel</title>
		<link>http://ask.metafilter.com/100686/how-do-I-run-a-minimal-Gnome-session-for-intensive-calc#1473195</link>	
		<description>So, which method did you use?  I think we gave you about 3 different ways to skin this cat :)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.100686-1473195</guid>
		<pubDate>Thu, 11 Sep 2008 11:52:27 -0800</pubDate>
		<dc:creator>jrishel</dc:creator>
	</item>
	</channel>
</rss>
