Tag: linux

  • eGPU on Arch Linux – Not As Hard As I Expected

    A few years ago, I bought a bulky nVidia RTX 3080 GPU as part of my venture into crypto mining, I also DIYed a thermal pad upgrade for it so it runs cooler and quieter. But since the PoS merge of Ethereum in 2022, it’s no longer mine-able using GPUs so my 3080 started to…

  • Ubuntu Server 20.04 on ThinkPad W520

    10 years ago, I would dream for a ThinkPad W520 laptop: imagine 4 cores, 8 threads, 32GB memory and 160GB SSD in 2012! I saw one of these old battleship-class laptops Gumtree the other day so I bought it without much hesitation – It’s still very good as a mini server even in 2022. In…

  • Installation of Fedora 36 on Dell XPS 13 9380

    Installation of Fedora 36 on Dell XPS 13 9380

    I happened to have acquired a used Dell XPS 13 9380, which is a nice little ultrabook with Intel 8th gen i7 CPU, 16GB memory(not upgrade-able), 512GB nvme SSD and a beautiful 13″ 4k screen. It has Windows 10 installed. Of course I have no intention to continue to use the stock Windows 10. At…

  • Share Environment Variables in GNU Make

    I think writing up a cheat sheet for GNU Make and environment variables before Christmas is a good idea, right? In GNU Make, by default a single line runs in its own shell. ie. We can use backslash to fake multi-line like this: With .ONESHELL directive multiple lines in one target run in a same…

  • Linux and Wake on LAN

    The Internet servers are usually on 24×7, probably that’s why I never had the need to use the Wake on LAN feature on a computer. I’ve just built a home server running Ubuntu Linux, using consumer grade PC parts. To avoid a big surge on my next electricity bill, I plan to only turn on…

  • 开始用 Arch Linux

    用 Linux 的好处是选择多多, 但有的时候确实很难选, 俗称”挑花了眼”. 我基本上的要求有: 相对新潮, 各个模块的版本都是最新的才好(当然, 不是说服务器上的系统) 桌面是(或者可以是) Gnome Shell. 很多人恨 GS 恨得牙龈都发炎了, 但我对 GS 情有独钟 社区活跃, 有问题多半能 Google 到结果 没有商业气味, 没有大公司在背后控制 这样筛选下来 Ubuntu 太商业化了, 奔着下一个 WindowsXP 的路子去了; Fedora 社区不给力; Debian 太保守… 唯有 Arch Linux 几乎完美. 唯一麻烦的是, AL 相对高端, 没有”一直点 Next”类安装界面, 安装 AL 是从 fdisk, mkfs, mount, chroot 这样的命令开始的(当然比起 Gentoo 的 gcc, make,…

  • 擎天柱与大黄蜂

    前些时, 我打算升级一下我的笔记本电脑, 作为给自己的生日礼物, 老婆很给力的批准了. 于是我稍做筛选, 购买了正在促销的 ASUS R501J, i7 处理器 + 15″ 1080P 的屏幕 + 16GB 内存, 我觉得够用了. 只是… 预装的是 Windows 8, 而且有 UEFI + SecureBoot. 微软希望依赖 SB 来阻止我卸载 Windows 安装 Linux, 但很显然他也不得不给自己留个后门, 我只需要照做就是了. 于是轻松关闭 UEFI + SB, 又看到了熟悉的 BIOS, 那安装 Fedora 20 吧. 好笑的是每一种企图剥夺用户自由的”科技”都会美其名曰为了保护用户不受”未授权”的软件的”侵害”, 哈哈哈. 安装 Fedora 20 在 R501J 上就像在茶餐厅点菜一样容易, 键盘上的功能键/屏幕/触板/无线网络/摄像头…都直接可用了, 不过意料之内的是独立显卡似乎被闲置一边了. 原来这就是传说中…

  • LVM 快照(snapshot)的第二种用法

    之前我已总结了 LVM 快照的第一种用法: 利用 LVM 在线抓取 MySQL 数据库快照, 也可以扩展到任何需要在线生成磁盘快照的应用. 自 LVM 2.0 以来, 镜像分区不只是只读的, 而且可写. 而写入快照分区的一种应用就是造”沙盒(sandbox)”, 在 Xen VM 环境的具体步骤如下: 1, 假设供测试的虚拟机 test, 分区是 /dev/vm/test-disk, 为其生成 10GB 快照分区 test-ss: lvcreate -s -n test-ss -L10G /dev/vm/test-disk 2, 将 test 虚拟机关机, 可以 ssh root@test “shutdown -h now” 或者 xm shutdown test 3, 复制 /etc/xen/test.conf 到 test-s1.conf, 并将磁盘分区…