Huge Discounts on Mobiles, Books, Cameras, Computers etc: @Flipkart
Flipkart.com
Showing posts with label NUC. Show all posts
Showing posts with label NUC. Show all posts

Monday, June 08, 2015

Windows 8.1 Pro on a USB Drive

Xubuntu and Kodi on i3 NUC was nice. But I often run into issues and is quite time consuming to get things straight (perhaps because I am not a Linux expert too!). Anyway, everything was configured, up and running with Xubuntu 14.10 and the new 15.04 release came and messed things up. The sound doesn't work after the upgrade, I see only a Dummy Output! Searching on forums, I see many people reporting this issue, but no solution than to downgrade. Also had some HDMI sync issue every time I start my home theater receiver (keep the NUC running 24x7) too and was getting tired of linux on NUC! Intel provide very few drivers for linux. So it was time to give Windows a try :-)

Usually windows is very easy to setup, but I had a major challenge! I don't have a hard disk and Windows doesn't support installing to USB drives (or even portable HDD connected via USB). Btw, if you want to create a bootable Windows installer on USB, use the rufus utility and the Windows install ISO. It is like the LiLi for windows :-)

Thanks to Google, found that there is a Windows to Go option, though officially supported only for Enterprise edition. You can get it to work for other editions using a utility called WinToUSB. Though it seemed to save the day, Windows 8.1 Pro was not booting up, it was stuck on the logo with the progress spinning for ever! Finally got it to work using the VHD (vs Legacy) option supported by WinToUSB while creating the usb installer.

Now I got Windows on my NUC and everything works quite well, especially with all the wonderful intel drivers! Kodi works quite well too (Note: use WASAPI instead of DirectSound for clean unadulterated sound)

Note: You need to activate the windows with a valid key


Friday, February 06, 2015

Converting a USB printer to a network printer

I recently bought a NUC and has been doing cool stuff with it. I have a Brother HL 1110 mono laser printer which supports only USB. So here is how I made it a network printer.

The NUC has Xubuntu 14.10 (based on Ubuntu). So I setup Samba and enabled file and printer sharing. I use GADMIN-SAMBA for easy configuration via UI.

Here is my Samba configuration:

[global]
     netbios name = nuc
     server string = Samba file and print server
     workgroup = WORKGROUP
     security = user
     hosts allow = 127. 192.168.
     dns proxy = no
     map to guest = bad user

[nas]
     path = /mnt/NAS_HDD1/NAS/
     comment = No comment
     read only = no
     browsable = yes
     writable = yes
     guest ok = yes

[printers]
     path = /var/spool/samba
     printable = yes
     printing = CUPS|LPRNG|...

[print$]
     path = /srv/samba/Printer_drivers
     comment = Printer Drivers
     writeable = yes

From the remote windows machine I add a new printer, select 'Network' type and give the path as \\hostname\printername  eg: \\192.168.0.111\HL1110.

Even if the printer was configured fine, printouts were coming as blank initially.

Go to the Linux driver page of HL1110, and install all three (Driver Install Tool, LPR Printer Driver, CUPS Wrapper printer driver).
http://support.brother.com/g/b/downloadlist.aspx?c=eu_ot&lang=en&prod=hl1110_us_eu_as&os=128

Make sure that you run sudo, else the driver won't be installed correctly.
sudo bash linux-brprinter-installer-2.0.0-1 HL-1110

If you want to print from a mobile device or even remotely, add this printer to your Google account via Chrome:
https://support.google.com/cloudprint/answer/1686197?hl=en



Wednesday, January 07, 2015

NUC Setup for XBMC

After using Raspberry Pi as a media player for almost an year, took the plunge and upgraded to an Intel i3 NUC (Next Unit of Computing). For those who doesn't know, NUC is a very compact computer, which can be used as a light weight PC (can be attached behind a monitor using VESA mount) or as a dedicated device (eg: Media Player, Streamer, NAS etc).

I have used other media players like ASUS, Kaiboer etc before, but have been disappointed by lack of software/firmware updates and how quickly they get dated when new codecs come etc. So decided that will go for only more customizable and versatile platforms only. Raspberry Pi + RaspBMC is a great media player which is really value for money. Though the specs are low, it supports hardware decoding and hence most of the videos work just fine. Low price is the main attraction and there is a great community support. But of late I see my pi sweating a lot when decoding 1080P movies with AAC 5.1 audio. Other Audio codecs like MP3, AC3, DTS  and even AAC 2.0 with 1080p works fine.

Though the Celeron NUC is powerful enough, I wanted to be future proof and have plans to multi-task my NUC. So went for i3 based D34010WYKH, with just 4GB RAM and an 8GB USB3 mem stick as extras. Advantages of a NUC (mini PC) over a PC is its size and much lower power consumption. It mainly uses the laptop/notebook version of hardware to achieve this. Without further adieu, lets dive into the details of the setup.

1) Hardware
D34010WYKH
4GB RAM Kingston (1.35v)
No HDD
USB3 8GB stick
Rii8 keyboard

2) Software
First thing you have to do is to upgrade the BIOS of the NUC. It is quite easy, download the new bios, copy it to a USB drive, start the NUC and press F7. Detailed instructions are available in above link.

Since I would be mostly using it as a media player, free linux is a much better option that paying for a Windows license. A linux distro with a decent UI system is a better option than going too light like OpenElec or Ubuntu Server. So I chose Xubuntu 14.10. Xubuntu is basically Xfce + Ubuntu. Download latest Xubuntu 64 bit iso, use something like LiLi to create a bootable USB installer. Once you install Xubuntu, you need to install the latest Intel HD4400 Graphics driver for ubuntu.

But the intel graphics driver installer won't work as it currently supports only upto Ubuntu 14.04 and above Xubuntu uses 14.10. So you should either downgrade the version or just temporarily tweak it in the file /etc/lsb-release and rerun the installer.
eg:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.10
DISTRIB_CODENAME=utopic
DISTRIB_DESCRIPTION="Ubuntu 14.10"

change to
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=utopic
DISTRIB_DESCRIPTION="Ubuntu 14.04"

Note: always a good idea to create a copy of any file you change as backup. Easy to revert if you screw up.  Eg: cp /etc/lsb-release  /etc/lsb-release.backup

Once you do this, you can install VNC (eg: Vino VNC), FTP etc on the server to make it easily accessible over the network. 

But there is a bug with intel graphics. It doesn't seem to redo HDMI handshake when you switch display. For example: I use an HK receiver which is connected to a JBL 5.1 system and a projector. It has an HDMI switcher (4 in, 1 out) and I use other sources like the old pi, a TV Tuner DVR etc. Also I leave the NUC always on, but switch off the receiver. Due to this bug, I had to restart my NUC every time I start the receiver or switch sources. Then I found a hack that just restarting the XServer would do the resync. So created the below script and created a keyboard shortcut to run it, so that I can execute by pressing a key on my full keyboard remote (Rii8)

restartX.sh
#!/bin/bash
echo "Restarting X "
echo 'YOUR_SU_PASSWORD'| sudo -S /sbin/restart lightdm



Once all the above setup is done, you can install latest XBMC following the instructions here:
http://kodi.wiki/view/HOW-TO:Install_Kodi_for_Linux#Ubuntu

I created a shortcut for XBMC and kept it in the desktop. I just launch it whenever I need XBMC, you may also launch it via a keyboard shortcut.

I also use the NUC as a print server by connecting a cheap USB mono Laser printer (Brother HL1110) to it. Initially I thought of setting up a full fledged NAS, but later realized it is more flexible to just replicate only part of the disk (I use two external 2 TB USB 3.0 portable HDDs). This way I can detach the disk and carry it around when I go for trips, and I just backup only my personal photos, videos etc and leave all the movies and other junk just in one disk. I use luckyBackup for syncing contents between the disks.