Agile Musings

Friday, January 27, 2017

How to run Plex Media Server as a Windows Service

in case their post goes away sometime in the future
I previously wrote a blog about setting up Plex Media Server as a service in Windows. However, since then I have come across a new 3rd party service manager that is, in my opinion, easier to setup and use. 
You first need to download the NSSM (Non-Sucking Service Manager) exe from here. The file will be a zip file.  Extract this zip file to a folder on your desktop. 
Inside the extracted folder, you will see a win32 and win64 folder. If you are using Windows 32-bit then you want the nssm.exe file from the win32 folder. If you are using Windows 64-bit, you will need the nssm.exe file from the win64 folder. Copy the correct nssm.exe file for your Windows OS to C:\Windows\system32 
Now, run a command prompt as Administrator. The easiest way to do this is click on start and type cmd. When you see Command Prompt appear in the search results, press CTRL + SHIFT + ENTER or right click on Command Prompt and select “Run as Administrator”. 
Inside of the Administrator Command Prompt, eneter the command: nssm install 
This will launch the NSSM Service Installer.  You now simply need to fill out the needed fields as follows: 
1. On the Application tab, enter:
  - For Windows 32-bit:
     - Path: C:\Program Files\Plex\Plex Media Server\Plex Media Server.exe
     - Startup Directory: C:\Program Files\Plex\Plex Media Server
  - For Windows 64-bit:
     - Path: C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe
     - Startup Directory: C:\Program Files (x86)\Plex\Plex Media Server
2. On the Details tab, enter:
  - Display Name: Plex Media Server (or whatever you would like the service to display as)
  - Startup Type: Automatic
3. On the Logon tab, enter:
  - Choose “This account” radio button.
  - Enter the username under which Plex should run. If you are in a domain, enter your username as: DOMAIN\Username. If you are on a standalone workstation (most likely) then enter your username as: .\Username.
  - Enter your password.
4. In the Service Name box, enter the desired service name.  I used “PMS” for a short name with the long name as the display name.
5. Click on Install Service.
6. If you don’t get any errors, then you should now be able to star the Plex Media Server like a normal service. 
Be sure that you have disabled the Plex Media Server startup entry so that you don’t end up with two PMS instances when you log onto the PC.  Keep in mind that when an application is run as a service like this, there will be no interaction with the user desktop.  This means, if you want to install updates, you will have to stop the service and run the applicaiton manually to receive the update prompt.  Alternatively, you can stop the service and manually download the latest setup file and run it to upgrade Plex. 
If you receive a login error or Access Denied when trying to start the service, then post a comment on here and I’ll provide additional instruction.
-


Friday, December 30, 2016

Female Voice for LDS Gospel Library Audio

Here is how you select a female voice for the audio for the LDS Scriptures in the LDS Gospel Library App.

- Open the media player by scrolling to the top of a chapter, then tap the yellow button with a headphones icon.
- Select the Audio options by selecting the three dots on the right and tapping Audio Settings.
- Change the Main Voice to the one you want.

Tuesday, November 01, 2016

How to Clip Videos using VLC Media Player

- Search for "download youtube mp4" and use a site to download the video.

- Use VLC Media Player to crop the video.


- Upload to YouTube again.

Saturday, October 15, 2016

The Boy Scout Rule

What if we all did a random act of kindness to the code before we checked it in?

"Leave this world a little better than you found it." (Baden-Powell's Last Message (1941))

(Starting at 49:11 of Clean Code (Remake!) Clean Code, Episode 1, By Uncle Bob, 54 min • Feb 2011)

Monday, August 01, 2016

Best Practices for the Security of Online Accounts

Regularly you can read about the online accounts being compromised. Here are the practices I use to keep them safe.

- Follow the best practices to keep your devices from getting malware. Here is a good guide. I do not add antivirus to our mobile devices though.

- From that same article, "Use passwords on everything and be sure that they're strong passwords: Do not use the same password for everything. Do not use easy-to-guess passwords. Use strong passwords that are at least eight characters in length and include capitals, numbers, and alternate characters. Password protect everything: Devices, email, VPN, anything that you don't want shared with others. Be paranoid and change your passwords often."

Treat your email password as the key of all your keys. Almost every other account allows you to reset you passwords by sending a unique link to your email address. I also enable 2-factor authentication.

- Use Two-Factor Authentication on the accounts you care most about. Just like you use your credit card and something you know, like your signature or your pin or zip code, two factor authentication makes your accounts more secure.