Skip to content

Instantly share code, notes, and snippets.

@borcean
Last active April 2, 2023 06:41
Show Gist options
  • Save borcean/cf1545d3afa5277b8b76b2ccb4af3b95 to your computer and use it in GitHub Desktop.
Save borcean/cf1545d3afa5277b8b76b2ccb4af3b95 to your computer and use it in GitHub Desktop.
Install KDE Neon on a Chromebook using Crouton
sudo crouton -r bionic -t core -n neon && \
sudo enter-chroot -n neon -u 0 bash -c "\
apt install software-properties-common -y && \
wget -qO - 'http://archive.neon.kde.org/public.key' | sudo apt-key add - && \
sudo apt-add-repository http://archive.neon.kde.org/user && \
sudo apt update && \
sudo apt full-upgrade -y && \
sudo apt install xterm xinit -y" && \
sudo crouton -r bionic -t xorg -n neon -u && \
sudo enter-chroot -n neon -u 0 bash -c "\
apt install neon-desktop -y && \
apt install xserver-xorg-input-synaptics -y && \
apt remove xterm -y && \
apt auto-remove -y" && \
sudo echo '#!/bin/sh -e
# Copyright (c) 2016 The crouton Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -e
APPLICATION="${0##*/}"
USAGE="$APPLICATION [options]
Wraps enter-chroot to start a KDE session.
By default, it will log into the primary user on the first chroot found.
Options are directly passed to enter-chroot; run enter-chroot to list them."
exec sh -e "`dirname "\`readlink -f -- "$0"\`"`/enter-chroot" -n neon "$@" "" \
exec xinit /usr/bin/startplasma-x11' | sudo tee /usr/local/bin/startplasma && \
sudo chmod +x /usr/local/bin/startplasma && \
echo -e "\n\nKDE Neon has been installed.\nStart with: sudo startplasma\n"
@borcean
Copy link
Author

borcean commented Dec 2, 2022

Change the release crouton installs by replacing -r bionic on line one with whatever release you would like.

@hiddensea
Copy link

hiddensea commented Mar 6, 2023

Not working.

sudo startplasma shows this

Entering /mnt/stateful_partition/crouton/chroots/neon...
dbus[29622]: Unknown username "whoopsie" in message bus configuration file
dbus[29622]: Unknown group "power" in message bus configuration file

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

X.Org X Server 1.21.1.3
X Protocol Version 11, Revision 0
Current Operating System: Linux localhost 4.14.302-19987-g08c7952d747c #1 SMP PREEMPT Mon Feb 13 19:02:34 PST 2023 x86_64
Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure drm.trace=0x106 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 5767168 verity payload=PARTUUID=fa42db4c-02c5-5b47-8c2b-ab2ef0052001/PARTNROFF=1 hashtree=PARTUUID=fa42db4c-02c5-5b47-8c2b-ab2ef0052001/PARTNROFF=1 hashstart=5767168 alg=sha256 root_hexdigest=007167085205afe0e7f703c1d15eedb5a0e275966581f634e59e8d53232f2fee salt=5bb6766cfc232c4afeb096cf5b021e53854fb3424ebd68e7e6541a2fe2eb1fac" noinitrd vt.global_cursor_default=0 kern_guid=fa42db4c-02c5-5b47-8c2b-ab2ef0052001 add_efi_memmap boot=local noresume noswap i915.modeset=1 gsmi.s0ix_logging_enable=1 intel_idle.slp_s0_check=1 intel_idle.slp_s0_seed=15  
xorg-server 2:21.1.3-2ubuntu2.7 (For technical support please see http://www.ubuntu.com/support) 
Current version of pixman: 0.40.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: Mon Mar  6 09:31:37 2023
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
MESA: warning: Kernel 4.1 required to properly query GPU properties.
error: Kernel is too old for Iris. Consider upgrading to kernel v4.16.

MESA: warning: Kernel 4.1 required to properly query GPU properties.
error: Kernel is too old for Iris. Consider upgrading to kernel v4.16.

(EE) 
Fatal server error:
(EE) AddScreen/ScreenInit failed for driver 0
(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/neon...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment