{"id":9227,"date":"2018-07-02T16:14:57","date_gmt":"2018-07-02T07:14:57","guid":{"rendered":"https:\/\/www.hardkernel.com\/?p=9227"},"modified":"2018-12-10T10:55:25","modified_gmt":"2018-12-10T01:55:25","slug":"visual-studio-code-on-xu4-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/www.hardkernel.com\/ko\/blog\/visual-studio-code-on-xu4-ubuntu-18-04\/","title":{"rendered":"Visual Studio Code on XU4 Ubuntu 18.04"},"content":{"rendered":"<p>When I was a student around 25 years ago, I had to spend over $200 to buy a Microsoft Visual Studio C++ software package.<br \/>\nAt that time, I used Windows 3.1 on a blazing fast\u00a0Intel 80286 8Mhz 16bit processor with 1MB RAM to build a small commercial software as a part-time job.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-9228\" src=\"https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/11\/201807021511537981.jpg\" alt=\"\" width=\"200\" height=\"291\" \/><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-9230\" src=\"https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/11\/201807021509308212.jpg\" alt=\"\" width=\"426\" height=\"223\" srcset=\"https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/11\/201807021509308212.jpg 426w, https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/11\/201807021509308212-247x129.jpg 247w\" sizes=\"auto, (max-width: 426px) 100vw, 426px\" \/><\/p>\n<p>Today, we can run the Visual Studio on the XU4 Ubuntu Linux.<br \/>\nVisual Studio Code is a source code editor developed by Microsoft for Windows, Linux and macOS.<br \/>\nIt includes support for debugging, embedded Git control, syntax highlighting, intelligent code completion, snippets, and code refactoring.<br \/>\nIt is also customizable, so users can change the editor&#8217;s theme, keyboard shortcuts, and preferences.<br \/>\nIt is free and open-source, although the official download is under a proprietary license.<\/p>\n<p>From the VS Code GitHub :\u00a0<a href=\"https:\/\/github.com\/Microsoft\/vscode\/wiki\/How-to-Contribute#prerequisites\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/Microsoft\/vscode\/wiki\/How-to-Contribute#prerequisites<\/a><br \/>\nYou need following items.<br \/>\n&#8211; Git<br \/>\n&#8211; Node.JS, &gt;= 8.9.1, &lt; 9.0.0<br \/>\n&#8211; Yarn &gt;= 1.5.0<br \/>\n&#8211; Python, &gt;=\u00a0 2.7 (version 3 is not supported)<br \/>\n&#8211; npm<br \/>\n&#8211; libx11-dev and libxkbfile-dev for native-keymap<br \/>\n&#8211; libsecret-1-dev for keytar<\/p>\n<p>Let&#8217;s install the required packages.<\/p>\n<pre>sudo apt install git nodejs libx11-dev libxkbfile-dev libsecret-1-dev npm <\/pre>\n<p>And check the versions of key components.<\/p>\n<pre>odroid@odroid:~$ yarn --version\r\n0.32\r\nodroid@odroid:~$ python --version\r\nPython 2.7.15rc1\r\nodroid@odroid:~$ nodejs --version\r\nv8.10.0\r\nodroid@odroid:~$ npm --version\r\n3.5.2<\/pre>\n<p>&#8220;yarn&#8221; command in &#8220;cmdtest&#8221; package was too old which was compatible with npm.<br \/>\nSo you have to install &#8220;yarn&#8221; package manually.<\/p>\n<pre>curl -sS https:\/\/dl.yarnpkg.com\/debian\/pubkey.gpg | sudo apt-key add - echo \"deb https:\/\/dl.yarnpkg.com\/debian\/ stable main\" | sudo tee \/etc\/apt\r\nsudo apt update\r\nsudo apt install yarn<\/pre>\n<p>And I had the latest &#8220;yarn&#8221; version.<\/p>\n<pre>odroid@odroid:~$ yarn --version\r\n1.7.0<\/pre>\n<p>Let&#8217;s download Visual Studio Code source from MS Github and build it.<\/p>\n<pre>git clone --depth 1 https:\/\/github.com\/microsoft\/vscode\r\ncd vscode\r\n.\/scripts\/npm.sh install --arch=armhf<\/pre>\n<p>Then, run your instance with .\/scripts\/code.sh from that same folder.<br \/>\nYou must force to reinstal libgconf2 manually to fix a runtime error.<\/p>\n<pre>sudo apt -y install libgconf2-4<\/pre>\n<p>The first launching took quite a long time. Be patient.<br \/>\nThe performance of source code editor was very good and look-and-feel was very similar to the original Visual Studio.<br \/>\nIt&#8217;s time to learn how to configure the gcc and gdb command in the integrated development environment.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9236\" src=\"https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/11\/201807021537307543.jpg\" alt=\"\" width=\"1033\" height=\"804\" srcset=\"https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/11\/201807021537307543.jpg 1033w, https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/11\/201807021537307543-800x623.jpg 800w, https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/11\/201807021537307543-768x598.jpg 768w, https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/11\/201807021537307543-247x192.jpg 247w, https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/11\/201807021537307543-510x397.jpg 510w\" sizes=\"auto, (max-width: 1033px) 100vw, 1033px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I was a student around 25 years ago, I had to spend over $200 to buy a Microsoft Visual Studio C++ software package. At that time, I used Windows 3.1 on a blazing fast\u00a0Intel 80286 8Mhz 16bit processor with 1MB RAM to build a small commercial software as a part-time job. Today, we can [&#8230;]\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18463],"tags":[20878],"class_list":["post-9227","post","type-post","status-publish","format-standard","hentry","category-blog","tag-odroid-xu4"],"_links":{"self":[{"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/posts\/9227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/comments?post=9227"}],"version-history":[{"count":7,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/posts\/9227\/revisions"}],"predecessor-version":[{"id":12093,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/posts\/9227\/revisions\/12093"}],"wp:attachment":[{"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/media?parent=9227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/categories?post=9227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/tags?post=9227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}