Ubuntu & Debian: Use variable for username
Signed-off-by: Scott G. Ainsworth <scott@ainsworth.us> Signed-off-by: Richard Laager <rlaager@wiktel.com> [Applied to Ubuntu 20.04 Raspberry Pi & Debian Buster.]
This commit is contained in:
committed by
Richard Laager
parent
4c3ec4c594
commit
3c04e929a1
@@ -881,14 +881,16 @@ Step 6: First Boot
|
||||
|
||||
#. Create a user account:
|
||||
|
||||
Replace ``username`` with your desired username::
|
||||
Replace ``YOUR_USERNAME`` with your desired username::
|
||||
|
||||
zfs create rpool/home/username
|
||||
adduser username
|
||||
username=YOUR_USERNAME
|
||||
|
||||
cp -a /etc/skel/. /home/username
|
||||
chown -R username:username /home/username
|
||||
usermod -a -G audio,cdrom,dip,floppy,netdev,plugdev,sudo,video username
|
||||
zfs create rpool/home/$username
|
||||
adduser $username
|
||||
|
||||
cp -a /etc/skel/. /home/$username
|
||||
chown -R $username:$username /home/$username
|
||||
usermod -a -G audio,cdrom,dip,floppy,netdev,plugdev,sudo,video $username
|
||||
|
||||
#. Mirror GRUB
|
||||
|
||||
|
||||
Reference in New Issue
Block a user