str[bits]

October 9, 2005

How to install Chikka and other Java Runtime Environment in Ubuntu Linux

Filed under: Linux, strdoc

In strdoc, I got a quick guide how to install Chikka and other Java Runtime Environment (JRE) in your Ubuntu Linux.

July 26, 2005

Apache-PHP-MySQL Server for Redhat

Filed under: Red Hat

After the default Minimal installation of Redhat (RHEL and FC), here are the packages you need to install to have a Apache-PHP-MySQL services running.

1. Update your System
# yum update

2. Install Database Server
# yum install mysql-server

3. Install Apache HTTP Server
# yum install httpd

4. Install PHP for Apache
# yum install php

5. Install MySQL for Apache HTTP
# yum install php-mysql

July 21, 2005

How to search and replace in vi?

Filed under: Linux

I got a friend here in work asked me “How to search and replace in vi”?

To search:

/ STRING
(Above should be known almost to all Linux/Unix users :) )

To replace:

First occurrence on current line: :s/OLD/NEW

Globally (all) on current line: :s/OLD/NEW/g

Between two lines #,#: :#,#s/OLD/NEW/g

Every occurrence in file: :%s/OLD/NEW/g

July 12, 2005

Red Hat Software Tools Included with Fedora Core

Filed under: Red Hat

neat: Creates, edits, and manages network devices

system-config-authentication: Manages user information and authentication protocol

system-config-bind: Configures Domain Name Service

system-config-boot: Manages boot loading

system-config-date: Sets date and time zone

system-config-display: Configures X to work with your PC hardware

system-config-httpd: Apache web server administration

system-config-keyboard:
Configures keyboard type

system-config-kickstart: Creates automated install script

system-config-language: Sets system language

system-config-mouse: Configures mouse type and features

system-config-netboot: Configures network booting

system-config-network: Manages system network devices and settings

system-config-nfs: Configures Network File System

system-config-packages: Manages system software

system-config-printer: Creates, edits, and manages printers

system-config-proc: Manages kernel settings and processes

system-config-rootpassword: Sets and changes root password

system-config-samba: Manages a Session Message Block (SMB) server

system-config-securitylevel: Configures firewall service

system-config-services: Starts, stops, restarts, or sets boot services

system-config-soundcard: Configures Fedora for sound

system-config-time: Sets system date and time zone

system-config-users: Manages system users

system-switch-mail: Toggles use of Sendmail or Postfix email services

June 30, 2005

Ubuntu Apache-PHP-MySQL Server

Filed under: Ubuntu

After the default normal installation of Ubuntu, here are the additional steps I need to do to have a Apache-PHP-MySQL Server.

1. Update your system.

2. Install SSH Server (for my remote access)
sudo apt-get install ssh

3. Install Database Server
sudo apt-get install mysql-server

4. Install Apache HTTP Server
sudo apt-get install apache2

5. Install PHP for Apache
sudo apt-get install php4

6. Install MYSQL for Apache
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php4-mysql

June 25, 2005

Searching String within a Directory

Filed under: Linux

If you don’t know the filename and you want to search a string within a directory (including subdirectory), you can use this grep command with some parameters:

grep -rsniH string_you_want_to_search *

June 1, 2005

su VS su -

Filed under: Linux

The dash after su makes a world of difference. Without it, you’re still in your own system environment, using your environment variables—shell, default editor, paths, and umask.

Detecting Hardware with lspci

Filed under: Linux

You’re looking at new systems, or installing Linux on a box that used to run a different OS, and you’re wondering if all the components—video, modem, Ethernet, sound—will work on Linux. The vendors can’t, or won’t, tell you if their products will work on Linux. You need to know what the chipsets are, to find out if there are Linux drivers.

Use lspci:

# /sbin/lspci
# /sbin/lspci -v
# /sbin/lspci -vv

April 14, 2005

How to disable history listing in Console mode?

Filed under: Linux

To prevent trespassers from seeing previously issued commands:
rm $HOME/.bash_history
touch $HOME/.bash_history
chmod 000 $HOME/.bash_history

April 11, 2005

Using dmesg to Collect Hardware Information

Filed under: Linux

dmesg is a record of everything detected by the kernel.

To view all dmesg output, use:
$ dmesg | less

You can also filter the output of dmesg to find specific devices.

For example, to list all USB devices, use:
$ dmesg | grep -i usb






















Get free blog up and running in minutes with Blogsome | Theme designs available here