<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>S.G. Vulcan &#187; linux</title>
	<atom:link href="http://www.sgvulcan.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sgvulcan.com</link>
	<description>Silviu&#039;s tech blog. Resources and informations about linux, windows, symbian systems, networks, reviews, microcontrollers, and more.</description>
	<lastBuildDate>Wed, 01 Feb 2012 09:20:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Make sensors report temperature on slacware64-current with an Intel I7 2600k</title>
		<link>http://www.sgvulcan.com/make-sensors-report-temperature-on-slacware64-current-with-an-intel-i7-2600k/</link>
		<comments>http://www.sgvulcan.com/make-sensors-report-temperature-on-slacware64-current-with-an-intel-i7-2600k/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 20:01:49 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[2600k]]></category>
		<category><![CDATA[i7]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[slackware]]></category>
		<category><![CDATA[temperature]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=2049</guid>
		<description><![CDATA[For some reasons the required modules don&#8217;t get loaded. Add the following to /etc/rc.d/rc.modules right above the line reading ### Mouse support: View Code BASH1 2 3 ### by SV for i2600k temperature /sbin/modprobe coretemp /sbin/modprobe pkgtemp Now sensors report the temperatures.]]></description>
			<content:encoded><![CDATA[<p>For some reasons the required modules don&#8217;t get loaded. Add the following to /etc/rc.d/rc.modules right above the line reading ### Mouse support:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2049code2'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p20492"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p2049code2"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">### by SV for i2600k temperature</span>
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>modprobe coretemp
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>modprobe pkgtemp</pre></td></tr></table></div>

<p>Now sensors report the temperatures.</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/make-sensors-report-temperature-on-slacware64-current-with-an-intel-i7-2600k/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working mediatomb config.xml for Samsung UE37C5000</title>
		<link>http://www.sgvulcan.com/working-mediatomb-config-xml-for-samsung-ue37c5000/</link>
		<comments>http://www.sgvulcan.com/working-mediatomb-config-xml-for-samsung-ue37c5000/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 14:11:47 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[led tv]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mediatomb]]></category>
		<category><![CDATA[samsung]]></category>
		<category><![CDATA[ue37c5000]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1542</guid>
		<description><![CDATA[I have a NAS and an Samsung UE37C5000 UPNP/DLNA enabled led TV. Streaming from the first to the second should be easy, right? Well after a few tweaks MediaTomb makes it possible. I don&#8217;t say this is the best configuration possible but it&#8217;s the one that works INCLUDING pause and fast forwarding. Relevant from the default are the custom header, extended protocol info and the mkv and avi lines. View Code XML1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 [...]]]></description>
			<content:encoded><![CDATA[<p>I have a NAS and an Samsung UE37C5000 UPNP/DLNA enabled led TV. Streaming from the first to the second should be easy, right? Well after a few tweaks MediaTomb makes it possible.</p>
<p>I don&#8217;t say this is the best configuration possible but it&#8217;s the one that works INCLUDING pause and fast forwarding.</p>
<p>Relevant from the default are the custom header, extended protocol info and the mkv and avi lines.</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1542code4'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p15424"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
</pre></td><td class="code" id="p1542code4"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;config</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;2&quot;</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://mediatomb.cc/config/2&quot;</span> <span style="color: #000066;">xmlns:xsi</span>=<span style="color: #ff0000;">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span> <span style="color: #000066;">xsi:schemaLocation</span>=<span style="color: #ff0000;">&quot;http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;server<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ui</span> <span style="color: #000066;">enabled</span>=<span style="color: #ff0000;">&quot;yes&quot;</span> <span style="color: #000066;">show-tooltips</span>=<span style="color: #ff0000;">&quot;yes&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;accounts</span> <span style="color: #000066;">enabled</span>=<span style="color: #ff0000;">&quot;no&quot;</span> <span style="color: #000066;">session-timeout</span>=<span style="color: #ff0000;">&quot;30&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;account</span> <span style="color: #000066;">user</span>=<span style="color: #ff0000;">&quot;mediatomb&quot;</span> <span style="color: #000066;">password</span>=<span style="color: #ff0000;">&quot;mediatomb&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/accounts<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ui<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>MediaTomb<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;udn<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>uuid:0f53d0ff-5951-4d27-8fa7-06ce378ae789<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/udn<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;home<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>/var/lib/mediatomb<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/home<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;webroot<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>/usr/share/mediatomb/web<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/webroot<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;storage<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;sqlite3</span> <span style="color: #000066;">enabled</span>=<span style="color: #ff0000;">&quot;yes&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;database-file<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>mediatomb.db<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/database-file<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/sqlite3<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mysql</span> <span style="color: #000066;">enabled</span>=<span style="color: #ff0000;">&quot;no&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;host<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>localhost<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/host<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;username<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>mediatomb<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/username<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;database<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>mediatomb<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/database<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mysql<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/storage<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;port<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>49152<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/port<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;protocolInfo</span> <span style="color: #000066;">extend</span>=<span style="color: #ff0000;">&quot;yes&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><span style="color: #808080; font-style: italic;">&lt;!-- For PS3 support change to &quot;yes&quot; --&gt;</span>
    <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">       Uncomment the lines below to get rid of jerky avi playback on the</span>
<span style="color: #808080; font-style: italic;">       DSM320 or to enable subtitles support on the DSM units</span>
<span style="color: #808080; font-style: italic;">    --&gt;</span>
&nbsp;
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;custom-http-headers<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">header</span>=<span style="color: #ff0000;">&quot;transferMode.dlna.org: Streaming&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">header</span>=<span style="color: #ff0000;">&quot;contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=017000 00000000000000000000000000&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/custom-http-headers<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;manufacturerURL<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>redsonic.com<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/manufacturerURL<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;modelNumber<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>105<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/modelNumber<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
    <span style="color: #808080; font-style: italic;">&lt;!-- Uncomment the line below if you have a Telegent TG100 --&gt;</span>
    <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">       &lt;upnp-string-limit&gt;101&lt;/upnp-string-limit&gt;</span>
<span style="color: #808080; font-style: italic;">    --&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;extended-runtime-options<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ffmpegthumbnailer</span> <span style="color: #000066;">enabled</span>=<span style="color: #ff0000;">&quot;no&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;thumbnail-size<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>128<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/thumbnail-size<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;seek-percentage<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>5<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/seek-percentage<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;filmstrip-overlay<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>yes<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/filmstrip-overlay<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;workaround-bugs<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>no<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/workaround-bugs<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;image-quality<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>8<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/image-quality<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ffmpegthumbnailer<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mark-played-items</span> <span style="color: #000066;">enabled</span>=<span style="color: #ff0000;">&quot;no&quot;</span> <span style="color: #000066;">suppress-cds-updates</span>=<span style="color: #ff0000;">&quot;yes&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string</span> <span style="color: #000066;">mode</span>=<span style="color: #ff0000;">&quot;prepend&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>*<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mark<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;content<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>video<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/content<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mark<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mark-played-items<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;lastfm</span> <span style="color: #000066;">enabled</span>=<span style="color: #ff0000;">&quot;no&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;username<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>lastfmuser<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/username<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;password<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>lastfmpass<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/password<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/lastfm<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/extended-runtime-options<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/server<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;import</span> <span style="color: #000066;">hidden-files</span>=<span style="color: #ff0000;">&quot;no&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;scripting</span> <span style="color: #000066;">script-charset</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;common-script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>/usr/share/mediatomb/js/common.js<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/common-script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;playlist-script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>/usr/share/mediatomb/js/playlists.js<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/playlist-script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;virtual-layout</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;builtin&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;import-script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>/usr/share/mediatomb/js/import.js<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/import-script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/virtual-layout<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/scripting<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mappings<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;extension-mimetype</span> <span style="color: #000066;">ignore-unknown</span>=<span style="color: #ff0000;">&quot;no&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;mp3&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;audio/mpeg&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;ogx&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;application/ogg&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;ogv&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;video/ogg&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;oga&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;audio/ogg&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;ogg&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;audio/ogg&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;ogm&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;video/ogg&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;asf&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;video/x-ms-asf&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;asx&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;video/x-ms-asf&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;wma&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;audio/x-ms-wma&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;wax&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;audio/x-ms-wax&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;wmv&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;video/x-ms-wmv&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;wvx&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;video/x-ms-wvx&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;wm&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;video/x-ms-wm&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;wmx&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;video/x-ms-wmx&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;m3u&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;audio/x-mpegurl&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;pls&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;audio/x-scpls&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;flv&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;video/x-flv&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;mkv&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;video/mpeg&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;mka&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;audio/x-matroska&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;avi&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;video/mpeg&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #808080; font-style: italic;">&lt;!-- Uncomment the line below for PS3 divx support --&gt;</span>
        <span style="color: #808080; font-style: italic;">&lt;!-- &lt;map from=&quot;avi&quot; to=&quot;video/divx&quot;/&gt; --&gt;</span>
        <span style="color: #808080; font-style: italic;">&lt;!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 --&gt;</span>
        <span style="color: #808080; font-style: italic;">&lt;!-- &lt;map from=&quot;avi&quot; to=&quot;video/avi&quot;/&gt; --&gt;</span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/extension-mimetype<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mimetype-upnpclass<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;audio/*&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;object.item.audioItem.musicTrack&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;video/*&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;object.item.videoItem&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;image/*&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;object.item.imageItem&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mimetype-upnpclass<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mimetype-contenttype<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;treat</span> <span style="color: #000066;">mimetype</span>=<span style="color: #ff0000;">&quot;audio/mpeg&quot;</span> <span style="color: #000066;">as</span>=<span style="color: #ff0000;">&quot;mp3&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;treat</span> <span style="color: #000066;">mimetype</span>=<span style="color: #ff0000;">&quot;application/ogg&quot;</span> <span style="color: #000066;">as</span>=<span style="color: #ff0000;">&quot;ogg&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;treat</span> <span style="color: #000066;">mimetype</span>=<span style="color: #ff0000;">&quot;audio/x-flac&quot;</span> <span style="color: #000066;">as</span>=<span style="color: #ff0000;">&quot;flac&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;treat</span> <span style="color: #000066;">mimetype</span>=<span style="color: #ff0000;">&quot;image/jpeg&quot;</span> <span style="color: #000066;">as</span>=<span style="color: #ff0000;">&quot;jpg&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;treat</span> <span style="color: #000066;">mimetype</span>=<span style="color: #ff0000;">&quot;audio/x-mpegurl&quot;</span> <span style="color: #000066;">as</span>=<span style="color: #ff0000;">&quot;playlist&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;treat</span> <span style="color: #000066;">mimetype</span>=<span style="color: #ff0000;">&quot;audio/x-scpls&quot;</span> <span style="color: #000066;">as</span>=<span style="color: #ff0000;">&quot;playlist&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;treat</span> <span style="color: #000066;">mimetype</span>=<span style="color: #ff0000;">&quot;audio/x-wav&quot;</span> <span style="color: #000066;">as</span>=<span style="color: #ff0000;">&quot;pcm&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;treat</span> <span style="color: #000066;">mimetype</span>=<span style="color: #ff0000;">&quot;audio/L16&quot;</span> <span style="color: #000066;">as</span>=<span style="color: #ff0000;">&quot;pcm&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;treat</span> <span style="color: #000066;">mimetype</span>=<span style="color: #ff0000;">&quot;video/x-msvideo&quot;</span> <span style="color: #000066;">as</span>=<span style="color: #ff0000;">&quot;avi&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;treat</span> <span style="color: #000066;">mimetype</span>=<span style="color: #ff0000;">&quot;video/mp4&quot;</span> <span style="color: #000066;">as</span>=<span style="color: #ff0000;">&quot;mp4&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;treat</span> <span style="color: #000066;">mimetype</span>=<span style="color: #ff0000;">&quot;audio/mp4&quot;</span> <span style="color: #000066;">as</span>=<span style="color: #ff0000;">&quot;mp4&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;treat</span> <span style="color: #000066;">mimetype</span>=<span style="color: #ff0000;">&quot;application/x-iso9660&quot;</span> <span style="color: #000066;">as</span>=<span style="color: #ff0000;">&quot;dvd&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;treat</span> <span style="color: #000066;">mimetype</span>=<span style="color: #ff0000;">&quot;application/x-iso9660-image&quot;</span> <span style="color: #000066;">as</span>=<span style="color: #ff0000;">&quot;dvd&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mimetype-contenttype<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mappings<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;online-content<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;YouTube</span> <span style="color: #000066;">enabled</span>=<span style="color: #ff0000;">&quot;no&quot;</span> <span style="color: #000066;">refresh</span>=<span style="color: #ff0000;">&quot;28800&quot;</span> <span style="color: #000066;">update-at-start</span>=<span style="color: #ff0000;">&quot;no&quot;</span> <span style="color: #000066;">purge-after</span>=<span style="color: #ff0000;">&quot;604800&quot;</span> <span style="color: #000066;">racy-content</span>=<span style="color: #ff0000;">&quot;exclude&quot;</span> <span style="color: #000066;">format</span>=<span style="color: #ff0000;">&quot;mp4&quot;</span> <span style="color: #000066;">hd</span>=<span style="color: #ff0000;">&quot;no&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;favorites</span> <span style="color: #000066;">user</span>=<span style="color: #ff0000;">&quot;mediatomb&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;standardfeed</span> <span style="color: #000066;">feed</span>=<span style="color: #ff0000;">&quot;most_viewed&quot;</span> <span style="color: #000066;">time-range</span>=<span style="color: #ff0000;">&quot;today&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;playlists</span> <span style="color: #000066;">user</span>=<span style="color: #ff0000;">&quot;mediatomb&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;uploads</span> <span style="color: #000066;">user</span>=<span style="color: #ff0000;">&quot;mediatomb&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;standardfeed</span> <span style="color: #000066;">feed</span>=<span style="color: #ff0000;">&quot;recently_featured&quot;</span> <span style="color: #000066;">time-range</span>=<span style="color: #ff0000;">&quot;today&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/YouTube<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/online-content<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/import<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;transcoding</span> <span style="color: #000066;">enabled</span>=<span style="color: #ff0000;">&quot;no&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mimetype-profile-mappings<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;transcode</span> <span style="color: #000066;">mimetype</span>=<span style="color: #ff0000;">&quot;video/x-flv&quot;</span> <span style="color: #000066;">using</span>=<span style="color: #ff0000;">&quot;vlcmpeg&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;transcode</span> <span style="color: #000066;">mimetype</span>=<span style="color: #ff0000;">&quot;application/ogg&quot;</span> <span style="color: #000066;">using</span>=<span style="color: #ff0000;">&quot;vlcmpeg&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;transcode</span> <span style="color: #000066;">mimetype</span>=<span style="color: #ff0000;">&quot;application/ogg&quot;</span> <span style="color: #000066;">using</span>=<span style="color: #ff0000;">&quot;oggflac2raw&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;transcode</span> <span style="color: #000066;">mimetype</span>=<span style="color: #ff0000;">&quot;audio/x-flac&quot;</span> <span style="color: #000066;">using</span>=<span style="color: #ff0000;">&quot;oggflac2raw&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mimetype-profile-mappings<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;profiles<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;profile</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;oggflac2raw&quot;</span> <span style="color: #000066;">enabled</span>=<span style="color: #ff0000;">&quot;no&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;external&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mimetype<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>audio/L16<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mimetype<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;accept-url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>no<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/accept-url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;first-resource<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>yes<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/first-resource<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;accept-ogg-theora<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>no<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/accept-ogg-theora<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;agent</span> <span style="color: #000066;">command</span>=<span style="color: #ff0000;">&quot;ogg123&quot;</span> <span style="color: #000066;">arguments</span>=<span style="color: #ff0000;">&quot;-d raw -o byteorder:big -f %out %in&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;buffer</span> <span style="color: #000066;">size</span>=<span style="color: #ff0000;">&quot;1048576&quot;</span> <span style="color: #000066;">chunk-size</span>=<span style="color: #ff0000;">&quot;131072&quot;</span> <span style="color: #000066;">fill-size</span>=<span style="color: #ff0000;">&quot;262144&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/profile<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;profile</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;vlcmpeg&quot;</span> <span style="color: #000066;">enabled</span>=<span style="color: #ff0000;">&quot;no&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;external&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mimetype<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>video/mpeg<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mimetype<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;accept-url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>yes<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/accept-url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;first-resource<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>yes<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/first-resource<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;accept-ogg-theora<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>yes<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/accept-ogg-theora<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;agent</span> <span style="color: #000066;">command</span>=<span style="color: #ff0000;">&quot;vlc&quot;</span> <span style="color: #000066;">arguments</span>=<span style="color: #ff0000;">&quot;-I dummy %in --sout #transcode{venc=ffmpeg,vcodec=mp2v,vb=4096,fps=25,aenc=ffmpeg,acodec=mpga,ab=192,samplerate=44100,channels=2}:standard{access=file,mux=ps,dst=%out} vlc:quit&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;buffer</span> <span style="color: #000066;">size</span>=<span style="color: #ff0000;">&quot;14400000&quot;</span> <span style="color: #000066;">chunk-size</span>=<span style="color: #ff0000;">&quot;512000&quot;</span> <span style="color: #000066;">fill-size</span>=<span style="color: #ff0000;">&quot;120000&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/profile<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/profiles<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/transcoding<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/config<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/working-mediatomb-config-xml-for-samsung-ue37c5000/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make Joomla 1.0 work with PHP 5.3</title>
		<link>http://www.sgvulcan.com/make-joomla-1-0-work-with-php-5-3/</link>
		<comments>http://www.sgvulcan.com/make-joomla-1-0-work-with-php-5-3/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 10:43:03 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/make-joomla-1-0-work-with-php-5-3/</guid>
		<description><![CDATA[With the recent posts regarding resurrecting old stuff, recently I had to resurrect a Joomla 1.0 site. Soon enough I discovered that the home page doesn&#8217;t display correctly. No errors, just lots of white space . The problem is that Joomla 1.0 is not really made for PHP 5.3. Of course I could have started a virtual machine with the right environment but I wanted it running along some newer sites. Here&#8217;s an easy fix: Edit ./includes/Cache/Lite/Function.php, find the line reading View Code PHP1 &#60;strong&#62;$arguments = func_get_args&#40;&#41;;&#60;/strong&#62; and replace with: View Code PHP1 2 3 4 5 $arguments = func_get_args&#40;&#41;; $numargs = func_num_args&#40;&#41;; for&#40;$i=1; $i &#38;lt; $numargs; $i++&#41;&#123; $arguments&#91;$i&#93; = &#38;amp;$arguments&#91;$i&#93;; &#125; Check now, it should be working. Enjoy your new old site &#160;]]></description>
			<content:encoded><![CDATA[<p>With the recent posts regarding resurrecting old stuff, recently I had to resurrect a Joomla 1.0 site. Soon enough I discovered that the home page doesn&#8217;t display correctly. No errors, just lots of white space <img src='http://www.sgvulcan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . The problem is that Joomla 1.0 is not really made for PHP 5.3. Of course I could have started a virtual machine with the right environment but I wanted it running along some newer sites. Here&#8217;s an easy fix:</p>
<p>Edit ./includes/Cache/Lite/Function.php, find the line reading</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1516code7'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p15167"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p1516code7"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>strong<span style="color: #339933;">&gt;</span><span style="color: #000088;">$arguments</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/func_get_args"><span style="color: #990000;">func_get_args</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;&lt;/</span>strong<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>and replace with:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1516code8'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p15168"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p1516code8"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$arguments</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/func_get_args"><span style="color: #990000;">func_get_args</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$numargs</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/func_num_args"><span style="color: #990000;">func_num_args</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> <span style="color: #000088;">$numargs</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$arguments</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;</span><span style="color: #000088;">$arguments</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Check now, it should be working. Enjoy your new <em>old</em> site <img src='http://www.sgvulcan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/make-joomla-1-0-work-with-php-5-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shrink (resize) a LVM volume</title>
		<link>http://www.sgvulcan.com/shrink-resize-a-lvm-volume/</link>
		<comments>http://www.sgvulcan.com/shrink-resize-a-lvm-volume/#comments</comments>
		<pubDate>Tue, 17 May 2011 09:11:18 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[logical]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[resize]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[shrink]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[volume]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1385</guid>
		<description><![CDATA[I found a lot of resources on resizing LVM volumes or volume groups. But resources on shrinking were a little scarce and I couldn&#8217;t easily find a simple step by step method listed, so here you go. Please note that the volume you intend to shrink must be unmounted. If you want to resize the root partition (because like me you didn&#8217;t noticed that the ubuntu server installer will alocate the full 500Gb HDD for the root) you will have to boot off a LiveCD. I used the ubuntu server install cd and booted in Rescue Mode. After it boots press ALT+F2 to move to a console. Let&#8217;s see first the layout: View Code BASH1 lvdisplay Let&#8217;s try and see if the volumes are there: View Code BASH1 ls /dev/vgname/volume On the first try I got nothing so we must enable them: View Code BASH1 2 vgchange -a y ls /dev/vgname/volume Yep, they are all there. Before anything else we need to check the volume for errors (resize2fs will not work if you don&#8217;t) View Code BASH1 e2fsck -f /dev/vgname/volume After that we resize the filesystem: View Code BASH1 resize2fs /dev/vgname/volume 15G Note that if you resize the volume to [...]]]></description>
			<content:encoded><![CDATA[<p>I found a lot of resources on resizing LVM volumes or volume groups. But resources on shrinking were a little scarce and I couldn&#8217;t easily find a simple step by step method listed, so here you go. Please note that the volume you intend to shrink must be unmounted. If you want to resize the root partition (because like me you didn&#8217;t noticed that the ubuntu server installer will alocate the full 500Gb HDD for the root) you will have to boot off a LiveCD. I used the ubuntu server install cd and booted in <em>Rescue Mode</em>.</p>
<p>After it boots press ALT+F2 to move to a console.</p>
<p>Let&#8217;s see first the layout:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1385code17'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p138517"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p1385code17"><pre class="bash" style="font-family:monospace;">lvdisplay</pre></td></tr></table></div>

<p>Let&#8217;s try and see if the volumes are there:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1385code18'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p138518"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p1385code18"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>vgname<span style="color: #000000; font-weight: bold;">/</span>volume</pre></td></tr></table></div>

<p>On the first try I got nothing so we must enable them:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1385code19'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p138519"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p1385code19"><pre class="bash" style="font-family:monospace;">vgchange <span style="color: #660033;">-a</span> y
<span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>vgname<span style="color: #000000; font-weight: bold;">/</span>volume</pre></td></tr></table></div>

<p>Yep, they are all there.</p>
<p>Before anything else we need to check the volume for errors (resize2fs will not work if you don&#8217;t)</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1385code20'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p138520"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p1385code20"><pre class="bash" style="font-family:monospace;">e2fsck <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>vgname<span style="color: #000000; font-weight: bold;">/</span>volume</pre></td></tr></table></div>

<p>After that we resize the filesystem:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1385code21'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p138521"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p1385code21"><pre class="bash" style="font-family:monospace;">resize2fs <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>vgname<span style="color: #000000; font-weight: bold;">/</span>volume 15G</pre></td></tr></table></div>

<p><strong>Note that if you resize the volume to a size smaller than the file system it will trim it (the file system) and probably destroy it</strong><br />
Above, I reduced the filesystem from 453 to 15gb. That is a 438Gb gain.  Just to be on the safe side I will resize the volume only with 435Gb (leaving play room of over 3Gb which is plenty enough, 1Gb should be sufficient).</p>
<p><em>E.g. if you want your final size to be 15Gb than resize the fs to 14Gb, shrink the logical volume to 15Gb and then grow the file system back.</em></p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1385code22'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p138522"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p1385code22"><pre class="bash" style="font-family:monospace;">lvreduce <span style="color: #660033;">-L</span> <span style="color: #660033;">-435G</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>vgname<span style="color: #000000; font-weight: bold;">/</span>volume</pre></td></tr></table></div>

<p>Let&#8217;s put whatever was left for safety to use (grow back the file system to the full volume size):</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1385code23'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p138523"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p1385code23"><pre class="bash" style="font-family:monospace;">resize2fs <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>vgname<span style="color: #000000; font-weight: bold;">/</span>volume</pre></td></tr></table></div>

<p>Just to be on the safe side let&#8217;s check the filesystem for errors.</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1385code24'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p138524"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p1385code24"><pre class="bash" style="font-family:monospace;">e2fsck <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>vgname<span style="color: #000000; font-weight: bold;">/</span>volume</pre></td></tr></table></div>

<p>If you, like me, have resized the root than now you should reboot, otherwise simply mount back the volume and enjoy the free space by creating new volumes.</p>
<p><span style="color: #ff0000;"><strong>Remember! I resized a test environment, which didn&#8217;t matter if it went away. If you resize a production system (or anything else with useful data on it) remeber to BACKUP!</strong></span></p>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/shrink-resize-a-lvm-volume/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to mount a windows share (samba) from the linux command line</title>
		<link>http://www.sgvulcan.com/how-to-mount-a-windows-share-samba-from-the-linux-command-line/</link>
		<comments>http://www.sgvulcan.com/how-to-mount-a-windows-share-samba-from-the-linux-command-line/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 18:03:08 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[share]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=705</guid>
		<description><![CDATA[As you know Linux does not use drive letters like Windows does. All files are organized under a big tree hierarchy. We use the mount command to mount partitions and this is the same command used to mount remote windows partition or windows shares. Please note that you&#8217;ll need to know the following: Windows username and password (the ones needed to access the share) The machine and share name. Something like //xpdesktop/pictures Have root access on the linux machine Login on your linux machine as root. Type the following command to mount your remote windows share: View Code BASH1 2 mkdir /mnt/share_name mount -t cifs //xpdesktop/pictures -o username=john, password=johnspass /mnt/share_name Where: xpdesktop is the network name of the Windows machine john is the username on  the windows machine johnspass is the password used to access the windows share /mnt/share_name is the target folder where the partition will be mounted (the folder you just created above) You can now cd and ls the remote windows share as any other folder on the linux machine: View Code BASH1 2 cd /mnt/share_name ls  -l I&#8217;ll show you in a following article how you can automatically mount a remote Windows share at boot time.]]></description>
			<content:encoded><![CDATA[<p>As you know Linux does not use drive letters like Windows does. All files are organized under a big tree hierarchy. We use the mount command to mount partitions and this is the same command used to mount remote windows partition or windows shares.</p>
<p>Please note that you&#8217;ll need to know the following:</p>
<ul>
<li>Windows username and password (the ones needed to access the share)</li>
<li>The machine and share name. Something like //xpdesktop/pictures</li>
<li>Have root access on the linux machine</li>
</ul>
<p>Login on your linux machine as root. Type the following command to mount your remote windows share:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p705code27'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p70527"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p705code27"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>share_name
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-t</span> cifs <span style="color: #000000; font-weight: bold;">//</span>xpdesktop<span style="color: #000000; font-weight: bold;">/</span>pictures <span style="color: #660033;">-o</span> <span style="color: #007800;">username</span>=john, <span style="color: #007800;">password</span>=johnspass <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>share_name</pre></td></tr></table></div>

<p>Where:</p>
<ul>
<li>xpdesktop is the network name of the Windows machine</li>
<li>john is the username on  the windows machine</li>
<li>johnspass is the password used to access the windows share</li>
<li>/mnt/share_name is the target folder where the partition will be mounted (the folder you just created above)</li>
</ul>
<p>You can now cd and ls the remote windows share as any other folder on the linux machine:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p705code28'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p70528"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p705code28"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>share_name
<span style="color: #c20cb9; font-weight: bold;">ls</span>  <span style="color: #660033;">-l</span></pre></td></tr></table></div>

<p>I&#8217;ll show you in a following article how you can automatically mount a remote Windows share at boot time.</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/how-to-mount-a-windows-share-samba-from-the-linux-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slackware 13 is here</title>
		<link>http://www.sgvulcan.com/slackware-13-is-here/</link>
		<comments>http://www.sgvulcan.com/slackware-13-is-here/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 07:48:50 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[slackware]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/slackware-13-is-here/</guid>
		<description><![CDATA[Yupeee, a new toy. Slacware 13.0 is out, with an official and in sync 64bit version too. Finally upgraded to KDE 4.2.x. Get yours while it&#8217;s hot. And don&#8217;t forget to support the project by buying the dvd&#8217;s from the Slackware store. Have fun!]]></description>
			<content:encoded><![CDATA[<p>Yupeee, a new toy. Slacware 13.0 is out, with an official and in sync 64bit version too. Finally upgraded to KDE 4.2.x.</p>
<p>Get yours while it&#8217;s hot. And don&#8217;t forget to support the project by buying the dvd&#8217;s from the Slackware store.</p>
<p>Have fun! </p>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/slackware-13-is-here/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I have a linux Jukebox ! [2011 update]</title>
		<link>http://www.sgvulcan.com/i-have-a-linux-jukebox/</link>
		<comments>http://www.sgvulcan.com/i-have-a-linux-jukebox/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 19:30:04 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Articles]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Microcontrollers]]></category>
		<category><![CDATA[blaupunkt]]></category>
		<category><![CDATA[esekeyd]]></category>
		<category><![CDATA[jukebox]]></category>
		<category><![CDATA[lcd-stuff]]></category>
		<category><![CDATA[lcdproc]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mpc]]></category>
		<category><![CDATA[mpd]]></category>
		<category><![CDATA[numpad]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=462</guid>
		<description><![CDATA[Finally, after years of putting it away, after a few design changes and a fried motherboard I have a linux jukebox. Well, not a jukebox but more an internet radio. Check at the bottom for the latest updates. When I first had the ideea I noticed an old ~ &#8217;50s Blaupunkt Radio my father had in his basement. I investigated if the radio was worth restoring but the inside was rusted, the capacitors were long gone and most of the tubes were missing. It was more a case of rebuilding rather than restoring. I checked around the internet and saw that many models like this one existed, so it was not rare. And so, the radio was gutted and the insides went away. I cleaned and repaired the case as best as I could. The first ideea was to have a big harddrive inside, an amp and external speakers hooked to it. It worked like this for a while until the motherboard I used fried and so did the amp. The project was eventualy put aside. Anyways recently, I aquired an old Pentium III Compaq. By the case I could swear it was a small motherboard. It was NOT, and [...]]]></description>
			<content:encoded><![CDATA[<p>Finally, after years of putting it away, after a few design changes and a fried motherboard I have a linux jukebox. Well, not a jukebox but more an internet radio.</p>
<p><strong>Check at the bottom for the latest updates.</strong></p>
<div id="attachment_463" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.sgvulcan.com/wp-content/uploads/2009/08/IMG_9095_i.jpg" rel="lightbox[462]"><img class="size-medium wp-image-463" title="Linux Webradio" src="http://www.sgvulcan.com/wp-content/uploads/2009/08/IMG_9095_i-300x200.jpg" alt="Linux Webradio" width="300" height="200" /></a><p class="wp-caption-text">Linux internet radio inside a vintage Blaupunkt radio case</p></div>
<p>When I first had the ideea I noticed an old ~ &#8217;50s Blaupunkt Radio my father had in his basement. I investigated if the radio was worth restoring but the inside was rusted, the capacitors were long gone and most of the tubes were missing. It was more a case of rebuilding rather than restoring. I checked around the internet and saw that many models like this one existed, so it was not rare. And so, the radio was gutted and the insides went away. I cleaned and repaired the case as best as I could.</p>
<p>The first ideea was to have a big harddrive inside, an amp and external speakers hooked to it. It worked like this for a while until the motherboard I used fried and so did the amp. The project was eventualy put aside.</p>
<p>Anyways recently, I aquired an old Pentium III Compaq. By the case I could swear it was a small motherboard. It was NOT, and also the custom compaq psu had very short wires, but I managed to fit it inside. Since I have a media center pc hooked to the tv and the surround with all the music on it I decided to change the original ideea and make it what it originally was: a radio.</p>
<p>So, I gutted an old set of very good sounding Altec Lansing computer speakers and installed the small amp and speakers inside. I also mounted the motherboard and psu inside. One small fan on a side does the job of cooling everything down. I use one of the buttons on the front for the amp and another one for the computer.</p>
<p>I gave up the harddrive from the original design for a compact flash &lt;-&gt; ide adapter and the system now boots from a 4 Gb compact flash card. I think I could have squeezed everything on a smaller card but I decided to do all the compiling in place and since cards are cheap I went for a big one. The adapter has space for a second card and, if I want I can fit a second, bigger card, to hold some music.</p>
<p>I have a usb numpad for control and the <a href="http://www.sgvulcan.com/4x20-lcd-screen-with-usb-interface/">usb lcd display</a> featured some time ago on this site for display.</p>
<p>Software:</p>
<ul>
<li><a href="http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki" target="_blank">mpd</a> for playback</li>
<li><a href="http://mpd.wikia.com/wiki/Client:Mpc" target="_blank">mpc</a> for mpd control</li>
<li><a href="http://lcdproc.omnipotent.net/" target="_blank">Lcdproc</a> and <a href="http://lcd-stuff.berlios.de/">lcd-stuff</a> for usb lcd display</li>
<li><a href="http://www.burghardt.pl/tag/keyboard/" target="_blank">esekeyd</a> for numpad control</li>
<li>a bunch of bash scripts to glue everything in place</li>
</ul>
<p>I hit a few problems:</p>
<ul>
<li>Event Music Player Client daemon does not work, at least with my keypad. So I had to use an external daemon &#8211; esekeyd with mpc to control mpd.</li>
<li>lcd-stuff does not display the Name tag (that would be the radio station name, just the artist and track name. Fortunately it has a configuration tag to use as a title for the screen &#8211; on every playlist change a bashscript modifies that configuration setting to reflect the radio station&#8217;s name and reloads lcd-stuff &#8211; it&#8217;s ugly but it works.</li>
<li>I didn&#8217;t find a way to save .pls and .m3u files and have them recognized by the mpd database. So a script is called at boot time (and also can be started from one of the keys on the keypad) to generate a playlist of the radio stations. Control is easy after that, it&#8217;s a matter of play/stop, next / prev</li>
<li>I wanted to have a way to shut down the system safely from the keypad. OTOH I didn&#8217;t want shutting down every time I hit the wrong key. But esekeyd doesn&#8217;t support combinations. So I had <strong>*</strong> create a file, <strong>/</strong> create a second one but only if the first file (created by *) existed and on backspace press verify if the two files exist and if yes poweroff.</li>
</ul>
<p>I&#8217;ll post soon more photos, the insides and the configuration files and bash scripts used.</p>
<p><strong>2011 Update</strong></p>
<p>It never functioned reliably and so I decided on rebuilding it once more <img src='http://www.sgvulcan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<ul>
<li>The Compaq Deskpro EN was reassembled and donated to charity.</li>
<li>I bought the cheapest intel motherboard with an atom processor.</li>
<li>With the motherboard I also bought a small, slim PSU which happened to have the loudest annoying fan I ever heard. Fortunately the motherboard and disk use small amounts of power so no heat is produced. I hooked the fan to 5v and now it&#8217;s quiet.</li>
<li>I got a good deal on a pair of Microlab powered speakers (were the last in stock, open box) so I hooked those up to the radio. It&#8217;s still possible to use the insternal speakers but why would you want to <img src='http://www.sgvulcan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>Used a 500Gb sata disk that I also had around.</li>
<li>Took the oportunity to update slackware, mpd and everything else to the latest versions.</li>
<li>Took out the LCD until I can find time to build it in a nice case</li>
<li>The usb numpad is still there but I&#8217;m having trouble finding a daemon that actually works between two reboots</li>
<li>I use Client175 for web control and also Sonata on n800 and DroidMPD on my wife&#8217;s tablet to control it. Having 500Gb it&#8217;s got it&#8217;s music back (not only internet radio).</li>
<li>Since playlist support seems to be better now I have each radio stored in a playlist that DroidMPD or Client175 can simply load.</li>
<li>The best thing is that there are no custom hackish scripts left that could break all the time. It&#8217;s just stock mpd, playlists and the clients. Oh, I also have the command line clients installed for when I ssh into it using my n900.</li>
<li>The only problematic thing left is the shitty usb wi-fi adapter I use (don&#8217;t know, might be the drivers) it&#8217;s slow and sometimes connection drops. I added <strong>ping -c1 GATEWAY_IP </strong>in cron every 2 minutes and this seems to help.</li>
</ul>
<p>Somebody in the comments asked for the configurations and scripts  The original ones, from the compact flash should still be in backups somewhere but I don&#8217;t see how they could help, as they point to old or discontinued versions.  (lcd-stuff comes to mind). The configuration I use now is as stock as one can get with mpd. Let me know if you have questions about it and also <strong><em>please</em></strong> recommend me a daemon that can listen for keystrokes from the usb keypad and it&#8217;s stable.</p>
<p>Have fun.</p>
<h1 class="ha"><span id=":4g" class="hP"> I have a linux Jukebox !</span></h1>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/i-have-a-linux-jukebox/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Recover your lost linux slackware root password</title>
		<link>http://www.sgvulcan.com/recover-your-lost-linux-slackware-root-password/</link>
		<comments>http://www.sgvulcan.com/recover-your-lost-linux-slackware-root-password/#comments</comments>
		<pubDate>Thu, 28 May 2009 13:31:13 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[slackware]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=144</guid>
		<description><![CDATA[I&#8217;m an avid Slackware user. It was the distro I started using back in &#8217;98 and, even if I tried and used many others I still like it the most. Anyways these rules apply to many other flavours of linux. One of the problems I faced is needing to make changes on inherited machines that nobody knew the passwords for. So, if you face the same problem, or you simply forgot the root password because you usually use a normal user account here&#8217;s what you have to do to reset the password. What you need: a bootable linux cd or flash usb drive. (You could use the slackware install disk, but any bootable, or Live CD should do as long as it has drivers for your filesystem and basic hardware) You need to reboot the machine and boot it of the CD/USB stick. For the sake of the demonstration I will asume you use the slackware 12.2 install disk. If you use another just boot it and open a shell/console. Log in as root. Create a temporary directory to mount your / (root) partition where Slackware Linux is installed: View Code BASH1 mkdir /tmppart Mount your partition there: View Code [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m an avid Slackware user. It was the distro I started using back in &#8217;98 and, even if I tried and used many others I still like it the most. Anyways these rules apply to many other flavours of linux.</p>
<p>One of the problems I faced is needing to make changes on inherited machines that nobody knew the passwords for. So, if you face the same problem, or you simply forgot the root password because you usually use a normal user account here&#8217;s what you have to do to reset the password.</p>
<p>What you need: a bootable linux cd or flash usb drive. (You could use the slackware install disk, but any bootable, or Live CD should do as long as it has drivers for your filesystem and basic hardware)</p>
<p>You need to reboot the machine and boot it of the CD/USB stick. For the sake of the demonstration I will asume you use the slackware 12.2 install disk. If you use another just boot it and open a shell/console.</p>
<p>Log in as root.</p>
<p>Create a temporary directory to mount your / (root) partition where Slackware Linux is installed:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p144code32'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p14432"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p144code32"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>tmppart</pre></td></tr></table></div>

<p>Mount your partition there:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p144code33'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p14433"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p144code33"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hda1 <span style="color: #000000; font-weight: bold;">/</span>tmppart</pre></td></tr></table></div>

<p>Of course you need to replace hda1 with the partition where / is on your drive. Next you need to edit /etc/shadow to remove the root password.</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p144code34'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p14434"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p144code34"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>tmppart<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>shadow</pre></td></tr></table></div>

<p>Locate the line starting with root: followed by letters and numbers. It&#8217;s easy, it&#8217;s usually the first line in the file. Remove everything between the first two <strong>:</strong> . Alternatively, if you know the password of another user copy everything from between the first two<strong> : </strong>to the root user.  Save the file and reboot.</p>
<p>Root should now have no password / a password identical with the one of the user you copied it from.</p>
<p>Easy. Useless to say that you must understand that if you don&#8217;t own the system / don&#8217;t have express permission from the owner you are doing something illegal. If you get arrested/fired it&#8217;s your problem.</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/recover-your-lost-linux-slackware-root-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

