Postingan

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...

Failed to Connect to SQL Server 2005 Express Edition

A moment ago, I was contacted by my friend. He faced a problem when connecting application (desktop app) to SQL Server 2005 Express Edition. Here the error message : Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed After googling it, i got solution here . The solution was simple, just  delete or rename (recommended) Ms. SQL Server Data's directory in C:\Users\<your user name>\AppData\Local\Microsoft\Microsoft SQL Server Data. After that, try connect the application with the database again and everything should work like a charm.

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) :...

Install GNU Health on openSUSE Leap 42.2

Today, i'll post about installing GNUHealth on openSUSE Leap 42.2. This topic was presented by me when openSUSE Leap 42.2 release party @Mozilla Community Space, Jakarta, Indonesia GNU Health is a Free/Libre project for health practitioners, health institutions and governments. ( health.gnu.org ) If you're Indonesian, the simple way to tell about GNU Health is that its a SIM RS (Sistem Informasi Manajemen Rumah Sakit). GNU Health covers Electronic Medical Records (EMR), Hospital Management and Health Information System (HIS). GNU Health is run on top of Tryton App and PostgreSQL Database . The core of Tryton (also called Tryton kernel) provides all the necessary functionalities for a complete application framework: data persistence, extensive modularity, users management (authentication, fine grained control for data access, handling of concurrent access of resources), workflow and report engines, web services and internationalisation. Thus constituting a comple...

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 ...