Linux

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 Give your Linux Temporary IP Address

Submitted by str on Sat, 09/24/2011 - 00:39

In some odd cases like you are troubleshooting network problem or you want to join temporarily a different VLAN or subnet, it is very handy, useful and sometimes really required to change your Ubuntu box IP Address.

Use ifconfig
sudo Ifconfig eth0 192.168.1.88 netmask 255.255.255.0

Add route
sudo route add default gw 192.168.1.254

Where:192.168.1.88 is the IP Address that you want to use.
255.255.255.0 is the subnet mask of the network you want to join
192.168.1.254 is your gateway

Install SSH-Server, Apache2, PHP5, MySQL Server and phpMyAdmin in Ubuntu

Submitted by str on Tue, 10/12/2010 - 14:01

Every time I setup a new Ubuntu LAMP (Linux Apache MySQL PHP) Server, I usually install this way:

SSH
sudo apt-get install ssh
Apache2
sudo apt-get install apache2
PHP5
sudo apt-get install php5 libapache2-mod-php5
MySQL Server
sudo apt-get install mysql-server
phpMyAdmin
sudo apt-get install phpmyadmin

This guide is updated and tested to the latest Ubuntu and Linux Mint.

How to connect to your remote Linux Desktop (Ubuntu 8.04) in Mac

Submitted by str on Thu, 05/08/2008 - 15:05

From your Mac, how you can connect to your remote Ubuntu desktop?

Note: This is also applicable to other Linux desktop with some variations in step 1-3

Open Remote Desktop Preferences
System -> Preferences -> Remote Desktop

Enable Sharing by desired

Select Security as desired

In your Mac, download and install any VNC client for Mac; I recommend using JollysFastVNC as it is really fast and joy to use :)

Using your VNC client in Mac, connect to your remote Linux desktop.
How? Well, as a Mac user, I'm sure you know to do this :)