Jump to Navigation

194 - System Upgrade for ubuntu

1. Install newest version of packages on a machine

This command installs the latest versions of any out-of-date packages on your system. It never installs a package
that is not yet installed.

# sudo apt-get upgrade

2. Upgrade all packages on the system.

This command installs up-to-date version of packages, and may install additional packages.


193 - Change Host Name for Naviagent

1. create or edit a file named "agentID.txt" in /etc/Navisphere.

2. Add the hostname and IP address lines as described above. This file should contain only these two lines, without formatting.


3. Save the agentID.txt file.

192 - Search Open Ports for Linux Server

1. nmap Command.

# nmap
# nmap

2. nd Command.

# nc -z 1-1023

Run nc command with -z flag. You need to specify host name / ip along with the port range to limit and speedup operation.

3. Close a port


191 - iptables firewall configuration (RedHat)

1. Check the iptable status in Linux Server.

# iptables --line-numbers -n -L

2. Modify the configuration file.

# vi /etc/sysconfig/iptables

3. You will see default rules as follows.

190 - How to do Password Protect for awstats

awstats does not have a functionality on like login password protection.
You could configure that on the Apache Server. The following sample is that you installed awstats in the custom directory.

1. awstats URL


2. Register a user for Apache Server

189 - Delete e-mail in an IMAP Server

If you want to delete a lot of e-mails in an IMAP server from Linux commnad line .
The following script would be useful.

* imap.sh

openssl s_client -connect mail.myserver.com:993 -crlf -quiet < /root/scripts/imap.sct

* /root/scripts/imap.sct

Shell Script:

188 - ORA-28002: the password will expire within string days

It give you an error ORA-28002: the password will expire within string days.
You installed Oracle Database as it is, the default password policy is set to 180 days. You could not change
that default settings.

1. Check the profile for specific user


187 - Java Decompiler (Jad)

Jad (Java Decompiler) is a decompiler for the Java programming language. Jad provides a command-line user interface to extract source code
from class files. A graphical user interface for Jad is JadClipse which is a plugin to the Eclipse IDE.

< Install jad >

1. Download jad158e.linux.intel.zip for RedHat

URL:   http://www.varaneckas.com/jad

2. Unzip jad.zip file into any appropriate directory on your hard drive.


186 - Expect Command Tool

Expect is a tool for scripting interactive command-line tools.

In general, Expect is useful for running any program which requires interaction between the program and the user. All the interaction can be
characterized programmatically. Expect can also give the user back control (without halting the program being controlled) if desired.
Similarly, the user can return control to the script at any time.


185 - alter system flush shared_pool, buffer_cache

This command lets you clear all data from the shared pool in the system global area (SGA).
The shared pool stores Cached data dictionary information and Shared SQL and PL/SQL areas for SQL statements,
stored procedures, function, packages, and triggers. This statement does not clear shared SQL and PL/SQL areas for items
that are currently being executed. You can use this clause regardless of whether your instance has the database dismounted
or mounted, open or closed.



Subscribe to LAMP, Database and Cloud Technical Information RSS

Main menu 2

by Dr. Radut