-
Check if Ubuntu Linux Kernel version is 4.9
$ uname -r
-
If not, follow the link http://www.yourownlinux.com/2016/12/how-to-install-linux-kernel-4-9-0-in-linux.html instructions to update your Ubuntu Linux Kernel to 4.9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm -fr /Library/Java/JavaVirtualMachines/jdk-9.jdk/ | |
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin | |
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <ifaddrs.h> | |
#ifdef AF_LINK | |
# include <net/if_dl.h> | |
unsigned char *get_ptr(struct ifaddrs *ifaptr) { | |
if (((ifaptr)->ifa_addr)->sa_family == AF_LINK) { | |
return (unsigned char *)LLADDR((struct sockaddr_dl *)(ifaptr)->ifa_addr); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Exit on error | |
set -e | |
# Ensure script is running as root | |
if [ "$EUID" -ne 0 ] | |
then echo "WARN: Please run as root (sudo)" | |
exit 1 | |
fi |