dnschneid / crouton

Chromium OS Universal Chroot Environment
https://goo.gl/fd3zc?si=1
BSD 3-Clause "New" or "Revised" License
8.56k stars 1.24k forks source link

FOCAL FOSSA! #4265

Closed saltedcoffii closed 2 years ago

saltedcoffii commented 4 years ago

I'm sure that all of us Linux enthusiasts are really excited about the release of Focal Foosa, Canonical's latest Ubuntu release, 20.04 LTS, scheduled to be released on April 23. I love and adore crouton, but as time passes, Xenial becomes more and more dated. Xenial repositories aren't just keeping up with everything new, like the latest versions of java, firefox, mono, gnome, gcc, et cetera. When (or if, I suppose,) will crouton be updating to a newer version of Ubuntu? What is in the works already? When will crouton -r help show focal* after eoan*?

justchen1369 commented 4 years ago

18.04 has been avaliable for a while now.

saltedcoffii commented 4 years ago

It has been available, but it's not officially supported by crouton, and it's much too buggy for productivity use with crouton.

dnschneid commented 4 years ago

I've added focal* to the list.

We have pretty limited time to go through and repair all the compatibility issues that appear in each release, so we've been sticking to every-other LTS as the default crouton one and try to make that work as well as we can. Focal would be the next on the list, but it'll come down to when @drinkcat and I can allocate a week to hash it out. Rest assured it'll be sometime before April 2021 :)

Patches welcome, as always.

jvschiavo commented 4 years ago

I've added focal* to the list.

We have pretty limited time to go through and repair all the compatibility issues that appear in each release, so we've been sticking to every-other LTS as the default crouton one and try to make that work as well as we can. Focal would be the next on the list, but it'll come down to when @drinkcat and I can allocate a week to hash it out. Rest assured it'll be sometime before April 2021 :)

Patches welcome, as always.

Why Bionic was never tagged as supported? The idea was always to skip 16.04 directly to 20.04?

Is 18.04 safe to install or upgrade on my chroot?

hacker1024 commented 4 years ago

I just tried installing Focal, but I was met with a sed error. Eoan works just fine.

$ sudo crouton -r focal -t xorg,extension,audio,touch,kde-desktop

WARNING: focal is an unsupported release.
You will likely run into issues, but things may work with some effort.
Press Ctrl-C to abort; installation will continue in 5 seconds.
WARNING: Your rootfs is writable. Signed boot verification cannot be enabled.
If this is a surprise to you, you should do a full system recovery via USB.
Installing focal-amd64 chroot to /usr/local/chroots/focal
sed: couldn't edit /tmp/crouton.kwG/scripts/focal: not a regular file
dnschneid commented 4 years ago

Looks like I forgot to update the builder with a version of debootstrap that supports focal. That's fixed now.

jvschiavo commented 4 years ago

I think this should be a pinned issue. It is the most hyped thing for crouton right now. There're lots of expectations about this.

dnschneid commented 4 years ago

Good idea.

neogeo71 commented 4 years ago

It has been available, but it's not officially supported by crouton, and it's much too buggy for productivity use with crouton. I disagree. 18.04 LTS It runs perfectly fine in Crouton, been using it for 2 years. never had a issue.

saltedcoffii commented 4 years ago

It has been available, but it's not officially supported by crouton, and it's much too buggy for productivity use with crouton. I disagree. 18.04 LTS It runs perfectly fine in Crouton, been using it for 2 years. never had a issue.

Oh it won't even launch xorg for me.

neogeo71 commented 4 years ago

I posted my process of installing on Reddit. I will find and list it here...

On Thu, May 14, 2020, 10:50 AM kingliamb notifications@github.com wrote:

It has been available, but it's not officially supported by crouton, and it's much too buggy for productivity use with crouton. I disagree. 18.04 LTS It runs perfectly fine in Crouton, been using it for 2 years. never had a issue.

Oh it won't even launch xorg for me.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dnschneid/crouton/issues/4265#issuecomment-628723993, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEERALMJFWIM7YG3HZ6QQDRRQHNPANCNFSM4MLUHUAQ .

jvschiavo commented 4 years ago

Oh it won't even launch xorg for me.

I updated from xenial to bionic and it is working kind of okay for me. But Alt + Backspace is not resulting in Delete and I can't find a way to add that back. :/

neogeo71 commented 4 years ago

Used this successfully....

Download Crouton

cd ~/Downloads

wget "https://github.com/dnschneid/crouton/blob/master/installer/crouton"

Install Ubuntu 18.04 Bionic

sudo sh ~/Downloads/crouton -r bionic -t gnome

Fix Localization for things like gnome-terminal:

sudo enter-chroot

sudo locale-gen en_US en_US.UTF-8

export LANG=en_US.UTF-8

export LC_ALL=en_US.UTF-8

sudo dpkg-reconfigure locales

Fix mouse lag

sudo apt install xserver-xorg-input-synaptics

Fix UI lag

sudo enter-chroot

cd /usr/share/X11/xorg.conf.d

sudo ln -s /etc/crouton/xorg-intel-sna.conf 20-crouton-intel-sna.conf

Install a bunch of other shit:

sudo apt install gnome-terminal nano ttf-ubuntu-font-family gnome-calculator gnome-calendar gnome-clocks file-roller gedit bash-completion ubuntu-restricted-extras gnome-tweaks iptables darktable rawtherapee steam swell-foop eog

edit Step 2 is currently broken. I'm not sure if this fix will introduce errors, but I did get it to install:

sudo sh ~/Downloads/crouton -r bionic -t core

sudo enter-chroot

Sudo apt install xserver-xorg-video-all xserver-xorg xserver-xorg-video-intel

exit

sudo sh ~/Downloads/crouton -r bionic -t gnome -u

then continue w/ the rest of the guide.

derpyegplant commented 4 years ago

Focal Fossa seems to only work with xfce. it wont open in gnome or any other desktop

neogeo71 commented 4 years ago

Focal Fossa seems to only work with xfce. it wont open in gnome or any other desktop It works! I am running it now. Gnome works. Follow directions above.

Miustone commented 4 years ago

I tried everything possible on My C340-15 to get 20.04 but no success (Running Bionic rn). Will try later again! Thank You very much for this! <3

Random Question. Will it be possible to compile Android Systems on 18.04 or 20.04? I'm not sure about this since i'm running a bit buggy with 18.04 and wonder if 20.04 will allow me to do this...

saltedcoffii commented 4 years ago

I tried everything possible on My C340-15 to get 20.04 but no success (Running Bionic rn). Will try later again! Thank You very much for this! <3

Random Question. Will it be possible to compile Android Systems on 18.04 or 20.04? I'm not sure about this since i'm running a bit buggy with 18.04 and wonder if 20.04 will allow me to do this...

@Miustone You could ask on the subreddit

Miustone commented 4 years ago

I tried everything possible on My C340-15 to get 20.04 but no success (Running Bionic rn). Will try later again! Thank You very much for this! <3 Random Question. Will it be possible to compile Android Systems on 18.04 or 20.04? I'm not sure about this since i'm running a bit buggy with 18.04 and wonder if 20.04 will allow me to do this...

@Miustone You could ask on the subreddit

I don't have a reddit Account but thanks...

TheRealFanjin commented 4 years ago

Hey guys I just wanted to let u guys know I got focal with xfce working perfectly. No bugs, nothing. It is perfect the first time I installed it. First step towards FOCAL FOOSA! focalfoosa

MisterTrash-77 commented 4 years ago

Hey, sorry for the question but is anyone able to run focal or eoan ? Focal just show a blackscreen when running "sudo startxfce4" and Eoan just ask me to reboot for dbus to install (When I do it just ask me once more to reboot for dbus). Thanks

pairwiserr commented 4 years ago

It works! I am running it now. Gnome works. Follow directions above.

@derpyegplant was referring to Focal Fossa, but your instructions are for bionic, @neogeo71 .

pairwiserr commented 4 years ago

Hey, sorry for the question but is anyone able to run focal or eoan ?

I've tried installing focal with gnome but it automatically unmounts.

TeaWolf commented 4 years ago

I'm running focal at the moment and everything works fine except sound and some performance issues. After trying the sound solution from here I can get sound from vlc, but still no sound from Firefox. Concerning performance I keep seeing chrome running at 20% cpu load on top. Is it increase it's niceness from -8 ? Or will this not help ?

TheRealFanjin commented 4 years ago

@TeaWolf Yes, I remember having the exact same audio problem. I think I solved it by doing pulseaudio -D or pulseaudio --start, I forgot which one it was. As for the Chrome issue, I just don't use Chrome in Linux. I mostly use Vivaldi and Firefox

satmandu commented 4 years ago

This let sudo startgnome work for me:

sudo enter-chroot
sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt dist-upgrade -y
echo MESA_LOADER_DRIVER_OVERRIDE=i965 | sudo tee -a /etc/environment
cd /usr/share/X11/xorg.conf.d && sudo ln -s /etc/crouton/xorg-intel-sna.conf 20-crouton-intel-sna.conf
TeaWolf commented 4 years ago

@TeaWolf Yes, I remember having the exact same audio problem. I think I solved it by doing pulseaudio -D or pulseaudio --start, I forgot which one it was. As for the Chrome issue, I just don't use Chrome in Linux. I mostly use Vivaldi and Firefox

Thanks for the pulseaudio --start tip. that did the trick. As to the browser I also use only Firefox. I think the chrome is the one running in ChromeOS when I start the crosh shell to boot up my chroot. Is there a way to start the chroot without opening chrome?

TheRealFanjin commented 4 years ago

@TeaWolf The "Chrome" that is using a lot of CPU is not just the Chrome in ChromeOS, it's the whole ChromeOS system. If you close Chrome in ChromeOS, the "Chrome" in your task manager will keep running. If you're interested, there's a way to [https://github.com/dnschneid/crouton/wiki/Autostart-crouton-chroot-at-ChromeOS-startup](autostart a chroot), but it's a bit complicated and doesn't really resolve the chrome issue. Anyway, just don't open any tabs in Chrome to minimize cpu usage and definitely close android apps, they also use a lot of CPU.

explodersname commented 4 years ago

Hello, Could someone please post a complete installation guide for focal here? I have looked through this thread and it seems very long and complicated to go through. I have seen several comments solving issues such as using gnome, and solving audio issues and would like it all to be combined together into one, complete tutorial for me, and many others to follow. I don't care if the desktop environment is gnome although that would be nice.

TheRealFanjin commented 4 years ago

@explodersname You should try installing first and see what errors/problems you get.

explodersname commented 4 years ago

@TheRealFanjin Already have, and havent gotten any desktop environments to work. I have tried using xinit to start gnome via .xinitrc that didnt work, and sudo startgnome shows my cursor twice, then it disapears and takes me back to chrome os with the usual "lost connection to x server" that you get when stopping xorg manually. <- the same happens with xfce.

explodersname commented 4 years ago

Update: Using the Targets: xfce,xorg,audio,core,x11,gtk-extra I have gotten focal fossa to work. The biggest issue I'm having is audio though. I have tried using this guide: https://github.com/dnschneid/crouton/wiki/Access-audio-hardware-directly-(ALSA,-JACK) to give direct access to the soundcard, I will keep you updated if I manage to figure out how to do this.

explodersname commented 4 years ago

UPDATE: FINALLY (took me literally 3 minutes to get audio setup using that guide: My complete tutorial: Install focal Fossa with this command: sudo crouton -r focal -t xorg,audio,core,gtk-extra,x11,xfce. Wait for crouton to do its thing. Create a username and pass, then sudo enter-chroot and enter the following commands:

sudo apt-get remove --purge pulseaudio alsa-base sudo apt-get install alsa-base sudo usermod -a -G hwaudio "$USER" This command adds you to the hardware audio group. Exit the chroot, then on Chrome-OS, enter the following command: sudo initctl stop cras This stops cras (the default audio server crouton uses, which doesnt work so is useless). Then sudo enter-chroot again and enter the command: cat /proc/asound/cards. This will list off your audio cards on your chromebook, my cards name is chtmax98090 but yours may be different. The name of your card will be the second line after "1 [" e.g. mine was 1 [chtmax98090 Now enter the command nano ~/.asoundrc and paste the following:

https://hastebin.com/usiqejifuv.shell

I had to put it in hastebin because github was doing weird formatting stuff

Nano may not be installed so install it using: sudo apt install nano -y while were at it install pulseaudio again: sudo apt install pulseaudio -y (the -y flag skips the yes or no confirmation with apt) Once you've pasted that into ~/.asoundrc, use the keybind: ctrl+o to save and press enter, then ctrl+x to exit. Next install gnome control center if not already installed using: sudo apt install gnome-control-center Then when its installed exit the chroot and start xfce using: sudo startxfce4 Go to your settings and click session and startup (or something like that) then click applications startup at the top and click add at the bottom. We need to execute two commands at startup: You can name these whatever you want with a description of whatever you want but for the command we need these commands: pulseaudio --start then click ok now click add one more time, again the title and description can be whatever you want but the command must be: xfce4-panel The pulseaudio start command starts the pulseaudio server and the panel command insures the panel starts everytime. (otherwise you may have a hard time using your applications) Now in order for audio to start working, exit the chroot and start xfce again. Now just customize and your done!

explodersname commented 4 years ago

It works! I am running it now. Gnome works. Follow directions above.

@derpyegplant was referring to Focal Fossa, but your instructions are for bionic, @neogeo71 .

I haven't got gnome but I have made a complete guide that makes audio work aswell. @pairwiserr

clvgt12 commented 3 years ago

BTW, this rocks.

I set up my HP Chromebook x360 with Focal Fossa, and added in Sommelier/Wayland support using this post as a guide.

I can now export Firefox and Thunderbird displays back towards my Chromebook's native Wayland Display Server. No need for the 'xiwi' extension anymore, or starting the entire xfce4 desktop just to manage a few windows. I used this post as reference for the Mozilla apps.

satmandu commented 3 years ago

@clvgt12 FYI we have the current version of sommelier working in chromebrew.

ayr-ton commented 3 years ago

@dnschneid Is bionic stable enough?

adamallgood commented 3 years ago

I got sound via the speakers to work in my focal fossa chroot using @explodersname 's instructions above; however, I cannot get sound to switch over to headphones. When I open the Volume Control, the device is set to kbida7219m98927 Stereo and the Port says Headphones with no other options in the pulldown.

Has anyone had success getting both speaker sound and headphone sound working? Both still work in ChromeOS, but sometimes plugging/unplugging the headphones causes sound to stop working in the chroot. Sound even stopped working on the ChromeOS side at one point, and sudo stop cras/sudo start cras fixed it. Rebooting also fixes it.

quickreactor commented 3 years ago

I got sound via the speakers to work in my focal fossa chroot using @explodersname 's instructions above; however, I cannot get sound to switch over to headphones. When I open the Volume Control, the device is set to kbida7219m98927 Stereo and the Port says Headphones with no other options in the pulldown.

Has anyone had success getting both speaker sound and headphone sound working? Both still work in ChromeOS, but sometimes plugging/unplugging the headphones causes sound to stop working in the chroot. Sound even stopped working on the ChromeOS side at one point, and sudo stop cras/sudo start cras fixed it. Rebooting also fixes it.

When I click on the hastebin link in the guide above there is nothing there! Can you help me find the original text?

explodersname commented 3 years ago

I gotchu fam: https://pastebin.com/4HjuyYVn

aghebert commented 3 years ago

I got sound via the speakers to work in my focal fossa chroot using @explodersname 's instructions above; however, I cannot get sound to switch over to headphones. When I open the Volume Control, the device is set to kbida7219m98927 Stereo and the Port says Headphones with no other options in the pulldown.

Has anyone had success getting both speaker sound and headphone sound working? Both still work in ChromeOS, but sometimes plugging/unplugging the headphones causes sound to stop working in the chroot. Sound even stopped working on the ChromeOS side at one point, and sudo stop cras/sudo start cras fixed it. Rebooting also fixes it.

I'm experiencing this as well.

adamallgood commented 3 years ago

I'm experiencing this as well.

I have a 3.5mm jack to USB-C adaptor, and found that my headset works fine when plugged into my USB-C port. So it seems that it's sound through the 3.5mm port that does not work.

jacob1298 commented 3 years ago

1 more day and focal being supported with crouton will be late...

danieltahara commented 3 years ago

1 more day and focal being supported with crouton will be late...

Remember, this is an open source project supported by volunteers who are giving us a really useful thing. It's not like dnschneid and co don't know when 16.04 LTS ends/ended.

Am I bummed Focal isn't officially supported yet? Of course. But making a passive aggressive comment about it and not being willing to chip in isn't charitable.

brendan-mccoy commented 3 years ago

Somebody's humor detector is broken.

jacob1298 commented 3 years ago

At least I got it to work with xfce

jacob1298 commented 3 years ago

Xfce is the only gui I know can survive a reboot

ty1118 commented 3 years ago

kde-runtime not found. are yall going to install it

saltedcoffii commented 3 years ago

Today is National Crouton Day in the United States 😂

foxsouns commented 3 years ago

Xfce is the only gui I know can survive a reboot

XFCE4 is literally the only DE I care about. Gnome is too chonky for any of my computers, and LXDM/LXQt are lackluster & don't provide any real advantages over XFCE IMO. If I can get my Celes unbricked, I'll gladly slap Focal with XFCE on it.

saltedcoffii commented 3 years ago

@explodersname unfortunately the hastebin link disappeared :( Could you post it again in another pastebin or on github?