[done]Stuck with old hostname

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[done]Stuck with old hostname

Postby JJF » Dec 31st, '19, 20:27

whatever I tried, the older hostname popsup in various applications

Code: Select all
/etc/cat hosts
127.0.0.1      SSDPC.FROMMERS      localhost
127.0.0.1     SSDPC
127.0.0.1     localhost
10.0.0.7       SSDPC.FROMMERS.com     localhost


Code: Select all
hostname
SSDPC


Running MCC >Network sharing>Search servers I get jf--ssd ,which is the previous host
as attached below

How can I preserve my preferred host name??
Attachments
Screenshot from 2019-12-31 20-22-37.png
MCC server
Screenshot from 2019-12-31 20-22-37.png (18.5 KiB) Viewed 1337 times
Last edited by JJF on Jan 14th, '20, 21:52, edited 1 time in total.
JJF
 
Posts: 216
Joined: Feb 13th, '14, 11:42

Re: Stuck with old hostname

Postby doktor5000 » Dec 31st, '19, 23:45

Are you sure that the host that shows as jf--ssd is actually the one you are running MCC on ? Please also add the output as root of
Code: Select all
smbclient -L 127.0.0.1
smbclient -mNT1 -L 127.0.0.1
smbtree


and please also post your /etc/samba/smb.conf (you can remove the details about the shares, but the netbios name = in the [global] section should be included.)

On a related note, I'd change your hosts file from this

Code: Select all
127.0.0.1      SSDPC.FROMMERS      localhost
127.0.0.1     SSDPC
127.0.0.1     localhost


to this

Code: Select all
127.0.0.1      SSDPC.FROMMERS      SSDPC      localhost
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Stuck with old hostname

Postby JJF » Jan 1st, '20, 07:45

Doktor5000 - thanks. Below are the results:
Code: Select all
smbclient -L 127.0.0.1
Enter FROMMERS\jacob's password:

   Sharename       Type      Comment
   ---------       ----      -------
   ML1640          Printer   Samsung ML-1640 Laser Printer
   jfshare         Disk      jfshare
   efshare         Disk      efshare
   IPC$            IPC       IPC Service (Samba Server Version 4.10.11)
   Samsung-ML-1640 Printer   Samsung ML-1640
Reconnecting with SMB1 for workgroup listing.

   Server               Comment
   ---------            -------

   Workgroup            Master
   ---------            -------
   FROMMERS             SSDPC


Code: Select all
smbclient -mNT1 -L 127.0.0.1
Enter FROMMERS\jacob's password:

   Sharename       Type      Comment
   ---------       ----      -------
   ML1640          Printer   Samsung ML-1640 Laser Printer
   jfshare         Disk      jfshare
   efshare         Disk      efshare
   IPC$            IPC       IPC Service (Samba Server Version 4.10.11)
   Samsung-ML-1640 Printer   Samsung ML-1640
Reconnecting with SMB1 for workgroup listing.

   Server               Comment
   ---------            -------

   Workgroup            Master
   ---------            -------
   FROMMERS             SSDPC


The MCC network server attached image was taken on the same box just after checking smbclient. It reports: jf-ssd....

2. hostname: I want to keep fixed IP 10.0.0.7 , and it does not show in your commendation.

3. I managed to connect to my Windows 10 PC , but could not connect to the Samsung printer connected to the Win10 as USB printer, which I used to connect to with Mageia 6. I Guess both problems are related.

Please advice
JJF
Attachments
Screenshot from 2020-01-01 07-21-35.png
Just after smbclient checking
Screenshot from 2020-01-01 07-21-35.png (19.69 KiB) Viewed 1318 times
JJF
 
Posts: 216
Joined: Feb 13th, '14, 11:42

Re: Stuck with old hostname

Postby doktor5000 » Jan 1st, '20, 13:14

JJF wrote:The MCC network server attached image was taken on the same box just after checking smbclient. It reports: jf-ssd....

OK, but please also post your /etc/samba/smb.conf (you can remove the details about the shares, but the netbios name = in the [global] section should be included.)

JJF wrote:2. hostname: I want to keep fixed IP 10.0.0.7 , and it does not show in your commendation.


I left that part out because that entry is fine, I just listed those parts of hosts file that should be changed.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Stuck with old hostname

Postby JJF » Jan 2nd, '20, 05:22

Doktor5000

smb.conf
workgroup = frommers
server string = Samba Server Version %v

netbios name = SSDPC

; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
hosts allow = 127. 10.0.0.

; max protocol = SMB2

[global]
domain master = no
local master = yes
preferred master = yes
os level = 65
JJF
 
Posts: 216
Joined: Feb 13th, '14, 11:42

Re: Stuck with old hostname

Postby doktor5000 » Jan 3rd, '20, 19:10

Please also add the output as root of smbtree, as mentioned before.

edit: In particular, smbtree -D output might be helpful, too.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Stuck with old hostname

Postby JJF » Jan 4th, '20, 21:56

both smbtree and smbtree -D are empty
Tks JJF
JJF
 
Posts: 216
Joined: Feb 13th, '14, 11:42


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron