Skip to content

eddyu0/dotfiles

Repository files navigation

dotfiles

Using idea from holman, daviwil and zzh8829

Most of the configuration are specific to Ubuntu 22.04 (Pop_os 22.04).

Usage

bootstrap: install nala, stow, and then sym-links user dotfiles using stow.

The dotfiles are symlinks to the destination following the sub-folder structure. The dotfiles are mapped to $HOME directory, assuming you clone this directory under $HOME.

./bootstrap

install: Using scripts in the packages/ folder to install packages from apt, custom install steps, flatpak, and other sources such as npm and pip. Then runs every install.sh script in each folder (currently only vscode extension). Finally runs post-install for application specific setups.

./install

update: The update script can be used to update packages that do not provide auto-update/package manger update.

./update

Other setup

Auto login with LUKS encryption

credit to JivanP's answer

  1. Edit /etc/crypttab, adding the option keyscript=decrypt_keyctl to the cryptdata config line:
cryptdata UUID=<cryptdata UUID> none luks,keyscript=decrypt_keyctl
  1. Edit /etc/pam.d/common-password, adding the option use_authtok to the GNOME keyring line in order to tell GDM Autologin (which includes this file from /etc/pam.d/gdm-autologin) to pass the auth token stored in the keyctl key cryptsetup to GNOME keyring:
password optional pam_gnome_keyring.so use_authtok
  1. Update the initramfs and reboot:
sudo apt install initramfs-tools
sudo update-initramfs -k all -c
reboot

Disable elementary appcenter on start

credit to marvelggg's answer

mkdir -p ~/.config/autostart
cp /etc/xdg/autostart/io.elementary.appcenter-daemon.desktop ~/.config/autostart/
echo "X-GNOME-Autostart-enabled=false" >> ~/.config/autostart/io.elementary.appcenter-daemon.desktop

Samba server

$ sudo vi /etc/samba/smb.conf
[Public]
comment = Samba on Ubuntu
path = /home/username/Public
read only = no
browsable = yes
sudo service smbd restart
sudo ufw allow Samba
sudo smbpasswd -a username

Show users

sudo pdbedit -L -v

Connect

smbclient \\\\host\\Public

Mount

mount -t cifs -o username=bob //host/Public /mnt/path

Releases

No releases published

Packages

No packages published