Linux Lite Forums
Alias your Specter Meltdown Checker - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: Customization (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=8)
+--- Forum: Desktop Customization (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=34)
+--- Thread: Alias your Specter Meltdown Checker (/showthread.php?tid=4874)

Pages: 1 2


Alias your Specter Meltdown Checker - trinidad - 01-21-2018

Since kernel changes, mitigations, and so forth are probably going to be nagging at us for quite a while a simple functional shortcut to the spectre-meltdown-checker in nice to have. Aliasing the commnd and saving to .bashrc is probably the most efficient way to make the application more convenient.

Open a terminal and enter:    sudo nano ~/.bashrc
Scroll down to where you see alias listed.
Below the last alias line listed add the following:
alias smck='cd spectre-meltdown-checker/;chmod +x spectre-meltdown-checker.sh;sudo ./spectre-meltdown-checker.sh'
Hit Control X, then Y, then Enter to save.
Exit the terminal.
Re-open the terminal and at the prompt type:  smck
Enter your sudo password and spectre-meltdown-checker will run.
Since the alias is added to .bashrc the command smck (for which I found no other unique instances in bash) will run the spectre-meltdown-checker for you.

Simple and clean and sensible since it is a terminal app to begin with.

TC

You may also alias the Ubuntu commands and Rok's memory leak checker in the same way.


i use alias ubusmck and roksmck.







Re: Alias your Specter Meltdown Checker - bfb - 01-21-2018

I get

$ smck
bash: cd: spectre-meltdown-checker/: No such file or directory
chmod: cannot access 'spectre-meltdown-checker.sh': No such file or directory

this is my bash

enable bash completion in interactive shells
if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
  fi
fi

alias usage='du -sk * | sort -n | perl -ne '\''($s,$f)=split(m{\t});for (qw(K M G)) {if($s<1024) {printf("%.1f",$s);print "$_\t$f"; last};$s=$s/1024}'\'
alias ls="ls --color"
alias smck='cd spectre-meltdown-checker/;chmod +x spectre-meltdown-checker.sh;sudo ./spectre-meltdown-checker.sh'




Re: Alias your Specter Meltdown Checker - Moltke - 01-21-2018

Quote:I get

$ smck
bash: cd: spectre-meltdown-checker/: No such file or directory
chmod: cannot access 'spectre-meltdown-checker.sh': No such file or directory

You have to download the script first. here: https://linuxhint.com/check-patch-spectre-meltdown-ubuntu/


Re: Alias your Specter Meltdown Checker - trinidad - 01-21-2018

git clone https://github.com/speed47/spectre-meltdown-checker.git

TC


Re: Alias your Specter Meltdown Checker - Moltke - 01-21-2018

Quote:git clone https://github.com/speed47/spectre-meltdown-checker.git

Neither this link nor the other from the one I shared works! Actually, just realized github.com seems to be down  :o


Re: Alias your Specter Meltdown Checker - trinidad - 01-21-2018

You paste the git clone link into your terminal not firefox. Works. Just checked it.

TC


Re: Alias your Specter Meltdown Checker - Moltke - 01-21-2018

Quote:You paste the git clone link into your terminal not firefox. Works. Just checked it.

Oh..Yes, you're right  :Smile  I just downloaded the script and am about to run it and see what it says. Smile


Re: Alias your Specter Meltdown Checker - bfb - 01-22-2018

I had  downloaded it. I'm not quite that daft  Big Grin , but it is in my downloads folder in a folder of its won called

"Spectre-Meltdown-Checker-Automated-master"

should I cd to there before running the instructions above? 


Re: Alias your Specter Meltdown Checker - trinidad - 01-22-2018

I don't use the LL version because I want the same updated version on all my systems so script changes I might personally make are universal across Ubu platforms. I assume the commands can be aliased the same way but the shell belongs in your home directory. Git clone is the easiest way to install this. I know Jerry automated this for LL users so if it already works for you leave it alone . However,  I assume you would just have to add a /downloads/ after ~ in the cd part of the long command to be aliased as long as you have extracted to downloads to begin with.

TC

https://www.ostechnix.com/check-meltdown-spectre-vulnerabilities-patch-linux/ 


Re: Alias your Specter Meltdown Checker - Moltke - 01-22-2018

(01-22-2018, 04:05 PM)bfb link Wrote: I had  downloaded it. I'm not quite that daft  Big Grin , but it is in my downloads folder in a folder of its won called

"Spectre-Meltdown-Checker-Automated-master"

should I cd to there before running the instructions above?

You could just right-click inside that folder and select "open terminal here" then you can run
Code:
sudo ./spectre-meltdown-checker.sh
that's how I did it.

By the way [member=5916]trinidad[/member] I read on this "speculative execution" but I still don't fully understand what this is about.

https://www.extremetech.com/computing/261792-what-is-speculative-execution

https://www.extremetech.com/computing/261439-spectre-meltdown-new-critical-security-flaws-explored-explained