# refracta.freeforums.org

place to talk about refracta

Skip to content

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.
Post a reply
1 post • Page 1 of 1

### story time again

by 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?

nadir
  Posts: 1160
  Joined: Wed Mar 09, 2011 4:18 am
  Location: here

Top

Post a reply
1 post • Page 1 of 1

Return to General Nonsense

Jump to:

### Who is online

Users browsing this forum: No registered users and 0 guests

Donate Now
ProNight Style by ModphpBB3
Hosted by © 2017 FreeForums.org | Create a free forum | Powered by phpBB
A Member of the Crowdgather Forum Community
About FreeForums | Legal | Advertise Here | Investors | Contact FreeForums.org
Report Violation
suspicion-preferred