baizon / Scripts

Collection of usefull scripts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scripts

This repository contains a collection of my personal scripts. I use them under Manjaro.

TODO: Complete documentation.

backup.sh

Own backup script of HOME (and some other config files). It creates a .tar.7z archive (can also be encrypted).

cleaner-arch.sh

Cleaning script for arch-based systems: It contains the following cleaning components:

  • "Pruning old package cache (paccache)"
  • "Orphan Package Removal"
  • "Cleaning thumbnails"
  • "Cleaning var/logs"
  • "Purging trash"

cleaner-deb.sh

Cleaning script for debian-based systems: It contains the following cleaning components:

  • "Purging apt cache (autoclean & clean)"
  • "Removing unused apt packages (autoremove)"
  • "Purging old kernels"
  • "Localepurge"
  • "Purging residual configs"
  • "Delete unnecessary (orphaned) packages"
  • "Cleaning thumbnails"
  • "Cleaning var/logs"
  • "Purging trash"

hdd-usage.sh

Shows the HDD usage. Using df -H command.

nfs-start.sh

Mounts and starts (with systemctl) a NFS. Configuration parameters:

  • MOUNT_OPTIONS - Mounts options of for the exports file
  • MOVIES_DISK_PATH - Folder path
  • TVSHOWS_DISK_PATH - Folder path
  • MOVIES_NFS_PATH - NFS path
  • TVSHOWS_NFS_PATH - NFS path
  • EXPORTS_FILE_PATH - Path of the exports config (/etc/exports)

nfs-stop.sh

Stops, unmounts and removes the NFS. Configuration parameters:

  • MOVIES_STRING - NFS path
  • TVSHOWS_STRING - NFS path

toggletouchpad.sh

Uses the xinput command to toggle the touchpad. Additionally a notify-send is sent with a notification of the current touchpad state.

trim

Runs a trim command for a SSD drive. There are two configuration parameter:

  • LOG - The path where the log should be saved. Default is /var/log/trim.log
  • DEVS - a list of devices, which will be affected by the trim command. Drive-list is separeted by spaces. For example "/ /home" will check the mounted root drive "/" and the "/home" drive. For every driver a notification will be displayed.

update-grub.sh

A simple script for my arch system, which runs grub-mkconfig -o /boot/grub/grub.cfg "$@".

upgrade-ums.sh

A script that upgrades Universal Media Server.

About

Collection of usefull scripts.

License:GNU General Public License v2.0


Languages

Language:Shell 100.0%