LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alias your Specter Meltdown Checker
#1
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.




All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
Reply
#2
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'

Reply
#3
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-spectr...wn-ubuntu/
Without each others help there ain't no hope for us Smile
Need a translation service? https://www.deepl.com/es/translator
Reply
#4
git clone https://github.com/speed47/spectre-meltdown-checker.git

TC
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
Reply
#5
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
Without each others help there ain't no hope for us Smile
Need a translation service? https://www.deepl.com/es/translator
Reply
#6
You paste the git clone link into your terminal not firefox. Works. Just checked it.

TC
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
Reply
#7
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
Without each others help there ain't no hope for us Smile
Need a translation service? https://www.deepl.com/es/translator
Reply
#8
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? 
Reply
#9
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...tch-linux/ 
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
Reply
#10
(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/26...-execution

https://www.extremetech.com/computing/26...-explained
Without each others help there ain't no hope for us Smile
Need a translation service? https://www.deepl.com/es/translator
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)