Alfred's spAcE

2015.10.24

Upgrade to Ubuntu Wily

Filed under: Linux — Tags: — Alfred Yang @ 11:07

Ubuntu Wily is released. I have to admit that I should not upgrade so early…

The whole upgrade process is “smooth”:

  1. disable zram_tmp & zram_swap service, in case they cause something;
  2. remove 3rd party repo list; yes, the upgrade process will do it for you, but I don’t like the comments it adds;
  3. remove my /etc/apt/apt.conf.d/01ubuntu-prefer, because I also add Wily repo when I’m using Vivid, and I want to prefer Vivid packages of coz; firstly I forget, so the upgrade always crash;

So, let’s see problems:

  1. Oops, my kernel is still 3.19.0.26; see this bug;
  2. There is no default route after I connect my ppp connection with “pon myconnection”, even the config is ok under Vivid; I have to add a script in /etc/ppp/ip-up.d/ to add it.
  3. Ahhh, finally this my pain – Thinkpad T440p’s clickpad, I hate it. I’m using this patched driver to gain middle button scroll. So now there is no ppa package for Wily yet. I have to download Vivid original source, this patched driver source, and Wily’s package source, do a 3-way merge, build it by myself – take a note, use “dpkg-buildpackage -rfakeroot -uc -b” to build .deb files.

2015.10.17

Upgrade ruTorrent

Filed under: Computers and Internet, Linux — Tags: — Alfred Yang @ 10:26

It is always a headache for me to upgrade it after so many months.

I have to take a note here.

  1. cannot use symbolic link for rutorrent top folder;
  2. (optional)remove unused plugins before move to new versions; I only use _getdir, rss, edit;
  3. chown -R www-data:www-data <rutorrent folder>
  4. stop rtorrent first;
  5. mv/cp new version to correct destination;
  6. start rtorrent; login webpage; make new settings available; stop rtorrent again;
  7. copy old RSS plugin settings to new version: cp -r <old folder>/share/users/admin/settings/rss/cache <new folder>/share/users/admin/settings/rss
  8. start rtorrent and enjoy.

Upgrade openssl and etc. on MyBook Live

Filed under: Computers and Internet, Linux — Tags: — Alfred Yang @ 10:17

MBL is running on a very old Debian Squeeze.

Long time ago, I found the rtorrent my compiling on this box wit rutorrent cannot get some https sites’ RSS. If I use wget/curl on the box to fetch same https URL, it complains something related to TLS. After googling, it turns out that squeeze official package of libcurl and openssl is too old, which does not support TLS 1.1 & 1.2.

So I compile openssl 1.0.1p and curl 7.38 and install, of coz, I have to recompile libtorrent and rtorrent to install again.

It works. The last problem is https tracker…seems the only solution is add “network.http.ssl_verify_peer.set=0” to “.rtorrentrc” (also powered by Google).

2015.07.04

Change the alias of lxc image

Filed under: Linux — Tags: , , — Alfred Yang @ 22:00

After using lxd-images to import some images from linuxcontainers.org, I think the alias I originally use is too long. But it takes me some time to find a way to change the alias. Finally, I find I can add an alias, then delete the old one.
$ lxc image list
+---------------+--------------+--------+-------------+--------+------------------------------+
| ALIAS | FINGERPRINT | PUBLIC | DESCRIPTION | ARCH | UPLOAD DATE |
+---------------+--------------+--------+-------------+--------+------------------------------+
| ubuntu-trusty | 04aac4257341 | no | | x86_64 | Jul 4, 2015 at 8:29am (CST) |
| centos6 | afae698680fc | no | | x86_64 | Jul 4, 2015 at 10:28am (CST) |
+---------------+--------------+--------+-------------+--------+------------------------------+
$ lxc image alias create trusty 04aac4257341
$ lxc image list
+-----------------+--------------+--------+-------------+--------+------------------------------+
| ALIAS | FINGERPRINT | PUBLIC | DESCRIPTION | ARCH | UPLOAD DATE |
+-----------------+--------------+--------+-------------+--------+------------------------------+
| trusty (1 more) | 04aac4257341 | no | | x86_64 | Jul 4, 2015 at 8:29am (CST) |
| centos6 | afae698680fc | no | | x86_64 | Jul 4, 2015 at 10:28am (CST) |
+-----------------+--------------+--------+-------------+--------+------------------------------+
$ lxc image alias delete ubuntu-trusty
$ lxc image list
+---------+--------------+--------+-------------+--------+------------------------------+
| ALIAS | FINGERPRINT | PUBLIC | DESCRIPTION | ARCH | UPLOAD DATE |
+---------+--------------+--------+-------------+--------+------------------------------+
| trusty | 04aac4257341 | no | | x86_64 | Jul 4, 2015 at 8:29am (CST) |
| centos6 | afae698680fc | no | | x86_64 | Jul 4, 2015 at 10:28am (CST) |
+---------+--------------+--------+-------------+--------+------------------------------+