-
Read Input Without Echo in Bash
I have a script that needs to be deployed in different environment as most scripts are. This script requires asking for userid, tnsname and password during deployment. I tried to use READ but it echoes the password on the screen as soon as I type it. So how can we hide the password? Here’s how.
-
MySQL Fail To Start After Upgrade to 5.1 or higher
I recently upgraded my MySQL in preparation for WordPress 3.2. The version I now have is 5.5.12. The upgrade finished without a hitch but when I tried to restart the service, the MySQL Daemon failed. Here’s the log of mysql (/var/log/mysqld.log) 110514 14:04:22 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 110514 14:04:22 [Note] Plugin…
-
Upgrading to PHP 5.3 for CentOS
I wanted to try WordPress 3.2 beta but realized that it requires at least PHP 5.2 and I’m still with 5.1.6 (the one that comes with CentOS). Here’s what I got from the interwebs. Step 1: Get webtatic PHP 5.3 Repository rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm Step 2: Update PHP yum –enablerepo=webtatic update php Step 3: Verify…
-
Run SQL Script via SQL*Plus via Prompt
If you want to run an SQL script via sqlplus in the shell prompt, the command is as below. sqlplus user/pass@connect @scriptname Don’t forget that there should be an exit command at the end of the sql. Otherwise, the sqlplus will not exit and just stop running until you manually call exit. Now, if the…
-
How To Repair Ubuntu Netbook After Upgrade Problem (WUBI)
As I have posted earlier, Ubuntu upgrade broke my installation and I had to reinstall everything from scratch. And guess what, it happened again! This time, I’ve some important files in the filesystem. And since it happened the second time, it can no longer be said as an accident. Something breaks during the upgrade and…
-
How to Install Fonts in Ubuntu
Here’s a short post about installing fonts in Ubuntu. sudo cd /usr/share/fonts/ sudo cp ~/Downloads/fonts/* ./ sudo fc-cache -f -v Take note that ~/Downloads/fonts/ is the directory where my fonts are saved. I just copied it to /usr/share/fonts/ and then refresh the font cache. I hope this helps you as much it helped me.
-
GCC Install Failure in Ubuntu
When I was trying to install build-essential (for gcc compiler), I keep getting a weird error that says “The HTTP server sent an invalid Content-Range header”. I’ve tried many times as I suspected it’s because of the spotty wifi connection and even tried installing via LAN to no avail. Numerous websites just say retry or…
-
Ubuntu Netbook Edition 10.10 is not for Netbooks
UNE 10.10 is sooo slow on my Asus eeePC 1002HA! On its current form, 10.10 is just not usable for me. It’s so slow and I need to tinker on settings to make things work. That’s something that put me away from migrating to linux earlier. One example is mounting of my hard disk partition…
-
Ubuntu Update Broke my Install
This is a bit of a rant rather than a tech note. As I’ve writtern on my previous post, I initially installed Ubuntu Netbook 10.04 on my ASUS eeePC 1002HA and upgraded it everytime a new version comes out via Ubuntu Software Center(easy and intuitive). So when the last update came out the other week,…
-
Shopping Cart Always Empty
After using suPHP on my Apache webserver and NGINX on another server, I realized that my cart systems are no longer working. Here are the symptoms I noticed. AJAX Carts does not display items When clicking checkout, the cart becomes empty After clicking update, the cart becomes empty If you look at the symptoms, you’ll…
Recent Comments