What did i ran into this time?
Easy: i thought it might be a good idea to change my user name.
The wisdom of WWW told me to:
usermod -l newname oldname
and change the name of the home-dir.
I thought: ok, and that failed. Damn.
So i created a new user (adduser name) and did cp and chmod and have hoped all would be fine.
But not so.
What to do?
I went to fsmith's github-repo, searched for mkunlive.sh, and found what i needed:
- Code: Select all
for i in $(grep -r "/home/$oldname" /home/$newname/.config | awk -F":" ' { print $1 }')
do
sed -i "s/\/home\/$oldname/\/home\/$newname/g" "$i"
check_exit
done
I edited it for my needs, and voila: most things seems to work again.
In those script i find a lot of the stuff i need.
short: good stuff.
https://github.com/fsmithred/refracta/b ... kunlive.sh