Sunday, July 15, 2012

XBMC - auto login, auto start, auto restart

This info is old and probably not very useful to anyone anymore.

This is a quick and dirty way of getting Ubuntu server to auto login the user xbmc and have that user start XBMC on boot and restart it if it crashes. There is no login-manager, no WM/DE, no nothing, just XBMC. And for me, that is enough.

Update 1: Checking if logged in at tty1 before starting the xbmc-neverending-loop. This as not to interfere with ssh-logins and/or logins on other ttys with the xbmc user.
Update 2: I think you could trim the startx line in the loop-script to only "startx /usr/bin/xbmc" but I'm not on Ubuntu anymore so I'll leave it as is for now seeing as I can't test it.

Saturday, July 14, 2012

Windows - Disable hibernation (Hiberfil.sys)

I'm guessing most desktop PC users are probably never using the hibernation option and some of you are, like me, using an SSD as a system disk.

If this is the case you can reclaim some (12.5GB in my case) space by disabling the windows hibernation option. This deletes the hidden system file hiberfil.sys which otherwise resides in the root of C:.

As Microsofts site is prone to link rot I'm copying the information found on their support page over here.

1. Click Start, and then type cmd in the Start Search box.
2. In the search results list, right-click Command Prompt, and then click Run as Administrator.
3. When you are prompted by User Account Control, click Continue.
4. At the command prompt, type powercfg.exe /hibernate off, and then press ENTER.
5. Type exit and then press ENTER to close the Command Prompt window.

source: Microsoft