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
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.
- If you don’t mind entering a password on boot, then go to User Accounts and set “automatic login” to off.
- 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.
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
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!
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
Recent Comments