<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>odin 2.0</title>
	<atom:link href="http://odinhg.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://odinhg.wordpress.com</link>
	<description>me uncle</description>
	<lastBuildDate>Mon, 26 Sep 2011 09:25:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='odinhg.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>odin 2.0</title>
		<link>http://odinhg.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://odinhg.wordpress.com/osd.xml" title="odin 2.0" />
	<atom:link rel='hub' href='http://odinhg.wordpress.com/?pushpress=hub'/>
		<item>
		<title>CEM3394 Test</title>
		<link>http://odinhg.wordpress.com/2011/09/26/cem3394-test/</link>
		<comments>http://odinhg.wordpress.com/2011/09/26/cem3394-test/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 09:15:23 +0000</pubDate>
		<dc:creator>odinhg</dc:creator>
				<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://odinhg.wordpress.com/?p=41</guid>
		<description><![CDATA[The CEM3394. A synth-on-a-chip, made by Curtis Electromusic Specialties, during the golden age of synthesizers. The IC contains a VCO, VCF, VCA, a wave shaper, an external mixer and a cool sounding VCF modulator. Check out the datasheet for a nice and tidy block diagram. The CEM3394 was used in the Akai AX60, Sequential Circuits [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odinhg.wordpress.com&amp;blog=8494756&amp;post=41&amp;subd=odinhg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.synthtech.com/cem/c3394pdf.pdf" target="_blank">CEM3394</a>. A synth-on-a-chip, made by <a href="http://en.wikipedia.org/wiki/Curtis_CEM" target="_blank">Curtis Electromusic Specialties</a>, during the golden age of synthesizers.</p>
<p>The IC contains a VCO, VCF, VCA, a wave shaper, an external mixer and a cool sounding VCF modulator. Check out the <a href="http://www.synthtech.com/cem/c3394pdf.pdf" target="_blank">datasheet</a> for<br />
a nice and tidy block diagram.</p>
<p>The CEM3394 was used in the Akai AX60, Sequential Circuits Six-Trax, MAX, Split8, and is still being used in the Doepfer Dark Energy.</p>
<p>Since I didn&#8217;t have much experience with op amps, this project became quite a challenge for me.<br />
However, after some reading and simulation, I got around and did a PCB layout.</p>
<p>For pitch and gate CVs, I used the <a href="http://www.midimplant.com/" target="_blank">MIDImplant</a> from Roman Sowa. Worked perfectly out of the box.</p>
<a href="http://odinhg.wordpress.com/2011/09/26/cem3394-test/#gallery-1-slideshow">Click to view slideshow.</a>
<p>After populating the PCB, wiring the pots and hooking up the powersupply, I fed it with some MIDI from my computer and it actually did work<br />
on the first try. Didn&#8217;t expect that. I tend to mess up the simplest circuits most of the time.</p>
<p><strong>Audio demo:</strong><br />
Filter modulation, filter, waveforms and more<br />
<a href="http://www.djodin.com/cem3394_test3.mp3" target="_blank">http://www.djodin.com/cem3394_test3.mp3</a></p>
<p>3 tracks with the 3394, and software drums.  A bit out of tune.<br />
<a href="http://www.djodin.com/cem3394_test2.mp3" target="_blank">http://www.djodin.com/cem3394_test2.mp3</a></p>
<p>I don&#8217;t think the schematics is very useful, but if anyone really wants it, don&#8217;t hesitate to ask.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odinhg.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odinhg.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odinhg.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odinhg.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/odinhg.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/odinhg.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/odinhg.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/odinhg.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odinhg.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odinhg.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odinhg.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odinhg.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odinhg.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odinhg.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odinhg.wordpress.com&amp;blog=8494756&amp;post=41&amp;subd=odinhg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://odinhg.wordpress.com/2011/09/26/cem3394-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.djodin.com/cem3394_test3.mp3" length="3036960" type="audio/mpeg" />
<enclosure url="http://www.djodin.com/cem3394_test2.mp3" length="521055" type="audio/mpeg" />
	
		<media:content url="http://1.gravatar.com/avatar/ff5d4b29fec083c596c01d04a5aa84f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">odinhg</media:title>
		</media:content>
	</item>
		<item>
		<title>ATmega32U4-AU Eagle part</title>
		<link>http://odinhg.wordpress.com/2009/07/28/atmega32u4-au-eagle-part/</link>
		<comments>http://odinhg.wordpress.com/2009/07/28/atmega32u4-au-eagle-part/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 14:04:46 +0000</pubDate>
		<dc:creator>odinhg</dc:creator>
				<category><![CDATA[AVR]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[atmega]]></category>
		<category><![CDATA[atmega32u4]]></category>
		<category><![CDATA[eagle]]></category>
		<category><![CDATA[lib]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[part]]></category>
		<category><![CDATA[tqfp]]></category>
		<category><![CDATA[tqfp44]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://odinhg.wordpress.com/?p=24</guid>
		<description><![CDATA[Download here (.lbr 7,01 kB) Use this part at your own risk, it should be correct, but I can&#8217;t guarantee it.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odinhg.wordpress.com&amp;blog=8494756&amp;post=24&amp;subd=odinhg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://odinhg.files.wordpress.com/2009/07/mega32u4symbold.png"><img class="alignnone size-medium wp-image-25" title="mega32u4symbol" src="http://odinhg.files.wordpress.com/2009/07/mega32u4symbold.png?w=213&#038;h=300" alt="mega32u4symbol" width="213" height="300" /></a></p>
<p><a href="http://www.djodin.com/mega32U4.lbr" target="_blank">Download here</a> (.lbr 7,01 kB)</p>
<p><strong>Use this part at your own risk, it should be correct, but I can&#8217;t guarantee it.</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odinhg.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odinhg.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odinhg.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odinhg.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/odinhg.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/odinhg.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/odinhg.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/odinhg.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odinhg.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odinhg.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odinhg.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odinhg.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odinhg.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odinhg.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odinhg.wordpress.com&amp;blog=8494756&amp;post=24&amp;subd=odinhg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://odinhg.wordpress.com/2009/07/28/atmega32u4-au-eagle-part/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ff5d4b29fec083c596c01d04a5aa84f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">odinhg</media:title>
		</media:content>

		<media:content url="http://odinhg.files.wordpress.com/2009/07/mega32u4symbold.png?w=213" medium="image">
			<media:title type="html">mega32u4symbol</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting started with AVRs</title>
		<link>http://odinhg.wordpress.com/2009/07/11/getting-started-with-avrs/</link>
		<comments>http://odinhg.wordpress.com/2009/07/11/getting-started-with-avrs/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 20:39:01 +0000</pubDate>
		<dc:creator>odinhg</dc:creator>
				<category><![CDATA[AVR]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[AVR Studio]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[getting started]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[introduction]]></category>
		<category><![CDATA[ISP]]></category>
		<category><![CDATA[WinAVR]]></category>

		<guid isPermaLink="false">http://odinhg.wordpress.com/?p=14</guid>
		<description><![CDATA[Introduction If you have no experience with microcontrollers, programming or basic electronics, I recommend that you check out Arduino before starting with AVRs. Getting started with AVRs is not that expensive or time consuming as you might think, but you should have some basic electronics skills, and some programming experience will make things much easier. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odinhg.wordpress.com&amp;blog=8494756&amp;post=14&amp;subd=odinhg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>Introduction</h2>
<p>If you have no experience with microcontrollers, programming or basic electronics, I recommend that you check out <a href="http://arduino.cc" target="_blank">Arduino</a> before starting with AVRs.</p>
<p>Getting started with AVRs is not that expensive or time consuming as you might think, but you should have some basic electronics skills, and some programming experience will make things much easier.</p>
<p>In this guide, I&#8217;ll use the following hardware.</p>
<blockquote><p>-AVR ISP MKII clone (~$20-30 from eBay)</p>
<p>-A simple developement board with an ATMega128 ($25 from ebay)</p></blockquote>
<p>The ISP (In System Programming) programmer is used to program the chip via USB (or RS232 on older versions)</p>
<p>On the software side, I&#8217;ll use AVR Studio 4 with WinAVR under Windows XP. If you&#8217;re using linux or mac check out this guides: <a rel="nofollow" href="http://www.ladyada.net/learn/avr/setup-mac.html">Mac</a>,<a rel="nofollow" href="http://www.ladyada.net/learn/avr/setup-unix.html"> Linux/Unix</a>.</p>
<p><span id="more-14"></span></p>
<p style="text-align:center;"><a href="http://0o2471.net//10540.jpg"><img class="aligncenter" title="Developement Board ATMega128" src="http://0o2471.net//10540.jpg" alt="" width="400" height="300" /></a>The developement board I&#8217;m using</p>
<p style="text-align:center;"><a href="http://0o2471.net//10541.jpg"><img class="aligncenter" title="AVR ISP MKII Clone" src="http://0o2471.net//10541.jpg" alt="" width="400" height="300" /></a>The AVR ISP MKII clone</p>
<h2 style="text-align:left;">Installing the software under Windows</h2>
<p style="text-align:left;">First we&#8217;ll need to download and install the latest version of <a title="AVR Studio" href="http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2725" target="_blank">AVR Studio from Atmel&#8217;s website</a>, which is the <a title="IDE" href="http://en.wikipedia.org/wiki/Integrated_development_environment" target="_blank">IDE</a> we&#8217;re going to use.</p>
<p style="text-align:left;">When you&#8217;ve done that, download and install <a title="WinAVR" href="http://sourceforge.net/project/downloading.php?group_id=68108&amp;filename=WinAVR-20090313-install.exe&amp;a=60793636" target="_blank">WinAVR from sourceforge</a>, which contains the C/C++ compiler and other developement tools.</p>
<p style="text-align:left;">You might need to install USB drivers for your ISP programmer. Most ISP Programmers comes with a CD containing all the drivers you need.</p>
<p style="text-align:left;">That&#8217;s all software you&#8217;ll need!</p>
<p style="text-align:left;">
<h2 style="text-align:left;">The DDRx, PORTx and PINx registers</h2>
<p style="text-align:left;">It&#8217;s important to understand what these registers is, and how you use them. So don&#8217;t skip this step!</p>
<p style="text-align:left;">The pins on AVRs can be used for diffrent things, some of them I2C,  other PWM and some can be used for Analog input depending on the type of AVR you&#8217;re using. But almost all the I/O pins can be used for digital inputs and outputs.</p>
<p style="text-align:left;">I/O pins on AVRs are grouped in something called ports. Often 8 by 8 pins for each port. Each of these ports have a DDRx, PORTx and a PINx register. <strong>The x is the letter of the port the register belongs to.</strong></p>
<p style="text-align:left;"><strong>The DDRx register</strong></p>
<p style="text-align:left;">DDR stands for Data Direction Register and controls which pins on the ports that should be inputs and which pins that should be outputs.</p>
<p style="text-align:left;">I made a illustration to make it easier to understand how DDR is used.</p>
<p style="text-align:left;"><a href="http://0o2471.net//10550.jpg"><img class="alignnone" title="DDR" src="http://0o2471.net//10550.jpg" alt="" width="281" height="250" /></a></p>
<p style="text-align:left;">1 means output, and 0 means input. In other words, pin 0,4,5 and 7 is inputs and pin 1,2,3 and 6 is outputs.</p>
<p style="text-align:left;">
<p style="text-align:left;"><strong>The PORTx register</strong></p>
<p style="text-align:left;">The PORTx register controls the output pins. So if you write 11111111 to the PORTx register, it will make all pins which is set as outputs in DDRx go high. But when writing 1 in the PORTx to a pin set as a input in DDRx, it will activate the internal <a title="Pull-up resistor" href="http://en.wikipedia.org/wiki/Pull-up_resistor" target="_blank">pull-up resistor</a> on that pin.</p>
<p style="text-align:left;">
<p style="text-align:left;"><strong>The PINx register</strong></p>
<p style="text-align:left;">The PINx register is used to read the current state of inputpins.  So if all pins in the port is set as inputs, and you give give them 5Volts, the PINx register will be 11111111.</p>
<p style="text-align:left;">
<p style="text-align:left;">These register might be hard to understand, but when you start to code and see how it works in action you&#8217;ll get it if you haven&#8217;t already.</p>
<p style="text-align:left;">
<p style="text-align:left;">Most people are using hexadecimal numbers when they&#8217;re writing to the registers, but in the beginning it&#8217;s okey to use binary numbers. Just remember to use 0b11111111 when using binary numbers in C, and 0xFF when useing hexadecimal numbers.</p>
<p style="text-align:left;">
<h2 style="text-align:left;">Writing the code</h2>
<p>Finally, the fun part!</p>
<ol>
<li>Open AVR Studio</li>
<li>You&#8217;ll see a dialog pop up, choose &#8220;New Project&#8221;</li>
<li>Select &#8220;AVR GCC&#8221; as &#8220;Project Type&#8221;, since we&#8217;re going to write in C, not assembly</li>
<li>Give the project a name like &#8220;MyFirstAVRProject&#8221; or something</li>
<li>Click &#8220;Next&#8221;</li>
<li>Select &#8220;AVR Simulator 2&#8243; under &#8220;Debug Platform&#8221; and the chip you are using under &#8220;Device&#8221;. In my case, Atmega128</li>
<li>Click &#8220;Finish&#8221;</li>
</ol>
<p>Now, we can write the basic structure of the program.</p>
<p style="text-align:left;">
<pre class="brush: cpp;">
#include &lt;avr/io.h&gt;

int main(){
    while(1){
        //Main program loop
    }
}
</pre>
<p>First we are including the io header file, which contains port definitions and more. Then we&#8217;re opening</p>
<p>the main function, and creates a infinitive loop where the program should be.<br />
Now we can try to compile it and transfer it to the AVR to make sure everything is working as it should.</p>
<p>Go to<em> &#8220;Build &gt; Build&#8221;</em> or press F7 to build the project. This will compile the code, and give us a hex-file with machine code the AVR can understand.</p>
<p><a href="http://0o2471.net//10554.jpg"><img class="alignnone" title="Build AVR Studio" src="http://0o2471.net//10554.jpg" alt="" width="413" height="233" /></a></p>
<p>No errors? Good, let&#8217;s transfer it to the AVR. Go to <em>&#8220;Tools &gt; Program AVR &gt; Connect&#8221;</em>, select<em> &#8220;STK500 or AVRISP&#8221;</em> as Platform, <em>&#8220;Auto&#8221;</em> as port and press <em>&#8220;Connect&#8221;</em>.</p>
<p>Go to the <em>&#8220;Main&#8221;</em>-tab and select the chip you&#8217;re using and click <em>&#8220;Read Signature&#8221;</em>. If you got contact with the AVR you&#8217;ll se 3 hexadecimal numbers.</p>
<p><a href="http://0o2471.net//10549.jpg"><img class="alignnone" title="AVR Signature" src="http://0o2471.net//10549.jpg" alt="" width="280" height="300" /></a></p>
<p>Now we can upload the hex-file we compiled. Go to the <em>&#8220;Program&#8221;</em>-tab.</p>
<p><a href="http://0o2471.net//10557.jpg"><img class="alignnone" title="Program AVR" src="http://0o2471.net//10557.jpg" alt="" width="282" height="300" /></a></p>
<p>Click the button marked blue on the image above and select the hex file which you can find in <em>&#8220;&lt;ProjectName&gt;\default&#8221;</em> and press open.</p>
<p>Note:  Remeber to choose the hex-file for the current project, this is easy to forget, and can drive you crazy.</p>
<p>Now, click <em>&#8220;Program&#8221;</em>. If everything went as it should, the text box under will show something like this:</p>
<blockquote>
<pre>Getting isp parameter.. SD=0x01 .. OKOK
Reading FLASH input file.. OK
Setting mode and device parameters.. OK!
Entering programming mode.. OK!
Erasing device.. OK!
Programming FLASH ..      OK!
Reading FLASH ..      OK!
FLASH contents is equal to file.. OK
Leaving programming mode.. OK!</pre>
</blockquote>
<p>Now we can write a program which does something.</p>
<p>I have 8 LEDs on port C, if you use a other port change the letter of DDRC and PORTC to the port you&#8217;re using.</p>
<pre class="brush: cpp;">

#define F_CPU 16000000    //Clock frequency

#include &lt;avr/io.h&gt;
#include &lt;util/delay.h&gt;       //Header for the _delay_ms() function

int main(){
     DDRC = 0xFF;        //Set all the pins at port C as outputs (11111111 binary)
     PORTC = 0x00;     //Set all the pins at port C low (00000000 binary)
     int count = 0;         //This is the current value

      while(1){
          _delay_ms(500);     //Wait 500ms
          PORTC = count++;  //Set port C to the current value of count and increase count with 1
          if(count&gt;=255)        //If count is greater than or equal 255 (0xFF)
         count = 0;                   //Set count to 0
     }
}
</pre>
<p>This program will count from 0 to 255 with 500ms delay and display the number binary by using the LEDs.</p>
<p>First we write 0&#215;00 to PORTC which is 00000000 in binary. All LEDs off. Then we wait 500ms, increase with 1 again and again until it reach 255 which is the max value 8 LEDs can show (2^8 -1).</p>
<p>I&#8217;ve commented the code, so it should be hard to understand what&#8217;s going on. Build the project, and program the AVR as we did in the previous step and it should begin counting from 0 to 255 forever.</p>
<span style="text-align:center; display: block;"><a href="http://odinhg.wordpress.com/2009/07/11/getting-started-with-avrs/"><img src="http://img.youtube.com/vi/p7pis0TqkSQ/2.jpg" alt="" /></a></span>
<p>Good sites and communities:</p>
<p><a rel="nofollow" href="http://www.avrfreaks.net/">AVRFreaks (Good forums, and lots of projects to check out)<br />
</a></p>
<p><a rel="nofollow" href="http://www.sparkfun.com/">SparkFun (Buy electronics)<br />
</a></p>
<p><a rel="nofollow" href="http://www.atmel.com/dyn/Products/app_notes.asp?family_id=607">Atmel Application Notes 8-Bit RISC (Application notes from Atmel)<br />
</a></p>
<p><a rel="nofollow" href="http://www.engbedded.com/fusecalc">AVR Fuse Calculator (Good fuse calculator for AVRs)<br />
</a></p>
<p>If you have questions, feel free to post a comment.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odinhg.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odinhg.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odinhg.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odinhg.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/odinhg.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/odinhg.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/odinhg.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/odinhg.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odinhg.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odinhg.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odinhg.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odinhg.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odinhg.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odinhg.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odinhg.wordpress.com&amp;blog=8494756&amp;post=14&amp;subd=odinhg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://odinhg.wordpress.com/2009/07/11/getting-started-with-avrs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ff5d4b29fec083c596c01d04a5aa84f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">odinhg</media:title>
		</media:content>

		<media:content url="http://0o2471.net//10540.jpg" medium="image">
			<media:title type="html">Developement Board ATMega128</media:title>
		</media:content>

		<media:content url="http://0o2471.net//10541.jpg" medium="image">
			<media:title type="html">AVR ISP MKII Clone</media:title>
		</media:content>

		<media:content url="http://0o2471.net//10550.jpg" medium="image">
			<media:title type="html">DDR</media:title>
		</media:content>

		<media:content url="http://0o2471.net//10554.jpg" medium="image">
			<media:title type="html">Build AVR Studio</media:title>
		</media:content>

		<media:content url="http://0o2471.net//10549.jpg" medium="image">
			<media:title type="html">AVR Signature</media:title>
		</media:content>

		<media:content url="http://0o2471.net//10557.jpg" medium="image">
			<media:title type="html">Program AVR</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing VNC Server on Ubuntu Server</title>
		<link>http://odinhg.wordpress.com/2009/07/11/installing-vnc-server-on-ubuntu-server/</link>
		<comments>http://odinhg.wordpress.com/2009/07/11/installing-vnc-server-on-ubuntu-server/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 17:04:17 +0000</pubDate>
		<dc:creator>odinhg</dc:creator>
				<category><![CDATA[Computaz]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[gdm]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[Permission denied]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tightvncserver]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://odinhg.wordpress.com/?p=6</guid>
		<description><![CDATA[I had SSH access to a VPS, but wanted to set up a VNC server since I&#8217;m not that comfortable with doing everything in terminal yet. So I wrote this HowTo if anyone wants to know how. First I had to install a GUI, so i connected to the server through ssh, logged in as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odinhg.wordpress.com&amp;blog=8494756&amp;post=6&amp;subd=odinhg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had SSH access to a VPS, but wanted to set up a VNC server since I&#8217;m not that comfortable with doing everything in terminal yet. So I wrote this HowTo if anyone wants to know how.</p>
<p>First I had to install a GUI, so i connected to the server through ssh, logged in as root and installed the ubuntu-desktop package.</p>
<blockquote>
<pre>apt-get install ubuntu-desktop</pre>
</blockquote>
<p><span id="more-6"></span></p>
<p>This might take some time.. Go make some coffee, tea or what ever you like while it&#8217;s downloading and installing.</p>
<p>Now you have to install the gnome display manager.</p>
<blockquote>
<pre>apt-get install gdm</pre>
</blockquote>
<p>Reconfigure X server</p>
<blockquote>
<pre>dpkg-reconfigure xserver-xorg</pre>
</blockquote>
<p>Start GDM</p>
<blockquote>
<pre>/etc/init.d/gdm start</pre>
</blockquote>
<p>Now we&#8217;ve a GUI, and we&#8217;re ready to install VNC Server.</p>
<blockquote>
<pre>apt-get install tightvncserver</pre>
</blockquote>
<p>Now, open ~/.vnc/xstarup in a text editor. If you use nano;</p>
<blockquote>
<pre>nano ~/.vnc/xstartup</pre>
</blockquote>
<p>Then use this config.</p>
<blockquote>
<pre>unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

xsetroot -solid grey
vncconfig -iconic &amp;
xterm -geometry 1024x768 -ls -title "$VNCDESKTOP Desktop" &amp;
exec gnome-session</pre>
</blockquote>
<p>After starting vncserver, I tried to connect, but I got only a grey screen. I read the log file and foun the following line.</p>
<blockquote>
<pre>sh: ~/.vnc/xstartup: Permission denied</pre>
</blockquote>
<p>So I had to chmod xstartup.</p>
<blockquote>
<pre>chmod +x ~/.vnc/xstartup</pre>
</blockquote>
<p>And xinitrc.</p>
<blockquote>
<pre>chmod +x /etc/X11/xinit/xinitrc</pre>
</blockquote>
<p>Reboot the server.</p>
<blockquote>
<pre>reboot</pre>
</blockquote>
<p>Now we can start the VNC Server.</p>
<blockquote>
<pre>vncserver :1</pre>
</blockquote>
<p>:# is the display number, usually you want to use 1. Use <em>vncserver &#8211;help</em> for more options.</p>
<p>We can now download VNC Viewer and connect to the server by using &#8220;serveraddress:5901&#8243; (590 + the display number)</p>
<p><img class="alignnone size-medium wp-image-7" title="VNC Viewer" src="http://odinhg.files.wordpress.com/2009/07/vnc.png?w=300&#038;h=240" alt="VNC Viewer" width="300" height="240" /></p>
<p>To kill the vncserver, use <em>vncserver -kill :1</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odinhg.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odinhg.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odinhg.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odinhg.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/odinhg.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/odinhg.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/odinhg.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/odinhg.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odinhg.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odinhg.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odinhg.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odinhg.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odinhg.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odinhg.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odinhg.wordpress.com&amp;blog=8494756&amp;post=6&amp;subd=odinhg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://odinhg.wordpress.com/2009/07/11/installing-vnc-server-on-ubuntu-server/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ff5d4b29fec083c596c01d04a5aa84f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">odinhg</media:title>
		</media:content>

		<media:content url="http://odinhg.files.wordpress.com/2009/07/vnc.png?w=300" medium="image">
			<media:title type="html">VNC Viewer</media:title>
		</media:content>
	</item>
	</channel>
</rss>
