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 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
Sep 05

I never could find a good script to check to see if a Macromedia Contribute key had been installed for a user on a machine, and if not then to run the key. So I made one. This one is for Contribute 2, but I think it will work with 3 (if you change the Site folder to 3). And it assumes that the user will only be running one Site. I make the Contribute Icon/Shortcut point to this script.

You will need to change “h:\key.stc” to the location of your key. You will need to save the following script as a .vbs

Set objFSO = CreateObject(“Scripting.FileSystemObject”)
Set objNetwork = WScript.CreateObject(“WScript.Network”)
strUserName = objNetwork.UserName
If objFSO.FileExists(“C:\Documents and Settings\” & strUserName & “\Local Settings\Application Data\Macromedia\Contribute 2\Sites\Site1\_mm\contribute.xml”) Then
Set wshShell = WScript.CreateObject (“WSCript.shell”)
wshshell.run “””C:\Program Files\Macromedia\Contribute 2\Contribute.exe”””, 6, True
set wshshell = nothing
Wscript.Quit
Else
Wscript.Echo “Your Contribute Key needs to be installed on this computer. Click OK to begin.”
Set wshShell = WScript.CreateObject (“WSCript.shell”)
wshshell.run “h:\key.stc”, 6, True
set wshshell = nothing
End If

References:
1) http://www.microsoft.com/technet/scriptcenter/resources/qanda/jun05/hey0620.mspx
2) http://weblogs.asp.net/steveschofield/archive/2004/03/14/89240.aspx
3) http://www.computerperformance.co.uk/Logon/Logon_HomeDirAdv.htm

Share
Feb 01

http://www.google.com.my/intl/en/help/cheatsheet.html

Share
Aug 21

http://home.snafu.de/tilman/xenulink.html

Share
May 02

Credit reporting agencies:
Equifax
P.O. Box 105069
Atlanta, Ga 30348
To report fraud: Call 800-525-6285 and write to address above
To order credit report: 800-685-1111
(free copies only obtained by mail)

Experian (formerly TRW)
P. O. Box 9532, Allen, TX 75013
To report fraud: Call 888-397-3742 and write to address above.
Fax: 800-301-7196
To order credit report: 866-200-6020
(free copies only obtained by mail)

Transunion
P.O. Box 6790
Fullerton, Ca. 92834
To report fraud: 800-680-7289 and write to address above.
To order credit report: 800-888-4213
(free copies only obtained by mail)

Share