How Try Chrome OS in VirtualBox Before Buying a Chromebook
Teknologi / 31 Agustus 2017

Google’s Chromebooks run Chrome OS, a lightweight operating system based on Linux that provides you with a full Chrome browser and a basic desktop environment. Before buying a Chromebook, you may want to play with Chrome OS in a virtual machine in a window on your desktop. What You’re Getting Here’s the thing: You can’t get an official version of Chrome OS without buying a Chromebook. Google doesn’t offer a version of Chrome OS you can install on existing hardware, whether in a virtual machine or on a full laptop or desktop PC. You can only get the full version of Chrome OS on a Chromebook. However, Chrome OS—like the Chrome browser itself—is based on an open-source project. The open-source project is named Chromium OS. It includes most of Chrome OS, aside from some extra features Google adds later, including support for Android apps. We suggest using Neverware CloudReady for this. Neverware takes the Chromium OS code and modifies it to work on existing PC hardware. They then add additional enterprise management features and sell their solution to schools and businesses who want to run Chrome OS on existing PCs. However, Neverware offers a free version for home use and free virtual machines for VirtualBox and VMware. This…

Mengatasi Putus Koneksi SSH dengan Server Centos 7
Teknologi / 24 April 2017

Seringkali saya mengalami putus koneksi via SSH dengan mesin Centos 7 apabila tidak ada aktivitas beberapa saat. Ini sangat mengesalkan karena lagi-lagi harus melakukan koneksi ulang. Alhamdulillah setelah beberapa saat googling menemukan solusinya. Berikut catatan kecil dalam menangani permasalahan tersebut. Pada sisi client tambahkan (buat) file “config” di dalam direktori “.ssh” yang isinya sbb: Host * ServerAliveInterval 60 Note: Angka 60 bisa diganti sesuai kebutuhan kita. Pada sisi server edit file “/etc/ssh/sshd_config” dan aktifkan bari berikut: TCPKeepAlive yes Selamat mencoba.

Masalah Permission Denied di CentOS 7 Akibat SELINUX
Teknologi / 6 Maret 2017

Postingan ini hanya mencatat solusi untuk mengatasi permasalahan gagal akses aplikasi yang ditanam di server httpd (apache) akibat security permission pada SELinux (jika diaktifkan). 1. Cek permission SELINUX: ls -LZ 2. Lihat hasilnya: drwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 bootstrap drwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 storage 3. Ubah security dari “httpd_sys_content_t” menjadi “httpd_sys_rw_content_t” chcon -Rv -t httpd_sys_rw_content_t bootstrap/ changing security context of ‘bootstrap/app.php’ changing security context of ‘bootstrap/autoload.php’ changing security context of ‘bootstrap/cache/.gitignore’ changing security context of ‘bootstrap/cache’ changing security context of ‘bootstrap/’ changing security context of ‘storage/app/.gitignore’ changing security context of ‘storage/app/public/.gitignore’ changing security context of ‘storage/app/public’ changing security context of ‘storage/app’ changing security context of ‘storage/framework/.gitignore’ changing security context of ‘storage/framework/cache/.gitignore’ changing security context of ‘storage/framework/cache’ changing security context of ‘storage/framework/sessions/.gitignore’ changing security context of ‘storage/framework/sessions’ changing security context of ‘storage/framework/views/.gitignore’ changing security context of ‘storage/framework/views’ changing security context of ‘storage/framework’ changing security context of ‘storage/logs/.gitignore’ changing security context of ‘storage/logs’ changing security context of ‘storage/oauth-private.key’ changing security context of ‘storage/oauth-public.key’ changing security context of ‘storage/’ chcon -Rv -t httpd_sys_rw_content_t storage/ changing security context of ‘storage/app/.gitignore’ changing security context of ‘storage/app/public/.gitignore’ changing security context of ‘storage/app/public’ changing security context of ‘storage/app’ changing security context of ‘storage/framework/.gitignore’ changing security context of ‘storage/framework/cache/.gitignore’…

Memasang MariaDB di CentOS 7
Teknologi / 3 Maret 2017

Langkah singkat instalasi mariadb di mesin CentOS 7: sudo yum install mariadb-server sudo systemctl enable mariadb sudo systemctl start mariadb Akses mariadb: mysql -u root -p Secara default instalasi mariadb belum melakukan setting password, sehingga command di atas tinggal enter dan saat diminta password tinggal enter juga. Akses root Jika Anda lupa root password MariaDB, ia bisa reset (atau jika Anda ingin memberi password root pertama kali): 1. Stop the current MariaDB server instance, then restart it with an option to not ask for a password: sudo systemctl stop mariadb sudo mysqld_safe –skip-grant-tables & 2. Reconnect to the MariaDB server with the MariaDB root account: mysql -u root 3. Use the following commands to reset root’s password. Replace password with a strong password: use mysql; update user SET PASSWORD=PASSWORD(“password”) WHERE USER=’root’; flush privileges; exit 4. Then restart MariaDB: sudo systemctl start mariadb Tuning MySQL Tuning Primer can be used to optimize your MariaDB server. Ideally, the MariaDB instance should have been operating for at least 24 hours before running the tuner. The longer the instance has been running, the better advice MySQL Tuner will give. 1. The script needs the bc language installed: sudo yum install bc 2. Download MySQL Tuner to…

Memasang Apache Web Server di CentOS 7
Teknologi / 3 Maret 2017

Langkah singkat instalasi apache web server di mesin CentOS 7: yum install httpd -y systemctl start httpd systemctl enable httpd Silahkan test akses dari web browser ke alamat IP server.

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…

Cara Membuka Port Tertentu di CentOS 7
Teknologi / 3 Maret 2017

Sebelum melakukan konfigurasi terhadap firewall, yang pertama harus dilakukan adalah menginstall paket firewalld. # yum install firewalld # systemctl start firewalld # systemctl enable firewalld atau # sudo yum install firewalld # sudo systemctl start firewalld # sudo systemctl enable firewalld Cek active zone(s): # firewall-cmd –get-active-zones Buka port 80: # firewall-cmd –zone=public –add-port=80/tcp –permanent Jangan lupa reload firewall service: # firewall-cmd –reload Cek apakah port 80 telah ditambahkan ke dalam iptables rules: # iptables-save | grep 80 Untuk menambahkan source (misal 192.168.2.0/24) ke dalam zone (misal trusted) permanently, gunakan: # firewall-cmd –permanent –zone=trusted –add-source=192.168.2.0/24 success # firewall-cmd –reload success Kita juga dapat menambahkan source berdasarkan MAC address (misal 00:11:22:33:44:55) ke dalam zone (misal trusted) permanently: # firewall-cmd –permanent –zone=trusted –add-source=00:11:22:33:44:55 success # firewall-cmd –reload success Kita juga dapat membuat ipset dan menambahkan source berdasarkan ipset tersebut: # firewall-cmd –permanent –new-ipset=iplist –type=hash:ip success # firewall-cmd –reload success # firewall-cmd –ipset=iplist –add-entry=192.168.1.11 success # firewall-cmd –ipset=iplist –add-entry=192.168.1.12 success # firewall-cmd –permanent–zone=trusted –add-source=ipset:iplist success # firewall-cmd –reload success Untuk melihat list dari sources yang ada saat ini (misal yang zone trusted): # firewall-cmd –permanent –zone=trusted –list-sources 192.168.2.0/24 00:11:22:33:44:55 ipset:iplist Catatan: buang opsi –permanent jika hanya ingin menampilkan temporary settings. Contoh kasus misal kita ingin hanya allow connections ke server kita dari specific IP address (misal 1.2.3.4/32): # firewall-cmd –zone=internal –add-service=ssh –permanent success #…