aboutsummaryrefslogtreecommitdiff
path: root/content/docs
diff options
context:
space:
mode:
authorJulien Dessaux2021-03-12 19:36:17 +0100
committerJulien Dessaux2021-03-12 19:36:17 +0100
commit652becdaaaa09c6ee9cb0b8bcf4bec50d246dcaa (patch)
treecb2788aae124e8b928dc6b3b428b28269a8aa060 /content/docs
parentNew hugo article (diff)
downloadwww-652becdaaaa09c6ee9cb0b8bcf4bec50d246dcaa.tar.gz
www-652becdaaaa09c6ee9cb0b8bcf4bec50d246dcaa.tar.bz2
www-652becdaaaa09c6ee9cb0b8bcf4bec50d246dcaa.zip
Some more articles reformatting
Diffstat (limited to 'content/docs')
-rw-r--r--content/docs/about-me/_index.md2
-rw-r--r--content/docs/gentoo/_index.md6
-rw-r--r--content/docs/gentoo/installation.md14
-rw-r--r--content/docs/gentoo/kernel_upgrades.md18
-rw-r--r--content/docs/gentoo/lxd.md13
-rw-r--r--content/docs/gentoo/steam.md7
6 files changed, 38 insertions, 22 deletions
diff --git a/content/docs/about-me/_index.md b/content/docs/about-me/_index.md
index f81c3fb..fe2c202 100644
--- a/content/docs/about-me/_index.md
+++ b/content/docs/about-me/_index.md
@@ -15,7 +15,7 @@ stories while having a drink... and that's it!
## Professional Career
-I'm currently employed as a System and Network Architect at an awesome company named AlterWay, 3 years and counting. Before that I worked for 7 years at another awesome company named Intersec where I lead the IT team.
+I'm currently employed as a System and Network Architect at an awesome company named AlterWay, 4 years and counting. Before that I worked for 7 years at another awesome company named Intersec where I lead the IT team.
### Intersec
diff --git a/content/docs/gentoo/_index.md b/content/docs/gentoo/_index.md
index 3aa6307..9eef4df 100644
--- a/content/docs/gentoo/_index.md
+++ b/content/docs/gentoo/_index.md
@@ -1,8 +1,6 @@
---
title: "Gentoo"
-linkTitle: "Gentoo"
-weight: 1
-description: >
- Gentoo related articles
+description: Gentoo related articles
---
+I am a long time gentoo user, my first installation dating back to something like 2004.
diff --git a/content/docs/gentoo/installation.md b/content/docs/gentoo/installation.md
index 4f3be17..e4c29c5 100644
--- a/content/docs/gentoo/installation.md
+++ b/content/docs/gentoo/installation.md
@@ -1,11 +1,12 @@
---
title: "Installation"
-linkTitle: "installation"
-weight: 1
-description: >
- Installation of a gentoo system
+description: Installation of a gentoo system
---
+## Introduction
+
+When installing a gentoo system for the first time, please refer to the wonderfull [gentoo handbook](https://wiki.gentoo.org/wiki/Handbook:AMD64). This page is just installation notes shorthand when you know exactly what you are doing.
+
## Installation media
You can get a bootable iso or liveusb from https://www.gentoo.org/downloads/. I recommend the minimal one. To create a bootable usb drive juste use `dd` to copy the image on it. Then boot on this brand new installation media.
@@ -17,6 +18,8 @@ Once you boot on the installation media, you can start sshd and set a temporary
passwd
{{< /highlight >}}
+Don't forget to either run `dhcpcd` or manually set an ip and gateway to the machine.
+
## Partitionning
There are several options depending on wether you need soft raid, full disk encryption or a simple root device with no additional complications. It will also differ if you are using a virtual machine or a physical one.
@@ -50,6 +53,8 @@ mkfs.fat -F 32 -n efi-boot /dev/sda2
mount /dev/sda3 /mnt/gentoo
{{< /highlight >}}
+Make sure you do not repeat the mistake I too often make by mounting something to /mnt while using the liveusb/livecd. You will lose your shell if you do this and will need to reboot!
+
## Get the stage3 and chroot into it
Get the stage 3 installation file from https://www.gentoo.org/downloads/. I personnaly use the non-multilib one from the advanced choices, since I am no longer using and 32bits software except steam, and I use steam from a multilib chroot.
@@ -178,6 +183,7 @@ scp root@collab-jde.nexen.net:/etc/hosts /etc/
### root account access
+I switched to an ed25512 ssh key some time ago but left this here for posterity :
{{< highlight sh >}}
mkdir -p /root/.ssh
echo 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDN1ha6PFKgxF3MSWUlDaruVVpj3UzoiN4IJEvDrCnDbIW8xu+TclbeGJSRXXBbqRKeUfhX0GDA7cvSUIAz2U7AGK7wq5tbzJKagVYtxcSHBSi6dZR9KGb3eoshnrCeFzem1jWXG02PZJGvjB+ml3QhUguyAqm9q0n/NL6zzKhGoKiELO+tQghGIY8jafRv4rE4yyXZnwuCu8JI9P8ldGhKgOPeOdKIVTIVezUmKILWgAF+Hg7O72rQqUua9sdoK1mEYme/wgu0bQbvN26owGgBAgS3uc2nngLD01TZToG/wC1wH9A3KxT6+3akjRlPfLOY0BuK4OBGEGm6e0KZrIMhUr8fHQ8nmTmBqw7puI0gIXYB2EjhpsQ7TijYVqLYXbyxaXYyqisgY0QRWC7Te5Io6TSgorfXzi7zrcQGgWByHkhxTylf36LYSKWEheIQIRqytOdGqeXagFMz2ptLFKk4dA61LS5fPXIJucdghvnmLPml8cO9/9VHQ7gq7DxQu7sIwt/W13yTTUyI9DSHwxeHUwECzxAb5pOVL6pRjTMH8q1/eAMl35TFSh6s5tGvvHGz9+gMlE9A2Pv8CyXDBmXV6srrwxTSlglnmgdq6c9w3VtBKu572/z0cS6vqZMgEno4rIiwyhqNWdjbMXYw/U0q/w5XC9zCcSuluxvaY14qqQ== adyxax
diff --git a/content/docs/gentoo/kernel_upgrades.md b/content/docs/gentoo/kernel_upgrades.md
index 0a2a65c..6b5cb60 100644
--- a/content/docs/gentoo/kernel_upgrades.md
+++ b/content/docs/gentoo/kernel_upgrades.md
@@ -1,11 +1,19 @@
---
title: "Gentoo Kernel Upgrades"
-linkTitle: "Kernel Upgrades"
-weight: 1
-description: >
- Gentoo kernel upgrades on adyxax.org
+description: Gentoo kernel upgrades on adyxax.org
---
-# Gentoo kernel upgrades
+
+## Introduction
+
+Now that I am mostly running OpenBSD servers I just use genkernel to build my custom configuration on each node with :
+{{< highlight sh >}}
+eselect kernel list
+eselect kernel set 1
+genkernel all --kernel-config=/proc/config.gz --menuconfig
+nvim --diff /proc/config.gz /usr/src/linux/.config
+{{< / highlight >}}
+
+Bellow you will find how I did things previously when centralising the build of all kernels on a collab-jde machine, and distributing them all afterwards. Local nodes would only rebuild local modules and get on with their life.
## Building on collab-jde
diff --git a/content/docs/gentoo/lxd.md b/content/docs/gentoo/lxd.md
index d35c4d6..a13dc53 100644
--- a/content/docs/gentoo/lxd.md
+++ b/content/docs/gentoo/lxd.md
@@ -1,11 +1,14 @@
---
title: "LXD"
-linkTitle: "LXD"
-weight: 1
-description: >
- How to setup a LXD server
+description: How to setup a LXD server on gentoo
---
+## Introduction
+
+I have used LXD for many years successfully, I was never satisfied with the docker way of doing container images pulling who knows what from who knows where. Until recently I managed full machine containers running Alpine Linux and was very happy with the simplicity of it.
+
+## Installation
+
{{< highlight sh >}}
touch /etc{/subuid,/subgid}
usermod --add-subuids 1000000-1065535 root
@@ -15,6 +18,8 @@ emerge -q app-emulation/lxd
rc-update add lxd default
{{< /highlight >}}
+## Initial configuration
+
{{< highlight sh >}}
myth /etc/init.d # lxd init
Would you like to use LXD clustering? (yes/no) [default=no]:
diff --git a/content/docs/gentoo/steam.md b/content/docs/gentoo/steam.md
index 23b14b2..e49cb46 100644
--- a/content/docs/gentoo/steam.md
+++ b/content/docs/gentoo/steam.md
@@ -1,11 +1,10 @@
---
title: "Steam"
-linkTitle: "Steam"
-weight: 1
-description: >
- How to make steam work seamlessly on gentoo with a chroot
+description: How to make steam work seamlessly on gentoo with a chroot
---
+## Introduction
+
I am not using a multilib profile on gentoo (I use amd64 only everywhere), so when the time came to install steam I had to get a little creative. Overall I believe this is the perfect
way to install and use steam as it self contains it cleanly while not limiting the functionalities. In particular sound works, as does the hardware acceleration in games. I tried to
achieve that with containers but didn't quite made it work as well as this chroot setup.