I just completed an upgrade from Mint 18.1 to Mint 19. The Mint team has provided wonderful tools to do the upgrade. Very clear instructions can be found here ===> https://community.linuxmint.com/tutorial/view/2416
Even with these tools, the process is more difficult than I had expected. It took more than full day to get everything working again -- a surprising amount of time because my system is not that complicated.
I decided to document my experience and share it with the community just in case it may help someone get through the upgrade with less frustration and angst than I experienced.
This is not intended to be a general guide; it is instead a description of what I did to get my particular system working after the upgrade.
The system I upgraded was Linux Mint 18.1 Cinnamon running on an Intel NUC7 that I use as a network storage server and media player. Storage is accessed via SAMBA shares and media is played by vlc and python programs I wrote that are controlled by an IR remote via lirc.
The following is a step-by-step description of the upgrade, the problems encountered and the solutions. The steps documented here either fix or avoid problems with a vnc server, lirc and vlc
STEP 1: Upgrade from Mint 18.1 to Mint 18.3
A) I backed up my system using a utility external to Linux. I did not use Timeshift. I used it once to restore another system (it has a boot manager with legacy BIOS booting) and it overwrote the master boot record. It took about an hour to recover from that problem. I don't expect I will ever use Timeshift again.
B) I applied all level 1-3 maintenance.
C) I removed a video driver (xserver-xorg-video-intel), which is not required for the upgrade, but is recommended to improve performance.
D) Using the Update Manager, I upgraded to ver 18.3. No problems were encountered. Everything went smoothly.
STEP 2: Preparing for the upgrade to Mint 19
A) This is the third time I have done an upgrade to ver 19 and I discovered a few changes that can be done now that will simplify things later. Those changes are:
- Removed vino (a VNC server). The vino graphical configuration editor is no longer available in Mint 19. I could have kept vino and continued to use it but it did not seem worth the effort. Good alternatives are available so I decided to remove it now.
- Removed lirc, lirc-x and liblirccliente0. It was difficult for me trying to get lirc to work again after the upgrade. I eventually had to uninstall it to get things working so I decided to remove it now. Surprisingly, this also removed vlc. This turned out to be helpful as explained below.
C) After installing lightdm, autologin no longer worked. I found a lot of advice on how to get autologin working again but most of the advice was to edit a configuration file. A much better solution, I think, is to use a settings applet. Menu -> Settings -> Login Window; Users tab; enter the Username for automatic login. Done.
D) I backed up the system.
STEP 3: Doing the upgrade to Mint 19
A) The first step is to install mintupgrade.
B) Unlike the upgrade to Mint 18.3, the upgrade to Mint 19 requires that you configure Timeshift. In my limited experience with Linux and application installations, an invitation to backup is often given but a backup is not required. I was surprised and disappointed by this change; it reflects a "we know what is best for you" attitude that I have come to expect from Apple software developers. NOTE to Linux developers: PLEASE don't become like them.
Fortunately, the use of Timeshift can be avoided by running the following command:
Code: Select all
sudo touch /etc/timeshift.json
D) I then performed the upgrade by running mintupgrade download followed by mintupgrade upgrade.
E) These two steps took a while. After they finished (all went well), I rebooted the system.
STEP 4: Fixing things that broke or changed
A) My system has an SSD and plenty of RAM. I had configured the system to swap less by making a change to /etc/sysctl.conf. That configuration file was replaced so I needed to make the change again by adding the line: vm.swappiness=1
B) I had a number of problems with lirc and an IR remote. Mint 19 and the kernel I installed behave very differently from what I had been running. I got lirc working again by doing the following:
(1) Installed ir-keytable. (Note that lirc is not installed at this point.)
(2) Ran the following to get the IR transceiver name, which is "ITE8708 CIR transceiver":
Code: Select all
grep "^N:" | /proc/bus/input/devices
(4) Set up a modified key table for my remote:
Code: Select all
sudo cp /lib/udev/rc_keymaps/rc6_mce /etc/rc_keymaps/my_RC6_key_map
gksu xed /etc/rc_keymaps/my_RC6_key_map (edit as desired)
Code: Select all
* rc-rc6-mce my_RC6_key_map
(7) Blocked IR signals from getting to X11. This required two changes:
- Created a rule for X11 to ignore the remote:
Code: Select all
gksu xed /usr/share/X11/xorg.conf.d/10-mce-keyboard-disable.conf
# Disable CIR transceiver as an input device to X11
Section "InputClass"
Identifier "CIR transceiver disabled as X11 input device"
MatchProduct "ITE8708 CIR transceiver"
Option "Ignore" "on"
EndSection
- Disabled lircd-uinput from forwarding IR signals back to the kernel:
Code: Select all
sudo systemctl stop lircd-uinput.service
sudo systemctl disable lircd-uinput.service
Code: Select all
sudo systemctl stop irexec.service
sudo systemctl disable irexec.service
C) Installed x11vnc (replacement for vino).
Code: Select all
sudo apt-get install x11vnc
sudo mkdir /etc/x11vnc
sudo x11vnc --storepasswd /etc/x11vnc/x11vncpswd
gksu /etc/x11vnc/x11vncpswd
[Unit]
Description=Start x11vnc at boot.
After=multi-user.target display-manager.service
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -forever -noxdamage -repeat -rfbauth /etc/x11vnc/x11vncpswd -rfbport=5900 -shared
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable x11vnc.service
sudo systemctl start x11vnc.service
PROBLEM AVOIDED:
After completing one of my previous attempts to upgrade, vlc could not open my media files. Apparently a different flavor of vlc is installed during the upgrade to Mint 19, which can be fixed by uninstalling vlc-nox and installing vlc. By removing vlc prior to the upgrade, this problem was avoided.
I hope these notes will be at least a small help to someone.