Linux

Linux: sha256 validation checksum

 

Install

apt install hashalot / sha256sum

Usage

sha256sum /home/silosix/Downloads/soft/jfrog-artifactory-oss-6.9.1.deb
e240d85b20fe27c53cb59c34a9063f785519980edfe646dca340e9e845d59bf9  /home/silosix/Downloads/soft/jfrog-artifactory-oss-6.9.1.deb

 

Tags

Linux: rdesktop

redesktop

/usr/local/bin/rdesktop -d $domain -u $username -g 1270x972 -z -r sound:local -P -x l $hostname

Params

-r sound:local sound:remote

-d $domain

-u $username

-g 1270x972

 

-P

-x

l $hostname

Tags

Linux: apt-get update Fails due to signature 'is not signed'

  • WINE was causing this due to missing keys...
  • wget the correct/updated keys fixed the issue



Add Repository
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'

Key WineHQ keys
get -nc https://dl.winehq.org/wine-builds/winehq.key && sudo apt-key add winehq.key && sudo apt update

download new repo key & add it to trusted keys
cd /tmp
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt update

sudo usermod -aG docker silosix

Session
silosix@M6500:~/scripts$ curl -fsSL https://get.docker.com -o get-docker.sh | sh
silosix@M6500:~/scripts$ curl -fsSL https://get.docker.com -o get-docker.sh
silosix@M6500:~/scripts$ ls -la
total 104
drwxrwxr-x  2 silosix silosix  4096 Jan 21 19:06 .
drwxr-xr-x 54 silosix silosix  4096 Jan 19 19:57 ..
-rw-r--r--  1 silosix silosix 13380 Jan 21 19:06 get-docker.sh
-rwxrwxr-x  1 silosix silosix   401 Jan 12 00:24 getytdl.sh
-rwxr-xr-x  
Tags

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
Subscribe to Linux