You are Here:
Linux Lite 4.6 RC1 has been released. See the Release Announcements section for more information.



Alias your Specter Meltdown Checker

Author (Read 1798 times)

0 Members and 2 Guests are viewing this topic.

Alias your Specter Meltdown Checker
« on: January 21, 2018, 12:37:14 PM »
 

trinidad

  • Moderator
  • Gold Level Poster
  • *****
  • 973
    Posts
  • Country: us
  • Reputation: 176
  • Linux Lite Member
    • dbts-analytics.com

  • Linux Lite: 4.4 64bit

  • CPU: AMD A8 5500 4 cores

  • MEMORY: 8Gb

  • VIDEO CARD: AMD/ATI Radeon HD 7560D
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.




 
Last Edit: January 21, 2018, 01:13:52 PM by trinidad
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.
 


Re: Alias your Specter Meltdown Checker
« Reply #1 on: January 21, 2018, 01:05:49 PM »
 

bfb

  • Banned
  • Occasional Poster
  • **
  • 93
    Posts
  • Country: 00
  • Reputation: 5
  • Linux Lite Member

  • Linux Lite: 3.4 64bit

  • CPU: i5

  • MEMORY: 8Gb

  • VIDEO CARD: Nvidia GeForce GTX 970
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'

Last Edit: January 21, 2018, 01:17:30 PM by bfb
 

Re: Alias your Specter Meltdown Checker
« Reply #2 on: January 21, 2018, 01:18:18 PM »
 

Moltke

  • I come here a lot
  • *****
  • 475
    Posts
  • Country: ve
  • Reputation: 66
  • Linux Lite Member

  • Linux Lite: 3.8 64bit

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750
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/
Without each others help there ain't no hope for us :)
 

Re: Alias your Specter Meltdown Checker
« Reply #3 on: January 21, 2018, 01:23:00 PM »
 

trinidad

  • Moderator
  • Gold Level Poster
  • *****
  • 973
    Posts
  • Country: us
  • Reputation: 176
  • Linux Lite Member
    • dbts-analytics.com

  • Linux Lite: 4.4 64bit

  • CPU: AMD A8 5500 4 cores

  • MEMORY: 8Gb

  • VIDEO CARD: AMD/ATI Radeon HD 7560D
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.
 

Re: Alias your Specter Meltdown Checker
« Reply #4 on: January 21, 2018, 01:28:56 PM »
 

Moltke

  • I come here a lot
  • *****
  • 475
    Posts
  • Country: ve
  • Reputation: 66
  • Linux Lite Member

  • Linux Lite: 3.8 64bit

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750
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 :)
 

Re: Alias your Specter Meltdown Checker
« Reply #5 on: January 21, 2018, 01:43:36 PM »
 

trinidad

  • Moderator
  • Gold Level Poster
  • *****
  • 973
    Posts
  • Country: us
  • Reputation: 176
  • Linux Lite Member
    • dbts-analytics.com

  • Linux Lite: 4.4 64bit

  • CPU: AMD A8 5500 4 cores

  • MEMORY: 8Gb

  • VIDEO CARD: AMD/ATI Radeon HD 7560D
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.
 

Re: Alias your Specter Meltdown Checker
« Reply #6 on: January 21, 2018, 01:51:24 PM »
 

Moltke

  • I come here a lot
  • *****
  • 475
    Posts
  • Country: ve
  • Reputation: 66
  • Linux Lite Member

  • Linux Lite: 3.8 64bit

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750
Quote
You paste the git clone link into your terminal not firefox. Works. Just checked it.

Oh..Yes, you're right  ::)  I just downloaded the script and am about to run it and see what it says. :)
Without each others help there ain't no hope for us :)
 

Re: Alias your Specter Meltdown Checker
« Reply #7 on: January 22, 2018, 11:05:48 AM »
 

bfb

  • Banned
  • Occasional Poster
  • **
  • 93
    Posts
  • Country: 00
  • Reputation: 5
  • Linux Lite Member

  • Linux Lite: 3.4 64bit

  • CPU: i5

  • MEMORY: 8Gb

  • VIDEO CARD: Nvidia GeForce GTX 970
I had  downloaded it. I'm not quite that daft  :D , 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
« Reply #8 on: January 22, 2018, 12:02:17 PM »
 

trinidad

  • Moderator
  • Gold Level Poster
  • *****
  • 973
    Posts
  • Country: us
  • Reputation: 176
  • Linux Lite Member
    • dbts-analytics.com

  • Linux Lite: 4.4 64bit

  • CPU: AMD A8 5500 4 cores

  • MEMORY: 8Gb

  • VIDEO CARD: AMD/ATI Radeon HD 7560D
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/ 
Last Edit: January 22, 2018, 12:12:03 PM by trinidad
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.
 

Re: Alias your Specter Meltdown Checker
« Reply #9 on: January 22, 2018, 01:45:55 PM »
 

Moltke

  • I come here a lot
  • *****
  • 475
    Posts
  • Country: ve
  • Reputation: 66
  • Linux Lite Member

  • Linux Lite: 3.8 64bit

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750
I had  downloaded it. I'm not quite that daft  :D , 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: [Select]
sudo ./spectre-meltdown-checker.sh that's how I did it.

By the way @trinidad 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
Without each others help there ain't no hope for us :)
 

Re: Alias your Specter Meltdown Checker
« Reply #10 on: January 22, 2018, 03:47:10 PM »
 

trinidad

  • Moderator
  • Gold Level Poster
  • *****
  • 973
    Posts
  • Country: us
  • Reputation: 176
  • Linux Lite Member
    • dbts-analytics.com

  • Linux Lite: 4.4 64bit

  • CPU: AMD A8 5500 4 cores

  • MEMORY: 8Gb

  • VIDEO CARD: AMD/ATI Radeon HD 7560D
@Moltke
 
Take solace in the fact that you are running an Ubuntu based distro with LL, and that the LL developer is very keen to do all he can to mitigate the mess for LL users. Also realize that this is an Enterprise (not home user) high risk vulnerabiity more than anything else, with unfortunate geo-political implications that will make it very expensive for large commerce oriented providers to avoid security breaches, and one likely to use multiple latent (currently inactive or not perceived as threatenting) software presences to acheive an advanced persistance threat and exploit. Just the fact that it is publicly known means that it is already probably tied to some latent APT. Computing is essentially a narrative, and as such this computing security issue will become the most recursively exploited in history, because the only real reslotution is transparency and trust, and to compound it all I fully expect the US government, some EU members, and certainly China to disallow certain of the APT mitigations as we are entering a difficult and very grey area of some nations' security efforts. Truthfully some political sabotage has already happened.

Your PC is not particularly at risk, just all the servers you connect to on the web who do track your information as much as they can in most cases. Pray for the web providers if you are religious. I do.

I will publish my views by the end of February. I will post the site when I do.

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.
 

Re: Alias your Specter Meltdown Checker
« Reply #11 on: January 22, 2018, 04:16:39 PM »
 

bfb

  • Banned
  • Occasional Poster
  • **
  • 93
    Posts
  • Country: 00
  • Reputation: 5
  • Linux Lite Member

  • Linux Lite: 3.4 64bit

  • CPU: i5

  • MEMORY: 8Gb

  • VIDEO CARD: Nvidia GeForce GTX 970
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/ 

I created a folder  in my home directory called 'spectre-meltdown-checker'  and copied the 'spectre-meltdown-checker.sh' file into it. Now it works perfectly.
Thanks for your work on this and your patience with me
 


Tags:
 


Linux Lite 4.6 RC1 has been released. See the Release Announcements section for more information.