MultiROM - Cài Ubuntu 14.04.6 LTS lên Nexus 7 2012 grouper dualboot Android
LuxiTD
2 tháng trướcBình luận: 1Lượt xem: 963
Nếu không muốn chạy Linux thuần thì có thể chạy dualboot Android và Linux. Cách làm là cài MultiROM của Tasssarda, mà hiện tại link đã die sạch nên chỉ có link này

TWRP_multirom_grouper_20160210.img
http://www.mediafire.com/file/jjd0hgtdf4beeji/TWRP_multirom_grouper_20160210.img/file

Kernel_kexec_grouper_5.1 cho Android 5.1
http://www.mediafire.com/file/k2a1dp4gtz2skpo/kernel_kexec_grouper_510.zip/file

Kernel_kexec_grouper-4.3 cho Android 4.3
http://www.mediafire.com/file/9jnbhoi2jqrck75/kernel_kexec_grouper-430-2.zip/file

MultiROM_Manager Apps
http://www.mediafire.com/file/r7kk8mono1th619/MultiROM_Manager_v1.188_apkpure.com.apk/file

MultiROM core
http://www.mediafire.com/file/bsmfixl6rq1j0cn/multirom_v10_n7-signed.zip/file
http://www.mediafire.com/file/3uqryjrmyc40jba/multirom-20160207-v33-grouper.zip/file

Multirom Full package:
http://www.mediafire.com/file/2xbdacvn3v0aetz/multirom-20160207-v33-grouper-full.zip/file


Hoặc đây của JT1510365: https://androidfilehost.com/?a=show&w=files&flid=212295

Bắt đầu, root và unlock bootloader bằng tools Nexus root toolkit v2.1.9 của wugfresh

https://www.google.com/amp/s/www.wugfresh.com/nrt/amp/

Đưa máy về bootloader và flash TWRP_multirom_grouper_20160210.img bằng

$ fastboot flash recovery TWRP_multirom_grouper_20160210.img

Vào TWRP chọn install và flash kexec cho kernel 5.1(nếu đang chạy android 5.1) hoặc kexec cho bảng android đang dùng. Nếu muốn cài apps thì khởi động lại cài thêm multirom manager apk để dễ điều khiển trong android

Download file mrom từ github Gabriel Couto:
https://github.com/gabrielrcouto/nexus7-ubuntu-12-04

gabrielrcouto/nexus7-ubuntu-12-04

Ubuntu 12.04 for Nexus 7 (2012). Contribute to gabrielrcouto/nexus7-ubuntu-12-04 development by creating an account on GitHub.
github.com

Dự phòng:
http://www.mediafire.com/file/sz83d1vrv8p9d0d/ubuntu-12-04.mrom/file

Vào TWRP, chọn MultiROM, chọn Add ROM, chọn *.mrom, chọn Internal memory hoặc usb-otg, chọn file đã download và flash, reboot khi đã xong. Nếu cài vào internal memory, mrom linux sẽ nằm trong /data/media/0/multirom/roms

Khởi động vào ubuntu 12.04 và làm theo các bước:

1. Download & install *.mrom to deploy Unbuntu 12.04 LTS, follow his guide to connect wifi, wpa_passphrase to create wpa.conf, wpa_supplicant to connect, then dhclient wlan0(checking connect "ping -c 4 google.com")
https://github.com/gabrielrcouto/nexus7-ubuntu-12-04/blob/master/README.md

gabrielrcouto/nexus7-ubuntu-12-04

Ubuntu 12.04 for Nexus 7 (2012). Contribute to gabrielrcouto/nexus7-ubuntu-12-04 development by creating an account on GitHub.
github.com


2. Update linux firmware 3.1.10-8.28-grouper on launchpad.net. Run

$ sudo su (id:ubuntu/pass:ubuntu)

$ wget http://launchpadlibrarian.net/167650013/linux-image-3.1.10-8-grouper_3.1.10-8.28_armhf.deb

Install linux kernel update.

$ dpkg -i linux-image-3.1.10-8-grouper_3.1.10-8.28_armhf.deb

$ sudo vi sudoers

Add ubuntu user to root ALL permission

Add new repository for Ubuntu ports Precise

$ echo "deb http://ports.ubuntu.com/ubuntu-ports/ precise main universe restricted multiverse" | sudo tee -a /etc/apt/sources.list
Index of /ubuntu-ports
ports.ubuntu.com


$ echo "deb http://ports.ubuntu.com/ubuntu-ports/ precise-security main universe restricted multiverse" | sudo tee -a /etc/apt/sources.list
Index of /ubuntu-ports
ports.ubuntu.com


$ echo "deb http://ports.ubuntu.com/ubuntu-ports/ precise-updates main universe restricted multiverse" | sudo tee -a /etc/apt/sources.list
Index of /ubuntu-ports
ports.ubuntu.com


$ echo "deb http://ports.ubuntu.com/ubuntu-ports/ precise-proposed main universe restricted multiverse" | sudo tee -a /etc/apt/sources.list
Index of /ubuntu-ports
ports.ubuntu.com


$ echo "deb http://ports.ubuntu.com/ubuntu-ports/ precise-backports main universe restricted multiverse" | sudo tee -a /etc/apt/sources.list
Index of /ubuntu-ports
ports.ubuntu.com


Next upgrade last version 12.04.5(Precise)

$ apt-get dist-upgrade

3. Upgrade Ubuntu 14.04.6 LTS by editing sources.list, need $root/pass run in terminal

$ echo "deb http://ports.ubuntu.com/ubuntu-ports/ trusty main universe restricted multiverse" | sudo tee -a /etc/apt/sources.list
Index of /ubuntu-ports
ports.ubuntu.com


$ echo "deb http://ports.ubuntu.com/ubuntu-ports/ trusty-security main universe restricted multiverse" | sudo tee -a /etc/apt/sources.list
Index of /ubuntu-ports
ports.ubuntu.com


$ echo "deb http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main universe restricted multiverse" | sudo tee -a /etc/apt/sources.list
Index of /ubuntu-ports
ports.ubuntu.com


$ echo "deb http://ports.ubuntu.com/ubuntu-ports/ trusty-proposed main universe restricted multiverse" | sudo tee -a /etc/apt/sources.list
Index of /ubuntu-ports
ports.ubuntu.com


$ echo "deb http://ports.ubuntu.com/ubuntu-ports/ trusty-backports main universe restricted multiverse" | sudo tee -a /etc/apt/sources.list
Index of /ubuntu-ports
ports.ubuntu.com


$ apt-get upgrade

After upgrade, I recommend install LXDE/LXDM

$ apt-get install lxde lxdm

4. Addons package: install wicd to manage wifi connection,chromium-browser,firefox 57, xfce4-power-manager, onboard virtual keyboard, ubuntu-restricted-extras, xfce4-mixer, ubuntu-tweak, synaptic, indicator-brightness,pavucontrol.
$ sudo sysctl -w vm.swappiness=1

$ sudo sysctl -w vm.vfs_cache_pressure=3

$ sudo sysctl -w vm.dirty_background_ratio=1

$ sudo sysctl -w vm.dirty_ratio=20

$ sudo sysctl -w vm.min_free_kbytes=2816

$ sudo sysctl -w vm.panic_on_oom=1

$ sudo sysctl -w kernel.panic=10

$ sudo sysctl -w vm.overcommit_memory=1

$ sudo sysctl -w vm.drop_caches=3

$ nano /etc/sysctl.conf

vm.swappiness=1
vm.vfs_cache_pressure=3
vm.dirty_background_ratio=1
vm.dirty_ratio=20
vm.dirty_background_bytes=16777216
vm.dirty_bytes=50331648
vm.min_free_kbytes=2816
vm.panic_on_oom=1
kernel.panic=10
vm.overcommit_memory=1
vm.drop_caches=3

5. Note: DO NOT USE "$ apt-get dist-upgrade" in 14.04. The screen will rotate cuz graphic change nvidia terga3 to fbdev_tegra(stable but slow),cus Xorg abi is 15, but nvidia driver stop at abi 14, its a conflict version. To solve this problem, we edit "leafpad /etc/X11/Xorg.conf". Insert Option "Rotate" "CW" on Monitor and 2 Screen defined.

Using normal upgrade and install package manually, do not upgrade xserver-xorg-core. We'll stay at xserver 1.11 compatible with nvidia driver abi 11

TransformationMatrix is "1 0 0 0 1 0 0 0 1". Using commandline "gtf 1280 800 0" in terminal to get exactly resolution 1280x800@0hz, edit "HorizSync","VertRefresh","ModeLine" in "Section 'Monitor'" in /etc/X11/xorg.conf

Install Ambiance/Arc_OSX theme,cursor theme for openbox (box-look.org)to getting good graphic application

6. Some bugs like freezes, shutdown, restart cuz CPU, GPU, Ram got overheat. So I decide to control frequency, I edit CPU frequency first. Install cpufrequtils, indicator-cpufreq. The maximum CPU frequency is 51Mhz to 1.3Ghz for ondemand.

$ nano /etc/rc.local

sleep 60

#cpufreq-set -g ondemand

cpufreq-set --cpu 0 -d 51000 -u 1000000 -g ondemand

cpufreq-set --cpu 1 -d 51000 -u 1000000 -g ondemand

cpufreq-set --cpu 2 -d 51000 -u 1000000 -g ondemand

cpufreq-set --cpu 3 -d 51000 -u 1000000 -g ondemand

# Set the governor to ondemand for all processors
for cpu in /sys/devices/system/cpu/cpufreq/policy*; do
echo ondemand > ${cpu}/scaling_governor
done

# Reduce the boost ignore_nice_load to 0 (có hai giá trị 0 và 1)
echo 0 > /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load

# Reduce the boost io_is_busy to 0 ( có hai giá trị 0 và 1)
echo 0 > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy

# Reduce the boost powersave_bias to 300 (giá trị thay đổi từ 0-1000)
echo 300 > /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias

# Reduce the boost sampling_down_factor to 1 (giá trị thay đổi từ 1-4)
echo 1 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor

# Reduce the boost sampling_rate to 20000 (giá trị thay đổi từ 10000 - 300000)
echo 20000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate

# Reduce the boost sampling_rate_min to 20000 (giá trị thay đổi từ 10000 - 300000)
echo 20000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate_min

# Reduce the boost threshold to 75% (giá trị thay đổi từ 1-100)
echo 75 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold

$ nano /etc/init.d/cpufrequtils

#Line 42-45
ENABLE="true"
GOVERNOR="ondemand"
MAX_SPEED=1000000
MIN_SPEED=51000

7. Thiết lập sound card bằng alsamixer, dùng pavucontrol(pulse audio) để khuếch đại âm thanh và cài xfce4-mixer để quản lý alsa sound bằng GUI

$ alsamixer

Enable các thông số thiết lập (phím M hoặc phím mũi tên lên/xuống): "Speaker R" "Speaker L" "DAC MIXR INF1" "DAC MIXL INF1" "SPOL MIX DAC R1" "SPOL MIX DAC L1" "Stereo DAC MIXR DAC R1" "Stereo DAC MIXL DAC L1"

8. Install bluetooth: i read and researched, compared docs about bluetooth at all time. I realize bluetooth relative with firmware driver/patchram/rfkill/bluez-utils/build-essential/blueman. fw is bcm4330.bin,patchram is brcm_patchram_plus(i get it in ubuntu-defaults-nexus7), i had rfkill/bluez-utils(bluez version 4.01)/blueman to control bluetooth on nexus7 2012

Follow ylixir on:
https://docs.google.com/document/u/0/d/1G9vF5v2TN2c6ocyb_hmD1ve7OK4GdCP84rfaXgiLmB4/mobilebasic
nexus7setup
docs.google.com


Dùng Archlinux nhưng vẫn kích hoạt được bluetooth trên ubuntu đc

(http://www.mediafire.com/file/9640y9x0wa07jab/arch_20130626.mrom/file

Server Tardis source: http://tardis.tiny-vps.com/aarm/repos/2015/12/31/os/tegra
Index of /aarm/repos/2015/12/31/os/tegra/
tardis.tiny-vps.com


Tardis Repository: http://tardis.tiny-vps.com/aarm/repos/2015/12/31/armv7h/$repo

Protofusion repository for ArchLinux ARM rollback:

http://mirror.protofusion.org/archlinuxarm-rollback/2013/12/13/armv7h/$repo

Bypass Fatal error: kernel too old using

$ pacman -Syu

Chúc các bạn thành công cài Ubuntu 14.04.6LTS và Archlinux lên Nexus 7 và dual boot cùng Android

optimize chromium trong chrome://flags

https://www.techidence.com/30-google-chrome-flags-to-improve-browser-speed/

30 Google Chrome Flags to Improve Browser Speed - Techidence

Google Chrome flags are defined as a series of commands. Here are 30 Google Chrome flags and commands to improve their performance on low-powered computers.
techidence.com


$ leafpad /usr/share/applications/chromium.desktop

Sửa dòng Exec = chromium %U thành

Exec = chromium --start-maximized --user-agent=
"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.117 Safari/537.36" --force-device-scale-factor=1.2 --enable-pinch --num-raster-threads=4 --default-tile-height=512 --use-gl=egl --ignore-gpu-blacklist --enable-gpu-rasterization --enable-native-gpu-memory-buffers --enable-checker-imaging --disable-quic --enable-tcp-fast-open --disable-gpu-compositing --enable-fast-unload --enable-experimental-canvas-features --enable-scroll-prediction --enable-simple-cache-backend --answers-in-suggest --flag-switches-begin --force-color-profile=srgb --disable-lcd-text --disable-smooth-scrolling --enable-features=BackgroundVideoTrackOptimization,ParallelDownloading --flag-switches-end --disk-cache-size=500000000 %U

Option 2:

Exec = chromium --start-maximized --user-agent="Mozilla/5.0 (Linux; Android 6.0.1; Nexus 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.117 Safari/537.36" --force-device-scale-factor=1.2 --use-gl=egl --ppapi-flash-path=/usr/lib/chromium-browser/plugins/libpepflashplayer.so --ppapi-flash-args=enable_stagevideo_auto=0 --ppapi-flash-version=12.0.0.77 -password-store=detect -user-data-dir --max-tiles-for-interest-area=512 --num-raster-threads=4 --default-tile-height=512 --enable-features="CheckerImaging" --enable-native-gpu-memory-buffers --disk-cache-size=536870912 --top-controls-show-threshold=0.27 --top-controls-hide-threshold=0.17 --enable-high-end-ui-undo --enable-begin-frame-scheduling --enable-begin-frame-scheduling --enable-pinch --enable-overlay-fullscreen-video --enable-overlay-scrollbar --validate-input-event-stream --disable-gpu-process-crash-limit --enable-viewport-meta --main-frame-resizes-are-orientation-changes --disable-composited-antialiasing --ui-prioritize-in-gpu-process --enable-delegated-renderer --profiler-timing=0 --prerender=auto --prerender-from-omnibox=enabled --enable-dom-distiller --flag-switches-begin --enable-display-list-2d-canvas --enable-gpu-rasterization --enable-threaded-gpu-rasterization --enable-zero-copy --ignore-gpu-blacklist --flag-switches-end --enable-instant-extended-api --force-dark-mode --enable-features=WebUIDarkMode %U

Fix chromium ở 560 DPI thêm dòng --force-device-scale-factor=1.2

firefox-esr config gõ about:config vào thanh URL và tìm sửa theo bên dưới:

Set browser.download.animateNotifications to False
Set security.dialog_enable_delay to 0
Set network.prefetch-next to False (Only on slow internet connections)
Set browser.newtabpage.activity-stream.feeds.telemetry to false
Set browser.newtabpage.activity-stream.telemetry to false
Set browser.ping-centre.telemetry to false
Set toolkit.telemetry.archive.enabled to false
Set toolkit.telemetry.bhrPing.enabled to false
Set toolkit.telemetry.enabled to false
Set toolkit.telemetry.firstShutdownPing.enabled to false
Set toolkit.telemetry.hybridContent.enabled to false
Set toolkit.telemetry.newProfilePing.enabled to false
Set toolkit.telemetry.reportingpolicy.firstRun to false
Set toolkit.telemetry.shutdownPingSender.enabled to false
Set toolkit.telemetry.unified to false
Set toolkit.telemetry.updatePing.enabled to false

In about:config, set reader.parse-on-load.enabled to False
In about:config, set reader.parse-on-load.force-enabled to False
In about:config, set browser.pocket.enabled to False
In about:config, set loop.enabled to False

Scroll down to the first entry labeled "gfx.font," or instead type "gfx.font" in the "Filter" text box at the top of the screen to automatically scroll to the proper section. Locate the "gfx.font_rendering.directwrite.enabled" entry and double-click it to change the value from "False" to "True."
3. Right-click the the entry and click "New." Select the "Integer" option. Type the phrase "mozilla.widget.render-mode" in the "Name" text box and click "OK." Type "6" in the "Value" text box and click "OK."

Set browser.cache.disk.enable to false
Set browser.cache.memory.enable to true
Set browser.cache.memory.capacity to 204800
Set browser.sessionstore.interval to 15000000
Set gfx.font_rendering.cleartype_params.rendering_mode to 5

Create New > Integer > content.notify.interval to 500000
Create New > Boolean > content.notify.ontimer to true
Create New > Integer > content.switch.threshold to 250000
Create New > Boolean > content.interrupt.parsing to false
Create New > Boolean > javascript.options.jit.chrome to true
Create New > Boolean > javascript.options.jit.content to true

dom.gamepad.extensions.enabled to false
extensions.formautofill.addresses.enabled to false
extensions.formautofill.available
extensions.formautofill.creditCards.available to false
extensions.formautofill.creditCards.enabled to false
extensions.formautofill.firstTimeUse to false
extensions.formautofill.heuristics.enabled to false
extensions.formautofill.section.enabled to false
extensions.pocket.api
extensions.pocket.enabled to false
extensions.pocket.site
extensions.screenshots.disabled to true
extensions.webcompat-reporter.enabled to false
media.navigator.enabled to false
media.peerconnection.enabled to false
network.http.max-persistent-connections-per-server to 12
geo.enabled to false
geo.wifi.uri
geo.wifi.xhr.timeout to 1
network.dns.disablePrefetch to true
network.prefetch-next to false
dom.webnotifications.enabled to false
dom.push.enabled to false
browser.cache.disk.enable to false
browser.cache.offline.capacity to 0
browser.cache.offline.enable to false
browser.cache.disk_cache_ssl to false
browser.cache.memory.enable to true
network.trr.mode to 2
network.trr.uri to https://mozilla.cloudflare-dns.com/dns-query
network.security.esni.enabled to true
browser.tabs.allowTabDetach value to false
dom.image-lazy-loading.enabled to true

Verify Integrity của Places Database trong about:support

Fix firefox-esr ở 560 DPI chỉnh about:config dòng layout.css.devPixelsPerPx thành 1.2

mở prefs.js trong home/<user>/.mozilla/jdkfng.default, thêm các dòng:
user_pref("dom.w3c.touch_events.enabled", true);
user_pref("browser.gesture.pinch.in", "cmd_fullZoomReduce");
user_pref("browser.gesture.pinch.out", "cmd_fullZoomEnlarge");
user_pref("general.useragent.site_specific_overrides", false );
user_pref("general.useragent.override", "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.117 Safari/537.36");

Trong firefox-esr, mở touch gestures cho firefox-esr bằng cách thêm MOZ_USE_XINPUT2 DEFAULT=1 vào /etc/security/pam_env.conf, vào about:config sửa dom.w3c.touch_events.enabled thành 1. Xem youtube thì cài addons h264ify, nên để ở quality 360p-480p không bị giật và laggy hình.

Move chrome cache và firefox cache đến ramdisk tho link bên dưới:
https://www.omgubuntu.co.uk/2010/11/move-google-chrome-cache-to-ramdisk

Move Google Chrome Cache to a ram disk and speed up page loading - OMG! Ubuntu!

Got ample RAM installed? Want to speed up web page loading in Google Chrome? By moving your web cache to a RAM disk you can do just that. "It is possible
omgubuntu.co.uk


https://askubuntu.com/questions/99506/what-can-i-move-to-ram-drive-to-have-the-system-working-faste

What can I move to RAM drive to have the system working faster?

Which files/directories can I move to RAM drive to have the system working faster? I'm planning to upgrade my laptop's memory to 8GB soon, so I'll have some fast memory to use. How to configure the
askubuntu.com


Căn cho các apps chạy QT đúng tỷ lệ màn hình bằng cách thêm
QT_SCALE_FACTOR=2
QT_AUTO_SCREEN_SCALE_FACTOR=2
Vào /etc/environment





Archlinux on Nexus7

  • Chịu trách nhiệm nội dung: Trần Mạnh Hiệp
  • © 2020 Công ty Cổ phần MXH Tinh Tế
  • Địa chỉ: 209 Đường Nam Kỳ Khởi Nghĩa, Phường 7, Quận 3, TP.HCM
  • Số điện thoại: 02862713156
  • MST: 0313255119
  • Giấy phép thiết lập MXH số 11/GP-BTTTT, Ký ngày: 08/01/2019