-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathatom.xml
More file actions
119 lines (87 loc) · 4.14 KB
/
atom.xml
File metadata and controls
119 lines (87 loc) · 4.14 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
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title><![CDATA[Nuno Luís]]></title>
<link href="http://nll.github.io/atom.xml" rel="self"/>
<link href="http://nll.github.io/"/>
<updated>2014-01-07T22:50:11+00:00</updated>
<id>http://nll.github.io/</id>
<author>
<name><![CDATA[Nuno Luís]]></name>
</author>
<generator uri="http://octopress.org/">Octopress</generator>
<entry>
<title type="html"><![CDATA[Android Studio Fedora 64 bits - Fix 'aapt' problem]]></title>
<link href="http://nll.github.io/blog/2013/11/20/android-studio-fedora-x64-aapt-no-such-file-or-directory/"/>
<updated>2013-11-20T11:58:15+00:00</updated>
<id>http://nll.github.io/blog/2013/11/20/android-studio-fedora-x64-aapt-no-such-file-or-directory</id>
<content type="html"><![CDATA[<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>
]]></content>
</entry>
<entry>
<title type="html"><![CDATA[Install VNC server on Ubuntu 13.04]]></title>
<link href="http://nll.github.io/blog/2013/11/19/install-vnc-server-on-ubuntu-13-dot-04/"/>
<updated>2013-11-19T02:34:10+00:00</updated>
<id>http://nll.github.io/blog/2013/11/19/install-vnc-server-on-ubuntu-13-dot-04</id>
<content type="html"><![CDATA[<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>
]]></content>
</entry>
</feed>