Raspberry Pi OpenVPN Server

I heard about the Raspberry Pi VPN on the Security Now! Podcast, but I found it a few months later when looking how to set up a VPN on (you guessed it) a Raspberry Pi. The set up is almost super easy. There were prompts for how to configure the Raspberry Pi and what domain I would be using. You do need to have the Pi configured with a Pi OS, along with an Ethernet cable, micro SD card, USB charger, and one-time uses of monitor, HDMI cable, USB mouse, and USB keyboard.

If you do not have a dynamic IP address or a domain name for your home, you will have to redo the setup when your ISP changes your home’s IP address. I opted for using a domain name but the OpenVPN configuration shows my IP address. I will update this post when my IP address changes.

Your VPN’s download speeds will be equal to your home’s upload speed, with added lags due to running through a VPN and other network activity at home.

This is great for getting around public WI-FI blocking of Netflix and Amazon Video, since a paid VPN will be blocked by these providers. Nobody should be blocking your home’s IP Address (if they are using blacklists).

Sources:

Posted in Hardware, How-To, Reviews, Security | Tagged , , , , , | Leave a comment

Mac Flag’s Broken Flags

While Mac Mail is simple and works, it has a problem syncing flags with Microsoft Exchange server. It can add messages as flagged, but when removing the flags, the messages will no longer be shown as flagged but the counter will still continue counting. What is the point of flags if they are always flagged!

The one solution that worked for my from the Apple Discussion Threads is to bounce Spotlight form the terminal:

cd ./
sudo mdutil -i off
sudo mdutil -i on /

This is not ideal and I suggest cleaning out the flagged messages (or remembering what they are) in case all the messages get removed.

Sources

Posted in Apple, How-To | Tagged , , , , | Leave a comment

Removing Windows 10 Apps

The apps that come with Windows 10 are neat but they seems to always want to run and they mess with VirtuaWin. So, you can try to

  • Uninstall them from the menu. Right click on an app and select Uninstall.

But that option will be removed for the native apps.

  • Open Powershell
  • Run Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage

For more information, please see the sources below.

Sources

How to Uninstall Windows 10’s Built-in Apps (and How to Reinstall Them)

Posted in How-To, Windows | Tagged , , , , | Leave a comment

Outlook All Day Events Across Time Zones

If you are an employee of a company that has offices in two different time zones, then Microsoft Outlook is so annoying when it comes to All Day Events.

Say a coworker one hour behind you is out of the office on Wednesday. You will see a calendar event for him spanning two days, even though you know he will just be out from 9-5 his time, not literally his midnight to midnight.

Well, does Microsoft know about this bug and plan to fix it? Yes and no.

Their workaround is comically bad. Just make Out of the Offices for the time you will not be in the office during your working hours.

  1. Nobody wants to do repeating occurrences for 9-5. People want to make one OOO event.
  2. If you share your OOO with others, now their daily calendars will be filled by you.

Come on Microsoft!

Sources

Posted in Reviews, Windows | Tagged , , , , , , | Leave a comment

VirtuaWin tray flashing

The VirtuaWin tray icon will flash when a program becomes unresponsive and hangs.

In Windows 10, this happens frequently with all of the Windows 10 apps, like Mail & Calendar, Movies & TV, etc. While removing and uninstalling these apps is one solution, you can do a one time fix using VirtuaWin:

  1. Right click on VirtuaWin tray icon.
  2. Select Setup
  3. Go to the Modules tab
  4. Select WinList
  5. Select Configure
  6. Sort by the “S” column
  7. For all rows tagged with “H”
    1. Select the row
    2. Select Restore

Sources

Posted in How-To, Windows | Tagged , , , , | Leave a comment

Install NVidia on Linux Mint

If you have a NVidia graphics card, you will need to install drivers for your Linux Mint OS to use this hardware. If you got it, use it, especially if you are using multiple screens.

Follow the instructions on this website: http://www.binarytides.com/install-nvidia-drivers-linux-mint-16/

Do not install drivers from the NVidia website. The website above is simple and less manual steps. Do it.

  1. Download your driver from the NVidia website. It will be large .run file.
  2. Hold CTRL + ALT + F1 to enter into an a full screen terminal. Log in with your username.
  3. Stop your x server: sudo service mdm stop
  4. Install x-swat: sudo add-apt-repository  ppa:ubuntu-x-swat/x-updates
  5. Refresh your available sources: sudo apt-get update
  6. Install their NVidia-current, which is outdated but sets up many things to avoid errors with installing on your own: sudo apt-get install nvidia-current
  7. Restart machine: sudo reboot
  8. Do Steps 2 and 3 again to get into the full screen terminal.
  9. Run your NVIDIA*.run file: sudo ./NVIDIA*.run
  10. Follow prompts.
  11. Restart: sudo reboot
  12. If Cinnamon crashes, you will need to read this and figure out what is best for you.

Sources

Posted in How-To, Linux | Tagged , , , , , , , , | 1 Comment

Renewing Let’s Encrypt Certificate for OwnCloud

Assuming you have followed the steps in the previous article to get your certificate, then you should be able to run this if your certificate is not expired.
cd /tmp/letsencrypt
sudo ./letsencrypt-auto renew

or to get a new certificate

sudo ./letsencrypt-auto -c /path/to/domain.com.ini -d domain -d http://www.domain.com auth

That may not happen if you have done fancy stuff on your website.

Expired

Google Chrome will not go to your website, so for troubleshooting use Firefox. Letsencrypt does not follow the same warnings that Google Chrome shows. It also does not care about HSTS headers.

You are going to have to reissue the certificate because renew will not work.

Document Root

If you are telling Apache that http://www.domain.com should just be http://www.domain.com/owncloud, then anything placed  on your server for letsencrypt will not be visible you need to temporarily disable that override.

Change DocumentRoot from /var/www/owncloud to /var/www

sudo vim /etc/apache2/sites-available/ownCloud-ssl.conf
sudo vim /etc/apache2/conf-available/owncloud-ssl.conf

Certificate Location

The following is the contents of my domain.com.ini file.

rsa-key-size = 4096
server = https://acme-v01.api.letsencrypt.org/directory
text = True
authenticator = webroot
agree-tos = True
renew-by-default = True
email = email@gmail.com
webroot-path = /var/www/html

Since I set webroot-path to /var/www/html, I need to create a logical link in /var/www/ to the .well-known directory so that the verification can work.

make logical link
cd /var/www
ln -s -T html/.well-known/ .well-known

Restart Server

You can do reload> or restart but both work.
sudo service apache2 restart

Posted in How-To, Nextcloud/OwnCloud | Tagged , , , , , , , , | Leave a comment