• Archlinux setup Minikube using KVM

    Kubernete is a system that simplify the deployment of containerized application by providing support for deployment, orchestration, management and scalability of application. This is an open source project, which was borned out of google lab and was given to the open source community. Kubernete has all the feature required for high availability production system, which is great, but what about developer… Welcome to minikube a tool that allow you to run a single node kubernete on your development workstation inside a VM. Minikube allow you to run like in production using any host OS that you use for your development, Windows, MacOs or Linux. If you are using windows they are a nice article from Sacha that explain how to install and setup minikube on Windows. My development setup today is 100% on linux using arch linux as the base OS. I will explain in this article the step required to setup my minikube on ArchLinux. As I faced some issue on a way, this could help. MiniKube Installation Why KVM ? Why am I using KVM ? This is not the default driver for minikube. They are a lot of option of driver to use depending on the OS...

  • CoreClr problem with ICU dependency on Linux

    This post follows the previous article about building .Net CoreClr on ArchLinux. The instruction that are in that post show you how to install the dependency for ArchLinux, however they are still a problem about building mscorelib.dll on Archlinux. I will summarise the problem, how I investigated the root cause and some solution that I’m looking at to merge back to the CoreClr github repository later. The problem The build process of the .Net CoreClr is mainly building some C++ native library (like JIT, PAL) which are doing the translation of IL code to machine code and all the platform abstraction layer. The last build step is building mscorelib.dll which is the base library of .Net. However this is failing with the below error Restoring BuildTools... Raising file open limit - otherwise Mac build may fail ulimit -n 2048 .NET CLI will be downloaded from https://dotnetcli.blob.core.windows.net/dotnet/beta/Binaries/1.0.0-beta-002173/dotnet-dev-ubuntu-x64.1.0.0-beta-002173.tar.gz Locating /home/david/git/coreclr/Tools/1.0.25-prerelease-00308-04/project.json to see if we already downloaded .NET CLI tools... /home/david/git/coreclr/Tools/1.0.25-prerelease-00308-04/project.json not found. Proceeding to download .NET CLI tools. curl -sSL --create-dirs -o /home/david/git/coreclr/Tools/dotnetcli/dotnet.tar https://dotnetcli.blob.core.windows.net/dotnet/beta/Binaries/1.0.0-beta-002173/dotnet-dev-ubuntu-x64.1.0.0-beta-002173.tar.gz Unsupported Linux distribution 'arch' detected. Downloading ubuntu-x64 tools. Failed to initialize CoreCLR, HRESULT: 0x80131500 Failed to initialize CoreCLR, HRESULT: 0x80131500 chmod: cannot access '/home/david/git/coreclr/Tools/corerun': No such file or...

  • Building CoreCRL on ArchLinux

    In this post I will show you how to build the open source project .Net CoreClr to Archlinux. This is not a distribution that is supported by default, however the build is working following some simple step. WARNING: You can only build the Coreclr today on Linux for the following cpu Intel x64, Arm32 and Arm64. Because the laptop that I’m using is a 32 bits CPU, I choose to build a 64 bits VM on DigitalOcean to do all this development. Setting up the Arch Linux VM on DigitalOcean will be in another article. You need as well to ensure that your system (virtual or physical) has at least 1GB of RAM. This is a requirement to build the CoreCRL. Package requirement The CoreCRL wiki has a page that give you the instruction about about the How to Build CoreCRL on Linux. This is great, however the list of package are not matching one for one with the ArchLinux package naned. Package Manager Pacman doesn’t contain all the required package that we need so we need to have another package manager that allow to install non official package. In my case I choose ‘yaourt’. The instruction to install ‘yaourt’...

  • Archlinux Setup X

    Now we have a base installation of Linux, however we are still missing one important component. The Windows manager. Archlinux let you choose the Windows Manager and display manager you want to install on your machine. The ones I chose are : Windows Manager : xmonad Display Manager : lightdm The reason I chose the above is that they are enough light to run on this machine and allow to control everything using the keyboard only. Windows Manager vs Display Manager Before starting the installation I want to summarize my understanding about the difference between Windows Manager and the Display Manager. One of the best answer are from the following stackoverflow question Display Manager A login manager is a synonym. This is the first X program run by the system if the system (not the user) is starting X and allows you to log on to the local system, or network systems. Windows Manager A window manager controls the placement and decoration of windows. That is, the window border and controls are the decoration. Some of these are stand alone (WindowMaker, sawfish, fvwm, etc). Some depend on an accompanying desktop environment. Installing xmonad xmonad is a tilling windows manager. This...

  • EeePC 1101HA Change HD to SSD

    After a week without post because it took longer than I expect to reinstall ArchLinux to the state I wanted. I’m finally back online. In this post I show you how to change the SSD of an old EeePc 1101HA laptop to an SSD. I choose to do that now because of the hibernation hybrid mode I want to enable and as well because the price of a new SSD of 128GB is only 320 HKD (~40 USD). I choose for the SSD a Kingston SSDNow 300 of 128GB. This is one of the cheapest model you can find today on the market. The interface is SATA3, which is true is far more powerfull than the machine. it’s sure that won’t be the bottleneck here. WARNING The procedure below will break the warranty of your machine ( which should have expired already anyway ) Before Starting Tool requirement The tools you need for this procedure are quite standard: Small philips screw driver Flat screw driver credit card ( Yes I know can sound strange ) New SSD Todo Be sure you are backed up your machine before starting this process. Instructions Removing the battery Turn your laptop and remove the...

  • Archlinux enabling hibernation

    It’s now time to look at how to enable hibernation to a swapfile when we close the lid of the laptop. As a non Linux expert, it took me some time and some failure to arrive at the expect comfiguration. I didn’t want to use any helper script and wanted to setup everything using systemd. I want to enable hibernation because I want to have the ability to restart where I left the system without consuming energy. It’s true that restarting the computer will be slower, however this is a compromise that I accept. The detailed instructions from the ArchLinux can be found below. Arch linux - Power management Arch linux - Power management/suspend and hibernate Arch linux - Swap Arch Linux - Grub Setting up Hibernate mode. In this section I will cover how to setup your ArchLinux to use a file swap to hibernate. This require a few change in the way we are starting the kernel as well as some subtility with the creation of this file. So let start. Creating a swap file Create a new swapfile Allocating the file is quite simple with the command fallocate, but before we can do that we need to...

  • ArchLinux - Using netctl to setup the network

    For this article we will focus on network setup (at least what I’ve found so far) and will look at some of the useful commands that I now use often. Setting up the network, and more specifically the wifi can be traumatic. However, even without X windows there are some nice simple tools to help you to setup the wifi connection (like ‘wifi-menu’ that we used earlier). If you follow the step to set up the base installation from this article, you should already have from your base installation the packages netctl and dialog. netctl is a batch script built on top of systemctl that allows you to start or stop the network profile configuration service. Connecting Manually Before trying to connect using some auto detection, it would be good to understand what is happening under the hood. netctl is a simple command that allow you to list available profiles, start a profile or stop a profile. In this section we will first look at how to setup a wired connection followed by a wifi one, and then get a quick overview of the netctl command line tool. Setting up an Ethernet profile netctl stores the connection profile in the...

  • ArchLinux - disabling root

    If you followed the previous article of the series about setting up Arch Linux, you should now be at the point where you have a base Linux system. In this post I will focus on the creation of a user account, installing and setting up sudo and disabling the root account. You can find detailed information by following this link. Creating a user Following the reboot of your ArchLinux installation you will be asked to connect. Use root and the password you set up in the previous article. We are going to create a new account and add it to the ‘wheel’ group by default. The group wheel is a group that allows you to run some restricted commands from that user. As I want this account to be an advanced power user, this is the group I want to be part of. useradd -m -g wheel [account name] passd [account name] Installing and setting Sudo The next step is to install and set up sudo to allow the wheel group to run commands in elevated mode. ‘sudo’ stands for ‘Superuser Do’ and will allow us to continue the installation without using the root account. Installing sudo pacman -S sudo...

  • Archlinux base installation

    After years on Windows and having on the side this old Asus EeePC 11010HA collecting dust in storage I decided to give it a second life following the discovery of Arch Linux and Xmonad from a friend who is working on a startup. I’ve tried a lot of other windows and Linux distributions on this machine in the past without success, mainly relating to the video driver which is the Intel GMA500. This post summarizes how to set up Arch Linux on a laptop. I will set up this machine as a Linux development machine until I feel confident that I can do a full switch of my main PC. Preparing the USB drive The first setup before installing Arch Linux is to create a USB boot drive installation. As I don’t have any Linux machine for years I needed to find a way to create this USB boot drive on windows. Download required You will need to download two things: Yumi Multiboot : This will allow you to create the USB Boot drive simply. If you have chocolatey installed on your machine you can run the following command powershell choco install yumi Arch Linux ISO: This is the ISO...

subscribe via RSS