Page 1 of 1

[done]Stuck with old hostname

PostPosted: Dec 31st, '19, 20:27
by JJF
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??

Re: Stuck with old hostname

PostPosted: Dec 31st, '19, 23:45
by doktor5000
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

Re: Stuck with old hostname

PostPosted: Jan 1st, '20, 07:45
by JJF
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

Re: Stuck with old hostname

PostPosted: Jan 1st, '20, 13:14
by doktor5000
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.

Re: Stuck with old hostname

PostPosted: Jan 2nd, '20, 05:22
by JJF
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

Re: Stuck with old hostname

PostPosted: Jan 3rd, '20, 19:10
by doktor5000
Please also add the output as root of smbtree, as mentioned before.

edit: In particular, smbtree -D output might be helpful, too.

Re: Stuck with old hostname

PostPosted: Jan 4th, '20, 21:56
by JJF
both smbtree and smbtree -D are empty
Tks JJF