Showing posts with label howtos. Show all posts
Showing posts with label howtos. Show all posts

Monday, 10 June 2024

How To Install Mkchromecast on Ubuntu and Ubuntu based Distros

Mkchromecast is a way to stream any sound from your desktop to your Chromecasts, which to me makes it a lot more useful than the Android app for streaming, particularly for streaming offline music to the no longer made Chromecast Audios. Just like Google Home, you can stream to just one or to a Home Group. As per my previous article, I was using Mkchromecast on Manjaro until recent updates killed it, so I switched that particular laptop to KDE Neon, which is my favourite distro. Anyway, here's how to install Mkchromecast: 


Firstly, install git, and then download Mkchromecast from git: 

    sudo apt install git

    git clone https://github.com/muammar/mkchromecast.git 


Then, switch to the mkchromecast directory and install the dependencies:

    cd mkchromecast

    pip install -r requirements.txt


Then install Mkchromecast

You can install from Discover or with apt (sudo apt install mkchromecast) and now it should work fine. I usually use mkchromecast -s to scan for devices and choose my Home group to stream all simultaneously. It's a shame Google discontinued the Chromecast Audio because it works pretty well, and is much cheaper than expensive streaming solutions like Sonus.





Sunday, 17 September 2023

Installing a full Linux distro on my Acer Chromebook 14 CB-431

 So I was having trouble with my Chromebook. When editing photos with Google Photos it would slow down then freeze. After testing in another user account with no extensions or add-ons, it still had the same issue. I then went last resort and powerwashed it. This is simple and quick way of wiping back to factory settings....and then I decided to install a full Linux distro on it.... 


My Acer Chromebook 14 has been End of life for awhile now, (it was released in 2016) which means no more fixes for issues, and no new features. I'd already removed the hardware write protection screw inside the base in preparation for possibly putting Linux on it awhile ago, I had just put off doing it until now. Luckily there's very useful guides on the Arch Linux Wiki on how to put Linux on a Chromebook. I used the guide for my specific model, here.  It is a CB3-431, 4GB RAM, 1080P screen version (Acer also did a 2GB, 720p screen version). 



There's a couple of different options on the Arch Wiki, and I chose the Coreboot route. Linux only, no dual boot. After installing the custom bootloader, I went ahead with installing Linux as normal, wiping all the internal 32GB storage. I used my favourite distro, KDE Neon, which is basically Kubuntu LTS but with the latest version of KDE. I wrote the ISO to a USB stick using OpenSuse Image Writer, which worked perfectly, it's the first time I've ever used it. 


After a normal uneventful install, KDE Neon used just under half of the Acer's 32GB internal storage. It still boots pretty quickly. The main thing I noticed after logging in for the first time, was the display was on full brightness and of course in ChromeOS the Brightness keys are on what would be the normal F keys in Linux. You can use change shortcuts in KDE settings, and create custom ones. For Brightness Up and Down I used Ctrl + F6 and F7. For for the Volume keys I used Ctrl + Shift + F8 and F9  (which were the Volume keys in ChromeOS). The Fullscreen key is F4 so I added Ctrl and Shift for that too. There's a smaller number of F keys to standard so I had to choose another shortcut key for my favourite drop-down terminal emulator, Yakuake. As expected, the Google/Search key becomes the Super Key aka The "Windows key".  


Some of the fixes on the Arch wiki were not needed, such as those for the sound and touchpad. The trackpad seems to work fine, though right clicking only works with the default setting, clicking on the bottom right corner of the trackpad, instead of the two finger clicks that I am used to. Just a case of getting used to that, along with the new keyboard shortcuts. 

The sound works out the box and one advantage of running Linux on this Chromebook is you can increase the Volume beyond 100%, which you cannot do on ChromeOS, as the audio was far too quiet, in headphones or from the speakers on this machine. I used to have to use a Chrome extension called Volume Master to boost the volume on ChromeOS, but its downside was that YouTube couldn't run fullscreen while it was in use. Although having said that, sometimes after boosting the audio for some time, it sometimes goes to just playing a tone.  Another option I can now use is a USB audio interface, like my M-Audio M-Track Solo, which is something else I couldn't use with ChromeOS. 

After all the main tinkering, it was just a case of installing all my usual favourite apps, such as VLC, Audacious, Cantata, FIlezilla etc. And finally, bringing back the Leave option in the Desktop right click menu and removing the silly offline updates feature.  Performance is fairly snappy on first impression, considering it only has 4GB RAM. Lm-sensors reports the normal temperatures as 45 Deg C at idle, rising to just under 50 under heavier loads. Suspend and Resume work fine and battery life doesn't seem to be impacted. It does struggle with 1080P YouTube in Chrome, but it plays a little bit smoother in Firefox. I'm not using Latte Dock as I would usually, because that uses more resources than it should. KDE isn't as heavy as it used to be but I might have to install a distro with a lighter or minimal desktop environment.

 I've been impressed with the full 1080P screen on the Acer ever since I first got it, and KDE looks fantastic on it. I have always preferred to edit photos in Google Photos on the Chromebook instead of on the dull screen on my Thinkpad T430s, the colours are more accurate.  


So far, I am pleased with full Linux on my Acer 14, and I am not missing running ChromeOS yet. It can't run Android apps the same way as ChromeOS did, but that's something I rarely did. They often felt a bit awkward on the desktop. It boots pretty fast, getting to the logon screen not much slower than ChromeOS did. I only wish it had a backlit keyboard, but then at the price it was originally that was to be expected. Installing Linux has basically extended the life of this Chromebook and I'll keep using Linux on it until the device dies, which will probably be whenever the 32GB eMMC onboard storage is dies. It is soldered to the main board so it's not really upgradeable/replaceable. Until then, this Acer will get plenty of use, probably mostly YouTube and Google Photos when I am away from my main desktop. I just have to decide whether to stick with KDE Neon or switch to a lighter weight distro.  

Tuesday, 22 April 2014

How To Add a Battery Applet To LXLE

I noticed after some use of the excellent LXLE distro on my Dell D430, that there was no battery monitor installed by default. There is an ASCII type monitor in the menu but not an applet, so I did a bit of Googling and found this little how-to for LXDE in Lubuntu/Mint. I had to modify that a little. I shall reproduce the entire method here anyway in case that page disappears.

Install fdpowermon in the same way with:

sudo apt-get install fdpowermon

Next up it's slightly different since the sessions are different in LXLE. There are 5 sessions: G2-Paradigm, Netbook-Paradigm, OSX-Paradigm, Unity-Paradigm and XP-Paradigm so replace as appropriate.

gksu gedit /etc/xdg/lxsession/XP-Paradigm/autostart 

Then append @fdpowermon as in the original how-to like so:







Save the file and exit, then logout and login and you'll now have a battery monitor applet, and we're done!






Tuesday, 26 February 2013

Linux on a Panasonic Toughbook CF-27

Having been given a Toughbook CF-27, I decided to see if I could run Linux on it. As you can see from the specs below, it's quite low powered but it's very solidly built and also splash proof. It's also completely silent due to the lack of any fans and has a very nice, bright, screen. I was hoping it would be the touchscreen version, but alas it isn't.



Specifications









Panasonic Toughbook CF-27 (Mark 2)
Model no. CF-27 EJ6K3EE
CPU: 300Mhz Mobile Pentium II
RAM: 128MB 100Mhz SODIMM
Hard drive: Toshiba MK8113MAT 6.4GB (now 30GB)
Floppy (Interchangable)
Screen: 12.1 inches (None-touchscreen version)
Connectivity: Connexant 56k modem,
2x PCMCIA slots
1x USB port.
Sound: Yamaha YMF-744B
Graphics: Neomagic MagicGraph 256AV


OS Installation and Customisation


As the Bios has a password on it, it won't boot from anything but the hard drive, so I had to take the hard drive out and use another PC to install the OS. I chose Debian Lenny as it's well supported and a little more lightweight than the latest versions of the *buntu family. But first I had to take the hard drive out of it's metal caddy, which was easier than I thought. An access plate on the bottom of the laptop is only held in with two latches, and the caddy comes out quite easily. Removing the drive was easier than other Toughbook models.

Notice the sim-card slot, it also has an extendible flexible antenna. (click for larger images)



























I then attached the hard drive to a mini-IDE to IDE adaptor and installed it temporarily in my test box (AMD socket A/Via board, 1.6Ghz). I installed the XFCE and Gnome desktops (type desktop=xfce at the boot prompt for an XFCE-only system), build-essential, lm-sensors, fusesmb and a few other bits. Once finished, I shutdown, removed the drive and reinstalled it back in the Toughbook. I'm pretty sure Windows would have had a fit at this point but Debian booted quite happily, despite the big difference in hardware. I downloaded Google Chrome to replace Epiphany and Iceweasel (aka Firefox 3.0.6). I haven't always got along with Chrome but it's quite handy for low spec PCs since it's fairly lightweight and I like the built-in browser sync for bookmarks and themes using your Google account. Of course there's always the other option of Midori. Due to the lack of an ethernet port or wireless (which was an option), I'm using an Edimax PCMCIA wireless card, which worked once I downloaded the Ralink firmware. I installed the deb package with 'dpkg -i firmware-ralink_0.14+lenny2_all.deb' as root, as the Gdebi tool isn't installed by default.



























As I don't plan on storing much on this laptop, I decided to keep the original 6.4GB hard drive but I've seen some with 30GB or 40GB drives. I may upgrade it later. My next job is getting the onboard sound working. I've had trouble before with Yamaha sound cards on Toshiba laptops. I'll update this post once i get it sorted!

Update:

Fixed the sound problem thanks to this bug report, that includes the solution. Debian doesn't include the alsa-firmware package anymore so I had to download it from here and compile it ("./configure" and "make" in the alsa-firmware directory once you've extracted it) and copy the firmware files (.fw) to /lib/firmware/yamaha (need to create it). Rebooted and now it works!

Update 2
Added the Debian backports repository and installed the later version of Pidgin so I can now chat on MSN on it.

Update 3
I've now upgraded the RAM to 192MB and using the Gnome desktop as i had problems with disappearing panels in XFCE, plus I generally prefer it.

Update 4
I've just upgraded the hard drive to a 30GB Toshiba drive (often cited as the maximum this can take which is wrong, the maximum is 120GB, limited by the age of the controller) that came from an old defunct laptop and also served in my Compaq N400C at one time. It already had Debian installed, booted straight away and bizarrely has no problems with the onboard sound.

Update 5
I have recently upgraded to Debian Squeeze without any problems, although it did take awhile!
Enhanced by Zemanta

Saturday, 24 July 2010

Make Root's Apps Fit into Your Gnome Desktop

Having found a nice combination of icons and themes for Gnome that I like, it's mildly annoying when apps that run as root (such as Synaptic) look ugly because they use a very plain theme. I've been looking for this for awhile and stumbled across this solution by the user "FuturePilot" in an old thread in the Ubuntu forums:

sudo ln -s /home/.themes /root/.themes
sudo ln -s /home/.icons /root/.icons

This is a nice simple solution to the problem, so now Synaptic fits in with my desktop. My theme consists of Bluman-Clearlooks controls, Clearlooks window borders, and Reblumanity icons.