- Install Mythbuntu From Usb Flash Drive
- Install Mythbuntu From Usb Wireless Adapter
- Install Mythbuntu From Usb Drive
- Install Mythbuntu From Usb Pc Camera
Background
Create Mythbuntu DVD/USB. In order to install Mythbuntu, we first need to download the software and write it to a DVD or a USB flash drive. Download Mythbuntu 14.04.1 64-bit.iso; Burn the.iso file as an image to a DVD-R(RW), or write the image to a USB flash drive. Note that the image is too large to fit on a CD-R(RW). Install Mythbuntu. The Universal USB Installer is easy to use. Simply choose a Live Linux Distribution, the ISO file, your Flash Drive and, Click Install. Upon completion, you should have a ready to run bootable USB Flash Drive with your select operating system installed. Booting from a USB flash drive created with usb-creator alias Startup Disk Creator and mkusb will behave just as if you had booted from the install CD. It will show the language selection and then the install menu, from which you can install Ubuntu onto the computer's hard drive or launch the LiveCD environment. Start installation of Ubuntu Now attach the flash drive to a USB port and press the 'F11' key (for a Supermicro motherboard) during the boot process. As soon as the boot menu appears, select your stick and the installation will start. Now proceed as illustrated in the following screenshot gallery. The USB drive will not show up in the startup manager so I can’t boot to it from my new machine. I was wondering if there is a relatively simple change that can be made to the process above so that the usb install will be available in the Mac startup manager.
Installation
Create USB disk
Download the 64-bit edition of Mythbuntu. Create a USB disk as described in the official Ubuntu documentation (I have a Mac, so I followed this).Boot
Put the USB disk in the EEE Box, boot the machine. Hold down F2 during boot to go to the BIOS menu. Go to the Boot tab, select 'Hard Disk Drives', press enter. In the list of hard disk drives, you should see both the real hard disk and your USB disk. Re-arrange the list so that the USB disk is first, and your hard disk is second. Save and exit, and your machine should now boot from your USB disk.Install
Backend setup
General
Storage paths
Tuner
Go to 'Input connections' and connect your two HDHomeRun tuners to the new video source: Select one line at a time, and select your video source under 'Video source'.
Channel scan
Sound and picture quality
Sound via HDMI or TOSLINK
Install Mythbuntu From Usb Flash Drive
Picture quality
Importing XMLTV
First, set all the XMLTV IDs for your channels: Go to MythWeb, click the 'MythTV' link in the upper left, and choose 'Settings -> TV -> Channel Info'.
Install Mythbuntu From Usb Wireless Adapter
Since I get my XMLTV from a specific URL, I have a mythfilldatabase.sh script which is quite simple:
#!/bin/bash
LOGFILE=/home/me/mythfilldatabase.log
source /home/me/.profile
mv /home/me/tvgrabbed.xmltv.1 /var/log/mythtv/tvgrabbed.xmltv.2
mv /home/me/tvgrabbed.xmltv /var/log/mythtv/tvgrabbed.xmltv.1
cd /home/me/
wget --output-document=/home/me/tvgrabbed.xmltv http://ontv.dk/xmltv/SECRET
/usr/bin/mythfilldatabase --file --sourceid 1 --xmlfile /home/me/tvgrabbed.xmltv > ${LOGFILE} 2>&1
Then set up a Cron job: Run 'crontab -e', define a line like:
00 06 * * * /home/me/mythfilldatabase.sh
Various settings
Securing MythWeb
Start/end of recordings
Current status
By the way, my problems look a lot like these, except that my problems don't seem to be network-related.
This is part of my tutorial “How to stream analog tv to mobile android devices with Ubuntu, MythTV, xmltv and MythFrontEnd“.
In Linux video devices can be accessed through “/dev/video0”, “/dev/video1” and so on. The problem is that the device designations can change after a reboot, but there is a way to “fix” your video devices. You can do this by making “symbolic links” to your devices, based on device name, driver or any other unique identifier. You can then use this symbolic link instead of “/dev/video0” and your device order will hold up after every reboot. Since I also install ZoneMinder with 3 webcams, this step is a must for me.
This is a synopsis from the MythTV guide I followed:
– make sure your devices are connected and can be accessed as “/dev/video0“, “/dev/video1” and so on.
– in a terminal, type:udevadm info -a -p $(udevadm info -q path -n /dev/video0)
– copy/paste the output to a text editor and save it
– now for device #2, #3 type:udevadm info -a -p $(udevadm info -q path -n /dev/video1)
,udevadm info -a -p $(udevadm info -q path -n /dev/video2)
and so on.
– copy/paste each output to a text editor and save it for later. Repeat this step for all your video devices.
The output will look something like this:
looking at device '/devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/video4linux/video0':
KERNEL'video0'
SUBSYSTEM'video4linux'
DRIVER'
ATTR{name}'Vimicro USB 2.0 PC Camera (Venu'
ATTR{index}'0'
looking at parent device '/devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0':
...
Now look for something that you can use to uniquely identify your video device.
In my case I used:
for “/dev/video0”: ATTR{name}'Vimicro USB 2.0 PC Camera (Venu'
,
for “/dev/video1”: ATTR{name}'UVC Camera (046d:0805)'
,
for “/dev/video2”: ATTR{name}'DC10plus[0]'
and
for “/dev/video3”: ATTR{name}'ivtv0 encoder MPG'
,
because they contain the names of the devices and they are unique.
Ok, now we have our unique identifying attributes, now it’s time to make symbolic links using “udev“:
– in a terminal type:
sudo gedit /etc/udev/rules.d/99-server.rules
This will create a new file where we will define our rules.
Use a high number (99 in this case) to start the filename with, this will make sure udev overrides automatic settings. You can choose your own filename, just make it start with a high number.
Install Mythbuntu From Usb Drive
– Now we define one rule per video device. On each boot udev will read these rules, and create a symbolic link for the device found based on this identifier.
– Here’s the contents of my /etc/udev/rules.d/99-server.rules:
KERNEL'video[0-9]*', DRIVERS'zr36067', SYMLINK+='video-DC10'
KERNEL'video[0-9]*', ATTR{name}'ivtv0 encoder MPG', SYMLINK+='video-PVR-150'
KERNEL'video[0-9]*', ATTR{name}'UVC Camera (046d:0805)', SYMLINK+='video-Logitech300'
KERNEL'video[0-9]*', ATTR{name}'Vimicro USB 2.0 PC Camera*', SYMLINK+='video-Vimicro'
Make sure you have 1 rule per line, and no empty lines. It could look different in the browser, but there’s 1 rule per line.
What these rules tell udev:
look for any video device between 0 and 9 that matches DRIVERS”zr36067″, and create a link called “video-DC10“.
look for any video device between 0 and 9 that matches ATTR{name}”ivtv0 encoder MPG”, and create a link called “video-PVR-150” and so on.
Reboot the system to see if the links are there. The easy way to check is to open the Thunar file manager, and browse to “/dev”:
Install Mythbuntu From Usb Pc Camera
From now on you can use these fixed links and your video devices will no longer be mixed up!