Cara Setting Hostname di CentOS 7
Teknologi / 3 Maret 2017

Cara setting hostname berikut adalah menggunakan hostnamectl (yang direkomendasikan). Selengkapnya cara setting hostname di CentOS 7 dapat menggunakan salah satu opsi berikut: hostnamectl command : Control the system hostname. This is recommended method. nmtui command : Control the system hostname using text user interface (TUI). nmcli command : Control the system hostname using CLI part of NetworkManager. Perlu juga diketahui tipe-tipe hostname sebagai berikut: Static host name assigned by sysadmin. For example, “server1”, “wwwbox2”, or “server42.cyberciti.biz”. Transient/dynamic host name assigned by DHCP or mDNS server at run time. Pretty host name assigned by sysadmin/end-users and it is a free-form UTF8 host name for presentation to the user. For example, “Vivek’s netbook”. Langkah-langkah setting hostname menggunakan hostnamectl. Melihat informasi hostname saat ini: $ hostnamectl ## OR ## $ hostnamectl status Cara melakukan setting host name: # hostnamectl set-hostname Your-New-Host-Name-Here # hostnamectl set-hostname “Your New Host Name Here” –pretty # hostnamectl set-hostname Your-New-Host-Name-Here –static # hostnamectl set-hostname Your-New-Host-Name-Here –transient Set host name ke “R2-D2” : # hostnamectl set-hostname R2-D2 Set static host name ke “server1.cyberciti.biz” : # hostnamectl set-hostname server1.cyberciti.biz –static Set pretty host name to “Senator Padme Amidala’s Laptop” : # hostnamectl set-hostname “Senator Padme Amidala’s Laptop” –pretty Verify hasil setting baru : # hostnamectl status…

Command SEMANAGE Tidak Ada Dalam SELINUX
Teknologi / 2 Maret 2017

Dalam CentOS 7 kadang command semanage tidak bisa dijalankan meskipun selinux terpasang dan enabled. Hari ini googling nemu solusinya. Kira-kira seperti berikut inilah langkah memasang semanage di CentOS 7. Jalankan perintah berikut: yum provides /usr/sbin/semanage Hasilnya kira-kira sbb: Loaded plugins: fastestmirror Determining fastest mirrors * base: mirror.nbrc.ac.in * extras: mirror.nbrc.ac.in * updates: mirror.nbrc.ac.in policycoreutils-python-2.2.5-11.el7.x86_64 : SELinux policy core python : utilities Repo : base Matched from: Filename : /usr/sbin/semanage policycoreutils-python-2.2.5-11.el7_0.1.x86_64 : SELinux policy core python : utilities Repo : updates Matched from: Filename : /usr/sbin/semanage Atau jalankan perintah berikut: yum whatprovides /usr/sbin/semanage Hasilnya kira-kira sbb: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.nbrc.ac.in * extras: mirror.nbrc.ac.in * updates: mirror.nbrc.ac.in policycoreutils-python-2.2.5-11.el7.x86_64 : SELinux policy core python : utilities Repo : base Matched from: Filename : /usr/sbin/semanage policycoreutils-python-2.2.5-11.el7_0.1.x86_64 : SELinux policy core python : utilities Repo : updates Matched from: Filename : /usr/sbin/semanage Dari hasil di atas terlihat bahwa diperlukan paket policycoreutils-python-2.2.5-11.el7_0.1.x86_64 agar dapat menjalankan command ‘semanage’. Oleh karena itu kita harus install paket tersebut. Jalankan perintah berikut: yum install policycoreutils-python Viola, perintah semanage sudah bisa dijalankan 🙂

How To Disable Javascript in Browser
Teknologi / 26 Oktober 2016

JavaScript is a standardized, cross-platform, scripting language often used within web browsers to create interactive applications for dynamic web pages. Some users may wish to disable JavaScript for its potential to present compatibility issues and leave a system or a network exposed to security vulnerabilities. This article explains how to disable JavaScript in several different web browsers. A. Mozilla Firefox Open Mozilla Firefox. In the address bar, type about:config and press enter. Click “I’ll be careful, I promise!” on the next dialogue that comes up. Find the preference named javascript.enabled. To easily find the option, type the word “javascript” in the search bar. Right-click on javascript.enabled and select “Toggle.” The status should change to “user set” and the preference should become emboldened. Close the about:config tab. B. Internet Explorer Open Internet Explorer. Click on the gear icon in the upper-right corner of the page. From the drop down menu, select “Internet Options.” Click on the “Security” tab. Select “Custom Level” and scroll around until you find the “Scripting” section. Under Active Scripting, click the “Disable” option. C. Safari Open Safari. At the top of the screen, click on the menu that is labeled “Safari.” Select “Preferences” from the resulting drop-down menu. Click…