Posts

Showing posts with the label Linux

Mengatasi masalah Sub-process /usr/bin/dpkg returned an error code (1)

1. Remove Bad Software Package If you know which software caused the errors on your system, you can remove it. Enter the command and package_name with the name of the software that is causing the problem: sudo apt-get remove ––purge package_name The ––purge option directs the system to remove config files in addition to uninstalling. This helps get rid of all traces of the offending software. Sumber : https://phoenixnap.com/kb/fix-sub-process-usr-bin-dpkg-returned-error-code-1 https://itsfoss.com/dpkg-returned-an-error-code-1/

Mengubah Google Chrome Menjadi Dark Mode di Linux

Image
Bagaimana cara mengubahnya ? masuk ke folder google chrome di /opt/google/chrome  lalu buka file google-chrome kemudian tambahkan --force-dark-mode lebih jelasnya bisa dilihat gambar di bawah ini.

Menyimpan Website dengan HTTrack

Image
Bagaimana menyimpan suatu website atau page dengan httrack ? misal saya menyimpan tutorial khusus bahas tentang codeigniter dari petanikode maka gunakan perintah ini #httrack https://www.petanikode.com/codeigniter-dompdf/ untuk menambah artikel berikutnya maka tambahkan opsi --update #httrack https://www.petanikode.com/codeigniter-login/ --update setiap bahasan artikel akan membuat folder tersendiri. Sehingga lebih mudah untuk membuka secara offline

Install Codeigniter di Linux

Image
Bagaimana cara install ci di linux ? Download codeigniter dari github #wget -c https://github.com/bcit-ci/CodeIgniter/archive/3.1.7.zip -O CodeIgniter-3.1.7.zip Kemudian unzip #unzip CodeIgniter-3.1.7.zip Copy folder CodeIgniter-3.1.7 ke folder web root /var/www/html #sudo cp -r CodeIgniter-3.1.7 /var/www/html/ci Akses melalui browser http://localhost/ci atau http://alamat_IP/ci Membuat Virtualhost Berikut ini adalah cara mengubah http://localhost/ci menjadi http://web.dev dengan konfigurasi VirtualHost di Apache. #nano /etc/apache2/sites-available/ci.conf Kemudian isi dengan <VirtualHost *:80>     ServerAdmin admin@ci.local     ServerName ci.local     DocumentRoot /var/www/html/ci     ErrorLog /var/log/codeigniter_error.log     CustomLog /var/log/codeigniter_access.log combined </VirtualHost> Kemudian aktifkan virtualhost yang baru dibuat dengan perintah #a2ensite ci.conf Edit hosts ...

Perintah Youtube-dl

youtube-dl -f 18 <link> youtube-dl --list-formats <link>