Skip to content
Snippets Groups Projects
Commit cff1d472 authored by Recolic's avatar Recolic :house_with_garden:
Browse files

.add-example

parent 6d037e00
No related branches found
No related tags found
No related merge requests found
lc_assert_user_is root
lc_init () {
# my favorite package
# my favorite pkgs
pacman -Sy --noconfirm fish dhcpcd vim sudo openssh
pacman -Sy --noconfirm --asdeps openssl
pacman -Sy --noconfirm gnome networkmanager power-profiles-daemon nextcloud-client firefox
# add primary user
useradd --create-home --shell /usr/bin/fish rtest
echo 'rtest ALL=(ALL) NOPASSWD: ALL' | EDITOR='tee -a' visudo
usermod --password $(echo testpass | openssl passwd -1 -stdin) rtest
sudo -u rtest linuxconf register masterconf.sh
# more desktop pkgs
pacman -Sy --noconfirm gnome networkmanager power-profiles-daemon nextcloud-client firefox
systemctl enable gdm NetworkManager power-profiles-daemon
}
lc_assert_user_is_not root
lc_init () {
[[ -d $HOME/sh ]] || git clone https://git.recolic.net/root/daily-scripts.git $HOME/sh || return 1
}
lc_startup () {
}
......@@ -46,3 +46,7 @@ function lc_cron () {
# Warning: watch out for unintended user
lc_fsmap files/vimrc $LC_USER_HOME/.vimrc
# TODO: what if lc_fsmap depends on lc_init() ?? This is not recommended usage.
# e.g: 'git clone xxx $HOME/sh' and lc_fsmap $HOME/sh/something /usr/bin/fancy
# lc_fsmap should success even if $HOME/sh/something doesn't exist yet. (what if dest also not exist? let it fail...)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment