Welcome
Welcome to refracta

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!

story time again

If it's not on-topic, it's in here.

story time again

Postby nadir » Wed Mar 30, 2011 12:23 am

Another success story of fmsithred's scripts.
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
So i herd u liek mudkip?
User avatar
nadir
 
Posts: 1159
Joined: Wed Mar 09, 2011 4:18 am
Location: here

Return to General Nonsense

Who is online

Users browsing this forum: No registered users and 0 guests

suspicion-preferred