Android

来自LXDE.org
Otakuchiyan讨论 | 贡献2013年5月19日 (日) 05:18的版本 (以“它是被官方认可的,您可以在上面运行 X Window System 和您所选择的GUI。 这里说明了有关运行 X Window System 和 LXDE 的具体方法。 ...”为内容创建页面)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索

它是被官方认可的,您可以在上面运行 X Window System 和您所选择的GUI。 这里说明了有关运行 X Window System 和 LXDE 的具体方法。

先决条件

Debian的shell指令在www.androidfanatic.com/cms/community-forums.html?func=view&catid=9&id=251 这里。此外,如果您的‘debian.img’的文件小了点,您可能要调整,说明在www.androidfanatic.com/cms/community-forums.html?func=view&catid=9&id=1610 这里

安装基本包

用您的Android从下列连接下载VNCviewer for Android:

   [An unofficial repo]
   [Google Code]
   [Google Play]

现在复制apk文件到SD卡中,然后运行应用安装程序安装。在终端中启动您的Debian shell,然后键入:

# apt-get install tightvncserver
# apt-get install lxde

或者,如果您想要一个很基本的桌面,可选用IceWM:

# apt-get install icewm

安装VNC服务

现在您需要设置您的VNC,在提示符下,键入:

# export USER=root
# vncserver

这将创建一个X-Windows会话和启动文件在/root/.vnc/目录。vncserver会询问您设立两个密码。您将需要密码登录,但无需第二个密码。接下来要做的事情是要杀死刚开始的会话:

# vncserver -kill : 1

这样,您就可以编辑启动文件并正确设置。进入/root/.vnc,键入:

# nano xstartup

或者用您喜欢的编辑器打开 xstartup。 把这行关于xsession的注释掉:

#/etc/X11/xsession

加上这两行:

icewm
lxsession

如果您决定使用IceWM,加上:

icewm
xterm

然后保存文件,重新启动X Window会话的vncserver(您应该在完成了 X Window的设置之后才杀死它)。

This next bit does some housekeeping and sets up the VNC service each time you boot your debian shell - saves messing about everytime! Now back inside your debian prompt you need to edit your /root/.bashrc file:

  1. cd /root
  1. nano .bashrc


Add the following near the top of the file:

exportUSER=root cd / rm -r -f tmp mkdir tmp cd / vncserver -geometry 480x320

(The last line sets your resolution - you can change this if you will be connecting via your computer.)

Save the file (trackball then 'o'), and exit nano (trackball then 'x').

Type 'exit' to exit the Debian shell.

Reboot the phone.

Once rebooted go into Terminal and boot yor Debian shell.

Press the HOME button to revert back to the Android OS while leaving your Debian shell running.

Open androidVNC from your android programs menu.

Connect to 'localhost' port '5901' and enter your password.

Viola, you now have X Window System running on your phone.

Obviously you can connect to your phone's new desktop GUI with a VNC viewer from your computer too just enter it's ip address instead of localhost.

To make the cursor work with your finger, press the MENU button on your device and select 1:1 then just press the trackball ONCE!

Now whenever you want a proper x-windows Desktop GUI right there on your phone, just run the debian shell with 'bootdeb' and it sets up your vncserver. Then just press home to leave it running and get back to your android menu, where you can choose to VNC directly onto it. Cool eh?

When you are finished just exit androidVNC, if you want to get back to your Debian shell, HOLD DOWN the home key to bring up your running processes and switch to it.

What the heck, you could even install GNOME or KDE but it may be a little slow!

Catrgory: 未完成翻译