<?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>Musings of a techie &#187; Linux</title>
	<atom:link href="http://ivan.dreamtime.org/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://ivan.dreamtime.org</link>
	<description></description>
	<lastBuildDate>Sat, 06 Jan 2024 01:00:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ubuntu 18.04 upgrade</title>
		<link>http://ivan.dreamtime.org/2019/12/28/ubuntu-18-04-upgrade/</link>
		<comments>http://ivan.dreamtime.org/2019/12/28/ubuntu-18-04-upgrade/#comments</comments>
		<pubDate>Sat, 28 Dec 2019 11:37:58 +0000</pubDate>
		<dc:creator>ivan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://ivan.dreamtime.org/?p=198</guid>
		<description><![CDATA[The LTS upgrade from Ubuntu 16.04 to 18.04 has largely gone smoothly.
Once again there are problems on the VNC side (logging in remotely, using VNC), particularly useful when accessing the server from an Mac (OSX) machine, where you &#8220;share screen&#8230;&#8221; with the Linux server. However, it appears that the upgrade to Ubuntu 18.04 probably changes [...]]]></description>
			<content:encoded><![CDATA[<p>The LTS upgrade from Ubuntu 16.04 to 18.04 has largely gone smoothly.</p>
<p>Once again there are problems on the VNC side (logging in remotely, using VNC), particularly useful when accessing the server from an Mac (OSX) machine, where you &#8220;share screen&#8230;&#8221; with the Linux server. However, it appears that the upgrade to Ubuntu 18.04 probably changes the default desktop back to gdm3, which still appears not to support the VNC setup well according to the below:</p>
<p>https://askubuntu.com/questions/1033274/ubuntu-18-04-connect-to-login-screen-over-vnc/</p>
<p>Running the below command, and selecting to use lightdm as the desktop manager will get things back working again.</p>
<blockquote><p><strong>dpkg-reconfigure lightdm</strong></p></blockquote>
<p>It appears this changes the following symlink:</p>
<blockquote><p>root@shuttle:/etc/systemd/system/multi-user.target.wants# ls -l /etc/systemd/system/display-manager.service<br />
lrwxrwxrwx 1 root root 35 Dec 26 21:44 /etc/systemd/system/display-manager.service -&gt; /lib/systemd/system/lightdm.service</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://ivan.dreamtime.org/2019/12/28/ubuntu-18-04-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 16.04 upgrade</title>
		<link>http://ivan.dreamtime.org/2016/12/30/ubuntu-16-04-upgrade/</link>
		<comments>http://ivan.dreamtime.org/2016/12/30/ubuntu-16-04-upgrade/#comments</comments>
		<pubDate>Fri, 30 Dec 2016 13:49:38 +0000</pubDate>
		<dc:creator>ivan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://ivan.dreamtime.org/?p=188</guid>
		<description><![CDATA[This holiday saw me upgrade a home server from Ubuntu 14.04 to 16.04. I completed a similar upgrade on another machine recently, but this one has an &#8216;occasional use&#8217; desktop GUI. The thing that I needed to bear in mind is that Ubuntu 16.04 (like Centos 7 and above) uses systemd instead of System V [...]]]></description>
			<content:encoded><![CDATA[<p>This holiday saw me upgrade a home server from Ubuntu 14.04 to 16.04. I completed a similar upgrade on another machine recently, but this one has an &#8216;occasional use&#8217; desktop GUI. The thing that I needed to bear in mind is that Ubuntu 16.04 (like Centos 7 and above) uses <a title="systemd" href="https://www.freedesktop.org/wiki/Software/systemd/" target="_blank">systemd</a> instead of <a title="System V init" href="https://en.wikipedia.org/wiki/Init#SysV-style" target="_blank">System V init</a> or <a title="upstart" href="http://upstart.ubuntu.com/" target="_blank">upstart</a>, which affects numerous things (like logging, service restart, etc).</p>
<p>I find that staying behind the curve for upgrades, particularly where it is a <em>must work</em> machine,  saves a fair amount of grief. Although I invariably have to track down  problems, by the time I get around to an upgrade there tend to be other  people who have found (and worked-around) similar issues. This means I  can cherry-pick the preferred fix (rather than having to use the  horrible hack someone has documented, or track down the real  problem/fix).</p>
<p>During this upgrade, after rebooting the screen remained blank. After finding the machine was actually on the network, I tracked it down to this problem:<br />
<a href=" http://askubuntu.com/questions/792129/16-04-boot-stops-at-a-start-job-is-running-for-hold-until-boot-process-finish" target="_blank"> http://askubuntu.com/questions/792129/16-04-boot-stops-at-a-start-job-is-running-for-hold-until-boot-process-finish</a></p>
<p>Switching from the gdm3 desktop manager to lightdm fixed this issue; X usage is minimal so features are of minimal interest, as long as it works!</p>
<p>To get <a title="x11vnc" href="https://en.wikipedia.org/wiki/X11vnc" target="_blank">x11vnc</a> (the common/standard desktop-agnostic Ubuntu VNC server for X) to start in 16.04 (and later), with systemd, you need the following:<br />
<a href="https://help.ubuntu.com/community/VNC/Servers#Have_x11vnc_start_automatically_via_systemd_in_any_environment_.28Vivid.2B-.29" target="_blank">https://help.ubuntu.com/community/VNC/Servers#Have_x11vnc_start_automatically_via_systemd_in_any_environment_.28Vivid.2B-.29</a></p>
<p>Following the instructions does not seem to cause VNC to start. There must be a better way, but the brute-force reboot caused<br />
it to start a process on port 5900.</p>
<p>The side effect of switching away from gdm3 is that my VNC server configuration no longer functions &#8230; more work to do! By way of a reminder, the reason for VNC server is so that the user can connect to do admin tasks without having to physically connect KVM (keyboard/video/mouse) to the server. As OSX is the usual client, integration using <a title="Zeroconf" href="https://en.wikipedia.org/wiki/Zero-configuration_networking" target="_blank">Zeroconf</a> (<a title="Avahi" href="https://en.wikipedia.org/wiki/Avahi_(software)" target="_blank">Avahi</a>) makes a lot of difference!</p>
<p>To get Avahi notifying about the service, add the below config to a file (eg, rfb.service) to the /etc/avahi/services/ directory:</p>
<blockquote><p>&#8212;&#8212;&#8212;-<br />
&lt;?xml version=&#8221;1.0&#8243; standalone=&#8217;no&#8217;?&gt;&lt;!&#8211;*-nxml-*&#8211;&gt;<br />
&lt;!DOCTYPE service-group SYSTEM &#8220;avahi-service.dtd&#8221;&gt;<br />
&lt;service-group&gt;<br />
&lt;name replace-wildcards=&#8221;yes&#8221;&gt;%h&lt;/name&gt;<br />
&lt;service&gt;<br />
&lt;type&gt;_rfb._tcp&lt;/type&gt;<br />
&lt;port&gt;5900&lt;/port&gt;<br />
&lt;/service&gt;<br />
&lt;/service-group&gt;</p></blockquote>
<p>The above was shamelessly taken from <a href="http://holyarmy.org/2008/01/advertising-linux-services-via-avahibonjour/" target="_blank">holyarmy.org</a> &#8211; why re-invent the wheel?</p>
<p>Let&#8217;s hope that other things haven&#8217;t boken, although TimeMachine integration breakage tends to happen on OSX upgrades!</p>
]]></content:encoded>
			<wfw:commentRss>http://ivan.dreamtime.org/2016/12/30/ubuntu-16-04-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
