How To: Ninja your Google Searches

Google is great, but with a few tips it can be awesome!! These are the tips I found most helpful to memorize.

Noob Ninja

  • Ignore Spelling (google will correct you)
  • Only unique, descriptive keywords
  • Use quotes for exact match
    • “Pirates are awesome!” 
  • Case insensitive
    • Cats == cats
  • Ignore Special Characters
    • Wont be in the search: @#%^*()=[]\
  • Omit common words
    • a, the i
    • Put them in quotes if they are important: “a”, “the”, “i”

Read more

How to: Install Arduino IDE Ubuntu

I tried installing Arduino IDE from the repo’s through apt-get but realialized that the Arduino Yun was not listed. So I google some more and eventually installed the newest IDE and arduino Yun was finally listed.

Steps:

  1. Download Arduino IDE (file ending in .tar.xz)
  2. Extract the folder containing the files
  3. IMPORTANT: Move the folder containing the Arduino IDE files into the directory you want it to reside
    1. The installer will rely on this being the location of the Arduino IDE
  4.  In a terminal, cd into the directory containing the Arduino IDE
  5. Run the command $ sudo ./install

Note: When you run ./install, sometimes  desktop shortcut will be created but you wont be the owner (It will show up with an X and a lock) in that case run  $sudo chown <username> ~/Desktop/Arduino-IDE.desktop

How To: Disassemble Microsoft Sculpt Ergonomic keyboard and make it wired

i could not find any tutorials on how to disassemble this keyboard so I thought I’d take pics along the way to disassembling mine. I also decided to make it wired (still with the dongle!!) because I realized that if you lose the dongle, there is no way to replace it and you need to spend another $70 on a new keyboard !!! So I decided to hide it in the body of the keyboard, and that way I will never risk losing it!

Read more

Most useful shortcuts and Tweaks for macOS/Windows/Linux

This is a list of my most used shortcuts and tweaks for the different operating systems, they can save you a lot of time and make your workflow much faster through the day.

SHORTCUTS

Show/Hide Program Windows

  • macOS ==> F3 (Expose Key)
  • Linux Gnome ==> command Key
  • Windows 10 ==> command + Tab

Lock Screen

  • macOS ==> option + cmd + power == > lock Screen
  • Linux ==> command + L
  • Windows 7/10 ==> command + L

Show Desktop

  • macOS ==> cmd + F3 (Expose)
  • Linux Gnome ==> command + D
  • Windows 10 ==> command + D

Copy or Move Dragged Icon

  • macOS==> Click and drag an icon, hold option/alt before releasing
  • Linux ==> Click and drag an icon, hold ctrl before releasing

Read more

How To: Fix “The following application requires Microsoft .NET Framework 4.5: Intel® Rapid Storage Technology”

I got a startech 5.25 hot swap bay for my computer (Windows 7 on an MSI Z87-G41), hot swap wouldnt actually work. Saw that there was a new Intel® Rapid Storage Technology driver for my motherboard and decided to install it. Unfortunately I got the error “The following application requires Microsoft .NET Framework 4.5: Intel® Rapid Storage Technology” even though I had .NET 4.7 installed. After a while or looking I came across a post that helped me fix the problem.

Read more

How to: Get started with Ubuntu Gnome

This is a list of things I had to do to get Ubuntu Gnome ready to use to my liking.

  1. Enable 1600×900 resolution 
  2. Install Chrome 
  3. Install chrome-gnome-shell
  4. Disable top left hot corner
  5. Disable Screen Shield Extension when lock is disabled
  6. Tweek Tool
    1. Desktop: Enable Icons on Desktop
    2. Top Bar: Show Date on Top bar
    3. Appearance: Disable Animations
    4. Windows: Enable Minimize/Maximize
  7. Install Spotify
  8. Install Spotify-AdKiller
  9. Install KeepassX –> Software Center
  10. Install Dash to Dock
  11. Install Player Indicator
  12. Media Keys on Top Bar
  13. Install and setup OpenVPN
    1. Install and configure network-manager-openvpn-gnome
    2. Configure openVPN

 

How to: Backup files on a Mac HDD And Restore to Mac Using Linux

I had a friend’s mac stop booting so he told me to backup his mac. These are the steps I took to copy the files from the hard drive, reinstall OS X and restore the files

What you’ll need:

  1. External HDD
  2. Flash Drive 2GB
  3. Mac that wont boot up

Copy Files from Internal HDD to External

  1. Get a copy of ubuntu, put on flash drive  and boot it on the MAC
  2. Format the hard drive to EXT4 for maximum compatibility (meaning all files can be copied)
    1. Note: NTFS/FAT doesn’t allow  some characters like : or or / in the filename and those files wont be copied, so use EXT4 instead to backup the files to.
  3. In the terminal, copy files from the internal hard drive to the mac
    1. sudo cp -r /path/to/macdrives /home/user/newdirectory
    2. e.g. sudo cp -r /media/ubuntu/fromDrive /media/ubuntu/toDrive
    3. Note: you could do path/to/drive/*  so files inside drive are copied

Source: https://superuser.com/questions/600054/how-to-backup-mac-data-using-ubuntu

Change ownership of files on the MAC

  1. Execute the following commands, replace /media with the location of your media

# chown -R user:user /media/toDrive
# chmod -R 775 /media/toDrive

Note: Because we are on a live CD, change the owner to ubuntu:ubuntu 

Source: https://askubuntu.com/questions/858793/this-location-could-not-be-displayed-on-ubuntu-16-10

Reinstall OS X – Steps not in guide, do some googling

Restore Files from Linux to Mac – SCP –This proved to be the best method despite it being slow, make sure both computers are connected through ethernet

  1. Enable Remote Login in macOS Preferences
  2. SCP the files
    1. $ sudo scp -r /path/to/local/directory user@<local-ip-of-computer>:/Users/<username>/Desktop

Source: https://www.howtogeek.com/191116/how-to-share-files-between-windows-mac-and-linux-pcs-on-a-network/

-Methods to restore files that did NOT work

Restore Files by zipping and unzipping- This produced a corrupted zip file and got an “Error 20 – No a Directory” on the mac side 

  1. Compress files into a zip file (this will alleviate problem of invalid characters when transferring files to FAT/NTFS)
  2. Copy zip file to exFAT formatted
    1. This is mountable on the macOS, Linux AND Windows partition
  3. Copy zip file to macOS and extract

Restore Files from Linux to Mac – File Share — This caused too many question/prompts when transferring files and would pause transfer every time

  1. I could not find a way to mount the external HDD in ext4 filesystem to the MAC, even using FUSE or ext4fuse, installed through homebrew So I decided to:
  2. Share the files on the mac using the guide below “Share a Folder on Mac OSX” section
  3. Access it to through the linux
    1. Connect to server “afp://192.168.1.xxx” IP of mac
  4. Copy and paste the files on from the linux computer to the Mac

 

Get Started with Qubes OS 3.2 (Update: not stable)

Update 5/20/2017: After spending many hours getting Qubes to work just right, and even upgrading from 8GB to 16GB, it stopped booting (error below). I thought it was the hard drive so I bought a Crucial MX300 and lo and behold it happened again after a few hours of setting it up, so I said screw this and installed ubuntu Gnome. I think its a really cool idea, and takes a bit of time to get your head wrapped around how it works and how to use it, but it is too unstable for daily driver. What it presents is a very safe environment and easy to compartmentalize different working environments, but I don’t like the feeling of uncertainty that any update will kill the whole thing.

——————————————————–

I’m new to Qubes OS and have encountered many noob mistakes which made me go to the documentation pages.  I thought I would compile a list these links as they come up so someone who is new may have an idea of what to expect. So far it seems very well made and polished.  This is on Qubes R3.2. I bought a Dell E7450 for the purpose of installing Qubes OS and so far everything seems to be supported from FN keys to two finger scrolling. I have a 256 SSD with 8GB ram and quickly ran into memory issues when running 3VM’s, I am in the process of upgrading to 16GB.

Link to all Documentation

  1. Verifying Authenticity and Integrity of your ISO 
  2. Installation Guide (tip, use DD in Rufus otherwise you may run into EFI_MEMMAP errors!!!)
  3. Installing and updating software in VM’s 
  4. Updating fedora-23 to fedora-24
  5. How to remove VM’s manually (fedora-23 was still listed as a template VM even after removing)
  6. Copying to and from dom0
  7. Copying files between AppVM’s

Installing Chrome
1. In your Fedora TemplateVM, edit this file:
/etc/yum.repos.d/google-chrome.repo
2. Change “enabled=0” to “enabled=1”.
3. Run this command:
$ sudo dnf install google-chrome

Install Spotify
In fedora root, Note: enable firewall for ~5 min or until spotify downloads
# dnf config-manager –add-repo=http://negativo17.org/repos/fedora-spotify.repo
# dnf install spotify-client

Spotify AdKiller
1. Install Spotify Ad-Killer in template VM (fedora-24)
2. Follow this guide to make an app icon for the appVM you want https://www.qubes-os.org/doc/signal/

How To: Fix EFI_MEMMAP is not enabled when installing Qubes OS 3.2 with UEFI

I wanted to try using Qubes OS for its security and compartmentalization. The problem was that I could not even get it to install :/

Problem: Error below when trying to install

[ 0.000000] efi: EFI_MEMMAP is not enabled.
[ 0.000000] esrt: ESRT header is not in the memory map.
[ 5.901147] dracut-pre-trigger[424]: cat: /tmp/dd_disk: no such file or directory

Solution:

  1. Update RUFUS to latest version 3.14 as of this post.
  2. Select DD image onto USB drive

No trying to install, you will get the error above still but it will continue with the installer in EFI mode.

Sources:

This post directly references using the DD flag :
https://www.qubes-os.org/doc/installation-guide/
Common UEFI Errors  – https://www.qubes-os.org/doc/uefi-troubleshooting/
https://www.reddit.com/r/Qubes/comments/62fwjg/am_i_doing_something_wrong_qubes_iso_install/

 

How to: Access mysql on MAMP and import large sql files

You first need to locate the mysql binary.

$ cd /Applications/MAMP/Library/bin

then access the database

$ ./mysql -u <username> -p <dabataseName>

Note in MAMP: <username> = root

When asked for a password enter root

mysql> source <path/to/file>.sql

Sources:
http://stackoverflow.com/questions/15278375/importing-larger-sql-files-into-mysql
http://stackoverflow.com/questions/9335403/access-mamps-mysql-from-terminal