2025 Jan Update: Power, Sleep, and WoL

The Wattage for idle state is 70W so the power consumption is 50 kWh per month based on measure power usage, which is 20 dollars in bay area.

We can set auto sleep, but with wake-on-lan enabled, so idle usage will still save energy.

Init

Now we want to have some basic input method and IM to improve QoL

sudo apt install fcitx
sudo apt remove --purge ibus
sudo apt install fcitx-rime
fcitx-diagnose # will tell env var in .xprofile

SSH Keygen and add it into github

ssh-keygen -t ed25519 -C "[email protected]"
cat ~/.ssh/id_ed25519.pub

Setup SSH Server

sudo apt-get install openssh-server
sudo systemctl enable ssh
sudo systemctl enable ssh --now
sudo systemctl start ssh
sudo vim /etc/ssh/sshd_config # disable password auth
vim .ssh/authorized_keys # add known pubkey
sudo systemctl restart ssh.service

Change Grub timeout

sudo vim /etc/default/grub # change timeout value
sudo update-grub && grep -B3 "set timeout=" /boot/grub/grub.cfg

Use Zsh

sudo apt install -y zsh
chsh
# also change the shell in vacode by editing settings.json

Driver Setup

Ubuntu 24.04

The drivers work out of the box! Also the repo already come with CUDA

sudo apt install nvidia-cuda-toolkit
sudo apt install python3-pip
sudo apt install python3-venv -y
python3 -m venv torch
source pytorch_env/bin/activate
pip3 install torch torchvision torchaudio

Driver issue of Ubuntu 22.04

Initial boot enters black screen. Need to install basic drivers to be able to use ubuntu GUI.