X11 "Ported" to Android *implements debian shell and VNC - G1 Android Development

Yep:
{
"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"
}
It's official you can run X-Windows and your choice of GUI (Gnome, KDE, IceWM etc on an Android device!
Screenshots are below!!
Here are instructions about running X-Windows and more specifically the LXDE Desktop GUI on the G-1.
LXDE is an energy saving and extremely fast and performing desktop solution. It works well with computers on the low end of the performance spectrum such as new generation netbooks and other small mobile computers
While IceWM, performance-wise runs the fastest - LXDE is also pretty good, and just plain 'prettier!
I have included options for either Desktop in the instructions below.
Prerequistes; Debian Shell instructions here: http://www.androidfanatic.com/cms/community-forums.html?func=view&catid=9&id=251
Also if your 'debian.img' file is a little small you may want to resize it - instructions here:
http://www.androidfanatic.com/cms/community-forums.html?func=view&catid=9&id=1610
You need three basic packages:
From the Android OS:
Download VNCviewer for Android from our repo here:
http://www.androidfanatic.com/cms/unofficial-app-repo.html?func=fileinfo&id=16
or from google here:
http://code.google.com/p/android-vnc-viewer/
Now copy the .apk file to your sdcard and then run 'Apps installer' from the Market to install that.
From the terminal, boot your debian shell and then type:
apt-get install tightvncserver (return)
apt-get install lxde (return)
or if you want a really basic desktop use IceWM:
apt-get install icewm (return)
Now you need to setup your vncserver
at the prompt type:
export USER=root (return)
vncserver (return)
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.
go to /root/.vnc
type
nano xstartup
comment out the line for xsession:
#/etc/X11/xsession
add these two lines:
icewm &
lxsession
or if you decided to go for IceWM instead:
icewm &
xterm
save the file (trackball then 'o', and exit nano (trackball then 'x'.
Then restart an x windows session by vncserver ( you should kill it after you are done with x-windows later on).
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
cd /root
nano .bashrc
Add the following near the top of the file:
export USER=root
cd /
rm -r -f tmp
mkdir tmp
cd /
vncserver -geometry 480x320
(this 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 XWindows running on your phone. Obviously you can connect to your phone's new desktop GUI with a VNC viewer from your computer too jsut 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! I can't be arsed to try it, but if you can, be sure to let us know how it goes.
Your videos and photos of your device running X are welcomed. As usual if you like this, use the SHARE button below.
Click to expand...
Click to collapse

Excellent news!
thanks for sharing this here

so what does this mean exactly?
just a windows-like gui?
what about my android gui? what happens there?

d3rrty1 said:
so what does this mean exactly?
just a windows-like gui?
what about my android gui? what happens there?
Click to expand...
Click to collapse
X11 runs as a daemon (or service) in the background on most *nix machines (android, now included) and windows machines using cygwin, etc.
You can connect to it locally or over the network.
As of yet, there has been no native GUI implementation of the X client on android, but we can now run a VNC server and connect to that (locally on the android phone or over the netowork with a computer, etc) using a VNC client.
So, as-is, this runs independently from your android gui and does not affect it at all.

alapapa said:
X11 runs as a daemon (or service) in the background on most *nix machines (android, now included) and windows machines using cygwin, etc.
You can connect to it locally or over the network.
As of yet, there has been no native GUI implementation of the X client on android, but we can now run a VNC server and connect to that (locally on the android phone or over the netowork with a computer, etc) using a VNC client.
So, as-is, this runs independently from your android gui and does not affect it at all.
Click to expand...
Click to collapse
so it's essentially setting up a "fake" vnc while connecting to it at the same time since it is the local network (i.e. your phone)? do i still have full access to all of my apps?

We've had this in another thread for a month or so now.

d00m said:
We've had this in another thread for a month or so now.
Click to expand...
Click to collapse
Interesting, because this is relatively new public news. Cheers to the spread of knowledge.

gmaster1440 said:
Interesting, because this is relatively new public news. Cheers to the spread of knowledge.
Click to expand...
Click to collapse
that's what i was thinking... i do think d00m meant more along the lines of VNC though... i wasn't asking about VNC, so it is partially my fault for not being clearer... i meant what exactly x11 did/does

gmaster1440 said:
Interesting, because this is relatively new public news. Cheers to the spread of knowledge.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=472204
X11 is Linux's GUI server

I tried to follow along but the instructions to move the busybox.bin to /data/busybox does not work. I read up on the original thread and its instructions to install busybox but it does not work.
I keep getting "/data/busybox is a directory" error msg. Any ideas?
wergeld

Im getting a grey screen in VNC. Anyone know what might be a cause?
Im guessing it has to do with editing those last 2 files. I installed LXDE.

wergeld said:
I tried to follow along but the instructions to move the busybox.bin to /data/busybox does not work. I read up on the original thread and its instructions to install busybox but it does not work.
I keep getting "/data/busybox is a directory" error msg. Any ideas?
wergeld
Click to expand...
Click to collapse
if you have any of jf's modified rcXX images, (which you more than likely do..) you already have busy box nd don't need the other one

Okay. Yes I have JF 1.43 running now.
I went ahead with the rest of the install of the debian image.
I then get to the point where it says to type in "bootdeb" and I do that.
Now I get the ASCII penguin YAY!
But then it gets past the
INIT: Debian booting...
Running Linux Kernel
net.ipv4.ip_forward = 1
AutoMounter started
Type EXIT to end session
Make sure you do a proper EXIT for a clean kill of Debian!
chroot: cannot execute /bin/bash: No such file or directory
....extra umount errors for FUN!
Reverted back to Android console
#
Okay, so now what?
wergeld

Okay. Yes I have JF 1.43 running now.
I went ahead with the rest of the install of the debian image.
I then get to the point where it says to type in "bootdeb" and I do that.
Now I get the ASCII penguin YAY!
But then it gets past the
INIT: Debian booting...
Running Linux Kernel
net.ipv4.ip_forward = 1
AutoMounter started
Type EXIT to end session
Make sure you do a proper EXIT for a clean kill of Debian!
chroot: cannot execute /bin/bash: No such file or directory
....extra umount errors for FUN!
Reverted back to Android console
#
Okay, so now what?
wergeld

K, I have 1.43 running.
I now get an error after I type in "bootdeb":
chroot: cannot execute /bin/bash: No such file or directory.
This error occurs after the penguin ASCII art and the starting of the AutoMounter.
Any ideas?
wergeld

wergeld said:
Okay. Yes I have JF 1.43 running now.
I went ahead with the rest of the install of the debian image.
I then get to the point where it says to type in "bootdeb" and I do that.
Now I get the ASCII penguin YAY!
But then it gets past the
INIT: Debian booting...
Running Linux Kernel
net.ipv4.ip_forward = 1
AutoMounter started
Type EXIT to end session
Make sure you do a proper EXIT for a clean kill of Debian!
chroot: cannot execute /bin/bash: No such file or directory
....extra umount errors for FUN!
Reverted back to Android console
#
Okay, so now what?
wergeld
Click to expand...
Click to collapse
Try
modprobe ext2
then type
bootdeb
That worked for me

now just wondering.. how to remove all of this if i decide to?? remove debian and everything that was installed?

apt-get install error
Whenever I apt-get install any app i get the same "Reading package lists... Error!" "E: Unable to parse packagge file /var/lib....." "E: The package lists or status file could not be parsed or opened."
Any ideas on how to fix?

apt-get update

Smokuevo said:
apt-get update
Click to expand...
Click to collapse
Still getting the same "unable to parse file /var/lib/apt/lists/ftp.de.debian.org_debian_dist_lenny_main_binary-armel_Packages" error

Related

Installing Debian + Gnome, KDE, IceWM or LXDE Desktop on your rooted G1!

Found an easy way to install Debian, resize the debian.img, and run a desktop on your rooted G1!
1. Installing Debain - has an installer.
For step 6. Do this instead:
Code:
# su
# ./installer.sh
OR
# su ./installer.sh
2. Resize debain.img
3. Installing Desktop
For those who run into problems or errors while installing/downloading tightvncserver and/or LXDE follow these modifications:
1. type:
Code:
cd /etc/apt
nano sources.list
2. add after the first one:
Code:
deb http://ftp.debian.org/debian lenny main contrib non-free
deb-src http://ftp.debian.org/debian lenny main contrib non-free
3. Hold down the trackball and hit o
4. Hit return (to save the new sources.list)
5. Hold the trackball and hit x (to exit nano)
6. Type (enter after each one):
Code:
apt-get update
apt-get install tightvncserver
apt-get install lxde
For Haykuro's builds [Thanks to buttkicker!]:
The procedure is same for 5.0.2H versions as well.
However, some files need to be modified.
I am attaching two sets of files.
Use as needed.
1: debian_v21-sdcard.zip
extract to /sdcard/debian
2: debian_v21-system-sd.zip
extract to /system/sd/debian (ext2 partition)
Replace the files in the original downloaded package with the ones in this post.
If you chose option 2, remember to type
Code:
cd /system/sd/debian
in step 4
Mirrors of Installer & debian.img:
Code:
http://mindsofwisemen.com/fileso/other/debian_v21.zip
http://www.filedropper.com/debianv21
Mirrors of Attached:
Code:
http://www.filedropper.com/debianv21-sdcard
http://www.filedropper.com/debianv21-system-sd
Thanks for this info, I'd also like to know if anyone hs tried it using the H build roms .... as apposed to JF's rom ... as stated in the instructions!
Thanks will try this on my G1 verry nice.
does this make a dual boot option? or how does it work?
no it doesn't. you run debian via the terminal emulator, then you run the Desktop app through a VNC viewer (i think, something like that anyway)
also this has been around for ages and doesn't have much use as all of them run stupidly slowly. (that being said, now we can get the processor running faster it might be better)
n1 on the guides though, much more helpful than trawling through countless threads
joeydsmith said:
does this make a dual boot option? or how does it work?
Click to expand...
Click to collapse
This is not dual boot. This runs Debian "like" an app running in the android Shell. Calls and everything will still work while in the debian.
Meltus said:
no it doesn't. you run debian via the terminal emulator, then you run the Desktop app through a VNC viewer (i think, something like that anyway)
also this has been around for ages and doesn't have much use as all of them run stupidly slowly. (that being said, now we can get the processor running faster it might be better)
n1 on the guides though, much more helpful than trawling through countless threads
Click to expand...
Click to collapse
Actually it isnt that "laggy" nor slow. Practical for developing code on the go. (you can have the gcc on here )
SatanR1 said:
Thanks for this info, I'd also like to know if anyone hs tried it using the H build roms .... as apposed to JF's rom ... as stated in the instructions!
Click to expand...
Click to collapse
I just finished installing on 5.0.2Gr3
The procedure is same for 5.0.2H versions as well.
However, some files need to be modified.
I am attaching two sets of files.
Use as needed.
1: debian_v21-sdcard.zip
extract to /sdcard/debian
2: debian_v21-system-sd.zip
extract to /system/sd/debian (ext2 partition)
Replace the files in the original downloaded package with the ones in this post.
If you chose option 2, remember to type
Code:
cd /system/sd/debian
in step 4.
buttkicker said:
I just finished installing on 5.0.2Gr3
The procedure is same for 5.0.2H versions as well.
However, some files need to be modified.
I am attaching two sets of files.
Use as needed.
1: debian_v21-sdcard.zip
extract to /sdcard/debian
2: debian_v21-system-sd.zip
extract to /system/sd/debian (ext2 partition)
Replace the files in the original downloaded package with the ones in this post.
If you chose option 2, remember to type
Code:
cd /system/sd/debian
in step 4.
Click to expand...
Click to collapse
Awesome...now everyone has instruction on how to acheive this
Everytime i do this when it comes to the bit of typing
su (hit return)
chmod 4755 *
UPDATED! 6.as root (or su) run the installer like this:
installer.sh
It says unable to chmod bootdeb: operation not permited when i do the 1st
then that means i cant install the last one
Anyhelp guys? i would really appreciate it please im not sure whether i should Downgraid back to JF? Ill miss the pros of Haykuros H build but if i can get debian workn then its worth it
Does anyone have a youtube video running debian with kde or gnome on their g1?
Oh my...zeezee, you are a girl and you know more about computer stuffs more than i do, it's a shame for me, so embarrassing, but anyways i'm stuck at installing LXDE, could you help me out? I have debian and vncserver installed but when i run this command, i got an error msg
localhost:/# vncserver -geometry 480x320
vncserver -geometry 480x320
bash: vncserver: command not found
Do you have idea how to solve this problem? i've been hours try to figure it out but i'm totally clueless.
phuthanvinh said:
Oh my...zeezee, you are a girl and you know more about computer stuffs more than i do, it's a shame for me, so embarrassing, but anyways i'm stuck at installing LXDE, could you help me out? I have debian and vncserver installed but when i run this command, i got an error msg
localhost:/# vncserver -geometry 480x320
vncserver -geometry 480x320
bash: vncserver: command not found
Do you have idea how to solve this problem? i've been hours try to figure it out but i'm totally clueless.
Click to expand...
Click to collapse
Did you install vnc server by running this?
Code:
apt-get install tightvncserver
and, did the installation finish without errors.
buttkicker said:
Did you install vnc server by running this?
Code:
apt-get install tightvncserver
and, did the installation finish without errors.
Click to expand...
Click to collapse
yes i did, but everytime i run a command to install something, there were always errors that the links are not valid (404). However I run get update fix missing file command afterward.
Still no reply then? hmmmm...
ben29pickett said:
Everytime i do this when it comes to the bit of typing
su (hit return)
chmod 4755 *
UPDATED! 6.as root (or su) run the installer like this:
installer.sh
It says unable to chmod bootdeb: operation not permited when i do the 1st
then that means i cant install the last one
Click to expand...
Click to collapse
can you try
Code:
su ./installer.sh
For those (like me) who get errors when apt-get'ing thightvncserver and/or lxde:
(from the thread at androidfanatic.com)
instructions
cd /etc/apt
nano sources.list
now add
deb http://ftp.debian.org/debian lenny main contrib non-free
deb-src http://ftp.debian.org/debian lenny main contrib non-free
after the first one
then hold down the trackball and hit o
then hit return (to save the new sources.list)
then hold the trackball and hit x (to exit nano)
then type
apt-get update
apt-get install tightvncserver
apt-get install lxde
That did the trick for me at least.
/Mats
its actually the seccond part i get an error on chmod 4755 * saying something not permited bla bla bla lol
Hay there. ok i have debian setup and lxde but when i got to the vnc and connect all i get is a gray screen can any body help?
i know this has already been adressed but i cant find the thread again.
Nice howto. Cheers

[MOD] Ubuntu *Working On Epic!!* NOW UPDATED TO V1.2 (03/13/2011)

IMPORTANT INFO
First I gotta give a shoutout to KellyLewis3985 because he's helped so much with modding the script to need less work for install, run faster, and have more programs work.
NEEDED!
Must Be ROOTED
1. Busybox (Preferrably the most updated version).
2. Superuser.
3. Android SDK (With knowledge on how to use it).
4. AndroidVNC (Search exactly that in the market. It will say "Android VNC Viewer").
5. Terminal Emulator (Also available in the market).
6. Patience when working with this.
UPDATE!!
Thanks to the persistance of urboy4mbx, we now know a little more information to get it working. While both KellyLewis3985 and myself were running custom ROMS, we didn't think about testing it for the stock build. So due to urboy4mbx's will to get this installed, we now know you MUST have a custom ROM installed. There's probably ways to get it to work on the stock build, but it's going to take a little more work. For now, make sure you have a custom ROM, download, and install the files, and if we got our scripts right, it should boot right up for you.
DOWNLOAD FILE!
NOTE: When you download this zip, you will need to extract it, and inside the extracted folder will be the folder "sdcard", DO NOT!! Place this entire folder in your "ubuntu" folder, simply open it and copy all the files from it to your "ubuntu" folder on your sd card.
Download File...
Ubuntu: Epic Edition v1.2 <---These are the files you will need to run Ubuntu. It will come with "bootlinux", "fsrw", "mountonly", "ubuntu.img", "ubuntu.sh", and "unionfs".
INSTRUCTIONS!
Options For Transferring Files To Phone
First Option...
Your first option of course is the easiest. Simply connect your phone to the computer, and mount your sd card. Once on the sd card, you are going to create a new folder labeled "ubuntu". Open this folder and transfer all the files from the downloaded zip file into this folder. After you have transferred the files to your "ubuntu" folder on the sd card, unmount the sd card, but leave the phone plugged in.
Second Option...
Your second option is "adb push". Here is the command for "adb push" if you cant, or don't feel like mounting your sd card.
First you need to create your destination folder. Do so with this set of commands.
cd C:/sdk/tools (Of course you might have your sdk folder in a different location, just cd to that location)
adb shell
su
cd /sdcard/
mkdir ubuntu
exit
Now you should be back at "C:/sdk/tools", or wherever you have your sdk folder located. Next, you push the files to your folder. In order to push the files, you first need to open the zip folder, and copy all the files into your tools subfolder in the sdk folder. Then push the files with this set of commands.
adb push bootlinux /sdcard/ubuntu
adb push fsrw /sdcard/ubuntu
adb push mountonly /sdcard/ubuntu
adb push ubuntu.sh /sdcard/ubuntu
adb push unionfs /sdcard/ubuntu
adb push ubuntu.img /sdcard/ubuntu
The "ubuntu.img" file may take a little longer, as it is the largest file that needs to be transferred.
NOTE: You cannot have your sd card mounted to use adb. You must be unmounted.
INSTALLATION
1. Ok, first thing you have to do is make sure you're still cd'd to "C:/sdk/tools". Now you need to type "adb shell". You will then most likely be prompted with the symbol "$". To continue, type "su" and the symbol should then change to a "#". NOTE!!!! After adb shell, YOU MUST TYPE "su", or the program will not boot!!!
2. Next you are going to cd into the Ubuntu folder on your sd card. (cd /sdcard/ubuntu) Once in, you're going to type the command "sh ./ubuntu.sh".
After that runs through, the next thing you're going to enter is "bootlinux". Once you get the prompt "[email protected]" you have successfully installed ubuntu on the Epic.
With this new update, there is no need to install any other files, as we have added them into the image file for you so it should do so automatically. If you have issues, let us know and we will try to fix it.
PREPARING YOUR VNC TO LOAD UBUNTU!
NOTE: There is no need to type this into your adb shell. This is for information purposes only, i've displayed the code and it's position at the bottom of this post along with screen shots to show you what it should look like.
With our new update, it's a lot easier to get everything up and running, but we don't have the capability of storing the vnc server to start every time we start up ubuntu, as it was causing issues. Until we get this issue fixed, you have to start the vnc server like this:
rm -rf /tmp/.X*
export USER=root
vncserver -geometry 1280x800 (Or whatever you would like your resolution to be. We have found this to be the nicest so far.)
Ok, at this point, everything should be set up to run.
NOTE: After the initial install of ubuntu on your phone, when you want to get it to start again, all you have to do is go into the terminal emulator, first type "su" to give it superuser permissions, then type "bootlinux", it will run through it's script and give you the "[email protected]" prompt. After you get that prompt, simply type the "rm -rf /tmp/.X*", "export USER=root", and "vncserver -geometry 1280x800" prompts and you can then start vnc again.
All the info you need for vnc will be as follows.
Nickname: "root"
Password: "ubuntu" (This is a set password, so it will be the same for everyone.)
Address: "localhost"
Port: "5901"
Change Log
Version 1.2
-Modified to make it ext4 compatible.
-Modified img to make it a little faster and more stable.
That's really all I had to do for this version, as it was working before.
Version 1.1
-Modified the scripts to run smoother, faster and use less memory while running.
-Added some custom wallpapers.
-Mozilla Firefox now works.
-Modified scripts to make Ubuntu more interactive.
-Modified the .img to install everything needed instead of you having to do it.
Issues
-Firefox randomly closes. Just reopen and restore.
-After using the vncserver Ubuntu doesn't truly shutdown without a reboot. Fix in progress.
-When wanting to start Ubuntu, after initial install, you have to go into the terminal emulator and type "su", then "bootlinux", allow that to complete giving you the "[email protected]" prompt. Then type "rm -rf /tmp/.X*", "export USER=root", and "vncserver -geometry 1280x800" to start the vnc server. After that you can go right into vnc and start Ubuntu up. We ARE currently working on a fix for this issue.
If you have any issues please post. Your input helps us make this better for you.
Here's a couple tricks we picked up.
1. You can use the arrow pad on your keyboard to direct the mouse.
2. If you long press on the screen and keep your finger on it, you can slide the mouse with your finger.
3. Long press on something, is a left click.
4. Double tap on something, is a right click.
5. To get symbols to appear, such as "-", you have to HOLD the function key while hitting the symbol.
And i'm sure there's more, but there's a couple for now.
After the installation and the first time you setup the vncserver. You have to use this command everytime to start the vncserver again.
rm -rf /tmp/.X*
export USER=root
vncserver -geometry 1280x800
New links.
Ubuntu
http://db.tt/4z8uDst
New Scripts.
http://db.tt/lDjNNQn
Were working on a fix for this.
Here is the latest update. I dont know if its going to work for everyone. I suggest creating a folder inside the ubuntu folder to put the scripts you have in. Unzip this and replace the scripts in the ubuntu folder.
Please make a backup.
If you have any issues please post. Your input helps us make this better for you.
Yeah I'm on this as soon as I leave buffalo wild wings.
Sent from my SPH-D700 using XDA App
going to sleep soon for school in the morning, also will try tomorrow. naaao this is epic!
Since this is a full operating system, what are the chances or installing silverlight and being able to stream netflix?
Sent by a little green robot
As Of Right Now, The Internet Is Having Issues On This One, But Kellylewis And I Have Already Scripted Another Version Of Ubuntu And It Is Internet Compatible . We're Running It Now To Get The Bugs Worked Out And Will Have It Up Soon. After That, You Can Try To Download Whatever You Want, Considering It's An OS, And See If It Works... I Have Not Tested Downloading Anything.
The New Ubuntu Will Come As A Update, So Install This One The Way I've Instructed, And The Update Will Simply Replace The Files. The New One Is Faster, Internet Compatible, And Nicer Looking All Together. This One Still Works, But Please Be Patient For The Update. Thanks Everyone.
No matter what I do Im stuck here...
Also, If You Change The Port And It Says "VNC Cannot Connect" Or Something Like That, Back Out To The Terminal Emulator, And Hit "Exit" And "bootubuntu" Again And Change The "localhost" Number Again. Whatever The "localhost" Number, Change The Port Number To Match. Ex: "localhost:4" > "5904", "localhost:7" "5907".
Click to expand...
Click to collapse
I get "VNC connection failed!" on any port.
TIA for any help! thanks.
First, Exit From The Terminal Emulator, And Open It Back Up. Type "su" Then "Bootubuntu" Without Any Other Commands. It Should Boot It Up Still And Then When You Get The Localhost Prompt, Type "Exit" And "Bootubuntu" Again. This Time It Should Come Up Localhost:2 ...As Long As You Copied My Code, It Should Have Put The VNC Server In The Boot File So When Ubuntu Was Booted Up, It Would Automatically Start The Server. Anyways, When You Get "localhost:2" Change Your Port To 5902. Do That And Let Me Know What Happens.
Why Do You Type Like This? It's Really Annoying!
infamousjax said:
Why Do You Type Like This? It's Really Annoying!
Click to expand...
Click to collapse
Because That's How I Type... You Aren't Required To Look At This Thread, So If It Bothers You, Just Hit The Back Button. Otherwise, How I Type Should Be Of No Importance, So If You Want Ubuntu, Run The Script To Get It And You'll Never Have To Worry About How I Type Ever Again. It's Completely Up To You.
most excellent. hooks up without a glitch or a hangup or anything!
is lxde the only desktop you have used? would other replacement desktops work? im not saying lets throw gnome on there...but i wonder how it would run...takes a minute to get used to but runs like a champ!
so could this really the first step and getting the phone to fastboot into a ubuntu partition?
newkidd said:
most excellent. hooks up without a glitch or a hangup or anything!
is lxde the only desktop you have used? would other replacement desktops work? im not saying lets throw gnome on there...but i wonder how it would run...takes a minute to get used to but runs like a champ!
so could this really the first step and getting the phone to fastboot into a ubuntu partition?
Click to expand...
Click to collapse
If you like this one YOUR gonna love the next one. Its so much faster and looks amazing.
infamousjax said:
Why Do You Type Like This? It's Really Annoying!
Click to expand...
Click to collapse
Why would you come in to someones thread that has worked hard to give to the community and bash them? It makes no sense unless your jealous of him. Go whine about something else somewhere else. Thank you and have a nice day.
Here Are Some Screen Shots From The Next Ubuntu Version We're Working On ...Isn't It Gorgeous??
{
"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"
}
Give Us Some Feedback And Let Us Know What You Think
This guy mr im going to bed. Lol wait until you see what im doing.
Sent from my SGH-T959 using XDA App
I figured for all the skeptics I would put a bad pick up of the next update. Especially when it says drocap2 in it.
Sent from my SGH-T959 using XDA App
KellyLewis3985 said:
Why would you come in to someones thread that has worked hard to give to the community and bash them? It makes no sense unless your jealous of him. Go whine about something else somewhere else. Thank you and have a nice day.
Click to expand...
Click to collapse
SERIOUSLY? THAT IS NOT BASHING HIM. WHEN PEOPLE YELL AND SCREAM BY TYPING IN ALL CAPS IT IS JUST AS ANNOYING, DON'T YOU AGREE? HE WAS JUST POINTING OUT THAT TYPING THE WAY HE DOES IS A PAIN IN THE ASS TO READ. IF YOU CAN'T UNDERSTAND THAT THEN YOU MAY BE RETARDED. JUST LIKE PEOPLE WHO TYPE IN ALL CAPS. THANK YOU.
Sent from my SPH-D700 using XDA App
KellyLewis3985 said:
Why would you come in to someones thread that has worked hard to give to the community and bash them?
Click to expand...
Click to collapse
Because it legitimately detracts from the quality of an otherwise fine thread.
Also, it would be helpful if the landscape screenshots could be rotated so the text is right-side up. Thanks!
Just a noob question before I start... This only runs after you've booted it from the terminal emulator? As in your phone is still running all its original phone software (and by this I don't mean stock software, just phone software in general, custom or otherwise) and this is something you can boot on top of that? Maybe my terminology is wrong here, but that's at least how it appeared to work to me and I just wanted to check! Thanks!
wjsmaggle said:
Just a noob question before I start... This only runs after you've booted it from the terminal emulator? As in your phone is still running all its original phone software (and by this I don't mean stock software, just phone software in general, custom or otherwise) and this is something you can boot on top of that? Maybe my terminology is wrong here, but that's at least how it appeared to work to me and I just wanted to check! Thanks!
Click to expand...
Click to collapse
yeah it pretty much runs as a virtual machine on top of android...i only tested it and everything but android is always running...it grabs data and internet from the phones 3g/4g connection.

[WIP] Ubuntu on the Thrive!

Hey guys!
A friend of mine who is into phone roms and modding, showed me Ubuntu running on his Nexus Android Phone, and thought about how cool it would be to get Ubuntu Running on the Thrive! With a bit of Research I found that there is an ARM port of Ubuntu. The reason why that is an awesome thing is because Linux has this cool thing called chrooting. chrooting is the process of running another version of linux within another running linux OS instance. The downside of chroot is that you can chroot an os made for your phones architecture. In this case, the Terga 2 IS Arm based, so we're all set to go on that. With a few hours of toying around, I have successfully gotten Ubuntu running on my Thrive.
What you'll Need:
- Basic working knowledge of linux.
- The Arm Port of Ubuntu. ubuntu.zip
Original Dev's Site: Download File - ubuntu_zip - DownloadAndroidROMs.com
Mirror 1: MEGAUPLOAD - The leading online storage and file delivery service
Mirror 2: http://www.zettech.net/ubuntu.zip
Mirror 3: ubuntu.zip - download now for free. File sharing. Software file sharing. Free file hosting. File upload. FileFactory.com
- A *ROOTED* Thrive, with busybox installed and atleast 3gb of spare space in the *INTERNAL* storage... Not the SDCard Storage. You can find out how to do this all at this thread: http://www.thriveforums.org/forum/t...ment/1399-full-working-rooted-thrive-now.html
- A computer with adb setup and the correct working drivers for your thrive. If your Thrive is rooted, than you should have working drivers, unless you rooted it from another pc, in which case you can look at the root thread in this development forum for help. You can check to see if ADB is working by typing "adb devices" at the command promt. A few lines that look like this should pop up.
List of devices attached
286416746464667 device
^ The numbers will look different. Thats OK. If the list is empty, you have a driver issue or connection issue with adb.
How to do it:
1. Download and extract the ubuntu.zip file from one of the above links to your hard drive.
2. Connect your thrive to the PC and Connect your Thrive to a Wifi Access Point.
3. A new storage device should show up. This is your thrive. Now place the ubuntu folder you just extracted in the root of the thrives storage device. NOTE: This is *NOT* actually the sdcard your storing the files on. This is the devices internal memory. (don't put it in the /sdcard-disk0 folder.)
4. Open up an adb shell. Do this by typing "adb shell" at the command promt. A "#" should appear, indicatng you are at a root shell on your thrive.
5. Type "cd /sdcard/ubuntu"
6. Type "sh ubuntu.sh" This is the script that sets all of the permissions for the ubuntu image. You *WILL* see errors on this part. Ignore them.
7. Type "bootubuntu". You should now see a command line that looks like this:
# bootubuntu
bootubuntu
net.ipv4.ip_forward = 1
Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4
Setting localhost on /etc/hosts
READY TO ROCK AND ROLL BABY!
Brought to you by NexusOneHacks.net and the open source community!
* Congrats. You have Ubuntu running on your thrive now... Now for a better way to control it...
8. Update the OS:
Code:
apt-get update
9. Change the root password:
Code:
passwd root
^ Set this to a secure password. Wouldn't want anyone sploit'en ya eh?
10. Find your Thrives IP Address:
Code:
ifconfig
^ It should be listed as "inet addr" under the wlan0 interface. (See? Told ya you would need basic linux skills. ).
11. Install SSH:
Code:
apt-get install openssh-server
^ Once thats installed, you should be able to ssh to your thrive by either connecting to 127.0.0.1 from a terminal emulater on the thrive, or your thrives IP from a PC on the same network.
12. Install and start a VNC Server:
Code:
apt-get install tightvncserver
Code:
export USER=root
^Tell's what user to start VNC as.
Code:
vncserver -geometry 1280×720
^This starts the VNC server. It will ask you for a password. Remember this password. You may also try 1280x800 if 1280x720 gives you issues.
Now that VNC is installed and running. You should be able to connect to it from a VNC client on port *5901*. If connecting from the Thrive itself, you can connect to 127.0.0.1, or you can connect from a PC by using the thrives IP.
What the issues are:
Ok... So I literally *JUST* got VNC up and running as I am writing this post. I'm actually just on my way out the door to go home for the weekend hahah, so I'm sure alot of these issues can be fixed with minor tweaks. I'm also sure there are more issues out there. I just wanted to get this posted up though so that people can start playing with it.
- VNC Resolution and colors are set incorrectly. This I believe is just an issue with the default configuration file for VNC. I believe the color quality setting just needs to be raised and the resolution adjusted to the native resolution of the thrive.
- Has to be install to Main memory: This is because the script that sets all of the permissions is hard coded with /sdcard/ubuntu as the location for the installation. /sdcard/ isn't actually the sdcard on the thrive. It's internal memory. I'm certain that a quick edit of the sh script will fix this. Is it really a good idea to run ubuntu off a slow, and limited write capacity sdcard?
All of the above issues i'll look at tonight when I get home! Happy hacking guys!
I cant seem to get vnc working the client keeps failing
Sent from my AT100 using Tapatalk
can you use the onscreen keyboard or do you have to use an external?
What you mean like the keyboard in ubuntu or while im in the vnc client
Sent from my AT100 using Tapatalk
I mean, can I put ubuntu on the tablet and use the tablet as a Ubuntu tablet or do I need to hook up a keyboard or use VNC in order to use the tablet?
With Android, I have a keyboard built into the software. Does Ubuntu have one?
Im not sure I havent made it that far. But you need to use a vnc client
Sent from my AT100 using Tapatalk
wrek said:
I mean, can I put ubuntu on the tablet and use the tablet as a Ubuntu tablet or do I need to hook up a keyboard or use VNC in order to use the tablet?
With Android, I have a keyboard built into the software. Does Ubuntu have one?
Click to expand...
Click to collapse
You download a VNC Client for Android, and connect to your Ubuntu Instance via that. VNC should support whatever on screen keyboard you have installed.
Ok, so it's not really a "Ubuntu" I can walk around with... not yet anyway.
wrek said:
Ok, so it's not really a "Ubuntu" I can walk around with... not yet anyway.
Click to expand...
Click to collapse
Well to an extent it is. You can use VNC right from the Thrive to connect to Ubuntu. Ubuntu would still be running locally on the thrive as well. You can also use a terminal emulator to ssh to ubuntu as well.
In all Honesty, I only posted this to show that the thrive does indeed have the power to run Ubuntu. The version of Ubuntu it runs is the ARM version; which doesn't have many working applications for it yet.
hey i am stuck at [email protected]:/#
nothing happened on the tab, im not sure what to do..? help?
past that..
okay so i am past the [email protected] blah blah blah... now i got an error saying
"chroot: applet not found
Shutting down ubuntu
failed.
failed.
failed.
failed.
losesetup: applet not found
any ideas.?
Is anyone still working on this? I am getting errors when I try to install openssh and tightvncserver.
Sent from my SPH-D710 using xda premium
I already have ubuntu running on my thrive through vnc viewer. Its not optimized that well but I can download software and use the keyboard and everything.
---------- Post added at 11:50 AM ---------- Previous post was at 11:48 AM ----------
I have a much easier method if you guys want it.
jayfrost10 said:
I already have ubuntu running on my thrive through vnc viewer. Its not optimized that well but I can download software and use the keyboard and everything.
---------- Post added at 11:50 AM ---------- Previous post was at 11:48 AM ----------
I have a much easier method if you guys want it.
Click to expand...
Click to collapse
Easier is better. How did you do it?
Sent from my SPH-D710 using xda premium
Okay, I am just gonna start a new thread. I'll get it up in a little while.
jayfrost10 said:
Okay, I am just gonna start a new thread. I'll get it up in a little while.
Click to expand...
Click to collapse
That would be great. Thank you!
Sent from my SPH-D710 using xda premium
Okay, my easy ubuntu thread is up.
sh ubuntu.sh
modprobe: module 'ext2' not found
←[H←[Jrm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
mkdir failed for /data/local/mnt, File exists
←[H←[JUnable to chmod bootubuntu: Operation not permitted
←[H←[J
Ubuntu Chroot Bootloader v0.1
Ubuntu Bootloader is now installed!
i recive this failed when i type sh ubuntu.sh ... any sugestion ?

[GUIDE]All About ANDROID SDK/AVD {Install/AVDs/Root/ADB}

ALL ABOUT ANDROID SOFTWARE DEVELOPMENT KIT\ANDROID VIRTUAL DEVICE(SDK\AVD)​
What we are going to learn?
What is Android SDK?
Installing SDK
Creating and Managing AVDs
Configuring ADB on your Computer
Root your Android Emulator
Thats It!
Part 1 - What is Android SDK?
​
Android Software Development Kit (abbreviation Android SDK) is an application which allows users to run and manage Virtual Android Emulator.
The Android Software Development Kit (SDK) includes a comprehensive set of development tools. These include a debugger, libraries, a handset emulator based on QEMU, documentation, sample code, and tutorials. Currently supported development platforms include computers running Linux (any modern desktop Linux distribution), Mac OS X 10.5.8 or later, Windows XP or later. The officially supported integrated development environment (IDE) is Eclipse using the Android Development Tools (ADT) Plugin, though IntelliJ IDEA IDE (all editions) fully supports Android development out of the box, and NetBeans IDE also supports Android development via a plugin. Additionally, developers may use any text editor to edit Java and XML files, then use command line tools (Java Development Kit and Apache Ant are required) to create, build and debug Android applications as well as control attached Android devices (e.g., triggering a reboot, installing software package(s) remotely).
Enhancements to Android's SDK go hand in hand with the overall Android platform development. The SDK also supports older versions of the Android platform in case developers wish to target their applications at older devices. Development tools are downloadable components, so after one has downloaded the latest version and platform, older platforms and tools can also be downloaded for compatibility testing.
Android applications are packaged in .apk format and stored under /data/app folder on the Android OS (the folder is accessible only to the root user for security reasons). APK package contains .dex files (compiled byte code files called Dalvik executables), resource files, etc.
Source :- Wikipedia
{
"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"
}
Click to expand...
Click to collapse
Part 2 - Installing SDK and AVD Manager​
Make sure you have JAVA Installed.....otherwise NOTHING will work...
WINDOWS
1. Download the SDK setup from here > http://developer.android.com/sdk/index.html
2. Install the SDK and choose a short directory to install (C:\....).
3. After you have installed your SDK, Open It and Check Mark the following package :- Tools
4. Wait for it to Download...It will take some time...Be patient...
Click to expand...
Click to collapse
MAC
Go here to get a guide on HOW TO INSTALL SDK ON MAC
Click to expand...
Click to collapse
Here is a video Guide too
Click to expand...
Click to collapse
LINUX
Go here to get a guide on HOW TO INSTALL SDK ON LINUX
Click to expand...
Click to collapse
Part 3 - Creating and Managing AVDs​
1. Go to your android-sdk directory and start/run "SDK Manager.exe"
2. Select the platform that you want to download.
3. Click on "Install X Packages" where "X" is the no. of packages you have selected to download.
4. After downloading has finished which will take around 30 minutes on a descent speed internet select "Tools" from the Main Menu bar
at the top of the window and select Manage AVDs..........
5. A New window will open which is the AVD MANAGER.
6. In the Android Virtual Devices tab SELECT "New" to create a new AVD.
7. Enter the following things:
AVD NAME: Type the desired name that you want for your AVD
Device: Select the AVD resolution as per the device options
Target: Select the Android version you downloaded
CPU/ABI: Select Intel Atom (x86) for 32-bit and ARM (armeabi-v7) for 64-bit.
Keyboard: Check this box if you want to use your keyboard in the AVD
Skin: Check this box if you want to get the hardware buttons
Front Camera: Use this option if you have a webcam and want to use it in the AVD
Back Camera: Use this option if you have a webcam and want to use it in the AVD
Memory Options
RAM: Set this to 768 (maximum for Windows user) or 1024 (maximum for Ubuntu users
VM Heap: Set this to 100
Internel Storage: Set this to 4 and Select "GiB" from this drop down list from side by.
SD Card: Select "Size" and Enter 4 and Select "GiB" from this drop down list from side by.
Emulation Options
Snapshot: Just check mark this option. (Not really neccessary)
Use Host GPU: Check mark this option if you want to use the computers graphics.
*****NOTE: REMEMBER THESE TWO OPTIONS ("SNAPSHOT" and "USE HOST GPU") CANNOT BE USED SIMULTANEOUSLY. IT WILL GIVE YOU AN ERROR.*****
7. Now click OK and wait for few seconds. It will come up with a dialog box which will show you the details of the AVD you created and a message that your AVD has been created.
8. Running the AVD
Highlight the AVD you have created and click "Start..." on the left of the window.
and ENJOYYYY......
Click to expand...
Click to collapse
Part 4 - Configuring ADB on your Computer​
Configuring ADB (Android Debug Bridge) on your Windows allows you to run adb from anywhere. Hence you always do not have to "cd" to the android-sdk directory.
1. Right click on "My Computer" and select "Properties".
2. Go to "Advanced system settings" and open "Environment Variables".
3. Now under System Variables, click "New"
and enter the following details:-
Variable name: Type in ADB.....
Variable Value: Type here the path of your ADB preceeded by a ";" (SEMI-COLON)
FOR EG: If the path to your ADB is (by default) "C:\Program Files\Android\android-sdk\platform-tools\adb.exe"
THEN YOUR variable path would be :" ;C:\Program Files\Android\android-sdk\platform-tools\adb.exe "
AND CLICK "OK".....
4. After having done with this Search for "Path" in System Variables.
5. Double click on it to edit "Variable Value" and add these lines at the end of it:-
;<PATH_TO_YOUR_ADB> where "<PATH_TO_YOUR_ADB>" is the directory where your ADB is located.
6. Save all these changes by clicking "OK".... and you are done .........
NOW YOU CAN TYPE "adb" ANYWHERE IN CMD AND IT WILL RECOGNIZE IT AS A PROGRAM....
Click to expand...
Click to collapse
Part 5 - Root Your Android Emulator​
Want to get more fun on your Android Emulator.....
GET IT ROOTED....
NOTE: YOU MUST HAVE ADB CONFIGURED....... I HAVE TESTED THIS ROOTING METHOD ON API LEVEL 16 ( JELLY BEAN 4.1.2) AND IT WORKS ABSOLUTELY FINE NOT SURE ABOUT OTHERS.....
1. Download the ROOT package from here.
2. Extract the package to somewhere like desktop.
3. Browse to your android-sdk/tools directory and Hold Shift and then right click to get an Advanced Menu. Click on "Open Command Window Here" and type the following command:-
Code:
emulator -avd <YOUR_AVD_NAME> -partition-size 512
NOTE:- DO NOT CLOSE THE COMMAND PROMPT WINDOW OTHERWISE THE EMULATOR WILL CLOSE
4. Now go to Desktop and again hold Shift and right click and Select "Open Command Window Here" and type the following commands one by one:-
Code:
adb connect 127.0.0.1:5554
adb root
adb remount
adb push Superuser.apk /system/app/
adb push su /system/bin/su
adb push su /system/sbin/su
adb push su /system/xbin/su
adb shell chmod 6755 /system/bin/su
adb shell chmod 6755 /system/sbin/su
adb shell chmod 6755 /system/xbin/su
adb kill-server
adb start-server
YOHO............... We are now rooted haha
Click to expand...
Click to collapse
Want to know anything more....Just post it here.....and I'll help you back.... ​
Have I missed something....Please remind me....
Hi
Thanks for this, exactly what i was looking for.
But I find that after I have expanded the /system partition when i restart the AVD it starts with a 211M sized partition. unless i start it from the command line.
Is there any way to change the ini file or the avd manager to start it with 512M /system ?
Also the SU didn't work, I had to grab one of my working phone.. (there was a hex error code)
/system/bin/sh: /system/xbin/su: not executable: magic 7F45
actually spoke way to early no I find the /system partition doesn't save a cross reboots
last edit.
found http://www.ehalm.at/avd-4.3-gapps.php?l=en
has a pre built 4.3 system img with all the goodies installed
Hello and thanks for your OP.
Do you have the binaries for Intel? Intel emulators being way faster, I'd rather root an intel AVD than use ARM.
Also, is there a way to make SU survive reboots? It's very annoying to have to repeat those steps each time.
error: device not found
Thanks for this guide. Had me thinking of how to connect a AVD to adb since there is no USB to physically plug in.
I did try the loopback address, with the right port, but that is as far as I have got:
Code:
[email protected]:~/Build/android-sdk-linux/tools$ sudo adb connect 127.0.0.1:5554
[sudo] password for joel:
connected to 127.0.0.1:5554
[email protected]:~/Build/android-sdk-linux/tools$ sudo adb root
error: device not found
[email protected]:~/Build/android-sdk-linux/tools$ sudo adb devices
List of devices attached
[email protected]:~/Build/android-sdk-linux/tools$
Is there anything I am doing wrong? I know your guide (mostly) is for windows, but it would seem strange for me to emulate Android in an emulated Windows environment (running Debian GNU/Linux v7).
UPDATE: Figured it out, once I used the ./adb command in platform-tools.

[GUIDE][NO-ROOT] How to install Ubuntu and other Linux Distros on Your Phone or Android TV Box, using Termux

NOTICE:
THIS METHOD IS ONLY FOR NON ROOTED DEVICES
{
"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"
}
PROOT-DISTRO GITHUB PAGE
Hello Friends!
Today I wanted to start a thread that will house prebuilt Linux environments, as well as instructions for building the Linux environments yourself. These "environments" theoretically can be run on any non-rooted Android Device.
The first premade being released is an Ubuntu (Jammy) environment with a GUI that I built from scratch and will show you how to build as well! It is as bare bones as I could get with just xfce4 for the gui and it's goodies package. Tightvncserver is installed as well so we can remote into the environment.
(If you would rather use windows RDC then do not install tightvncserver)
Spoiler: WHAT IT LOOKS LIKE
UBUNTU THEMED VERSION:
BASIC 'BUNTU VERSION:
Spoiler: PREMADE UBUNTU ENVIRONMENT
INSTALLATION INSTRUCTIONS:
Download and install Termux on your Android Device: DIRECT DOWNLOAD LINK
Download the Premade Ubuntu Backup of your choice on your Android Device.
JAMMY JELLYFISH ENVIRONMENTS:
Spoiler: BASIC
Basic Ubuntu Environment (xfce4, xfce4-goodies, tightvncserver) with no additional programs: DIRECT DOWNLOAD LINK (394MB)
You are able to set your own user name and root password for the premade environment.
Open Termux and run these commands:
Code:
pkg install x11-repo
pkg update -y
pkg install proot-distro -y
proot-distro install ubuntu
termux-setup-storage
cd storage/downloads
proot-distro restore ./ubxfce-backup.tar.gz
proot-distro login ubuntu
Now to setup your user name and root password:
Code:
passwd root
useradd USERNAME
passwd USERNAME
Now run:
Code:
vncstart
You will be asked to set a password for your vnc. Then you will be told which port number to use in your vnc.
Now you need to connect to the vnc server by using an app on your phone or by remotely connecting with your pc, both instructions are provided below. Then as soon as you connect, you will be done! Your Ubuntu Environment is now fully setup with a GUI, working internet, and root access.
To change over to your user name and home, run this command:
Code:
su USERNAME
Spoiler: BASIC WITH CHROMIUM AND FIREFOX
Same as above, but with Chromium and Firefox installed: DIRECT DOWNLOAD LINK (625MB)
You need to open chromium and then close it the very first time, it opens to a blank screen the first run for whatever reason.
Open Termux and run these commands:
Code:
pkg install x11-repo
pkg update -y
pkg install proot-distro -y
proot-distro install ubuntu
termux-setup-storage
cd storage/downloads
proot-distro restore ./ubxfce2-backup.tar.gz
proot-distro login ubuntu
Now to setup your user name and root password:
Code:
passwd root
useradd USERNAME
passwd USERNAME
Now run:
Code:
vncstart
You will be asked to set a password for your vnc. Then you will be told which port number to use in your vnc.
Now you need to connect to the vnc server by using an app on your phone or by remotely connecting with your pc, both instructions are provided below. Then as soon as you connect, you will be done! Your Ubuntu Environment is now fully setup with a GUI, working internet, and root access.
To change over to your user name and home, run this command:
Code:
su USERNAME
Spoiler: BASIC WITH BROWSERS RDP VERSION
RDP Version for use with Windows Remote Desktop Connection on PC: DIRECT DOWNLOAD LINK (626MB)
OR you can use an RDP app on your phone.
Firefox and chromium are preinstalled. Xrdp is used instead of tightvncserver.
Open Termux and run these commands:
Code:
pkg install x11-repo
pkg update -y
pkg install proot-distro -y
proot-distro install ubuntu
termux-setup-storage
cd storage/downloads
proot-distro restore ./ubxfce3-backup.tar.gz
proot-distro login ubuntu
service xrdp restart
Now to setup your user name and root password:
Code:
passwd root
useradd USERNAME
passwd USERNAME
To change over to your user name and home, run this command:
Code:
su USERNAME
lastly run ifconfig
Take note of your ip address and make sure you have setup a user with a password or a password for root, then open RDC on your PC or Phone and connect to this IP address. You will then need to type in your user name and password to connect.
Spoiler: UBUNTU THEMED RDP VERSION
Customized to look more like Ubuntu, built for Windows RDC DIRECT DOWNLOAD LINK (804MB)
OR you can use an RDP app on your phone.
Sudo has been added to this machine. Thus it will come with a user this time.
USERNAME PASSWORD
root root
zero zero
Chromium asks for a key, it is 1111.
Open Termux and run these commands:
Code:
pkg install x11-repo
pkg update -y
pkg install proot-distro -y
proot-distro install ubuntu
termux-setup-storage
cd storage/downloads
proot-distro restore ./ubxfce4-backup.tar.gz
proot-distro login ubuntu
service xrdp restart
ifconfig
Take note of your ip address and open RDC on your PC or Phone and connect to this IP address. You will then need to type in either root root for the username and password or use the username zero password zero.
LUNAR LOBSTER ENVIRONMENTS:
Spoiler: BASIC
For use with TightVNC or other VNC apps: DIRECT DOWNLOAD LINK
Code:
proot-distro install ubuntu
termux-setup-storage
cd storage/downloads
proot-distro restore ./lunar.tar.gz
proot-distro login ubuntu
vncpasswd
#set your password
vncserver
Built per this guide with no browsers or other programs installed : SEE GUIDE
Spoiler: BASIC WITH FIREFOX
For use with TightVNC or other VNC apps: DIRECT DOWNLOAD LINK
Code:
proot-distro install ubuntu
termux-setup-storage
cd storage/downloads
proot-distro restore ./lunar2.tar.gz
proot-distro login ubuntu
vncpasswd
#set your password
vncserver
Spoiler: RDP VERSION WITH FIREFOX
For use with Windows RDC or other RDC / RDP apps: DIRECT DOWNLOAD LINK
Code:
proot-distro install ubuntu
termux-setup-storage
cd storage/downloads
proot-distro restore ./lunar3.tar.gz
proot-distro login ubuntu
service xrdp restart
Now to setup your user name and root password:
Code:
passwd root
useradd USERNAME
passwd USERNAME
Spoiler: BUILD YOUR OWN FROM SCRATCH
There are many ways to do this, the first way being demonstrated today is using the gui package "xfce4" which will install a desktop environment for us, along with other features added from the "xfce4-goodies" package. Lastly tightvncserver is installed so we are able to remote into the distro. Takes 30 mins to an hour to install.
If you would rather use RDC, do not install tightvncserver, use the package xrdp instead. You would then skip the vncserver step below.
Lastly, it is possible to upgrade the distro's file system from Jammy Jellyfish, to Lunar Lobster. See the Customize spoiler below for more details. OR SEE THIS POST FOR A FULL LUNAR BUILD
INSTALLATION INSTRUCTIONS:
Download and install Termux on your Android Device: DIRECT DOWNLOAD LINK
Code:
pkg install x11-repo
pkg update -y
pkg install proot-distro -y
proot-distro install ubuntu
proot-distro login ubuntu
apt update -y
apt install xfce4 xfce4-goodies tightvncserver -y
Spoiler: OPTIONAL -- BACKUP YOUR DISTRO
You can backup your Distro at this point prior to adding any passwords or users, or you may do this step later to backup your customizations to ubuntu with all the programs you have installed.
To backup your distro, type:
Code:
exit
termux-setup-storage
cd storage/downloads
proot-distro backup --output ubxfce-backup.tar.gz ubuntu
#run this command on your pc
adb pull sdcard/Download/ubxfce-backup.tar.gz
#Return to Ubuntu
proot-distro login ubuntu
Now to setup your user name and root password:
Code:
passwd root
useradd USERNAME
passwd USERNAME
Lastly run:
Code:
vncstart
You will be asked to set a password for your vnc. Then you will be told which port number to use in your vnc.
Now you need to connect to the vnc server by using an app on your phone or by remotely connecting with your pc, both instructions are provided below. Then as soon as you connect, you will be done! Your Ubuntu Environment is fully setup with a GUI, working internet, and root access.
To change over to your user name and home, run this command:
Code:
su USERNAME
Spoiler: REMOTE CONNECT WITH A PC OR PHONE
If you are going to be connecting to your Ubuntu Environment using only your phone, you will need a Vnc Viewing App.
Spoiler: VNC VIEWER FOR ANDROID
RealVNC Viewer: Remote Desktop - Apps on Google Play
Remotely control a desktop anywhere in the world from your Android device!
play.google.com
Type our local ip address of "127.0.0.1:" then add your port number after the :
You can name the connection whatever you like, then save and connect. You should be asked for your vnc server password now.
Spoiler: REMOTE DESKTOP APP FOR ANDROID
Remote Desktop – Apps on Google Play
Remote Desktop allows you to connect to remote PCs and apps.
play.google.com
Run ifconfig
Note your ip address next to wlan0.
Then connect to the ip address in the app with your user name and password.
If you know of a better RDC app please let us know in the comments below. I do not use these apps regularly. (personally use the PC RDC) Only verified it could run in the app.
If you want to be able to remote connect using your pc, decide if you want to use TightVNC or Windows Remote Desktop Connection.
Spoiler: TIGHTVNC FOR PC
Run ifconfig
Note your ip address next to wlan0.
Now open TightVNC for Windows - DIRECT DOWNLOAD LINK
Enter your local ip address: and the port number provided to us earlier.
Then enter your vnc password.
Now you are all set!
Spoiler: WINDOWS REMOTE DESKTOP CONNECTION
So, the package "xrdp" in this Ubuntu port cannot run with tightvncserver installed. Idk why. It took me 3 days to learn this... x.x but yay here we go!
INSTRUCTIONS:
Code:
apt purge tightvncserver
apt install xrdp
service xrdp start
ifconfig
Grab your ip address and make sure you have setup at least a root password, or a user.
then login to windows remote desktop connection with your ip address and type either root and your root password or the username and user password you set.
If you get disconnected and are unable to reconnect in RDC, run this command:
Code:
service xrdp restart
It is also possible to remote into your phone without installing proot-distro.
Spoiler: CUSTOMIZE YOUR ENVIRONMENT
Spoiler: CHANGE UBUNTU VERSION
OPTIONAL STEP!!
You are able to change your Ubuntu file system version by updating the repository sources.
Code:
nano /etc/apt/sources.list
Then edit jammy to lunar or whatever version you want and save. (ctrl + o and enter, then ctrl +x to exit)
TIMESTAMPED VIDEO OF THIS PART (earlier versions are likely not to work but it doesn't hurt to try. confirmed bionic beaver is not working)
Lastly run:
Code:
apt update
apt upgrade -y
Spoiler: MANUALLY INSTALL FIREFOX & CHROMIUM
This is for the Jammy Jellyfish version, since the snaps wont work. It is being determined now if Lunar is still having these troubles
Code:
echo "deb http://ftp.debian.org/debian stable main contrib non-free" >> /etc/apt/sources.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-keys 605C66F00D6C9793
apt update
apt install firefox-esr
apt install chromium
nano /usr/share/applications/chromium.desktop
press ctrl + w and search for "exec"
then add --no-sandbox after chromium
press ctrl + o to save and ctrl + x to exit
Spoiler: ADD SUDO PACKAGE
This port does not come with sudo natively installed. We are able to install it and add any users to the sudoers file.
Code:
apt install sudo
nano /etc/sudoers
Now scroll down to where you see Root, and add your username below. Then copy the ALL=(ALL:ALL) ALL and paste it next to your username.
TIMESTAMPED VIDEO OF THIS PART
Spoiler: EDIT THE LOOK OF YOUR ENVIRONMENT
This is how the ubxfce4 environment was built. This is a write up of the video below with some modifications and is easier to go through if you watch the video with it.
Code:
apt install ubuntu-wallpapers gedit plank yaru-theme-gtk yaru-theme-icon xfce4-appmenu-plugin rofi git -y
Right click on your desktop and select desktop settings.
In desktop settings, select Folder, then select Other.
This should open you into the xfce backgrounds folder, at the top left, click on the "share" tab. Now highlight the backgrounds folder and select open at the top right.
This will load our wallpapers into settings, make a selection!
Now go into settings > appearance and select the color you would like for your windows.
Next go into settings > windows manager and select your theme, yaru-dark is what is used in the premade.
Now go into settings > default applications and you can change the file manager and terminal emulator.
Now go into settings > window manager tweaks and uncheck Draw frame around selected window while cycling.
Now select the Placement tab and move the ball to the middle.
Now right click on your panel and highlight panel, then select panel preferences.
Switch to panel 2 and select the minus button to remove it.
Switch back to panel 1, You may edit your icon size if you like under Appearance, then switch to the items menu and select applications menu.
You can select any icon you would like by hitting "select icons from" and then the "image file" tab
Apps Start Here Ubuntu Icon | Flatwoken Iconpack | alecive
Click to download App, Application, Software, Apps, Start, Here, Ubuntu icon from Flatwoken Iconpack by alecive
www.iconarchive.com
(I downloaded the SVG file and placed it into usr/share/icons)
You can remove the workgroup, notifications, and windows button panel options if you would like.
You can double click on the clock option to edit the time to look how you want.
You can move the clock in between the separators and expand the separators to change the clock's placement.
Now we can click on action buttons and take the check off everything except logout.
pling.com/p/1463576
Now open a terminal
Code:
cd ~/Downloads
mv Azeny.tar.gz /usr/share/plank/themes
cd /usr/share/plank/themes
tar -xvf Azeny.tar.gz
rm Azeny.tar.gz
Now right click on desktop and go into desktop settings.
Click on the icons tab and change icon type to none.
Now run:
plank --preferences
Turn on Icon Zoom then change position to the left and switch the theme to Azeny.
Go back into panel preferences, click on items, and add a new item. Select App menu plugin.
Shift the app menu plugin's position to second from the top to fix the panel.
Click on app menu and select use CompactMode.
Now go into settings > session and startup session, switch to application autostart and select add.
Name it plank and set the command to plank.
Now exit the ubuntu session and restart.
Now you can add more applications to the plank menu by running them then right clicking their icons to dock them.
Code:
git clone https://github.com/adi1090x/rofi
cd rofi
./setup.sh
cd
cd .config/rofi
rm config.rasi
cd launchers/type-3
nano launcher.sh
change the theme number from 10 to 1
Code:
nano style-1.rasi
Under fullscreen false, change the width to: 1400
Add a line beneath width called height and set it to: 650
Edit background-color to black / 10% --- you can set this to what you like
Scroll down to input bar and change margin to 0% 25%
Scroll down to list view and set scrollbar to true;
pling.com/p/1529470
https://www.iconarchive.com/download/i124716/pictogrammers/material/dots-square.svg
Code:
cd ~/Downloads
unzip xpple_menu.zip
rm xpple_menu.zip
mkdir ~/local/share
mv applications ~/local/share/
mv Pictogrammers-Material-Dots-square.svg ~/local/share/applications
mkdir -p ~/local/share/menu
mv xpple.menu ~/local/share/menu
cd ~/local/share/applications
nano Launchpad.desktop
change Exec=sh -c ~/.config/rofi/launchers/misc/launcher.sh
to Exec=sh -c ~/.config/rofi/launchers/type-3/launcher.sh
Then in applications, drag and drop rofi to your panel and open panel prefs. We can change the icon in here like before.
(/local/share/applications/Pictogrammers-Material-Dots-square.svg)
Spoiler: IF TERMUX KEEPS FORCE CLOSING
Only if you need!
There are / were problems with Android 12 and force closing Termux. To fix this you can run this adb command:
Code:
adb shell device_config put activity_manager max_phantom_processes 2147483647
TERMUX'S KNOWN ISSUES GITHUB LINK
Spoiler: SOURCES
WHAT IS THE DIFFERENCE BETWEEN A WINDOWS MANAGER AND A DESKTOP ENVIRONMENT GUI
Differences in vnc xrdp and gnome desktop:
Some xrdp knowledge, the installer script does not work for this distro:
Ranking linux desktops:
How to use the GNOME Desktop Environment:
How to install gnome in ubuntu --not working:
How to install Gnome on Ubuntu 22.04 LTS Jammy Jellyfish
In this tutorial, we show how to install the GNOME desktop environment as a GUI on Ubuntu 22.04 Jammy Jellyfish Linux.
linuxconfig.org
How to make tasksel work (^):
sudo tasksel install ubuntu-desktop doesn't work
After I type this command and the password nothing happens.
askubuntu.com
A good writeup on gui environments usable in Ubuntu:
ServerGUI - Community Help Wiki
What is the xserver
What is the X server?
I have been using Ubuntu for quite some time but, I have no idea what the X server is? I hear it quite often. I would like to know what the X Server is and what it does. How ~/.xinitrc file is use...
askubuntu.com
Wild tangent on proot-distro origins and one of the devs
Explains ppa repository:
What does "Package <package> has no installation candidate" mean?
What does the above Error mean? What is an installation candidate? I was trying to do sudo apt-get install munin-memcached and I get this message: Reading package lists... Done Building depen...
askubuntu.com
Fix apt-get update “the following signatures couldn’t be verified because the public key is not available”:
Fix apt-get update “the following signatures couldn’t be verified because the public key is not available” :: Chris Jean
chrisjean.com
How to manually add repositories:
How to Fix 'add-apt-repository command not found' on Ubuntu / Debian
How to fix the add-apt-repository command not found error on Ubuntu or Debian in 2 SIMPLE COMMANDS. Learn about Package Management and Software Repositories.
phoenixnap.com
Step by step guide installing xfce:
Install Xfce VNC remote desktop on Ubuntu – ServerOK
XFCE is a lightweight Desktop Environment for Linux. XFCE + vnc allows you to set up a remote desktop on a VPS or dedicated server located in a remote data center or cloud. You can connect to remote…
serverok.in
How to add or delete users in Ubuntu:
How to Add and Remove Users on Ubuntu 20.04
Knowing how to add and remove users is one of the basic skills a Linux user should know. This article explains how to add and remove user accounts on Ubuntu 18.04.
linuxize.com
Make the Ubuntu port look like a traditional ubuntu desktop environment:
Sysv way to get around sysd things (in comments)
How to check processes:
How to Solve libvirt Error Message : Failed to connect socket to '/var/run/libvirt/virtlogd-sock' : No such file or directory - Just Another Sharing Site ...
Having an Ubuntu Linux operating system installed with libvirt daemon or KVM-based virtualization, there is an error suddenly triggered. So, […]
www.dark-hamster.com
How to check if your device supports kvm and other kvm knowledge:
KVM/Installation - Community Help Wiki
Building Android for Qemu -- saving for me
Building Android for Qemu: A Step-by-Step Guide
Developing Linux for Android on Qemu allows you to do some things that are not necessarily possible using the stock emulator.
www.collabora.com
How to list all installed packages:
How to list all installed packages
I'd like to output a list of all installed packages into a text file so that I can review it and bulk-install on another system. How would I do this?
askubuntu.com
Build Your Own Distro With Archiso:
How to edit Tightvncserver password:
TightVNC: Manual Page for vncpasswd(1)
TightVNC - VNC-Compatible Remote Desktop Software
www.tightvnc.com
Showed where xrdp config files are located:
Xrdp - ArchWiki
wiki.archlinux.org
Please note the environments aren't perfect, there's a lot to be discovered and learned here. The way this is built, as improvements are made, the backups can be updated to reflect those changes. Please please do share if you understand how to improve anything or if you know anything about this stuff you want to share. I love learning from you all!
A Very Special Thank You to @ze7zez for taking the time to test the prebuilt, as well as educate us!!
PS I made a mistake in referring to these "Environments" as "Virtual Machines" They are not vms. They share the same kernel as our phone, and therefore are not as secure as a VM. THANKS!
The next "Premade" is a Debian Environment built from scratch with all code provided. It's gui environment is provided by gnome, which I haven't been successful installing in ubuntu
Spoiler: WHAT IT LOOKS LIKE
Spoiler: DEBIAN PREMADE AND BUILDING INSTRUCTIONS
HOW TO INSTALL THE PREMADE:
First Download the Debian Backup: DIRECT DOWNLOAD LINK
Then run this code:
Code:
pkg install x11-repo
pkg update -y
pkg install proot-distro -y
proot-distro install debian
termux-setup-storage
cd storage/downloads
proot-distro restore ./debian-backup.tar.gz
proot-distro login debian
vncserver
HOW TO BUILD YOUR OWN:
You can select your native language this way. It will take 30 mins - an hour to setup
Code:
pkg install x11-repo
pkg update
pkg install proot-distro -y
proot-distro install debian
proot-distro login debian
apt update -y
apt install task-gnome-desktop -y
apt install gnome-session-flashback tightvncserver vim -y
vncserver
vi .vnc/xstartup
Press the letter "i" and then erase everything on screen and paste all of the code below
Code:
#!/bin/sh
autocutsel -fork
xrdb $HOME/.Xresources
gnome-control-center "$VNCDESKTOP Desktop" &
xsetroot -solid grey
export XKL_XMODMAP_DISABLE=1
export XDG_CURRENT_DESKTOP="GNOME-Flashback:Unity"
export XDG_MENU_PREFIX="gnome-flashback-"
unset DBUS_SESSION_BUS_ADDRESS
gnome-session --session=gnome-flashback-metacity --disable-acceleration-check --debug &
When done, press ESC and type :wq to save and exit vim
Now type vncserver and connect to your machine using the port number provided
Source:
Very correctly written instructions.
I don't know if it's Nethunter Kex or Ubuntu's fault, but after logging out of Ubuntu there is some crash with a message about "Connection failed". Restarting Nethunter Kex ends with a java error message and you have to restart the phone.
ze7zez said:
Very correctly written instructions.
I don't know if it's Nethunter Kex or Ubuntu's fault, but after logging out of Ubuntu there is some crash with a message about "Connection failed". Restarting Nethunter Kex ends with a java error message and you have to restart the phone.
Click to expand...
Click to collapse
Thank you for reporting this. I am unsure which it would be, or if it is due to how the distro was backed up and restored, but will see if it can be fixed somehow. This is the first day with the backups, had always just ran it off the scripts and didn't experience that error running it that way. So interesting!
It would be extremely interesting if you described how to open a connection on the local network from a larger PC screen, for example.
The operation of the interface on a smartphone is smooth and efficient, but still, the virtualization of the desktop size is not what is easy to use.
Spoiler: USB HUB / CHROMECAST KNOWLEDGE
@ze7zez
Hi, I know of two ways to achieve this. One requires the use of a usbc hub with an hdmi port, the other uses a tv or device with chromecast built in support.
Using a usbc hub:
This video illustrates that any generic usbc hub with the hdmi port can be attached to your phone and then your tv or monitor and function just like a pc!
I have one from walmart, its super old but it works, cannot find the link but something like this bestbuy one would work
https://www.bestbuy.com/site/belkin-usb-c-hub-4-in-1-multi-port-laptop-dock-with-4k-hdmi-docking-station-with-100w-power-delivery-for-mac-pc-and-more-gray/6452574.p?skuId=6452574
Chromecast mirroring:
Otherwise it is possible if you have a chromecast or a tv / screen with chromecast built in, you could use the "mirroring" feature.
I didn't mean imaging the smartphone screen on a larger screen, because that drains the battery, but using, for example, TightVNC Viewer on a PC.
Spoiler: PROGRESS REMOTING INTO TERMUX
ze7zez said:
I didn't mean imaging the smartphone screen on a larger screen, because that drains the battery, but using, for example, TightVNC Viewer on a PC.
Click to expand...
Click to collapse
Hi it took me all day but I figured it out! We have to do it through termux first. I will explain in full details how to do it tomorrow, have run out of play time for today. This is what termux with a gui looks like and then we can proot into any of our machines like ubuntu
as an edit before i have to go, we can proot in, but it is still just the terminal, so maybe we can install a viewer in this environment to see that machine, not sure!
Spoiler: REMOTING INTO TERMUX WITH RDC
@ze7zez Was able to get free and figured out how to setup tightvncserver in the ubuntu machine, vnc connect to it using the termux package tigervnc-viewer, whilest rdp'd into that termux session with my windows pc.
Here's how:
Okay so in termux we need to install these packages:
Code:
pkg install xfce4 xfce4-goodies tigervnc tigervnc-viewer xrdp vim
Then we need to run this code to be able to edit the rdp init port:
Code:
vim ../usr/etc/xrdp/xrdp.ini
Scroll to the bottom, press the letter "i" and set to port 5901 (change the -1 to 5901)
Now we need to press the ESC key and type :wq to write or save the changes and quit out of vim.
Spoiler: SHOW PIC
Now run:
Code:
xrdp
vncserver -xstartup ../usr/bin/startxfce4 -listen tcp :1
ifconfig
And look for your local ip address
Spoiler: SHOW EXAMPLE
We will use this ip address in windows rdp client. Search in windows for "RDP" and open the Remote Desktop Connection App. type in your local IP address. If you did everything correctly you will be presented with the xrdp login screen and need to enter your vnc password. Then you will be all set!
Then if you want to connect to a premade machine, open a new terminal window and type in:
Code:
proot-distro login ubuntu
Do not change user yet.
Code:
apt install tightvncserver
Change user now
Code:
su zero
tightvncserver
Set a password again and note the port number it tells you.
Now open a new terminal in termux and type:
vncviewer
This will open a new window, type in:
127.0.0.1: and add the port number tightvncserver told you after the :
(mine was 127.0.0.1:2)
Crappy video example I took of the rdps
PS Thank You so much for asking about this x.x my gosh this will make playing with these things so much easier now.
Spoiler: SOURCE
Source where I learned some of this stuff:
pkg install xfce4 xfce4-goodies tigervnc tigervnc-viewer xrdp vim requires another 1271 MB of disk space, unfortunately. Currently, since the beginning of the installation of the components, it already occupies 2980 MB. I think that it is not necessary to add another desktop environment, but to use the existing one and pkg install x11vnc. I will test it this coming weekend.
ze7zez said:
pkg install xfce4 xfce4-goodies tigervnc tigervnc-viewer xrdp vim requires another 1271 MB of disk space, unfortunately. Currently, since the beginning of the installation of the components, it already occupies 2980 MB. I think that it is not necessary to add another desktop environment, but to use the existing one and pkg install x11vnc. I will test it this coming weekend.
Click to expand...
Click to collapse
Thank you so much! I didn't even think about how much storage it was using, if you could reduce that, that would help folks a lot! I appreciate you taking the time and look forward to anything you share. I had no idea any of this existed until now (or yesterday haha) so... yay!
It is worth doing in ubuntu apt install net-tools
So far I'm trying, but x11vnc doesn't start properly.
I prepared x11vnc configuration for later for easy session opening in TightVNC Viewer on PC. The session password is zero.
Code:
echo "zero" > /home/zero/.vnc/passvnc
echo "-forever" > /home/zero/.x11vncrc
echo "-shared" >> /home/zero/.x11vncrc
echo "-passwdfile /home/zero/.vnc/passvnc" >> /home/zero/.x11vncrc
There is no need to install anything else.
I used >this< help.
USB debugging should be enabled on the phone.
On the smartphone in termux I typed:
proot-distro login ubuntu (I used history. Execute the history command and read the command number, type the command number e.g. !11)
su zero
vncstart
and read the VNC server's assigned port 5904.
After connecting the smartphone to USB (you can also connect the phone to a local WiFi router), I typed adb forward tcp:5904 tcp:5904 in the terminal on the PC and opened the connection on the PC via TightVNC Viewer.
The PC mouse and keyboard work smoothly.
edit
====
There is no error after logging out ubuntu in TightVNC Viewer that occurred after logging out in Nethunter Kex.
In order to easily use commands in termux in android, it is useful to install a simple GUI fluxbox environment with a terminal:
pkg install aterm fluxbox
Once fluxbox& is running, you can open a termux session in TightVNC Viewer and you will see a gray fluxbox desktop. Use the right mouse button to open the terminal and type commands in termux, for example by pasting them (middle mouse button) from the Windows clipboard.
@ze7zez Thank You sosososo much for these shares. I finally have time to work through all this and will try to get the guide and machine updated in the next day or two with the steps you shared and credits to you. I really appreciate your time and most especially how you explained what fluxbox actually is. I had read that page before but I didn't understand fully what it was telling us. Thank you so much.
jenneh said:
(...)
The machines are built from user submitted scripts that use proot. I am not the Author of the script that built this machine. The Honor lies HERE ( Source - Github)
(...)
Click to expand...
Click to collapse
It is worth building a new ubuntu.tar.gz from scratch, because of the audio output repair. I made one unsuccessful attempt, but ended up with no root access on the phone.
I thought about creating a proot-distro for another linux distribution since there are not many on https://github.com/termux/proot-distro
However, the above problem showed me that I don't have enough time to do that.
ze7zez said:
It is worth building a new ubuntu.tar.gz from scratch, because of the audio output repair. I made one unsuccessful attempt, but ended up with no root access on the phone.
I thought about creating a proot-distro for another linux distribution since there are not many on https://github.com/termux/proot-distro
However, the above problem showed me that I don't have enough time to do that.
Click to expand...
Click to collapse
Oh goodness I had read about root users having trouble with these things, because of the shared kernel, I am going to add a warning to the thread to help warn others about this. I'm sorry for your trouble on that front but I am glad you reported it. Thank you for suggesting to build a new ubuntu from scratch, I agree. I finally finished writing up a guide that will show the remoting part separately from this thread, so I don't confuse new users too much... So expect an @ later on when it's published. Then I'll do my best to build a new ubuntu machine with the steps now that we kinda understand whats going on here a little better.
Hello the thread has been completely reworked with a new ubuntu vm built from scratch, that is half the size of the original share (394MB)
The build instructions were provided as well, so now anyone can make a distro in their preferred language. (after running the apt install xfce4 command, at some point you will be able to set this up)
Spoiler: BROWSERS FIX
Hi There! The Ubuntu distro poses some problems when trying to install certain packages like firefox or chromium due to snapd and it's inability to operate correctly in android. Therefore we have to manually add the repositories so apt install will fetch the right repository and not the silly snap. (I may or may not be explaining that correctly, feel free to correct me if you know)
Here is how to fix the problem and install your browsers:
Code:
echo "deb http://ftp.debian.org/debian stable main contrib non-free" >> /etc/apt/sources.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-keys 605C66F00D6C9793
apt update
apt install firefox-esr
apt install chromium
nano /usr/share/applications/chromium.desktop
press ctrl + w and search for "exec"
then add --no-sandbox after chromium
SOURCE
As an edit, another premade has been added to the OP with Chromium and Firefox preinstalled.
The guide has been updated with steps how to connect to the ubuntu environment with windows remote desktop connection. A new premade has been added as well with the RDP already setup.

Categories

Resources