Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More simple method to aviod ipc lock error #2

Open
sunjoong opened this issue Apr 19, 2017 · 2 comments
Open

More simple method to aviod ipc lock error #2

sunjoong opened this issue Apr 19, 2017 · 2 comments

Comments

@sunjoong
Copy link

sunjoong commented Apr 19, 2017

Before I found your installation howto, I managed to install gentoo.
Just for an information...

  1. Install Ubuntu
    In Windows PowerShell;
PS C:\Users\sunjoong> lxrun /install /y
PS C:\Users\sunjoong> 
  1. Extract Gentoo stage3 tarball
    Run Bash on Ubuntu on Windows.
root@SUNJOONG-DESKTOP:~# mkdir --mode=755 /rootfs
root@SUNJOONG-DESKTOP:~# cd /rootfs
root@SUNJOONG-DESKTOP:/rootfs# wget http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage3-amd64/stage3-amd64-20170413.tar.bz2
root@SUNJOONG-DESKTOP:/rootfs# tar xvjpf stage3-amd64-20170413.tar.bz2
root@SUNJOONG-DESKTOP:/rootfs# echo 'USE_EXPAND_HIDDEN="ABI_X86"' >> /rootfs/etc/portage/make.conf
root@SUNJOONG-DESKTOP:/rootfs# echo 'MULTILIB_ABIS="amd64"' >> /rootfs/etc/portage/make.conf
root@SUNJOONG-DESKTOP:/rootfs# echo 'FEATURES="-parallel-fetch"' >> /rootfs/etc/portage/make.conf
root@SUNJOONG-DESKTOP:/rootfs# echo 'sys-libs/glibc suid' > /rootfs/etc/portage/package.use/glibc
root@SUNJOONG-DESKTOP:/rootfs# rm ~/.bashrc ~/.profile
root@SUNJOONG-DESKTOP:/rootfs# cp -a /rootfs/etc/skel/.bash* ~
root@SUNJOONG-DESKTOP:/rootfs# rm stage3-amd64-20170406.tar.bz2
root@SUNJOONG-DESKTOP:/rootfs# exit
  1. Replace rootfs to Gentoo
    In Windows PowerShell;
PS C:\Users\sunjoong> cd ${env:LOCALAPPDATA}/lxss
PS C:\Users\sunjoong\AppData\Local\lxss> move rootfs rootfs.old
PS C:\Users\sunjoong\AppData\Local\lxss> move rootfs.old\rootfs rootfs
PS C:\Users\sunjoong\AppData\Local\lxss> del -recurse rootfs.old
PS C:\Users\sunjoong\AppData\Local\lxss> 
  1. Update Gentoo
    Now, you got Gentoo.
    Run Bash on Ubuntu on Windows but the linux system is Gentoo.
SUNJOONG-DESKTOP ~ # emerge --sync
SUNJOONG-DESKTOP ~ # emerge -uND @world
SUNJOONG-DESKTOP ~ # 
  1. Add default user
SUNJOONG-DESKTOP ~ # emerge sudo
SUNJOONG-DESKTOP ~ # groupadd -g 1000 sunjoong
SUNJOONG-DESKTOP ~ # useradd -u 1000 -g 1000 sunjoong
SUNJOONG-DESKTOP ~ # passwd sunjoong
SUNJOONG-DESKTOP ~ # echo 'sunjoong ALL=(ALL) ALL' >> /etc/sudoers
SUNJOONG-DESKTOP ~ # exit

And in Windows PowerShell;

PS C:\Users\sunjoong\AppData\Local\lxss> lxrun /setdefaultuser sunjoong
PS C:\Users\sunjoong\AppData\Local\lxss> exit

You know, sunjoong is my username so you may change it,
and stage3 tarball filename was that of 2017-04-13.

Your howto said to edit AbstractEbuildProcess.py file,
but that matches 'FEATURES="-parallel-fetch"' of mine.

@cnd
Copy link
Contributor

cnd commented Apr 19, 2017

@sunjoong AbstractEbuildProcess.py patch doesn't need anymore, I think portage already have all those fixes.

@sunjoong
Copy link
Author

@mpkh - Good. But I saw an exception from permission error of ipc lock file today when I commanded "emerge -e @world", and I could getover it with 'FEATURES="-parallel-fetch".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants