For ClockworkOS, you won’t need to change your username to use your DevTerm. However, if you want (I certainly have), you can change it by following these steps:
- Log out of your current desktop session (Applications > Log Out — pressing the power button will also bring up the menu)
- Press the following keyboard combination: Fn + Ctrl + Alt + 1 (F1)
- Log in as
root
— the password iscpi
- Execute
killall -u cpi
to stop all processes under the user you want to rename - Execute
usermod -l newname -m -d /home/newname cpi
to rename the user and move its home directory - Execute
groupmod -n newname cpi
to move the user groups (includingsudo
access) - Execute
chfn -f "Your Name" newname
to choose a new full name (shown top-right of the desktop session) - Open up the LightDM config file for auto=login with
nano /etc/lightdm/lightdm.conf.d/12-autologin.conf
- Change line 2 to be
autologin-user=newname
- Press Ctrl + X, then Y, then Enter
- Execute
reboot
to restart the system
Your username should now have been changed! If you don’t want autologin, you can comment out all of the lines in 12-autologin.conf
by prefixing them with the #
symbol.
Hope this helps for people who want to rename their username! Other things you may want to do:
- Change your password with
passwd
under your newly-renamed account - Change the hostname from
clockworkpi-a06
by editing/etc/hostname
(requires superuser privileges)