Wednesday, September 19, 2018

Install Zorin on Old Mac Mini (late 2009)

This is the last installation for old Mac Mini (late 2009). The last Linux distribution we tested is Zorin. Zorin works fine, however, we encounter some bluetooth redirection issue and intermittent Wifi connection issue.




Preparing USB Drive

Since Zorin is based on Ubuntu and Debian, we can prepare the USB drive using the Ubuntu USB drive tutorial here.


Installation of Zorin

Fir we bootup the USB drive using the option key (alt key). Then we will be asked to try or install Zorin. Select Try Zorin.

The Zorin desktop will appear as follows:


You can try testing with Zorin to see if it fits your taste. to install Zorin, click on the app icon at the top left corner of the desktop.


The welcome screen will appear as above. Click Continue.


Click both option on the screen above to install Zorin and update at the same time. Click Continue when done.


On the screen above, we are asked to confirm if we want to wipe the disk for fresh installation. We also have the option to configure LVM volume or encrypt the HDD. Click Install Now when ready.


A pop-up will appear asking us to confirm the drive that we are wiping. Check carefully to confirm if proper disk drive is selected. Click Continue to confirm.


Next, we need to provide our time zone. Select the appropriate time zone and click Continue.


Select the keyboard layout of your choice and click Continue.


Next, we need to setup the default user and set host name. Click Continue when done. The system will proceed with installation of the system.


Once the installation is completed, we received a pop-up asking us to reboot the system. You can reboot the system or continue testing the USB version. Reboot the system when ready.



Post Installation Setup

System Update

For system update, we can use the software app or use the apt-get upgrade command.

sudo apt-get update
sudo apt-get upgrade


Software Installation

We use software app to install Vlc Player. Please note that exfat file system  driver was not installed by default. To install exfat file system use the command below:

sudo apt-get install exfat-fuse exfat-utils -y 


Install Wifi Driver

The defaulkt driver that was installed by the system could not work. To install the wifi driver use the command below:


# Remove previously installed driver which did not work
sudo apt-get remove --purge bcmwl-kernel-source
# Install working driver
sudo apt-get install firmware-b43-installer b43-fwcutter

Modify the blacklist.conf file  by adding comment on b43 driver

sudo nano /etc/modprobe.d/blacklist.conf
modprobe b43

After we run modprobe, we should be able to detect the wifi. Please check if wifi is detected. If wifi is detected we can reboot the system to see the wifi can still be detected after reboot. 

Note: Please note that we encounter intermittent wifi connection issue similar to the Ubuntu and Linux Mint setup.



Fixing Bluetooth Audio Issue

We also encounter Bluetooth audio issue when we could not direct the audio to our bluetooth headset. We think this is a bug that may be addressed by the developers. So please check if the issue still persist. 

Originally, we thought that this issue is due to lack of audio control. We can always install PulseAudio Control app to resolved the issue. However, after installing PulseAudio control, we still could not direct our bluetooth device to A2DP sink.  On further research, we learned that it is due to GDM capturing A2DP sink during login session.

The workaround is as follows:

# Install PulseAudio Control
sudo apt-get install pulseaudio pulseaudio-module-bluetooth pavucontrol

In order to prevent gdm3 from capturing the A2DP sink on session start, we need to create a configuration file under /var/lib/gdm3/.config/pulse/client.conf

sudo nano /var/lib/gdm3/.config/pulse/client.conf

Set the following in the configuration file:

autospawn = no
daemon-binary = /bin/true

Next, we need to change the ownership of the configuration file to dgm group as shown below:

chown gdm:gdm /var/lib/gdm3/.config/pulse/client.conf

Reboot the system, then use PulseAudio control app to direct bluetooth to A2DP sink. 


Conclusion

Other than the minor issue above, the system run very well.

Related Post

Please also check out the main post on re-purposing old Mac Mini.  This post also include the installation of Ubuntu on Mac Mini. We have also include hardware specification and other consideration in the main post.

Please also check out the summary result of testing various Linux distribution on Mac Mini (late 2009).
Install Linux on Mac Mini (late 2009) Result Summary


***































Monday, September 17, 2018

Install Solus on Old Mac Mini (late 2009)

This is part of a series of post on installing various Linux distribution on old Mac Mini 2009. Surprisingly, Solus is one of the successful installation. The system could not installed the wifi driver but we managed to work out the solution on building the driver. 



Preparing USB Drive

Solus suggested we use Etcher to burn the image to USB. We manage to burn the iso image using Etcher.

Booting Up Solus

As usual, boot up the USB driver using option key (alt key). Select to try Solus and the system will boot into Solus.


Installing Solus

On the desktop double click Install OS as shown below:


Once the installation wizard is brought up, the following screen appear:


Select the language of your choice as shown below.


Click Next to continue.


This screen allows the system to auto-detect your location. Usually, we skip this part. Click Next to continue.


Select a keyboard layout and click Next.


Select the desire time zone and click Next.


Over here, we set to erase entire disk and install a fresh copy of the OS. Click Next.


We usually do not use LVM volume. Leave it blank and click Next.


We can set the host name and also set the boot loader. For Mac Mini use ESP.


Create the default user with user name and password. Click Next when done.


This screen will show what you have configured. Double check the user name and click Next when ready.


The wizard will show the details of your setup. Confirm everything and click Install when ready.


This pop-up will confirm with the installation. Click Ok when ready.


The system will proceed to install and configure the system. It will take quite a while. Once the installation is completed, the following screen appear.


Restart the system when ready.

Post Installation Setup

System Update

We can use the software app to update the system. Alternatively, we can use the following update command:

sudo eopkg upgrade


Install SSH Server

To install SSH server use the command below:

sudo eopkg install openssh-server

To start the service use the command below:

sudo systemctl start sshd

To activate the service on boot use the command below:

sudo systemctl enable sshd


Install RealVNC Server

To install RealVNC, download the generic package from RealVNC website. Unzipped and extract the package into a folder. Then, navigate into the folder using the command:

cd VNC-Server-6.3.1-Linux-x64-ANY/VNC-Server-6.3.1-Linux-x64

To install RealVNC use the following command:

sudo ./vncinstall

To start and enabled service on boot, use the command below:

sudo systemctl start vncserver-x11-serviced.service
sudo systemctl enable vncserver-x11-serviced.service

Please note that if we configure the license from the wizard, the system could not complete the registration due to insufficient privilege. Apparently, the wizard could not ask for a privilege password. Use the following command to run the wizard as an administrator

sudo vnclicensewiz


Install Broadcom Wifi Driver

As mentioned at the top of the post, Solus OS did not provide old Broadcom wifi driver, we have to build ourselves. We use the build solution provide the following website. 

To build the driver, first we need to install all the necessary packages. Install the following packages:

sudo eopkg it -c system.devel -y
sudo eopkg it linux-current-headers -y
sudo eopkg it linux-lts-headers -y

Next, we need to download and install the b43-fwcutter. Please note that it is better to use root privilege for the task:

cd Downloads
sudo su
wget http://bues.ch/b43/fwcutter/b43-fwcutter-018.tar.bz2 http://bues.ch/b43/fwcutter/b43-fwcutter-018.tar.bz2.asc
# Extract the fwcutter files
tar xjf b43-fwcutter-018.tar.bz2
cd b43-fwcutter-018
# Use make to build fwcutter
make
make install
cd ..

Reboot the system when done.

After the system rebooted, we can download the drivers:

cd Downloads
sudo su
export FIRMWARE_INSTALL_DIR="/lib/firmware"
wget http://www.lwfinger.com/b43-firmware/broadcom-wl-5.100.138.tar.bz2
tar xjf broadcom-wl-5.100.138.tar.bz2
b43-fwcutter -w "$FIRMWARE_INSTALL_DIR" broadcom-wl-5.100.138/linux/wl_apsta.o

Reboot the system again.

Finally, to activate the wifi driver, use the command below:

modprobe b43

To enable and activate the driver on boot, use the command below: 

echo "b43" | sudo tee /etc/modules-load.d/b43.conf

Conclusion

Once we fixed the driver issue, the system is actually pretty stable. Additional software can be installed from the software installation app.


Related Post

Please also check out the main post on re-purposing old Mac Mini.  This post also include the installation of Ubuntu on Mac Mini. We have also include hardware specification and other consideration in the main post.

Please also check out the summary result of testing various Linux distribution on Mac Mini (late 2009).
Install Linux on Mac Mini (late 2009) Result Summary


***

Friday, September 14, 2018

Install RealVNC on MX Linux

We encounter problem when installing RealVNC server on MX Linux. In this post, we are going to highlight the issue we encounter and our workaround solution.


Background

First, we would like to introduce some background on MX Linux. MX Linux still believes in System V to manage software services. While most distribution have migrated to systemd, MX Linux still relies on init script to run services. However, MX Linux still install systemd in the OS but it disable systemd by default.


Issue

We encounter issue when we download and install RealVNC server. The software packages installed successfully, but the software configure the server services in systemd file. This is because the software packages detects that systemd was installed and therefore, it assumes that systemd is active. We could not force the software to configured in init script.


Workaround Solution

We manage to get the software to generate the init script by removing systemd from MX Linux. This action also breaks the system. We use a virtual machine to generate the init script and destroy the virtual machine.


Download the service you want or you can download both files.  Place these files under /etc/init.d/.

To start RealVNC services use the following command:

/etc/init.d/vncserver-x11-serviced start

To enable service when system bboots use the command below:

update-rc.d vncserver-x11-serviced defaults

Please refer to RealVNC site for further information.

***

Thursday, September 13, 2018

Introduction to Docker Series

We have written a series of posts introducing the basics of docker. We focus on working with docker and creating image. We did not cover scalable deployment using docker.

Please refer to the following post:
Introduction to Docker - Day 1
Introduction to Docker - Day 2
Introduction to Docker - Day 3
Introduction to Docker - Day 4
Introduction to Docker Day 5
Introduction to Docker Day 6 (Final)


***

Wednesday, September 12, 2018

Install MX Linux on Mac Mini (late 2009)

We manage to install MX Linux successfully without any modification on the drivers. After installation, we just need to add our desired software.

The only concern is that MX Linux uses System V instead of Systemd. While MX uses init.d to kick start servcies, systemd was installed but disabled in the background. This cause confusion when we install some software packages. These software packages detects systemd was installed and configure the software services using systemd file. This scenario happened when we try to installed RealVNC server. There're workaround to resolved this issue.


Preparing USB

We download MX Linux iso image from the website. MX Linux is a variant of Debian. Once we downloaded the image, we burn the iso image to USB using Etcher. For those who need a tutorial for burning image to USB please refer to the Ubuntu tutorial.


Installing MX Linux

Once we booted into the live image, we can test the OS without installing the system. To install MX, double click the installation icon on the top left corner.


Once the installation wizard is launched, the following screen will appear:


Click Next to proceed.


Select the target drive in 1a. We can use partition tools to remove old partition if we are using an existing drive.

For 1c, we choose to auto-install using entire disk. Click Next when done.


A pop-up will ask if it is ok to format the entire disk. Click Yes.


The system will start installing files. Once the files are copied and installed, the following screen will appear.


The system ask us to select the boot method. Select ESP for Mac Mini system. Click Next.


A pop-up will appear asking to confirm the location of  bootloader. Click Yes.


Next, we are asked to select our host name. Enter your preferred computer name. Click Next when ready.


The screen above allow us to set the keyboard layout, time format, time zone and we can also enable or disable services. Click Next when ready.


For this screen we set default user and password including the root password. Click Next when done.


This screen appear after the configuration, click Finish.


A pop-up appear for us to confirm reboot. Reboot the system when ready.


Post Installation Setup

System Update

To perform system update, we can use the software app or use the following command:

sudo apt update
sudo apt-get upgrade

Please note that software upgrade could not be perform from the command line. Use the software update app instead.


Installing Chrome

Google Chrome website and download Chrome. Next, open a terminal and navigate to where the downloaded package is located. Use the command:

sudo apt install ./<google-chrome-packages.deb>


Installing OpenSSH Server

To setup SSH server, use the following command to configure and install OpenSSH:

sudo apt-get install openssh-server




System V vs Systemd

Systemd was installed in MX Linux but it was disabled by default. MX Linux still reply on System V to manage software services. This does not create much problem except that some software packages created the systemd file instead of init script.

We can boot into MX Linux with systemd enabled by choosing an image with systemd enabled from the boot loader. However, MX Linux with systemd is not quite stable and it hangs a  few time.


Install RealVNC

We have a problem when installing RealVNC. Please refer to our other post for work around solution.


Related Post

Please also check out the main post on re-purposing old Mac Mini.  This post also include the installation of Ubuntu on Mac Mini. We have also include hardware specification and other consideration in the main post.

Please also check out the summary result of testing various Linux distribution on Mac Mini (late 2009).
Install Linux on Mac Mini (late 2009) Result Summary


***

Tuesday, September 11, 2018

Install Antergos on Virtual Machine

We do not have our luck when installing Antergos on old Mac Mini (late 2009). Same as other Arch Linux system, the system keeps having soft lock and hangs. While we manage to stabilized the system after upgrading the video driver and kernel in Manjaro. We could not perform such upgrade in Antergos. So we decided to test Antergos using Virtual Box.


The main advantage of Antergos is that we can use the same iso image to install different desktop environment. 

Preparing USB or ISO Image

If you are going to install on a physical machine, you can burn the iso image to an USB drive using command dd. For virtual machine, we just need to attached the iso image to the virtual CD-ROM.


Preparing Virtual Machine

To install Antergos into virtual machine, please make sure that we have a minimum of 10GB virtual HDD space. It is best to set the virtual HDD size to at least 20GB. Otherwise installation will failed.

Installing Antergos

Once we boot into the iso image, we are given a choice to start installation or boot into the live image. Usually, we select to boot into live image. Once the system is loaded, the following screen will appear.


Select Install It.


Select the language and click >.


This screen will make sure that we have all the necessary hardware requirement before we can proceed with the installation. Click >.


This screen allows us to set locale using our location information. Click >.


Next select the time zone. Click >.


Over here, we choose the keyboard type. Click >.


This screen allow us to select the desktop environment of our choice. We choose Deepin instead of default Gnome. Click > when ready.


Click on the lower left corner to show advanced features. After that select the software you want. The screen above and the screen below are our choice of software packages. 



Click > after you have selected the software.


This screen allow us to manage the package mirrors. Usually we leave it as default. Click > when done.


This screen allows us to choose to install the OS by erasing the entire HDD or we can install the OS alongside other OS. Click >.


On this screen we got to select the HDD. Click > when done.


We can confirm installation summary before we begin installation.


On this screen we set the host name and the default username. Click >. The installation will proceed. 


Once installation is completed. we are given a notice to reboot the system. Reboot the system when ready.

Post Installation

As usual, post installation involves in updating the system and installing the desired software.


Related Post

Please also check out the main post on re-purposing old Mac Mini.  This post also include the installation of Ubuntu on Mac Mini. We have also include hardware specification and other consideration in the main post.

Please also check out the summary result of testing various Linux distribution on Mac Mini (late 2009).
Install Linux on Mac Mini (late 2009) Result Summary



***