top of page
Teamwork

Packages and Updates

This page is dedicated to getting up to date and installing some of my favorite apps and utilties. This will also include some basic commands for revewing installed apps and usage

Packages & Updates

Regularly updating your Linux system is crucial for maintaining security, stability, and performance. Updates patch vulnerabilities, protecting against potential threats, and ensure compatibility with the latest hardware and software. Neglecting updates can expose your system to security risks and operational issues.

TShark is a network protocol analyzer. It lets you capture packet data from a live network, or read packets from a previously saved capture file, either printing a decoded form of those packets to the standard output or writing the packets to a file. TShark's native capture file format is pcapng format, which is also the format used by Wireshark and various other tools.

Installing a simple text editor like Nano on your Linux system is essential for efficient file editing directly from the command line. Nano offers an intuitive interface and straightforward keyboard shortcuts, making it ideal for both beginners and experienced users. With Nano, you can quickly create, modify, and manage text files, which is particularly useful for editing configuration files, writing scripts, or making quick adjustments without leaving the terminal. Its lightweight nature ensures it runs smoothly across various Linux distributions, providing a consistent and reliable editing experience.

geeksforgeeks.org

Installing utility tools like Nmap on your Linux system is essential for effective network exploration and security auditing. Nmap allows administrators to discover hosts and services on a network, providing insights into open ports, running services, and potential vulnerabilities. This information is crucial for maintaining network security and performance. Nmap is widely available across various Linux distributions, ensuring consistent functionality for network analysis tasks.

phoenixnap.com

Getting up and running faster by updating your server and installing some basic utility packages to help manage and troubleshoot. 

Everything Updates

Ubuntu

Update the systems list of packages and list new updates that are ready for install

  • sudo apt update

Install the updates to make sure you are running the most currnet supported versions of software 

  • sudo apt upgrade

--------------------------------------------------------------------------------------------------------------------------------------------------------------------

RHEL9

Update the systems list of packages and list new updates that are ready for install (dnf = Dandified YUM)

  • sudo dnf check-update

Install the updates to make sure you are running the most currnet supported versions of software 

  • sudo dnf upgrade

View Installed Packages

  • dnf list installed

Search for Specific Package 

  • dnf list installed | grep nano 

Search First 10 and Sort 

  • sudo dnf list installed | sort | head

dnf.png
dnf2.png

Search for specific package in repos

  • sudo dnf search --all wireshark

dnf4.png

Install tshark

Utilize the tshark commands by installing wireshark-cli 

Install tshark

  • sudo dnf install wireshark-cli.x86_64

Find the command switches in tshark

  • sudo tshark -h 

Execute a command to capture data from the ens160 interface to a pcap file.

I then use WInSCP to copy the files to Windows and use the GUI Wireshark to load the pcap.

  •  sudo tshark -i ens160 -w /mnt/container/mycap.pcap

    • Use CTRL+C to stop process or you can set a stop switch for time , file size etc.

Run tshark using the -a duration: switch and set it to stop after 15  seconds ​

  • sudo tshark -i ens160 -w /mnt/container/mypcap.pcap -a duration:15 ​
     

Install Nano

 Install my favorite terminal text editor that allows for simple editing of text / config files

Ubuntu

  • sudo apt install nano

RHEL 9 (dnf = Dandified YUM)

  • sudo dnf install nano

Open nano by simply typing the command and path to the file

  • nano Myfile

  • nano /home/shead/Documents/Myfile

Nano opens in edit mode by default. You can just start typing away and when you are ready to save your changes you use CTRL+O to save your work and CTRL+X to exit. See the linked button to the top right to goto a website with all list of shortcuts for Nano.

nano1.png

Click Image for Full Screen View

Install Nmap

Install the nmap network scanner that can be utilized to scan and help troublshoot network connectivity 

Ubuntu

  • sudo apt install nmap

RHEL 9 (dnf = Dandified YUM)

  • sudo dnf install nmap

Scan a single IP and common ports:

  • nmap -F 192.168.254.254

nmap1.png

Scan a subnet and look for specifc ports: (SSH, Web)

  • nmap -p 22,443 192.168.254.0/24

nmap2.png
bottom of page