Mar 06

Trying to mount a windows share into Ubuntu 16.04 LTS.  I could run the following command just fine:

sudo mount -t cifs -o domain=workgroupname,username=myname,password=mypassword //192.168.1.15/music /media/music

But of course would lose the map on reboot.  So install “sudo apt-get install cifs-utils” and then Everytime I tried to add to fstab and “sudo mount -a” I would get the mount error(13) permission denied.

What fixed it was changing the sec on my command to “ntlmsspi”.  Hope this helps someone else.  So my command in fstab (/etc/fstab) is

//192.168.1.15/music /media/music cifs username=myname,domain=workgroupname,password=mypassword,
iocharset=utf8,sec=ntlmsspi 0 0

Now that you have this working you need to create a .smbcredentials file in the /root directory to contain and hide my credentials,

Enter your Windows username and password in the file:

username=msusername
password=mspassword
domain=workgroupordomain

“sudo chmod 700” that file.  and change the fstab line command to :

//192.168.1.15/music /media/music cifs credentials=/root/.smbcredentials,iocharset=utf8,sec=ntlmsspi 0 0


Share
Jan 18

I won’t get into the security implications of doing this, but just the 2 methods I have found to get it done.  My use case was a simple single digital sign that no one had physical access to, and popped this up on every scheduled or unscheduled reboot.

  1. If you don’t mind entering a password on boot, then go to User Accounts and set “automatic login” to off.
  2. If you want it to auto login and still not ask for the login keyring (again forgoing the security lecture), go into your “Startup Programs” and uncheck the Keyrings from starting.

 

Share
Jun 09
  1. Boot with Knoppix live disk or usb
  2. Open a terminal window in Knoppix
  3. Type “sudo sfdisk -l” to see what your disk (that you want to wipe) is mounted as (example – sda1)
  4. Type “sudo shred -vfz -n 100 /dev/sda1” – IMPORTANT – Substitute the disk name learned from above command.  Note that the 100 is the number of passes (and can be changed)
Share
Apr 14

How I use unblock-us on Roku and/or opendns with my Comcast gateway (or your own with Comcast firmware).

The pain of using a Comcast modem and trying to use unblockus or opendns is that Comcast will not allow the Gateway’s DNS to be changed.

Explanation:

Most solutions that is have seen involve putting your gateway in full bridge mode and using your own router and Wifi. I really didn’t like this solution as that is really doubling up on hardware ( not to mention the inconvenience of resetting my router rules and wifi password on all devices).

My solution is achieved through DHCP.  The DNS is set through the DHCP options. So we will set up our own DHCP server.  But there is another problem. The Comcast gateway won’t let us turn off DHCP!  So we have to change it so that it is only giving out one IP address.  Whatever computer gets that address will not have the correct DNS settings!!!  So make sure the correct computer gets the first (non-correct DNS) IP address by turning all other devices off while setting this up)

Solution:

1) (If you have a dedicated computer that is always on) Set up a DHCP server on your dedicated computer with a Static IP.  I have one always on for Plex and PlayOn so that is the computer I set it up on.  Set up a DHCP scope starting with a high ip address (like 100) and with your desired DNS settings. Stop the DHCP service.  Go to step 3

2) (If you do NOT have a dedicated computer that is always on)Get a small device that has DHCP Server capabilities.  I got a TP-Link TL-WR710N for ~$22 on Amazon.  Set up a DHCP scope starting with a high ip address (like 100) and with your desired DNS settings.  Stop the DHCP and/or turn off the TP-Link.  (Here is my TP-Link Config for Unblock-us, username and password is Admin/unblockus15, and must be on Firmware 140922, and disable wireless in wireless settings on the TP-Link, ip of TP-Link will be 10.0.0.99)

3) After you have your DHCP server up and running log into your Comcast Gateway. Go to Connection -> Local IP Configuration.  And change your Beginning and Ending IP address to the same IP.  Set the DHCP Lease Time to forever.

Comcast-DHCP

4) Turn the device/computer on that you don’t care gets the wrong DNS.  it will get the IP you set above.

5) Start your DNS server (on the computer or the dedicated TP-Link type device).

6) Now you should be able to turn your devices back on and they should get the New IP and DNS!

 

Share
Jan 22

HandBrake can through error messages and give you no options (blank) in the Title drop-down because it cannot get past the Content Scramble System (CSS).  Or the resulting video is all garbled.

The best solution I have found is to install XBMC somewhere (doesn’t have to be on the same machine) and copy the libdvdcss-2.dll file out of the XBMC\system\players\dvdplayer folder and into the Handbrake installation folder.

Update: Easiest to just copy the libdvdcss-2.dll from here: http://download.videolan.org/pub/libdvdcss/1.2.11/win64/libdvdcss-2.dll 
Rename it to libdvdcss.dll and copy it to the HandBrake installation folder.

That seems to allow HandBrake to read and rip the disk properly.

Share
Aug 30

If you use chrome in a Digital Display or Kiosk setting, it can be annoying that you will get the “chrome didn’t shut down correctly” if, in fact, chrome did not shut down correctly.  I was finally able to figure out a way to get rid of that message.

I am using the “C:\Program Files\Google\Chrome\Application\chrome.exe” –kiosk  command in the windows startup folder to launch the browser.  So I simply added the –incognito command as well, and voila! no more message.  So the full command is:

“C:\Program Files\Google\Chrome\Application\chrome.exe” –incognito –kiosk

 

Share
Jan 11

First you will need the Template Files.  They can be downloaded here: http://dl.google.com/dl/edgedl/chrome/policy/policy_templates.zip
(If you are not familiar with how to install ADM/ADMX files in Active Directory, see this guide.)

Once you have installed the template, go to Computer Configuration \ Policies \ Administrative Templates \ Classic… \ Google \ Google  Chrome and enable “Configure the list of force-installed extensions”:

GPME-Chrome

 

And Click the “Show…” button:
GPME2-Chrome

And fill in the Value with the ID of the extension followed by the update url.  (The extension ID is the 32-letter string found e.g. on chrome://extensions when in developer mode.)

Example: gighmmpiobklfepjocnamgkkbiglidom;https://clients2.google.com/service/update2/crx

GPME3-Chrome

 

Find ID in Chrome:
Chrome-FindID

Share
Nov 21

Apparently when your iTunes library is not in the default location, it will create another xml called “iTunes Library.xml” and will no longer use the default “iTunes Music Library.xml”.  This is fine unless you use another program to access the itunes data.  Those programs want to use “iTunes Music Library.xml” which has not been updated since you moved your library!  Crazy right?!?!

Easy fix: (Note: Always Backup your iTunes library first.  But you do this regularly anyway, right?)

  1. Make sure iTunes is closed, and go to the iTunes folder.  Rename “iTunes Library.itl” to “iTunes Music Library.itl”
  2. Hold down the Shift key (Option key on a Mac) and open iTunes.
  3. Select “Choose existing library” and select the newly renamed “iTunes Library.itl”

Now all the programs that need to access iTunes data will get the most updated library.

 

Share
Apr 26

Without tweetymail or tiwttermail or posterous or any other 3rd party solution.  This solution should have been easier to find.  So thought I’d write it up here.

I run a website for a non-profit, and we use Google Calendar for our events on our website.   We also have a Facebook page and a Twitter account (of course).  I linked our Facebook page to Twitter acct (http://apps.facebook.com/twitter/).  So now all I have to do is to post to Facebook and it automatically gets Tweeted as well.

So I wanted our google calendar to send reminders of events to Facebook and thus Twitter as well.

1) Find your secret m.facebook.com email address

  • http://www.facebook.com/mobile/ for personal profiles
  • For “Pages”: edit your page and go to the “Mobile” link on the left to get the email address

2) Set up a Gmail Filter to forward reminders to your secret Facebook email address.  This will send an verification code to your FB page.  You will need to get that code off (to verify the forwarding address) and then delete the post.  I don’t know of a better way.

3) Create a filter for Calendar Reminders:

  • From: calendar-notification@google.com
  • Has the words: [Reminder]
  • Doesn’t have: notweet (I added this to have the option to not post some events/reminders)

Now all you need to do is to setup email reminders on your Google Calendar events!

Share
Oct 07

I have just compiled the steps that worked for me here all in one page (with screen shots).

The first thing you are going to need is the Cisco RNG200 bin file.  That can be downloaded here or here.

That file needs to be saved in your C:\Program Files\Sling Media\SlingPlayer\SBAV folder.

Goto Setup Assistant on your Slingbox.  And Select Configure Video Sources.

Setup-Asst

Select your Connection and Choose Cable Box.

Cable-Box

Select Comcast as the manufacture and Other for the model.

Comcast-Other

Make sure the Lineup is correct, and hit next.  And now you will have to select your code to be able to control your DC50X DTA.  In the Select Code box, select Custom and type in C2000.  Then hit the Power button to test.  Remember that the DC50X does not turn off, this will not turn off the box.  But it will upload the RNG200 bin file.  If you get an error message, make sure you have saved the RNG200 bin file in the correct place.

Code

Now just finish up the Setup Assistant, and you will be good.

Share