Monday 11 July 2016

Kali Linux - VMware Workstation 12 Error Kernel 4.6.0-amd64 Not Found Error

After update my Kali Linux - I wanted to carry on working on my VM labs using VMware Workstation, the problem is that I could not longer loud. VMware Workstation 12

Every time I tried to load - this error was loading up. ERROR Kernel 4.6.0-amd64 not found 


What I tried this approach from Kali Linux forum but it didn't help

e.g 1 from https://forums.kali.org/showthread.php?31734-Vmware-Kernel-Module-Updater-Issues-with-latest-Kernel-version-4-6-0-kali1-amd64&highlight=Vmware+kernel+issues :

Solution or Workaround: Modify 2 files in /usr/lib/vmware/modules/source/vmmon.tar and /usr/lib/vmware/modules/source/vmnet.tar
Steps:
1- Extract /usr/lib/vmware/modules/source/vmmon.tar
2- Modify /vmmon-only/linux/hostif.c
3- Replace "get_user_pages" to "get_user_pages_remote" 
4- tar and replace original
5- Extract /usr/lib/vmware/modules/source/vmnet.tar
6- Modify ./vmnet-only/userif.c
7- Replace "get_user_pages" to "get_user_pages_remote" 
8- tar and replace original
Now you should be able to compile the modules successfully.
Tested on Kali Linux 2016 with kernel 4.6.

It was still failing ..

Then - I removed VMware completely from my system and clean dkpg ..



The Edited the /etc/apt/source.list file with this two repositories ..

e.g 2:

Edit your sources.list

The easiest way is to edit the /etc/apt/sources.list
root@kali:~# vi /etc/apt/sources.list
(or)
root@kali:~# leafpad /etc/apt/sources.list

Add official repo’s only:

Copy paste the following repositories (remove existing lines or you can comment them out – your take). Following repo list was taken from official Kali sources.list Repositories page:
# Regular repositories
deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free
# Source repositories

Then ...

Clean your apt-get

apt-get clean

Do an apt-get update

apt-get update

Do an upgrade

apt-get upgrade

Finally do a distribution upgrade

apt-get dist-upgrade
That’s it, you’re set.

Then, Install the Kernel headers  ...



Then ...

Install VMware Workstation 12 on Kali 



And That's all done ...

How to Complete Uninstall VMware Workstation from Kali Linux, Ubuntu 15 - 16 and Debian 7/8

VMWare Workstation doesn't ship in a deb, so it isn't registered in dpkg (which is why you can't find it in the software center). It does have an install and uninstall utility though.
To uninstall VMWare Workstation, you will need to run:
sudo vmware-installer --uninstall-product vmware-workstation  
If you just run:
vmware-installer
by itself, it will print all the options you have available. If you run:
vmware-installer -l
It will print a list of all VMWare products you have installed.
Similarly, to uninstall VMWare Player:
sudo vmware-installer --uninstall-product vmware-player

Monday 13 April 2015

Elasticseach - Shards allocation error

After follow the Guidelines from Elastic documentation. In order to recover unassigned shard on TEST Env elasticsearch cluster. I got this error..

" {"error":"RemoteTransportException[[node01][inet[/ipaddess:9300]][cluster:admin/reroute]]; nested: ElasticsearchIllegalArgumentException[[allocate] trying to allocate a primary shard [.shardname1][0], which is disabled]; ","status":400} "
Resolved with ...

"
#!/bin/bash
for shard in $(curl -XGET http://localhost:9200/_cat/shards | grep UNASSIGNED | awk '{print $2}'); do
  # This have to be commented
  curl -XPOST 'localhost:9200/_cluster/reroute' -d '{
    "commands": [
      {
      "allocate": {
          "index": "index_name",
          "shard": 1,
              "node": "node1",
              "allow_primary": true
          }
        }
    ]
  }'
  sleep 5
done
"

So, I would like to ask you whether, I should try to recover the data or just disable it at all.
:-) Dont worry I managed to fix it and re-assigned the shards ...

Tuesday 24 March 2015

Error while trying to update Ubuntu 14.04 LTS

Hi all this morning, as usual I was kind updating my Ubuntu and part of my normal system maintenance check up and find this error, while trying to update my system.


It seems strange to me, after a quick google - I found a work around on this website on AskUbuntu forum.. http://askubuntu.com/questions/599112/google-chrome-ppa-upgrade-invalid-signature.

"
Open a terminal and enter the following:
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
 
That will import Google's updated GPG Key.

You should be able to update the system without any errors.
Source: Google Linux Repositories
"

Secure Your Azure DevOps Pipeline: GitHub Advanced Security to the Rescue

  Stop Shipping Your Passwords to Production: How GitHub Advanced Security for Azure DevOps Saves the Day (and Your Reputation) Let's fa...