Allow net rpc shutdown on Windows 7

Since the introduction of UAC in Windows Vista, the ability to remotely execute commands that require elevated privileges has been blocked. This is even the case when you use credentials of an administrator account on the target computer. This, while an inconvenience, is intentional. Microsoft reports that people should interactively log on to the computer as an administrator using Remote Desktop or Remote Assistance.

Well, I don’t want to have to always do this, nor am I able to from certain machines. The way to get around it is to disable the UAC remote restrictions in the registry be doing the following:

  1. In the registry editor, navigate to HKLMSOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem.
  2. If needed, create the DWORD value LocalAccountTokenFilterPolicy.
  3. Modify the value of LocalAccountTokenFilterPolicy by changing the Value data to 1.

I can’t recall whether the change required a reboot or restart of some service before the desired effects could been seen, but you should now be able to visit administrative shares and issue commands like net rpc shutdown (which was what I was after) remotely.

You can refer to the following Microsoft knowledge base article for some details and more in-depth instructions at the following:

http://support.microsoft.com/kb/951016#letmefixit

Also, there is a Wikipedia article that outlines this same process for administrative shares:

http://en.wikipedia.org/wiki/Administrative_share

Watch a DVD in Ubuntu 10.04, 10.10 and 11.04

dvd logoSome users may be surprised the first time they want to watch an encrypted DVD on Ubuntu and they receive a missing plugin error or it simply won’t play. Short story, this is due to licensing and because Ubuntu does not provide the support for proprietary media formats ‘out of the box’.

Enabling DVD playback isn’t very complicated, however, and can usually be done in two steps. First, you need to install the libdvdread4 package if it isn’t already. To do this, execute the following command in your terminal:

sudo apt-get install libdvdread4

After the package is installed, you will need to execute a command to download and install libdvdcss.

sudo /usr/share/doc/libdvdread4/install-css.sh

Once this completes, you should be ready to use your favorite media player that supports playback of DVDs to start watching! Personally, I use VLC media player for that.

I have noticed that some players still complain about a missing plugin and I have only been able to resolve this issue by installing the ubuntu-restricted-extras.

sudo apt-get install ubuntu-restricted-extras

I’m not sure what in this package resolves the playback issue, so if you happen to know please leave a comment. Even with the restricted extras, you will need to be sure to install libdvdcss, too.

Change the Hostname in Ubuntu

Changing the hostname of a computer running Ubuntu is not as straightforward as you might expect if you’re a new user. While you could install something like GNOME network-admin to change the hostname using a GUI, the relatively easier method is to edit two different configuration files. The two files are /etc/hosts and /etc/hostname and you can edit them using gedit by executing the following:

gksudo gedit /etc/hosts /etc/hostname

After saving and closing the edited files, you will need to restart your current session, or possibly reboot your computer.

Alternatively, you can set a temporary hostname by executing the following in the terminal:

sudo hostname temporary_hostname

Executing the hostname command without providing any additional parameters will give you your current hostname.

CyanogenMod | Warning: Dragons Ahead!

Once the initial excitement wore off after purchasing my HTC Hero CDMA, I was a little upset about all of the software from both HTC and Sprint that I couldn’t uninstall or keep from running. I took the bad with the good, until I discovered CyanogenMod. I first started using CyanogenMod when I saw that I could run Android 2.1 before Sprint released their official port of the OS, but I quickly realized many more reasons. I did try Sprint’s update when it went live, but it was only an hour or two before I reverted back to the CyanogenMod firmware.

Besides having more control and flexibility, using CyanogenMod also extends support of your device, potentially much further than what will be provided by your carrier. In my case, Sprint has stopped its updates for the HTC Hero CDMA at Android 2.1, however, I was running Android 2.2 for while and now have Android 2.3 installed using the CyanogenMod firmware.

There are currently two dozen supported devices, and more on the way. You should visit their Wiki to read more about what CyanogenMod is and is not.

Kinetic Typography

I was looking through the UltraLinx blog and I came across something called kinetic typography (motion typography). I know that I have seen this form of communication or art before, but it is always nice to know how to refer to things properly.

Here is a really great example of what it’s all about. Note that it is not about the message, but the method in which it is conveyed.

Stephen Fry Kinetic Typography – Language

There are a lot of videos returned when you search YouTube for kinetic typography, ranging broadly in both topic and subjective quality.

Linking Directly to a HD YouTube Video

There have been a few instances in the past where I have wanted to link to a HD YouTube video. I can’t think of any specific instances where you would really need or want to, but I’m sure people can come up with something since the option exists.

To link to the HD video, simply add &hd=1 to the end of the URL as shown in the example below.

Standard video link
http://www.youtube.com/watch?v=IzMnCv_lPxI

HD video link
http://www.youtube.com/watch?v=IzMnCv_lPxI&hd=1

PDFCreator – The free PDF Creator and Converter

PDFCreator is an open source project of pdfforge.org that I use to create PDFs in Windows. Essentially, anything you can print you can turn into a PDF. A virtual printer is installed and you merely need to select it when wanting to create a PDF. Here are the features as listed on the project’s site:

  • Create PDFs from any program that is able to print
  • Security: Encrypt PDFs and protect them from being opened, printed etc
  • New: Digitally sign your PDFs to ensure that you are the author and the file has not been modified
  • New: Create PDF/A files for long term archives
  • Send generated files via eMail
  • Create more than just PDFs: PNG, JPG, TIFF, BMP, PCX, PS, EPS
  • AutoSave files to folders and filenames based on Tags like Username, Computername, Date, Time etc.
  • Merge multiple files into one PDF
  • Easy Install: Just say what you want and everything is installed
  • Terminal Server: PDFCreator also runs on Terminal Servers without problems
  • And the best: PDFCreator is free, even for commercial use! It is Open Source and released under the Terms of the GNU General Public License.
  • Supports Windows Vista and Windows 7

PDFCreator has been really nice to find after getting so used to the Print to File feature of Ubuntu and other Linux distributions I’ve been using. Download it now and give it a try!

Gmail Desktop Notifications in Chrome

The new desktop notification feature Google has created for users of its web browser, Chrome, is really convenient. I started using it earlier this week and have found it to be almost nothing but helpful.

Chrome desktop notification

The only things that I wish you could do (or that I knew how to do) is adjust the timeout for how long it is displayed and where it is displayed. Here are the instructions for enabling the notifications as found in the Gmail help section:

  1. Click the Settings link in the upper-right corner of Gmail.
  2. On the General tab, select the option you’d like in the Desktop Notifications section. You’ll be able to turn Chat notifications on or off, and can also choose to turn email notifications off, receive notifications for all incoming email, or only those Gmail marks ‘important’.
  3. Click Save.

Again, this feature is only for Google Chrome users. You should definitely give that a try if you haven’t already.

VLC media player

The same as most people nowadays, I spend a fair amount of time watching and listening to digital media. I’ve also spent time finding, downloading and installing applications and codecs to handle the countless formats that I’ve come across. Enter VLC media player. Yes, it is an open source, cross-platform application, and yes, it is awesome. If I remember correctly, it has handled every digital media type I have thrown at it. Including proprietary ones! Here are the features of the program as listed on the project’s homepage:

  • Simple, Powerful and Fast
  • Plays everything, Files, Discs (DVD, CD, VCD), Devices and Streams
  • Plays most codecs with no codec packs needed
  • Completely Free, 0 Spyware, Ads or User Tracking
  • Best Mpeg2, x264, DivX player
  • Works on most platforms: Windows, Linux, Mac, Unix…
  • Media Converter and Streamer

Some other features that I enjoy are the keyboard shortcuts, being able to play discs that have been backed up as an ISO (without having to mount them) and the advanced settings. The keyboard shortcuts are customizable and find it annoying when I have to use a player that doesn’t support them. There is a portable version of it at PortableApps.comGive it a try!

Métamorphose A Mass Renamer for Files and Folders

Since beginning to reconstruct and reorganize my personal music library, I found myself changing file naming conventions and I was getting tired of manually renaming them. I thought about writing a quick little Python program to help, but decided to see what was already available first. I’m glad I did.
Searching SourceForge, I found a cross-platform application named Métamorphose. It has been amazing. Here are the features as listed on the project’s site:

  • Preview every item to be renamed before committing changes
  • Add any number of operations in any order (v.2 only)
  • Recursive renamer: load all files in directory and in subdirectories
  • Undo changes in case of mistakes
  • Regular expression support throughout
  • Rename music and image files by their metadata information
  • Full unicode support means any character from any language can be used
  • Use of all allowed characters under Windows and OSX, all except ‘:’ in Linux

While I haven’t explored all of the features noted above, the recursive functionality and batch operations have been a lot of fun to work with and such a time-saver. I especially appreciate the preview and undo methods. I’ve been able to use it in Windows XP, Windows 7 and Ubuntu 10.10, all without any issues. Give it a try.