Giter VIP home page Giter VIP logo

customshellfunctsaliases's Introduction

updateAndSecurity Info

General

  • Runs a software updater and system security check.
  • Designed for compatible Linux distributions (Arch Linux, LTS kernal here)
  • Made for end-user to be able to easily complete these two important parts of system-management
  • Is run solely through terminal commands.

Creates two shell aliases(update, security) for:

  1. Modularity, not to call the functions directly.
  2. Elevatation of env variable expansion to highest possible value.

Update function

Checks if common package managers are present and updates found ones. Uses a standard update command for each manager. Sudo is needed as they operate system-wide.

  • Looks for (command executed if found):
    1. Pacman
      • sudo pacman -Syu
    2. Yay
      • yay -Syu
    3. Snap
      • sudo snap refresh
    4. Flatpak
      • flatpak update

Security function

Based loosely off of key points from the ArchWiki Security section. it executes 4 widely-used security packages to evaluate various aspects of the system.

AIDE

AIDE is used to:

  • Checks for modified/added/deleted files throughout the total file system.
  • It creates its own database/s to check against the previous database to detect changes.
  • It is quite slow as it is reading/writing and comparing All the files.

Arch-Audit

Arch-Audit offers an analysis of all installed pacman packages, shows level of issue of package if there is one.

Rkhunter

Rkhunter is a complete system malware scan, this application shows only warnings.

Lynis

Lynis is a robust, full system security analysis tool.

How to Use

Clone the repo (or simply copy the file/s directly), then:

  1. Simply source the file directly i.e. source functions.zsh or . ./functions.zsh

  2. Add it your terminal init section to autoload it each session.

  3. Call update to run the updater with interactive security check option.

  4. Call security to only run the system security check.

install.sh

Simplified installer script for the program. Enter ./installer.sh to install. Essentially does what is suggested in the 'How to Use' section.

  • If unable to execute script, be sure to run chmod +x installer.sh in the programs directory.

customshellfunctsaliases's People

Contributors

phimmel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.