Linux

Bash: Menu Seed Script

 

Simple seed script for creating a menu system on linux( from stackoverflow )

#!/bin/bash
# Menu Runner

PS3='Please enter choice: '
opts=("ls" "pwd" "opt3" "Quit")
select opt in "${opts[@]}"
do
    case $opt in
        "ls")
            echo "u chose ls"
            ;;
        "pwd")
            echo "u chose pwd"
            ;;
        "opt3")
            echo "u typed '$REPLY' which calls '$opt'"
            ;;
        "Quit")
            break
            ;;
            *) echo "invalid option $REPLY";;
    esac
done

 

Tags

Mint: Mint 19 Cinnamon: Install Notes

Linux Mint 19.1 Cinnamon Install Notes
==============================================

Users/Groups
=======================
add admin - setup
add & chmod 777 /home/shares/vm
add /iso , /vm-shared
sudo -H system-config-samba

 

 

 

RDP
=======================
rdesktop -g 1920x1000 -a 16 192.168.0.101

SECURITY CAM
share
smb://WORKGROUP;username@HOSTNAMEORIPADDRESS/PATH

 

 

Tags

linux: lang: chmod

 

chmod

[psqa@centos7dev www]$ chmod --help
Usage: chmod [OPTION]... MODE[,MODE]... FILE...
  or:  chmod [OPTION]... OCTAL-MODE FILE...
  or:  chmod [OPTION]... --reference=RFILE FILE...
Change the mode of each FILE to MODE.
With --reference, change the mode of each FILE to that of RFILE.

  -c, --changes          like verbose but report only when a change is made
  -f, --silent, --quiet  suppress most error messages
  -v, --verbose          output a diagnostic for every file processed
      --no-preserve-root  do not treat '/' specially (the default)
      --preserve-root    fail to operate recursively on '/'
      --reference=RFILE  use RFILE's mode instead of MODE values
  -R, --recursive        change files and directories recursively
      --help     display this help and exit
      --version  output version information and exit

Tags

Network Manager CLI Util

List & Manage Network Adapter Settings with the CLI Network Manager Util

 

  • nmcli d
    • list network cards
  • nmtui
    • GUI driven setting manager

 


Had a CentOS7 VM that I could connect to locally, but that couldn't get out to the Inet

The Host PC has Static DNS Server IPs, so the VM wasn't getting them automatically

Used this util to set the DNS server IPs and rebooted.. able to get out afterwards

 

 

Tags
Subscribe to Linux