Coder Social home page Coder Social logo

qntmpkts / chroagh-dev Goto Github PK

View Code? Open in Web Editor NEW
24.0 5.0 11.0 2.23 MB

Chromium OS Archlinux Chroot Environment

License: BSD 3-Clause "New" or "Revised" License

Makefile 0.63% Shell 68.29% Scheme 0.19% Python 0.19% HTML 1.23% JavaScript 6.24% C++ 7.80% C 15.44%
crouton chroot archlinux arch-linux chromeos chromium-os aur

chroagh-dev's People

Contributors

agriffis avatar arbuztw avatar boodoo avatar cribalik avatar dennislfromga avatar dimonf avatar divx118 avatar dnschneid avatar drinkcat avatar dumpweed avatar elkangaroo avatar haodemon avatar javimerino avatar kanner avatar kennystrawnmusic avatar lnxsrt avatar michaelorr avatar mixu avatar mkasick avatar nromsdahl avatar phated avatar qntmpkts avatar shippy avatar stevendlander avatar stevenmaude avatar tantalor avatar taterbase avatar tedm avatar tobbe avatar tonyxue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

chroagh-dev's Issues

wget: command not found

I tried to follow the steps to create the chroot and after this command:

wget https://api.github.com/repos/qntmpkts/chroagh/tarball -O chroagh.tar.gz tar

I got the message: bash: wget: command not found

Maybe change the command to use curl?

Can't install target kde-desktop

Please paste the output of the following command here: sudo edit-chroot -all

name: arch
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/arch...
crouton: version git
release: arch
architecture: x86_64
xmethod: xorg
targets: kde-desktop
host: version 9901.35.0 (Official Build) dev-channel cave 
kernel: Linux localhost 3.18.0-16025-g0721c0e136ea #1 SMP PREEMPT Sun Oct 1 21:58:49 PDT 2017 x86_64 GNU/Linux
freon: yes
Unmounting /mnt/stateful_partition/crouton/chroots/arch...

Please describe your issue:

Since I couldn't get target xfce to work, I decided to try kde-desktop. Unfortunately, this script fails much earlier with this:

Installing target x11...
Installing target kde...
error: target not found: kde-meta-kdeplasma-addons
error: target not found: kde-baseapps
error: target not found: kde-runtime
Failed to complete chroot setup.
The chroot setup script may be broken. Your chroot is not fully configured.
Removing the chroot setup script. You may want to update your chroot again.
UID 1000 not found in arch
Unmounting /mnt/stateful_partition/crouton/chroots/arch...

If known, describe the steps to reproduce the issue:

I just ran the command:

sudo sh -e installer/main.sh -r arch -t kde-desktop

to attempt to work around my issues with the xfce chroot.

tar: This does not look like a tar archive

I tried to download chroagh with curl but when I want to use tar afterwards it says:
tar: This does not look like a tar archive

After that I downloaded the whole repo as a zip. Unzipped it and tried to use the install command, but got the same error like above. This was the output:

Installing arch-x86_64 chroot to /usr/local/chroots/arch
Fetching repository packages list...
Fetching core...
-=#=-#     #       #                                                                                                                                                     
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
Fetching community...
-=#=-#     #       #                                                                                                                                                     
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
Fetching extra...
-=#=-#     #       #                                                                                                                                                     
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
Downloading and extracting packages...
Cannot find package bash...

I used this command to install it: sudo sh -e installer/main.sh -r arch -t x11,xorg,audio,touch,keyboard,extension,core,cli-extra,chrome

Not sure what I am doing wrong, or is this just all outdated?

I made a working fork

Not sure if this project is still in active development, and this fork was the most recently committed-to one I could find. My fork at https://github.com/mediocregopher/chroagh seems to work ok on my machine if anyone wants to give it a shot.

The fork fixes issues #12, #11, and #8. I haven't tested any of the GUI stuff, but cli works at least.

Unable to enter chroot on Asus C302CA, unable to connect to X server

Please paste the output of the following command here: sudo edit-chroot -all

encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/arch...
crouton: version git
release: arch
architecture: x86_64
xmethod: xorg
targets: xfce
host: version 9901.35.0 (Official Build) dev-channel cave 
kernel: Linux localhost 3.18.0-16025-g0721c0e136ea #1 SMP PREEMPT Sun Oct 1 21:58:49 PDT 2017 x86_64 GNU/Linux
freon: yes

Please describe your issue:

When trying to enter chroot I get this output:

Entering /mnt/stateful_partition/crouton/chroots/arch...
chown: invalid user: 'messagebus:messagebus'
/usr/bin/startxfce4: Starting X server

_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root

X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.5.4-1-ARCH x86_64 
Current Operating System: Linux localhost 3.18.0-16025-g0721c0e136ea #1 SMP PREEMPT Sun Oct 1 21:58:49 PDT 2017 x86_64
Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 3584000 verity payload=PARTUUID=ff1fa3fd-6599-904a-a0ec-79fe91f97b03/PARTNROFF=1 hashtree=PARTUUID=ff1fa3fd-6599-904a-a0ec-79fe91f97b03/PARTNROFF=1 hashstart=3584000 alg=sha1 root_hexdigest=1486f82eb09ecfa123acfd3ba8e8ed29ab9779df salt=c01410953a65e45cb6ddc8a09c9f7c4c589aa39339904ec0e4196c3d53292a93" noinitrd vt.global_cursor_default=0 kern_guid=ff1fa3fd-6599-904a-a0ec-79fe91f97b03 add_efi_memmap boot=local noresume noswap i915.modeset=1 tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapic intel_idle.max_cstate=7  
Build Date: 19 July 2016  05:54:24PM
 
Current version of pixman: 0.34.0
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/tmp/Xorg.crouton.1.log", Time: Sat Oct  7 11:17:01 2017
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) 
Fatal server error:
(EE) parse_vt_settings: Cannot open /dev/tty0 (No such file or directory)
(EE) 
(EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
(EE) Please also check the log file at "/tmp/Xorg.crouton.1.log" for additional information.
(EE) 
(EE) Server terminated with error (1). Closing log file.
/usr/bin/xinit: giving up
/usr/bin/xinit: unable to connect to X server: Connection refused
/usr/bin/xinit: server error
Unmounting /mnt/stateful_partition/crouton/chroots/arch...

Contents of Xorg.crouton.1.log:

[ 26877.266] _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
[ 26877.266] 
X.Org X Server 1.18.4
Release Date: 2016-07-19
[ 26877.266] X Protocol Version 11, Revision 0
[ 26877.266] Build Operating System: Linux 4.5.4-1-ARCH x86_64 
[ 26877.266] Current Operating System: Linux localhost 3.18.0-16025-g0721c0e136ea #1 SMP PREEMPT Sun Oct 1 21:58:49 PDT 2017 x86_64
[ 26877.266] Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 3584000 verity payload=PARTUUID=ff1fa3fd-6599-904a-a0ec-79fe91f97b03/PARTNROFF=1 hashtree=PARTUUID=ff1fa3fd-6599-904a-a0ec-79fe91f97b03/PARTNROFF=1 hashstart=3584000 alg=sha1 root_hexdigest=1486f82eb09ecfa123acfd3ba8e8ed29ab9779df salt=c01410953a65e45cb6ddc8a09c9f7c4c589aa39339904ec0e4196c3d53292a93" noinitrd vt.global_cursor_default=0 kern_guid=ff1fa3fd-6599-904a-a0ec-79fe91f97b03 add_efi_memmap boot=local noresume noswap i915.modeset=1 tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapic intel_idle.max_cstate=7  
[ 26877.266] Build Date: 19 July 2016  05:54:24PM
[ 26877.266]  
[ 26877.266] Current version of pixman: 0.34.0
[ 26877.266] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[ 26877.266] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 26877.266] (++) Log file: "/tmp/Xorg.crouton.1.log", Time: Sat Oct  7 11:17:01 2017
[ 26877.267] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 26877.267] (==) No Layout section.  Using the first Screen section.
[ 26877.267] (==) No screen section available. Using defaults.
[ 26877.267] (**) |-->Screen "Default Screen Section" (0)
[ 26877.267] (**) |   |-->Monitor "<default monitor>"
[ 26877.267] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[ 26877.267] (==) Automatically adding devices
[ 26877.267] (==) Automatically enabling devices
[ 26877.267] (==) Automatically adding GPU devices
[ 26877.267] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 26877.267] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 26877.267] 	Entry deleted from font path.
[ 26877.267] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/100dpi/,
	/usr/share/fonts/75dpi/
[ 26877.267] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 26877.267] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 26877.267] (II) Loader magic: 0x821d40
[ 26877.267] (II) Module ABI versions:
[ 26877.267] 	X.Org ANSI C Emulation: 0.4
[ 26877.267] 	X.Org Video Driver: 20.0
[ 26877.267] 	X.Org XInput driver : 22.1
[ 26877.267] 	X.Org Server Extension : 9.0
[ 26877.272] (EE) systemd-logind: failed to get session: Launch helper exited with unknown return code 1
[ 26877.273] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 26877.273] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[ 26877.855] (--) PCI:*(0:0:2:0) 8086:191e:8086:2015 rev 7, Mem @ 0xd0000000/16777216, 0xc0000000/268435456, I/O @ 0x00001c00/64
[ 26877.855] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 26877.855] (II) LoadModule: "glx"
[ 26877.856] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 26877.859] (II) Module glx: vendor="X.Org Foundation"
[ 26877.859] 	compiled for 1.18.4, module version = 1.0.0
[ 26877.859] 	ABI class: X.Org Server Extension, version 9.0
[ 26877.859] (==) AIGLX enabled
[ 26877.859] (==) Matched intel as autoconfigured driver 0
[ 26877.859] (==) Matched modesetting as autoconfigured driver 1
[ 26877.859] (==) Matched fbdev as autoconfigured driver 2
[ 26877.859] (==) Matched vesa as autoconfigured driver 3
[ 26877.859] (==) Assigned the driver to the xf86ConfigLayout
[ 26877.859] (II) LoadModule: "intel"
[ 26877.860] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 26877.861] (II) Module intel: vendor="X.Org Foundation"
[ 26877.861] 	compiled for 1.18.4, module version = 2.99.917
[ 26877.861] 	Module class: X.Org Video Driver
[ 26877.861] 	ABI class: X.Org Video Driver, version 20.0
[ 26877.861] (II) LoadModule: "modesetting"
[ 26877.861] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 26877.861] (II) Module modesetting: vendor="X.Org Foundation"
[ 26877.861] 	compiled for 1.18.4, module version = 1.18.4
[ 26877.861] 	Module class: X.Org Video Driver
[ 26877.861] 	ABI class: X.Org Video Driver, version 20.0
[ 26877.861] (II) LoadModule: "fbdev"
[ 26877.862] (WW) Warning, couldn't open module fbdev
[ 26877.862] (II) UnloadModule: "fbdev"
[ 26877.862] (II) Unloading fbdev
[ 26877.862] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 26877.862] (II) LoadModule: "vesa"
[ 26877.863] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[ 26877.863] (II) Module vesa: vendor="X.Org Foundation"
[ 26877.863] 	compiled for 1.18.0, module version = 2.3.4
[ 26877.863] 	Module class: X.Org Video Driver
[ 26877.863] 	ABI class: X.Org Video Driver, version 20.0
[ 26877.863] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
	i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
	915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
	Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
	GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[ 26877.863] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[ 26877.863] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[ 26877.863] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[ 26877.863] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 26877.863] (II) VESA: driver for VESA chipsets: vesa
[ 26877.864] (EE) 
Fatal server error:
[ 26877.864] (EE) parse_vt_settings: Cannot open /dev/tty0 (No such file or directory)
[ 26877.864] (EE) 
[ 26877.864] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[ 26877.864] (EE) Please also check the log file at "/tmp/Xorg.crouton.1.log" for additional information.
[ 26877.864] (EE) 

If known, describe the steps to reproduce the issue:

Not sure if this is limited to my chromebook (Asus C302CA). Trying to enter chroot fails with the same output every time.

Install Problem- /prepare.sh: line 2301: syntax error

Hi qntmpkts. First, thank you for continuing work on chroagh, it gives people like me hope, that perhaps it really is possible to get Arch working (SeaBios has problems). I did encounter some hiccups during installation, your help is much appreciated.

Please paste the output of the following command here: sudo edit-chroot -all

name: arch
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/arch...
crouton: version git
release: arch
architecture: x86_64
targets: xfce
host: version 9765.31.0 (Official Build) beta-channel sentry
kernel: Linux localhost 3.18.0-15945-g3e5ac8a02327 #1 SMP PREEMPT Wed Aug 16 22:01:11 PDT 2017 x86_64 GNU/Linux
freon: yes

Please describe your issue:

When Installing chroagh,. However, chroot was not able to install, instead I find a few warnings about missing modules and a syntax error.

WARNING: Possibly missing firmware for module: wd719x
WARNING: Possibly missing firmware for module: aic94xx

/prepare.sh: line 2301: syntax error: unexpected end of file
Failed to complete chroot setup.

The chroot setup script may be broken. Your chroot is not fully configured.
Removing the chroot setup script. You may want to update your chroot again.
UID 1000 not found in arch

If known, describe the steps to reproduce the issue:

I followed the exact steps in the readme file.

cd ~/Downloads
wget https://api.github.com/repos/qntmpkts/chroagh/tarball -O chroagh.tar.gz
tar xvf chroagh.tar.gz
cd qntmpkts-chroagh-*
sudo sh -e installer/main.sh -r arch -t xfce

curl fails due to 302 from mirrors.kernel.org

Please describe your issue:

The installer has been failing of late, and it took me a while to figure it out, but the problem is that the mirrors.kernel.org archive redirects to mirrors.edge.kernel.org and curl won't follow the redirect (http code 302) by default.

I fixed this by changing the "arch/defaults" file entry for the x86_64 mirror to the following:

x86_64 ) MIRROR="${CROUTON_MIRROR_arch: https://mirrors.edge.kernel.org/archlinux/\$repo/os/\$arch}";;

The installer still doesn't work, but I guess it's a separate issue.
It fails on group creation:

Installing crash_reporter_wrapper into the host...
Creating hwaudio group with GID 18...
chroot: failed to run command 'su': Permission denied
Unmounting /mnt/stateful_partition/crouton/chroots/arch...

I'll try to debug that one.

is xfce4 on arm working?

name: arch
encrypted: no
Entering /var/sd/chroots/arch...
crouton: version git
release: arch
architecture: armv7h
xmethod: xorg
targets: xfce
host: version 10032.39.0 (Official Build) beta-channel veyron_jerry 
kernel: Linux localhost 3.14.0 #1 SMP PREEMPT Tue Nov 14 22:00:05 PST 2017 armv7l GNU/Linux
freon: yes

Please describe your issue:

I installed this repo on seperate sd card using command below.

sudo sh -e installer/main.sh -p /var/sd -r arch -t xfce -m 'http://tw.mirror.archlinuxarm.org/armv7h/$repo'

enter-chroot into it works fine, but startxfce4 doesn't work.

Entering /var/sd/chroots/arch...
chown: invalid user: ‘messagebus:messagebus’
/usr/bin/startxfce4: Starting X server

_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root

X.Org X Server 1.19.5
Release Date: 2017-10-12
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.10.0-1-ARCH armv7l 
Current Operating System: Linux localhost 3.14.0 #1 SMP PREEMPT Tue Nov 14 22:00:05 PST 2017 armv7l
Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 3334144 verity payload=PARTUUID=a22f468e-ea99-bc41-bbf0-aa91f73a3dd5/PARTNROFF=1 hashtree=PARTUUID=a22f468e-ea99-bc41-bbf0-aa91f73a3dd5/PARTNROFF=1 hashstart=3334144 alg=sha1 root_hexdigest=192b5a6805dd86d3eb58d8280f874d137dd8b76e salt=82495dfc93a3eff5a678160141db9773e6c86c4eee893dcee3ff619a17b63208" noinitrd vt.global_cursor_default=0 kern_guid=a22f468e-ea99-bc41-bbf0-aa91f73a3dd5  
Build Date: 13 October 2017  02:06:59PM
 
Current version of pixman: 0.34.0
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/tmp/Xorg.crouton.1.log", Time: Sun Nov 19 18:15:50 2017
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) 
Fatal server error:
(EE) parse_vt_settings: Cannot open /dev/tty0 (No such file or directory)
(EE) 
(EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
(EE) Please also check the log file at "/tmp/Xorg.crouton.1.log" for additional information.
(EE) 
(EE) Server terminated with error (1). Closing log file.
/usr/bin/xinit: giving up
/usr/bin/xinit: unable to connect to X server: Connection refused
/usr/bin/xinit: server error
Unmounting /var/sd/chroots/arch...

Obviously no /dev/tty0.

Does this repo work on armhf devices currently? Or something I've done wrong?

FYI Ubuntu with dnschneid/crouton works perfectly.

Black screen when using xiwi

name: archer
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/archer...
crouton: version git
release: arch
architecture: x86_64
xmethod: xiwi
targets: xiwi,cli-extra,keyboard
host: version 9901.54.0 (Official Build) stable-channel eve 
kernel: Linux localhost 4.4.79-11650-ge987f76b729a #1 SMP PREEMPT Tue Oct 24 23:57:37 PDT 2017 x86_64 GNU/Linux
freon: yes
Unmounting /mnt/stateful_partition/crouton/chroots/archer...

I am attempting to run i3 ( I've also tried xfce ) within xiwi.
There's something weird happening because whenever I execute xinit, it does indeed launch xiwi and such, but the screen remains black. To be clear, I know for a fact i3 is being executed, as I can open a terminal and 'blidly' type commands, even if I mod + shift + e and click in roughly the top right corner, I indeed exit i3 and return to the terminal.

I've tried xfce and it's the same.

Strangely, root user works fine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.