Install Ubuntu (better choose LTS version). (https://tutorials.ubuntu.com/tutorial/tutorial-install-ubuntu-desktop#0 )
Open terminal. (https://askubuntu.com/questions/183775/how-do-i-open-a-terminal )
Copy-paste this commands (press Enter and follow the instruction given after each command):
sudo apt-get update
sudo apt-get upgrade
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
or, if you have problem, try this one
curl -fsSL https://test.docker.com -o test-docker.sh
sh test-docker.sh
sudo docker pull registry.gitlab.e.foundation:5000/e/os/docker-lineage-cicd:latest
(better copy-paste from here https://gitlab.e.foundation/e/wiki/en/wikis/build#3-create-directories )
sudo mkdir -p \
/srv/e/src \
/srv/e/zips \
/srv/e/logs \
/srv/e/ccache \
In this command (better copy-paste from here https://gitlab.e.foundation/e/wiki/en/wikis/build#4-start-build ) set BRANCH_NAME
value to v1-nougat or v1-oreo and donât forget to replace whyred in DEVICE_LIST with your device code ([HOWTO] Find device code )
sudo docker run \
-v â/srv/e/src:/srv/src:delegatedâ \
-v â/srv/e/zips:/srv/zips:delegatedâ \
-v â/srv/e/logs:/srv/logs:delegatedâ \
-v â/srv/e/ccache:/srv/ccache:delegatedâ \
-e âBRANCH_NAME=v1-oreoâ \
-e âDEVICE_LIST=whyredâ \
-e âCUSTOM_PACKAGES=âMuPDF GmsCore GsfProxy FakeStore com.google.android.maps.jar Telegram Signal Mail BlissLauncher BlissIconPack MozillaNlpBackend OpenWeatherMapWeatherProvider AccountManager MagicEarth OpenCamera eDrive Weather Notes Tasks NominatimNlpBackend Light DroidGuard OpenKeychain Message Browser BrowserWebView Apps LibreOfficeViewerââ \
-e âSIGNATURE_SPOOFING=restrictedâ \
-e âOTA_URL=https://ota.ecloud.global/apiâ \
-e âREPO=https://gitlab.e.foundation/e/os/android.gitâ \
registry.gitlab.e.foundation:5000/e/os/docker-lineage-cicd:latest
Now you need to wait⌠How long? Well it depends on your computer specifications.
When your build is finished, you can find your zip file inside /srv/e/zips/âyour device codenameâ folder
5 Likes
donut3
September 21, 2019, 3:52pm
3
@unknown how long must you wait for the build to finish? I started the build about 10 minutes ago, how long till itâs done?
should it routinely be in the order of 10 minutes or 3 hours?
Thank you!
Unknown
September 21, 2019, 3:55pm
4
Depends on your hardware specs
donut3
September 21, 2019, 3:56pm
5
Ok, could 10 minutes be natural?
Depents on your vm. Unknown has need around a hour, when i rember right und I gave need on my old iMac around 8 hours
Unknown
September 21, 2019, 3:58pm
7
1 Like
donut3
September 21, 2019, 4:00pm
8
Ok, thank you. My VM is on my own pc (I didnât want to mess up my real os âŚ) and it has 16GB ram and 20 GB storage.
Unknown
September 21, 2019, 4:01pm
9
donut3:
20 GB storage.
its not enough, need >150GB for one android version and maybe 500GB if you want build nougat oreo and pie
Unknown
September 21, 2019, 4:03pm
10
Please reed this its newest and more completed guide alse read comment section [HOWTO] Building unofficial /e/ rom on a cloud VM - various options
donut3
September 21, 2019, 4:03pm
11
Oh no! Should I stop the build?
donut3
September 21, 2019, 4:03pm
12
I wanted to use my own hardware.
Unknown
September 21, 2019, 4:03pm
13
yes, it will fail with ânot enough space leftâ error
donut3
September 21, 2019, 4:04pm
14
Ok, thank you. I have a 480GB hard disk, Iâll run the VM on that and tell you this evening (in ~7 hours) how it goes!
donut3
September 21, 2019, 4:05pm
16
Sure, Host machine: 24gb ram, 120GB SSD, 2nd SSD:480GB.
VM: 16GB ram, 20GB ssd (Currently) 480GB (soon)
Unknown
September 21, 2019, 4:12pm
17
I think the best option for you, if there is no important data on 480 gb ssd, disconect 1st 120GB ssd, i mean remove sata cable, and install ubuntu on 480 gb ssd and with 24 gb ram i think it will build very fast, but depends from your internet speed because 1st it download sources then it building, so with bad internet dowloading sources can take long, because it need download 100GB+ data, but after that i think it will build very fast with your specs. Or just use second ssd for vm storage, but vm will build slower than the real hardware.
donut3
September 21, 2019, 4:13pm
18
Sounds good, thatâs what Iâll try to do. Thanks!!
Unknown
September 21, 2019, 4:13pm
19
no problem, ill help you with your questions if i can.
donut3
September 21, 2019, 4:14pm
20
Youâve already been awesome!
If Iâve got any more questions, Iâll shoot them over to you.
Besides, Iâll make sure to post how it went tonight. (Iâm building for RPi3B+!!)
Unknown
September 21, 2019, 4:20pm
21
well i think i will be not simple, because there is no officiall LineageOS support, do you have vendor, device tree and kernel sources for it? You should read this [HOWTO] Build /e/ without docker for non LineageOS supported devices , because even i can build only for officiall supported devices, i only made redmi note 5 pie which have only officiall oreo but original maintainer of pie build helped me a lot, if your build will be succesfull i think it will be very great for whole /e/ community.Good luck!
1 Like