This is an configuration for an old laptop. The goal here is to make a "writing machine" so I can go from "zero to writing" in as few seconds as possible. It's a learning-as-I go project. Suggestions welcome.
Requirements:
- fastest possible startup
- auto login
- install no more than required
I'll install the writing apps I need after this setup is complete.
I installed ubuntu 20.04.3 live server amd64 on a 2011 Macbook Air model A1370 (2GB RAM)
During the install process, be sure to connect to wifi.
sudo apt install -y xorg --no-install-recommends --no-install-suggestssudo apt install -y ubuntu-drivers-common mesa-utils mesa-utils-extra gnupg numlockx xautolock scrot unzip wpasupplicant feh pavucontrol curl wget xclip rxvt-unicode
sudo add-apt-repository -y ppa:regolith-linux/stablesudo apt install -y i3-gaps i3status dmenu rofi xfe
The following command creates a drop-in file (if neccessary) and open it an editor.
sudo systemctl edit [email protected]
Add the following, replacing myusername with your user name:
[Service]
ExecStart=
ExecStart=-/sbin/agetty --noissue --autologin myusername %I $TERM
Type=idleThis will:
- Create the folder
/etc/systemd/system/[email protected]if necessary - Create the file
/etc/systemd/system/[email protected]/override.confif necessary - automatically login the user named
yourusername.Put the desired username there.
Now enable the service:
systemctl enable [email protected]
To automatically startx edit the ~/.bash_profile file
in your users /home directory and add this to the bottom.
#Startx Automatically
if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then
startx
fiOk, that will automatically run startx, when your user logs in.
From the previous step, startx will run after login.
Now to set i3 window manager to run after startx. Edit ~/.xinitrc to:
export TERMINAL = "rxvt-unicode"
alias open="xdg-open"
i3This should get a minimal desktop running.
sources: