[Q] Ubuntu chroot in android failure? - TouchPad General

Hey guys I downloaded Linux Installer and I successfully ran Ubuntu in chroot, and I also manually tried this by downloading files and making a bootable img, all this in cm7 a3, and that worked.. but no matter what I can't apt-get update or apt-get install so there's no way to get tightvncserver so no GUI if anyone can solve my problem it would be much appreciated!

You'd want to talk to Rod Whitby of webOS Internals about this: http://www.webos-internals.org/wiki/Main_Page

Related

[Q] Full Ubuntu on Webtop

After installing webtop2sd and fixing all the dependencies and etc, how do I get webtop to look and feel like the latest Ubuntu? Do I install the Ubuntu Desktop package from Synaptic? Thanks in advance. :]

Wanting to get into cooking roms ect and need some help

Hi XDA, i wan't to look into developing roms, for the Evo 3D GSM in particular, im new to any kind of android development so looking for support, i have done some development before but only in visual studio + XNA game studio.
I will need help setting up my development pc from scratch which could either be of two setups that are listed below:
Acer Aspire M1500
Windows 7 Desktop
AMD Athlon 64 X2 Dual Core 4000+ 2.10GHz
3GB DDR2 RAM
1TB HDD, 750GB HDD, 200GB HDD, 160GB HDD
512MB DDR2 ATI Radeon HD4350 Graphics Card
I can setup a dual boot with ubuntu/linux but as this is my main pc i'd like to keep it as it is, but that depends whether my next pc can handle development.
Samsung NC10
Windows 7 + Android x86 ICS Build
Intel Athlon 1.66GHz Single Core
1GB DDR2 RAM
250GB HDD
256MB Intel GMA950 (Integrated) Graphics Card
Ideally i'd like to use my netbook as i rarely use it and if a dual boot were to mess up it wouldn't matter as there's nothing important on the Windows 7 install but if i can develop from within windows 7 via VM ect then i'll use the desktop as it has a larger monitor hooked up to it so if someone can point me in the right direction i'd highly appreciate it.
If a DEV can spare some time to help add to the DEV scene (noticed the GSM Evo has a very small amount of DEV's) I'd be willing to donate my time to use my phone to help out with testing builds ect.
Thanks in advance
-XeX_DuBwoofer_x
EDIT: Going to dual boot with Ubuntu 12.04, what do people recommend? install onto my netbook's second partition (currently has android installed) reccomend me a partition size!
OR
install to the 160GB HDD in my desktop
50GB will be enough for Ubuntu (or Arch, or Gentoo, or Debian, or whatever) + Android sources + compilation stuff.
I would suggest to use ArchLinux tho - it's more optimized and like a bleeding edge.
There is no matter on what you should develop - but IMHO it will be easier under native linux (not virtualized).
After installing system the only thing you need to start develop - download sources and edit them
Compilation stuff is easy as a pie - get repo's, "lunch", "mka bacon". To rebuild 1 thing do "mm" at root directory of that thing.
Do you want to know more? I hope I can help you somehow...
BTW I quite sure that you can build whole android on your netbook but it will be like 10-12 hours of building. Also it will run out of memory sometimes, so you will need to restart "mka bacon" OR you can do it with "make bacon" - it requires less memory and (as you have only 1 CPU) it can be the right way.
You need to check yourself the time of compilation. Also you can train your skills about installing linux
I think you shouldnt remove android from second partition - instead you can use "gparted" while booted to live Ubuntu to resize partitions online. That can lead to loss of data but I never had one. (I was resizing ntfs, fat32, ext2, ext3, ext4, reiserfs)
Actually I'm not quite sure bout how much RAM should you have, but I think 16GB is enough On my new laptop (which is now unusable due to coller stuff, but rescue flies from China right now) it could ran of memory with 8GB of RAM.
SecFry said:
50GB will be enough for Ubuntu (or Arch, or Gentoo, or Debian, or whatever) + Android sources + compilation stuff.
I would suggest to use ArchLinux tho - it's more optimized and like a bleeding edge.
There is no matter on what you should develop - but IMHO it will be easier under native linux (not virtualized).
After installing system the only thing you need to start develop - download sources and edit them
Compilation stuff is easy as a pie - get repo's, "lunch", "mka bacon". To rebuild 1 thing do "mm" at root directory of that thing.
Do you want to know more? I hope I can help you somehow...
Click to expand...
Click to collapse
Thanks for checking this out i will take your suggestions as im a massive noob where Android development concerns me.
I'll install it on my desktops 160GB HDD and add another NTFS partition for all work i do so i can access it from windows easily, so firstly i will download and install ArchLinux on my pc, if you can run me through everything from installing everything on ArchLinux to starting a CM9/AOSP ICS Evo 3D GSM Rom that would be great i have no idea what i need to download ect
P.S i tried your rom out and i like it but i'd like to be able to contribute to things
EDIT: I'll covert my 160GB HDD into 2 Partitions 1x 60GB for ArchLinux + 100GB For everything else
1. Get free space on HDD.
Do it with gparted on ubuntu live or with console like things.
2. Make partition setup.
Do it with gparted on ubuntu live or you can do it in ArchLinux installation process.
3. Then download "https://www.archlinux.org/iso/2011.08.19/archlinux-2011.08.19-core-i686.iso.torrent" - x86 build.
Or this one - "https://www.archlinux.org/iso/2011.08.19/archlinux-2011.08.19-core-x86_64.iso.torrent" - x64 build.
4. Read this until point 4 - https://wiki.archlinux.org/index.php/Beginners'_Guide
BTW if you arent new to Linux, you can read this also - https://wiki.archlinux.org/index.php/Official_Installation_Guide
5. Install ArchLinux
6. Read the rest of - https://wiki.archlinux.org/index.php/Beginners'_Guide
7. While being root, run:
# pacman -Syu openjdk6 schedtool pngcrush curl
8. While being normal user, run: (http://source.android.com/source/downloading.html - Installing repo)
$ mkdir ~/bin
$ echo PATH="~/bin:\$PATH" >> ~/.bashrc
$ echo USE_CCACHE=1 >> ~/.bashrc
Logout, login and run:
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
9. Then do (https://github.com/CyanogenMod/android)
$ mkdir android_source
$ cd android_source
$ repo init -u git://github.com/CyanogenMod/android.git -b ics
$ repo sync
$ . build/envsetup.sh
To build android do:
$ lunch
$ mka bacon
I'm installing Ubuntu 12.04 Desktop as ArchLinux is giving me an error when booting from usb to install
EDIT: installing Ubuntu 10.04 as Android open source site says 10.04 is recommended
EDIT #2: I'm really beginning to dislike this already lol i can't get anything to install correctly on my pc for a dual boot setup other than getting ubuntu 12.04 to install but the open source site says "You will need a 64-bit version of Ubuntu. Ubuntu 10.04 is recommended. Building using a newer version of Ubuntu is currently only experimentally supported and is not guaranteed to work on branches other than master."
last ditch attempt to install Arch Linux, im using LiLi to download the iso and create a bootable usb to install it to my desktop's HDD fingers crossed it works, linux is a bum at times
Arch Linux install failed again with the error not enough memory to load desired image, i've just installed Ubuntu 12.04 fine but can't work out why Ubuntu 10.04 won't?
FIXED Arch Linux! had to disable "Memory Hole" in bios and now it's installing fine
I am going to cook roms also i am far on the way, just compiled my first htc evo 3D kernel, maybe we can fix those thing together? (Btw the kernel works but wifi is broken... )
Goob job! You are managed to pass tho your linux install
Now in console it's enough to contunie from step 7 of my miniguide.
If you want some GUI - you should read this https://wiki.archlinux.org/index.php/Xorg
As miniguide again its "pacman -S xorg-server xfce4 xfce4-goodies" and then "startxfce4" in console.
sjoerd0301 said:
I am going to cook roms also i am far on the way, just compiled my first htc evo 3D kernel, maybe we can fix those thing together? (Btw the kernel works but wifi is broken... )
Click to expand...
Click to collapse
Sounds goot to me! when i have the Arch Linux install all setup will hit you up!
SecFry said:
Goob job! You are managed to pass tho your linux install
Now in console it's enough to contunie from step 7 of my miniguide.
If you want some GUI - you should read this https://wiki.archlinux.org/index.php/Xorg
As miniguide again its "pacman -S xorg-server xfce4 xfce4-goodies" and then "startxfce4" in console.
Click to expand...
Click to collapse
Cheers man! couldn't have done it without your help, im going install both Xorg & KDE as i've used KDE in backtrack before it was more like a normal windows desktop setup
Which linux do you use now then?
I build using ubuntu.
Anybody knows how to build the wifi module for shooter_u ?
sjoerd0301 said:
Which linux do you use now then?
I build using ubuntu.
Anybody knows how to build the wifi module for shooter_u ?
Click to expand...
Click to collapse
currently i have setup Archlinux i686 version and im running KDE ontop so it has a GUI appearance
XeX_DuBwoofer_x said:
currently i have setup Archlinux i686 version and im running KDE ontop so it has a GUI appearance
Click to expand...
Click to collapse
The 64 bit version right? U really need a 64 bit environment
sjoerd0301 said:
The 64 bit version right? U really need a 64 bit environment
Click to expand...
Click to collapse
I686 is 64 bit yes but I can't seem to download multilib stuff :S
I told ya to use ubuntu or li ux mint or so.. i am building android right NOW !
sjoerd0301 said:
I told ya to use ubuntu or li ux mint or so.. i am building android right NOW !
Click to expand...
Click to collapse
yeah i installed Ubuntu 10.04 Lucid Lynx 64bit onto my other hdd downloading the JB repo atm then gonna download ICS
Actually i686 is x86. x86_64 aka amd64 aka x64 is different.
And no problem I'm pretty happy to see people trying to join dev-scene!
SecFry said:
Actually i686 is x86. x86_64 aka amd64 aka x64 is different.
And no problem I'm pretty happy to see people trying to join dev-scene!
Click to expand...
Click to collapse
realised that after i checked arch linux's info lol it said to download it for amd64 processors? :L i got messed up as my windows os was 32 bit and i copied the i386 folder (for drivers) and thought that was the architecture version lol! i got Ubuntu 10.04 LTS 64bit from their site now as its easier to work with

[Q] Android Kitchen ia32-libs Problem

Hi everyone. I've just started editing some Rom's with kitchen and i'm newbie about that.
I modded everything i want in kitchen and i was about to create .zip file to flash it to my phone. But i got an error.
it was about "Zip Align" and i read the Q&A part on xda - kitchen topic. There is a answer like that;
QUESTION: I am using Ubuntu Linux on a 64-bit Windows PC, and whenever I run 'zipalign' I get an error about "No such file or directory".
ANSWER: You need to install the Ubuntu package "ia32-libs".
I tried to install ia32-libs package but i get some errors. I searched on internet and i saw that it's a bugor sth like that. And i dont know what to do.
I tried typing "sudo apt-get install ia32-libs" or "sudo apt-get install ia32-libs-multiarch" to terminal buti couldnt get package called ia32.
Btw, i'm using ubuntu installed with latest wubi (i think 12.10).
I need some help. Thank you.

[Question] Is there anyway to get a linux running on android?

So i really am looking for a way to get linux possibly debian or ubuntu to get working on my android. tried linux deploy , complete linux installer, gnuroot...no luck. Please helo if you can
Device: xaomi mi4, android 6.0.1 cyanogenmod
Sorry for the necro, but gnuroot debian on the playstore should work! Remember it only installs the backbone of linux via a P-root (like chroot). You would need to install and set-up all dependencies you need to run applications by yourself though! I had no issues running octave (even in gui) and blender. I still have more to learn about bash. Anything that can run on arm64 (if your soc has an instruction set of armv7+). Also since you are rooted, you should be able to get even kernal installed easily, but it will take some time, patience and work!!

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

Categories

Resources