Sunday, December 24, 2017
Friday, December 8, 2017
Installing the AWS modules for PowerShell
Since I will be sitting my AWS Associate Exam soon I decided it is best to get hands-on practice. But instead of using the AWS Management Console all the time I wanted to get my head around using the command line interface or the AWS CLI. When I browsed through the AWS FAQs I came across the fact that you could remote into your AWS infrastructure using well, PowerShell. The marriage between the two as per documents is seamless.
First to find out the version of my PowerShell, and to find that out just type in the following:
$PSVersionTable
Then as the guide says proceeded to run the following command
Install-Package -Name AWSPowerShell
Now since this being version 5 and above (5.1) the PowerShell is intelligent enough to contact the repository and download and install the requisite module. Also, this has to be run as an Administrator as technically you are installing a new component.
After the installation is finished to check if it has installed the module I ran the command
Get-Module -ListAvailable, this command lists all the modules installed currently in your version of the PowerShell.

In the next post, we will attempt to connect to the AWS using PowerShell.
First to find out the version of my PowerShell, and to find that out just type in the following:
$PSVersionTable
Then as the guide says proceeded to run the following command
Install-Package -Name AWSPowerShell
Now since this being version 5 and above (5.1) the PowerShell is intelligent enough to contact the repository and download and install the requisite module. Also, this has to be run as an Administrator as technically you are installing a new component.
After the installation is finished to check if it has installed the module I ran the command
Get-Module -ListAvailable, this command lists all the modules installed currently in your version of the PowerShell.
In the next post, we will attempt to connect to the AWS using PowerShell.
Thursday, December 7, 2017
Command of the Day - PowerShell
I wanted to list disk drives in Windows (not with DISKPART) using PowerShell. I wanted the output to look something similar to the one you get on a Linux OS.
sudo fdisk -l gives and output like this.
*sudo is required as Linux won't let you run these commands under a normal user.
After trying to be funky with variables to get the output of the 'wmic logicaldisk GET VolumeName, Size, Caption to show up in Gigabytes I had given up until I realised Powershell has a built-in command let to just do something like that!
get-psdrive –psprovider filesystem
Sometimes it takes a failed attempt to get to a successful place!
sudo fdisk -l gives and output like this.
*sudo is required as Linux won't let you run these commands under a normal user.
After trying to be funky with variables to get the output of the 'wmic logicaldisk GET VolumeName, Size, Caption to show up in Gigabytes I had given up until I realised Powershell has a built-in command let to just do something like that!
get-psdrive –psprovider filesystem
Sometimes it takes a failed attempt to get to a successful place!
Bit happening - a lot to look forward to...
Kia Ora folks, you would have recently noticed a lot more activities on this blog, yes, finally I have got the time and the ideas to move this blog forward.
It was more to do with time then ideas as the idea behind the blog remains the same to talk about technology (Linux, Windows, Android, IoS, Cisco, Juniper etc..).
I am not a person who would take a position in one camp, I love to be part of technology, be it done by the good folks at the Free Software Foundation or the big monopolies.
As long as technology removes barriers to communication, enriches lives and most importantly makes us all better humans I do not mind which camp does it or does it together.
Moving on to the blog, it has now been moved to a proper domain so when you type in http://www.korutech.services that us right here :).
More pages will be added to categorise Linux, AWS and other technologies which gives makes for a better reading which reminds me, I am reading Neil DeGrasse Tyson's Astrophysics for people in a hurry a fascinating book for someone who is curious about space and our existence but does not have the time to read through 1000s of pages. Give it a go and as always stay sharp, stay ahead, do not drink and drive.
P.S. Proud to have become a member of the Free Software Foundation.
Sunday, December 3, 2017
Command of the day - Linux
Ever wanted to know how much fish (disk space) the Penguin is gobbling up?
Well, use the following command to find out.
'df'
Simple?
It is a simple yet powerful little command.
At the terminal type in df and you will get an output which looks something like the one down below.
Did you say the robots have still not taken over?
If you wanted a human-readable format, issue the following command 'df -h'
A big shout out to the masters at Computer Hope UK and if you want to learn more head on over to Computer Hope.
Well, use the following command to find out.
'df'
Simple?
It is a simple yet powerful little command.
At the terminal type in df and you will get an output which looks something like the one down below.
Did you say the robots have still not taken over?
If you wanted a human-readable format, issue the following command 'df -h'
A big shout out to the masters at Computer Hope UK and if you want to learn more head on over to Computer Hope.
List of Open Applications through Power Shell
I wanted to know how to display a list of open applications using Power Shell.
Bit of tinkering was not helping me and I was running in to errors.
Then I came across a nifty script on StackOverFlow.
https://stackoverflow.com/a/199204/7186525
Original Credit to the author(s)
I know a little late in the game but it is as they say "better late than never".
Bit of tinkering was not helping me and I was running in to errors.
Then I came across a nifty script on StackOverFlow.
https://stackoverflow.com/a/199204/7186525
Original Credit to the author(s)
I know a little late in the game but it is as they say "better late than never".
Installing Hardinfo on Ubuntu
I was determined to find the version and type of desktop interface running on the Ubuntu.
Decided to use 'hardinfo' and lo behold the package was not installed in my Ubuntu.
Well fired up the terminal and ran
sudo -apt intsall hardinfo
OOOPSSS says Ubuntu Error!
Being a newbie to Linux and an old hand on Windows I was a bit sceptical that the error flashing up on the screen would entail me going to 10 different sites to get the answer.
Ran the command as it said and it fixed the issue! #POWEROFLINUX #WINDOWSLINUX #WINLIN #FSF #Freedom
Error corrected everyone happy!
Ohh and what was the version you say #UNITY
Decided to use 'hardinfo' and lo behold the package was not installed in my Ubuntu.
Well fired up the terminal and ran
sudo -apt intsall hardinfo
OOOPSSS says Ubuntu Error!
Being a newbie to Linux and an old hand on Windows I was a bit sceptical that the error flashing up on the screen would entail me going to 10 different sites to get the answer.
Ran the command as it said and it fixed the issue! #POWEROFLINUX #WINDOWSLINUX #WINLIN #FSF #Freedom
Error corrected everyone happy!
Ohh and what was the version you say #UNITY
Saturday, December 2, 2017
Subscribe to:
Posts (Atom)
#PowerShell HELP
PowerShell has one of the best help database built in to it, well it still has a long way to go to catch up with the Linux Man pages but yo...
-
This song reminds me of how life can truly hurt you, I know life is one of the rarest gift, but it also comes with its own trials and tribul...
-
I wanted to know how to display a list of open applications using Power Shell. Bit of tinkering was not helping me and I was running in t...