Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change the user name and host name with the name of the event #79

Open
1 of 3 tasks
xeon-zolt opened this issue Jul 17, 2017 · 6 comments
Open
1 of 3 tasks

change the user name and host name with the name of the event #79

xeon-zolt opened this issue Jul 17, 2017 · 6 comments

Comments

@xeon-zolt
Copy link
Member

I'm submitting a ... (check one with "x")

  • bug report
  • feature request
  • support request => Please do not submit support requests here, instead ask your query in out Gitter channel at https://gitter.im/fossasia/meilix

we should change the user name and host name with the name of the event

Actual Behaviour
currently, hotelos is the user name and host name

Expected Behaviour
the user name and host name should be the changed to the event name

@meets2tarun
Copy link
Member

meets2tarun commented Jul 18, 2017

First, the issue is that to find out that from where this hotelos named is assigned in the meilix iso?
@abishekvashok @xeon-zolt

@meets2tarun
Copy link
Member

/etc/hostname

@xeon-zolt
Copy link
Member Author

xeon-zolt commented Jul 21, 2017

hostname ${TRAVIS_TAG} #is the event name
groupadd ${TRAVIS_TAG}
usermod -d /home/hotelos -m -g hotelos -l hotelos ${TRAVIS_TAG}

This changes the name, the group, the home directory and ownership and group of that directory to the new ones, along with all the files.

@tabesin
Copy link
Member

tabesin commented Jul 28, 2017

Note you have made hardcoded references to the home path in past commits. So this ticket may help to refactor the code. Please resolve all assumptions of hotelos as $HOME first, so that nothing breaks.

@tabesin
Copy link
Member

tabesin commented Nov 29, 2018

here is the mock solution guys:
sed -i 's/Lubuntu/${TRAVIS_TAG}/' image/.disk/info

Of course it does not have to be done like this, just to get you the idea. image/.disk/info is a one line file.
Of course we need proper range checks, no spaces etc.

@tabesin
Copy link
Member

tabesin commented Nov 29, 2018

E.g. the file image/.disk/info may contain the single line
HotelOS 12.10 "Quantal Quetzal" - Release i386 (20121017.1)

whatever the first word becomes hostname and user name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants