<commit_before>#!/bin/bash
#-- The setup, done by root after rebooting

install="pacman -S --noconfirm"
aurinst="bash <(curl aur.sh) -si --noconfirm"

$install sudo
nano /etc/sudoers
# >> change this to be automated (copy sudoers file)

#-- Install basics
$install base-devel
$install git
$install vim-python3

#-- Install GUI
$install xorg xterm xorg-xinit
$install slim
$install i3 dmenu

#-- Install yaourt
$aurinst package-query
$aurinst yaourt
rm -rf package-query yaourt

#-- Create normal user
echo "Create user:"
read user
useradd -m -G wheel -s /bin/bash $user
passwd -d $user
# >> the password will be asked later.

#-- Clone repo and initialize
su $user <<CMD
cd /home/$user
git clone https://github.com/DaveAtGit/arch_config/master/
. /home/$user/arch_config/setup.sh
CMD

#-- Set password of $user
echo "Set password of $user:"
passwd $user<commit_msg>Update root_setup.sh<commit_after>#!/bin/bash
#-- The setup, done by root after rebooting

install="pacman -S --noconfirm"
aurinst="bash <(curl aur.sh) -si --noconfirm" #TODO seems not to work!

$install sudo
nano /etc/sudoers
# >> change this to be automated (copy sudoers file)

#-- Install basics
$install base-devel
$install git
$install vim-python3

#-- Install GUI
$install xorg xterm xorg-xinit
$install slim
$install i3 dmenu

#-- Install yaourt
$aurinst package-query
$aurinst yaourt
rm -rf package-query yaourt

#-- Create normal user
echo "Create user:"
read user
useradd -m -G wheel -s /bin/bash $user
passwd -d $user
# >> the password will be asked later.

#-- Clone repo and initialize
su $user <<CMD
cd /home/$user
git clone https://github.com/DaveAtGit/arch_config.git
. /home/$user/arch_config/setup.sh
CMD

#-- Set password of $user
echo "Set password of $user:"
passwd $user
{'fraction_non_alphanumeric': 0.12514220705346984, 'fraction_numerical': 0.0022753128555176336, 'mean_word_length': 3.8457300275482096, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2708990', 'n_tokens_mistral': 635, 'n_tokens_neox': 600, 'n_words': 217}