The following takes place in Kali Linux Terminal:
To change your MAC address:
--ifconfig <device> down
# ifconfig wlan0 down
--ifconfig <device> hw ether <new mac adress>
# ifconfig wlan0 hw ether 00:1d:2d:3d:4d:5d
--ifconfig <device> up
# ifconfig wlan0 up
--In Kali, if your MAC address keeps resetting back to the original, you will need to edit the NetworkManager.conf file.
# leafpad /etc/NetworkManager/NetworkManager.conf
--In the file add the following lines:
[device]
wifi.scan-rand-mac-address=no
[connection]
ethernet.cloned-mac-address=preserve wifi.cloned-mac-address=preserve
--then, ctrl-s / save
-- restart network manager
# service network-manager restart
Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts
Thursday, April 11, 2019
Changing your MAC address
Labels:
changing MAC address,
ifconfig,
kali,
linux,
MAC address,
network adapter,
network manager,
wireless adapter
Wednesday, April 10, 2019
Debian: Realtek wireless adapter setup
This is the only process that worked for me to get a Realtek RTL8188AU wireless adapter chipset working on my Debian9 system, and also how I got it to work in VirtualBox.
Realtek RTL8188AU chipset
Reinstalling Your Realtek Wireless Driver
Install and configure rtl8812au in Debian:
# sudo apt-get install linux-headers-$(uname -r) build-essential git
# git clone https://github.com/scrivy/rtl8812AU_8821AU_linux.git
# cd rtl8812AU_8821AU_linux
# make
# sudo make install
# sudo modprobe rtl8812au
# reboot
source: https://youtu.be/SWw4KDs9jko
To get VirtualBox to recognize any USB device:
If you haven't installed the extension pack for VirtualBox then just go here and follow the directions:
https://askubuntu.com/questions/25596/how-to-set-up-usb-for-virtualbox/25600#25600
If you've already installed the extension pack you may just need to run this command:
# sudo usermod -aG vboxusers <username>
Then logout/login or reboot.
You should be able to add USB devices to virtual machines now.
Read more about guest additions on virtualbox: https://www.virtualbox.org/manual/ch04.html#idp90764336
If your wireless adapter still wont show up in your virtualbox machine you may need to setup a device filter, if selecting the device doesn't work.
Go to the virtual OS setttings > USB and add a USB Device Filter, this way your virtual machine can pick up the USB device when you plug it in.
To get the device information for your filter, open usbview and select your device.
# usbview
Find your device in the list and fill out the filter with all the info you can.
Now when you load your virtual machine and plug in your USB device, virtualbox should route it to the virtual machine.
read more:
https://www.virtualbox.org/manual/UserManual.html#settings-usb
Realtek RTL8188AU chipset
Reinstalling Your Realtek Wireless Driver
Install and configure rtl8812au in Debian:
# sudo apt-get install linux-headers-$(uname -r) build-essential git
# git clone https://github.com/scrivy/rtl8812AU_8821AU_linux.git
# cd rtl8812AU_8821AU_linux
# make
# sudo make install
# sudo modprobe rtl8812au
# reboot
source: https://youtu.be/SWw4KDs9jko
To get VirtualBox to recognize any USB device:
If you haven't installed the extension pack for VirtualBox then just go here and follow the directions:
https://askubuntu.com/questions/25596/how-to-set-up-usb-for-virtualbox/25600#25600
If you've already installed the extension pack you may just need to run this command:
# sudo usermod -aG vboxusers <username>
Then logout/login or reboot.
You should be able to add USB devices to virtual machines now.
Read more about guest additions on virtualbox: https://www.virtualbox.org/manual/ch04.html#idp90764336
If your wireless adapter still wont show up in your virtualbox machine you may need to setup a device filter, if selecting the device doesn't work.
Go to the virtual OS setttings > USB and add a USB Device Filter, this way your virtual machine can pick up the USB device when you plug it in.
To get the device information for your filter, open usbview and select your device.
# usbview
Find your device in the list and fill out the filter with all the info you can.
Now when you load your virtual machine and plug in your USB device, virtualbox should route it to the virtual machine.
read more:
https://www.virtualbox.org/manual/UserManual.html#settings-usb
Labels:
alfa wireless,
debian,
linux,
realtek,
rtl8188au,
virtualbox usb
Sunday, February 24, 2019
Dual Display on Debian with AMD Radeon GPU
This is what worked for me to get a second display working on my Asus X550Z laptop with Linux Debian 9 OS. I'm simply going to copy and paste the section that I used from this website: https://linuxconfig.org/how-to-install-amdgpu-drivers-on-debian-9-stretch-linux
For a little more info you can head over there.
You just need to install some AMDGPU drivers
Yes, the drivers are open source, but they do require firmware blobs to function properly.
In your
In order for Mesa to be built with AMDGPU support, LLVM 3.9 or greater is needed. At the time of this article, 3.9 is still the latest version, but 4.0 is available as a release client.
Meanwhile, Stretch is still shipping 3.7 and 3.8 as well as 3.9. Install 3.9 or 4.X now to make sure that the older versions are not pulled in.
For a little more info you can head over there.
You just need to install some AMDGPU drivers
-------------------------------------------
Written by: Nick CongletonRequired Packages
There are still some packages that need to be installed and some things that need to be done to get the drivers working. The first thing you need to do is enable thecontrib
and non-free
repositories in Debian. Yes, the drivers are open source, but they do require firmware blobs to function properly.
In your
/etc/apt/sources.list
add contrib non-free
after main
on every line. When that's done, close your text editor and run: # apt update && apt upgradeYou should be using
apt
instead of apt-get
by now. apt
is the newer and better command. In creating this guide, kernel 4.9 was being kept back by apt-get
but installed perfectly fine with apt
. Linux Firmware
Alright, so now you're ready to install the single package that makes this possible. Because Debian doesn't ship firmware blobs by default, the required firmware is available but not installed. Install it with the command below.# apt install firmware-linuxThat's really it. Now, don't restart just yet. There is another important part.
LLVM
LLVM is required to build Mesa, and it is used by some of the graphical packages. You may be able to get by without it, but it's a good idea to make sure that your system has the right version installed, just in case.In order for Mesa to be built with AMDGPU support, LLVM 3.9 or greater is needed. At the time of this article, 3.9 is still the latest version, but 4.0 is available as a release client.
Meanwhile, Stretch is still shipping 3.7 and 3.8 as well as 3.9. Install 3.9 or 4.X now to make sure that the older versions are not pulled in.
# apt install llvm-3.9 clang-3.9
Restart and Test
-------------------------------------------
After this procedure, my 2nd display worked.
Labels:
2nd display,
2nd monitor,
amd,
debian,
dual display,
dual monitor,
linux,
radeon
Sunday, January 13, 2019
Create/Edit a file in Terminal
# cd Directory
# touch file.filetype
# nano file.filetype
enter content
ctrl-o (/save)
ctrl-x (/exit)
# cat file.filetype (/displays content)
//
NANO(1) General Commands Manual NANO(1)
NAME
nano - Nano's ANOther editor, an enhanced free Pico clone
SYNOPSIS
nano [options] [[+line[,column]] file]...
DESCRIPTION
nano is a small, free and friendly editor which aims to replace Pico,
the default editor included in the non-free Pine package. On top of
copying Pico's look and feel, nano also implements some missing (or
disabled by default) features in Pico, such as "search and replace" and
"go to line and column number".
EDITING
Entering text and moving around in a file is straightforward: typing
the letters and using the normal cursor movement keys. Commands are
entered by using the Control (^) and the Alt or Meta (M-) keys. Typing
^K deletes the current line and puts it in the cutbuffer. Consecutive
^Ks will put all deleted lines together in the cutbuffer. Any cursor
movement or executing any other command will cause the next ^K to over‐
write the cutbuffer. A ^U will paste the current contents of the cut‐
Manual page nano(1) line 1 (press h for help or q to quit)
# touch file.filetype
# nano file.filetype
enter content
ctrl-o (/save)
ctrl-x (/exit)
# cat file.filetype (/displays content)
//
NANO(1) General Commands Manual NANO(1)
NAME
nano - Nano's ANOther editor, an enhanced free Pico clone
SYNOPSIS
nano [options] [[+line[,column]] file]...
DESCRIPTION
nano is a small, free and friendly editor which aims to replace Pico,
the default editor included in the non-free Pine package. On top of
copying Pico's look and feel, nano also implements some missing (or
disabled by default) features in Pico, such as "search and replace" and
"go to line and column number".
EDITING
Entering text and moving around in a file is straightforward: typing
the letters and using the normal cursor movement keys. Commands are
entered by using the Control (^) and the Alt or Meta (M-) keys. Typing
^K deletes the current line and puts it in the cutbuffer. Consecutive
^Ks will put all deleted lines together in the cutbuffer. Any cursor
movement or executing any other command will cause the next ^K to over‐
write the cutbuffer. A ^U will paste the current contents of the cut‐
Manual page nano(1) line 1 (press h for help or q to quit)
Labels:
create file,
display file contents,
edit file,
linux,
nano
Install Virtual Box on Linux
You can download virtual box here: https://www.virtualbox.org/wiki/Linux_Downloads
Open terminal
You will have to prepare your system for virtual box installation, if you have not already.
Use the "su" command to gain super user access
# apt install gcc make
# apt install linux-headers-4.9.0-4-amd64
# apt install linux-headers-amd64
# cd Downloads
# dpkg -i virtualbox* (tab to get full filename)
# apt -f install
Finished!
Open terminal
You will have to prepare your system for virtual box installation, if you have not already.
Use the "su" command to gain super user access
# apt install gcc make
# apt install linux-headers-4.9.0-4-amd64
# apt install linux-headers-amd64
# cd Downloads
# dpkg -i virtualbox* (tab to get full filename)
# apt -f install
Finished!
Labels:
installation,
linux,
virtual machine,
virtualbox
Subscribe to:
Posts (Atom)