Related
Zen's Backtrack 5 For HD2 (and other) Android Smartphones
V0.3
----------------------------------------------------------
New app for loading this (and other) Linux Systems! - https://play.google.com/store/apps/details?id=com.linux.autoloader
Image and app support can be found here --> http://www.zenfulapps.com/
Packed - 640mb
Unpacked - 2.6gig (fits on 3.3 img now.)
--GRAB THE UPDATED SCRIPTS ATTACHED TO THIS POST, THEY ARE NOT PACKAGED INTO THE ZIP--
--Scripts are set to load from EXT4 partition, when i modify them for the .img's ill add them to the script pack--
--if you have .img mounting scripts from previous versions, they will work, as long as file names and directories match--
V0.3 Download
http://www.zenfulapps.com/Android/backtrack5-0.3.7z
(MD5 is still the same
MD5sum (of .7z file) - 9a4796f0ed96e03579c2b4a684d026f5
--------------------
Script pack contains
--------------------
btgo - mounts BT5, and askes how you would like to start, CLI or VNC
bts - stops BT5, and unmounts everything for it.
btl - used to login to bt5 after it has been mounted, to avoid all those "resource busy" messages
mkcore - directory installation and swap file creation
-------------
What you need
-------------
Rooted Android Smartphone
Linux on PC
Busybox installed on your device
SDcard adapter or reader, if neccesary
----------
Lets begin
----------
There are 3 different ways you can do this:
1. Fresh install on EXT4 Sdcard partition ( I HIGHLY recommend this method if possible, much better, a bit faster (no double loops to write to)
2. Create Fresh .img
3. Replace old BT5 system .img
=========================================
1. Fresh install on EXT4 Sdcard Partition
=========================================
This portion of the guide is to install BT5 on a FRESH EXT4 partition on your SDcard. Throughout this porcess, you will:
Backup your current sdcard (EVERY PARTITION, this is why we use PC-linux and not windows)
Fully erase and repartition your SDcard
Replace Android system and user data
Install BT5 on third partition
prepare system for chroot and VNC connection
----------------------------------------
Boot into your Linux operating system. **I DO NOT recommend using virtualbox or vmware, as drivers for usb and SDcard connections arent direct, things can go wrong.**
Shutdown your phone, and remove your SDcard. Do not use adb, or any other tools to do this.
insert your SDcard into your computer (adapter or reader yada yada) and mount every partition.
Make careful note of what is on which partition. safest way to back everything up is through the command line with the command
Code:
sudo cp -Rfvp /media/your-sdcard-partition/* /where/your/backup/folder/is
Do this for each partition, whether you have 1, 2, 3, or more.
In my case, my backup directory looks like this:
Code:
[[email protected] sdcard-backup]$ ls -l
total 12
drwxrwxr-x. 2 hookup-cellular hookup-cellular 4096 Sep 13 18:48 ext2
drwxrwxr-x. 2 hookup-cellular hookup-cellular 4096 Sep 13 18:48 ext4
drwxrwxr-x. 2 hookup-cellular hookup-cellular 4096 Sep 13 18:48 fat32
(ignore the empty directory sizes, my TRUE backup folder is MUCH more vulgar and i wont display it publicly, people may tear thier eyes out )
After everything is backed up, open your partition manager (in Gnome it is gparted, cant remember the name in others)
Navigate to your SDcard, and DELETE every partition. every one.
afterwards, recreate them using this strategy:
partition 1 - FAT32 size = total sdcard size minus ext2 and ext4 partition sizes
partition 2 - EXT2 size = 256mb, 512mb, 1gb, depending on how you like your apps2sd
partition 3 - EXT4 size = size you want for linux, minimum should be 4gb (mines at 10gb, i like my linux and got 3 different ones on it at the same time.)
When you are done, copy back your fat32 and ext2 stuff using the SAME COMMAND AS ABOVE (sudo cp -Rfvp from/here to/here)
Now, unzip/tar the .tar.gz package. I recommend extracting it to your pc before trying to put it on your sdcard.
Using the copy command above, put the extracted files onto your sdcard's EXT4 partition.
Double check the partition (navigate to it in nautilus or whatever filemanager your using) and ensure that it has the system copied over properly. You should see /boot /etc /root /sys so on and so forth, NOT just one folder with all of those inside of it.
Insert your SDcard, power on your phone, go to terminal emulator, and enter this:
Code:
su
cd /sdcard/scripts
sh mkcore
Swap file is damn near neccessary if your planning on using any GUI tools (armitage, zenmap)
Your directory structure is now in place, swap file created, and you start BT5 by typing (from /sdcard/scripts OR /data/linux):
Code:
sh btgo
=================================
2. Fresh Image Creation
=================================
for this, we use the dd command and mkfs.ext4 command.
Code:
dd if=/dev/zero of=/path/to/where/you/want/the/img bs=1M count=3300
Change this command as needed, running it as is wont do anything good. Change the of= to where you want your img to be located.
next is mkfs.ext4
Code:
mkfs.ext4 /path/to/where/you/want/your/img
select yes when it cautions about "not a block device"
When this is finished, mount it using these commands:
Code:
su
-your password-
mkdir -p /mnt/bt5img
mount -t ext4 /path/to/your/img /mnt/bt5img
now, extract the BT5 package to a place on your Computer. When finished, run this command:
Code:
sudo cp -Rfvp /path/to/bt5/core/* /mnt/bt5img/
changing parameters accordingly.
After this, copy the .img to /sdcard/bt5 and run the start scripts from your terminal emulator.
================================
3. Replace Existing Image
================================
Mount your bt5 image, erase what is inside of it, and copy in the new system:
Code:
su
-your password-
mkdir -p /mnt/bt5img
mount -t (your ext type) -o loop /path/to/your/bt5/img /mnt/bt5img
rm -Rfv /mnt/bt5img/*
cp -Rfvp path/to/bt5/core/* /mnt/bt5img/
unmount your .img, place it on your sdcard, and your all set.
==============================
Changes in v0.3
==============================
- Trimmed alot of fat, fits inside of 3.3 image now, though space is SEVERLY limited (removed CUPS and sound stuff, who needs to print from within thier phone anyways?)
- various small changes for performace improvements.
- a few new tools installed, but not tested
- restored my personal version that i nuked. It works now.
NEW STUFF TO COME, STAY TUNED!!!
First off, My apologies for starting a second thread on this, I've made ALOT of changes and i feel the first thread is dead and useless. (Reprimand me if needed
-pics coming once I find my camera could be a small while-
---------------------------------------
Backtrack5 for HD2 - v0.2
Customized by z3n
My goal: the perfect stealth
tool in your pocket
just one tap away
---------------------------------------
========================
Codename
Squeaky Wheel
========================
Updated, check second post for changelog
========================
DOWNLOAD
========================
Please use the scripts attached at the bottom of this post instead of the packaged ones, and i havent had a change to update the full image zip with it (uploads take a while )
V 0.2
Part 1 - http://www.megaupload.com/?d=D0MQVAS4
Part 2 - http://www.megaupload.com/?d=M2MRYLAH
MD5 - 06225e18cdbfee6f88daf7e9ee3a1163
SHA1 - eeba19e53565a1643703cf8938be2f8cfc12db9a
V 0.1
Part 1 - http://www.megaupload.com/?d=83B22Y00
Part 2 - http://www.megaupload.com/?d=SB98AA19
mirror - (NOT interchangeable)
Part 1 - http://www.megaupload.com/?d=HU320Z81
Part 2 - http://www.megaupload.com/?d=QN9C560Z
Checksums of bt5.img
MD5 = 863e6db99e5207a81ad0df7d13998235
SHA1 = c84d8f27df8b9b51059e5a6b09e65853f11de970
7zip required to extract.
Just over 1gb packed, unpacked is 4.9gb.
========================
INFO
========================
This is my first release of a customized, working, mostly stable BT5.
Many things have been added, taken out, and configured to be used within the Android system. For a full list, please see the bottom of this post.
Mounting is different than most other linux .img installations, allowing for a full (and expandable) image.
V 0.2 Now has a swap file created when you run the mkdirectory script. This swap file is necessary, as with all my tests, When you run VNC with most of the major tools, there's a high chance of the phone running out of memory (im running no extra apps, completely stock Hyperdroid)
(if you have a swapfile already, you can say no to creating another, just make sure that the file is located at /data/bt and named btswap.)
**This image is in ext4, make sure your kernel supports it!**
**Everything tested on Hyperdroid-CM7 by pongster**
==============
INSTALLATION
==============
You need:
-Full Nandroid Backup in case something goes batty
-16gb HD2
-ext4 support on your ROM/kernel (lost my ext2 image due to my own stupidity, will create another matching one later)
-Linux on PC (to create the ext4 partition)
-Busybox (from market)
-VNC Viewer (from market) (optional)
FAT32/EXT4 Split card
---------------------
1.
Back up your HD2 and SDCard to safe places (off of the phone and sdcard)
2.
Boot your linux installation and open partition manager. erase all the partitions on yor SDcard. Then create them in this order.
1. FAT32 - size of this is total sdcard size minus 6.5g (for bt image) minus 100mb for aps2sd
2. ext2 - 100mb
3. ext4 - 6.5 gb
3.
Copy the bt5.img to the root of your third partition.
copy the bts folder to the root of your FAT32 partition.
4.
if this is your first time using this script/image, run the mkdirectory script first with
Code:
su
sh /pathtoscripts/mkdirectory
Load up your android terminal and type
Code:
su
cd /path/to/scripts
sh go
5.
Now it asks you if you want to log in to the console or start vnc automatically. (check log for port, usually 5901 or 5902)
DEFAULT VNC PASSWORD IS: toortoor
DEDICATED SDCARD
----------------
Same as everything above, minus the FAT32 partition.
"sh ded"
starts for dedicated SDcard instead of
"sh go"
Proper Shutdown Procedure
=====================
Stop script has been modified to shutdown backtrack and all of the (usual) programs that stop things from unmounting properly.
Exit any VNC connection you currently have.
1. Run sh stop (from your scripts location)
2. Reboot phone as a precaution.
One thing i did personally to make this easier was load the scripts onto /data/bt, so switching SDcards or locations doesnt matter.
(I also changed the terminal start directory to my scripts folder easy quick access)
=======================
Main Features I've gotten to work
=========================
-Clean mount/umount, as long as VNC and MySQL are killed BEFORE exiting the chroot - stop script kills these now
-Apps no longer disappear for good with sdcard removed, only disappear until SDcard is reinserted (apps2SD/loop device problem, any ideas?)
-MySQL for metasploit
-Metasploit working
-Armitage working, missing some "Attack" options (looking into it)
-Zenmap installed
-OpenVPN installed
-Traffic analysis possible with tcpdump (local only)
-Enables possibility for FakeAP attacks
-macchanger works (kinda, phone needs a reboot for original MAC to return)
-Armitage Launcher placed on Desktop (takes a while to load, be patient)
-Terminal Launchers in various places (updating may randomly remove your terminal, synaptic placed on desktop as standby to redownload terminals
-guake installed (drop down Terminal, makes commands easier to see while working) (not configured to a key yet)
This probably works with other Android phones too. If you change the scripts, and as long as it has a external SDcard you can partition.
if your using a different phone, this is untested unless specified otherwise.
-boot and shutdown scripts run clean as long as VNC and MySQL are shut off(in almost all cases)
@ XDA
http://forum.xda-developers.com/show....php?t=1152994
PASSWORDS
------------
MySQL - user: root pass: toor
VNC - User: root pass:toortoor
sys pass - user:root pass:toor
(I know, standard ones, but this should answer a few questions)
===============================
Thanks
===============================
anantshri - for the original scripts and BT5 img for android
BT dev team - (of course )
and all of you
===============================
Information, bugs, and oddities
===============================
One important thing, While performing heavy operations, its normal for your screen to not turn on for a while if it turns off. Dont panic, just give it some time to finish whatever you were running and your phone will be back to normal again. DO NOT PULL THE BATTERY UNLESS ABSOLUTELY NECESSARY.
To avoid this, get wakelock (known to cause problems) or set your screen timeout to some large number.
Swap file will help with alot of this.
These are the features I've tested out so far.
No major changes to anything, (except new packages) just configuring everything i see.
If you find anything you want added in or that is acting odd, please let me know. Same goes for if you fix something!!
Overall
-------
-Repo's activated, most things work (upstart processes fail, for now)
-startvnc and stopvnc no longer give that pesky USER error
-startvnc starts mysql database for metasploit
-stopvnc stops mysql (mostly, invoke ps -A and look for mysqld. Kill it with fire(-9) if need be)
-network traffic is capture-able with tcpdump, with wifi hotspot activated
-working on adding in a swap partition on sdcard (if possible)
-openoffice installed
-openVPN installed (the quieter you become...)
-Removed Zoho Web services
MySQL
-----
default user - root
default pass - toor
-Starts automatically with startvnc
-stops automatically with stopvnc
-start manually by invoking "mysqld"
-Only runs as root (for now)
-Console hangs when it is manually loaded or shutdown, service continues running though. killall --signal 9 mysqld if needed.
Metasploit
----------
-Loads up alright (45-90 seconds)
-MySQL already set as default DB
-Must manually connect to MySQL DB each instance of metasploit by invoking (from msf) db_connect root:[email protected]
-working on a possible way to limit cpu consumption to prevent system hangs(cpulimit does some nasty things)
-So far, this is the only connection string ive been able to get to work: root:[email protected]
Armitage
--------
-Takes forever to load (30 seconds for connect screen, 4 minutes or so for main client)
-Causes system hangs frequently (to minimize this, leave the vnc server on your screen, and set the display timeout to 10 minutes-switch it back when done to conserve battery life)
-So far, this is the only connection string ive been able to get to work: root:[email protected]
-Can Crash phone if running too big of an operation (Max Phone memory problem, fixed in v.2 with swapfile added)
Zenmap
------
-Slows phone down (incredibly bad with more complex scans, of course)
-Some Complex scanning options can crash phone (Nothing damaging has happened)
-will attempt to throttle cpu usage in the future
-Can Crash phone if running too big of an operation (Max Phone memory problem, fixed in v.2 with swapfile added)
Aircrack-ng suite
-----------------
-Aircrack-ng works
-Airodump-ng doesnt work (needs monitor)
-Airdecap-ng untested
-Airdecloak-ng untested
-Airbase-ng doesnt work (needs monitor)
-Airmon-ng doesnt work (needs monitor)
-Aireplay-ng doesnt work (needs monitor)
-Airdriver-ng doesnt work (yet)
-Airolib-ng works (doesnt do anything yet)
-Airserv-ng doesnt work (needs monitor)
-Airtun-ng doesnt work(needs monitor)
Plus lots of stuff for the future, stay tuned!!
http://forum.xda-developers.com/show....php?t=1152994
In the future
=========
-nessus
-Booting via HD2 Toolbox by d4n14l (sp?)
-Custom kernel (WAYYYY down the road, but working on it)
and more
--Copyrighted by z3n, 2011
(just kidding, but it looks good )
Looks good will give it a go.
Thanks for sahring
I we could get our wifi card into monitor mode --> awesome!!!!
Thanks to z3nful & everyone made this possible!
Enjoy everyone
The next release is going to be faster, stabler, and more useful
I'm also working on a round-about way for packet injection and monitor mode
Stay tuned
Sent from my Hyperdroid Pocket Laptop
cool.. good job man..
Are you trying to patch the wifi drivers ? =D
Holy crap.....this is a dream in the making Bring on monitor mode and packet injection
I've done some researches.. and found out that many devs have tried making the driver to work on the Monitor mode.. but they failed to do that.
It looks to me that Backtrack on HD2 is kinda useless.
Not useless, just last night I ganked my roommates computer with my phone
As far as monitor mode and injection go, sadly, they may be right that its not possible, but I got some ideas that may make it work, I just need to hammer out some kinks in BT first
And who needs monitor when you can fakeAP?
"Make them hand you the keys and you don't have to break their Window(s)™"
Sent from my Hyperdroid Pocket Laptop
A m a z i n g
Next release is going to be even better this 5gig image is almost full, so I'm going to expand it to 6gig, along with instructions on how to expand your own image if that's to large or want even more space.
Btw, Wine should be good to go in the next one
stay tuned!!
Sent from my HD2 "Pocket Laptop"
I would love to see some Sceenshots (or better: a video) here!
Lol will do, gotta go find my 10 year old Polaroid I've been using this phone or all my pics and videos, so this could be tricky
Sent from my HD2 "Pocket Laptop"
good to see development beyond just starting up the image... I would be taking some pointers from here for my device too....
hope you don't mind that....
Not at all, I've been trying to track down your name again so it can add you to the credits part, as the basis of the scripts was yours lol, I just changed the loops and mounting structures around a bit, and added some stability checks.
The scripts for this image are slightly out of date but I got new ones going up once I have time they should fix a few of the small eerrors people get while mounting
My next version is a little ways out (works gotten crazy busy lately) but it'll be out eventually
Sent from my HD2 Pocket Laptop
Not Booting!
Hi Thank you for sharings this up!!! this is like a dream for alot of people.
i have followed all your steps but i have a problem when i run the scripts, the folders dont get created because when i run go i get a bounch of folder not found.
my SD card had some differences is a 16GB
with
Fat32
Ext-sd/ EXT2 -->1GB
EXT3 --> 100MB
EXT4 --> 6.5GB
could this setup causing the script to look on the wrong partitions? i have alot of time with out playing with Shell scripting but i would like to know if that is the place i should start looking for a fix
-edit- just double checked (forgot scripts were on my phone... its been a long week lol) and you should just need to change the mount -t ext4 /dev/block/vold/179:3 to /dev/block/vold/179:4
Also, did you run the new mkdirectory script? If you have the one packaged with the image its out of date. The attachment on the fist post has the updated ones
Ignore all mmcblk's
For another "buffer" partition, you need t point the sdcard parts (mmcblk0p* and vold/179:*) to what yours are in /dev/block. In your case I think you just need to change any vold/179:3 to 179:4. If you go to /dev/block/vold it will have folders from each partition (they are numbered 0 and up, but 1 would be your fat32, 2 is ext2 so on and so forth)
When I'm near my computer ill figure out the full ones for you
Sent from my HD2 Pocket Laptop
can I get it for Htc desire..??
It should work, as long as you have a big enough sdcard, your phomes kernel suppers ext4, and you might have to change a few small variables
Sent from my HD2 Pocket Laptop
It is not in android or android chroot linux, it is a full debian armhf in sdcard.
Now ssh can work, and kernel support tty.
but if I
#dd if=/dev/urandom of=/dev/fb0
the screen doesn't have any change, it still the htc logo.I wonder why.
And the X can't config the screen(panel),report with
(EE) FBDEV(0): unrecognised fbdev hardware type (269488144)
And I see these on dmesg
msm_fb_detect_panel: not supported 'mipi_video_himax_720p'
msm_fb_detect_panel: not supported 'mipi_cmd_orise_qhd'
I try to build in fbcon(X windows doesn't need it) in kernel, yes it show something in screen from booting but it cause can't run init in sdcard and will reboot
In android's sysfs, I see it is also a unknown_panel
Q:1.why I can't use "dd if=/dev/urandom of=/dev/fb0" to make screen changed
2.Is there any way to solve the X problem. Is there a common panel setting
3.How does android recovery show graphic? is there a souce?
Thank you
Hello everyone
I apologize for my English Approximate but I use google translation.
I come to you because I can not use a Remixos on my computers. Let it boot but remains on the Remixos screen or it crashes before. I used on 5 computers as x64 and x86 but nothing to do.
I really do not know or look. I would also install Remixos, ONLY on the hard drive of my Acer aspire one KAV10 but I do not know how ca too.
Could you help me?
There are various threads in the forum here that show how to install it to harddrive. If it is crashing before it boots, there is the possibility that you have some incompatible hardware. I understand that the team is trying to increase compatibility of different hardware. How new or old are your computers you are trying to test with? The Acer should work, but it depends on which image you downloaded and what architecture your acer is. My acer at home is only 32bit, so I didnt try with it as of yet. I did get my install of remixos to work on a dell 64bit desktop.
One thing i noticed was that at this stage of remix, it is not a friendly install method, and requires a bit of familiarity with different steps to make it work nicely. The first difficulty I had to get past was the graphics card. It meant I had to fix the grub boot line to include VGA=1440x900 for use with my monitor. The graphics card I have didnt want to play nicely with auto detection so I had to manually specify my resolution.
nowell29 said:
There are various threads in the forum here that show how to install it to harddrive.
Click to expand...
Click to collapse
It is precisely because I found the threads that did not work I post here
nowell29 said:
One thing i noticed was that at this stage of remix, it is not a friendly install method, and requires a bit of familiarity with different steps to make it work nicely
Click to expand...
Click to collapse
I tried on very old pc and recent and it's always the same thing. Only on very recent that it works
nowell29 said:
so I had to manually specify
Click to expand...
Click to collapse
Exactly how you do to put its own specifications?
It is precisely because I found the threads that did not work I post here
I tried on very old pc and recent and it's always the same thing. Only on very recent that it works
On the old PC i understand you can only use the 32 bit version. That being said, it may still not work. On the newest machine, if it works partially, then you may just need to set your resolution.
Exactly how you do to put its own specifications?
This can be a tricky task. The windows tool that sets up the USB i cannot speak for because I didnt use it. But if you have a linux installation, you will want to mount the usb and update the grub config. Grub2 is not as easily edited as original grub, but there are many howto's on the internet for how to configure grub2. Since this is linux at its root, using grub for remix is no different. You will want to mount the usb stick, edit grub2 config by adding a delay rather than an autoboot. You can either edit the grub2 line for the kernel by adding the VGA=<your resolution> (or use a web tutorial on how to use vesa), or you can set a timeout on grub entry, stop the timeout on boot, and edit the line withing the grub console.
I know this can sound intimidating, but in this case, editing grub2 is not unique to remix, it is a common to most distributions that use grub2. (most linux distributions dont require this type of difficult changing right at the beginning anymore thankfully, but it still happens like this from time to time).
On the old PC i understand you can only use the 32 bit version. That being said, it may still not work. On the newest machine, if it works partially, then you may just need to set your resolution.
Click to expand...
Click to collapse
Thank you for the clarification, as I'm not totally bi-lingual I passed next to some detail in the translation. Sorry.
I will try to manipulate the Grub2 but I'm not sure it works.
I want to install it on my Aspir one and my Hp stream7, Remix bones started when I press TAB to boot, otherwise it remains on the screen RemixOs.
When boot is slow and I can not use the browser.
If remixos does not yet work well is there an alternative solution? As Phenix bone or android? (Solution already used but without success may be due to lack of knowledge)
Thank you
Click to expand...
Click to collapse
finally after putting the resolution in the grub.cfg not change but instead I managed to boot on Guest Mode but not resident mode....
glad to hear! at this point you get to have fun! Are you using linux or windows as your primary OS, or is the disk blank on the systems you are using? I use linux, so what I chose to do is to create a separate partition on the disk and formatted it to ext4. I then copied the contents of the contents of the USB drive to that partition. I edited grub2 on my existing solution to include an entry to remix now copied on that partition. From there you need to specify (in the same place as the vga resolution on the kernel line) to: first create a new data.img file, and then on next boot to not do so. Like this:
1 boot into different OS - now copy files from usb to new partition, edit grub by adding entry to new partition, specify on kernel line: resolution, create data.img
2 now boot (without usb drive) to new remix partition, let it create the data.img, it will now give you a full desktop not in guest mode, reboot
3 boot into different OS and edit grub again and remove the kernel line to create data.img, reboot
4 boot into remix and enjoy!
Here are the forum link for grub editing I saved as reference:
http://forum.xda-developers.com/rem...c-hacked-edition-ota-v2-0-201-t3345968/page26
this is what my grub entry looks like for remix: (in ubuntu, edit file /etc/grub.d/40_custom)
[email protected]:~# cat /etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry 'Remix OS' --class android-x86 {
insmod part_gpt
search --file --no-floppy --set=root /system.img
linux /kernel root=/dev/ram0 androidboot.hardware=remix_x86_64 androidboot.selinux=permissive CMDLINE vga=1600x900 DATA=/
initrd /initrd.img
}
[email protected]:~#
[email protected]:~# ls /mnt
data.img efi initrd.img install.img isolinux isolinux.sys kernel ramdisk.img system.img TRANS.TBL
Sorry, i have not used phoenix at all.
Steps
Download Remix OS for PC from
http://www.jide.com/remixos-for-pc
Create an ext4 partition for minimum of 8 GB with label as RemixOS using Gparted from Ubuntu.
(Note : Resizing, ie. shrinking an existing partition, takes more time.
If you have fewer files in an existing partition it will be better to copy those files to another partition
and delete first partition
and create 2 new partitions. One for Remix OS and another for old Data. This will save time.
You should be careful while using Gparted so that partition in which Ubuntu and Windows have been installed is not messed up.
If there is an existing partition which you can allot entirely for Remix OS then open Gparted reformat it to ext4 and label it as RemixOS)
Right click downloaded Remix OS file and select Extract.
Again extract the resultant *.iso file.
Copy the iso extract resulting files and folders to the new ext4 partition labelled RemixOS.
Boot option
Boot option can be created in two ways - either by Making an entry in /etc/grub.d/40_custom file or by Making an entry through Grub-customizer
Making an entry in /etc/grub.d/40_custom file
Open Terminal and type below command
sudo gedit /etc/grub.d/40_custom
--> Make the file opened look like below by copying. Change the "set root=(hd0,3)" as per the RemixOS partition drive number in Gparted mine is sda3. If yours is sda4 change it as "set root=(hd0,4)"
#!/bin/sh
exec tail -n +3 $0
menuentry "Remix OS" {
set root=(hd0,3)
linux /kernel initrd=/initrd.img boot=LABEL=RemixOS disk=LABEL=RemixOS quiet root=/dev/ram0 androidboot.hardware=remix_x86_64 androidboot.selinux=permissive quiet SRC= DATA= CREATE_DATA_IMG=1
initrd /initrd.img
}
--> Save --> close.
Type below Terminal commands
sudo chmod +x /etc/grub.d/40_custom
sudo update-grub
(Remix OS does not appear in grub detection while updating grub but appears in Grub Boot Menu)
or
Making an entry through Grub-customizer
Install Grub-customizer in Ubuntu
Type below commands in terminal for installation
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer
Start Grub customizer - select edit - new -
put menuentry as "REMIXOS Resident mode - All your data and apps are saved" or as "Remix OS"
Type as "other"
copy below to the boot sequence. Change the "set root=(hd0,3)" as per the RemixOS partition drive number in Gparted mine is sda3. If yours is sda4 change it as "set root=(hd0,4)"
set root=(hd0,3)
linux /kernel initrd=/initrd.img boot=LABEL=RemixOS disk=LABEL=RemixOS quiet root=/dev/ram0 androidboot.hardware=remix_x86_64 androidboot.selinux=permissive quiet SRC= DATA= CREATE_DATA_IMG=1
initrd /initrd.img
Select Save.
Note : Not writing to MBR has resulted in Ubuntu not booting and Remix OS booting when options for Ubuntu was selected in Boot menu. And Remix OS did not show up in Grub menu entry.
So select File - > click write to MBR.
After MBR write, restart ubuntu and select Remix OS.
Patience is needed here it will take some time to install. Sometime without any animation or display movement. So do not restart when it is like that. Wait few minutes it will boot up.
Activate Play Store using Play Activator app (comes pre-installed)
After much trial and error found working way of installation of RemixOS alongside Ubuntu. So sharing it here.
You can increase Internal Storage / Memory from Ubuntu by following
Open Files -> select RemixOS partition -> after it has been mounted move mouse pointer over RemixOS again but don't click -> it will show the mount path normally it will be /media/xxxxxxx/RemixOS (user name will be displayed in place of xxxxxxx -> note the path
You can copy data.img file to Ubuntu partition for restore purpose in case anything goes wrong, before attempting resizing.
open terminal and type below commands
-> cd /media/xxxxxxx/RemixOS
(the path noted)
-> sudo e2fsck -f data.img
type sudo password
-> resize2fs data.img 8G
(Note : Replace 8G as per the partition size allocated to RemixOS.
If you have allocated 40GB to RemixOS partition then you can leave 10GB for OS and
allocate balance 30GB to Internal memory. In such case command will be resize2fs data.img 30G
Important :- allow sufficient space for System use)
-> exit.
I encountered some errors while resizing it asked whether it should be fixed and I pressed two times yes for fix errors.
Remix OS boot was fine it showed increased Internal Storage.
Even OTA update works. Patience is needed when no animation or display or Blank Screen. Wait few minutes. It will restart.
(updated from 3.0.202 to 30.0.203 to 3.0.204 to 3.0.205 to 3.0.206 so far without any errors).
While updating to 3.0.206 the newly introduced update percentage screen disappeared after 65% and display showed blanked screen but update happened and rebooted after 5 minutes (may increase or decrease depending on your RAM). So don't shutdown on blank screen.
Note: Edge scroll not working, two finger scroll works, in laptop (Remix OS).
Why do I get corrupted sd , when formatting it deleted everything off hard drive. I have latest remix 64 extracted,also extracted system.img and placed it into root folder on Ubuntu ,along with kernel,initd.img,ramdisk.img, edited grub to boot, everything runs but only 1 gig of memory with the corrupted part ,
Increase Internal Storage / Memory of Remix OS through Ubuntu
miko12312 said:
Why do I get corrupted sd , when formatting it deleted everything off hard drive. I have latest remix 64 extracted,also extracted system.img and placed it into root folder on Ubuntu ,along with kernel,initd.img,ramdisk.img, edited grub to boot, everything runs but only 1 gig of memory with the corrupted part ,
Click to expand...
Click to collapse
System data is shown in android file manager as corrupted. But Remix OS runs fine.
See first post on how to increase internal storage (now added).
Am I able to make an ext4 even if Ubuntu is using the whole drive and portions,ubuntu setup has ext4 for root folder and a swap partition I tried repartitioning the drive to have space left but it wouldn't let me install Ubuntu I created 150gb for / ,500mb for boot,100gb for home ,and 2048mb for swap to install
miko12312 said:
Am I able to make an ext4 even if Ubuntu is using the whole drive and portions,ubuntu setup has ext4 for root folder and a swap partition I tried repartitioning the drive to have space left but it wouldn't let me install Ubuntu I created 150gb for / ,500mb for boot,100gb for home ,and 2048mb for swap to install
Click to expand...
Click to collapse
If you feel 150gb is more for / - Shrinking it may be done through Ubuntu Live DVD Gparted. Patience needed here shrinking may take more than one hour. There is remote chance of Ubuntu not booting up and requiring Ubuntu reinstallation.
Alternatively you can try reinstalling Ubuntu from Live DVD after deleting the existing / partition and creation of two ext4 partitions one for Ubuntu / and other for RemixOS. Leaving the 100gb home as it is.
I have a 320gb Acer c710 chrome book with seabios installed ,along with lubuntu 16.04, I'm trying to manual install lubuntu or Ubuntu since its same, I want to make Linux with 150gb as / , and the rest as earlier , so I have close to 70gb for remix or what ever , but when doing so I get an error when installing but I'm a try the live USB option see if that works on shrinking , I'm still learning Linux but understand most of it pretty easy , but really like remix for the gaming , since they switched to mm I have had it run successfully but root issues and fc, now I'm trying to run it with the official and re root after
Made the ext4 partition , but not getting boot stays in bootloop,do I need to extract the system.sfs,and use the system.img
miko12312 said:
Made the ext4 partition , but not getting boot stays in bootloop,do I need to extract the system.sfs,and use the system.img
Click to expand...
Click to collapse
Extracting iso is sufficient.
Delete the already copied files to the new ext4 RemixOS partition from Ubuntu and copy again the iso extracted files. Then boot to Remix OS.
I have everything running but still says corrupted USB , I have made a data IMG of 10gs ,everything is running but can't install anything from play store ,root seems to be working also ,wifi disconnects also
miko12312 said:
I have everything running but still says corrupted USB , I have made a data IMG of 10gs ,everything is running but can't install anything from play store ,root seems to be working also ,wifi disconnects also
Click to expand...
Click to collapse
Activate Play using Play activator.
Wifi auto on is not working. Click on wifi icon on bottom right it will connect. If still not working try switching off and on wifi.
Already activated play store but all apps even systems won't install or update ,have to use Altoids and apps downloaded ,
miko12312 said:
Already activated play store but all apps even systems won't install or update ,have to use Altoids and apps downloaded ,
Click to expand...
Click to collapse
Try restarting.
Still can't tried changing sfs to IMG,changed the initrd for r/w but still can't install apps from play store even if they are system apps
---------- Post added at 05:59 PM ---------- Previous post was at 05:58 PM ----------
It runs well , with su
support but would like to download games for x86 then to have to transfer games from online or other devices or resources
How do I get rid of the corrupted USB , I think since the system and other IMG s are read only it can't install properly
I still get corrupted as ,but adding folders Android/data ,and data to the remixos partition it fixed the play store I can now do everything I also made the system.IMG bigger and created my own data.IMG
miko12312 said:
I still get corrupted as ,but adding folders Android/data ,and data to the remixos partition it fixed the play store I can now do everything I also made the system.IMG bigger and created my own data.IMG
Click to expand...
Click to collapse
Today updated to 3.0.205 by OTA. System.IMG may not work with OTA update.
Have you tried installing / updating apps with Remix Central before creating Android/data and data folders ?
I have not used playstore so far.
The android folder is not nessacery as it uses the other portion of Ubuntu as an SD only need data folder I am updated to latest , the corrupted part is the swap space I think , its the only partition I can think of ,but most games run slow on remix and don't work yet
How can I modify the system without it reverting ,so I can modify system apps and delete and install some as system apps
Get Root Access. Install Superuser app from playstore.
Install Titanium backup for backing up of both user and system apps and apps' data.
I think Link2sd app has feature of moving user app to system app.
Hi guys, at first sry for my bad English.
I have a big problem and i need help to solve this. One of my heater thermostat make problems. I started a firmeware update and make a big mistake. Now it is always in update mode. I found a solution for that problem with Remix OS.
Install a current (!) VirtualBox and VirtualBox Extension Pack for USB support DONE
Blacklist btusb module and possibly more specific device drivers like ath3k if it applies to your system to keep the Bluetooth USB device unoccupied (revert this later!); give chmod a+rw permission to the USB device file under /dev/bus/usb/xxx/yyy, see lsusb I skiped this step. I hope it was okay.
Install RemixOS in a VirtualBox VM, add a USB device filter to expose your Bluetooth chip to RemixOS DONE (Install Remix on Ubuntu 64bit Bluetooth is working fine and Remix OS show me the thermostat.)
Install calor BT on RemixOS, run it at least once DONE (app for the thermostat from the play store
Determine the device Bluetooth address: Open the device by unscrewing the four screws, then gently pulling the turning knob outwards, remove the cover; locate the "ADDRESS" QR code printed on the front of the circuit board; scan the QR code to retrieve the Bluetooth adress in form M001A22XXYYZZ (I had to take a picture, crop it and then run the QR scanner on the image); the Bluetooth address then is 00:1A:22:XX:YY:ZZ; replace the cover, again gently pulling the turning knob outwards, turn it to make it fit the turn encoder; screw the cover DONE MAC is M001A220EE2D5
Manually set up the calor BT configuration to address the bricked device. Save this as container.json, replacing all XX:YY:ZZ by the address determined above: {"clients":{},"devices":{"00:1A:22:XX:YY:ZZ":{"availableFirmwareVersion":null,"firmwareVersion":null,"groupId":"17f51411-4be0-4155-98f6-9a03bbde5681","groups":[],"id":"00:1A:22:XX:YY:ZZ","label":"Device","lastStatusUpdate":0,"lowBat":false,"unreach":false,"updateState":null,"operationLockActive":false,"temperatureOffset":0,"valvePosition":null,"type":"HEATING_THERMOSTAT"}},"groups":{"17f51411-4be0-4155-98f6-9a03bbde5681":{"channels":null,"devices":["00:1A:22:XX:YY:ZZ"],"homeId":null,"id":"17f51411-4be0-4155-98f6-9a03bbde5681","label":"Room","lastStatusUpdate":0,"lowBat":null,"metaGroupId":null,"unreach":null,"activeProfile":null,"actualTemperature":null,"boostDuration":0,"boostMode":false,"controlMode":"AUTOMATIC","maxTemperature":29.5,"minTemperature":5,"nextSwitchPoint":null,"profiles":null,"setPointTemperature":17,"windowOpen":null,"windowOpenTemperature":12,"type":"HEATING"}},"home":{"absenceEndTime":"","absenceType":"NOT_ABSENT","availableAPVersion":null,"clients":[],"connected":false,"currentAPVersion":null,"deviceUpdateStrategy":null,"ecoDuration":null,"ecoTemperature":0,"groups":["17f51411-4be0-4155-98f6-9a03bbde5681"],"id":null,"lastReadyForUpdateTimestamp":0,"location":null,"nonAbsenceGroups":[],"pinAssigned":false,"powerMeterCurrency":null,"powerMeterUnitPrice":0,"timeZoneId":"","updateState":"UP_TO_DATE","dutyCycle":null},"metaGroups":{},"weather":{"temperature":0,"weatherCondition":"UNKNOWN","weatherDayTime":"DAY"},"homeGroup":null,"inboxGroup":null} Maybe use http://www.jsoneditoronline.org/ to edit this. DONE change all the MAC address. I create the file container.json.
Now, install this configuration inside RemixOS: make sure the VM is shut down.
Mount the RemixOS VM image, first making the VM image available as a block device (using qemu-nbd from qemu-tools): modprobe nbd qemu-nbd -c /dev/nbd0 --partition 1 <path to RemixOS.vdi>
Now mount it: mount /dev/nbd0 /mnt
Copy container.json to /mnt/android-2016-06-30/data/data/de.eq3.ble.android/app_data/ (might vary depending on RemixOS version)
Unmount the RemixOS image: umount /mnt qemu-nbd -d /dev/nbd0
Boot up RemixOS; run calor BT; go to "Room", then "Device", then "Update firmware"
Firmware should be transferred (showing moving bars next to "UPD" on the device), then rebooted, device is then going to "InS" mode, turn it off and on again to enter date setup, etc.
up to step 7 I understood the steps so far. But now i'am lost and need help.
i hope somebody could help me to finish this solution.