WeChat on Fedora

Finally found a way to do the install on Wine on Fedora — and that’s using Lutris. Lutris lets you install Windows games onto Linux and allows you to script the setup of the game environment to fit the game itself.

So I used it to download the WeChat binary, setup the environment (which involved downloading fonts via winetricks) and adding a registry hack. That seems to work now. Have added it to my app-installs playbook on Gitlab (https://gitlab.com/blenderfox/pixelbook-fedora-setup)

It’s not fully automated, it does still require you to run through the setup manually, and then quit both the WeChat application (so Lutris sees that the setup has exited) and Lutris before the playbook proceeds.

Installing Fedora on Pixelbook

This slightly lengthy article goes through my attempts at installing and setting up Fedora on my Pixelbook.

I previously had Ubuntu on there, modified and hacked using https://github.com/yusefnapora/pixelbook-linux.

However, as Ubuntu progressed on, it was clear this repo was not being maintained and updated and rapidly, stuff starting to fail as it required later versions of packages. Even the kernel was still on 4.4.x even now. I spent a long time trying to compile the kernel while trying to figure out the right options for a working kernel, with not much luck.

Putting in things like the “old-releases” repos helped keep things ticking over, but things were still breaking repeatedly, and the microphone kept breaking during calls due to the way the hacks were implemented.

The final straw came when the office decided to buy Apple M1 Macs for the developers (I refused to use one. My hate-hate relationship with Apple is well documented)

The decision to use M1 macs has now led to a problem whereby the docker images that are used are no longer compatible with the macbooks since they are arm64. The macs can use qemu emulation, but that is not perfect, giving weird errors when running the docker images under emulation. Leaving it to me, who is still using an amd64 machine to try to figure out multiarchtecture builds.

I was (and still am) reluctant to do the multiarch builds. Using multiarch builds would mean the devs are running a docker image that is not the same as that which is running on the test and production clusters and that in itself, means they are not developing on, or testing on an infrastructure that is representative of the test or production environments.

If the infrastructures were arm-based environments, sure, then that would be representative then, but not as it stands.

In fact, right now, if the developers build the docker image locally to test something, then pushed that to production, they would break production, as it runs on amd64 images.

I don’t think this was thought through carefully enough, to be honest.


But enough of the rant. We are where we are, and I need to try to bail out the situation.

My hacked Ubuntu would not support multiarch build no matter what I tried, but when I tried to use Fedora in a Qemu VM (virtualbox also wouldn’t work, since the virtualbox installer compiles kernel modules and that always failed with the custom kernel used by the hacked Ubuntu installation.)

So I decided to try to wipe the Ubuntu installation and start again from scratch, with Fedora.


Fedora 35 was the version I ended up using, and the latest at the time I started this activity.

Out of the box, it had native support for the touchpad, including two and three-finger scrolling via Unity 41. Two-finger scroll scrolls the active window. Three-finger scrolling up gives the window overview, and three-finger scrolling left or right switches workspaces.

Fedora by default uses btrfs. CloneZilla didn’t seem to play well with that so had to start again, but perhaps it was due to the MyChromebox BIOS being too old. Upgraded and that seemed to work better.


After CloneZilla’ing the initial install so I could rollback to that if everything fell over, I started setting up the installation.

First thing I did is visudo‘ed myself into the sudoers file, with a NOPASSWD param for passwordless sudo

Next I ran dnf update to update packages. There was about 1G of data to update and install.

Then I ran a CloneZilla to backup the laptop state at this point.


From this point, I started setting up the laptop. I found this repo on GitHub where the owner created a setup for Pixelbook https://github.com/jmontleon/pixelbook-fedora — similar to the one I used for setting up Ubuntu on the Pixelbook. The repo owner also appears to have compiled his own version of the kernel and has his own COPR repository.


After spending a week tinkering with the instructions and getting some bugs ironed out, audio finally worked.

I built an Ansible playbook to help with the instructions running. This was adapted and incorporated into the repo.

With audio now working, I CloneZilla’ed the laptop state again, to have a good state to rollback to.

I then copied my file backup from my external USB into the laptop and then CloneZilla’ed the state again


With the files copied, now it was time to get the apps installed. I built another Ansible playbook to help speed things up and it’s located here https://gitlab.com/blenderfox/pixelbook-fedora-setup/

The repo contains two playbooks one for doing the audio (it’s essentially the same one in the jmontleon repo) and the second for app installs.

Summary of apps I installed initially:


Three

I’ve been suffering from horrendously slow network speed with Three since August, and all my complaints have not been satisfactorily dealt with.

I took the complaint up to the Ombudsman and eventually was ruled against and so now I can either leave the network by paying the leaving penalty (though reduced) and returning the phone.

But I don’t even have my old Samsung anymore so that isn’t an option.

So now I’m stuck with the network for 2 years until I go out of contract again and can leave without penalty.

DON’T USE THREE.

Updates

It’s been a long time since I posted on here — my last post (before today’s posts) was July 17 when I had to self isolate. A lot has happened since then, so this post will be a bit of an update list


I had to take my dad into hospital for a prostrate operation (this was planned before I had to self-isolate) — he already had a PCR test and was cleared. My LFT was also clear, but I still had to self isolate. This was before the self-isolation changes happened. The operation was successful, but he needed to be held a few more days to see an ENT specialist due to them finding lumps in his throat. The concern was that they might be cancerous, but turns out it was just irritation so they gave him some Gaviscon to take after means and soothe the throat. Both my dad and I are prone to post-meal throat irritation so it might mean I might be subject to the same thing later in life.


I got a ticket after driving my dad to the hospital for taking a left turn when I was not supposed do, due to badly signposted roads. My appeal was rejected on the grounds I had paid the ticket. This is how the council screws you over — if you pay the fine to avoid the 100% charge, they will claim that admits guilt. If you don’t, they delay the response until after the 2-week window so you then have to pay the 100% charge.


I finally decided to upgrade my phone and went for a OnePlus 9 Pro. The phone is classed as a “Phablet” and much bigger than the Samsung Galaxy S5 I have been using for years:

The case on the left is for the OnePlus, the case on the right for my S5

I had problems activating the new SIM and eventually Three had to send me a new one, and soon after I got that new one, I got a message saying Three were going to be doing works on the mast in my area and ever since then I have had horrendously bad speeds at home. By bad, I mean speeds of < 1Mbps and even down to 0.2Mbps. Using 3G band sometimes helps, but only marginally.

I’ve taken my complaint up to the Ombudsman but Three are still refusing to do anything about it — even charging me to leave contract early.

I’ve been with Three many years but I will not be recommending them going forward. I will be checking other providers when my contract expires.


We’ve started to go back to the office. My team is doing three days a week in the office, and you pick which three days as long as there are a max of 8 people in the office (due to some office reorganisation, we only have 8 seats for the entire team).

Surprisingly many people have left jobs during and post lockdown (some might have been nudged due to the lockdown, and not just in my office, but generally.)


I won a Twitter completion by Curve for a swag bag. Just had to tweet them three images of their different adverts — all of which showed up on the same station, so that wasn’t too difficult.


Then we had the annoying as heck “Panic at the Pumps” causing shortages.

Driving past Alperton Sainsbury’s

This video from my dashcam shows the queue of traffic. This is the queue leading into the Alperton Sainsbury’s. I was there at around 5am and it took me 30 minutes to clear the queue even with less people in the queue. This queue will probably take 90 minutes to clear, assuming the fuel was not gone by the time they got to the front of the queue

Driving past Whetstone Esso

This video, also from my dashcam shows the queues that built up outside the petrol stations — this Esso I actually went into at 4:30am that morning and they were not open, even though there were staff in the shop (so maybe they were waiting for delivery?)

You’ll get people tooting impatiently and even people cutting the queue and then blocking the lane for the people behind (they must be luxury car drivers)


My house purchase has progressed and we have moved on and are now ready to exchange. However, one of the two sellers is unable to complete his purchase (he’s part of a chain and needs to complete his purchase before he can complete the sale on the current house).


Finally, I got a letter from Principia Law who are the ones trying to claim money back from the drunk driver who wrecked my previous car.

They want me to release my bank records for the period of time I had the hire car. But everyone I have discussed this with seems confused as to why this is required since the accident is a “no-fault” claim on my part, so they should not even need my bank details.

I asked them to call me today to discuss this. I may also speak to the office legal team for their thoughts.

Training in Quarantine – Day 316

Training in Quarantine – Day 316

Found out why I couldn’t backup my new machine — Windows 10 had BitLocker setup which meant CloneZilla couldn’t clone it. Ubuntu installation on computers running Windows and BitLocker turned on – Documentation – Ubuntu Community Hub told me how to remove it. But still had a few issues with the backing up, namely Clonezilla still reporting some filesystems being read-only.

Turns out Fast Startup was also enabled by default https://help.uaudio.com/hc/en-us/articles/213195423-How-To-Disable-Fast-Startup-in-Windows-10 for disabling it.

Trying to back up the machine before installing Ubuntu

Backup was fine, completed successfully, and was able to install Ubuntu

Benchmarked both Windows and Linux on 4K, and Linux performed a bit less, presumably due to the APIs being different

And it’s been another hot day, and people have been really tetchy today, lots of horn tooting and then, inevitably, this happened

The heat really does bring out the worst in people.

Training in Quarantine – Day 315

I’ve been slacking logging my walks lately, so apologies for that.

This was should have been logged yesterday. It was very hot, so much that I didn’t even need to worry about wearing a jacket or anything while walking, and perhaps I should have worn sunglasses, it was that bright.

In other news, my laptop seems like it’s on its way out so I have got a replacement and an upgrade, and spent Saturday trying to set it up but clonezilla seems to be having trouble registering the partition labels. I had already purchased a 2TB NVME so instead of cloning then restoring, I cross-device cloned directly, making the 2TB disk exactly the same as the 1TB, but with the space at the end of the disk which I will use for Ubuntu.

Then took the rest of the day downloading my games from Steam. Warframe and Stellaris are the main ones I’ve been downloading

Streaming also seems fine, with only a slight fps drop.

%d bloggers like this: