Turn Pixel 4 Into Dedicated Server - Google Pixel 4 Questions & Answers

I want to turn my pixel 4 into a dedicated webserver that can run nginx.
If possible maybe a full installation of debian? Any suggestions or tips? Closest thing i've found is lildebi
Lil' Debi: Mobile Debian Installer
NO LONGER MAINTAINED Have an Android phone and want an easy Debian chroot running that you can trust? Install Lil’ Debi, and you can have a Debian install running with a single click of a button. It builds up a whole Debian chroot on your phone entirely using debootstrap. You choose the...
guardianproject.info

Related

[LINUX] - How To: UBUNTU on Dell Streak

EDIT: I can't post to XDA due to the fact that i just signed up for an account, but look at fards' copy of my post to see how to install Ubuntu on your Dell Streak
Here's Pats Post on modaco;
although it would be nicer to keep development discussion to just one thread, the more constructive input the better
Hello All,
I'm attempting to natively port Ubuntu and/or Debian to the Streak. With it being such a powerful device there really is no reason it SHOULDN'T be running a “desktop” operating system. However, implementing his is quite a difficult task, so if any and everyone's help would be very much appreciated.
In the mean time, this is my first guide on how to get ubuntu running piggyback on the Dell Streak. After quite a while (and numerous different trials), I have found that this is the easiest way to get Ubuntu Mobile up and running fast. All commands can be done through either ADB shell or the terminal emulator on the phone.
This was *NOT* done entirely by me, but is a culmination of the effort of lots of people in the android community. I just modified it so that it would work on the Streak.
**This Installation DOES NOT install Linux natively, and as such is should not be destructive to your Android system, however i take absolutely no responsibility for anything that happens and you do this COMPLETELY at your own risk**
Here is how to do it:
1) Root your phone. There are plenty of guides on how to do it, so find one and get root access on your phone.
**YOUR PHONE MUST BE ROOTED. THIS WILL NOT WORK WITHOUT IT.**
2) Download Ubuntu Mobile Bundle: http://uploading.com/files/bbm6b311/ubuntu.zip/
This contains an image of the filesystem as well as other necessary scripts to get it working.
2) Busybox - Install Titanium Backup from Android Market - if you press the "Problems" button it will install Busybox on your phone for you (Feel free to uninstall Titanium after this is done). This is the fastest and most pain free way to install busybox on the streak that i know of for now (the other ways of doing this ARE NOT fun...)
3) On your SD card's root directory, create a folder called ubuntu and extract all files in the ubuntu mobile bundle there.
4) Replace the bootubuntu executeable file in the ubuntu directory with mine, found here http://www.mediafire.com/?fi011w4fbmymw3y
5) Unmount phone from computer. ADB and Android Terminal will not work if the phone is mounted.
5) Download a terminal from the Android Market - I used Jack Palevich's Android Terminal Emulator (android market search: terminal) but anything similar should work the same
CODE
Code:
su
cd /sdcard/ubuntu
sh ubuntu.sh
6) Ignore any errors thrown up by ubuntu.sh. From this point, all that is needed to boot ubuntu is just to enter this:
CODE
Code:
bootubuntu
To start ubuntu from now on, this is all you need to do.
You should now have ubuntu working on your laptop, and while it DOES connect to your phone's internet sources, it DOES NOT yet have a graphical interface.
Here is how to add one:
1) Update the system with the following commands in ubuntu:
CODE
Code:
apt-get update
apt-get upgrade
The first one updates the package lists, the second one downloads updates to the system itself.
2) Install TightVNC in ubuntu:
CODE
Code:
apt-get install tightvncserver
3) Configure TightVNC:
CODE
Code:
export USER=root
vncserver -geometry 800x480
For security purposes, it is recommended that you assign a password to your VNC server when asked.
4) Download Android VNC Viewer from the market
5) Configure Android VNC Viewer:
Change the port to 5901 and type in your password that you entered before.
Other Problems
There appears to be a bug with the X window server sometimes refusing to connect to VNC. DO NOT change any settings on Android VNC Viewer, instead open a terminal and run the folloring command:
CODE
Code:
rm -R /tmp/.X11-unix
What Does Not Work – Will Try To Fix
Keyboard from Android VNC Viewer
Shutdown – Does Nothing
Reboot
Log Out
Native Install
I hope you guys enjoy this, and I can't wait to get your feedback.
- Pat
Click to expand...
Click to collapse
there was a thread about this but it wasnt work on me. now i am downloading and i will inform you again
what is the address for vnc ?
OMG! Could that be any slower on the download?
EDIT:
That sounded totally ungrateful - sorry!
Thank you very much for this
yeah works fine without problems.
it is better from g1 but not as well as a netbook. so only experimental use i think
I connected to the loopback 127.0.0.1 on 5901 and it worked - haven't seen how to connect to it remotely though
Edit:
Reading is fundamental - I can connect to it form another machine
now to fix the keyboard issue
in terminal emulator there is a note : localhost:1 vnc could work properly so i connect with only port and password.
is it possible to install jolicloud since its an ubuntu based system?
Newbie questions, sorry....
Before to try this port, just some maybe stupid questions for you:
- Still working the phone function?
- Is it easy to go back to standard or Steve Streaks Roms?
- Are there lack of drivers for bluetooth, gps, audio, wifi, etc?
Thanks.
No your missing the point here, this isn't an OS separate to android. Think of this as an app it runs on top of the android system. Also this is very experimental most features would be limited and no ubuntu can't be used as an smartphone os -No phone...
beginner said:
Before to try this port, just some maybe stupid questions for you:
- Still working the phone function?
- Is it easy to go back to standard or Steve Streaks Roms?
- Are there lack of drivers for bluetooth, gps, audio, wifi, etc?
Thanks.
Click to expand...
Click to collapse
1) Ubuntu does not replace android, and the UI only runs in a VNC server, so you can switch back and forth between ubuntu and the phone app (or angry birds?)
2) I installed mine on top of DJ Steve's 1.8.1 rom... It's not native, so it only runs on top of android instead of replacing it
3) Haven't tried audio yet, but it should work (let me know how it goes)... internet connectivity works and provided you have an internet connection enabled in android you can use tools like APT or Firefox in ubuntu... only problem is keyboard is a bit wonky...
For those who had trouble figuring out how to set up the VNC, here is a picture of my VNC configuration on my phone. If you find out the phone's IP address you should even be able to VNC into it from your computer (if your on the same wifi network)
Also, openoffice.org
- pat
Is anyone actively attempting to get Ubuntu running native?
audio not working
keyboard not working
also lots of lags.
ear0wax said:
Is anyone actively attempting to get Ubuntu running native?
Click to expand...
Click to collapse
Yes, i'm looking into it, but it's quite an uphill battle in order to get it working. I'll let everyone know when we make some progress.
www.cepdukkani.net said:
audio not working
keyboard not working
also lots of lags.
Click to expand...
Click to collapse
cause you are running 2 operating systems at the same time
But seriously, if ubuntu can run native (no android in the background) then the lag would be gone, and (if set up right) audio and keyboard would work.
- pat
could i recieve phone and uses sms?
Getting error
Hi all after passing command for booting ubuntu I get a error chroot can't find /bin/bash folder or directory missing
Sent from my Dell Streak using XDA Premium App
www.cepdukkani.net said:
audio not working
Click to expand...
Click to collapse
Im wondering if I install a rdp server instead of vnc if I can get remote audio working.
Ill post with whatever results i get once I'm done waiting 2 hours for the ubuntu image to download.
As for lag. I had a n900 running @600mhz and was doing a chroot into ubuntu and it ran fine, but it used xpyher not vnc. Is there any embedded X servers for android yet? (I highly doubt it)
data requirement for updating GUI pkg of Ubuntu
Can any body tell me size of the data required to update to gui ......as i m not using wi -fi i hv to stick on gsm data usage which is limited in my plan
Very cool!
I had lots of trouble rooting my 2.2.2, but finally got it done by running Gingerbreak twice in a row on a cleanly re-started Streak.
Thanks for a fun gig!

[TUT] CHROOT Ubuntu on Iconia

Based on:
http://forum.xda-developers.com/showthread.php?t=987740
All Credits to him
Im using this solution to run jdownloader, a local webserver, and to compile arm sources without any toolchain ( a bit more comfortable ).
You have to know, that this isnt rly fast compared to native ubuntu but its an easy solution..
Requirements:
-> Rooted Iconia A500(1)
-> Terminal Emulator ( some other shell )
Step by Step:
1) Download this package and extract it to /sdcard/ubuntu
2) Follow the installation steps in the linked orginal post.
DO NOT INSTALL THE CUSTOM KERNEL THERE!!!
Im using Jump Desktop as VNC Viewer because its a great App supporting Usb Mouse with Left and Right Click.
Do you want JDownloader running on your Tablet?
1) run apt-get install openjdk-6-jre
2) Download JDownloader MULTIOS Package from their site
3) cd to the extracted directory
4) run java -jar JDownloader.jar
Do you want to access your android system?
1) simply go to /android
You are on a ICS Rom and rightclick doesnt work? (USB Mouse)
1) apt-get install xbindkeys xbindkeys-config xdotools
2) xbindkeys-config
3) im using ctrl+left click as right click so input event is: ctrl+b:1
4) mapped event: xdotools click 3
5) add xbindkeys to autostart (for example with chrome startup application)
Interesting. Thanks for sharing
You might just as well use Linux Installer from the market...
EDIT: It can do both ubuntu and debian (stable/unstable).
This vs LinuxInstaller
I tried using the LinuxInstaller method and while it worked it wasn't as smooth as this. I used it to try to install Ubuntu 11.04 and it install Ubuntu, but headless and I had issues using LinuxInstaller's provided methods for install VNC, SSH, etc.
So far this method appears to be running smoothly, Ubuntu was install, VNC and SSH both installed, now I am just waiting for Gnome to install.
In the end they probably both work equally as well, but I am personally having more success with this method
Linux installer doesnt work on my device correctly
This only seems to be for Ubuntu 11.04.
Linux Installer only seems to support Ubuntu 9.04.
Did anybody try Ubuntu Installer Free by ZPwebsites? It seems to have a stable Ubuntu 12.04 install available from 26th April onwards.
EDIT: Doesn't look like my rooted ICS OTA 1.033 ROM meets the requirements.
japinder said:
This only seems to be for Ubuntu 11.04.
Linux Installer only seems to support Ubuntu 9.04.
Did anybody try Ubuntu Installer Free by ZPwebsites? It seems to have a stable Ubuntu 12.04 install available from 26th April onwards.
EDIT: Doesn't look like my rooted ICS OTA 1.033 ROM meets the requirements.
Click to expand...
Click to collapse
I'm using Backtrack ARM in chroot and it goes pretty well. I'm able to use it with a bluetooth mini keyboard/mouse combo + hdmi on my 40" TV
djxtabay said:
I'm using Backtrack ARM in chroot and it goes pretty well. I'm able to use it with a bluetooth mini keyboard/mouse combo + hdmi on my 40" TV
Click to expand...
Click to collapse
Which method did you use to install Backtrack? The one in the first post, or some app?
Sent from my HTC Sensation XE with Beats Audio using XDA
No there is a topic in the development called "backtrack and office" or something like this.
Simply search for backtrack in the dev section. ;-)
Sent from my A500 using xda premium
http://forum.xda-developers.com/showthread.php?t=1094237
There it is!
Sent from my A500 using xda premium

Need advice on setting up linux install

In that I got an idea, took the first step, and am now completely out of my depth.
Let me start at the beginning.
I've always wanted to get into android development, but with the departure of CosmicDan, my recent format of my home computer, and a lucky shot at taking a general development class have all culminated to suggest now's the time.
Here's my objective: Dualcore desktop computer, dualbooting Windows 8 and a flavor of linux focused entirely on being an android toolkit. Here's my problem: I used linux for a week in my highschool networking class most of a decade ago. Red Hat 7 or 8, maybe? Anyway, I know virtually nothing except what I've osmosed from using an ADB shell.
I need to know which flavor of linux is best for android dev, how to set up a dual boot, and after that point, probably step-by-step instructions on establishing a build environment and using github. I'm not completely useless at this, I know how to use google, but a lot of information is outdated and this is a somewhat situational goal.
ANY HELP IS GREATLY APPRECIATED!
Ubuntu!
And google Ubuntu google installer
Sent from my R800i using xda app-developers app
Ubuntu is more user friendly but if you want development I would suggest 1: backtrack 2: arch Linux (for advanced users) 3: fedora
Sent from my R800x using Tapatalk 2
Apparently Backtrack is called Kali Linux now...
"It includes support for the Metasploit Project's Metasploit Framework, a tool for developing and executing exploit code against a remote target machine.[2] It also includes the security tools Wireshark, John the Ripper, Nmap and Aircrack-ng.[2]"
Hahaha hell yes I'll take some of that.
I still think I'll need to install Ubuntu - I don't know how I'd put this particular build on a flash drive. Installing it from inside ubuntu would probably be easiest.
EDIT: Actually they have excellent instructions on the website for setting up a flashdrive.
im using ubuntu just fine
im on ubuntu 10.04 i compile builds fine
Use the Ubuntu wubi installer for dual boot
Sent from my R800i using xda app-developers app
Okay, Kali Linux is installed and operational, programs are updated, and I even figured out how to install Flash via the mysterious powers of 'apt-get'. Using Grub for dual boot, and I found my way around configuring it and populating a new cfg file via the terminal. Whew.
Perhaps 4/20 was a bad choice for learning a new and notoriously complex OS, or maybe it was the best choice.
I guess I'm ready to set up a kitchen, but now I need input again. Do I just 'apt-get' some magical box of android goodies, or is this process more involved?
Edit: The answer is 'more involved', but not by much. I got the kitchen from http://forum.xda-developers.com/showthread.php?t=633246 and I was even able to independantly apt-get my way out of an error without googling it! So, it's running... I guess it's time to start cutting up a ROM. I'm inclined to believe CyanogenMod would be the best starting point for that, and I'm doublefortunate that my roommate has a Nexus he's willing to let me experiment on, as I don't want to navigate the unique structure of Xperias yet.

Turning note into a Linux laptop: a step by step guide

Turning note into a Linux laptop: a step by step guide
The main advantage of the method here is that you can run android app and linux program side by side. Moreover, S-pen can act as mouse
Device: p600
ROM: P600UEUBMK1
(Following method may be applicable if your device is rooted and has other selinux permissive ROM installed)
1 Root and flash selinux permissive kernel
a. for root method, see
http://forum.xda-developers.com/showthread.php?t=2490805
b. Flash selinux permissive kernel, for instructions, see
http://forum.xda-developers.com/showthread.php?t=2590311
Please read the instructions completely.
c. Install SElinuxModeChanger
Install SElinuxModeChanger from Google Play (app is free and without ads) and change selinux mode to permissive.
Reboot note, if SELINUX status is Permissive in the Setting--about device, you can move on to next step.
2 Install Linux distro using Linux Deploy
Install Linux Deploy from Google Play (app is free and without ads), Start Linux Deploy and push the Download Button, and then in the Deploy option, you have the following choices:
a. Distribution
I have tried Debian and Ubuntu, both have been successful installed.
b. Distribution suite
For Debian , choose Jessie.
For Ubuntu, choose Trusty.
c. Architeture
Choose armhf.
d. Mirror URL
For Debian, http://202.141.160.110/debian
202.141.160.110 is the IP address of debian.ustc.edu.cn (one of the Debian mirrors in China)
You can choose other mirrors from
https://www.debian.org/mirror/list
but remember to convert the web address into IP address
For Ubuntu, http://18.7.29.125/ubuntu-ports/
18.7.29.125 is the IP address of mirrors.mit.edu
The above mirrors are chosen because they are stable and fast for users in China.
e. Installation type
File(default option)
f. Installation path
For Debian, /storage/emulated/0/debian.img
For Ubuntu, /storage/emulated/0/ubuntu.img
In fact , You can choose whatever file name you like. I chose the above names, because I actually installed both Debian and Ubuntu on my device.
g. Image size
Automatic calculation (default option)
h. File system
Auto (default option)
i. User name
Android (default option)
j. DNS server
Automatic detection (default option)
k. Localization
en_US.UTF-8 (default option)
l. Desktop environment
Xfce
m. Select components
Just check all components
After the Deploy options have been set, choose Install under Action options.
The installation time taken depends on the mirror chosen and how stable the internet connection is.
When you see “end: Install”
Push the Stop Button, and then Start Button.
If no information about failure of starting SSH and VNC services are shown, then the installation is successful.
3 Configure startup environment using Linux Deploy
Push the Download Button, ensure that both SSH and GUI are checked under STARTUP option.
for Graphic subsystem, choose VNC
for GUI setting, Display is set to 0, Depth 24, DPI 270, Width 2560, Height 1600.
check Custom mounts
For Mount points, add /mnt/extSdCard/ so that you can access external sdcard under linux environment.
or add /mnt/0/ to access internal sdcard.
Back to the main page, push Stop and then Start Button to see if external sdcard and internal sdcard can be mounted.
4 Set up ssh and vnc client
a. Install JuiceSSH from Google Play (app is free and without ads),
Launch JuiceSSH, under Connections, choose New Connection,
In basic settings, Type is set to SSH, Address is set to 127.0.0.1 (IP of local host), and Identity is android.
Back to the main page, connect to 127.0.0.1, when prompting for password, enter changeme. You are now login into Debian or Ubuntu.
b. Install bVNC from Google Play (there are free and pro versions, free version is fine)
In the Connect Type, choose Basic VNC.
In the VNC Connections Settings, Address is set to 127.0.0.1, port 5900, and password changeme.
Push the connect button, You are now login into Debian or Ubuntu desktop.
Can you please upload a video of Linux running on your note, if you can please. Never thought Linux would run on note. It would really transform this tablet into a powerful productivity tool.
excalibar001 said:
Can you please upload a video of Linux running on your note, if you can please. Never thought Linux would run on note. It would really transform this tablet into a powerful productivity tool.
Click to expand...
Click to collapse
I have no experience of making and uploading video .
some screenshots are attached
Does this guide is for P600 only ? :silly:
It's impractical at best. I mean I appreciate the time it took for you to write this, but linux through chroot is not very useful, it cannot be. It's like trying to run linux on a p3 machine, which is painful to see especially since our machines have the raw power of a fast core 2 duo (if cross platform benchs are to be believed).
What we need is a custom bootloader which would enable dual boot of Linux and android and then a proper linux kernel including driver support for all our tablets main components. Native linux. I've always dreamt of an ultra portable do-it-all machine and my note is almost that, with *almost* being the imperative word.
Note 2012 has it, raspberry f....ING pi has it even though it includes 1/10th of the firepower of our note, we don't, and I miss it oh so much for certain apps. The pen via hovering can act like a proper ultra portable mouse (tapping -> left click, pressing the key + tapping -> right click) + a floating keyboard (like Sammy 's official one) and we're golden. Alas without a proper kernel and a proper bootloader we're nothing.
Appreciate the effort, I really do, but linux deploy is mostly a toy :/
I'll await for the day that native linux comes.
does it work with framebuffer option (instead of vnc)?
Stevethegreat said:
It's impractical at best. I mean I appreciate the time it took for you to write this, but linux through chroot is not very useful, it cannot be. It's like trying to run linux on a p3 machine, which is painful to see especially since our machines have the raw power of a fast core 2 duo (if cross platform benchs are to be believed).
What we need is a custom bootloader which would enable dual boot of Linux and android and then a proper linux kernel including driver support for all our tablets main components. Native linux. I've always dreamt of an ultra portable do-it-all machine and my note is almost that, with *almost* being the imperative word.
Note 2012 has it, raspberry f....ING pi has it even though it includes 1/10th of the firepower of our note, we don't, and I miss it oh so much for certain apps. The pen via hovering can act like a proper ultra portable mouse (tapping -> left click, pressing the key + tapping -> right click) + a floating keyboard (like Sammy 's official one) and we're golden. Alas without a proper kernel and a proper bootloader we're nothing.
Appreciate the effort, I really do, but linux deploy is mostly a toy :/
I'll await for the day that native linux comes.
Click to expand...
Click to collapse
Linux through chroot is sufficient for the following purposes:
1 have a taste of different linux distro
2 learning programming in R, python, and octave.
3 editing and compiling no so large latex files
4 learning and practicing the universal editor emacs ( I use it with R,python and octave) if equipped with a physical keyboard.
In sum, note 10.1 with linux through ssh and vnc is perfect for educational purpose.
For developer, at least, they can learn how their linux program looks like in a 10 inch screen with 2560*1600 resolution.
ziotom2 said:
does it work with framebuffer option (instead of vnc)?
Click to expand...
Click to collapse
I have the same question for op or anyone in the know. Can you start gui without vnc?
I have tried framebuffer on several devices, including note , without success.
Are there any prerequisite to use it?
Thank you for the guide. I am stuck in point 4th setup ssh and vnc when I try to connect I think it doesnt rcognize address 127.0.0.1 as I recive this msj: failled to connect to /127.0.0.1 port 22 connect failed ECONREFUSED. Any idea why?
Thank you
What I can do on Linux?
Sent from my Galaxy Note 2
Why install Linux?
Stevethegreat said:
It's impractical at best. I mean I appreciate the time it took for you to write this, but linux through chroot is not very useful, it cannot be. It's like trying to run linux on a p3 machine, which is painful to see especially since our machines have the raw power of a fast core 2 duo (if cross platform benchs are to be believed).
Click to expand...
Click to collapse
Actually there are several Linux applications I would like to run, which require very little processing power and I believe would run just fine.
WikidPad and FreeMind are the obvious ones for me; but I also have a proprietary simulation package that would probably benefit from running slower
Their value to me would because they are always available so using them would lack the friction I currently endure- I have to be at home to use them.

turn old phone as arm board project

hi all,
so , i've 4 old phones arm based uc :
htc wildfire, acer liquid e1 , thomson every40, and a ms lumia 640 ,
i would like to reuse them in a arm board project .
my goals are:
to set up one as "home nas" conneted in wifi to my providerbox and provide ssh(at least ) ,vpn and files server service.
And a second one set up as: a mobile hotspot (open wifi) where connected user can drop and drag files .
and add a webgui where I will able to turn the wifi card into a wifi repeater .
i don't need user interface (screen on the device) the goal is to turn on and get the system loaded and setuped
so guys , do you have some leads, advice or trick for load mini linux(openwrt or debian arm ) directly by the bootloader .
thx
I don't know about the Lumia, but you can easily run a Linux desktop distro on the Android phones. If you have experience with Linux, or just Google a bit, you can easily find tools that provide what you want. To get a desktop distro running, root the device. Then you can either chroot into a distro manually (plenty of guides on XDA for that), or use an app called Linux Deploy. Both methods will give you a complete, un-emulated distro. Both methods need booting into Android, but even such old phones should be able to handle a minimal Debian or Ubuntu ARM chroot pretty well. Just do not install a DE, do the initial set up over SSH. I don't think you can boot into something other than Android on those devices.
grip-it & rip-it
an even easier option (and better, imho) is to just download termux and yer set. You can download appropriate packages, dependencies, libs. etc... from inside the terminal. and that's all m8.
ch33rs

Categories

Resources