Debian Linux for Xperia - Sony Xperia P, U, Sola, Go

Ok, here is my Debian Squeeze bootstrap for armel architecture and is tested on my Xperia Go. Port contain a lot of installed things like compilers, libraries, programers languages, desktop enviroment, tight vnc server, openssh server... so everything that can be used like in desktop computer...
Warning:
Only stock rom files is safe and nothing "custom" is safe! You doing everything on your own risk! So you can play with Debian on your own risk!
How to install:
first, you need to have rooted phone! You need "su" installed! Busybox is needed too! Terminal emulator too!
extract Xperia_Debian.rar to your external sd card. You need min 4gb free disk space on your external sd card!
using adb tool perform next steps:
adb remount
adb push bootdeb /system/bin/bootdeb
adb shell chmod 6755 /system/bin/bootdeb
How to boot debian:
open terminal emulator and type "su" and press enter. You must see "#"
type "bootdeb" and press enter
You can see log on terminal emulator and if all is ok you are now in Debian
Optional things:
You can start ssh server by command "/etc/init.d/ssh start" and you can install WinSCP + Putty on your computer to get remote acces to your Debian like: WinSCP for remotelly browsing/uploading/deleting...etc and Putty for remote secure shell (ssh) access.
Username for ssh access is: user: root, password: password. You can change password by command "passwd your_password_here"
You can install vnc client on your computer for remote desktop connection to Debian (just you need to start vncserver on Debian with proper screen size geometry for example "vncserver -geometry 1024x768")
You can install vnc on your android (android vnc viever) to get remote desktop connection from your android.
You can install Debian to for example usb stick, but you need to modify (path to external usb disk) bootdeb script!
Warning:
When you start terminal emulator and you start Debian than do not close terminal emulator!!! If you close terminal emulator than Debian partition is not unmounted so there is posibility for Debian image coruption + coruption on userdata partition! So allways before closing terminal emulator (after starting Debian) you must type "exit" so Debian partition will be safely unmounted and Debian stopped!
do not perform long operations like git clone big pproject...etc because ram memory is not enought and sometimes Debian freze... I created 300mb swap but still swap is allways free so I think maybe kernel have no enabled swap support? I can see zram support in ICS kernel but its about ~50mb so maybe someone can/need to increase zram size to get our Debian stable!
Download link:
Xperia_Debian.rar

munjeni said:
Anyone interested? Let me know!
Click to expand...
Click to collapse
What the hell is that???
N y is this in development section
Sent From Xperia Sola White (MT27i)
Rooted Stock ICS
Hit Thanks If I Helped!!

Me.....

Yes, yes, yes...

definitely YES. Maybe not only Debian ? Ubuntu? Firefox OS?

Thread moved to General section.

Firefox OS would be VERY nice!

Is it possible to run that native?
Sent from my LT22i using xda app-developers app

Debian ? sounds cool ? is it possible ?

It's already existing. Look for "Linux Installer" on the market. It's running from an image via loopback device and VNC. So you don't even need to flash anything, works on standard Image.
I had Debian (I think it was LXDE DE) running. Ubuntu also available.
Pretty nice to show to someone, but I would not work with it. I deleted the image cause it wasted several GB on flash memory.

Interested.
Sent from my LT26i using xda app-developers app

Of course all of us say YES

DeJe63 said:
It's already existing. Look for "Linux Installer" on the market. It's running from an image via loopback device and VNC. So you don't even need to flash anything, works on standard Image.
I had Debian (I think it was LXDE DE) running. Ubuntu also available.
Pretty nice to show to someone, but I would not work with it. I deleted the image cause it wasted several GB on flash memory.
Click to expand...
Click to collapse
Yes I use the same principe (it runing under android in loop) but I prepared/installed a lot of things like compilers... etc... its about 4gb ext2 image...
Ok I will share it and it will be in zip (installable trought recovery) ! Will try to include everything like VNC viewer...etc

I am interested.

What about the official Ubuntu for android project?
http://www.ubuntu.com/devices/android
My wet dreams are about that.

so much yesss please do
is it laggy??

i would love it but sadly with xpetia u i need a smaller image... 4gb are too many. anyway thanks for doing it
Sent from my ST25i using xda app-developers app

What about to be installable on USB Stick,just put USB on phone and run it.
Sent from my ST25i using xda app-developers app

I had old Debian Leny bootstraped, it was for HTC HD Mini, I got it runing on Xperia but it not worked good, so yesterday I created new debian.ext2 image (4gb), its bassed on latest stable Debian Squeeze, it contain installed: full desktop enviroment, a lot of compilers and libraries...etc. I tried to make an zip installer but zip could not accept larger files so it will be rar archive: debian.ext2 + bootscript, you need to install all that manually! Allso you need 4gb free space on your external sd card or maybe it will be runing from external usb disk (you need to modify bootdeb script)? Today I going to start uploading ...see first post!

Xperia_Debian.rar
Enjoy!

Related

How install Debian on a LG P500

If you want to install Debian, just follow this step:
1. Download this : megaupload.com/?d=EV1SOKWJ
In the debian folder you should change the installer.sh and bootdeb files by this one
Download them:
installer.sh : mediafire.com/file/6j99zi0g1lu4oxq/ashu11x_installer.rar
Bootdeb : mediafire.com/file/osshm94mo1qhd65/ashu11x_bootdeb.rar
2. After that, copy the debian folder unzipped to the root of your sd-card
3. Than open Terminal and type:
Code:
su
cd /sdcard/debian
sh installer.sh
bootdeb
cd /scripts/onetime.sh
sh onetime.sh
That's it!
Credits:
ashu11x
An other way to install it
I'm back:
Ok galoula create a universal way to install Deban AND UBUNTU
So,
Download Linux Installer here:
uk.androlib.com/android.application.com-galoula-linuxinstall-tFjz.aspx
Install it
Press "Menu" button and choose "Setup".
The configuration apper, the defaults settings work without touch anithing : Debian Leny into a 500M loop file named "Linux.loop" in th sdcard. for lunch this Linux, the script name is "linuxboot".
Detailled functions :
- Install into LOOP file
Check to box if you want use an loop file, a loop file, is a virtual disk, same as image of hard drive. The loop file can be in any directory. I recomand to put this loop file into sdcard with an extension ".loop".
- Server
Name or IP of download server. If this option is empty, the default server is used. To install ubuntu, leave emtpy.
- Distribution type
Type of distibutions, actualy, Debian or Ubuntu.
- Distribution version
Version in type distribution. Warning ! Please check your version with a real type ! Debian can be Lenny or Squeeze, but no Dapper or Jaunty ! This two end, is Ubuntu version !
- Script to lunch Linux
The command to lunch Linux. you can choose own command to lunch. It permit to install Lenny into file Lenny.loop with script name bootLenny and install. after that install debian squeez or Ubuntu Jaunty into a partition of your SD card, and use an JauntyBoot to lunch jaunty. You have two Linux distributions on the same phone !
- Install into (loop)
Enter full path for the filename used as loop. I recommend to /sdcard/myfile.loop
- File size
The size of file allowed for loop. The size is alocated directly, no possible to change or have an dynamic size !
Click to expand...
Click to collapse
The full site with pictures
android.galoula.com/en/LinuxInstall/
where is the /scripts/onetime.sh
http://forum.xda-developers.com/showthread.php?t=1129803
http://forum.xda-developers.com/showthread.php?t=996746
http://forum.xda-developers.com/showthread.php?t=954807
ccownu said:
I'm back:
Ok galoula create a universal way to install Deban AND UBUNTU
So,
The full site with pictures
android.galoula.com/en/LinuxInstall/
Click to expand...
Click to collapse
on My P500 that one sucks, it worked on 2 gb not on 8 gb, but as told its an rc
Or just do this: ← How to Build CHROOT ARM Ubuntu Images for Android! (UBUNTU ONLY) SHALL WORK ON DEBIAN I THINK!
How to Install Busybox on your Android! →
How to Install Ubuntu on Android!
Posted on February 1, 2011 by admin
For those of you who want to install Ubuntu on your Android smartphone or tablet device, here’s our universal guide on how to do it. (This guide is based off my original guide at NexusOneHacks.net)
*Note – This guide should work on most “rooted” Android smartphones/tablets with no further modification.
We will be running Ubuntu “chrooted” under Android OS, which just means that we will be running a “virtual” Ubuntu OS that runs on top of the Android OS. Your Android OS will work fully (e.g. your phone will keep working normally) while the Ubuntu runs on top of it.
First of all, you should have your Android device “rooted” because you need root access to run Ubuntu off your Android.
Second, your Android OS must support loop devices. Most newer Android smartphones/tablets come with this support so we can mount our Ubuntu image as a loop device. If not, you will either have to build your own kernel with support for loop devices or you can try an aftermarket ROM for your phone as most aftermarket ROMs come with support for it.
For example, G2 Phone and Nexus One both come with loop device support so there’s no need for us to compile a new kernel for it but for others, you may have to.
How do you know this? Just try installing Ubuntu and if it doesn’t boot, your Android device needs a kernel with loop device support. Otherwise you are fine.
How to Install Ubuntu on Android! (Windows)
First, download the following Ubuntu.zip file (from a preferred mirror), unzip and copy over the whole ubuntu directory to the SD card of your Android smartphone/tablet device:
Download ubuntu.zip http://downloadandroidroms.com/files/get/Nhi9EJWSw7/ubuntu.zip
(Turn USB storage ON then copy over the Ubuntu folder to the root directory of your SD card.)
(What it looks like after copied over to the SD Card)
1) Again, make sure you have your Android smartphone/tablet “rooted”!
2) You must have Android SDK installed or have access to adb.exe.
3) Make sure your Android phone/tablet is in debugging mode. Go to Settings->Applications->Development and make sure USB Debugging is checked ON.
4) Connect your Android device to your computer via USB cable and set the USB mode to “Just Charge”.
5) Your Android device should be recognized as “ADB Device” under Device Manager. If not, install appropriate drivers.
For all HTC Android smartphones/tablets (such as G2 Phone, Nexus One), you can download Windows drivers here:
HTC Windows 64-bit driver download – Click Here to Download Driver
HTC Windows 32-bit driver download – Click Here to Download Driver
6) Open up a command prompt by typing “cmd” under Start->Search programs and files.
7) Browse to your SDK directory where you installed the Android SDK:
8) Then go into platform-tools directory:
9) Type “adb devices” to double-check your Android device is recognized.
In this example, I used an HTC G2 Phone, which shows up at “HT09SR204261″. This is fine. However, if you get an empty device, that means you didn’t install the drivers for your phone/tablet correctly. (Go back to #5)
10) Type “adb shell” to enter the Android shell.
Then type “su” to enter super user mode, then type “cd /sdcard” and “cd ubuntu” to enter the ubuntu directory in your SD card of your Android device.
11) Next, type “sh ubuntu.sh” to run the script which will basically get your Ubuntu image ready to run on your Android smartphone/tablet.
If you get error messages, don’t worry and keep going.
12) Type “bootubuntu” to enter Ubuntu. (Next time you enter Ubuntu, you just need to type “bootubuntu” from your /sdcard/ubuntu directory, no need to run ubuntu.sh again.
If you got “[email protected]” at this point, congratulations! This means your Android OS comes with loop device support and Ubuntu is now running “chrooted” on top of your Android OS!!!
However, if you failed at this point, your Android OS probably doesn’t support loop devices, try installing another ROM or compiling your own kernel with loop device support.
How to Install Programs on your Ubuntu!
Once you’ve got Ubuntu running on your Android device, it’s time to install some Ubuntu packages(or programs).
Type “apt-get update” to update, this is the first thing you will need to do before installing any new programs.
How to Install OpenSSH-server on your Android Ubuntu!
Type “apt-get install openssh-server” to install OpenSSH-server. What is OpenSSH-server? If you want to connect to your Android Ubuntu via an IP address (and SSH into it), you will want to do this.
How to Install TightVNCServer on your Android Ubuntu!
If you want to access the GUI of your Android Ubuntu, you can install TightVNCServer, which allows you to access the Android Ubuntu via Android VNC app on your Android smartphone/tablet or even access it remotely from your desktop computer.
Type “apt-get install tightvncserver” to install.
How to Fix Language Issues
Above is after I connected to my Android Ubuntu via SSH2. Well, for some reason my default language switched to German. To fix that, just type “export LANG=en_US.UTF-8″:
How to Install LXDE!(optional)
Next, we will install LXDE (Lightweight X11 Desktop Environment). Although we can use Ubuntu’s default GNOME (and trust me I love that), LXDE takes up less memory so our GUI access will be faster.
If you like GNOME, you can skip this step though.
Type “apt-get install lxde”
Next, let’s setup xstartup file so that when TightVNCServer is started, the LXDE runs instead of GNOME:
Type “cat > /root/.vnc/xstartup”
Then type:
cat > /root/.vnc/xstartup
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
icewm &
lxsession
Then hit Ctrl+D twice and enter to save the file.
How to Start TightVNCServer!
Next, let’s start the TightVNCServer and connect to it from our Android phone and my Windows 7 desktop:
Type “export USER=root” and “vncserver -geometry 1024×800″.
Here, you can change the resolution settings 1024×800 to the resolution of your liking.
Now your TightVNCServer is ready to accept any incoming connections from your phone or computer. Just point to the correct IP address and use port number 5901 to connect.
On your Android smartphone, just download the free app “Android-VNC-Viewer” and set the IP address to “127.0.0.1″ and port number 5901 to connect.
And you should be able to get into your Ubuntu like this:
You can also use desktop software like TightVNC Viewer and connect to your phone.
Do “ifconfig” to find out what your IP address is in your Android Ubuntu.
In this example, mine was connected to “192.168.1.131″.
Then connect to “192.168.1.131:5901″ on your TightVNC Viewer:
Here’s LXDE running on my desktop off my G2 Phone’s Ubuntu:
Troubleshooting
Ubuntu not running?
Try typing “cp” under Android shell and if you get an error message, it means you need to install Busybox. Install Busybox and try again.
Final Thoughts
As said in the video, there will be a lot of improvements in the speed of Android devices in the near future. This year, there will be a slew of dual-core 1Ghz processor-equipped Android devices being introduced. Which just means our Android Ubuntu will run faster and faster.

[GUIDE] How to LINUX on Rooted TFP

First off, thanks to msullivan for providing the BackTrack 5.0 image!
I've made this as easy as possible. Not for novice users.
I chose backtrack as the image (instead of ubuntu) because i LOVE backtrack. I've used it as my main on-the-go linux for a while. Mainly because I hack all the wifi I'm around so i have a constant NET connection
This script requires ADB installed and ROOT!
Required Apps
Busybox - Download and install busybox
Terminal Emulator
Any VNC Client that supports LINUX
Installation
Download the image and attached scripts (BT5_Install.zip)
http://www.ulozto.net/xfHz8JJ/primelinuxbacktrack5-zip
Rename the image to BT5.zip and copy to /sdcard/ - I would copy in the script, but ADB is WAAAY slow.
Unzip BT5_Install.zip into your ADB folder - Or anywhere if you have ADB set with environmental variables
Make sure device connected and responds to adb (adb devices)
run install.bat
This will push the proper scripts, open the image up for use and run necessary scripts
This process does take time. No longer than 10 minutes. Script will notify when complete.
---Linux is now installed!---
Open terminal emulator and type: (do this any time you want to start your linux if you have shut it down or the TFP has restarted)
su
cd /sdcard/bt5
sh bt
Type Y at the prompt
VNC into 127.0.0.1:5901 with password 'root' with any VNC program you like
PROFIT
Change Resolution!!
Open terminal in Linux
Type pico /usr/bin/startvnc
Xhange resolution to 1280x800
Type ctrl x
Yes
restart TFP
Look absolutely AMAZING now
Notes:
If the bt5 folder on /sdcard/ is ever deleted, you will lose your linux and need to re-install!
This has been tested and confirmed by me!
Can you tell I like formatting?? hahaha
Need help with ADB? Click HERE for my guide!
Im using POCKETCLOUD in Windows mode (it connect to linux as well!)
The GUIDE is not finite. Please post anything you feel should be added/corrected to the guide.
Thanks and 5 star would make me feel good inside too!
Yes!!!!I was wondering when we would see this for the TP. I wonder how long it will be till somone asks about monitor mode and packet injection. Let me go ahead and announce it... AIRCRACK WILL NOT WORK!!! Had to do it.. every backtrack thread on this forums is full of kids saying "I can hax0rz wifi?"
Sent from my SAMSUNG-SGH-I727
lol, i know, i wish.. it would only work if we could dual boot. that way, we could potentially have wifi aircrack support and all that!
Agreed.. but chroot is better than nothing I guess. You may want to try the "orbot" app along with backtrack. Its great for using the tor network while using bt.
biggem001 said:
lol, i know, i wish.. it would only work if we could dual boot. that way, we could potentially have wifi aircrack support and all that!
Click to expand...
Click to collapse
Sent from my SAMSUNG-SGH-I727 using XDA App
anyone tried interfacing with any wifi adapters yet with either the dock or a USB ATP to USB adapter? it'd be pretty awesome to get monitor mode on this thing...
Inevitble question. What happesn when we get ICS? Will we just have to reroot?
What's the difference in BT5 and the HD2 image I downloaded from the HD2 forums? Are they different versions of Ubuntu?
Oh yeah, and THANKS a ton for the install guide!
adampdx said:
Inevitble question. What happesn when we get ICS? Will we just have to reroot?
Click to expand...
Click to collapse
theoretically, yes!
tbns said:
What's the difference in BT5 and the HD2 image I downloaded from the HD2 forums? Are they different versions of Ubuntu?
Oh yeah, and THANKS a ton for the install guide!
Click to expand...
Click to collapse
the BT5 image is different than any other linux image. there are several floating (mainly ubuntu). my scripts are only setup for bt5.
if i find a ubuntu image i like, i'll make one for that too
biggem001 said:
the BT5 image is different than any other linux image. there are several floating (mainly ubuntu). my scripts are only setup for bt5.
if i find a ubuntu image i like, i'll make one for that too
Click to expand...
Click to collapse
Ahh, gotcha. I didn't realize this was a different flavor of linux, not a different version of Ubuntu (guess I should have read the thread title). Cool, going to give it a shot.
Thanks for this. I was looking to put some form of Linux on my tp lol. Just have to wait until I get an sd card now.
it doesn't have to be on your sdcard
sdcard means internal memory
there is a removable category for a removabl sdcard.
just transfer the zip to your normal memory root directory
biggem001 said:
theoretically, yes!
Click to expand...
Click to collapse
Oh, that's just the cat's pajamas. Awesome!
tbns said:
Ahh, gotcha. I didn't realize this was a different flavor of linux, not a different version of Ubuntu (guess I should have read the thread title). Cool, going to give it a shot.
Click to expand...
Click to collapse
Yea, bt5 is the security and exploitation flavor of Linux, ubuntu is more of the general purpose version
Sent from my Transformer Prime TF201 using Tapatalk
foboi1122 said:
Yea, bt5 is the security and exploitation flavor of Linux, ubuntu is more of the general purpose version
Sent from my Transformer Prime TF201 using Tapatalk
Click to expand...
Click to collapse
bt5 is ubuntu 11.04 with the penetration app suite and a different wallpaper... lol
Can someone try out LibreOffice and report back how smoothly it does/doesn't run? Will definitely root if LibreOffice runs well. Thanks!
biggem001 said:
it doesn't have to be on your sdcard
sdcard means internal memory
there is a removable category for a removabl sdcard.
just transfer the zip to your normal memory root directory
Click to expand...
Click to collapse
Yeah but I just prefer it on my sd. Personal thing.
Sent from my Transformer Prime TF201 using xda premium
to change resolution in BT5.. in linux
open terminal
type pico /usr/bin/startvnc
change resolution to 1280x800
ctrl x
yes
restart TFP
look absolutely AMAZING now
How does it run on the TFP ? is it responsive etc?
Can it be used as an everyday function? i'm really interested in this, and cant wait to get start messing about with it.
I've got BT5.zip on my sdcard directory, but I keep getting this error when I use the './install.bat' command:
OFF
Installing BackTrack 5 for ARM Devices.
./install.bat: line 3: syntax error near unexpected token `('
./install.bat: line 3: `ECHO Make sure BT5.zip is in your /sdcard/ folder (/sdcard/BT5.zip) NO' removable SD, internal.

how do i launch packet tracer on ubuntu port?

Hi,
I have installed ubuntu 10.10 port to my sgs 2. I have tried to install ad launch cisco packet tracer but i couldn't ran it. I could extract it and install from terminal the installer made an executable text file but i cannot run it.
please help!
Wow, this is an advanced one.
As you said, you're getting a shell script with the binary payload included. Does it have execution permissions ? does it use the correct shell ? is the script located on a partition without execute rights ? be more specific please.
VAXXi said:
Wow, this is an advanced one.
As you said, you're getting a shell script with the binary payload included. Does it have execution permissions ? does it use the correct shell ? is the script located on a partition without execute rights ? be more specific please.
Click to expand...
Click to collapse
I downloaded this one: Packet Tracer v5.3.3 Application + Tutorial - Generic Ubuntu
This is the complete Packet Tracer program including tutorials for generic Ubuntu
From: cisco.netacad.net/cnams/content/templates/LibraryHome.jsp?#/resource/lcms/cnams_site/english/generic_site_areas/library/course_catalog/PTSoftwareDownloads_Students.html
It is a tar.gz file. I extracted it from the terminal and succesfully ran the install file. I had to read the licence first then it started to install. I got a message "packet tracer succesfully installed" but i don't know how do i run it. I found a file in usr/local/bin/ named packettracer. I set the permissions to able to run it. When i tried to run or run from terminal options nothing happend
Sent from my GT-I9100 using xda premium
Well, if I remember correctly the Ubuntu port is heavily stripped down and lots of things are disabled. You'd be better off installing a full Ubuntu on your PC, sorry.
Thank you. I just wanted to flashing with my phone My pc runs win7
Sent from my GT-I9100 using xda premium
Any idea?
wanam v10 siyah v3b7 ttalk
Bump
wanam v10.6 siyah v3rc2 ttalk

Yoga Book & GnuRoot Debian

Hello community!
For those who are interested in installing a linux system (debian) on a NON-ROOTED Android device:
I managed to install GnuRoot referring to this tutorial:
https://www.xda-developers.com/guid...a-gnulinux-environment-on-any-android-device/
At first i had graphical errors when starting LXDE (like missing icons) due to missing libraries during the installation process.
I show you the steps for installing it, referring to above tutorial, but i added some new terminal commands, because there were libraries and dependencies missing when installing LXDE.
1) First install GnuRoot and XSDL server from playstore.
2) Let GnuRoot start and doing its installation. Then type in following terminal commands:
apt-get update
apt-get upgrade
dpkg-reconfigure tzdata <----- if you wanna change your locales
apt-get install libffi6 <------ this is one of the missing libraries, otherwise LXDE will have errors during its installation
apt-get install execstack <------ this is one of the missing libraries, otherwise LXDE will have errors during its installation
execstack -c /usr/lib/i386-linux-gnu/libffi.so.6 <------ this is one of the missing libraries, otherwise LXDE will have errors during its installation
apt-get install lxde-core <------- alternatively apt-get install lxde (for full LXDE with its apps)
3) start XSDL and make your configs (resolution etc.), let it run in the background
4) now type in GnuRoot following terminal commands:
export DISPLAY=:0 PULSE_SERVER=tcp:127.0.0.1:4712
startlxde &
5) switch back to XSDL and then wait until the GUI (aka LXDE) starts
It still shows some bugs like "No Session for PID # xxxx" whenever i log in. So i hope that i can get help to install it better (correctly) from the community.
Alternatively:
In the last few days i managed to let GnuRoot Debian run LXDE and connect to it via VNC viewer by running a VNC server locally. So if you dont want to use XDSL, but VNC instead, you can follow these instructions:
Download "GnuRoot Debian" and "VNC Viewer - Remote Desktop" in playstore.
Start GnuRoot, let it do its things and then type in the these shell commands:
For installing LXDE:
apt-get update
apt-get install apt-utils
apt-get install dialog
apt-get install sudo
sudo apt-get install libffi6
sudo apt-get install execstack
sudo execstack -c /usr/lib/i386-linux-gnu/libffi.so.6
sudo apt-get upgrade
sudo apt-get install lxde-core
For installing VNC-Server:
sudo apt-get install tightvncserver
su - root
tightvncserver :1 (<---- just start the VNC-Server in order to create the xstartup-file)
sudo apt-get install nano
nano ~/.vnc/xstartup
an editor will show up and add this line at the bottom of the xstartup-file
/usr/bin/lxsession -s LXDE &
save the file and continue with these commands:
vncserver -kill :1 (<--- kill the server)
tightvncserver :1 -geometry 1280x720 -depth 24 (<--- start it again with this resolution, you can choose any resolution you want)
Now open VNC-Viewer and create a new item in order to connect to the VNC-Server
type in this adress: localhost:1
There you go... you are connected to the VNC-Server running by GnuRoot Debian. Have fun... I installed LibreOffice and Gimp as desktop solution. Working great with the Halo keyboard and with a bluetooth mouse
Does the keyboard work?
boofman said:
Does the keyboard work?
Click to expand...
Click to collapse
Yes. Halo Keyboard works, as well as the touchpad. It simulates a "right click" of a mouse by touching the pad with two fingers. But i can't recommend using the touchpad. I use a Bluetooth mouse, and it works well with GnuRoot. You can work just like with a normal Linux environment.
Furthermore I got Libreoffice, GIMP, Firefox ESR and Evince (pdf-Reader) working. Unfortunately i didnt get Chromium (32-bit) working.
ok what about the wacom pad i.e. the create pad itself? does it work in linux?
Okay, so it works similar to a Virtualbox, but is more lightweight as it uses the Linux system that's running behind android in principle, right? Well, it makes the Android YB much more better than the Windows variant if that's the case, as it makes it a lot easier to use a real desktop environment inside of Android without having to reboot..
I'm weighing the pros and cons of going through all these trouble though, as the only reason I would want to have a linux desktop running would be more about using Office apps more than anything, and now with MS Office for Android, that would shorten the gap. I love Linux and have a Mint dual boot on my other machine, but the advantages in using the YB ultraportable Android with MS Office should suffice..
@bisharat:
I tried the wacom pad within linux using gimp. but it recognizes the pen only as normal mouse input. sometimes it lags, so drawing (on a professional base) doesn't work that well. and: in linux the pressure used with the pen (i.e. the intensity of the drawn line) isn't recognized as well.
@boofman:
The reason why i installed a linux system on the yoga book was: i tried every reasonable office solution in the app store or other sources, but i haven't found one that can work offline and which can work nearly as good as LibreOffice. As i have to read a lot of Magazines / Journals and as i have to write a lot of papers and making presentations, the installed linux system sufficed as Office solution.
And i plug in an external monitor (if needed) through the mini-hdmi, so i can have a light-weight mini office computer upon my android system for work. I think this is a good alternative, as I still don't see any possibilities to dual boot this device (aka Android and Win10).
-- message deleted --
ok so if possible can u post a video on how to install it and how to uninstall it (in case anything goes wrong)?
bisharat said:
ok so if possible can u post a video on how to install it and how to uninstall it (in case anything goes wrong)?
Click to expand...
Click to collapse
i just wrote a small tutorial in the first post. its similar to this tutorial:
https://www.xda-developers.com/guid...a-gnulinux-environment-on-any-android-device/
but i added some new commands.
uninstalling is very easy. just uninstall it through the application manager of the yoga book and delete the "GnuRoot" folder in your sdcard.
Tiggi2017 said:
@bisharat:
I tried the wacom pad within linux using gimp. but it recognizes the pen only as normal mouse input. sometimes it lags, so drawing (on a professional base) doesn't work that well. and: in linux the pressure used with the pen (i.e. the intensity of the drawn line) isn't recognized as well.
@boofman:
The reason why i installed a linux system on the yoga book was: i tried every reasonable office solution in the app store or other sources, but i haven't found one that can work offline and which can work nearly as good as LibreOffice. As i have to read a lot of Magazines / Journals and as i have to write a lot of papers and making presentations, the installed linux system sufficed as Office solution.
And i plug in an external monitor (if needed) through the mini-hdmi, so i can have a light-weight mini office computer upon my android system for work. I think this is a good alternative, as I still don't see any possibilities to dual boot this device (aka Android and Win10).
Click to expand...
Click to collapse
Thanks for the feedback.
Yeah, I can see where you are coming from, and as a matter of fact, I use my YB Android pretty much the same as you do: hook it up to a monitor and sometimes use it on a projector for presentations.
The issue I have with LibreOffice is that there are times the formatting gets messed up when opened in MS Office (where majority of my officemates use) unless saved in a PDF Format which you can't edit.
For now, MS Office for Android works though a bit lacking in features as compared to the Win10 version, but gets the job done in a pinch.
Dual-boot is one thing we can look into, but for now though, your solution is worth a try and should be a better option.
boofman said:
Thanks for the feedback.
Yeah, I can see where you are coming from, and as a matter of fact, I use my YB Android pretty much the same as you do: hook it up to a monitor and sometimes use it on a projector for presentations.
The issue I have with LibreOffice is that there are times the formatting gets messed up when opened in MS Office (where majority of my officemates use) unless saved in a PDF Format which you can't edit.
For now, MS Office for Android works though a bit lacking in features as compared to the Win10 version, but gets the job done in a pinch.
Dual-boot is one thing we can look into, but for now though, your solution is worth a try and should be a better option.
Click to expand...
Click to collapse
yeah, thanks. the thing with ms office is that you have to have an account the the features arent that superb. but you are right, most people use ms office and the format is messed up when continuing working with LibreOffice. thats why i only write documents and make presentations with LibreOffice. when publishing i always convert to pdf.
alternatively i also tried crossover with.... well... not so good results. its lagging and therefore disturbing the workflow. furthermore i just got Libreoffice working with crossover (more or less working...), gimp or other free graphic apps dont work.
having Linux on an Android system is a good way to have an Office computer in one's pocket. i also look forward to a possibility to dual boot the device.
deleted
Tiggi2017 said:
Hello community!
For those who are interested in installing a linux system (debian) without root:
I managed to install GnuRoot referring to this tutorial:
https://www.xda-developers.com/guid...a-gnulinux-environment-on-any-android-device/
At first i had graphical errors when starting LXDE (like missing icons) due to missing libraries during the installation process.
I show you the steps for installing it, referring to above tutorial, but i added some new terminal commands, because there were libraries and dependencies missing when installing LXDE.
1) First install GnuRoot and XSDL server from playstore.
2) Let GnuRoot start and doing its installation. Then type in following terminal commands:
apt-get update
apt-get upgrade
dpkg-reconfigure tzdata <----- if you wanna change your locales
apt-get install libffi6 <------ this is one of the missing libraries, otherwise LXDE will have errors during its installation
apt-get install execstack <------ this is one of the missing libraries, otherwise LXDE will have errors during its installation
execstack -c /usr/lib/i386-linux-gnu/libffi.so.6 <------ this is one of the missing libraries, otherwise LXDE will have errors during its installation
apt-get install lxde-core <------- alternatively apt-get install lxde (for full LXDE with its apps)
3) start XSDL and make your configs (resolution etc.), let it run in the background
4) now type in GnuRoot following terminal commands:
export DISPLAY=:0 PULSE_SERVER=tcp:127.0.0.1:4712
startlxde &
5) switch back to XSDL and then wait until the GUI (aka LXDE) starts
It still shows some bugs like "No Session for PID # xxxx" whenever i log in. So i hope that i can get help to install it better (correctly) from the community.
Click to expand...
Click to collapse
Edit: I see that it's via an Android device. Never mind
Was this done on the Android version or the Windows 10 version of the Yoga Book? Because this may be the breakthrough of getting Android on the Windows 10 version, and then enabling me to do research with a custom ROM.
Yoga Android: "It still shows some bugs like "No Session for PID # xxxx" whenever i log in. without the possibility to close the message windows." smae as the starter herein. anyone else? how to solve that?
s01q said:
Yoga Android: "It still shows some bugs like "No Session for PID # xxxx" whenever i log in. without the possibility to close the message windows." smae as the starter herein. anyone else? how to solve that?
Click to expand...
Click to collapse
For me, i can close that error message. But it is still annoying and i cannot get rid of that.
@nan0s7
Unfortunately it is for the android device only. Still waiting for a possibility to dual boot the device. I hope for a breakthrough soon....:fingers-crossed:
Tiggi2017 said:
For me, i can close that error message. But it is still annoying and i cannot get rid of that.
Click to expand...
Click to collapse
stupid me. Can close it
Tiggi2017 said:
@nan0s7
Unfortunately it is for the android device only. Still waiting for a possibility to dual boot the device. I hope for a breakthrough soon....:fingers-crossed:
Click to expand...
Click to collapse
Hope so... this device has so much potential =D
nan0s7 said:
Hope so... this device has so much potential =D
Click to expand...
Click to collapse
but then dual boot with linux or HaikuOS
s01q said:
but then dual boot with linux or HaikuOS
Click to expand...
Click to collapse
I'm aiming for Android first ;P

[Help] chroot: Run Ubuntu on TWRP. How add Wifi drivers?

I am a fan of Ubuntu and linux.
I want to make Ubuntu Mobile Device based on REDMI2.
I have launched TWRP on my phone.
fastboot boot wt8847_64_twrp_3.2.1.img
Using debootstrap I got Ubuntu for ARMv7.
debootstrap --arch = armhf --variant = minbase --foreign trusty ~/Downloads/ARMv7/Ubuntu_Trusty_armhf http://ports.ubuntu.com/
TWRP has a terminal.
I found chroot in TWRP.
I copied using adb push Ubuntu ARMv7 to phone.
Chroot helped me get Ubuntu up and running in conlose mode.
chroot /dev/Ubuntu_Trusty /bin/bash
Everything is fine.
But I can only use the Internet via a USB cable.
I am using pppd. (Thanks to the article at https://forum.xda-developers.com/)
If anyone is interested, I can describe in more detail.
I am trying to start an internal WiFi module or connect an external one.
For example the powerful RT2870 / RT3070 Wireless Adapter.
I have unpacked wt8847_64_twrp_3.2.1.img by Android Image Kitchen (AIK).
I added kernel from the official firmware.
Packed up and launched successfully.
But ifconfig didn't show any wireless devices.
There are folders in the official firmware
/system/lib/
/system/lib64/
/system/vendor/lib/
/system/vendor/lib64/
What is the name of the driver file for WiFi?
OK. All drivers in /system/lib/modules
IronAndroid2021 said:
I can only use the Internet via a USB cable.
I am using pppd. (Thanks to the article at https://forum.xda-developers.com/)
If anyone is interested, I can describe in more detail.
Click to expand...
Click to collapse
How are you using internet by usb ? Please tell, I want that too in my twrp chroot. What is pppd ?

Categories

Resources