Getting WiFi to Work on MacBook Pro Mid 2014

Getting WiFi to Work on MacBook Pro Mid 2014

Note: You MUST have an Internet connection already established to run this

Refer: https://askubuntu.com/questions/748951/wi-fi-not-working-on-mid-2014-macbook-pro-with-ubuntu-15-10

sudo apt-get update
sudo apt-get --reinstall install bcmwl-kernel-source
sudo modprobe -r b43 ssb wl brcmfmac brcmsmac bcma
sudo modprobe wl

After shutdown, you will need to run the following two commands again

sudo modprobe -r b43 ssb wl brcmfmac brcmsmac bcma
sudo modprobe wl

Tar Zip Files

Extract just a Tar file

tar -xvf yourfile.tar

Compress Files

tar -czvf name-of-archive.tar.gz /path/to/directory-or-file

Extract Files Current Folder

tar -xzvf name-of-archive.tar.gz

Extract Files to Specific Location

Target Location Must Exist

mkdir /tmp/Documents
tar -xzvf name-of-archive.tar.gz -C /tmp/Documents

Split Files Into Pieces

Refer: https://askubuntu.com/questions/54579/how-to-split-larger-files-into-smaller-parts

mkdir output
split --bytes=10M aem-6.4-authoring.tar.gz output/prefixeS

Combine the Pieces

cat prefixeS* > aem-6.4-authoring.tar.gz

Sharing Ubuntu Image

split --bytes=1000M Ubuntu1804-AEM-64GB.ova output/prefixeS
cat prefixeS* > Ubuntu1804-AEM-64GB.ova

Remove Z to NOT do compression, this includes FULL path in tar file

tar -cvf firefox-profile.tar.gz /home/mruckman/.mozilla/firefox/7sqqgk5s.default-release-1/

Boot Ubuntu from External HDD

An easy way is to create a Live CD version with Rufus using Windows and using persitence. There is probably some performance hit, but it works well, the only issue is the user automatically has sudo without a password, but possesion of the USB is the security itself.

It has a portable app version, but you need to go into advance settings to allow it to see your USB drives, before installation. Only 20.04+ versions of Ubuntu work with this, and during setup you need to give it your persistence size. I've used 200GB for my first test.

Author's Site Refer: https://rufus.ie/en/

Tutorial on how to Use Refer https://youtu.be/cHF1ByFKtZo

I have not tried this way because it risks messing up your host machines boot because it might put grub on the internal hard drive. It might be worth risking on an old Linux laptop but not a new Window installation.

Refer: https://www.zachpfeffer.com/single-post/Install-Ubuntu-on-an-External-Hard-Drive

Install Ubuntu on an External Hard Drive Home Zach's Blog.pdf

Text File Compare Using diff and grep

Make sure both input files are sorted and UPPERCASE

Lines only in file1.txt

diff -d -i -w file1.txt file2.txt | grep "^[<]" > file1-only.txt

Lines only in file2.txt

diff -d -i -w file1.txt file2.txt | grep "^[>]" > file2-only.txt

Lines common in both files

diff -u -d -i -w file1.txt file2.txt | grep -v "^[-+]" > both-files.txt