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 31, 2005

Backing Up Active Directory

Filed under: Active Directory

How to back up Active Directory to tape or disk?

1. Go to Start –> All Programs (or Programs for Windows 2000) –> Accessories –> System Tools –> Backup.

2. Click the Advanced Mode link.

3. Click the Backup tab.

4. Check the box beside System State.

5. Check the box beside any other files, directories, or drives you would also like to back up.

6. For Backup destination, select either File or Tape depending on where you want to back up the data to.

7. For Backup media or file name, type either the name of a file or select the tape to save the backup to.

8. Click the Start Backup button twice.

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

May 8, 2005

Running with Alternate Credentials

Filed under: Windows Server

Similarly with Linux’s sudo or su commands; you can also elevate privilege in Windows Server by using runas command.

runas /user:administrator@company.com /netonly "mmc.exe"






















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