Ubuntu:Resolve Sudo Name Resolution: Difference between revisions

No edit summary
No edit summary
 
Line 2: Line 2:
*Edit  <code>/etc/hostname</code> file <code>hostname</code> pada system. Berikan nama host pilihan Anda. Sebagai contoh, saya telah menetapkan nama host misal <code>inspiron-3558</code>.
*Edit  <code>/etc/hostname</code> file <code>hostname</code> pada system. Berikan nama host pilihan Anda. Sebagai contoh, saya telah menetapkan nama host misal <code>inspiron-3558</code>.


<syntaxhighlight lang="shell">vim /etc/hostname</syntaxhighlight>
vim /etc/hostname


<blockquote>'''Note:''' You will need root permission to edit the file</blockquote>
<blockquote>'''Note:''' You will need root permission to edit the file</blockquote>
Line 9: Line 9:
*Cek file <code>/etc/hosts</code> dan edit hostname pada directory <code>/etc/hostname</code>. memetakan nama host ke alamat IP. Oleh karena itu, sangat penting bagi Anda untuk mengedit nama host dalam file. Harap edit nama host yang dipetakan dengan alamat IP  
*Cek file <code>/etc/hosts</code> dan edit hostname pada directory <code>/etc/hostname</code>. memetakan nama host ke alamat IP. Oleh karena itu, sangat penting bagi Anda untuk mengedit nama host dalam file. Harap edit nama host yang dipetakan dengan alamat IP  


<syntaxhighlight lang="shell">127.0.1.1</syntaxhighlight>
127.0.1.1


*Any changes made in the files do not take effect until the system is rebooted. So, please reboot the system for the changes to take effect.
*Any changes made in the files do not take effect until the system is rebooted. So, please reboot the system for the changes to take effect.