Need Java to run an application on your Linux workstation/server? Follow the steps below via the terminal to install the latest version of Java.
- Head over to http://www.java.com/en/download/manual.jsp to find the latest Linux download from your client machine.
- Look at the link for the latest Java release for Linux. Since we are using Ubuntu we do not need the RPM release. In this case, I will be downloading Java 1.7.0_25-b15 for Linux x64.
- The download url is http://javadl.sun.com/webapps/download/AutoDL?BundleId=78697
- Head over to the Linux terminal on the machine you want to install Java on, and execute the following command to download the files from Java’s website
- wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=78697
- Extract the tarball. Since wget cannot pull the filename like a modern webrbowser, you will have to reference the weird filename AutoDL?BundleId=78697
- tar -xvzf AutoDL?BundleId=78697
- Find out what the name of the folder is of the java files you extracted by listing the files in the current directory. At the time of writing this, the extracted folder I had was jre1.7.0_25, so I will continue to reference that moving forward.
- Create a folder in the usr folder for Java to reside.
- sudo mkdir /usr/java/
- Move the files we extracted Java files to the java folder
- sudo mv jre1.7.0_25/ /usr/java/
- Execute the following to enable the Java Runtime Environment
- sudo update-alternatives –install /usr/bin/java java /usr/java/jre1.7.0_25/bin/java 1
- Execute the following command to set the default Java to use
- sudo update-alternatives –config java
- Execute the following command to verify that the latest version of java is installed
- java -version
- Remove the tarball we downloaded from Java’s website to free up some space
- rm ~/AutoDL?BundleId=78697
To enable port mirror/monitoring on the Dell PowerConnect 5548 series switches, please follow the following steps:
- SSH or Telnet to the switch
- Login to the switch
- Execute the command: enable
- Execute the command: config
- Execute the command: interface gigabitethernet 1/0/##
- In this case, use the port number of the device that will be getting the traffic to analyze. This is the interface your “wireshark” machine would be connected to, to do a packet capture.
- Execute the command: port monitor gigabitethernet 1/0/##
- In this case, use the port number of the device you want to see the network traffic/activity on. For example, if my device that I wanted to monitor was on gigabit port 1/0/5, I would use that, not the machine that is going to receive the traffic (not your “wireshark” machine).
Once you are done with the forward, you can disable port monitoring/mirror by executing the following command after running through steps 1-5 again: no port monitor gigabitethernet 1/0/##
Last, if you want to see the status of your mirrored/monitored port, you can do so by executing the following command after repeating steps 1-3: show ports monitor
If you are trying to find the version number of your Cisco Mobility Services Engine, SSH into the machine and execute the following command:
You should see something similar to the output below:
[root@MYMSE ~]# /etc/init.d/msed status
STATUS: Starting MSE Platform, Waiting to check the status. MSE Platform is up, getting the status
Product name: Cisco Mobility Service Engine
Hw Version: V01
Hope this helps!
At the time of writing this, Python 2.7.3 is the latest build of the 2.7 builds. You can simply replace the wget url with the Python 3.x build you wish to download if you want to use those releases instead.
- Download the tarball
- wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
- Extract the contents
- tar -xzf Python-2.7.3.tgz
- Navigate to the extracted folder
- cd Python-2.7.3
- Configure/Install Python
- sudo make install
If you have ever wanted to view how big your hard drive/partition sizes are in Linux, but only have access to the command line interface, here is the command to do it:
df -H (This will show the partition sizes in MB, GB, TB, etc.)
fdisk -l | grep Disk (This will show the physical disks and their corresponding sizes)