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

Implementation of hostname? #80

Closed
ghost opened this issue Oct 15, 2019 · 3 comments
Closed

Implementation of hostname? #80

ghost opened this issue Oct 15, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 15, 2019

Minor feature, but:

[kalmari@localhost ~]$ sudo hostname yes
hostname: sethostname: Function not implemented
[kalmari@localhost ~]$
@michalbednarski
Copy link
Collaborator

While not exactly what you're asking for, currently proot kompat extension supports overriding uname:

$ proot -k '\sysname\nodename\release\version\machine\domainname\-1\' hostname
nodename

(See kompat extension source for details)

You might want to set some of these values to match host system so prooted programs don't get confused by dummy uname results.

@ghost
Copy link
Author

ghost commented Oct 27, 2019

wow thats epic af

works brilliantly!

@ghost ghost closed this as completed Oct 27, 2019
@nurupo
Copy link

nurupo commented Dec 30, 2020

You might want to set some of these values to match host system so prooted programs don't get confused by dummy uname results.

That would be:

proot -k "\\$(uname -s)\\your-hostname\\$(uname -r)\\$(uname -v)\\$(uname -m)\\localdomain\\-1\\" uname -a

Change your-hostname to whatever you want.

This issue was closed.
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

2 participants