<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Imaging and a little bit of OSS</title>
	<atom:link href="http://nuclear-imaging.info/site_content/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://nuclear-imaging.info/site_content</link>
	<description>Yet another techno blog</description>
	<lastBuildDate>Wed, 09 May 2012 12:39:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>Comment on Converting .hdr/.img files to .nii by slash_boot</title>
		<link>http://nuclear-imaging.info/site_content/2010/03/08/converting-hdrimg-files-to-nii/#comment-303</link>
		<dc:creator>slash_boot</dc:creator>
		<pubDate>Wed, 09 May 2012 12:39:28 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=323#comment-303</guid>
		<description>If you have freesurfer installed I would run the following script in terminal in the directory where you have your .nii files:
#!/bin/bash
for infiles in `ls *.nii`
do
fname=`echo $infiles &#124; cut -d &#039;.&#039; -f1`;
mri_convert $infiles -ot nifti1 $fname;
done

Now if you have a 4D image, and have FSL installed, things are even easier. Suppose your 4D file is named series.nii, run the following script at the terminal:


#!/bin/bash
export FSLOUTPUTTYPE=ANALYZE 
fslsplit series.nii output_basename -t

Hope this helps!</description>
		<content:encoded><![CDATA[<p>If you have freesurfer installed I would run the following script in terminal in the directory where you have your .nii files:<br />
#!/bin/bash<br />
for infiles in `ls *.nii`<br />
do<br />
fname=`echo $infiles | cut -d &#8216;.&#8217; -f1`;<br />
mri_convert $infiles -ot nifti1 $fname;<br />
done</p>
<p>Now if you have a 4D image, and have FSL installed, things are even easier. Suppose your 4D file is named series.nii, run the following script at the terminal:</p>
<p>#!/bin/bash<br />
export FSLOUTPUTTYPE=ANALYZE<br />
fslsplit series.nii output_basename -t</p>
<p>Hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Converting .hdr/.img files to .nii by Lena</title>
		<link>http://nuclear-imaging.info/site_content/2010/03/08/converting-hdrimg-files-to-nii/#comment-302</link>
		<dc:creator>Lena</dc:creator>
		<pubDate>Thu, 26 Apr 2012 11:03:50 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=323#comment-302</guid>
		<description>Hi there,

I was wondering how do I convert nii files into their respective hdr and img files?

many thanks :)</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>I was wondering how do I convert nii files into their respective hdr and img files?</p>
<p>many thanks <img src='http://nuclear-imaging.info/site_content/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Normalization in FSL by Gustava</title>
		<link>http://nuclear-imaging.info/site_content/2011/03/30/normalization-in-fsl/#comment-301</link>
		<dc:creator>Gustava</dc:creator>
		<pubDate>Wed, 04 Apr 2012 23:56:48 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=357#comment-301</guid>
		<description>Hi,

Thanks for this :-)

Where you register the T1 to MNI, and are running fnirt, should that be run on my_betted_structural, instead of my_structural (I would think so).

Cheers!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for this <img src='http://nuclear-imaging.info/site_content/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Where you register the T1 to MNI, and are running fnirt, should that be run on my_betted_structural, instead of my_structural (I would think so).</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VNC server setup for Ubuntu 11.04 (Natty Narwhal) by Jon Duke</title>
		<link>http://nuclear-imaging.info/site_content/2011/05/11/vnc-server-setup-for-ubuntu-11-04-natty-narwhal/#comment-297</link>
		<dc:creator>Jon Duke</dc:creator>
		<pubDate>Wed, 21 Mar 2012 15:33:44 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=375#comment-297</guid>
		<description>After many days of looking for a &quot;RDP&quot; like solution for the 11.X builds of ubuntu I finally found a very elegant solution on another site. I wanted to share it in hopes of saving others like myself a little time.


Source
http://mlepicki.com/2011/10/remote-vnc-login-to-ubuntu-11-10/

&quot;Today I’ve installed Ubuntu 11.10 Oneiric Ocelot on my ASrock 100HT nettop. I’ve wanted to remotely control this box via VNC protocol.
My solution was x11vnc server, so I could share one one session between remote and physical access. I’ve found useful thread about x11vnc on Ubuntu 11.10 – I’ve just added some upstart magic to start x11vnc after lightdm.
First of all, I’ve installed x11vnc:
apt-get install x11vnc
Then, I’ve created /etc/init/x11vnc.conf file:
start on login-session-start
script
x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.log
end script
After restart, x11vnc shoud listen on vnc startard port – 5900.
This script is of course based on upstart event mechanism. Lightdm emits login-session-start event (you can find it in lightdm.conf), and we start x11vnc when this event is emited – that’s first line of x11vnc.conf file.&quot;</description>
		<content:encoded><![CDATA[<p>After many days of looking for a &#8220;RDP&#8221; like solution for the 11.X builds of ubuntu I finally found a very elegant solution on another site. I wanted to share it in hopes of saving others like myself a little time.</p>
<p>Source<br />
<a href="http://mlepicki.com/2011/10/remote-vnc-login-to-ubuntu-11-10/" rel="nofollow">http://mlepicki.com/2011/10/remote-vnc-login-to-ubuntu-11-10/</a></p>
<p>&#8220;Today I’ve installed Ubuntu 11.10 Oneiric Ocelot on my ASrock 100HT nettop. I’ve wanted to remotely control this box via VNC protocol.<br />
My solution was x11vnc server, so I could share one one session between remote and physical access. I’ve found useful thread about x11vnc on Ubuntu 11.10 – I’ve just added some upstart magic to start x11vnc after lightdm.<br />
First of all, I’ve installed x11vnc:<br />
apt-get install x11vnc<br />
Then, I’ve created /etc/init/x11vnc.conf file:<br />
start on login-session-start<br />
script<br />
x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.log<br />
end script<br />
After restart, x11vnc shoud listen on vnc startard port – 5900.<br />
This script is of course based on upstart event mechanism. Lightdm emits login-session-start event (you can find it in lightdm.conf), and we start x11vnc when this event is emited – that’s first line of x11vnc.conf file.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on When gvfsd-metadata starts using 100% processor by Peter</title>
		<link>http://nuclear-imaging.info/site_content/2011/12/28/when-gvfsd-metadata-starts-using-100-processor/#comment-292</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sat, 03 Mar 2012 19:55:45 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=430#comment-292</guid>
		<description>Thanks. This fixed an issue I had with gvfs-metadata hogging 100% CPU usage when working with files.   

The partition in question was indeed almost 97% full.</description>
		<content:encoded><![CDATA[<p>Thanks. This fixed an issue I had with gvfs-metadata hogging 100% CPU usage when working with files.   </p>
<p>The partition in question was indeed almost 97% full.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Change &#8220;Linux Mint flavoured&#8221; Google search to original Google search by Adrian</title>
		<link>http://nuclear-imaging.info/site_content/2011/12/27/change-linux-mint-flavoured-google-search-to-original-google-search/#comment-290</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Fri, 24 Feb 2012 15:17:23 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=421#comment-290</guid>
		<description>Thanks, that was very helpful.</description>
		<content:encoded><![CDATA[<p>Thanks, that was very helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Bounding box for wfu-pickatlas masks by Valerie</title>
		<link>http://nuclear-imaging.info/site_content/2011/04/14/bounding-box-for-wfu-pickatlas-masks/#comment-289</link>
		<dc:creator>Valerie</dc:creator>
		<pubDate>Thu, 23 Feb 2012 01:16:04 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=361#comment-289</guid>
		<description>Hi Rishi,

I was wondering, could you also make a mask of the anterior hippocampus this way? How would you go about determining those dimensions? Thank you very much for any advice,

Valerie</description>
		<content:encoded><![CDATA[<p>Hi Rishi,</p>
<p>I was wondering, could you also make a mask of the anterior hippocampus this way? How would you go about determining those dimensions? Thank you very much for any advice,</p>
<p>Valerie</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VNC server setup for Ubuntu 10.04 (Lucid Lynx) by slash_boot</title>
		<link>http://nuclear-imaging.info/site_content/2010/04/19/vnc-server-setup-for-ubuntu-10-04-lucid-lynx/#comment-288</link>
		<dc:creator>slash_boot</dc:creator>
		<pubDate>Wed, 25 Jan 2012 23:51:07 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=338#comment-288</guid>
		<description>Hi Anand:

I have encountered similar problems when the network speeds have been painfully slow. If your server or client are using upload speeds less than 512 kbps, you can get the unresponsive gray screen.</description>
		<content:encoded><![CDATA[<p>Hi Anand:</p>
<p>I have encountered similar problems when the network speeds have been painfully slow. If your server or client are using upload speeds less than 512 kbps, you can get the unresponsive gray screen.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VNC server setup for Ubuntu 11.04 (Natty Narwhal) by slash_boot</title>
		<link>http://nuclear-imaging.info/site_content/2011/05/11/vnc-server-setup-for-ubuntu-11-04-natty-narwhal/#comment-287</link>
		<dc:creator>slash_boot</dc:creator>
		<pubDate>Wed, 25 Jan 2012 23:47:12 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=375#comment-287</guid>
		<description>&lt;p&gt;Yes. One important step would be to make sure you always shutdown with a restart option if you want to have the servers running again. Always use:&lt;/p&gt;&lt;p&gt;shutdown -r 0&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Yes. One important step would be to make sure you always shutdown with a restart option if you want to have the servers running again. Always use:</p>
<p>shutdown -r 0</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VNC server setup for Ubuntu 11.04 (Natty Narwhal) by Buddy</title>
		<link>http://nuclear-imaging.info/site_content/2011/05/11/vnc-server-setup-for-ubuntu-11-04-natty-narwhal/#comment-286</link>
		<dc:creator>Buddy</dc:creator>
		<pubDate>Sun, 22 Jan 2012 13:33:06 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=375#comment-286</guid>
		<description>Will this allow me to run a headless server?</description>
		<content:encoded><![CDATA[<p>Will this allow me to run a headless server?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VNC server setup for Ubuntu 10.04 (Lucid Lynx) by Anand</title>
		<link>http://nuclear-imaging.info/site_content/2010/04/19/vnc-server-setup-for-ubuntu-10-04-lucid-lynx/#comment-282</link>
		<dc:creator>Anand</dc:creator>
		<pubDate>Tue, 10 Jan 2012 00:21:10 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=338#comment-282</guid>
		<description>Thanks for the tips. I started a VNC server with you xstartup and I can connect to it with the gnome session. Although the desktop background is all grey without any icons. It doesn&#039;t respond to right-button click either. I have unset &quot;SESSION_MANAGER&quot; and &quot;DBUS_SESSION_BUS_ADDRESS&quot; to no avail. Note that the default gnome terminals which were started via xstartup work fine (even with multiple tabs).</description>
		<content:encoded><![CDATA[<p>Thanks for the tips. I started a VNC server with you xstartup and I can connect to it with the gnome session. Although the desktop background is all grey without any icons. It doesn&#8217;t respond to right-button click either. I have unset &#8220;SESSION_MANAGER&#8221; and &#8220;DBUS_SESSION_BUS_ADDRESS&#8221; to no avail. Note that the default gnome terminals which were started via xstartup work fine (even with multiple tabs).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VNC server setup for Ubuntu 11.04 (Natty Narwhal) by slash_boot</title>
		<link>http://nuclear-imaging.info/site_content/2011/05/11/vnc-server-setup-for-ubuntu-11-04-natty-narwhal/#comment-280</link>
		<dc:creator>slash_boot</dc:creator>
		<pubDate>Thu, 05 Jan 2012 19:43:31 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=375#comment-280</guid>
		<description>Jagan: If you want to connect to the Ubuntu machine using a macbook, you need to launch the vnc session on your macbook. The VNC client for OSX is Chicken of the VNC.

Fire up the terminal and connect to your Ubuntu machine using ssh like you did.
You then need to start a vnc session. You&#039;ll do that by typing:

&lt;blockquote&gt;vncserver :3 -geometry 1200x800&lt;/blockquote&gt;

I am assuming that you have already made changes to the xstartup file in .vnc folder.

Once vncserver session has been started on Ubuntu side, you need to launch Chicken of the VNC on your mac.

In there, you connect to localhost :3, give your password, and you should be in.

Hope this helps.</description>
		<content:encoded><![CDATA[<p>Jagan: If you want to connect to the Ubuntu machine using a macbook, you need to launch the vnc session on your macbook. The VNC client for OSX is Chicken of the VNC.</p>
<p>Fire up the terminal and connect to your Ubuntu machine using ssh like you did.<br />
You then need to start a vnc session. You&#8217;ll do that by typing:</p>
<blockquote><p>vncserver :3 -geometry 1200&#215;800</p></blockquote>
<p>I am assuming that you have already made changes to the xstartup file in .vnc folder.</p>
<p>Once vncserver session has been started on Ubuntu side, you need to launch Chicken of the VNC on your mac.</p>
<p>In there, you connect to localhost :3, give your password, and you should be in.</p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VNC server setup for Ubuntu 11.04 (Natty Narwhal) by Jagan Reddy</title>
		<link>http://nuclear-imaging.info/site_content/2011/05/11/vnc-server-setup-for-ubuntu-11-04-natty-narwhal/#comment-279</link>
		<dc:creator>Jagan Reddy</dc:creator>
		<pubDate>Thu, 05 Jan 2012 12:18:22 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=375#comment-279</guid>
		<description>Hi,
My goal is to allow some authorized people to connect to home PC for training purposes. I need a VNC environment so that they can use when required X-windows for practice lessons.

As for my testing: Via my own local network I am able to do desktop sharing and controlling from my macbook. Here again, it requires the user already connected to remote desktop. But I need the person to connect afresh. I have already setup secure shell and I can do ssh via port 22.

I want to follow your approach, that I should initiate a ssh and then start vncviewer on the remote machine to get the desktop. This way the user is in control to start X display only when required and it iss secure as well.  But I am not able to achieve this. Please see my attempts from my macbook pro.

Any help is highly appreciated.

OS-X-Leopard:~ admin$ ssh -L 5903:192.168.2.6:5903 bab4l8m@192.168.2.6
bab4l8m@192.168.2.6&#039;s password: 
Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-13-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

19 packages can be updated.
14 updates are security updates.

New release &#039;oneiric&#039; available.
Run &#039;do-release-upgrade&#039; to upgrade to it.

Last login: Thu Jan  5 07:09:34 2012 from os-x-leopard.local
bab4l8m@ubuntu:~$ export DISPLAY=os-x-leopard.local
bab4l8m@ubuntu:~$ vncviewer localhost:3
Error: Can&#039;t open display: os-x-leopard.local
bab4l8m@ubuntu:~$ export DISPLAY=localhost:3
bab4l8m@ubuntu:~$ vncviewer localhost:3
No protocol specified
No protocol specified
No protocol specified
No protocol specified
Error: Can&#039;t open display: localhost:3
bab4l8m@ubuntu:~$ export DISPLAY=0:3
bab4l8m@ubuntu:~$ vncviewer localhost:3
No protocol specified
No protocol specified
No protocol specified
No protocol specified
Error: Can&#039;t open display: 0:3
bab4l8m@ubuntu:~$</description>
		<content:encoded><![CDATA[<p>Hi,<br />
My goal is to allow some authorized people to connect to home PC for training purposes. I need a VNC environment so that they can use when required X-windows for practice lessons.</p>
<p>As for my testing: Via my own local network I am able to do desktop sharing and controlling from my macbook. Here again, it requires the user already connected to remote desktop. But I need the person to connect afresh. I have already setup secure shell and I can do ssh via port 22.</p>
<p>I want to follow your approach, that I should initiate a ssh and then start vncviewer on the remote machine to get the desktop. This way the user is in control to start X display only when required and it iss secure as well.  But I am not able to achieve this. Please see my attempts from my macbook pro.</p>
<p>Any help is highly appreciated.</p>
<p>OS-X-Leopard:~ admin$ ssh -L 5903:192.168.2.6:5903 <a href="mailto:bab4l8m@192.168">bab4l8m@192.168</a>.2.6<br />
<a href="mailto:bab4l8m@192.168">bab4l8m@192.168</a>.2.6&#8242;s password:<br />
Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-13-generic x86_64)</p>
<p> * Documentation:  <a href="https://help.ubuntu.com/" rel="nofollow">https://help.ubuntu.com/</a></p>
<p>19 packages can be updated.<br />
14 updates are security updates.</p>
<p>New release &#8216;oneiric&#8217; available.<br />
Run &#8216;do-release-upgrade&#8217; to upgrade to it.</p>
<p>Last login: Thu Jan  5 07:09:34 2012 from os-x-leopard.local<br />
bab4l8m@ubuntu:~$ export DISPLAY=os-x-leopard.local<br />
bab4l8m@ubuntu:~$ vncviewer localhost:3<br />
Error: Can&#8217;t open display: os-x-leopard.local<br />
bab4l8m@ubuntu:~$ export DISPLAY=localhost:3<br />
bab4l8m@ubuntu:~$ vncviewer localhost:3<br />
No protocol specified<br />
No protocol specified<br />
No protocol specified<br />
No protocol specified<br />
Error: Can&#8217;t open display: localhost:3<br />
bab4l8m@ubuntu:~$ export DISPLAY=0:3<br />
bab4l8m@ubuntu:~$ vncviewer localhost:3<br />
No protocol specified<br />
No protocol specified<br />
No protocol specified<br />
No protocol specified<br />
Error: Can&#8217;t open display: 0:3<br />
bab4l8m@ubuntu:~$</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VNC server setup for Ubuntu 10.04 (Lucid Lynx) by slash_boot</title>
		<link>http://nuclear-imaging.info/site_content/2010/04/19/vnc-server-setup-for-ubuntu-10-04-lucid-lynx/#comment-278</link>
		<dc:creator>slash_boot</dc:creator>
		<pubDate>Thu, 29 Dec 2011 15:18:34 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=338#comment-278</guid>
		<description>I used to get a grey screen on rare occasions, but in most circumstances it worked fine.

The small hack with &quot;unset DBUS_SESSION_BUS_ADDRESS&quot; is quite useful in cases when you can&#039;t make the grey screen go away.

Thanks for the helpful suggestion.</description>
		<content:encoded><![CDATA[<p>I used to get a grey screen on rare occasions, but in most circumstances it worked fine.</p>
<p>The small hack with &#8220;unset DBUS_SESSION_BUS_ADDRESS&#8221; is quite useful in cases when you can&#8217;t make the grey screen go away.</p>
<p>Thanks for the helpful suggestion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VNC server setup for Ubuntu 10.04 (Lucid Lynx) by Krishnamohan Bandi</title>
		<link>http://nuclear-imaging.info/site_content/2010/04/19/vnc-server-setup-for-ubuntu-10-04-lucid-lynx/#comment-277</link>
		<dc:creator>Krishnamohan Bandi</dc:creator>
		<pubDate>Thu, 29 Dec 2011 10:57:06 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=338#comment-277</guid>
		<description>The above xstartup configuration did not work for me and I was seeing a grey screen with the following error &quot;could not acquire name on session bus&quot;.

To fix this, I have added the following line just after the # exec /etc/X11/xinit/xinitrc

unset DBUS_SESSION_BUS_ADDRESS

and I could get a full blown desktop now without any issues

Hope this helps</description>
		<content:encoded><![CDATA[<p>The above xstartup configuration did not work for me and I was seeing a grey screen with the following error &#8220;could not acquire name on session bus&#8221;.</p>
<p>To fix this, I have added the following line just after the # exec /etc/X11/xinit/xinitrc</p>
<p>unset DBUS_SESSION_BUS_ADDRESS</p>
<p>and I could get a full blown desktop now without any issues</p>
<p>Hope this helps</p>
]]></content:encoded>
	</item>
</channel>
</rss>

