This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
change hostname in proot #145
Win81VMUser
started this conversation in
General
Replies: 1 comment 2 replies
-
cat >> ~/.bashrc <<-'EOF'
PS1='\[\e]0;\u@$HOSTNAME: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@$HOSTNAME\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
EOF
. ~/.bashrc
HOSTNAME=VM export HOSTNAME=Win81VMUser-Ubuntu
neofetch |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. How can i change localhost name (root@localhost) to something else like root@vm (like in neofetch)?
After editing /etc/hostname it shows new name only in neofetch but i want make it show everywhere, like in real pc. Is it even possible on proot? Screenshot is from neofetch and from hostname command
Beta Was this translation helpful? Give feedback.
All reactions