原载自XDA-developers 的文章
升级到G1 adp 1.43h 版本后 debian启动不了,可以先
# modprobe ext2
http://forum.xda-developers.com/showthread.php?t=485378
X-Windows on Debian from phone to phone -- how to
Here are instructions about running X-Windows of the G-1.
You need three basic packages: Android VNC Viewer: http://code.google.com/p/android-vnc-viewer/ , Tightvncserver (apt-get install tightvncserver), and icewm (apt-get install icewm).
When you get these installed (Android vnc viewer goes on the phone -- install from the browser), become su in Debian and run the command "vncserver". This will create an x-windows session and a startup file
in the /root/.vnc/ directory. Vncserver will also ask you to set up two passwrds. You will need the first password to log in, but just say no to the second password.
The next thing to do is to kill the session you just started: "vncserver -kill :1"
This is so you can edit the startup file to set it up correctly. cd to root/.vnc and run "nano xstartup".
comment out the line for xsession:
#/etc/X11/xsession
add these two lines:
icewm &
xterm
save the file (trackball "o" --this is control o), and exit nano (trackball x -- control x).
Then restart an x windows session by "vncserver" ( you should kill it after you are done with x-windows later on).
Next, go back to the phone and start Android-VNC-Viewr. You will get a log-in screen. You will need to enter your password you created and the address (localhost)and the port (5901).
Then press connect, and you are in an x-windows session, with a Debian icon in the lower seft corner of the screen. Click it and you are in business. There are instructions on running Android-VNC-Viewr
on their website.
You may want more room to install programs then you get on Saurik's image file. I created an image using his method at http://www.saurik.com/id/10.
The image is 3.7 gigabytes, and I have kde-core and LDXE installed and still have 2.4 gibytes free.
You have to add two lines to the bootdeb script after the lines loading the image. These lines are to get the image unpacked and configured. You can take them out after that.
Here they are:
busybox chroot $mnt /debootstrap/debootstrap --second-stage
echo 'deb http://ftp.de.debian.org/debian lenny main' >$mnt/etc/apt/sources.list
Thats it!
You need three basic packages: Android VNC Viewer: http://code.google.com/p/android-vnc-viewer/ , Tightvncserver (apt-get install tightvncserver), and icewm (apt-get install icewm).
When you get these installed (Android vnc viewer goes on the phone -- install from the browser), become su in Debian and run the command "vncserver". This will create an x-windows session and a startup file
in the /root/.vnc/ directory. Vncserver will also ask you to set up two passwrds. You will need the first password to log in, but just say no to the second password.
The next thing to do is to kill the session you just started: "vncserver -kill :1"
This is so you can edit the startup file to set it up correctly. cd to root/.vnc and run "nano xstartup".
comment out the line for xsession:
#/etc/X11/xsession
add these two lines:
icewm &
xterm
save the file (trackball "o" --this is control o), and exit nano (trackball x -- control x).
Then restart an x windows session by "vncserver" ( you should kill it after you are done with x-windows later on).
Next, go back to the phone and start Android-VNC-Viewr. You will get a log-in screen. You will need to enter your password you created and the address (localhost)and the port (5901).
Then press connect, and you are in an x-windows session, with a Debian icon in the lower seft corner of the screen. Click it and you are in business. There are instructions on running Android-VNC-Viewr
on their website.
You may want more room to install programs then you get on Saurik's image file. I created an image using his method at http://www.saurik.com/id/10.
The image is 3.7 gigabytes, and I have kde-core and LDXE installed and still have 2.4 gibytes free.
You have to add two lines to the bootdeb script after the lines loading the image. These lines are to get the image unpacked and configured. You can take them out after that.
Here they are:
busybox chroot $mnt /debootstrap/debootstrap --second-stage
echo 'deb http://ftp.de.debian.org/debian lenny main' >$mnt/etc/apt/sources.list
Thats it!
没有评论:
发表评论