Unsupported DEB-based OS: /etc/os-release ID ‘kali’. You can get the above error if you try to install AMD drivers on Kali Linux. Looks like by default they are looking for a system that is Ubuntu, LinuxMint or Debian.
You can resolve the issue by opening up the “amdgpu-pro-install” file and adding more OS’s that it can check for.
vi ./amdgpu-pro-install
Scroll down to line 147 where is says
ubuntu|linuxmint|debian)
and change it to
ubuntu|linuxmint|debian|kali)
The code function should look like the following.
142 function os_release() {
143 if [[ -r /etc/os-release ]]; then
144 . /etc/os-release
145
146 case "$ID" in
147 ubuntu|linuxmint|debian|kali)
148 :
149 ;;
150 *)
151 echo "Unsupported DEB-based OS: `
152 `/etc/os-release ID '$ID'" | stderr
153 exit 1
154 ;;
155 esac
156 else
157 echo "Unsupported OS" | stderr
158 exit 1
159 fi
160 }
Insert the “Guest Additions CD Image…” from the Devices menu
In the VM, open up Files/Nautilus or Dolphin and find the CD. Open a terminal in the same directory and execute the auto run script
sudo sh autorun.sh
It should pop up another window to install the guest additions. After it is installed, you’ll need to reboot the VM for the new changes to take effect.
Dig is a DNS lookup utility. It is included in most Linux distributions by default, but if it isn’t you can easily install dig with the following command.
The dig utility is apart of the dnsutils package
sudo apt-get install dnsutils -y
After it is installed, we can verify that it is working with
dig -v
For more information on how to use dig, refer to the following link.
The following is copied and pasted from the dig man page.
NAME
dig - DNS lookup utility
SYNOPSISdig [@server] [-baddress] [-cclass] [-ffilename] [-kfilename] [-m] [-pport#] [-qname]
[-ttype] [-v] [-xaddr] [-y[hmac:]name:key] [[-4] | [-6]] [name] [type] [class]
[queryopt...]
dig [-h]
dig [global-queryopt...] [query...]
DESCRIPTIONdig is a flexible tool for interrogating DNS name servers. It performs DNS lookups and
displays the answers that are returned from the name server(s) that were queried. Most DNS
administrators use dig to troubleshoot DNS problems because of its flexibility, ease of use
and clarity of output. Other lookup tools tend to have less functionality than dig.
Although dig is normally used with command-line arguments, it also has a batch mode of
operation for reading lookup requests from a file. A brief summary of its command-line
arguments and options is printed when the -h option is given. Unlike earlier versions, the
BIND 9 implementation of dig allows multiple lookups to be issued from the command line.
Unless it is told to query a specific name server, dig will try each of the servers listed
in /etc/resolv.conf. If no usable server addresses are found, dig will send the query to the
local host.
When no command line arguments or options are given, dig will perform an NS query for "."
(the root).
It is possible to set per-user defaults for dig via ${HOME}/.digrc. This file is read and
any options in it are applied before the command line arguments. The -r option disables this
feature, for scripts that need predictable behaviour.
The IN and CH class names overlap with the IN and CH top level domain names. Either use the
-t and -c options to specify the type and class, use the -q the specify the domain name, or
use "IN." and "CH." when looking up these top level domains.
SIMPLEUSAGE
A typical invocation of dig looks like:
dig @server name type
where:
server
is the name or IP address of the name server to query. This can be an IPv4 address in
dotted-decimal notation or an IPv6 address in colon-delimited notation. When the
supplied server argument is a hostname, dig resolves that name before querying that name
server.
If no server argument is provided, dig consults /etc/resolv.conf; if an address is found
there, it queries the name server at that address. If either of the -4 or -6 options are
in use, then only addresses for the corresponding transport will be tried. If no usable
addresses are found, dig will send the query to the local host. The reply from the name
server that responds is displayed.
name
is the name of the resource record that is to be looked up.
type
indicates what type of query is required — ANY, A, MX, SIG, etc. type can be any valid
query type. If no type argument is supplied, dig will perform a lookup for an A record.
You can change the default shell for a Linux user with the following command. Change “/bin/bash” to whatever shell you want and replace USERNAME with the Linux user.
chsh /bin/bash USERNAME
Enter in the users password and then log out and back in and the users shell will be whatever shell you specified. In this case bash.
You can also do this by manually editing the /etc/passwd file. Find the user by their username, and then replace the last part of the line with the new shell path.
Some Linux distributions (like Kali Linux) use /bin/sh as the default shell for new users. Changing it to bash makes the shell a little more usable.
I had issues after installing Kali Linux with apt not working, ended up there were no repositories in the apt sources list, added the following line and did an apt-get update and everything started working.
Add this line to /etc/apt/sources.list
deb http://http.kali.org/kali kali-rolling main non-free contrib