-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
300 lines (180 loc) · 7.8 KB
/
index.html
File metadata and controls
300 lines (180 loc) · 7.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Nuno Luís</title>
<meta name="author" content="Nuno Luís">
<meta name="description" content="When I try Android Studio 0.3.6 on Fedora 19 x64 I get a strange error Cannot run program "/home/username/android-studio/android-sdk-linux/platform- …">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href="/atom.xml" rel="alternate" title="Nuno Luís" type="application/atom+xml">
<link rel="canonical" href="">
<link href="/favicon.png" rel="shortcut icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<script async="true" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
</head>
<body>
<header id="header" class="inner"><h1><a href="/">Nuno Luís</a></h1>
<nav id="main-nav"><ul class="main">
<li><a href="/">Blog</a></li>
<li><a href="/blog/archives">Archives</a></li>
</ul>
</nav>
<nav id="mobile-nav">
<div class="alignleft menu">
<a class="button">Menu</a>
<div class="container"><ul class="main">
<li><a href="/">Blog</a></li>
<li><a href="/blog/archives">Archives</a></li>
</ul>
</div>
</div>
<div class="alignright search">
<a class="button"></a>
<div class="container">
<form action="http://google.com/search" method="get">
<input type="text" name="q" results="0">
<input type="hidden" name="q" value="site:nll.github.io">
</form>
</div>
</div>
</nav>
<nav id="sub-nav" class="alignright">
<div class="social">
<a class="google" href="https://plus.google.com/108555767441263789080?rel=author" title="Google+">Google+</a>
<a class="twitter" href="http://twitter.com/nluis" title="Twitter">Twitter</a>
<a class="github" href="https://github.com/nll" title="GitHub">GitHub</a>
<a class="rss" href="/atom.xml" title="RSS">RSS</a>
</div>
<form class="search" action="http://google.com/search" method="get">
<input class="alignright" type="text" name="q" results="0">
<input type="hidden" name="q" value="site:nll.github.io">
</form>
</nav>
</header>
<div id="content" class="inner">
<article class="post">
<h2 class="title">
<a href="/blog/2013/11/20/android-studio-fedora-x64-aapt-no-such-file-or-directory/">
Android Studio Fedora 64 bits - Fix ‘aapt’ problem</a>
</h2>
<div class="entry-content">
<p>When I try Android Studio 0.3.6 on Fedora 19 x64 I get a strange error</p>
<pre>
Cannot run program "/home/username/android-studio/android-sdk-linux/platform-tools/aapt":
java.io.IOException: error=2, No such file or directory
</pre>
<p>But the file exists, however when I try to run</p>
<pre>
-bash: ./build-tools/android-4.4/aapt: /lib/ld-linux.so.2:
bad ELF interpreter: No such file or directory
</pre>
<p>The solution is to install the missing x86 libs</p>
<pre>
yum install libstdc++.i686 zlib.i686
</pre>
</div>
<div class="meta">
<div class="date">
<time datetime="2013-11-20T11:58:15+00:00" pubdate data-updated="true">Nov 20<span>th</span>, 2013</time></div>
<div class="tags">
<a class='category' href='/blog/categories/android-studio/'>Android Studio</a>, <a class='category' href='/blog/categories/fedora/'>Fedora</a>, <a class='category' href='/blog/categories/linux/'>Linux</a>
</div>
</div>
</article>
<article class="post">
<h2 class="title">
<a href="/blog/2013/11/19/install-vnc-server-on-ubuntu-13-dot-04/">
Install VNC server on Ubuntu 13.04</a>
</h2>
<div class="entry-content">
<p>First install vncserver</p>
<pre>
sudo apt-get install vnc4server
</pre>
<p>And then create one vnc display</p>
<pre>
vncserver
</pre>
<p>The output will show the display number, in this case <code>:1</code></p>
<pre>
New 'hostname:1 (username)' desktop is pc-hostname:1
</pre>
<p>I chose gnome fallback to be my vnc desktop environment, and so I install</p>
<pre>
sudo apt-get install gnome-session-fallback
</pre>
<p>And edit the file <code>~/.vnc/xstartup</code> to be like this</p>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
<span class='line-number'>5</span>
<span class='line-number'>6</span>
<span class='line-number'>7</span>
<span class='line-number'>8</span>
<span class='line-number'>9</span>
<span class='line-number'>10</span>
<span class='line-number'>11</span>
<span class='line-number'>12</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'><span class="c">#!/bin/sh</span>
</span><span class='line'><span class="c"># Uncomment the following two lines for normal desktop:</span>
</span><span class='line'><span class="nb">unset </span>SESSION_MANAGER
</span><span class='line'><span class="c">#exec /etc/X11/xinit/xinitrc</span>
</span><span class='line'>gnome-session-fallback &
</span><span class='line'>
</span><span class='line'><span class="o">[</span> -x /etc/vnc/xstartup <span class="o">]</span> <span class="o">&&</span> <span class="nb">exec</span> /etc/vnc/xstartup
</span><span class='line'><span class="o">[</span> -r <span class="nv">$HOME</span>/.Xresources <span class="o">]</span> <span class="o">&&</span> xrdb <span class="nv">$HOME</span>/.Xresources
</span><span class='line'>xsetroot -solid grey
</span><span class='line'>vncconfig -iconic &
</span><span class='line'><span class="c">#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &</span>
</span><span class='line'><span class="c">#x-window-manager &</span>
</span></code></pre></td></tr></table></div></figure>
<p>Now you can connect to this vnc display using any vnc client, considering the fact that the display :1 is equivalent to tcp port 5901, and so on…</p>
<p>Finally to stop the vnc display run</p>
<pre>
vncserver -kill :1
</pre>
</div>
<div class="meta">
<div class="date">
<time datetime="2013-11-19T02:34:10+00:00" pubdate data-updated="true">Nov 19<span>th</span>, 2013</time></div>
<div class="tags">
<a class='category' href='/blog/categories/linux/'>Linux</a>, <a class='category' href='/blog/categories/ubuntu/'>Ubuntu</a>, <a class='category' href='/blog/categories/vnc/'>VNC</a>
</div>
</div>
</article>
<nav id="pagenavi">
<div class="center"><a href="/blog/archives">Blog Archives</a></div>
</nav></div>
<footer id="footer" class="inner">Copyright © 2014
Nuno Luís
</footer>
<script src="/javascripts/slash.js"></script>
<script src="/javascripts/jquery.fancybox.pack.js"></script>
<script type="text/javascript">
(function($){
$('.fancybox').fancybox();
})(jQuery);
</script> <!-- Delete or comment this line to disable Fancybox -->
<script type="text/javascript">
var disqus_shortname = 'nunoluis';
var disqus_script = 'count.js';
(function () {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//go.disqus.com/' + disqus_script;
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
}());
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-45859870-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>