Gagal Boot Setelah Resize Partisi Linux Mint
Teknologi / 21 Oktober 2017

Ini pengalaman yang sangat berharga saat melakukan resize partisi pada partisi root (/) di linux. Berikut kira-kita error yang tampil saat proses booting: …[sdb]  No Caching mode page found…[sdb]  Assuming drive cache: write through … Wrong diagnostic page … Failed to bind enclosure -19 Wellcome to emergency mode! After logging in, type “journalctl -xb” to view … Berikut langkah untuk memperbaikinya: Firstly, boot into a live CD or USB Find out your partition number by using sudo fdisk -l|grep Linux|grep -Ev ‘swap’ Then, list all superblocks by using the command: sudo dumpe2fs /dev/sda2 | grep superblock Replace sda2 to your drive number You should get a similar output like this Primary superblock at 0, Group descriptors at 1-6 Backup superblock at 32768, Group descriptors at 32769-32774 Backup superblock at 98304, Group descriptors at 98305-98310 Backup superblock at 163840, Group descriptors at 163841-163846 Backup superblock at 229376, Group descriptors at 229377-229382 Backup superblock at 294912, Group descriptors at 294913-294918 Backup superblock at 819200, … Choose an alternate superblock from this list, for this case alternate superblock # 32768 Now, to check and repair a Linux file system using alternate superblock # 32768: sudo fsck -b 32768 /dev/sda2 -y The -y flag is used to skip…

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…