Blog Posts

 

 

Find Files in Linux with the find command

Search for files starting in the / directory named resolv.conf

# find / -name resolv.conf -type f -print

Searches for files starting in the root directory the start with host
# find / -name  “host*” -type f -print

Finds all .html files in /usr/share/apache2/default-site/ and changes the permissions to 644 (rw-r-r–).
# find /usr/share/apache2/default-site -name “*.html” -type f -exec chmod 644 {} ;

Run Linux Apps on the Windows 10 Subsystem for Linux with Fedora and X410

Before you can install any Linux Distribution on Windows 10 you will need to install the Windows Subsystem for Linux Feature.
There are two way to install this:
1. Open a Powershell as administrator and run the following command:

PowerShell
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

2. Or you can install it in the Windows Features
Control Panel – Programs and Features – Turn Features on or off

Installing Fedora on Windows 10

Since there is no Fedora subsystem for Windows yet, I had to purchase Fedora Remix for WSL from the Windows Store. This only set me back $5. The installation process was point and click.
Open the Microsoft Store, search for Fedora, purchase Fedora remix and install

Fedora Remix

Note: There seems to be a slight issue with the clear command.
Update your packages:

Running Linux Desktop Apps

Most terminal apps seem to install fine but if you want Linux desktop apps you will need to install an X Window Server. I used X410 which sets you back $10 in the Microsoft Store.
Open the Microsoft Store and search for X410, then purchase and install.

Now that X410 is installed, lets install a Linux GUI application and test it out.
I am installing gedit.
# sudo yum install gedit

Install gedit
# sudo yum install gedit

Run gedit
# gedit

Install VMware tools on Debian and Ubuntu

Installing VMware tools on Debian and Ubuntu is not as easy as on Windows but following a the steps below should make fairly easy.

These instructions should work for VMware ESXi, VMware Workstation, and VMWare Fusion.

Login to Debian and switch to root user

Check if required packages are installed
We need to check for gcc, make, and linux-header

$ apt-cache search gcc make
$ apt-cache search linux-header

If the following packages are not installed run the Install the Required Packages commands

Install the Required Packages

$ apt-get install gcc make

$apt-get update && apt-get install linux-headers-$(uname -r)
Install VMware Tools
In VSphere right click on the server  – Guest – Install/Upgrade VMware Tools
In VMware Workstation and Fusion – Virtual Machine – Install VMware Tools
Mount the cdrom and copy the .gz file
$ mount /dev/cdrom /media/cdrom
$ cd /media/cdrom
$ cp vmwaretools-(version number).tar.gz /tmp
$ tar zxvf vmwaretools-(version number).tar.gz
$ cd vmware-tools-distrib/
$ ./vmware-install.pl
That’s it, VMware tools for Debian or  Ubuntu Linux should be installed.

Photoshop : How-To set a Longer History (More Undo/Redo Steps)

Setting a longer Undo / Redo in Photoshop

If you are like me, you love experimenting in photoshop. However, sometimes our experiments go wrong and you need to Undo them. By default, Photoshop only saves 20 history steps to save on computing power. So here is a little tutorial on how to set you maximum History steps higher.

 

Once you have photoshop open, go to Edit, go to Preferences, and open PerformancePsUndo1

 

When in performance Look to the right hand part of the window and look for the “History States”

PsUndo2

 

In my case, I need lots of undo steps, so i set my History States to 500.

PsUndo3

 

And Voila, more undo steps! make sure to set your history steps to what your computer can handle.

How To Recover Using a System Recovery Disc

How to recover your system to a previous point in time using your System Recovery Disc.

Make sure that when you start your computer you boot to your native DVD/CD drive and not to windows.

Also make sure you have the Disc inserted into your Drive or else your computer will not detect your bootable System Recovery Disc.

After you boot from your Recovery Disc you will see this…

SystemRecovery1

Click on System Restore…

SystemRecovery2

Click Next…

SystemRecovery3

In this case I had just installed windows, but for you there may be more options. Under description it shows what you had installed for that session of windows (Windows Update, Driver Updates, Installed Programs, etc). If you think your problem is there, select that system restore point and hit Next…

SystemRecovery4

If you wish to Scan for affected Programs go ahead at this point, otherwise and or afterwards hit Finish…

SystemRecovery5

This is a Warning just to make sure you know that this is a permanent change. Make sure you don’t have any important files that may be affected by this change.

Click Yes..

SystemRecovery6

It will then proceed to do its thing, wait until it says “Finished”…

SystemRecovery7

Congrats! You have successfully restored your Windows to a previous point in time. It’s like time travel, only less exciting!

All you have to do now is click Restart…

SystemRecovery8

…And voila, time travel at it’s best (or worst).

SystemRecovery9

You have now repaired Windows using the System Recovery Disk

Outlook Spam filter – Block Senders Domain

Using Microsoft Outlook Spam filter to block senders domains.

I received between two to four spam emails a day, many of which I thought I had already blocked.  After minutes of research I realized that the sender is changing the username of the email address.  This is the part of the email address that is to the left of the @ sign.  Example:  If the sender sends me an email as bob@xyz.com and I block it using block sender in Microsoft Outlook all the sender has to do is change the username to mike@xyz.com and the email will show up in my inbox.  Currently Outlook has the following options, block sender, that’s it.  What I would like is the ability to right click on a message and select Junk – Block Senders Domain.  They have the option to never block a senders domain but not to block a senders domain.  Why Microsoft would not add this feature into Outlook is beyond me.  Even Lotus Notes has the ability out of the box to block a senders domain.outlook junk email options

 

 

 

 

I tried creating a rule but did not have the options to add a senders domain to the blocked senders list.  There is a workaround, its not pretty but it works.

In Microsoft Outlook, right click on the spam email, select Junk, then select Block Sender.

On the Menu bar select Home – Junk – Junk – email options
Outlook Junk email options

 

 

 

 

Select Blocked Senders
Outlook blocked senders

 

 

 

 

 

 

 

 

Edit the address you just added to the blocked senders.
edit domain outlook

 

 

 

 

 

Delete the username and the @ sign of the email address and select OK
blocked senders Outlook

 

 

 

 

 

Select OK to close the Junk email options.  Now anything that is sent from xyz.com will go into my Junk email folder instead of Outlook.  This is an OK workaround for blocking a senders domain until I figure out how to create the appropriate rule in Outlook.  I may have to write a Visual Basic Add-In to make it work.  If anyone has a better solution for blocking a senders domain in Outlook please let me know.

How To Create a Windows System Repair Disc

Create a Windows System Repair Disc

In Windows you can create a Windows System Repair Disc incase your computer crashes.  The will allow you to recover your OS if something gets corrupted or a bad driver gets installed. In this day and age we can’t always rely on our devices to work perfectly. After all, our devices are made by humans and sometimes mistakes will happen. In light of that, we need to backup our files, make restores and keep our bases covered so that we don’t end up shooting ourselves in the foot because we didn’t want to cover our bases.

Any driver updates to windows including Windows Updates themselves can be problematic.

To start, type ” System Repair” in the search field in the Start Menu. Then click on “Create a System Repair Disc”.

SystemRepair1

 

 

 

 

 

 

 

 

 

When System Repair starts up, make sure you have a CD or DVD inserted to your Drive before you continue. (and in my case, make sure you aren’t using a drive that can’t Write.)

SystemRepair2

 

Simply wait for the installer to finish…

SystemRepair3

 

… and you are done!

Now that you have created a Windows System Repair, see my follow on article showing you how to recover using a System repair disc also called system Recovery Disk.  Click Here

Convert an SSL Certificate from pfx to p7b

Some websites require you to use a SSL client certificate to do business with them.  This allows sites easily deploy two-factor authentication.

Today I needed to convert a .pfx certificate to a .p7b.  I the past I have used openssl, but realised this could be done using the certificate store in Windows.  Here is how I did it.

I purchased the SSL certificate from Geo Trust.  I went though the steps and downloaded a cert.pfx file but site I needed to use required a .p7b file.

Right click on the .pfx file and select Install Certificate

Capture6

 

 

 

 

 

 


Check the box to Mark the key as exportable.

1

 

 

 

 

 

 

Install the .pfx file into your personal certificate store.

Export the certificate

Start – Run

2

 

 

 

 

File – Add/Remove Snap-in – Double click on Certificates – My User account – Finish

3

 

 

 

Select the Personal\Certificates folder.  Right click on the certificate – All Tasks – Export

4

 

 

 

 

 

 

 

Select .P7B then Select Next

Accept the defaults and select Next

6

 

 

 

 

 

 

 

Select the path to save the certificate file, then select Next

7

 

 

 

 

 

 

 

Select Finish and your .p7b certificate is exported.

Setting up Parental Controls on MAC OSX

You can find information for anything you can imagine on the internet. This is why it is so important we filter what our children can see and have access to. I have had many people come to me with their computers saying it is running slow, frequent advertising popping up or cannot access the internet. A common issue I have noticed is a kid will get on a computer install a free game, and when stepping through the installer will not uncheck additional software.

MacParentalControls1.1

Additional software that gets installed may cause unwanted popups or even change your DNS settings. The developer of the game makes money when you install the additional unwanted software on your computer. Remember, seldom is anything free on the internet.

Here is an example:

 

 

 

My recommendation is that kids should not be allowed to install software on a computer.

Create a user account for your child

The first account created on a MAC has administrative rights, do not let your child have access to this account.

On the DOC select System Preferences – Users and Groups
Click on the lock to make changes.

MacParentalControls1.2

You will be prompted to enter a username and password of an account that has administrative rights. Type in your username and password

 

 

 

Select the + plus sign add a user account.

MacParentalControls1.3

Select Managed with Parental Controls and fill in the account information, then select Create User.

 

 

 

 

 

For your new account make sure Enable Parental Controls is checked then click on the Open Parental Controls button.

You may be prompted to enter a administrator username and password, so type in the info.

On the left hand side select the user account you want to setup parental controls for
Setting up Parental Controls

Apps
Use Simple Finder – If you choose Use Simple Finder it will only show you the applications you have access to. Out of sight out of mind, if you want to keep your kids from complaining about what they don’t have access to this may be a good way to go.

Limit Applications – This allows the user to open only the specified applications you allow. An administrator password is required to open applications that are not allowed.

Allow App Store Apps – you can select do not allow or different age groups

Allowed Apps – 

MacParentalControls1.4

Select the applications that you want to allow. Make sure you test accessing the applications before you have your children try it. I am telling you from experience, there are many appications that have dependencies. So test is out first.

 

 

 

Check the box if you want to prevent the Doc from being modified.

People
MacParentalControls1.5In the people tab you can choose if you want to allow Game Center multiplayer games or Game Center friends. You can also limit Mail and Messages to the allowed contacts.

 

 

 

 

 

 

Time Limits
MacParentalControls1.6Gives you the ability to set what time and the amount of time your child has on the internet. This is one of the most powerful parental controls on the MAC which has been available since Lion. Microsoft added this feature in Windows 8.

 

 

 

 

 

Other
MacParentalControls1.7You can choose to disable the built-in camera, dictation, profanity in the Dictionary, printer administration, changing password, and CD/DVD burning.

 

 

 

 

 

 

Logs
MacParentalControls1.8Select the logs button to see Websites Visited, Websites Blocked, Applications accessed, and iMessages sent and received. Select done when finished

Click on the Lock to prevent further changes and select the red X to close the System Preferences.
Test your child’s account

Login to the newly created account and test the parental controls.

Website Blocker with OpenDNS

Filtering what our kids can see on the internet using OpenDNS.  At home we need to block what websites our kids can see on the internet. If you have multiple computers and tablets at home its tough to manage what they can and can’t access on the internet. You can use OpenDNS to filter what your family can see. DNS is the service that translates names into IP addresses. How OpenDNS works is you create an account on their site, configure your router or your computers to use the OpenDNS’s DNS servers instead of your internet service providers DNS, and set what internet traffic you want to filter.
Creating an OpenDNS account

Go to http://www.opendns.com – Select Home Parental Controls – OpenDNS Home – Sign up

OpenDNS1.1

 

 

 

 

 

 

 

 

 

3. Changing your DNS
Changing the DNS on your Router
Choose whether you want to setup up OpenDNS for your Router or a computer. If you have access to login to your router I recommend the changing the DNS on your router. If change your DNS on your router all the computers and tablets in the house will use the OpenDNS servers. I will step through configuring the DNS for your router, then I will show you how to set it up on your computer in section 3.2

Select Router

OpenDNS1.2

 

 

 

 

Choose your brand and model of Router and follow the instructions for changing your routers DNS.

OpenDNS1.3

 

 

 

 

 

Changing the DNS on your computer
Select Computer – Choose your operating system

OpenDNS1.4

 

 

 

 

 

Follow the instructions for changing your computer or mobile device’s DNS.

Test your settings and open the OpenDNS Dashboard

You will need to get your Public IP address. It should be displayed at the top middle of the page. Type your IP into the IP fields.

OpenDNS1.5

 

 

 

 

 

Select Add this Network – Select the IP Address Link

Select your Content Filtering level or choose Custom

OpenDNS1.6

 

 

 

 

If you choose Custom, select the categories you want to filter.

OpenDNS1.7

 

 

 

 

 

 

 

 

You can also block or allow specific domains. Type in the domain name and choose to always or never block.

OpenDNS1.8

Choose apply and allow 3 minutes for the changes to take affect.
Testing OpenDNS.  Now we need to test accessing a blocked site. In my settings I blocked Nudity and Pornography. So lets access site an adult site that does not have adware or malware on it. Playboy.com is a good testing site.
In your web browser’s address type playboy.com

OpenDNS1.9

 

 

If you receive the following response, OpenDNS is setup successfully.

OpenDNS1.10