Skip to main content

Posts

Showing posts from February, 2014

How do you run executable files on Windows 7 using the command prompt

Add the directory of the program you're hoping to run to the PATH environment variable. doing so will mean you never have to be in the executable's containing folder to execute the .exe. You can do it from any dir which is helpful if you're in a folder where the data files are. To do this: Control Panel -> System -> Advanced -> Environment Variables Add new entry under User Environment Variables. I usually add an environment variable for the directory containing my executable(s) then add that ivar to the PATH var, as follows: ORACLE_HOME=C:\pathto\oracle\bin PATH=C:\path1;C:\path2;%ORACLE_HOME% Note that there are three dirs in my PATH and that they're separated by the ';'. Note that I point to my new ORACLE_HOME directory by enclosing it in '%'. You'll have to restart cmd.exe to see your new env variables.

OSPF (Open Shortest Path First)

Note: All routers will generate Router (Type 1) LSAs. For example, Router A will generate a Type 1 LSA that contains the status of links FastEthernet 0/0 and FastEthernet 0/1. This LSA will be flooded to all other routers in Area 1. 11, Designated Routers will generate Network (Type 2) LSAs. For example, if Router C was elected the DR for the multi-access network in Area 1, it would generate a Type 2 LSA containing a list of all routers attached to it. Area Border Routers (ABRs) will generate Network Summary (Type 3) LSAs. For example, Router C is an ABR between Area 0 and Area 1. It will thus send Type 3 LSAs into both areas. Type 3 LSAs sent into Area 0 will contain a list of networks within Area 1, including costs to reach those networks. Type 3 LSAs sent into Area 1 will contain a list of networks within Area 0, and all other areas connected to Area 0. This allows Area 1 to reach any other area, and all other areas to reach Area 1. 12, T...

Configuring NAT on Cisco Router connected to Internet & Intranet

Issue Description Hi, I am planning to configure NAT (PAT) on cisco router which is connected to Intranet (Leased-line , 10.x.x.x network) and 2nd link connected to internet. please suggust. &  help me on following Configuration : - | access-list 1 permit 192.168.0.0 0.0.0.255 ip route 10.0.0.0 255.0.0.0 10.0.0.2 ip route 0.0.0.0 0.0.0.0 171.68.1.254 ip nat inside source list 1 interface ehternet0/1 overload interface Ethernet0/1 ip address 171.68.1.1 255.255.255.240 ip nat outside interface Ethernet0/0 ip address 192.168.0.254 255.255.255.0 ip nat inside interface Ethernet0/1 ip address 10.0.0.1 255.255.255.0 Will this configuration work for both Internet & Intranet network ? Thanks in advance Resolution ; ip route 10.0.0.0 255.0.0.0 10.0.0.2 ip route 0.0.0.0 0.0.0.0  171.68.1.254 <omitted> interface Ethernet0/1 ip address  171.68.1.1 255.255.255.240 ip nat outside Internet won...

Ubuntu XRDP Blank Screen while logging

sudo apt-get install gnome-session-fallback echo “gnome-session -–session=gnome-fallback” > ~/.xsession sudo /etc/init.d/xrdp restart or echo "gnome-session --session=ubuntu-2d" > .xsession sudo /etc/init.d/xrdp restart For Ubuntu 14.04 LTS please follow the below steps, sudo apt-get install xfce4 echo xfce4-session >~/.xsession  

Tutorial: Install RabbitVCS in Ubuntu 12.04 LTS

If we are familiar with TortoiseSVN in Windows operating system to manage version control, there is also a subversion linux client is easy to use, namely RabbitVCS. RabbitVCS is a GUI based application that serves to facilitate the use of subversion. From rabbitvcs.org, " RabbitVCS is a set of graphical tools written to provide simple and straightforward access to the version control systems you use. We provide multiple clients and extensions designed to give you a uniform experience no matter what development tools you use. " What is subversion? Subversion or SVN is an open source software that can manage version control software development process become trace and orderly. After we know what is subversion and RabbitVCS, we will try to install RabbitVCS in Ubuntu 12.04 LTS. This is step-by-step to install RabbitVCS in Ubuntu 12.04 LTS: Run the Terminal and go to the root with command:  sudo su We have to add the PPA or source list repository with the follo...

Send email, check or read email using telnet

How to send email using telnet TIP: We use the domain example.com as an example. Be sure to replace with your own domain. Open your command prompt. Now, connect with telnet using the following command: telnet example.com 25 Type ehlo example.com. Some servers also accept helo in place of ehlo. ehlo example.com Type mail from: username@example.com: mail from: username@example.com Type rcpt to: friend@hotmail.com, friend2@yahoo.com (replace with your actual recipient name): rcpt to: friend@hotmail.com, friend2@yahoo.com To write the message - type data, followed by your subject and message. To end the message, put a period on a line by itself and press enter: data Subject: My Telnet Test Email Hello, This is an email sent by using the telnet command. Your friend, Me . Type quit to exit telnet. How to check or read email with telnet Open your command prompt. At the command prompt, type ...

Network Configuration in Ubuntu

Network Configuration Ubuntu ships with a number of graphical utilities to configure your network devices. This document is geared toward server administrators and will focus on managing your network on the command line. Ethernet Interfaces Ethernet interfaces are identified by the system using the naming convention of ethX , where X represents a numeric value. The first Ethernet interface is typically identified as eth0 , the second as eth1 , and all others should move up in numerical order. Identify Ethernet Interfaces To quickly identify all available Ethernet interfaces, you can use the ifconfig command as shown below. ifconfig -a | grep eth eth0 Link encap:Ethernet HWaddr 00:15:c5:4a:16:5a Another applicati...

List of basic MySql Command that are often used

This is a list of basic MySql Command that are often used . To login (from unix shell) use -h only if needed. # [mysql dir]/bin/mysql -h hostname -u root -p Create a database on the sql server. mysql> create database [databasename]; List all databases on the sql server. mysql> show databases; Switch to a database. mysql> use [db name]; To see all the tables in the db. mysql> show tables;   To see database's field formats. mysql> describe [table name];   To delete a db. mysql> drop database [database name];   To delete a table. mysql> drop table [table name];   Show all data in a table. mysql> SELECT * FROM [table name];   Returns the columns and column information pertaining to the designated table. mysql> show columns from [table name];   Show certain selected rows with the value "whatever". mysql> SELECT * FROM [table name] WHERE [field name] = "whatever";   Show all records containing the name "Bob" AND the ...

Linux Directory Structure (File System Structure) Explained with Examples

Linux Directory Structure (File System Structure) Explained with Examples Have you wondered why certain programs are located under /bin, or /sbin, or /usr/bin, or /usr/sbin? For example, less command is located under /usr/bin directory. Why not /bin, or /sbin, or /usr/sbin? What is the different between all these directories? In this article, let us review the Linux filesystem structures and understand the meaning of individual high-level directories. 1. / – Root Every single file and directory starts from the root directory. Only root user has write privilege under this directory. Please note that /root is root user’s home directory, which is not same as /. 2. /bin – User Binaries Contains binary executables. Common linux commands you need to use in single-user modes are located under this directory. Commands used by all the users of the system are located here. For example: ps, ls, ping, grep, cp. 3. /sbin – System Binaries Just like /bin, /sbin also c...