How to Give your Linux Temporary IP Address

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.

  1. Use ifconfig
  2. sudo Ifconfig eth0 192.168.1.88 netmask 255.255.255.0

  3. Add route
  4. sudo route add default gw 192.168.1.254

Where:

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

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

  1. SSH
    sudo apt-get install ssh
  2. Apache2
    sudo apt-get install apache2
  3. PHP5
    sudo apt-get install php5 libapache2-mod-php5
  4. MySQL Server
    sudo apt-get install mysql-server
  5. phpMyAdmin
    sudo apt-get install phpmyadmin

This guide is updated and tested to latest Ubuntu 10.10 and 10.04 (LTS).

How to install font in Windows 7

Two ways:

  • Double the font to open the font preview and select “Install”.
  • Go to Control Panel --> Appearance and Personalization --> Font.
    Then drag the font file and drop it to the Font Control Panel window.

How to change the IP address in Redhat Linux

After you identified the interface you want to change, edit the network configuration file:
vi /etc/sysconfig/network-scripts/ifcfg-eth0 if it is eth0;
vi /etc/sysconfig/network-scripts/ifcfg-eth1 if it is eth1.

Tag:

Upgrade Ubuntu Servers

Ubuntu 10.10 'Maverick Meerkat' just officially released; with some requests I received today how to upgrade their old server - this is for you guys:

  1. Install update-manager-core:
    sudo apt-get install update-manager-core
  2. Edit /etc/update-manager/release-upgrades and set Prompt=normal
  3. Launch the upgrade tool:
    sudo do-release-upgrade
  4. Just follow carefully the on-screen instructions.

Upgrading Intrepid to Jaunty

Using update manager:

sudo apt-get install update-manager
sudo update-manager -d

Or simply this:

sudo apt-get dist-upgrade

Update: Check this post.

Upgrading Ubuntu Servers (Hardy to Intrepid)

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:

  1. Install update-manager-core:
    sudo apt-get install update-manager-core

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

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

  1. Optionally, install SSH Client and Server (for remote access to this server)
    sudo apt-get install ssh
  2. Install Database Server
    sudo apt-get install mysql-server
  3. Install Apache2 web server
    sudo apt-get install apache2
  4. Install PHP5
    sudo apt-get install php5 libapache2-mod-php5
  5. Install PHP5-MySQL support
    sudo apt-get install php5-mysql
  6. Restart Apache
    sudo /etc/init.d/apache2 restart

Pages

Subscribe to strdoc RSS