Results 1 to 8 of 8

Thread: Device name

  1. #1
    Join Date
    Sep 2009
    Location
    INDIA
    Beans
    195
    Distro
    Ubuntu 24.04 Noble Numbat

    Device name

    Few days back I have installed Ubuntu 24.04.1 in one of my PCs. Now-a-days when I open the Terminal it is found that the device name is shown twice, as under.
    nareesh-pal-memorial-trust@nareesh-pal-memorial-trust-H310M-S2-2-0:~$
    This was not the position earlier. Now I would like to rectify it. How it is to be rectified? Kindly advise.

  2. #2
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Device name

    What you are seeing is username@computername.

    The install process asks us for our name; the device/computer name and then our user name. When I enter my full name (Christian + Surname) the installer assumes that to be the user name and puts a hyphen between my two names. I edit the user name to something more useful. If I do not notice this "helpful" action my user name would be Christian name-Surname. This has happened with one install that I put in.

    I think that is what has happen here.

    Regards
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  3. #3
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    5,899

    Re: Device name

    ...Now I would like to rectify it. How it is to be rectified? Kindly advise.
    Edit Device Name by going to:
    Settings > System > About
    Edit User Name by going to:
    Settings > System > Users

  4. #4
    Join Date
    May 2010
    Beans
    3,500

    Re: Device name

    What is the output of
    Code:
    echo "username - `whoami`"; echo "hostname - `hostname`"

  5. #5
    Join Date
    Sep 2009
    Location
    INDIA
    Beans
    195
    Distro
    Ubuntu 24.04 Noble Numbat

    Re: Device name

    Quote Originally Posted by grahammechanical View Post
    What you are seeing is username@computername.

    The install process asks us for our name; the device/computer name and then our user name. When I enter my full name (Christian + Surname) the installer assumes that to be the user name and puts a hyphen between my two names. I edit the user name to something more useful. If I do not notice this "helpful" action my user name would be Christian name-Surname. This has happened with one install that I put in.

    I think that is what has happen here.

    Regards
    Thanks for your cooperation. I have rectified it through Settings > System > About.

    Regards.

  6. #6
    Join Date
    Sep 2009
    Location
    INDIA
    Beans
    195
    Distro
    Ubuntu 24.04 Noble Numbat

    Re: Device name

    Quote Originally Posted by Dennis N View Post
    Edit Device Name by going to:
    Settings > System > About
    Edit User Name by going to:
    Settings > System > Users
    Thanks for your reply. It stands rectified as per your suggestions.

    Regards.

  7. #7
    Join Date
    Sep 2009
    Location
    INDIA
    Beans
    195
    Distro
    Ubuntu 24.04 Noble Numbat

    Re: Device name

    Quote Originally Posted by ActionParsnip View Post
    What is the output of
    Code:
    echo "username - `whoami`"; echo "hostname - `hostname`"
    Thanks for your support. Now it stands rectified through Settings > System > About.

    Regards.

  8. #8
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Device name

    I always make my username fred and use hardware version plus install name for hostname. I have several systems and in each may have multiple installs, so need to keep track of which is which.

    Code:
    fred@z170-noble:~$ echo "username - `whoami`"; echo "hostname - `hostname`" 
    username - fred 
    hostname - z170-noble
    
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Intro to Discourse: https://discourse.ubuntu.com/t/welco...and-help/49951

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •