Posts: 1,542
Threads: 147
Joined: Mar 2016
Reputation:
4
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.
(This post was last modified: 01-21-2018, 06:13 PM by
trinidad.)
Posts: 93
Threads: 8
Joined: Dec 2014
Reputation:
0
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'
(This post was last modified: 01-21-2018, 06:17 PM by
bfb.)
Posts: 1,542
Threads: 147
Joined: Mar 2016
Reputation:
4
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.
Posts: 1,542
Threads: 147
Joined: Mar 2016
Reputation:
4
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.
Posts: 93
Threads: 8
Joined: Dec 2014
Reputation:
0
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?
Posts: 1,542
Threads: 147
Joined: Mar 2016
Reputation:
4
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.
(This post was last modified: 01-22-2018, 05:12 PM by
trinidad.)