By nathanchance , Recognized Develope r. Introduction Hello everyone, I will be going over how to compile a kernel from beginning to end! Prerequisites: A Linux environment (preferably 64-bit) Knowledge of how to navigate the command line Common sense A learning spirit, there will be no spoonfeeding here What this guide will cover: Downloading the source Downloading a cross compiler Building the kernel Flashing the kernel What this guide will NOT cover: Setting up a build environment (plenty of existing Linux installation guides) Adding features to the kernel (plenty of git cherry-picking guides) I know this has been done before but on a cursory search, I have not seen a guide that was recently updated at all. 1. Downloading the source If you have a custom kernel you want to build, move along after cloning the kernel using the git clone command below. If you are compiling your stock kernel, it is ultimately up to you to know where to get your kernel source from but here are some commo
What is script? script is a Go library for doing the kind of tasks that shell scripts are good at: reading files, executing subprocesses, counting lines, matching strings, and so on. Why shouldn't it be as easy to write system administration programs in Go as it is in a typical shell? script aims to make it just that easy. Shell scripts often compose a sequence of operations on a stream of data (a pipeline). This is how script works, too. What can I do with it? Let's see a simple example. Suppose you want to read the contents of a file as a string: contents, err := script.File("test.txt").String() That looks straightforward enough, but suppose you now want to count the lines in that file. numLines, err := script.File("test.txt").CountLines() For something a bit more challenging, let's try counting the number of lines in the file which match the string "Error": numErrors, err := script.File("test.txt").Match("Error").CountLin