Nandroid and Ubuntu 10.10 working off SD - HD2 Ubuntu Development

Original thread (Thanks Martin Rhodes):
http://forum.xda-developers.com/showthread.php?t=962023 (Join up original file parts with 7zip)
Instructions
Here are direct links to complete .img file and .sh file to be placed into ubuntu folder on root of SD card (Thanks Infinimint)
http://infinimod.com/projects/fire314/ubuntu-for-android/ubuntu.img
http://infinimod.com/projects/fire314/ubuntu-for-android/ubuntu.sh
Ingredients
ubuntu.img + ubuntu.sh (to be placed in a new folder named ubuntu on the root of your SD card)
Better Terminal Emulator (or other terminal emulator) + AndroidVNC (or other VNC client) from the market
To automate one click startup process via Better Terminal Emulator:
Preferences>Initial command:
Code:
export PATH=/data/local/bin:$PATH:.
su
cd sdcard/ubuntu
sh ubuntu.sh
Or type this for each new session in any terminal emulator:
Code:
su
cd sdcard/ubuntu
sh ubuntu.sh
It says .img loading for a bit. Seems like its not doing anything...it wont confirm when its loaded (about a minute in reality)...
Then I left Terminal running in background while it said it was still loading the img (but don't let it close via task killer or otherwise), held down the hardware menu or home button to switch programs for a bit and connected in via VNC (AndroidVNC)...
address: localhost, port: 5900, and password: ubuntu ... then hit connect (login details will be saved for next time)...
its working fine software keyboard etc and at good speed. In menu options select 24bit colour, local mouse, 1:1 scaling and Touchpad only to make navigating menus much easier.
Normal phone and Android functions should be fine.
Included applications include Firefox, Thunderbird, Openoffice.org suite, GIMP Image Editor, Emacs Text Editor (geared towards programming), C and C++ build-essential, Java JDK, Python, TeXlive and TeXmaker LaTeX editor, Transmission BitTorrent Client, eVince PDF Viewer, File Manager, Terminal, Image Viewer, Leafpad Text Editor, Synaptic Package Manager and Ubuntu Software Center with all repositories enabled, SSH server, Gnash (GNU flash player for Firefox) among others.
Short press hardware menu key to get mouse options etc and longpress to bring up software keyboard (using Android VNC).
Type exit in android terminal emulator to shut down the ubuntu image.
I am using the Hyperdroid Rom off NAND, overclocked at 1.2ghz and a 16GB class 6 microsd (although it should be independent to all this... worth mentioning)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
GIMP
Here is Open Office 3.2 on the HD2 using Smart Keyboard Pro from the market.
Edit 1. I Can use my bluetooth keyboard using this nandroid rom to edit open office etc
Edit 2. I can make full screen editing on my PC monitor/TV through connecting it via USB.
HD2 USB connected to a r3610 hanging behind a 42" HDTV connected through HDMI. Using my desktop keyboard and mouse. The Mouse scroll button and right click work just as they would on desktop!
Connect via usb to PC and enable usb debugging on your phone, needs android sdk installed on PC, then you run from pc command line
Code:
adb forward tcp:5900 tcp:5900
and you should be able to create a vnc conection from your pc (recommend TightVNC) to:
Code:
127.0.0.1:5900 [U]or type[/U] localhost:5900
and use password ubuntu displayed on your monitor or TV. Wireless solution.
In fact, you can use the same method to mirror the Android system using 'Droid VNC' server from the market.
Edit 3. Can also just connect straight to the device via VNC over WIFI but its slightly slower.
Type ifconfig into lxde terminal to find WIFI address, use your desktop VNC viewer (recommend TightVNC) and password ubuntu to log in.
Edit 4. Bluetooth mouse control with cursor now works as well (but its a bit jerky), works much better with 'Remote VNC Pro' from the market selecting use external mouse.
Edit 5. Can only seem to pair bluetooth mouse and keyboard input simultaneously using BlueInput.
Edit 6. To fit whole ubuntu display area onto HD2 screen (as above) or to otherwise change screen res via LXDE terminal:
Code:
export USER=root
vncserver -geometry 800x480
Restart AndroidVNC but connect to port 5901. You can automate this process by adding it to the end of the Better Terminal Emulator Initial Command script i.e
Code:
export PATH=/data/local/bin:$PATH:.
su
cd sdcard/ubuntu
sh ubuntu.sh
export USER=root
vncserver -geometry 800x480
Just remember to connect on port 5901 instead of 5900 using VNC subsequently.

Sound Great!!!!!!!!!! Be partient \m/ Rock On!!!!!!

does usb host works?

I haven't got USB host cables etc. I am just using localhost VNC or a Java based screen mirroring app over USB.
Was alot of fun today adding effects to my photos using GIMP and creating a presentation and exporting it to PDF, all on the train! Its like a UMPC now.

do you have sound? have you tried playing some video, or youtube? how's the performance in comparison with ubuntu v0.3 running from haret?
I made an usb hub for using since i've downloaded v0.3, will try this evening to see if it works with this build.

Sound is not possible in VNC chroots as of yet. The android YouTube or music player app is only a hardware click away though. Media is well served by android anyway IMO.
WIFI is shared with the android system but theres no cellular 3G connection (I wonder if a 3G unrestrictor application could work at some point though). Could use your 3G sim in a separate phone for MIFI/WIFI routering too.
Its never going to be preferable to a native port but its almost instant in responsiveness once apps have opened. It is very quick (on my device at least).

how long to boot img?
i use android 2.2
cpu overclock 1.2
.....why doesn't it boot to VNC??
sry for my bad english

Well, I gave this a try. I guess I'm doing something wrong. It ran through all of the commands without any pause... (which seemed odd) ... and I couldn't connect through VNC. Any way to troubleshoot this?
Edit: Changed to TyphooN CyanogenMod 7 rom and it worked fine. Thanks for the link

Danation said:
Well, I gave this a try. I guess I'm doing something wrong. It ran through all of the commands without any pause... (which seemed odd) ... and I couldn't connect through VNC. Any way to troubleshoot this?
Edit: Changed to TyphooN CyanogenMod 7 rom and it worked fine. Thanks for the link
Click to expand...
Click to collapse
i did id but when use moliza
can you use keyboard

i did id but when use moliza
can you use keyboard
Click to expand...
Click to collapse
Longpress the hardware menu (windows) button to use your android software keyboard. Or use a bluetooth keyboard if your ROM supports it.

had anybody success downsizing the img with uec-resize-image, i dont need 3.5GB...
edit: 2G is to small, choosed 2500M, worked fine

I will test this soon, I hope this will work great.

i used the ubuntu.img from this thread
made:
e2fsck -f ubuntu.img
uec-resize-img ubuntu.img 2500M (2G is too small)
put it in the root folder of the sd card
used the deboot from http://forum.xda-developers.com/showthread.php?t=1029390
and put in the root of the sdcard
and changed the section
losetup /dev/block/loop5 /sdcard/debian.img
to
losetup /dev/block/loop5 /sdcard/ubuntu.img
works really fine.
creates a debian folder but that could be also changed in the deboot file
and you can call the deboot file however you want, even bootubuntu.
really great thanks.
other links, that helped me:
http://nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-nexus-oneandroid/
http://forum.xda-developers.com/showthread.php?t=962023&highlight=uec-resize-image
http://forum.xda-developers.com/showthread.php?t=1029390
http://forum.xda-developers.com/archive/index.php/t-744236.html
H'm worked once. But now I get invalid argument when it comes to mounting the loop

I've tried to boot ubuntu from better terminal emulator pro, but it wont...
I've only this message:
*WARNING: If you have more than 255 apps installed on the SDCard, then mounting apps on the SDCard associate with an encrypted loop device, and there are only.
You have to go to Setting -> Manage Applications -> On SDCard, and move some a.
Please wait while booting ubuntu.img.. This can take some time...*
Does anyone can explain me why ubuntu dont boot after waiting for 30 min?
EDIT: It work now, it just don't say if the loading is OK. So I was waiting for nothing...

Links not working!! it says Time Out!

GuimbardePower said:
I've tried to boot ubuntu from better terminal emulator pro, but it wont...
I've only this message:
*WARNING: If you have more than 255 apps installed on the SDCard, then mounting apps on the SDCard associate with an encrypted loop device, and there are only.
You have to go to Setting -> Manage Applications -> On SDCard, and move some a.
Please wait while booting ubuntu.img.. This can take some time...*
Does anyone can explain me why ubuntu dont boot after waiting for 30 min?
EDIT: It work now, it just don't say if the loading is OK. So I was waiting for nothing...
Click to expand...
Click to collapse
For me the same first, but then I understood the way. I get the 800x480 res .. Great work, thanks. Now I'd like only know how to try ,if possible, the KDE desktop (I don't remember the way to launch it). A great BRAVO for your WORK.

how to run a usb host?

I'm having trouble downloading from the links in the top post - it's going very slow. Any chance of a torrent link?

works ok. only problem is that it is a bit slow. plus usb keyboard and mouse doesnt work. can you help me on that ?

Cool but what about Ubuntu 11.04?

Related

[APP]Ubuntu Install Guide -Atrix Testers wanted

Hello guys,
Thank you all for the amount of support you have given this project! I have now decided to stop updating this thread. If people still have bugs or want to keep following this project please go to the Main project thread HERE.
I will stop updating this thread because I feel we now know what roms/kernels do and don't work so there is no need for me to keep updating this thread (And the other 5 threads I run for certain devices), but of cause if you do still have problems reply to the main thread or PM me!
Once again thank you all!!
I have released the first version of my app, which guides you through the installation of Ubuntu within android via chroot. It includes a ubuntu 10.10 image I have been working on which includes lots of program to allow users to develop program/scripts etc within Ubuntu on there phone/tablet.
However I have only been able to test the app on my HTC Desire S and Gen 8 Archos tablet and as such I need you guys to test this on your phone/tablet and post back how it works on your device!
Please post your device/kernel/rom along with what did and didn't work, so I can draw up what I need to change in the next release of the app/ubuntu build.
Website
http://zpwebsites.com/android-app/ubuntu-install-guide/devices/
Video
http://youtu.be/3WNeY9b5DIg
App Download
Free App
Paid App
Boot Script
ubuntu.sh(V5)
Full Images
These images are 1.5GB to download, once extracted 3.5GB, and include alot of programs like openoffice, thunderbird, firefox and over programs for 'developing'
Ubuntu 10.10 V4 - 800x480
Ubuntu 10.10 V4 - 854x480
Ubuntu 10.10 V4 - 960x540
Ubuntu 10.10 V4 - 1024x600
Ubuntu 10.10 V4 - 1280x800
Lightweight Images
These images are just under 500MB to download, once extracted 2.5GB, and include only programs needed (LXDE desktop, firefox, + other basic programs)
Ubuntu 10.10 V4 - 800x480
Ubuntu 10.10 V4 - 854x480
Ubuntu 10.10 V4 - 960x540
Ubuntu 10.10 V4 - 1024x600
Ubuntu 10.10 V4 - 1280x800
I also want to build up a small group of testers who I can email with new images and scripts, these will include all future distros that I do. If you are interested in joining this test group please PM me or send a email to [email protected]
The only requirement is that your willing to test and send feedback along with screen shoots etc where required, it would also be good if your willing to try different roms and kernels for your device!
Sig Banner
Show your love of ubuntu on android with my sig banner:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
image url is "http://dl.dropbox.com/u/11206993/ubuntuuser.png"
Other Guides
Like this guide? want to try something different? then check out my other guides for different distro's
Backtrack - This is a distro that is based around security testing, it also includes the Gnome desktop environment and a range of other programs.
Updates
06/01/12
*PAID app file downloads now use new fast FTP server and support direct downloading (click the button to download a image and it starts to download right away)
*New boot script which has fixed problems with it not booting on alot of devices, and fixed problem which some people getting a grey screen when loading UI
*Boot script now downloaded in zip file to fix problems with downloading script
*Both apps fixed to support low resolutions
*Both apps cleaned up
28/12/11
*PAID app now supports 960x540 'qHD' resolution
*ALL Ubuntu lightweight images cleaned up even more saved another 300MB of space
*ALL Ubuntu images updated with all new updates
*ALL Ubuntu images now in .zip format to fix problems with some peoples devices failing to extract the .rar files
*Boot script updated, once booted now terminal acts like a command line interface for Ubuntu, and some boot problems now fixed
*Image and boot script now downloadable separately to allow easier updating
19/12/11
New 'lighter' ubuntu image options for all resolutions already supported
15/12/11
New ubuntu images with all updates up to 15/11/11
FREE app ubuntu image resized to fit 800x480 resolution
PAID app ubuntu images now includes 4 images for 800x480, 854x480, 1024x600 and 1280x800 resolutions
See how deep the rabbit-hole goes...
http://linuxonandroid.blogspot.com/
Hopefully tomorrow I will have time to upload images that fit the atrix qHD screen.
Sent from my HTC Desire S using XDA App
Downloading as I type, will let you know.
This is the image I get. Running darkside 4.2 lite, faux123 latest 1.3, fruitcake 2.3.5, debian mod. Used the lite app until it works then will purchase full version.
Included sh wouldn't connect but v3 connects just nothing to see.
Can move around just nothing to see. Let me know if you need any help or have anything you want me to try.
Sent from my awesome atrix thanks to all the devs here!
Does nothing when "sh ubuntu.sh" is typed.
Don't know if it's my rom (it's a foreign rom with no list of features) or the app.
Will this work with the lapdock? It has a rez of 1366X768, will it retain the lapdock functionality?
Try to download the ubuntuv3.sh and put it in the same extracted folder and run that in terminal. That is what I had to do. Then go to home and open and log in with vnc.
Sent from my awesome atrix thanks to all the devs here!
well it works with lapdock but they damn thing wont go into landscape on lapdock
Just curious for those running it, can you go back to normal android still from ubunto or do you have to wipe and reflash the ROM to get back to normal android? I want to test it but curious if I can revert back easier.
Sent from my Atrix XDA Premium App
Killer0Kevin said:
Does nothing when "sh ubuntu.sh" is typed.
Don't know if it's my rom (it's a foreign rom with no list of features) or the app.
Click to expand...
Click to collapse
odd make sure you have cd into the right folder and that the script isn't crupt
morepower71 said:
This is the image I get. Running darkside 4.2 lite, faux123 latest 1.3, fruitcake 2.3.5, debian mod. Used the lite app until it works then will purchase full version.
Included sh wouldn't connect but v3 connects just nothing to see.
Can move around just nothing to see. Let me know if you need any help or have anything you want me to try.
Sent from my awesome atrix thanks to all the devs here!
Click to expand...
Click to collapse
interesting so Ubuntu is running but the ui dosnt load, will look into this and get back to you.
cyris69 said:
well it works with lapdock but they damn thing wont go into landscape on lapdock
Click to expand...
Click to collapse
could I get some screen shoots to see what you meant
Voelker45 said:
Just curious for those running it, can you go back to normal android still from ubunto or do you have to wipe and reflash the ROM to get back to normal android? I want to test it but curious if I can revert back easier.
Sent from my Atrix XDA Premium App
Click to expand...
Click to collapse
you can go back to android just by hitting home. however the sdcard gets mounted for Ubuntu so to stop Ubuntu you have to restart the phone
Change log for new release (release will be in the next few days for paid end of next week for free) - all new images etc will be added to the first post as they are finished and uploaded!
*PAID app now supports 960x540 'qHD' resolution
*ALL Ubuntu lightweight images cleaned up even more saved another 300MB of space
*ALL Ubuntu images updated with all new updates
*ALL Ubuntu images now in .zip format to fix problems with some peoples devices failing to extract the .rar files
*Boot script updated, once booted now terminal acts like a command line interface for Ubuntu, and some boot problems now fixed
*Image and boot script now downloadable separately to allow easy updating of the script
*+more likely before release
I can't run Ubuntu, cause I have a problem with VNC.
VNC connection failed!
localhost/127.0.0.1:5900 - Connection refused!
Stock 2.3.4
ovitz said:
I can't run Ubuntu, cause I have a problem with VNC.
VNC connection failed!
localhost/127.0.0.1:5900 - Connection refused!
Stock 2.3.4
Click to expand...
Click to collapse
When you run the ubuntu.sh what is output? i.e. does ubuntu run and you just cant connect to the GUI or does ubuntu not run at all
that's awesome!
Atrix (Gingerbread2) stock ..
download
I am a failure "init.sh" when I type sh .. ubuntu.sh
1 - missing first create a folder in / data / local / mnt / etc (I created), I had this error again.
2 - now past the terminal post is missing this file in / root
Can someone pass me this file for me to try?
leonardoaraujo said:
that's awesome!
Atrix (Gingerbread2) stock ..
download
I am a failure "init.sh" when I type sh .. ubuntu.sh
Click to expand...
Click to collapse
Could I get a screen shoot of the terminal output
Sent from my HTC Desire S using XDA App
#sh ubuntu.sh
mkdir failed for /data/local/mnt, file exists
loop device exists
losetup: /dev/block/loop7: device is busy
mount: Invalid argument
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: applet not found
mount: applet not found
sysctl: applet not found
Ubuntu is configurated with SSH and VNC servers that can de accessed from the IP:
eth0: no such device
chroot: cannot execute /root/init.sh: No such file or directory
shutting down Ubuntu ARM
failed.
failed.
failed.
failed.
ioctl: LOOP_CLR_FD: No such device or address
#
leonardoaraujo said:
#sh ubuntu.sh
mkdir failed for /data/local/mnt, file exists
loop device exists
losetup: /dev/block/loop7: device is busy
mount: Invalid argument
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: applet not found
mount: applet not found
sysctl: applet not found
Ubuntu is configurated with SSH and VNC servers that can de accessed from the IP:
eth0: no such device
chroot: cannot execute /root/init.sh: No such file or directory
shutting down Ubuntu ARM
failed.
failed.
failed.
failed.
ioctl: LOOP_CLR_FD: No such device or address
#
Click to expand...
Click to collapse
Thank you, yup it's the same problem a good few people are getting, I believe it's down to loop support, but I'm not completely sure and with no device getting this bug to test on I just have to keep trying
Sent from my HTC Desire S using XDA App
I will be your tester that man, I want to help you figure out how I warn you ...
I know a little linux ... lol
There is a file that is missing in this rom, (according to the terminal), init.sh the file in / root
I pass it (if you have), I do not care bootloops, I do not mind having to install the rom again if necessary ...
ps:strange ..... I "image corrupted" when trying to script the original (in the zip) ..
this is what I get
leonardoaraujo said:
I will be your tester that man, I want to help you figure out how I warn you ...
I know a little linux ... lol
There is a file that is missing in this rom, (according to the terminal), init.sh the file in / root
I pass it (if you have), I do not care bootloops, I do not mind having to install the rom again if necessary ...
ps:strange ..... I "image corrupted" when trying to script the original (in the zip) ..
Click to expand...
Click to collapse
Thanks dude,
The file missing error is because it's trying to run a script in the Ubuntu image that starts vnc etc.
But as Ubuntu isn't mounting it can't access it.
Sent from my HTC Desire S using XDA App

[MOD] Run Ubuntu 10.10 on your SGS2

http://forum.xda-developers.com/showthread.php?t=1223128
^Original thread in the I9100 forum by: Jdouce^
Should work on SGH-i777 as well... Just thought I'd share.
(edit) TESTED -and this does in fact work. You can even access the Linux UI via any VNC viewer as long as you're on the same network as your phone or tethered. I have added to the tutorial below to specify. You can also access your Android file system and access everything via this image. I leave you to drool.
***(edit 2) If you can't figure it out, I have found Ubuntu installers available on the Market, but they require you to use your internal storage space. This version can be installed on either internal OR external memory. The performance and UI of this version is better too. The versions available via app are not optimized as well as this one. =) - Just know that there is a foolproof way to accomplish this if you can't read directions... Just search "ubuntu" in the Market.
-----Original Post (with clarifications and additions by Monsieurtalbot)-----
DO NOT UPDATE UBUNTU TO 11.04/11.10 IT'S HORRIBLY SLOW AND BREAKS THE .IMG! -
YOU CAN HOWEVER INSTALL ANY OTHER UPDATES AND APPS JUST FINE.
1. Download the Ubuntu files (2 part .rar)
File sizes should be;
Part1 = 900 MB
Part2 = 572 MB
Part1 Download
Part2 Download
2. Open Part1 and unrar the folder and copy to your internal sdcard (/sdcard) OR external SD card (/sdcard/external_sd) - this unrar's both parts.
**there should be 2 files - "ubuntu.img" & "ubuntu.sh" - these go into an "ubuntu" folder in one of these locations.
3. Open the Market (now Play Store) - download and install terminal emulator and Android VNC viewer - Both free.
4. Open Terminal emulator. Depending on where you copied the files mentioned in step 1/2, enter ONE of the following sets of commands.
**Remember. Commands and directories are case sensitive, so make sure everything (including the file names and folder title) is lowercase to make it work.
(if you copied to the INTERNAL sdcard)
Code:
cd /sdcard/ubuntu
su
sh ubuntu.sh
(if you copied to the EXTERNAL sdcard)
Code:
cd /sdcard/external_sd/ubuntu
su
sh ubuntu.sh
press home - and DO NOT CLOSE the terminal. You need to keep this shell open.
(you can also get an app called "Script Manager" from the Play Store to make re-entering these commands simple later.)
5. Open the Android VNC viewer and connect using the following settings.
Code:
address: localhost
port: 5900
password: ubuntu
set color to 24 bit
You can also use a VNC viewer on a PC or tablet to access the Linux UI, and use the keyboard and mouse using your favorite VNC viewer (I was using TightVNC on Windows) with the following settings while both devices are connected to the same WIFI (or tethered to the phone)
Code:
address: (your phone's local IP address here)
port: 5900
password: ubuntu
set color to 24 bit
VOILA - You now have Ubuntu 10.10 running on your device.
6. WHEN FINISHED- Shut down Ubuntu in the UI, disconnect VNC, then in the Terminal Shell type: "exit" without quotes and press <enter> to clean up the Linux image mount for next boot. Failure to do this may result in a corrupt install. Once you see a "#" with no commands, it is safe to close the terminal window.
_______________________________________________________
Whats Working?
USB Host - Using adapter cable available online to attach keyboard, mouse, or Flash drives.
WiFi
3G
Browsers- any of them... I suggest Chromium over Firefox, but they both do the trick.
Installing Applications
Updating (NOT UPGRADING to 11.04/.10)
Its pretty much working, let the OP (linked above) know if you have issues.
***HELP! UBUNTU WORKED BEFORE, BUT NOW IT WON'T BOOT-
The image creates a new folder to mount the Linux files at "data/local/mnt"... Connecting USB to a PC, unmounting the storage device the image is stored to, a forced shut down, or unexpected occurance in the shut down procedure CAN cause this. It's due to "stuck" files in that directory. -Attempt to clear the contents of this folder - followed by a reboot if you have any issues. You can do this using root explorer, or with the following terminal commands.
Code:
su
rm r /data/local/mnt
GOOD LUCK!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
-----END OF ORIGINAL POST-----
Downloading now. I would love a great workiing version of this os on my sgs2
May I ask what kernel you use? I get a "VNC connection failed" when trying to connect, on Siyah 2.6.12.
Fallen Advocate said:
May I ask what kernel you use? I get a "VNC connection failed" when trying to connect, on Siyah 2.6.12.
Click to expand...
Click to collapse
Entropy's Daily... Latest always... Although it shouldn't matter.
How do you clear the memory?
Interesting tweak, thanks for sharing.
Very interesting will definitely try this out. Has anyone got.it running yet?
Sent from my SAMSUNG-SGH-I777
What does an OS do on android? Does it make it like a PC? Hows it look/interact on the screen?
Sent from my SAMSUNG-SGH-I777 using XDA App
IVIadness said:
How do you clear the memory?
Click to expand...
Click to collapse
By shutting down, disconnecting VNC, and closing the terminal window.
Edgarhighman said:
What does an OS do on android? Does it make it like a PC? Hows it look/interact on the screen?
Sent from my SAMSUNG-SGH-I777 using XDA App
Click to expand...
Click to collapse
It is a FULL version of Ubuntu 10.10.
Google, FOOL! ;-)
Nizda1 said:
Very interesting will definitely try this out. Has anyone got.it running yet?
Sent from my SAMSUNG-SGH-I777
Click to expand...
Click to collapse
If you can copy 2 files to an ubuntu folder on the root of your SD, install 2 apps in the market, and type in 3 commands, you can get this running.
Simple, eh?
What happens if I want to go back to android os?
EDIT: Sorry, I skipped the part that said that it was an emulator.
EDIT 2: I didn't know anything about Android back then...
Having problems running this past terminal. What Kernels can be used with this? NEAK? Siyah? I get this in terminal.
a/local/bin: $PATH
[email protected]:/ $
What am I doing wrong?
---------- Post added at 10:03 PM ---------- Previous post was at 09:57 PM ----------
I'm on ICS 4.0.3 XWLPD (Shostock)
lolol i'm gonna build cm10 with this on my GS2. I'll see you guys in a few weeks.
The download links aren't working :/
I know this is an older post but can we get the links working again?
Sent From My SGH-S959G Using Tapatalk 2

[Ubuntu] T3buntu

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Please OP remove my old post about Ubuntu on Tab 3...
T3buntu (Had to call it something...)
Disclaimer:
What you do with this information is up to you. If your device breaks while trying anything in here you do that at your own risc.
I cant be held responsible for anything that happens to your device.
Everything in here was tested on a Samsung Galaxy Tab3 10.1(5210) if you try anything in here on any other device thats up to you.
Most of the work is made by the Linux on Android team i have just tested and fixed some stuff.
The image is ext2, x86 but im working on a ext4, AMD64 image.
”Changelog”
1. Replaced lxde with KDE Plasma
2. Added entryś in etc/fstab for int/ext SdCards
3. Edited bootscript from the Linux on Android team so that the SdCards in the Tab is correcly mounted and works with fstab.
4. Installed "missing" packages to minimize errors.
Works:
Wifi
Battery indicator
Int/Ext SdCard
Most of the stuff in Ubuntu.
Issues:
Leftpanel is black
Slow startup, but can be fixed. I will add that later.
Some apps dont work if you start them as root.
Couldnt make jpg work as wallpaper so using png at the moment.
Rotation isnt setup since we cant use xrandr to rotate the screen..
Not tested:
GPS
ToDo
Streamline startup
Add init.d support on the Tab
Tweaking were ever possible.
Fix sound
Now for the fun stuff.
Installation:
1. Root your device. I used this Guide.
2. Install Busybox.
3. Install Linux on Android.
4. Install a VNC client of your shoice, i preferr Jump Desktop free.
5. Copy bootscript.sh to /data/data/com.zpwebsites.linuxonandroid/files/ overwrite the old file.
6. Unpack and Copy the t3buntuv1.2_20131216.img to a place of your choosing on either internal or external sdcard.
7. Make a Linux on Android widget and point it to the img file you copied in 6.
OBS !! This image is preconfigured with the user ubuntu and psw t3buntu..
8. Now click on the LOA widget you made in 7 and let linux ”bootup”
9. In your VNC client connect to localhost.
DONE ! Your now in Ubuntu..
If you want more screenspace you can uncomment
# service call activity 42 s16 com.android.systemui
In bootscript.sh this will remove the android panel. The problem with this at the moment is that to
get it back you have to restart the Tab becourse the ´am´ command to get it back ”Seg faults” on
my tab and i havnt figured out why yet.
Consider this image as alpha...
OBS !! The image file is BIG 1.4GB compressed and 4GB decompressed. Will try and make it smaller not sure how the Linux on Android team made there images so small...
LINK to imagefile
LINK to bootscript
Credits
Linux on Android team
The one that made the scripts from the start. Not sure who made them...
How about a link to get 3. Linux on Android.
I know I'm top lazy to Google.
Sent from my GT-P5210 using XDA Premium HD app
Awesome! Glad to see something! And having Ubuntu is a very cool os to have! Good work and thank you!
Sent from my SCH-I605 using xda app-developers app
Added links to Linux on Android and Busybox in first post.
Nice, but there are a few things...
The bootscript.sh contains one little, but crucial error.
At line 172, character 44, you forgot one space, which makes the mount procedure unusable:
Code:
$bbox mount -o bind /storage/extSdCard $mnt/extSdCard
Which should be:
Code:
$bbox mount -o bind /storage/extSdCard $mnt/extSdCard
Without this (for me) it failes while it's starting up.
And, another thing, my tablet reboots at the moment I have to run VNC to start the X server, even though I'm not doing or touching anything.
After reboot it doesn't start up t3buntu either.
But, very good work !!
And yes, I do have Samsung Galaxy Tab 3 10.1 GT-P5210...
RubenStauttener;48606882]Nice, but there are a few things...
The bootscript.sh contains one little, but crucial error.
At line 172, character 44, you forgot one space, which makes the mount procedure unusable:
Code:
$bbox mount -o bind /storage/extSdCard $mnt/extSdCard
Which should be:
Code:
$bbox mount -o bind /storage/extSdCard $mnt/extSdCard
Without this (for me) it failes while it's starting up.
Havnt noticed any problems here but i have added the space and updated the script since both versions works for me.
And, another thing, my tablet reboots at the moment I have to run VNC to start the X server, even though I'm not doing or touching anything.
After reboot it doesn't start up t3buntu either.
Does it reboot during script execution ? It do sound like a mem issue. Do you have widgets and such running in android ?
You can try with enabling the swapfile in bootscript.sh .
But, very good work !!
And yes, I do have Samsung Galaxy Tab 3 10.1 GT-P5210...
I've got the terminal up and running fine. But I can't VNC into it. What settings are you using for you VNC viewer?
How about native graphic support using libhybris? Or since this device use PowerVR SGX 544, is native X11 possible? Reference: https://wiki.archlinux.org/index.php/Intel_GMA3600
EDIT: https://github.com/trevd/android_kernel_samsung_santos10/tree/cm-10.2/drivers/staging/mrst/pvr and https://github.com/thomas001/cedarview-drm/tree/master/staging/cdv/pvr looks similar
Thanks for sharing but it's not working
VNC: autentification failed !
Jump Desktop: It ask a password, and I don't have this password !
Sent from Gallifrey using TARDIS
Nonta72 said:
Thanks for sharing but it's not working
VNC: autentification failed !
Jump Desktop: It ask a password, and I don't have this password !
Sent from Gallifrey using TARDIS
Click to expand...
Click to collapse
Test password: ubuntu
When run script say mnt error =/
zorrigas said:
Test password: ubuntu
When run script say mnt error =/
Click to expand...
Click to collapse
Thanks, but I already solved it :good:
Sent from my GT-5210 powered by AmatROM HD
Hi, I posted a question in the Q&A forum (them 10 posts), but I guess it really belongs here.
Tried this on my TWRP rooted UANB4 stock rom P5210, stock kernel. And I get the following with your script and image:
Code:
[email protected]:/ $
[email protected]:/ $ cd /storage/extSdCard/Img
[email protected]:/storage/extSdCard/Img $ su
[email protected]:/storage/extSdCard/Img # sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /storage/extSdCard/Img/t3buntuv1.2_20131216.img
Checking loop device... FOUND
mount: mounting /dev/block/loop255 on /data/local/mnt failed: Invalid argument
Error: Unable to mount the loop device!
1|[email protected]:/storage/extSdCard/Img #
Line : $bbox mount -t ext2 /dev/block/loop255 $mnt
Do I tell busybox to overwrite the mount command?
Otherwise, excellent work, cant wait till I have it running.
*EDIT*
Turns out I just had to copy the image again, I guess my first transfer got cut off.
Totally works, thx
hey. i noticed that the last update was in April of 2014. i was wondering if there was any updates on this.
getting linux on my tablit was the #1 reason i chose to root my GT-P5210 in the first place.
Homage said:
hey. i noticed that the last update was in April of 2014. i was wondering if there was any updates on this.
getting linux on my tablit was the #1 reason i chose to root my GT-P5210 in the first place.
Click to expand...
Click to collapse
I did not try this one. I bet itworks in VNC as it tell us. Instead i did
http://forum.xda-developers.com/showpost.php?p=58175673&postcount=54
I guess I can say it work aceptable in VNC mode, definitly work nice in comand mode. I been working in a native solution but it is a hard bone for my teeth. Look in the general area.
Download link is down
I would like to run Ubuntu on my Tab 3 but the link doesn't work. Could some upload a working link please?
Hi Guys,
Anyona has this .sh script and the t3buntuv1.2_20131216.img file? if you send me im hosting and distributing free as i live i want to use for my home automatization.
THX
G
jorgen_gustavsson said:
Please OP remove my old post about Ubuntu on Tab 3...
T3buntu (Had to call it something...)
Disclaimer:
What you do with this information is up to you. If your device breaks while trying anything in here you do that at your own risc.
I cant be held responsible for anything that happens to your device.
Everything in here was tested on a Samsung Galaxy Tab3 10.1(5210) if you try anything in here on any other device thats up to you.
Most of the work is made by the Linux on Android team i have just tested and fixed some stuff.
The image is ext2, x86 but im working on a ext4, AMD64 image.
”Changelog”
1. Replaced lxde with KDE Plasma
2. Added entryś in etc/fstab for int/ext SdCards
3. Edited bootscript from the Linux on Android team so that the SdCards in the Tab is correcly mounted and works with fstab.
4. Installed "missing" packages to minimize errors.
Works:
Wifi
Battery indicator
Int/Ext SdCard
Most of the stuff in Ubuntu.
Issues:
Leftpanel is black
Slow startup, but can be fixed. I will add that later.
Some apps dont work if you start them as root.
Couldnt make jpg work as wallpaper so using png at the moment.
Rotation isnt setup since we cant use xrandr to rotate the screen..
Not tested:
GPS
ToDo
Streamline startup
Add init.d support on the Tab
Tweaking were ever possible.
Fix sound
Now for the fun stuff.
Installation:
1. Root your device. I used this Guide.
2. Install Busybox.
3. Install Linux on Android.
4. Install a VNC client of your choice, i preferr Jump Desktop free.
5. Copy bootscript.sh to /data/data/com.zpwebsites.linuxonandroid/files/ overwrite the old file.
6. Unpack and Copy the t3buntuv1.2_20131216.img to a place of your choosing on either internal or external sdcard.
7. Make a Linux on Android widget and point it to the img file you copied in 6.
OBS !! This image is preconfigured with the user ubuntu and psw t3buntu..
8. Now click on the LOA widget you made in 7 and let linux ”bootup”
9. In your VNC client connect to localhost.
DONE ! Your now in Ubuntu..
If you want more screenspace you can uncomment
# service call activity 42 s16 com.android.systemui
In bootscript.sh this will remove the android panel. The problem with this at the moment is that to
get it back you have to restart the Tab becourse the ´am´ command to get it back ”Seg faults” on
my tab and i havnt figured out why yet.
Consider this image as alpha...
OBS !! The image file is BIG 1.4GB compressed and 4GB decompressed. Will try and make it smaller not sure how the Linux on Android team made there images so small...
LINK to imagefile <===== this URL broken
LINK to bootscript <===== this URL broken
Credits
Linux on Android team
The one that made the scripts from the start. Not sure who made them...
Click to expand...
Click to collapse

BusyDrop 1.02: SSH & Busybox for the Fire TV

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
SSH for the Rooted Fire TV
Secure Shell (SSH) is a cryptographic network protocol for secure data communication, remote command-line login, remote command execution, and other secure network services between two networked computers.
So what? Why do I want this on my Fire TV?
Right now, the only means of communicating with your Fire TV is through ADB, which is fine, but has limitations, mainly due to the fact that adb does not run as root.
SSH does, so those limits are removed. Using scp or even better sftp you can easily copy files to and from any area on your Fire TV, issue commands via ssh and more.
Details are HEREhttp://www.jocala.com/busydrop.html
reserved
Note: If you are an adbFire user you already have this. Just select "Install SSH" from the root menu.
Note: This is probably not compatible with other busybox installs. They do vary depending on compile-time options. Please uninstall Google Play busybox installs or other variants before installing BusyPlay!
Nice. I look forward to trying this out soon.
SSH helper apps
Canyaya' pid='1817081' dateline='1413750441 said:
Hi Jocala, thank you for all your work. When you install the sftp server, what is the username and password?
Click to expand...
Click to collapse
This is a cross-post from another forum. I thought it might be useful here.
root/password -- the userid should default to root
The command-line "ssh "helper" apps are:
Manually start the server with a password (no spaces)
Code:
sshstart
Usage: sshstart password -- arguments: the password you want to use
Kill sshd immediately
Code:
sshstop
Usage: sshstop -- no arguments, immediately kills ssh server
Show sshd status
Code:
sshstatus
Usage: sshstatus -- no arguments, gives ssh server status
Create sshd startup script with given password
Code:
sshinit
Usage: sshinit password -- arguments: the password you want to use (no spaces)
this program creates the file /etc/init.d/02sshd that starts sshd at boot
Delete sshd startup at boot script
Code:
sshboot
Usage: sshboot -- arguments: rm
Typing sshboot rm deletes the file /etc/init.d/02sshd that starts sshd at boot
Should i uninstall my playstore busybox before installing this?
jmandawg said:
Should i uninstall my playstore busybox before installing this?
Click to expand...
Click to collapse
Yes.
So I gave this a try following your instructions as it looked like it would work great for backing up cwm recovery files to my PC. I followed all the instructions installing the zip through cwm recovery and rebooting but when I click on ssh on adbfire 1.11 it says fatal error connection refused. Any idea what I might have done wrong or how to get it working. I have installed putty on my computer and I tried to connect directly through putty as well but that wouldn't work either. How can I test if the ssh server is working or not?
**edit: I got it to connect to putty and winSCP after uninstalling the busybox I had installed and installing the busybox through adbfire 1.11 I can see this being a very powerful and useful tool for the Fire TV. Very nice work jocala. I still can't see the cwm recovery files I would like to back-up though. Shouldn't they be in the /storage/emulated/legacy/clockworkmod folder unless I am missing something?
rotor00ter said:
So I gave this a try following your instructions as it looked like it would work great for backing up cwm recovery files to my PC. I followed all the instructions installing the zip through cwm recovery and rebooting but when I click on ssh on adbfire 1.11 it says fatal error connection refused. Any idea what I might have done wrong or how to get it working. I have installed putty on my computer and I tried to connect directly through putty as well but that wouldn't work either. How can I test if the ssh server is working or not?
**edit: I got it to connect to putty and winSCP after uninstalling the busybox I had installed and installing the busybox through adbfire 1.11 I can see this being a very powerful and useful tool for the Fire TV. Very nice work jocala. I still can't see the cwm recovery files I would like to back-up though. Shouldn't they be in the /storage/emulated/legacy/clockworkmod folder unless I am missing something?
Click to expand...
Click to collapse
I've added notes concerning Google Play busybox installs and adbFire.
/storage/emulated/legacy (/sdcard) is where my clockworkmod directory is. I haven't done a backup, so mine is empty.
Does this allow using keys?
{ParanoiA} said:
Does this allow using keys?
Click to expand...
Click to collapse
It should, although I haven't tried. A new startup script would be needed, sshstart is hardcoded to startup using a password.
BusyDrop 1.01 released
Changelog: update to BusyBox v1.22.1 (2014-10-26 17:14:21 EDT)
This setup is awesome for transferring files to and from the Fire TV. Much better and easier than adb once you get it set up properly. I have been using this with WinSCP and it has worked perfectly.
thank you very much for this. im loving it.
Is there a benefit to using this over an app like Servers Ultimate?
hazard666 said:
Is there a benefit to using this over an app like Servers Ultimate?
Click to expand...
Click to collapse
Obviously I think so or I wouldn't have taken the time to develop it. Are you a user of this other app?
jocala said:
Obviously I think so or I wouldn't have taken the time to develop it. I hope you don't want to debate the merits of my project against another in my thread. That wouldn't be very nice.
Click to expand...
Click to collapse
Or it's a completely valid question and I was wanting some input, but if you have issue with answering then ok.
Edit: What difference does it make whether I am or not a user of another app? I was asking if there is a benefit to using your app since I already have an established solution. Nevermind though.
hazard666 said:
Or it's a completely valid question and I was wanting some input, but if you have issue with answering then ok.
Edit: What difference does it make whether I am or not a user of another app? I was asking if there is a benefit to using your app since I already have an established solution. Nevermind though.
Click to expand...
Click to collapse
My apologies, rapid post at the end of a long bad day. I regretted my snappish response as soon as I hit enter, and edited, but not soon enough.
jocala said:
My apologies, rapid post at the end of a long bad day. I regretted my snappish response as soon as I hit enter, and edited, but not soon enough.
Click to expand...
Click to collapse
It's quite alright. I'm not too happy with my current setup so I will be trying out BusyDrop.
hazard666 said:
It's quite alright. I'm not too happy with my current setup so I will be trying out BusyDrop.
Click to expand...
Click to collapse
If you have any questions I'll be more than happy to assist. Now I'm going to bed before I kick my dog or do something else that will embarrass me tomorrow.
+1 for being able to ssh in using a key and disabling password logins. It makes it easy to log in from putty and other ssh clients, more secure and I don't have to record one more password.

HW Accelerated Linux under ChromeOS or Crostini on steroids

Recently I purchased a shiny new Lenovo Ryzen 7 3700C chromebook with 16 gigs of ram and the dream of hardware accelerated Linux. ...and Google dashed my dreams pretty bad lol. I think most people know that if you try to enable gpu acceleration with an AMD computer, you're asking for seizure-inducing glitching.
I did notice some interesting things, though... scrcpy was able to stream my phone pretty flawlessly after I passed it over to Linux. The response was staggering, scrcpy was able to keep up with my phone screen updates with no lag. There was only 1 problem... the mouse icon was all glitched up. Sometimes, it was just a few random dots.. other times it was non-existent. Kinda depressing right?
After much research, it turns out that ChromeOS has an awesome mouse hack under the Accessibility section... It's called "Highlight mouse when moving." This was almost like the holy grail here! Using this feature makes a red circle around your mouse position whenever you move it.
Now, we're starting to have some fun! Scrcpy works perfectly here... so what else works? I tried multiple applications and I noticed that if the application renders the screen continuously, like a game, there are no graphics glitches ( other than the aforementioned mouse problem. ). That's great if all we want to do is play games in the Linux VM, but other applications, like firefox, are horrible glitchy messes. I ended giving Lenovo a 3* review because I felt there was soo much potential that Google left on the table because you have to reboot the system every time you switch from gpu acceleration to no gpu acceleration. It was enough to drive a guy batty.
Then I happened across an article that really intrigued me, someone installed Windows 10 on their Chromebook using qemu and it hit me like a light... I totally forgot that new Chromebooks supported NESTED KVM. I think it's a little too soon to run Windoze under Qemu because there are currently no Windows drivers for virgl acceleration. Linux.. OTOH... oh yes, Linux does support Virgl.
TLDR: I was disappointed with Google's implementation of the Linux VM and will briefly describe how to run a true HW accelerated Linux VM.
Step 1. Start up Linux (Beta) with as much hard drive space as you can... I'd say about 80% of your storage
Step 2. Enable Crostini gpu accereation using chrome://flags/#crostini-gpu-support => enabled
Step 3. Start up your Linux terminal and bring everything up to date: sudo apt update ; sudo apt upgrade
Step 4. Install libvirt following this guy's article: https://chromeunboxed.com/insalling-windows-on-chromebook-crostini-linux-kvm-qemu-virtual-machine/ ( obviously don't install Windoze 10 unless you're into that sort of thing )
Step 5. From here, grab your favorite Linux distro install cd. I prefer running Arch linux, so that's what I grabbed.
Step 6. From libvirt-manager, install your new VM using your Linux distro cd.
Step 7. For the most part, I'm not going to describe how to install Arch Linux or any distro but if you need a guide, Google is your friend. Be sure to set a Display Manager because you want a graphical user interface to log in to. <-- This is Critical
Step 8. Make sure your Linux distro is running fine, then you will want to add a couple of Kernel modules to load on boot: kvm & virtio-gpu. With Arch Linux, you would create a file under /etc/modules-load.d with 2 lines.. kvm and virtio-gpu. I called mine kvm.conf.. Literally, it looks like this:
kvm
virtio-gpu
Step 9. Reboot and make sure your distro starts up properly.
Step 10. If your distro boots properly, you will now go into the experimental ( but fun ) part of the excercise. It's time to modify some settings.
10A. Click on the Light Bulb icon to show your VM settings.
10B. Under CPU, check Copy Host Configuration
10C. Under Display Spice:
- Type: Spice Server
- Listen: None
- OpenGL: Checked
- System Chromium OS
10D. under Video Virtio:
- Model: Virtio
- 3d Acceleration: Checked
At this point, I wish you luck. It may take many reboots to get this working but if your GUI comes up then bring up a terminal window and grab the latest mesa-demos. In your terminal window, type: glxinfo -B. If this all worked out, it should say that you have accelerated graphics running Virgl.
Followup:
After playing around for a while, I've settled on a specific layout for my Lenovo C13 Yoga Chromebook w/ the Ryzen 3700C.... It came with 16 gigs of ram and a 256 gig ssd from DirectDial.
Lenovo C13 Yoga @ DirectDial
Firstly, the 2 biggest things in this system are: nested KVM and OpenGL passthrough acceleration ( VirGL ).
I ended up breaking up the machine into 3 logical areas:
Rung 0 - ChromeOS
Level 1 - Lobotomized ( Beta ) Linux and Android
Level 2 - Virtual Machines created under Level 1.
Rung 0 is what I use for normal, every day browsing and it's pretty darn good at that job
Level 1 is where a lot of the daily lifting goes... I use a bunch of linux apps and the Virgl support is great for gaming and things that require fast updates, like streaming my phone.
For the most part, Rung 0 and Level 1 are nearly indistinguishable.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
There is a major caveat with the VirGL support in Level 1 and that is the major graphics corruption that occurs with general UI ( user interace ) components. ie, you'll notice games and anything that updates the window a lot look pretty good and you can get decent framerates with the 3700C but "normal" windows can get majorly corrupted:
When I first received this wonderful little machine, the graphics corruption with VirGL really really disappointed me. Then I happened along a certain internet article detailing running a Windows 10 VM ( Virtual Machine ) under Level 1.
Article to install Windows 10 on Chromebook
This made me think... applications that refreshed the window a lot didn't suffer from VirGL graphics corruption really. I installed qemu and libvirt and set up a linux environment.
Initially, I used Arch linux in a perverse dream to run Windows inside the new linux VM using Virtualbox. Long story short, it was too much of a hassle because Virtualbox 6.1 requires KVM and nested KVM only goes down 2 levels. I did find that debian buster had Virtualbox 6.0 as an optional install, so I blew out the Arch VM and created a debian VM. It ran, but Windows 10 was just too unstable and would end up locking up my debian VM.
I had an epiphany and I realized with the copious storage + ram, I could just run 2 different VMs under Level 1: Linux & Windows 10.
btw, I purchased my Windows 10 Pro license from pcsalesonline.com for around $30, so if you want to run Windows 10 in a VM, I recommend them highly.
pcsalesonline.com Windows 10 license store page
I honestly believe that a decently powerful Chromebook is the future of computing and there's a rumor of a Chromebook with a dedicated gpu is in the works. Personally, I think someone should make a Chromebook with an integrated gpu for Rung 0 & Android and the option for a dedicated gpu to be passed to Level 1 using hardware passthrough.
Part III: ( lol I know this is getting ridiculous )
This time, I installed Crouton, which is a chroot management system for ChromeOS. A chroot is a folder where another linux distribution is installed and "boots up" virtually. ( It pretends to boot up, but works as another linux distribution with some limitations )
Crouton chroots allow you to leverage the hardware in the Chromebook directly. In one sense, Crouton is easy both easy and hard to install.
1. Prepare to delete everything!!!!!! Crouton requires developer mode, which will reformat your Chromebook. <-- the hard thing I pointed out earlier. lol
2. Back up all of your important files. Either use an sd card, usb drive or google drive, but pull off all of your important files
3. Switch your chromebook into developer mode
4. Press CTRL + ALT + T to open a Terminal Window
5. type: shell ( to enter the developer shell )
6. ( Optional ) Purchase an sd card for your chroots, I purchased a 512gig one from Best Buy for $100
6a. ( Every reboot ): Unmount the sd card using the chromebook file explorer
6b. switch the partition type of your sd card from exfat ( normally ) to ext4 using fdisk
6c. format the sd card as ext4 using mkfs.ext4 /dev/mmcblk....
6d. ( Every reboot ): sudo mkdir /media/sdcard
6e. ( Every reboot ): sudo mount /dev/mmcblk.... /media/sdcard
6f: type: sudo mkdir /media/sdcard/chroots
6g: type: sudo ln -s /dev/mmcblk.../chroots /usr/local/chroots
7. Download and install Crouton
At this point, you can use crouton to create your new unix chroot and play around. If things worked out for you, you'll have a fully working unix system with full hardware acceleration.
My dreams were dashed pretty quickly because X wouldn't even start up on my Lenovo C13 Yoga w/ a Ryzen 7 3700C processor. After much research, trial and error I came up with a pretty nice system.
Firstly, I created 2 different chroots:
1. minimal for creating a HW accelerated X server
2. full featured distribution to do the "real work".
The greatest advantage is that the Chromebook's Download folder is linked to each chroot.
Install these 2 packages in both chroots:
1. Sommelier - This will be our X server that spans all of our chroots
2. VirtualGL - This is a package allowing you run enhanced OpenGL across SSH. Basically, 2D elements will be rendered on the local X server and 3D elements will be rendered by X server running with the application.
In chroot 1, compile sommelier and perform all of the EXPORTS listed on the install page. It's also a good idea to add them to your .bashrc file. At this point, you should be able to start up sommelier:
$ sommelier --shm-driver=noop --data-driver=noop --no-exit-with-child --drm-device=/dev/dri/renderD128 --glamor /bin/sh -c '/etc/sommelierrc' &
You can leave chroot 1's terminal window alone now.
In chroot 2, you should export DISPLAY=:0 so x11 applications use the sommelier you started from chroot 1.
If you want to run Crostini apps from Linux (Beta) then you need to set a password to your Linux (Beta) Vritual Machine.
$ sudo su
# passwd <your Linux (Beta) username>
( type the password you want )
( repeat the password )
# exit
Install VirtualGL
As ROOT, run: /opt/VirtualGL/bin/vglserver_config
I suggest selecting N for all of the options.
Now, type: ip a to find your Linux (Beta) ip address. It'll look something like:
5: [email protected]: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 00:16:3e:93:a6:e9 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 100.115.92.196/28 brd 100.115.92.207 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::216:3eff:fe93:a6e9/64 scope link
valid_lft forever preferred_lft forever
inet 100.115.92.196 is the ip address in this case.
from chroot #2, you can now connect to Crostini ( Linux (Beta) ) using the command:
$ vfglconnect -s <your Linux (Beta) username>@<your Linux (Beta) ip address>
If you want to run a game or some software that has graphical issues normally, you can now run them using:
$ vglrun <software name>
I noticed that glx gaming is about 30-40 fps going this route vs 60 fps using Linux (Beta), but if you read the previous posts, you'll understand that GPU acceleration can really jack up graphics on Linux (Beta).
Now if you want to truly unleash the power of your chromebook, you can try installing your games and stuff in chroot #2.
here's a screenshot of /opt/VirtualGL/bin/glxspheres and you can see the fps in the xlauncher window. The high fps comes from what seems to an enhancement when you use vglrun in chroot #2.
$ vglrun /opt/VirtualGL/bin/glxspheres
vglrun seems to remove the frame limiter, otherwise glxspheres runs around 60fps.
I've also noticed some games running a lot better with vglrun, but some games just crash... give it a whirl and see what works for you
Here's an in-game shot of Runes of Magic, a d3d9 game from 2009.
I would like to buy this laptop to run Win-11 with vm with qemu. I would like to know if this chromebook can do it with AMD cpu? I have seen online articles where people have successfully installed win11 on chromebooks with 10th and 11th gen intel cpu but this has 16gb ram which sounds great for vm.

Categories

Resources