Skip to content

Instantly share code, notes, and snippets.

@bzub
bzub / 20180819-crostini_sommelier_fix.md
Last active January 24, 2024 12:15
Fix Crostini Wayland/X (sommelier) service

If you can't get X11 or Wayland GUI Linux apps to start anymore on Chrome OS, try the following.

In the Terminal app, this will show the status of your systemd user services/units:

systemctl --user

If [email protected] and [email protected] show a failed status, the following worked for me:

sudo ln -s /opt/google/cros-containers/bin/sommelier.elf /usr/bin/
@leegao
leegao / Full.js
Created December 10, 2010 00:52
!(???) && Profit!!!
// Compress and add javascript: prefix, then save as a bookmarklet
function process(image){
h = image.height; w = image.width;
var buffer = document.createElement("canvas"); // Anonymous canvas
buffer.width = w;buffer.height=h;
var ct = buffer.getContext('2d');
ct.drawImage(image,0,0);
var data = ct.getImageData(0,0,w,h).data; // This may raise an exception for external images.
var pxs=2; // Height-Width of the pixel block