[SOLVED] Can I change the name of my computer?

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
James_Smith
Level 4
Level 4
Posts: 292
Joined: Wed Feb 18, 2015 6:41 pm

[SOLVED] Can I change the name of my computer?

Postby James_Smith » Sun Jul 23, 2017 2:00 am

I had a Lenovo in which I had installed a 1TB SSD from Crucial. I now have an Alienware and I pulled the Crucial SSD out of the Lenovo and put it into the Alienware. Of course, the SSD still 'thinks' that it's in a Lenovo machine so, for example, when I do this...

Code: Select all

mac@mac-Lenovo-Y50-70-Touch ~ $ inxi -Fxzd
System:    Host: mac-Lenovo-Y50-70-Touch Kernel: 4.10.0-27-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: Cinnamon 3.4.4 (Gtk 3.18.9-1ubuntu3.3)
           Distro: Linux Mint 18.2 Sonya
Machine:   System: Alienware product: Alienware 15 R3 v: 1.0.8
           Mobo: Alienware model: Alienware 15 R3 v: A00
           Bios: Alienware v: 1.0.8 date: 02/24/2017
CPU:       Quad core Intel Core i7-7700HQ (-HT-MCP-) cache: 6144 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 22464
           clock speeds: max: 3800 MHz 1: 899 MHz 2: 899 MHz 3: 899 MHz
           4: 899 MHz 5: 899 MHz 6: 899 MHz 7: 899 MHz 8: 899 MHz
Graphics:  Card-1: Intel Device 591b bus-ID: 00:02.0
           Card-2: NVIDIA Device 1c20 bus-ID: 01:00.0
           Display Server: X.Org 1.18.4 driver: nvidia
           Resolution: 1920x1080@60.02hz
           GLX Renderer: GeForce GTX 1060/PCIe/SSE2
           GLX Version: 4.5.0 NVIDIA 381.22 Direct Rendering: Yes
Audio:     Card Intel Device a171 driver: snd_hda_intel bus-ID: 00:1f.3
           Sound: Advanced Linux Sound Architecture v: k4.10.0-27-generic
Network:   Card-1: Qualcomm Atheros Device e0b1
           driver: alx port: d000 bus-ID: 3c:00.0
           IF: enp60s0 state: down mac: <filter>
           Card-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter
           driver: ath10k_pci bus-ID: 3d:00.0
           IF: wlp61s0 state: up mac: <filter>
           Card-3: Atheros usb-ID: 001-003
           IF: null-if-id state: N/A speed: N/A duplex: N/A mac: N/A
Drives:    HDD Total Size: 1000.2GB (42.2% used)
           ID-1: /dev/sda model: Crucial_CT1024MX size: 1000.2GB
           Optical: No optical drives detected.
Partition: ID-1: / size: 902G used: 378G (45%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 17.09GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 47.0C mobo: N/A gpu: 0.0:55C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 247 Uptime: 16 min Memory: 1710.2/7850.8MB
           Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35


It shows up as a Lenovo. There must be some way to change that Lenovo to Alienware... right?
Last edited by James_Smith on Sun Jul 23, 2017 2:40 am, edited 1 time in total.

User avatar
Pierre
Level 15
Level 15
Posts: 5768
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: Can I change the name of my computer?

Postby Pierre » Sun Jul 23, 2017 2:20 am

you will have to change that Detail in Two Files:
/etc/hostname
change Name at the End of the Line 127.0.1.1
and
/etc/hosts
change that Name

These will both need administrative access, so run

Code: Select all

gksu gedit /path/to/file

Replace both instances of the existing computer name with your new one.
When complete run

Code: Select all

sudo service hostname start

The name will also be changed if you restart your computer.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.

James_Smith
Level 4
Level 4
Posts: 292
Joined: Wed Feb 18, 2015 6:41 pm

Re: [SOLVED] Can I change the name of my computer?

Postby James_Smith » Sun Jul 23, 2017 2:41 am

It worked:

Code: Select all

mac@mac-Alienware-15-R3 ~ $ inxi -Fxzd
System:    Host: mac-Alienware-15-R3 Kernel: 4.10.0-27-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: Cinnamon 3.4.4 (Gtk 3.18.9-1ubuntu3.3)
           Distro: Linux Mint 18.2 Sonya
Machine:   System: Alienware product: Alienware 15 R3 v: 1.0.8
           Mobo: Alienware model: Alienware 15 R3 v: A00
           Bios: Alienware v: 1.0.8 date: 02/24/2017
CPU:       Quad core Intel Core i7-7700HQ (-HT-MCP-) cache: 6144 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 22464
           clock speeds: max: 3800 MHz 1: 3761 MHz 2: 3677 MHz 3: 3585 MHz
           4: 3725 MHz 5: 3774 MHz 6: 3655 MHz 7: 3777 MHz 8: 3736 MHz
Graphics:  Card-1: Intel Device 591b bus-ID: 00:02.0
           Card-2: NVIDIA Device 1c20 bus-ID: 01:00.0
           Display Server: X.Org 1.18.4 driver: nvidia
           Resolution: 1920x1080@60.02hz
           GLX Renderer: GeForce GTX 1060/PCIe/SSE2
           GLX Version: 4.5.0 NVIDIA 384.47 Direct Rendering: Yes
Audio:     Card Intel Device a171 driver: snd_hda_intel bus-ID: 00:1f.3
           Sound: Advanced Linux Sound Architecture v: k4.10.0-27-generic
Network:   Card-1: Qualcomm Atheros Device e0b1
           driver: alx port: d000 bus-ID: 3c:00.0
           IF: enp60s0 state: down mac: <filter>
           Card-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter
           driver: ath10k_pci bus-ID: 3d:00.0
           IF: wlp61s0 state: up mac: <filter>
           Card-3: Atheros usb-ID: 001-003
           IF: null-if-id state: N/A speed: N/A duplex: N/A mac: N/A
Drives:    HDD Total Size: 1000.2GB (42.2% used)
           ID-1: /dev/sda model: Crucial_CT1024MX size: 1000.2GB
           Optical: No optical drives detected.
Partition: ID-1: / size: 902G used: 378G (45%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 17.09GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 47.5C mobo: N/A gpu: 0.0:52C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 257 Uptime: 0 min Memory: 1362.8/7850.8MB
           Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35


Return to “Hardware Support”

Who is online

Users browsing this forum: No registered users and 5 guests