Postingan

Menampilkan postingan dengan label Linux

yum error: Failed to initialize NSS library on Centos 7

Today I get error when accessing yum. This may be caused by the ssh connection closed when doing update. Here the error when I typed  yum : error: Failed to initialize NSS library There was a problem importing one of the Python modules required to run yum. The error leading to this problem was:    cannot import name ts Please install a package which provides this module, or verify that the module is installed correctly. It's possible that the above module doesn't match the current version of Python, which is: 2.7.5 (default, Aug  4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] If you cannot solve this problem yourself, please go to the yum faq at:   http://yum.baseurl.org/wiki/Faq The issue will happen only on systems that are updating nss-softokn-freebl alone without updating nss and/or nspr. Here my last line yum.log and also my Centos Version. [root@db2 ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) [root@db2 ~]# date Sat J...

Upgrading MySQL 5.7 to 8.0 in RHEL/CentOS 7

MySQL 8.0 was released couple day ago. MySQL 8.0 bring some new features and improvement.  Here are the step to upgrade MySQL 5.7 to 8.0 Download the repository and install it rpm -ivh https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm  After that, do upgrade by typing yum update mysql-community-server --enablerepo=mysql80-community Wait until the update process finish. After that, type this command mysql_upgrade -u root -p<yourpassword>    If you do not do that command, you would face this following error : The user specified as a definer ('mysql.infoschema'@'localhost') does not exist . Wait until the process finish. Done, your mysql is ready. PS : In this version, MySQL change the default authentication type to caching_sha2_password. this type of authentication is not supported yet for common driver like PHP mysqli. So, for the temporary solution, you could change the default authentication typ...

NetworkManager Failed to Get Dynamic IP from DHCP Server

Anyone ever seen these (or like, not exactly the same) log in syslog? NetworkManager[1176]: <warn>  [1488945592.9428] sup-iface[0x26355b0,wlan0]: connection disconnected (reason -3)  NetworkManager[1176]: <warn>  [1488945593.0107] dhcp-listener: dhcp-event: (pid 9536) unhandled DHCP event for interface wlan0  Or your linux networkmanager difficult to connect to access point? If yes, maybe your problem is like mine. My laptop use Slackware64-current with update March, 10 2017. I faced this problem some day ago. I can't connect to some access point and when I saw the syslog, I found some line with text like above. This problem appeared because the dhcp client can't get the IP address from DHCP client. How to solve this problem? here you are : open the terminal, or open file manager with root access, because we will edit NetworkManager configuration file. edit file /etc/NetworkManager/conf.d/00-dhcp-client.conf become (focus to the red text) :...

CodeIgniter rewriting URL with FastCGI (PHP-FPM) returned 404

I got this issues some days ago, when my CI based apps returned 404 error when i accessing it. My machine is running Slackware with httpd + PHP-FPM. This issue is not appear when i used httpd/apache + mod_php. This issue is like httpd's rewrite module is not enabled. But, i have made sure that that module had been activated. After searching and googling, I found solution from here . From that article, we should be doing something tricky. And this is my new .htaccess (edited from CI's .htaccess) Options -Indexes # index file can be index.php, home.php, default.php etc. DirectoryIndex index.php # Rewrite engine RewriteEngine On # condition with escaping special chars RewriteCond $1 !^(index\.php|robots\.txt|favicon\.ico) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # the following is for rewritting under FastCGI <IfModule mod_php5.c>        RewriteRule ^(.*)$ index.php/$1 [L,QSA] </IfModule> # the following is f...

[Translate] How to Mount Asus Zenfone 5 in Slackware64-Current

I read a post in LQ, that some one found my blog about after search a keyword how to mount Asus Zenfone 5 on Linux. But he get confused cuz my article was written in Bahasa Indonesia/non english article. So, I'll repost that article. How to mount Asus Zenfone 5 on Linux, Especially Slackware64-Current: 1. Install libmtp (If u install slackware in a full option, this dependency was installed by default) 2. Plug in your usb cable/data cable from Asus Zenfone 5 to the laptop and type lsusb then find a row called ASUSTek. [root@darkstar jati]# lsusb Bus 002 Device 003: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 004: ID 5986:0294 Acer, Inc Bus 001 Device 003: ID 0489:e032 Foxconn / Hon Hai Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 ...

Eric's KDE 5 Cant Start after Upgrade Slackware64-Current Nov 22 2015

Hi all, after i upgrade slackware64-current to latest updates (22 Nov 2015), my KDE5 (Alien Package) cant start. After i read post in eric's blogs, i've updated to eric's last KDE5 update, also hacks the symlink like manciuleas comment here, (change the libudev.so.0-->libudev.so.0.13.1 symlink to libudev.so.0-->libudev.so.1.6.3 or libudev.so.0-->libudev.so.1). 'Coz the symlink change to default after reboot (link to libudev.so.0.13.1 again), I put this command on rc.local to remove the default libudev.so.0-->libudev.so.0.13.1 symlink and create a new symlink to  libudev.so.0-->libudev.so.1. i use that because libudev.so.1 is linked to libudev.so.1.6.3. This is the command: rm /lib64/libudev.so.0 ln -s /lib64/libudev.so.1 /lib64/libudev.so.0 And taraaa, KDE5 can start again. OK. thats all. thanks for reading.

Xorg Segmentation Fault After Upgrade Slackware64-Current

I've got an error in my xorg after upgrading your slackware64 current (update 21/08/2015). Xorg cant start with error segmentation fault 0x0. Searching in google, finally i got this post . The solution that i got there are: Use the default mesa (i586) package from pat plus install xf86 update from ponce. xf86-video-intel-i586 or Install mesa x86_64 ( link , download all of them and run the mesa.Slackbuild) and install the xf86-video-intel-x86_64 . after you choose one of them, reboot your laptop and taraaa, the x server can run again. Special thanks to: Ponce, Walecha

Install freerdp di Slackware64-Current update 20150421

Kemarin, setelah saya upgrade slackware current saya, banyak 3rd party package yang terinstall di laptop saya gagal running. akhirnya saya reinstall paket-paket pihak ketiga tersebut. Semua paket bisa kembali running, namun saya menemukan 1 paket yang gagal dikompile, yaitu freerdp. Setelah saya searching dan tanya ke rekan-rekan yang lebih mengerti, akhirnya saya mendapat titik terang dari Bapak Willy Sudiarto Raharjo, saya diminta untuk menggunakan script SBo hasil commit dari beliau di link http://slackbuilds.org/cgit/slackbuilds/commit/?h=willysr&id=1b244c8b19797712614f7bd6384e230675f198c0. Setelah saya menggunakan script tersebut, akhirnya paket freerdp berhasil terinstall di laptop saya.

Mount Asus Zenfone 5 (0b05:5480) di Linux

Barusan saya mendapat masalah tidak dapat mount hp android saya (Asus Zenfone 5) ke laptop saya yang terinstall Slackware64-current. Setelah mencari-cari solusi, akhirnya saya menemukannya. Caranya: 1. Install libmtp (di slackware apabila install full system sudah otomatis terinstall) 2. Colokkan hp ke laptop dengan kabel data dan ketik lsusb lalu cari baris ASUSTek. [root@darkstar jati]# lsusb Bus 002 Device 003: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 004: ID 5986:0294 Acer, Inc Bus 001 Device 003: ID 0489:e032 Foxconn / Hon Hai Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 007: ID 0b05:5480 ASUSTek Computer, Inc. Bus 003 Device 001: ID 1d6b...

Bantuan dalam menggunakan Command Linux

Assalamu’alaikum w.w. Selamat sore sahabat… pernah merasa kebingungan dalam menggunakan beberapa command yang ada di linux? bingung mau nyari penjelasan tentang opsi-opsi command? nah disini saya akan memberikan tips untuk mendapat sedikit/banyak bantuan apabila sahabat menemukan kebingungan dalam menggunakan command di linux. Berikut tipsnya: Bagi sahabat yang belum memiliki koneksi internet yang memadai (kayak saya), sahabat bisa menggunakan beberapa bantuan seperti man, help dan info yang sudah terinstall ketika sahabat menginstall SO Linux maupun aplikasi. cara penggunaannyapun sangat mudah, tinggal ketik man <command> atau info <command> atau <command> –help. Nah, opsi kedua adalah bisa melalui documentation/community distro yang sahabat gunakan. namun dengan ketentuan harus memiliki koneksi internet… hee :D Nah, mungkin itu dulu sekedar tips dari saya, apabila sahabat ada yang memiliki tips lain, bisa di share di comment.. terimakasih.. selama...

Shortcut Shutdown dan Reboot Linux

Kawan NSI, apa kabar? dah lama nih gak nulis artikel, :D Nih temen2 NSI ada yang pengguna si pinguin kan? Pasti dong. :D Kan si pinguin bisa dijadiin tempat belajar biar nggak main setir (read:mainstream), juga bisa buat menghemat pengeluaran temen2 buat beli lisensi (yang suka legal) dan mengurangi pembajakan (buat petani) karena si pinguin ini opensource dan mayoritas free. hehe nah disini admin mau ngasih tips kalo ngadepin si pinguin kena hang keseluruhan (dah ndak bisa diapa2in). Jangan kira ya kalo pake linux itu ndak bakalan kena hang, karena pada dasarnya Linux dengan OS yang lain itu sama, sama-sama berfungsi menghubungkan Hardware dengan User/Brainware. berikut tips nya: 1. kalo mau reboot tekan kombinasi keyboard Ctrl+Alt+Shift+PrtSc+B 2. kalo mau shutdown tekan kombinasi keyboard Ctrl+Alt+Shift+PrtSc+S Nah mungkin itu dulu tipsnya. Tips diatas sudah tested di Slackware-current, Linux Mint 16, LMDE. Sebenerya admin masih punya tips selain dengan kombinasikeyboard diatas, ...

File System di OS Linux Daan Windows

Windows Berikut akan saya tampilkan penjelasan dari masing masing sistem file yang ada pada sistem operasi Windows : FAT16 Sistem file FAT16 pertama kali diperkenalkan pada era MS-DOS di tahun 1981. Sistem file yang sudah berumur 27 tahun ini, pertama kali dirancang untuk menangani file yang terdapat pada floppy disk. Selanjutnya dengan beberapa perbaikan, sistem file ini mampu untuk menangani file yang terdapat pada hard disk. Keunggulan yang paling besar dari FAT16 adalah kemampuan untuk bekerja pada banyak sistem operasi yang berbeda seperti, Windows 95/98/Me, OS/2, Linux, dan beberapa versi dari UNIX. Sedangkan kelemahan terbesarnya terletak pada jumlah kluster yang terbatas untuk tiap partisinya, sehingga apabila hardisk bertambah besar maka ukuran kluster yang ada pada hardisk juga akan bertambah besar. Pada hardisk dengan besar partisi 2GB, setiap kluster mempunyai besar 32 kilobytes, artinya walaupun file yang terdapat pada hardisk tersebut lebih kecil dari 32 KB maka p...

Cara Install Aplikasi di Linux

Di bawah ini merupakan beragam cara untuk menginstall aplikasi yang ada di linux, contoh berikut adalah apabila kita mendapatkan aplikasi yang merupakan basis dari berbagai macam distro yang terkenal di linux. Linux mempunnyai beberapa varian distro antara lain distro yang terkenal adalah sebagai berikut : 1.Linux Red heat : linux ini merupakan distro yang berbasis rpm, adapun turunan dari linux red heat ini antara lainnya adalah fedora core, centos, mandriva, PCLinuxOS Cara menginstall software pada basis rpm sebagai berikut : rpm -i contoh : rpm -i xmms.rpm Cara menghapus paket yang terinstall basis rpm adalah sebagai berikut : rpm -e Contoh : rpm -e xmms Cara meng-Upgrade paket yang terinstall basis rpm adalah sebagai berikut : rpm -U 2.Linux Debian : linux ini merupakan distro yang berbasiskan deb, adapun turunan dari debian ini antara lain adalah mint, ubuntu, knopix, mepis, xandros Cara menginstall software pada basis debian sebagai berikut dpkg -i Contoh : dpkg ...