Tag Archives: ubuntu
Package Webpages as Apps with Nativefier
Create .desktop files for Ubuntu
.desktop
files lately to make launching apps easier, I thought I’d write myself a quick reminder of what I did and how it works. If it’s useful to you too, then great! I have one application in a weird path, and another that needs a specific environment variable set for it to work. Continue reading Sharing Screen and Camera from Android to Linux
Add a Screenshot Button to Streamdeck with Golang
OBS Studio, Ubuntu 20.04 and a Wacom Tablet
QT_XCB_TABLET_LEGACY_COORDINATES=1 obs
It does, and I never want to do the research for this again, so I’m posting it here and hoping I remember to look here when it happens!
The `python-is-python2` package on Ubuntu Focal Fossa
$ sudo apt install python
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'python-is-python2' instead of 'python'
Um, what?
It turns out that since the python
package has historically been Python 2, and there’s a separate python3
package (and the commands match the package names, also pip3
etc), that default has remained in an attempt to break things for fewer people. Which is nice, but how do I get current, stable python?
sudo apt install python-is-python3
There’s a sister package called python-is-python3
and installing that makes my python
command use version 3 as I expected! It’s a fairly good solution to the problem but it took me a moment to work out how to install it so I thought I’d write it down for next time! Hope it helps you too :)
Ruby for non-Rubyists with Snap
I’ve been using the Ruby Snap on Ubuntu for a while now, and I think it’s a bit better? I’ve referred to my notes every time I’ve done it though so I thought I had better put them somewhere I’ll find them even when I’m using a new notebook :)
What versions are available?
snap info ruby
will show your choices of versions to install. I usually just need a major.minor
version combination so I set the version with:
sudo snap switch ruby --channel=2.5/stable
sudo snap refresh
If you see a lot of “extension not built” anger then try this: ruby.gem pristine --extensions
Using Ruby and Gem and Bundle
The snap actually ships with all these commands available as separate commands:
ruby
(just check this is the right one! Should be the same as/snap/bin/ruby
– if it’s not check what order things are in your$PATH
)ruby.gem
is the gem executable for this snap rubyruby.bundle
is the bundler gem for this snap ruby (I use this one the most since my ruby usage is basicallybundle exec jekyll serve
most of the time!)
Beware that the 2.5 channel has bundler v2 and the 2.6 channel has v1, I have no idea why but it’s tripped me up at least four times now
Windows removed my grub menu
My work machine is a Windows PC, with dual boot to the Ubuntu partition that I actually use. Sometimes, when booting Windows, it “repairs” its disks and removes my grub menu, booting straight into Windows without showing me the grub menu.
To fix this: interrupt the startup, choose the boot device and pick the Ubuntu partition from the list.
Once booted, you can boot-repair
to sort out grub – I also travel with a boot disk, just in case!