hongy19’s blog
Archlinux Install
Laptop HW·
- ASUS R556L
- CPU/GPU
- CPU is I5-4210U(Haswell) which equipped with HD Graphics 4400 (Gen 7.5) according to lscpu
- Nvidia GF117M(Fermi/NVC0), GeForce 820M
- Screen
- 15.6inch display and resolution is 1366x768.
basic installation
- download iso and boot it.
- install according to installation guideline
- close secure boot from laptop bios.
- connect wifi with iwctl
- partition
- partition the disk with fdisk and EFI(UEFI) partition is mandatory
- format partitions
- mount disk to /mnt, update pacman mirrolist
- nstall essential package: pacstrap -K /mnt base linux linux-firmware vim iwd
- genfstab -U /mnt » /mnt/etc/fstab
- arch-chroot /mnt
- ln -sf /usr/share/zoneinfo/Area/Location /etc/localtime
- hwclock –systohc
- locale-gen
- mkinitcpio -P
- passwd
- install boot loader, see UEFI
- necessory package: sudo, openssh, less, fzf, mesa
network
- systemd_networkd + iwd + systemd_resolved
- if only configure wifi with iwctl, there is no dhcp to assign IP. Need to update /etc/iwd.config to enable iwd dhcp.
UEFI
Bios + MBR is setup on 1981 by IBM and many limitation. UEFI + GPT is new boot procedure.
…Archie
I use simple hugo theme Archie, it is very simple theme and I like. But there are several issues you need to notice
- bulletin issue:
Html of my bulletin is very strange ( * and bulletin are not on same line ) since I has sub-bulletin. Markdown requirement is list item includes “block content”, need to use to include block.
We need to change it it inline in custom.css.
<p>authentication mechanism and password scheme</p>
</li>
[params]
customcss = ["css/custom.css"]
li > p {
display: inline;
}
- menu: Default Archie theme has no menu and you need to create menu for posts, category, tag and rss.
mode="auto" # color-mode → light,dark,toggle or auto
useCDN=false # don't use CDNs for fonts and icons, instead serve them locally.
subtitle = "hongy19's blog"
mathjax = true # enable MathJax support
katex = true # enable KaTeX support
[taxonomies]
category = "categories"
tags = "tags"
[[menu.main]]
name = "Home"
url = "/"
weight = 1
[[menu.main]]
name = "All posts"
url = "/posts"
weight = 2
[[menu.main]]
name = "Category"
url = "/categories"
weight = 3
[[menu.main]]
name = "Tags"
url = "/tags"
weight = 4
[[menu.main]]
name = "RSS"
url = "/index.xml"
weight = 5```
- title link: In hugo.toml, I set baseUrl but title link is ‘https://www.hongy19.net’, not ‘https://www.hongy19.net/blog/'
baseURL = 'https://www.hongy19.net/blog/'
With help of ChatGPT, fix is simple, update “themes/archie/layouts/partials/head.html”
…hugo
- hugo new site blog
- cd blog
- git submodule add https://github.com/athul/archie.git themes/archie/
- echo “theme = ‘archie’” » hugo.toml
- hugo new content content/posts/my-first-post.md
- hugo server –buildDrafts
- hugo server -D
- ssh -L 1313:localhost:1313 user@vps
- open brower at laptop and access 127.0.0.1:1313