当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 6 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 在Xoom平板上安装ubuntu 9.10!
帖子发表于 : 2011-03-08 8:58 

注册: 2009-07-16 23:09
帖子: 137
送出感谢: 0 次
接收感谢: 0 次
11.04快来吧, 针对平板优化的界面。。。。。。。什么andriod,阉割货,我要的是全功能平板电脑跑ubuntu!



http://trsohmers.com/2011/03/06/how-to- ... rola-xoom/


HOW TO: Run Ubuntu on the Motorola Xoom

Hey everyone,

Yesterday I posted simplified instructions for unlocking the bootloader and rooting the Motorola Xoom on Mac OS X, and today I have full instructions on how to install and run Ubuntu on your Motorola Xoom tablet. The method this uses is to install Ubuntu in a chroot “jail” to keep it separate of all Android processes… similar to how a Virtual Machine (Virtualbox, Parallels, VMware) runs an x86 operating system (Windows, OSX, Linux) on an x86/x64 machine. Since the Xoom and most Android devices run on an ARM processor, you can only run an operating system made for ARM, so I am using the ARM version of Ubuntu version 9.10.

Here is a video of it I posted on Youtube:

INSTRUCTIONS:
NOTE: Even though this is running in a chroot jail, and I am 99.9% sure this will not cause any harm to your device, I can not be held responsible for anything that may happen to your device. Just by rooting and unlocking your device (which you have to have done already to do this) COULD void your warranty and/or brick your device. Then again, you COULD be struck by lightning 42 times the next time you walk outside your house… it is highly improbable unless you go outside in a thunderstorm with a lightning rod.

NOTE 2: The install files for this are about 660mb zipped, and once expanded the files are about 2.5gb.

STEP ONE: Setting up your enviornment

NOTE: I will be writing this from the viewpoint of a Linux/Mac user. If you are running Windows, just remove the ‘./’ from the commands.

NOTE 2: My Android SDK folder is /AndroidSDK/… please insert whatever the name of yours is.

1. I am assuming you have the Android SDK from when you rooted… if you do not, download it.

2. Please download this zip… this is the 660mb one, so it may take a while. Get your favorite drink, have a snack, and if you want you can skim through the rest of this while it is downloading.

3.OK, now that you have the ubuntu.zip file, extract it to AndroidSDK/tools/

4.Take the busybox and installbusybox.sh files and copy/move them to the root of the sdcard on your device… you can do that manually by plugging your xoom into your computer and browsing the directories (on the Mac you have to use the Android File Transfer application provided by Motorola).The other way is to use ADB push, and that is what I will explain.

(Make sure you have USB debugging enabled in Settings > Applications > Development)

4a.Open up your terminal application, and change the directory to your AndroidSDK/tools

4b.Type in ./adb push busybox /sdcard (It should tell you when it has done transferring)

4c.Type in ./adb push installbusybox.sh /sdcard (It should tell you when it has done transferring)

4d.Type in ./adb shell (This allows you to access the terminal on the device itself)

4e.Type in su (This gives the terminal Super User privileges. If you get the error “Permission Denied”, you have not rooted your device)

4f.Type in cd /sdcard (Changes the directory to the device’s sdcard. NOTE: The Xoom doesn’t really have an sdcard at release… but Motorola seems to have made a virtual one so devices that require an sdcard still run.)

4g.Type in sh installbusybox.sh

After that is complete, busybox should be installed. Try entering a command like cp and see if it displays anything. If not, reboot the device (./adb reboot) and try the cp again.

5. Now that busybox is installed, lets get to actually installing Ubuntu. You now have to move all the files in the Ubuntu folder (minus busybox and installbusybox.sh) to /sdcard/ubuntu …. you can do this using a method other than ADB push, but I will explain it the ADB push way.

5a.Type in ./adb push fsrw /sdcard/ubuntu (It should tell you when it has done transferring)

5b.Type in ./adb push mountonly /sdcard/ubuntu (It should tell you when it has done transferring)

5c.Type in ./adb push ubuntu.sh /sdcard/ubuntu (It should tell you when it has done transferring)

5d.Type in ./adb push ubuntu.img /sdcard/ubuntu (It should tell you when it has done transferring)

NOTE: This file is over 2gb’s! It will take a while to transfer, and on average it takes 25-30 minutes. Time for another snack break.

5e.Type in ./adb push unionfs /sdcard/ubuntu (It should tell you when it has done transferring)

STEP TWO: Installing Ubuntu

6. OK, lets get this installing. You are going to be going to be going into the shell again, so follow these commands:

6a.Type in ./adb shell (This allows you to access the terminal on the device itself)

6b.Type in su

6c.Type in cd /sdcard/ubuntu

6d.Type in sh ./ubuntu.sh

It will give some errors, but as long as it gets to “To enter the Debian Linux Console type in ‘bootubuntu’”, you should be good. Congratulations, Ubuntu is now installed.

7. OK, now that Ubuntu is installed… you want to turn it on, right? now Type In: bootubuntu and you should give you a new line saying “root@localhost:/” Congratulations, Ubuntu is now running. If it is not running, try to Type in su bootubuntu and then bootubuntu again. If that does not work, try rebooting your device and do it again… if it is still not working, try going through steps 5-7 again. If you have any more issues, feel free to comment here and I will try to help you.

STEP THREE: Setting up Ubuntu

8. You should still be in the shell and at the root@localhost entry. You are now entering commands through your terminal, into Android’s terminal, which is entering into Ubuntu’s terminal (What is this, Inception?). Like all operating systems, you need to update them… but with Ubuntu, this is quite easy.

8a.Type in apt-get update

8b.Now we are going to add a “head” to this “headless” OS. Since Android is the main operating system on here and Ubuntu has nothing to display on, we are going to output X windows (The GUI Linux OSs) to VNC. Type in apt-get install tightvncserver

8c.Once tightvncserver is installed, type in apt-get install lxde

8d.Type in export USER=root

8f.Type in vncserver -geometry 1280×800 (Resolution of the Xoom’s display. You can experiment to find a resolution you like.. you can type this command whenever to change the resolution)

8g.It should ask you for a password for your VNC… you can use something simple like 123 since you are the only one who can access it since it is only on your device.

9.Now we are going to change some settings to make the VNC experience better….

9a.Type in cat > /root/.vnc/xstartup
9b.Type in #!/bin/sh
9c.Type in xrdb $HOME/.Xresources
9d.Type inxsetroot -solid grey
9e.Type in icewm &
9f.Type in lxsession

10.Press CNTRL+D, and then enter this…

10a. cat > front
10b. export USER=root
10c. cd /
10d. rm -r -f tmp
10e. mkdir tmp
10f. cd /
10g. vncserver -geometry 1280×800

11.Hit CNTRL+D again, and enter this…

11a. cat front /root/.bashrc > temp

11b. cp temp /root/.bashrc

12. Now you can exit out of the Ubuntu terminal by typing exit

13.Reboot your device

13a.Install a VNC app from the market such as this Android VNC (Free)

13b.Install a Terminal Emulator app from the market like this Better Terminal Emulator Pro (3.99) or Android Terminal Emulator (Free)

13c.Now you can use the ADB shell again, but I suggest doing this on the device using one of the Terminal Emulators.

13c.cd /sdcard/ubuntu

13c.su (If the Superuser app asks for permission, press yes)

13c.bootubuntu

13c.OK, you should see the same thing as you did on your computer screen. Now go back to your homescreen, and open your VNC client.

13d.Now, in the Nickname spot, put ‘Ubuntu’ or whatever you want.

13e.In the password spot, put whatever you put for a password earlier.

13f.Leave the address blank.

13g.Set the port at 5901.

Set the color format to 256 colors (1 bpp) for the best results.Then you press the Connect button, and you are on Ubuntu!

14. Some information:

1.Tap to click, pretty simple.

2.Double tap for right click.

3.You can switch in and out of ubuntu… just click your home button or the task manager button.

4.You should be automatically connected to the internet since it shares the device’s internet connection. So this will work on 3G, 4G, Wifi, or not having any connection. I am also going to see if I can transfer files between Android and Ubuntu since they should be on the same ‘network’.

That about wraps it up! Hope you will enjoy Ubuntu on your Xoom!

CREDITS:

Thomas Sohmers -Writer of this guide, file modification for the Xoom

Max Lee -Original hacker which did this on the Nexus One.

Charan Singh -Original installer file creator

Koush -Rooting the Xoom


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 在Xoom平板上安装ubuntu 9.10!
帖子发表于 : 2011-03-08 9:07 
头像

注册: 2007-02-02 18:14
帖子: 30702
系统: debian sid
送出感谢: 1
接收感谢: 34
翻译一下嘛~~~


_________________
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 在Xoom平板上安装ubuntu 9.10!
帖子发表于 : 2011-03-08 9:07 
头像

注册: 2007-05-06 2:46
帖子: 15634
送出感谢: 0 次
接收感谢: 2
标记一下看看ipad如何搞

还是ipad便宜


_________________
وإذا كان هذا لا يحصل أكثر من 100 ملاحظات ، انا ذاهب الى غضب


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 在Xoom平板上安装ubuntu 9.10!
帖子发表于 : 2011-07-04 17:57 

注册: 2011-07-04 17:53
帖子: 1
送出感谢: 0 次
接收感谢: 0 次
NOTE 2: The install files for this are about 660mb zipped, and once expanded the files are about 2.5gb.
安装文件是大约660 mb的压缩文件,解压后约为2.5 gb

STEP ONE: Setting up your enviornment
环境设置

NOTE: I will be writing this from the viewpoint of a Linux/Mac user. If you are running Windows, just remove the ‘./’ from the commands.
下面代码是在Linux / Mac android SDK写的。如果你正在运行windows android SDK,则从命令中去掉“./”

NOTE 2: My Android SDK folder is /AndroidSDK/… please insert whatever the name of yours is.
我安卓SDK目录是/ AndroidSDK /…根据自己的目录自行修改
1. I am assuming you have the Android SDK from when you rooted… if you do not, download it.
我假设你有sdk…如果没有,请下载。
2. Please download this zip… this is the 660mb one, so it may take a while. Get your favorite drink, have a snack, and if you want you can skim through the rest of this while it is downloading.
请下载this zip…这是660 mb,所以这可能需要一段时间。把你最喜欢的饮料,吃点心,如果你希望,你可以在下载时浏览一下剩下的文章。

3.OK, now that you have the ubuntu.zip file, extract it to AndroidSDK/tools/
现在你已经有ubuntu.zip文件,解压到AndroidSDK /tools下面

4.Take the busybox and installbusybox.sh files and copy/move them to the root of the sdcard on your device… you can do that manually by plugging your xoom into your computer and browsing the directories (on the Mac you have to use the Android File Transfer application provided by Motorola).The other way is to use ADB push, and that is what I will explain.
将busybox和installbusybox.sh文件复制/剪切他们到你设备的sd卡根目录下…将xoom手动插进你的电脑和浏览SD卡目录(Mac上你必须用摩托罗拉提供的Android File Transfer application),另一种方法是使用adb 上传,这就是我将要解释的。

(Make sure you have USB debugging enabled in Settings > Applications > Development)
(确保你已经打开USB调试 设置-应用程序-开发)

4a.Open up your terminal application, and change the directory to your AndroidSDK/tools
打开你的终端CMD,改变你的AndroidSDK目录/工具
(电脑:开始菜单 运行 输入cmd、然后用cd命令来切换当前目录到AndroidSDK/tools)

4b.Type in ./adb push busybox /sdcard (It should tell you when it has done transferring)
输入 ./adb push busybox /sdcard (传送结束后他会有提示)

4c.Type in ./adb push installbusybox.sh /sdcard (It should tell you when it has done transferring)
输入 ./adb push installbusybox.sh /sdcard
4d.Type in ./adb shell (This allows you to access the terminal on the device itself)
输入./adb shell(这允许你访问设备终端)
4e.Type in su (This gives the terminal Super User privileges. If you get the error “Permission Denied”, you have not rooted your device)
输入su这是一个给终端超级用户权限。如果提示错误信息:“Permission Denied”,说明你的设备没有root破解

4f.Type in cd /sdcard (Changes the directory to the device’s sdcard. NOTE: The Xoom doesn’t really have an sdcard at release… but Motorola seems to have made a virtual one so devices that require an sdcard still run.)
输入cd /sdcard(切换到/sdcard目录。注意:Xoom并不真的有一个sdcard目录…摩托罗拉制作了一个虚拟的sdcard实际路径是/mnt/sdcard。)

4g.Type in sh installbusybox.sh
输入sh installbusybox.sh
After that is complete, busybox should be installed. Try entering a command like cp and see if it displays anything. If not, reboot the device (./adb reboot) and try the cp again.
当busybox完成安装之后。试着输入一个cp命令,看看它是否显示任何东西。如果不是,重新启动设备(./adb reboot)试着再输入cp。
5. Now that busybox is installed, lets get to actually installing Ubuntu. You now have to move all the files in the Ubuntu folder (minus busybox and installbusybox.sh) to /sdcard/ubuntu …. you can do this using a method other than ADB push, but I will explain it the ADB push way.
现在busybox已经安装,让我们来安装Ubuntu。你现在要将ubuntu目录下的所有文件移动到/sdcard/Ubuntu目录下(除了 busybox and installbusybox.sh)。你可以使用这个方法替换ADB push上传,下面我用adb push的方法来说明

5a.Type in ./adb push fsrw /sdcard/ubuntu (It should tell you when it has done transferring)
输入./adb push fsrw /sdcard/ubuntu
5b.Type in ./adb push mountonly /sdcard/ubuntu (It should tell you when it has done transferring)
输入./adb push mountonly /sdcard/ubuntu
5c.Type in ./adb push ubuntu.sh /sdcard/ubuntu (It should tell you when it has done transferring)
输入./adb push ubuntu.sh /sdcard/ubuntu
5d.Type in ./adb push ubuntu.img /sdcard/ubuntu (It should tell you when it has done transferring)
输入./adb push ubuntu.img /sdcard/ubuntu
NOTE: This file is over 2gb’s! It will take a while to transfer, and on average it takes 25-30 minutes. Time for another snack break.
注:这个文件夹超过2G!需要较长的时间来移动,约25 - 30分钟。

5e.Type in ./adb push unionfs /sdcard/ubuntu (It should tell you when it has done transferring)
输入./adb push unionfs /sdcard/ubuntu
STEP TWO: Installing Ubuntu
步骤2: 安装Ubuntu
6. OK, lets get this installing. You are going to be going to be going into the shell again, so follow these commands:
好吧,下面我们来安装ubuntu。你然需要输入下面的shell命令操作:

6a.Type in ./adb shell (This allows you to access the terminal on the device itself)
输入./adb shell
6b.Type in su
输入su
6c.Type in cd /sdcard/ubuntu
输入cd /sdcard/ubuntu
6d.Type in sh ./ubuntu.sh
输入sh ./ubuntu.sh
It will give some errors, but as long as it gets to “To enter the Debian Linux Console type in ‘bootubuntu’”, you should be good. Congratulations, Ubuntu is now installed.
安装过程会产生一些错误,但只要它能运行到 “To enter the Debian Linux Console type in ‘bootubuntu’”,就完成了。祝贺你, Ubuntu现在被安装了。

7. OK, now that Ubuntu is installed… you want to turn it on, right? now Type In: bootubuntu and you should give you a new line saying “root@localhost:/” Congratulations, Ubuntu is now running. If it is not running, try to Type in su bootubuntu and then bootubuntu again. If that does not work, try rebooting your device and do it again… if it is still not working, try going through steps 5-7 again. If you have any more issues, feel free to comment here and I will try to help you.
好了,现在Ubuntu安装完了…你想把它打开,对吗?
输入: bootubuntu
将显示新行“root@localhost:/”
“恭喜, Ubuntu现在在运行。如果它没有运行,试着输入su bootubuntu,然后再次bootubuntu。如果不工作,试重新启动您的设备再做一次…如果它仍不工作,通过再去试试步骤5-7。如果你有任何问题,随时回复,我会尽量帮你的

STEP THREE: Setting up Ubuntu
设置Ubuntu
8. You should still be in the shell and at the root@localhost entry. You are now entering commands through your terminal, into Android’s terminal, which is entering into Ubuntu’s terminal (What is this, Inception?). Like all operating systems, you need to update them… but with Ubuntu, this is quite easy.
你应该还在root@localhost shell终端。你现在在终端里输入命令,选择进入安卓的终端或者Ubuntu的终端(这是什么,开始?)。像所有的操作系统,你需要更新他们…Ubuntu更简单。
8a.Type in apt-get update
输入apt-get update
8b.Now we are going to add a “head” to this “headless” OS. Since Android is the main operating system on here and Ubuntu has nothing to display on, we are going to output X windows (The GUI Linux OSs) to VNC. Type in apt-get install tightvncserver
现在我们要添加一个“操作界面”到这个“无界面”的操作系统。因为安卓是主操作系统,Ubuntu在这里没有任何可显示界面,我们要将X windows 界面显示出来(The GUI Linux OSs)。
输入apt-get安装tightvncserver

8c.Once tightvncserver is installed, type in apt-get install lxde
tightvncserver安装后,输入apt-get install lxde
8d.Type in export USER=root
输入export USER=root
8f.Type in vncserver -geometry 1280×800 (Resolution of the Xoom’s display. You can experiment to find a resolution you like.. you can type this command whenever to change the resolution)
输入vncserver -geometry 1280×800
8g.It should ask you for a password for your VNC… you can use something simple like 123 since you are the only one who can access it since it is only on your device.
他会问你VNC的密码,你可以使用简单的例如123因为你是唯一可以进入的人
9.Now we are going to change some settings to make the VNC experience better….
现在我们要改变一些设置来使vcn运行得更好
9a.Type in cat > /root/.vnc/xstartup
输入(下同)
9b.Type in #!/bin/sh
9c.Type in xrdb $HOME/.Xresources
9d.Type inxsetroot -solid grey
9e.Type in icewm &
9f.Type in lxsession

10.Press CNTRL+D, and then enter this…
按下CNTRL+D,然后输入以下
10a. cat > front
10b. export USER=root
10c. cd /
10d. rm -r -f tmp
10e. mkdir tmp
10f. cd /
10g. vncserver -geometry 1280×800

11.Hit CNTRL+D again, and enter this…
再次按下CNTRL+D 然后输入
11a. cat front /root/.bashrc > temp

11b. cp temp /root/.bashrc

12. Now you can exit out of the Ubuntu terminal by typing exit
现在你可以打exit退出Ubuntu终端
13.Reboot your device
重启设备
13a.Install a VNC app from the market such as this Android VNC (Free)
从市场中安装VCN应用程序,例如Android VNC(免费)
13b.Install a Terminal Emulator app from the market like this Better Terminal Emulator Pro (3.99) or Android Terminal Emulator (Free)
安装一个Terminal Emulator应用程序,例如this Better Terminal Emulator Pro (3.99) or Android Terminal Emulator (Free)
13c.Now you can use the ADB shell again, but I suggest doing this on the device using one of the Terminal Emulators.
现在你可以再次使用ADBshell ,但是我建议这样做在一个使用终端模拟器设备上

13c.cd /sdcard/ubuntu

13c.su (If the Superuser app asks for permission, press yes)

13c.bootubuntu

13c.OK, you should see the same thing as you did on your computer screen. Now go back to your homescreen, and open your VNC client.
好了,你应该看到同样的事情像在你的电脑屏幕上做的,现在回到主屏幕,打开你的VNC客户
13d.Now, in the Nickname spot, put ‘Ubuntu’ or whatever you want.
现在,在昵称界面,输入Ubuntu,或任何你想的
13e.In the password spot, put whatever you put for a password earlier.
在密码界面,输入你在先前密码界面输入的
13f.Leave the address blank.
地址栏空白
13g.Set the port at 5901.
设置端口5901
Set the color format to 256 colors (1 bpp) for the best results.Then you press the Connect button, and you are on Ubuntu!
把颜色格式到256种颜色(1 bpp)为最好的结果。然后按下连接按钮,于是你在Ubuntu上

14. Some information:
一些信息
1.Tap to click, pretty simple.
点击 十分点单
2.Double tap for right click.
双击是右击
3.You can switch in and out of ubuntu… just click your home button or the task manager button.
你可以打开或退出ubuntu,只要点击你的home键或者任务管理按钮
4.You should be automatically connected to the internet since it shares the device’s internet connection. So this will work on 3G, 4G, Wifi, or not having any connection. I am also going to see if I can transfer files between Android and Ubuntu since they should be on the same ‘network’.
你应该自动连接网络只要你在网络连接上分享你的设备。所以这将在3G, 4G, Wifi工作,或者没有任何连接。我将继续看如果我可以在安卓或Ubuntu中转移文件因为他们再同一个网络中
That about wraps it up! Hope you will enjoy Ubuntu on your Xoom!

CREDITS:

Thomas Sohmers -Writer of this guide, file modification for the Xoom

Max Lee -Original hacker which did this on the Nexus One.

Charan Singh -Original installer file creator

Koush -Rooting the Xoom


最后由 4getit 编辑于 2011-07-05 17:10,总共编辑了 1 次

页首
 用户资料  
 
5 楼 
 文章标题 : Re: 在Xoom平板上安装ubuntu 9.10!
帖子发表于 : 2011-07-05 10:54 

注册: 2011-05-21 20:45
帖子: 7
送出感谢: 0 次
接收感谢: 0 次
:em20 这没人看得懂啊。。


页首
 用户资料  
 
6 楼 
 文章标题 : Re: 在Xoom平板上安装ubuntu 9.10!
帖子发表于 : 2011-07-12 22:03 

注册: 2010-06-07 19:24
帖子: 105
送出感谢: 1
接收感谢: 0 次
现在就是只缺Xoom,不缺9.10!


_________________
未必博客

Gedit中文乱码解决方法
ubuntu11.04修改成 默认启动为xp优先
【已解决】【装过N 卡驱动后无法更改分辨率为1280*1024】


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 6 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:Google [Bot] 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译