Skip to content

Instantly share code, notes, and snippets.

#How to create a bootable USB stick on OS X

This procedure requires that you create an .img file from the .iso file you download. It will also change the filesystem that is on the USB stick to make it bootable, so backup all data before continuing.

  • Download Ubuntu Desktop
  • Open the Terminal (in /Applications/Utilities/ or query Terminal in Spotlight).
  • Insert your USB flash media, which must be 2GB or larger.
  • Launch the Disk Utility app which is located in Applications -> Utilities. Booting Ubuntu from the USB drive
  • In the lefthand pane, click on the USB drive to select it.
  • Click the Partition tab.
client
dev tun
proto udp
resolv-retry infinite
nobind
key-direction 1
reneg-sec 0
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
client
dev tun
proto udp
resolv-retry infinite
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
var browser = new mdns.createBrowser(mdns.tcp('airplay'));
//var legacyMdnsBrowser = new mdns.Mdns(mdns.tcp('airplay'));
var mdnsOnUpdate = function(data) {
if(data.port && data.port == 7000){
var info = data.addresses
var name = data.fullname.split('.')[0]
var dID = data.deviceid
/*
Ok got it working
here is the code , thank you
var http = require('http'),
fs = require('fs'),
util = require('util');
http.createServer(function (req, res) {
var path = 'movie.mp4';
var stat = fs.statSync(path);
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<scpd xmlns="urn:schemas-upnp-org:service-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<actionList>
<action>
<name>ListPresets</name>
<argumentList>
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<scpd xmlns="urn:schemas-upnp-org:service-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<actionList>
<action>
<name>GetCurrentConnectionInfo</name>
<argumentList>
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<scpd xmlns="urn:schemas-upnp-org:service-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<actionList>
<action>
<name>Play</name>
<argumentList>
{ deviceType: 'urn:schemas-upnp-org:device:MediaRenderer:1',
friendlyName: '[TV]UE55D8000',
manufacturer: 'Samsung Electronics',
manufacturerURL: 'http://www.samsung.com/sec',
modelName: 'UE55D8000',
modelNumber: 'AllShare1.0',
UDN: 'uuid:e56fe598-c88b-5646-d1e2-75e44f14395b',
icons:
[ { mimetype: 'image/jpeg',
width: '48',
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<root xmlns="urn:schemas-upnp-org:device-1-0" xmlns:pnpx="http://schemas.microsoft.com/windows/pnpx/2005/11" xmlns:df="http://schemas.microsoft.com/windows/2008/09/devicefoundation" xmlns:sec="http://www.sec.co.kr/dlna">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<device>
<deviceType>urn:schemas-upnp-org:device:MediaRenderer:1</deviceType>
<pnpx:X_compatibleId>MS_DigitalMediaDeviceClass_DMR_V001</pnpx:X_compatibleId>
<df:X_deviceCategory>Display.TV.LCD Multimedia.DMR</df:X_deviceCategory>