/r/Crostini

Photograph via snooOG

A forum for discussion and discovery for using VMs, Containers, and related tools on Chrome OS & Chromium. This community was created by enthusiasts and is not affiliated with anyone.

/r/Crostini

32,156 Subscribers

0

Run tkinter as a standalone app

I searched for a while (I even considered running tkinter in the browser and making a PWM)  but I am tired and I need help from actual experts, is there any way to run tkinter standalone (I can't do developer mode because I'm broke :P) I need help.

2 Comments
2024/10/31
22:03 UTC

4

Reverse SSH Tunnel

Hello. Has anyone ever succeeded in setting up a reverse SSH tunnel from Crostini to a public VPS? Is there any difference compared to the "normal" Linux way? I have gone through a couple of hoops, but at the end my password is not accepted even though I immediately set it in Crostini side using passwd :-/

Thanks

12 Comments
2024/10/30
20:03 UTC

3

Anyone else remember the "Dynamically Allocate Storage" option?

So you all know when you install the Linux container, you are presented with the option of either the recommended 10GB storage or a custom storage value, right?

I remember a while ago this month when you set up Linux, there was a "Dynamically Allocate Storage" option where if you select it, it will dynamically allocate the storage value (big brain moment.) You also can't select the option again if you switch to manual allocation. After discovering this feature for the first time, I decided to look it up to find out more about this new dynamic allocation option, but NO ONE was talking about it (besides two Reddit posts from three years ago.) I then thought, "Okay, I guess I'll wait a couple of weeks until people start talking about it so I can join the conversation," but then Google removed the dynamic storage allocation from Crostini and there still aren't any people talking about it.

Considering this feature seems obscure I decided to finally say something about it and hopefully someone else knows that this feature exists (unless not even this subreddit knows about this feature then I guess I'm out of luck.)

3 Comments
2024/10/29
19:39 UTC

1

setting up a browser in Linux VM to be recognised by Java apps

Original post from which I was redicted to here:

https://www.reddit.com/r/linux4noobs/comments/1geogs6/i_just_want_to_set_firefox_as_my_default_browser/

Let me catch this up first by saying I love having my first Chromebook :) it is just cool being able to both run my phone apps, use linux, which I need more practice with, and also my wife bought it so I would have somewhere to practice programming.

I digress I was following a guide on how to get KoLmafia to run on the computer, but it is not catching the firefox-esr I have installed for using for relay.

Reddit thread discussing how to do the above listed:

https://www.reddit.com/r/kol/comments/o6fquc/installing_kolmafia_on_a_chromebook_for_linux/

Sorry for the lengthy post, and I guess hello to everyone here!

0 Comments
2024/10/29
15:23 UTC

2

Duplicate copies of fonts in chromos and truetype folders

I have duplicate copies of some fonts, such as Noto, in both /usr/share/fonts/chromeos/ and /usr/share/fonts/truetype. If I delete the ones in the truetype folder, will they still be accessible by Linux apps?

Seems like a lot of extra space is eaten up.

1 Comment
2024/10/29
14:38 UTC

2

Smartctl for External Drives Possible?

Is it possible to use smartctl to determine the health of an external USB drive from Crostini? I'm just a moderate Linux user and can't seem to get it to work. I don't know if it's possible or just user error. Drives are (of course) mounted at /mnt/chromeos/removeable/<drives>

2 Comments
2024/10/28
23:28 UTC

16

Made my first custom container!

0 Comments
2024/10/27
17:53 UTC

1

how to disable bd prochot

on other distros, its pretty easy via script and kernel modifications but on linux crostini of chrome os, is it possible to disable bd prochot? as my processor is throttled to 0.4ghz, on windows i used throttlestop. or is it possible to overclock the cpu via the terminal, or undervolt it. please help, how do i do this. or should i just integrate arch/ubuntu via containers and then run the programs/commands for this purpose? will it work?

3 Comments
2024/10/25
15:46 UTC

1

Sound working on steam but not in game

I don't know much about linux, but I installed steam on my chromebook (acer 714) after adding linux ide, some i386 stuff, and updating to bookworm. I allowed mic access and installed cros-pulse-config.

The sound works for the videos in the steam store, but it doesn't work for among us, which is the game I want to play. I'm using proton 8 and PROTON_NO_ESYNC=1 PROTON_USE_WINED3D=1 %command% in the game launch options.

i have a decent understanding of how computers work and what a vm is, but I don't know linux at all.

Any ideas how I can get sound to work in among us? I'm guessing it could be a setting in steam, since sound works for the store, but there are no audio settings that I can find in the menu.

0 Comments
2024/10/22
20:03 UTC

3

Cant create the desktop shortcut for xampp

Hey there. My goal is to type a html page for things i want to be in html (not the topic there), but now i want it to be able to open into Chrome, on the real chromebook, and not the VM (then try to put it online). So I try things.

I've struggled for hours now with a guide I found on the web there : https://medium.com/@john.stamp/set-up-chromebook-for-web-development-with-a-build-in-linux-subsystem-crostini-65e946aa23

I've managed to adapt what I found on the guide to make it work on my VM. Now im stuclk there :

https://preview.redd.it/mir4e35yidvd1.png?width=2536&format=png&auto=webp&s=fd49f455254017b3a60d47f9874f1ad686f21889

at the point where i have to create the desktop shortcut. As you might see on the terminal, when i type things, nothing happens. Can someone explain why ?

Also, earlier I exit xampp (that you can see running in the background with a desktop interface), and I wan then totally unable to re-run in, I had to install it again. Can anyone explain why as well pls ?

10 Comments
2024/10/17
20:12 UTC

1

Give camera acess to tkinter apps

I am sorry if this is a copy or something but i have actually been searching for ages, in the end the most probable thing is that tkinter just does not have acess. Camera permissions in settings does not list tkinter as an app so im wondering if there is a setting or a command i can run to give acess to it.

Here is the error:

[ WARN:0@0.144] global cap_v4l.cpp:999 open VIDEOIO(V4L2:/dev/video0): can't open camera by index
[ERROR:0@0.144] global obsensor_uvc_stream_channel.cpp:158 getStreamChannelGroup Camera index out of range

the code is pretty long and convoluted but this is the main camera snippets:

from tkinter import *
import cv2 
from PIL import Image, ImageTk 
  
# Define a video capture object 
vid = cv2.VideoCapture(0) 
vid.set(3,300)
vid.set(4,300)

# Create a label and display it on app 
label_widget = Label(app) 
label_widget.pack() 

def open_camera(): 
  
    # Capture the video frame by frame 
    _, frame = vid.read() 
    print(frame)
  
    # Convert image from one color space to other 
    opencv_image = cv2.cvtColor(frame, cv2.COLOR_BGR2RGBA) 
  
    # Capture the latest frame and transform to image 
    captured_image = Image.fromarray(opencv_image) 
  
    # Convert captured image to photoimage 
    photo_image = ImageTk.PhotoImage(image=captured_image) 
  
    # Displaying photoimage in the label 
    label_widget.photo_image = photo_image 
  
    # Configure image in the label 
    label_widget.configure(image=photo_image) 
  
    # Repeat the same process after every 10 seconds 
    label_widget.after(10, open_camera) 

# Create a button to open the camera in GUI app 
button1 = Button(app, text="Open Camera", command=open_camera) 
button1.pack() 

All feedback is appreciated, Thanks!

4 Comments
2024/10/17
03:12 UTC

1

I've been rightfully redirected here from r/linux bc of rule 1

Hey there,

i know nothing about IT, programming, or linux (with a tuto, one day, i booted an old PC with ubu,to on a USB stick, felt good)

I bought a chromebook for work, bc my compagny worth a lot with google, anyway, cool to use, not the point

On that chromebook, there is an option to enable a linux environment, which i did, and... thats it. I dont know what to do with it. I'd love to at least make it say 'hello" but i cant even do that. It opens a web-like window that i can type things into and that it. I found out that with 'help" it shows me commands, that i dont understand, thats it

I couldnt find ressource, tuto, or i dont know where to start, to use it. I'd love to create a web page with that, it is very interesting. I found some ressource about debian / gnu / linux / penguin (i've been told thats the name of the linux environment), but that doent seem to apply there (https://www.debian.org/doc/manuals/debian-reference/ch01.fr.html#_console_basics)

I tried to make research but it is so vast and so complex that I really dont know where to start.

could you guys help me ? I'm really willing to learn but this is frustrating for i know nothing and cant find a way in.

2 Comments
2024/10/15
19:25 UTC

2

How to use-non English input methods on Linux Terminal

I installed some Linux apps through the Terminal such as ONLYOFFICE,(DEB file), LIBREOFFICE(DEB file), FREEOFFICE(DEB file) either by typing some commands or DEB files downloaded from Chrome browser and some other apps. But I cannot set the input methods of ChromeOS to work with my languages in Linux terminal. It works really well on Chrome browser, Files and Playstore. But it looks like that the input methods can't be changed and doesn't work in Linux apps. Could anyone tell me ow to use-non English input methods on Linux Terminal (Vietnamese Telex or VNI to be specific), please?

Update: After installing another additional package of LIBREOFFICE (sudo apt install -y libreoffice libreoffice-gtk3), now I can type Vietnamese correctly in LIBREOFFICE. Could you tell me how to do the same with ONLYOFFICE or FREEOFFICE, please?

1 Comment
2024/10/13
13:56 UTC

1

issue installing qcad on crostini

Hi Everybody, I am trying to install Qcad on the terminal of an asus chromebook, when launching I have this prompt and then it got stuck, what shall I do to fix it?

thanks in advance :)

QCAD version 3.31.1

21:10:17: Debug: loading plugins...

21:10:17: Debug: RPolygonPlugin::init

21:10:17: Debug: RProScriptsPlugin::init: trial

21:10:17: Debug: RProxiesPlugin::init: trial

21:10:17: Debug: RTracePlugin::init: trial

21:10:18: Debug: RDwgPlugin::init: trial

21:10:18: Debug: loading static plugins...

21:10:18: Debug: Renaming old unversioned config file from '/home/zumpkin/.config/QCAD/QCAD3.conf' to '/home/zumpkin/.config/QCAD/QCAD3_old.conf'

Warning: Failed to load client buffer integration: "wayland-egl"

Warning: Available client buffer integrations: ()

Warning: No shell integration named "xdg-shell" found

Warning: No shell integration named "xdg-shell-v6" found

Warning: No shell integration named "wl-shell" found

Warning: No shell integration named "ivi-shell" found

Warning: Loading shell integration failed.

Warning: Attempted to load the following shells ("xdg-shell", "xdg-shell-v6", "wl-shell", "ivi-shell")

0 Comments
2024/10/11
19:13 UTC

3

Transferring large files to/from Crostini causes issues.

I have a 1.5GB .tar.gz archive which I would like to move out of Crostini and into a different folder on my computer. However when transferring this file via the native Files app, it fails after a while and all Linux files stop showing up in the app, only reappearing after using "Shut down Linux" and opening the terminal again. I also tried sharing a folder with Linux and moving the file to there from the terminal, but it gives an "Input/output error" before completing.

4 Comments
2024/10/11
17:34 UTC

0

Linux Terminal on ChromeOS opens the settings page

I enabled Linux dev environment, the Terminal app icon/shortcut now opens the setting page, and from there I have to select Penguin to open the actual terminal.

Is this expected? this wasn't how it worked before, it launched terminal directly

6 Comments
2024/10/11
01:00 UTC

12

I installed a GUI using the linux terminal(LXDE)

10 Comments
2024/10/10
18:41 UTC

1

issue with chromeos flex update Version 129.0.6668.80 (Official Build) (64-bit)

I just installed this update (Version 129.0.6668.80 (Official Build) (64-bit)) on my chromeos flex laptop and now i am suddenly not able to run the terminal . Also all the the installed apps (lilke sublime) are not working anymore means they are just not opening ! It was working perfectly fine before the update . and i am gettig the error in terminal * look in image

please fix it ! i want to code

0 Comments
2024/10/09
14:12 UTC

2

this happened when installing windows: Unable to complete install: 'Failed to chown device /dev/urandom: Operation not permitted' Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/

1 Comment
2024/10/05
01:56 UTC

11

The "Multiple Crostini Containers" option has disappeared in the atest ChromeOS update (131.0.6752.0)

Hello,

Following today's update, the management of multiple Crostini containers has disappeared from both the flags and the Linux menu.

https://preview.redd.it/p0415cuy8tsd1.png?width=974&format=png&auto=webp&s=91fbabd155505c62e89f354adebab9a84bf5435e

From the crosh shell, I can list both, and from the terminal app, I can run the two containers I currently have, but I can no longer delete or add a new one. The button has vanished and there's no way to reactivate it.

https://preview.redd.it/a8ilq4829tsd1.png?width=442&format=png&auto=webp&s=9d435bddd6c15b0e0c2c2c1d3d696245d17ac0bf

https://preview.redd.it/kwm6chye9tsd1.png?width=870&format=png&auto=webp&s=487d86c1fe2d7bc2804e3a988e1acbfe96f1c026

https://preview.redd.it/qss0wgci9tsd1.png?width=952&format=png&auto=webp&s=27de07a26617ff9d885298172562e3a6763f8023

I'm on the dev channel, version 131.0.6752.0, without ChromeOS's developer mode enabled.

This button has dissapear:

https://preview.redd.it/0obwx093jtsd1.png?width=920&format=png&auto=webp&s=ea962b454f0f50ba31c984b757088c62e9daca17

Has anyone else experienced this? I wanted to add a new container and change the color of one of the existing ones (which I changed this morning), and the option has disappeared.
This morning, before updating, the button was there; it vanished after I updated about an hour ago.

19 Comments
2024/10/04
21:56 UTC

2

What are the differences between Crostini and Crouton?

4 Comments
2024/10/03
18:33 UTC

0

OpenGL version

I am trying to set up a pretty old laptop (HP Folio 9470m) for my kids to play Minecraft Java on. I've been using Linux Mint and its been working well, but I'd rather use ChromeOS Flex for more integrated user management. I was able to get that OS installed and updated to latest (128.0.6613.163), enable developer mode and build a bookworm VM, and enable GPU Crostini support. When I launch the game however, it complains about what I believe is the OpenGL version. "GLFW error 65543: GLX: Failed to create context: GLXBadFBConfig."

The output of glxinfo seems to indicate it only supports opengl 2.1.

@penguin:~$ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa/X.org (0x1af4)
    Device: virgl (Mesa Intel(R) HD Graphics 4000 (IVB GT2)) (0x1010)
    Version: 22.3.6
    Accelerated: yes
    Video memory: 0MB
    Unified memory: no
    Preferred profile: compat (0x2)
    Max core profile version: 0.0
    Max compat profile version: 2.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.0
OpenGL vendor string: Mesa/X.org
OpenGL renderer string: virgl (Mesa Intel(R) HD Graphics 4000 (IVB GT2))
OpenGL version string: 2.1 Mesa 22.3.6
OpenGL shading language version string: 1.20

OpenGL ES profile version string: OpenGL ES 3.0 Mesa 22.3.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00

As another test, I disabled Crostini GPU support. The game launched just fine, but of course is too laggy to play.

For reference, in linux mint on the same laptop I run glxinfo it shows OpenGL 4.2, and runs Minecraft java just fine.

name of display::0
display::0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: Intel (0x8086)
Device: Mesa Intel(R) HD Graphics 4000 (IVB GT2) (0x166)
Version: 23.2.1
Accelerated: yes
Video memory: 1536MB
Unified memory: yes
Preferred profile: core (0x1)
Max core profile version: 4.2
Max compat profile version: 4.2
Max GLES1 profile version: 1.1
Max GLES [23] profile version: 3.0
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 4000 (IVB GT2)
OpenGL core profile version string: 4.2 (Core Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2
OpenGL core profile shading language version string: 4.20
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.2 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1-22.04.2
OpenGL shading language version string: 4.20
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.0 Mesa 23.2.1-1ubuntu3.1~22.04.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00

So, is there anything I can do? Is the GPU driver and opengl version baked into the chromeos kernel? Or is it based on the debian VM kernel? Could using a different VM (e.g. arch linux, or custom compiled debian) give a different result? Do I have to hope that Google updates the driver at some point in the future? Or am I generally out of luck and should just go back to linux?

Thanks!

5 Comments
2024/10/03
03:23 UTC

3

Crostini backup fails

Quite often, when I try to back up from the ChromeOS menu, it fails with an unspecified error.

I can get it to work a lot of the time by shutting down, rebooting, and then running the backup before I run anything else.

This problem has existed over many ChromeOS versions.

Anyone found a solution?

3 Comments
2024/10/01
05:11 UTC

3

Using your USB key on crostini with chrome OS flex.

Hi, I wanted to know how I can use fedora media writer on my crostini and make my USB key appear so that I can boot it. I've tried many times, but the USB key doesn't appear on crostini, but it is visible in the chrome OS flex file manager. I've enabled USB device sharing in the settings but nothing works, I still can't boot my flash drive with crostini. Not only that, but I've already tried the “dd” method too, but the problem is that it's the key that doesn't appear. Thank you for your answer to this question, and let me know if you have also encountered the same problem.

1 Comment
2024/10/01
04:22 UTC

0

Cursor Stuck in Middle of Screen When Using Some Linux Games

Hi! I remember having this issue with another linux game I tried to play fullscreen under Crostini, and I didn't really look for or find a solution for it back then, but now I'm having the same issue with another game: Warsow. When launching the current Linux version of Warsow (downloaded from warsow[.]net) by extracting the folder executing the 'warsow.x86_64' binary, the same way I'd download and play it on my Linux PC, I am unable to do anything in the game's menu - when I move my mouse, the cursor stays in the middle of the screen (it'll flicker in the direction I moved my mouse in, but snap right back to the middle). The game's menu isn't really navigable with just keyboard input, so I'm unable to actually get in to play the game, but since a large part of the game's input is mouse-based, I think the cursor input issue would make it unplayable there too.

Does anyone know what might be causing this, or what a fix might be?

0 Comments
2024/09/30
20:29 UTC

1

jupyter notebooks and labs and getting google's colab-container to work

Edit2: Changed back to the install as per https://www.awsjunkie.com/install-jupyterlab-or-jupyter-notebook-in-windows-subsystem-for-linux-wsl2-ubuntu/

so a cd into project and then a source venv activate with a jupyter notebook will start a small virtual environment.

then https://medium.com/@dipan.saha/connect-google-colab-to-a-local-runtime-using-jupyter-348b7d05e3bb

pip install jupyter_http_over_ws

jupyter serverextension enable --py jupyter_http_over_ws

jupyter notebook --NotebookApp.allow_origin='https://colab.research.google.com' --port=8888 --NotebookApp.port_retries=0

from then on I can conect to the tiny virtual notebook environment from colab.

Works stably.

I can delete the enormous container.

I also can run the jupyterlab-desktop simultaneously.


0 Comments
2024/09/28
07:44 UTC

0

Does crostini work on a Dell 3100?

I’ve heard conflicting answers. Someone told me yes earlier, and now someone on reddit has told me no.

4 Comments
2024/09/25
12:10 UTC

1

Running kde desktop - mouse wheel/pad scroll not working, also blurry image

Hi fellow chromebook lovers :-)

Stock crostini debian/bookworm. Ran:

sudo apt install kde-full

then started KDE (the version that comes with bookworm, 5.somthing) with:

dbus-run-session startplasma-wayland

Then, if you wish you can press full screen. Runs very nice! A few problems:

  • Mouse wheel and mouse pad scrolling not working (left and right buttons are working properly)
  • The screen is blurry, unless I use 100% screen resolution in chrome os
  • Some apps that were started from KDE, not seen in the KDE task bar

Any thoughts?

Advanced question: is this session starting a nested wayland server, or running under xwayland?

Also has anyone tried running nested wayland servers like Weston or Mutter?

2 Comments
2024/09/24
10:37 UTC

Back To Top