How to install Parrot Os Chroot on android - Android Q&A, Help & Troubleshooting

What is Chroot?
A chroot on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children. A program that is run in such a modified environment cannot name (and therefore normally cannot access) files outside the designated directory tree. The term "chroot" may refer to the chroot system call or the chroot wrapper program. The modified environment is called a chroot jail.
Instructions to install Parrot os (CHROOT) on Android.
Requirments:-
4 Gb of free space on phone
Linux deploy app
vnc viewer
Juice ssh
A good internet connection
/LIST]
Method:-
1.Goto https://docs.parrotsec.org/doku.php/mirrors-list and copy the nearest mirror repo link
2.Open Linux Deploy chroot menu
3.Set Distribution to Debian
4.Set Distribution Suite to Stable
5.In Source path paste the repo link which you have copied in step 1
6.Set file system to ext4
7.Set Usename and password of your own
8.enable ssh and vnc protocols if required
9.now go to back and click options in linux deploy
10.click on install and once it is done click on Configure
To access ssh use Juice ssh app which is available in playstore
Steps to use juice ssh:-
1.click on connections
2.click on plus
3.In address type 127.0.0.1
4.in identity click on new
5.In username and password enter the details which you have entered in chroot settings
6.and now click on save and connect
To access GUI use vnc viewer from playstore
Step to use Vnc Viewer
1.click on plus
2.In address use 127.0.0.1:5900
3.Now click on connect
4.Now enter password which you have entered in chroot settings
For video tutorial go to link below
https://youtu.be/GcKHAB2vec4

Hi, is possible to install puppy linux instead?

Marella ram_youtubr said:
What is Chroot?
A chroot on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children. A program that is run in such a modified environment cannot name (and therefore normally cannot access) files outside the designated directory tree. The term "chroot" may refer to the chroot system call or the chroot wrapper program. The modified environment is called a chroot jail.
Instructions to install Parrot os (CHROOT) on Android.
Requirments:-
4 Gb of free space on phone
Linux deploy app
vnc viewer
Juice ssh
A good internet connection
/LIST]
Method:-
1.Goto https://docs.parrotsec.org/doku.php/mirrors-list and copy the nearest mirror repo link
2.Open Linux Deploy chroot menu
3.Set Distribution to Debian
4.Set Distribution Suite to Stable
5.In Source path paste the repo link which you have copied in step 1
6.Set file system to ext4
7.Set Usename and password of your own
8.enable ssh and vnc protocols if required
9.now go to back and click options in linux deploy
10.click on install and once it is done click on Configure
To access ssh use Juice ssh app which is available in playstore
Steps to use juice ssh:-
1.click on connections
2.click on plus
3.In address type 127.0.0.1
4.in identity click on new
5.In username and password enter the details which you have entered in chroot settings
6.and now click on save and connect
To access GUI use vnc viewer from playstore
Step to use Vnc Viewer
1.click on plus
2.In address use 127.0.0.1:5900
3.Now click on connect
4.Now enter password which you have entered in chroot settings
For video tutorial go to link below
https://youtu.be/GcKHAB2vec4
Click to expand...
Click to collapse
Hi, i'm interested to install puppy linux instead, is possible? Please let us me know. Thank you so much

Related

[Q] Android Emulator: edit hosts file doesn't resolve custom domain name

Halo All,
I'm developing a mobile website and I want to see how it looks in Android Simulator.
I manage to edit my android's /etc/hosts file. Here's what I did:
1. Create an Android Virtual Device (AVD)
2. Open the AVD with this command
Code:
./emulator -avd android -partition-size 128
3. Execute the following commands
Code:
./adb remount
4. Get the android hosts file
Code:
./adb pull /etc/hosts
5. Add my mobile website into the android's hosts file. It looks like the following
Code:
127.0.0.1 localhost
172.19.14.46 m.myweb.localhost
6. Push the hosts file to the simulator
Code:
./adb push hosts /etc/hosts
7. Open the web mobile in the simulator and Host do not found. The web mobile should appear.
Did I miss something here?
Btw I use Ubuntu 10.10 and android-sdk_r08-linux_86 API 7 (Android SDK 2.1)
It's been 2 days and no reply. I wonder whether the question is confusing to understand or it cannot be replicated.
FYI, m.myweb.localhost is a virtual host running in my local machine.
found a solution for this problem?
spending the whole ****ing day with it -.-
yes, you can change name it?

Ubuntu 10.04 on huawei ideos s7/s7slim easy way

UBUNTU 10.04 LINUX
This is is easy way to s7/s7 slim fans to have complete linux Ubuntu 10.04 on tablet and have power in hands and you can with hdmi cable have complete pc
Requirements:
- android phone
- superuser + busybox
HOW TO:
-Download from google play: vnc wiewer
terminal emulator
-Download this,unzip and put this UBUNTU folder in sdcard or sdcard2(you mast have 4 gb free):
Download link:
https://rapidshare.com/files/3426062139/ubuntu.zip
when you do that go to terminal emulator and tape :
su to become a superuser (root)
cd /sdcard/ubuntu or cd /sdcard2/ubuntu if you unzip on ext sdcard
sh ubuntu.sh
Than go to vnc wiewer and simply add a new VNC server with address localhost, port 5900, and password 'ubuntu' - then hit connect.
What software is pre-installed?
Ubuntu 10.10 (Maverick) Core
LXDE (Lightweight Windows-like GUI) with tightvnc server
Application:
Firefox, Thunderbird, openoffice.org suite, GIMP Image Editor, Emacs Text Editor (geared towards programming), C and C++ build-essential, Java JDK, Python, TeXlive and TeXmaker LaTeX editor, Transmission BitTorrent Client, eVince PDF Viewer, File Manager, Terminal, Image Viewer, Leafpad Text Editor, Synaptic Package Manager and Ubuntu Software Center with all repositories enabled (Ubuntu Software Center is pretty and well organized - but bloated and slow), SSH server, Gnash (GNU flash player/plugin for Firefox - as there is no official generla flash pluging for armel CPUs)..
Obviously, you are free to add and remove apps as you see fit (through Synaptic or Ubuntu Software Center)..
AND IF YOU LOVE MY WORK PRESS THANKS
Thanks
Jagodinac ,svaka ti cast!
Uvek sam ponosan kad vidim da neko od nasih postavlja uputstva na ozbiljnim forumima.
Upravo skidam ubuntu da probam kako radi....
can you put the download file into another place? i can not download it from rapidshare!! please help!
is there anybody who has still the image ?
This device's whole subforum is full of dead links guess I'm not reviving this tablet of mine heh

Java TightVNC Viewer on Stock Webtop

So I figured out that you can run a Java based VNC Viewer (more specifically, I used TightVNC for both server and viewer) in the stock webtop to remotely control other machines. Remote apps are the best way to increase functionality of the phone/webtop when on wifi at home/work IMO.
The issue to overcome is getting Java to work in Firefox, there are a few topics already about this, but the information is a bit scattered and slightly outdated.
There is one downfall to this: The VNC window will not cover the app tray or notification bar at the top of the webtop display, so there is a limiting resolution you can use to login to the VNC server.
What you need:
1. Rooted phone
2. ES File Explorer or Root Explorer App
3. Terminal Emulator App
4. Java Download
I installed this version:
http://www.oracle.com/technetwork/java/embedded/downloads/ejre-6u32-downloads-1595958.html
ARMv7 Linux - Headful
There is a newer version (java 7),but I'm sticking with version 6 since I know it works.
5. A PC with TightVNC Server installed (or other VNC server with a Java based viewer). I would suggest running a headless virtual machine (with like VirtualBox), it makes it a lot easier to adjust the screen resolution to your needs. You can read here on my post about getting a VirtualMachine running and connecting your phone to it for more information:
http://forum.xda-developers.com/showthread.php?t=1650534
To Get Java Installed:
1. Download and extract the Java download. Once extracted, copy the whole ejre1.6.0_32 folder to /usr/lib/ using your favorite android file explorer with root access.
2. I did this step with webtop open,so you can copy and paste these commands inside the Terminal Emulator (make sure it has Super User access):
Code:
su
rm /usr/lib/firefox-addons/plugins/libnpjp2.so
ln -s /usr/lib/ejre1.6.0_32/lib/arm/libnpjp2.so /usr/lib/firefox-addons/plugins/libnpjp2.so
chmod 755 /usr/lib/ejre1.6.0_32/bin/java
chmod 755 /usr/lib/ejre1.6.0_32/bin/java_vm
chmod 755 /usr/lib/ejre1.6.0_32/bin/javaws
chmod 755 /usr/lib/ejre1.6.0_32/bin/keytool
3. For kicks,reboot the phone and see if it works (go here to verify: http://java.com/en/download/installed.jsp ). If it works,skip to step 5
4. Copy these commands into Terminal Emulator
Code:
su
mv /osh/etc/tomoyo/exception_policy.conf /osh/etc/tomoyo/exception_policy.bak
mv /osh/etc/tomoyo/domain_policy.conf /osh/etc/tomoyo/domain_policy.bak
/bin/touch /osh/etc/tomoyo/exception_policy.conf
/bin/touch /osh/etc/tomoyo/domain_policy.conf
Reboot the phone again,then try verifying it works or not with the link posted in the above step.
5. The hard part is over,you ave Java installed!
Now if Java is working properly,and if your VNC server is configured properly as well,you should be able to connect to it. By default TightVNC enables the Java Viewer on port 5800. So just type in the IP address of the server in Firefox,like:
192.168.2.99:5800
Type in your password,then you should be looking at the other desktop
6. For best practice,its good to set the resolution to the PC you are remoting into,to the max viewable resolution of the laptop dock (or PC/Monitor). This is a lot easier when using a headless VM,since doing custom resolutions otherwise can be a pain.
I will edit this line tomorrow after I get to work to see what I set the resolution at so it fits without scrolling
Thread References:
http://forum.xda-developers.com/showthread.php?t=1239265
http://forum.xda-developers.com/showpost.php?p=17755644&postcount=40
I somehow was able to get AWN Manager to work on my install,and was able to set it so maximized windows can cover it up (which also requires you to right click on the title bar of the window and click Always On Top).
Long story short,I can now use the Java VM with a max res of 1364x686
There is a pixel on each side of the window,and the menu/title/status bars are still at the top of the screen.
It beats the phone's resolution stretched out in any case.

How to install Remix OS in VirtualBox (or to harddisk)

Advantages of a "real" installation:
- the amount of storage is only limited by the size of your harddisk
- installation files and methods work for both harddisk and virtual machines (VirtualBox or VMWare)
If you prefer an installation without additional tools like Ubuntu or Unetbootin, have a look at "Installing Remix OS to Hard Drive or Virtual Machine without additional tools" (image based documentation).
Thread "Remix OS on Hard Drive or Virtual Machine - Installation and (OTA) Update" is a new and more comprehensive version of this thread including update of existing installations on hard disk or virtual machine. The current versions are 2.0.403 (2016-07-12) "Lillipop" which you can get from Fosshub and 3.0.102 "Marshmallow" which can be downloaded directly from Jide.
Otherwise if you are familiar with Ubuntu and Linux tools the following documentation is still interesting, because it allows you creating of modified boot media, different methods of disk formatting, and setting up virtual machines based on a prepared vmdk file.
Step 1: Create an iso file allowing real installation of the Android system into an ext4 partition
- you have to mount the original Remix OS iso file to your file system (read only):
create an empty directory "remix", open a terminal and execute:
sudo mount -o loop Remix_OS_for_PC_64_B2016030106.iso ~/remix/
or - in case of 32-bit version -: sudo mount -o loop "Remix OS for PC Beta 32-bit.iso" ~/remix/
- create a new copy of all contents of directory remix within a new directory named remixos
- open file isolinux.cfg with superuser rights (in directory isolinux) and replace section "label guestmode" with
label installmode
menu label ^Install Remix OS to hard drive
kernel /kernel
append initrd=/initrd.img root=/dev/ram0 androidboot.hardware=remix_x86_64 androidboot.selinux=permissive quiet INSTALL=1 DEBUG=
(in case of the 32-bit version the 3rd line contains . . . androidboot.hardware=remix_x86 . . . )
- create a new iso file (named remix.iso) using command
genisoimage -r -V "Remix OS 2.0" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o remix.iso ~/remixos/
- use UNetbootin based on new file remix.iso for creating a modified USB device (which will allow real installation to harddisk)
Step 2: Formatting the disk (ext4 and swap partition)
- Harddisk: Use gparted for creation of an ext4 and a swap partition on a new (empty) disk
- VirtualBox:
Create a new virtual machine called "Remix OS": Linux Ubuntu (64-bit or 32-bit), 20GB disk dynamic, bridged network
Start an Ubuntu installation creating an ext4 and a swap partition. Stop installation (by shutting down VirtualBox) after it has asked for the correct time zone.
Step 3: Installation of Remix OS
- Harddisk: Connect the USB device to your computer
- VirtualBox: Connect the remix.iso with VirtualBox IDE controller and restart the virtual machine.
Choose "Install Remix OS to hard drive"
Choose partition sda1 (ext4)
Do not format the disk
Create grub boot loader
Install system directory as read/write
In the next step the installation will be executed creating the linux system directory
Step 4: Setup Remix OS
Run Android-x86 - this will perform the creation of the Android data directory
If you prefer to use a prepared vmdk file your can go on at
- VMWare: http://forum.xda-developers.com/showpost.php?p=65013881&postcount=8
- VirtualBox: http://forum.xda-developers.com/showpost.php?p=65013915&postcount=9
Otherwise: After a few minutes you'll see "Select your language". Select your keyboard layout (e.g. German) first, then select your language.
After clicking "Next" (harddisk: entering your wi-fi data) and "Start" Remix OS will run.
Step 5 (Remix OS beta): Enable Google Play Services - see post http://forum.xda-developers.com/remix/remix-os/google-play-services-actually-remix-t3327735 - Thank you, You_KS
In version 2.0.403 you have to switch on "Enable debug terminal console" (Settings > Experimental features) in advance.
Enter the root terminal (Alt+F1) and type
pm disable com.jide.apppolicy
pm enable com.android.vending
pm enable com.google.android.gms
pm enable com.google.android.gsf
pm enable com.google.android.gsf.login
Leave the root terminal (Alt+F7)
Reboot
Step 6: Open Google Play Store
You will be asked for your Google account and password, you'll have to accept "terms of service", "privacy policy" and "billing information".
Step 7: Rooting Remix OS (installed within a Linux ext4 file system)
see link http://forum.xda-developers.com/showpost.php?p=65218188&postcount=44
I've just tried but running Android-x86 always seems to stop the machine. I did a few changes on the process but nothing really important (I used a web server to download the custom .iso file in my computer from the VM and used it without any USB, and I used an Ubuntu to make the partitions on the disk (about 23GB of storage, 2GB of swap))
I'm using VMWare Workstation 10.0.1 build-1379776
Maybe I just have to wait a bit more while running Android-x86? I took a snapshot before restarting the machine (Grub sure works, but as soon as I run "Install Remix OS to hard drive" it frozes again ("Detecting Android-x86... found at /dev/sda1") showing the same message: " A N D R O I D _ ")
Shadows_killer said:
I've just tried but running Android-x86 always seems to stop the machine. I did a few changes on the process but nothing really important (I used a web server to download the custom .iso file in my computer from the VM and used it without any USB, and I used an Ubuntu to make the partitions on the disk (about 23GB of storage, 2GB of swap))
I'm using VMWare Workstation 10.0.1 build-1379776
Maybe I just have to wait a bit more while running Android-x86? I took a snapshot before restarting the machine (Grub sure works, but as soon as I run "Install Remix OS to hard drive" it frozes again ("Detecting Android-x86... found at /dev/sda1") showing the same message: " A N D R O I D _ ")
Click to expand...
Click to collapse
I cannot help you with VMWare Workstation. Please check whether you can setup Remix OS using VirtualBox.
Can you please just upload a VMDK so that we can download and use it preconfigured?
+1, would be much appreciated.
evbenev said:
Can you please just upload a VMDK so that we can download and use it preconfigured?
Click to expand...
Click to collapse
or for VB
remixtester said:
I cannot help you with VMWare Workstation. Please check whether you can setup Remix OS using VirtualBox.
Click to expand...
Click to collapse
Ok, I'll try it with Virtualbox later today, and I'll keep trying it on VMWare too, I'd like to see Remix OS running on every different VMs I can. Btw, congratulations for the post!
Execute RemixOS.vmdk with VMWare
Download RemixOS64.vmdk.zip - Link (provided by madLyfe - thank you!) https://mega.nz/#!hpBwgAKC!qC7_CIdlriBgtwJsdGPannrshvrYFr0RsOZHSMEILrY which contains "Remix OS.vmdk" (beta version)
The version of the vmdk file is 2.0.102. How to update to version 2.0.202 (and newer versions) is documented in thread "Remix OS on Hard Drive or Virtual Machine - Installation and (OTA) Update".
The update method described in Update for Remix OS 2.0.102 installations will work for VMWare as well.
Open VMWare Workstation
- Start with "Create a New Virtual Machine"
- Custom
- Workstation 12.0 (e.g)
- "I will install the operating system later"
- Guest Operating System: 2. Linux - Version: Ubuntu 64-bit
- Virtual Machine Name: "Remix OS" (e.g.)
- Processors: 1 / 1 / 1
- Memory: 1372 MB (1024 MB should be ok, too)
- Use bridged networking
- I/O Controller Types: "LSI Logic" (Recommended)
- Virtual Disk Type: SATA (SCSI will not work!)
- Use an existing virtual disk - select the path to Remix OS.vmdk
- Convert existing virtual disk to newer format? - Keep existing format
- Finish
Start up the Remix OS operating system
A few minutes later (1 . . . 5 minutes) you should see the screen "Select your language"
Select your keyboard layout and click "Next", "Next", "Start"
Remix OS should run now
Installation of Google Play Store - method: see http://forum.xda-developers.com/remix/remix-os/google-play-services-actually-remix-t3327735
Enter the root terminal (Alt+F1) and type
pm disable com.jide.apppolicy
pm enable com.android.vending
pm enable com.google.android.gms
pm enable com.google.android.gsf
pm enable com.google.android.gsf.login
Leave the root terminal (Alt+F7)
Open Settings - Applications
Scroll down to "Google Play services", click "Manage space", and "Clear all data"
Click "Google Services Framework", and click "Clear data"
Restart Remix OS
Open the browser
Start a Google Search for "google play services"
Click "Google Play Services"
Sign on with your Google account and answer a few questions
Finally you can "Update" the "Google Play Services"
If this update works fine, your Google Play Store will be installed properly.
Execute Remix OS.vmdk with VirtualBox
Download RemixOS64.vmdk.zip - Link (provided by madLyfe - thank you!) https://mega.nz/#!hpBwgAKC!qC7_CIdlriBgtwJsdGPannrshvrYFr0RsOZHSMEILrY which contains "Remix OS.vmdk" (beta version)
If you want to work with a vdi file, please go to the directory where you have saved the vmdk file and convert it with command
vboxmanage clonehd "Remix OS.vmdk" RemixOS.vdi --format VDI
The version of the vmdk file is 2.0.102. How to update to version 2.0.202 (and newer versions) is documented in thread "Remix OS on Hard Drive or Virtual Machine - Installation and (OTA) Update".
Open VirtualBox
- Start with "New"
- Name and Operating System: "Remix OS", "Linux", "Ubuntu (64-bit)"
- Memory: 1372 MB (1024 MB should be ok, too)
- Disk: Use existing virtual disk (enter path to Remix OS.vmdk)
- Display: 3D acceleration
- Network: bridged
Start up the Remix OS operating system
A few minutes later (1 . . . 5 minutes) you should see the screen "Select your language"
Select your keyboard layout and click "Next", "Next", "Start"
Remix OS should run now
Installation of Google Play Store - method: see http://forum.xda-developers.com/remix/remix-os/google-play-services-actually-remix-t3327735
Enter the root terminal (Alt+F1) and type
pm disable com.jide.apppolicy
pm enable com.android.vending
pm enable com.google.android.gms
pm enable com.google.android.gsf
pm enable com.google.android.gsf.login
Leave the root terminal (Alt+F7)
Open Settings - Applications
Scroll down to "Google Play services", click "Manage space", and "Clear all data"
Click "Google Services Framework", and click "Clear data"
Restart Remix OS
Open the browser
Start a Google Search for "google play services"
Click "Google Play Services"
Sign on with your Google account and answer a few questions
Finally you can "Update" the "Google Play Services"
If this update works fine, your Google Play Store will be installed properly.
evbenev said:
Can you please just upload a VMDK so that we can download and use it preconfigured?
Click to expand...
Click to collapse
Opening http://forum.xda-developers.com/showpost.php?p=65013881&postcount=8 you'll find a vmdk file which you can use both for VMWare and VirtualBox. The vmdk file is not personalized. So you can select your preferred keyboard layout.
madLyfe said:
or for VB
Click to expand...
Click to collapse
Opening http://forum.xda-developers.com/showpost.php?p=65013915&postcount=9 you'll find a vmdk file which you can use both for VMWare and VirtualBox. The vmdk file is not personalized. So you can select your preferred keyboard layout.
Shadows_killer said:
I've just tried but running Android-x86 always seems to stop the machine. I did a few changes on the process but nothing really important (I used a web server to download the custom .iso file in my computer from the VM and used it without any USB, and I used an Ubuntu to make the partitions on the disk (about 23GB of storage, 2GB of swap))
I'm using VMWare Workstation 10.0.1 build-1379776
Maybe I just have to wait a bit more while running Android-x86? I took a snapshot before restarting the machine (Grub sure works, but as soon as I run "Install Remix OS to hard drive" it frozes again ("Detecting Android-x86... found at /dev/sda1") showing the same message: " A N D R O I D _ ")
Click to expand...
Click to collapse
Opening http://forum.xda-developers.com/showpost.php?p=65013881&postcount=8 you'll find a vmdk file which you can use both for VMWare and VirtualBox. The vmdk file is not personalized. So you can select your preferred keyboard layout.
Will you be posting modified alterations for efi installs? Great guide.
rebel1699 said:
Will you be posting modified alterations for efi installs? Great guide.
Click to expand...
Click to collapse
No, I am not planning that because I do not own computers with efi boot.
By the way, your dropbox account is blocked due to high traffic.
Nightshadow931 said:
By the way, your dropbox account is blocked due to high traffic.
Click to expand...
Click to collapse
here is a mega link to the file he uploaded. if he provides the hash for it you can see that it hasnt been altered.
https://mega.nz/#!5pYCALwT!HknLNDJWqRJwuBIspa14AjfGEVYJlFpy7aMUudolSsw
Thank you, got it set up in VM Fusion on my MacBook using your vmdk and instructions.
Working fine with a couple of exceptions. Firstly, it's stuck at a small 4:3 res which only zooms when changing the size of the window?
Secondly, some apps ask for a wifi connection despite everything else working with the outside world. Prime example is the Sky+ app which downloads all the schedules and can set recordings across the net with no problem but if you try to access the Sky box on my network it says it has no wifi network found?
Hi guys,
I made a quick video on how to install on VMWare is anyone is interested.
https://www.youtube.com/watch?v=BT4RcwX2ruM
avotechlife said:
Hi guys,
I made a quick video on how to install on VMWare is anyone is interested.
https://www.youtube.com/watch?v=BT4RcwX2ruM
Click to expand...
Click to collapse
That only gets you guest mode which is where we were all getting stuck before remixtester sussed it.
I just need to sort the resolution as all the changes I've been making to menu.lst end up with it back in guest mode again.
I'm a complete linux noob trying my damnedest to create that installation ISO. I keep getting errors when trying to complete the commands though and generally it's telling me that the mount point doesn't exist or the directory is invalid.
I know it's my own ineptitude with Linux that's the problem but can anyone more savvy than myself create and upload this image for me? I'll be glad to host it for everyone else to download as well if anyone wants it.

[TOOL] OSConnect ~ Run Arch and Ubuntu alongside eachother

Hey XDA!
For those of us that use Arch linux, compiling Android projects can be a little more challenging than on Ubuntu due to the fact the Arch is a rolling release distro. To solve this, I made a tool that allows YOU to choose whether you want to run Arch or Ubuntu in the command line without dual booting. This isn't anything new, just a simplified implementation of an existing method.
What it does:
When you open a terminal, you will be prompted with "Would you like to connect to Arch linux or Ubuntu?". You can enter A for Arch or U for Ubuntu. If you choose Arch, you will be put into your stock environment, but your bash prompt will look like
Code:
[[COLOR="red"]user[/COLOR]@[COLOR="cyan"]Arch[/COLOR] ~]:
If you choose Ubuntu, you will be entered into your Ubuntu chroot, and your bash prompt will look like
Code:
[[COLOR="red"]user[/COLOR]@[COLOR="magenta"]Ubuntu[/COLOR] ~]:
DISCLAIMER
Because Arch linux is aimed at enthusiast and experienced linux users, replies about simple or lack-of-experience issues will not be given priority. Use the following with caution.
How to setup an Ubuntu chroot:
1. Install schroot and debootstrap
2. Follow the steps given here https://bbs.archlinux.org/viewtopic.php?id=100039, or run create-chroot.sh in the OSConnect git repo.
How to install OSConnect:
1. Clone https://github.com/frap129/OSConnect
2. Run the given install.sh
3. If you use terminal mostly locally, respond "Local" to the prompt. If you mostly connect via ssh, respond "SSH" to the prompt.
4. If you connect via SSH, connect as root from now on, not your user. OSConnect will switch to your user for you.
Done! Restart to use.
XDA:DevDB Information
OSConnect, Tool/Utility for the Chef Central
Contributors
frap129
Source Code: https://github.com/frap129/OSConnect
Version Information
Status: Stable
Created 2016-05-15
Last Updated 2016-05-15
How it works:
Ubuntu chroot:
This work by downloading the Ubuntu system files to /var/chroot/ubuntu. The schroot tool then executes bash from ubuntu, and tricks the system into believing that /var/chroot/ubuntu is actually the system root directory.
OSConnect:
OSConnect is contained in its own file, .osconnectrc. This file is executed when shell is reached via your .bashrc. The .osconnectrc is a bash script that asks what operating system you would like to use, then either dumps you into normal shell, or starts the Ubuntu chroot. It also modifies the PS1 (bash prompt) to look cleaner and better distinguish between Arch and Ubuntu.
What is the difference between local and ssh?
The only difference between the local and ssh versions is whether or not youre prompted for your password (when chroot is started) because schroot must be run as root. On the local version, you are simply prompted for your password when necessary. On the ssh version, you are expected to connect as root, and therefore will not be prompted for your password.
HALP I CANT LOG IN AS ROOT
If you are having trouble connecting via SSH as root, follow https://askubuntu.com/questions/511833/cant-ssh-in-as-root
Resource wise is this lighter than running ubuntu as a docker image?
HaoZeke said:
Resource wise is this lighter than running ubuntu as a docker image?
Click to expand...
Click to collapse
I'm way to late for this to matter, but yes, its much lighter than running at as a docker image
frap129 said:
I'm way to late for this to matter, but yes, its much lighter than running at as a docker image
Click to expand...
Click to collapse
Better late than never! ? neat stuff ?

Categories

Resources