Howto

How to Update GRUB

Submitted by str on Sun, 07/26/2015 - 11:07

Sometimes, after updating my Ubuntu Server or running sudo apt-get -f install, I have a message: The link /vmlinuz.old is a damaged link and you may need to re-run your boot loader[grub] To solve this warning, run this command: sudo update-grub

How to Install Google Chrome in Ubuntu Using Terminal

Submitted by str on Thu, 07/16/2015 - 14:12

By default, Google Chrome is not installed in Linux. Here's how to install:

  1. Download the latest current stable version of Google Chrome (64 bit)
  2. wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
  3. Install
  4. sudo dpkg -i google-chrome-stable_current_amd64.deb

In case of any error in the installation, run also this command: sudo apt-get -f install

Fast Way of Deleting Large Number of Files

Submitted by str on Tue, 08/28/2012 - 11:23

In some cases that you have hundred of thousands or even million of files in a directory that you want to delete, you will encounter this error:
/bin/rm: Argument list too long.

The problem is when you type command like rm -rf *, * is replaced with the list of all files, and usually the memory buffer allocated to shell is small to accomodate let's say million of file names.

To solve this issue, I usually use this simple command:

find . -type f -delete

How to Know the Make of Your Retina Display: Samsung or LG?

Submitted by str on Mon, 08/27/2012 - 12:34

Image retention and burn-in issues are widely <a href="https://discussions.apple.com/message/18669644#18669644">reported</a&gt; with the new Retina displays of MacBook Pro. Generally, it seems happening with displays manufactured by LG. While displays made by Samsung are OK. Samsung display are also brighter, and seem to display colors with more accuracy.

How to know the make of your display installed in your MacBook Pro?

How to remove (hide) "Submitted by" in Drupal

Submitted by str on Fri, 08/24/2012 - 23:04

In some of my sites, I don't want to include Submitted by in each post. Going to content type admin settings, I can disable that line entire line including the timestamp of posting, but that is not my requirement. I only want the author information to be remove or to hide.

Here's how I solve this case:

Edit node.module under modules/node directory. In Drupal 7.15, the section that you need to edit is in line 1469
vi +1469 node.module

Upgrading Ubuntu Servers (Hardy to Intrepid)

Submitted by str on Wed, 12/17/2008 - 23:47

If you are using Hardy Server or any other older versions of Ubuntu Server, and you want to upgrade to Intrepid Server or any other future latest Ubuntu Server releases, here are the simple steps...

But before that, please take note that upgrade will not take place by default because 8.10 is not a Long Term Support (LTS) release.

Very important, be sure that you have all updates applied to Ubuntu 8.04 LTS before you upgrade to 8.10.

Here are now the steps:

Ubuntu 8.10 (Intrepid Ibex) Apache-PHP-MySQL Server

Submitted by str on Wed, 12/17/2008 - 22:58

Simple installation of Apache, PHP and MySQL in Ubuntu 8.10 (Intrepid Ibex).

Optionally, install SSH Client and Server (for remote access to this server)
sudo apt-get install ssh

Install Database Server
sudo apt-get install mysql-server

Install Apache2 web server
sudo apt-get install apache2

Install PHP5
sudo apt-get install php5 libapache2-mod-php5

Install PHP5-MySQL support
sudo apt-get install php5-mysql

Restart Apache
sudo /etc/init.d/apache2 restart