HanG321 Blog
Be Shine, Be Smile, Be Wild
  • Home
  • Blog
    • 好文閱讀 readings
    • 生活記事 diary
    • 時事評論 commentary
    • 科技資訊 technology
    • 電腦編程 programming
    • 金融財經 finance
    • 音樂電影 music/movie
  • About

SSD

March 20, 2015|生活記事, 科技資訊

Dam Windows 7, 不知名既情況下得返1GB free space, 隻120GB SSD 唔夠用.

打算入手 Samsung 850 EVO 500GB, 最近降價到USD179

 

 

開了個 Amazon Associate account, 唔知咁樣work 唔work.

Upgrade Mint 14 to Mint 17 (2/2: customization)

Upgrade Mint 14 to Mint 17 (2/2: customization)

September 6, 2014|Linux, mint|電腦編程

續篇, 前一篇: Upgrade Mint 14 to Mint 17 (1/2: installation)

1st issue: Theme broken

Preference > Apperance > select new theme : e.g. Mint-X

2: pluma error:

Shell
1
Fontconfig error: "/etc/fonts/conf.d/65-khmer.conf", line XX: out of memory (pluma:24894): IBUS-WARNING **: The owner of ~/.config/ibus/bus is not root!
run Update Manager 就會冇左65-khmer.conf  , 或者 apt-get purge fonts-khmeros-core

3: Panel

自行加入menu icon, unlock panel, 再自己加入 short cut. 由4 workspaces個改做2個

4: gradle

version 太舊, 在synaptic package manager 中移除, 再用gvm  install Gradle and Groovy on Mint 17

5: gedit

pluma 最大既問題係缺少plugin, 尤其係session restore

安裝 gedit 3.10

Shell
1
2
sudo apt purge gedit gedit-common
sudo apt install gedit/trusty gedit-common/trusty

session retore plugin – https://github.com/raelgc/gedit-restore-tabs

groovy language (syntax highlight)

https://github.com/aeischeid/gedit-grails-bundle , download zip, 然後安裝.
再將lang file 放入自己的folder   cp /usr/share/gtksourceview-2.0/language-specs/groovy.lang  ~/.local/share/gtksourceview-3.0/language-specs/

6: chromium 中文title 顯示問題

http://superuser.com/questions/705658/unicode-characters-cannot-be-displayed-on-chrome-tab-title-on-linux

Shell
1
2
3
cd /etc/fonts/conf.d && ls *droid*.conf
mv *droid*.conf /tmp/
fc-cache -f -r

7: can’t add custom repositories

sudo apt-get update
sudo apt-get install –reinstall mintsources

 

Upgrade Mint 14 to Mint 17 (1/2: installation)

Upgrade Mint 14 to Mint 17 (1/2: installation)

September 4, 2014|Linux, mint|電腦編程

Mint 14 (mate) 已經end-of-life, 2個月前更新了工作用的電腦. 現在留下一個記錄.

如果沒有太多customization, 其實直接安裝mint 17 再copy home directory back 比較方便.

Reference:

  • http://www.linuxmint.com/oldreleases.php
  • https://wiki.ubuntu.com/Releases
  • https://gist.github.com/hgomez/7074150
  • http://www.tecmint.com/upgrade-linux-mint-16-to-linux-mint-17/
Mint version Mint codename Ubuntu version Ubuntu codename
17 Qiana 14.04 LTS Trusty
16 Petra 13.10 Saucy
15 Olivia 13.04 Raring
14 Nadia 12.10 Quantal

Step 1: Backup

$ sudo cp /etc/apt/sources.list ~/sources.list.org 

備份home 連同其他有需要directories, mysqldump, CloneZilla image ….etc.

Step 2: verify current version

Shell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$ sudo cat /etc/issue.net && echo -e \\n && cat /etc/lsb-release && echo -e && cat /etc/os-release
 
Linux Mint 14 Nadia
 
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=14
DISTRIB_CODENAME=nadia
DISTRIB_DESCRIPTION="Linux Mint 14 Nadia"
 
NAME="Ubuntu"
VERSION="12.10, Quantal Quetzal"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu quantal (12.10)"
VERSION_ID="12.10"

Step 3: mint 14 升級到 mint 17

將code name 改到 17

Shell
1
2
3
4
5
6
7
$ sudo sed -i 's/quantal/trusty/' /etc/apt/sources.list
$ sudo sed -i 's/nadia/qiana/' /etc/apt/sources.list
$ sudo sed -i '/medibuntu/s/^/#/' /etc/apt/sources.list # medibuntu has been closed
$ sudo apt-get update && sudo apt-get dist-upgrade
1998 upgraded, 534 newly installed, 31 to remove and 4 not upgraded.
Need to get 1,463 MB of archives.
After this operation, 1,415 MB of additional disk space will be used.

過程中會有問題要回答, Yes 就可以

例如 “install the package maintainer’s version”?  <<– Yes
“Restart service during package upgrades without asking?” <<– Yes

有些package 會有問題, 例如

Shell
1
2
3
4
5
6
7
8
9
npacking libmatekbd-common (1.8.0-0+qiana) ...
dpkg: error processing archive /var/cache/apt/archives/libmatekbd-common_1.8.0-0+qiana_all.deb (--unpack):
trying to overwrite '/usr/share/locale/gu/LC_MESSAGES/libmatekbd.mo', which is also in package libmatekbd 1.4.0-1+precise
No apport report written because MaxReports is reached already
Processing triggers for libglib2.0-0:i386 (2.40.0-2) ...
Processing triggers for libglib2.0-0:amd64 (2.40.0-2) ...
Errors were encountered while processing:
/var/cache/apt/archives/libmatekbd-common_1.8.0-0+qiana_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

再執行強制更新, 然後重新啟動

Shell
1
2
3
4
5
6
7
8
$ sudo apt-get -f install
  ....
  Answer Yes to "install the package maintainer's version"
$ sudo apt-get dist-upgrade
.......
$ sudo apt-get upgrade
.....
$ sudo shutdown -r now

Step 4: 第一次登入

輸入用戶名稱及密碼, 登入 >> 失敗!! 黑畫面.

Shell
1
$ sudo apt-get dist-upgrade -t trusty

都係唔得, fail to display xsession (in /etc/X11/Xsession.d/ 00…. pointing to /usr/bin/gnome-session)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$ cat ~/.xsession-errors
/etc/mdm/Xsession: Beginning session setup...
localuser:steve being added to access control list
Script for ibus started at run_im.
Script for auto started at run_im.
Script for default started at run_im.
Failed to connect to the VirtualBox kernel service
Failed to connect to the VirtualBox kernel service
Failed to connect to the VirtualBox kernel service
Failed to connect to the VirtualBox kernel service
Failed to connect to the VirtualBox kernel service
Script for ibus started at run_im.
Script for auto started at run_im.
Script for default started at run_im.
x-session-manager[4190]: CRITICAL: We failed, but the fail whale is dead. Sorry....

可以install lightdm 代替mdm  $ sudo apt-get install lightdm 最後找到原因, 不用install lightdm. 其實係default option: last session 唔得, 要改用MATE.

 

mint-mate-login

Step 5: verify

official repository 如下.

Shell
1
2
3
4
5
6
7
8
$ sudo vim /etc/apt/sources.list.d/official-package-repositories.list
 
deb http://packages.linuxmint.com qiana main upstream import
deb http://extra.linuxmint.com qiana main
deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ trusty partner

repeat step 2

完成!! 其他tweaking 另外再說

...1011121314...40...

 

如果你喜歡我的文章,請幫忙按 1-10次 LikeButton 化讚為賞,非常感謝!越喜歡當然可以越按越多 😛

搜尋 Search

簡介 Bio

香港人,現居南十字星空下。

為人貪心,科技、生活、財經、散文 皆有興趣,周身刀冇張利。

思想矛盾,喜歡現在work-life balance 既生活又懷念a city never sleep。

 

每月送我一杯咖啡支持我: liker.land/hang321




分類 Categories

  • 好文閱讀
  • 時事評論
  • 未分類
  • 生活記事
  • 科技資訊
  • 金融財經
  • 電腦編程
  • 音樂電影

文章存檔 Archives




熱門文章 Popular Posts

  • Install XPEnology (DSM) 5.1 on ESXi 6 (HP MicroServer Gen 8)
    Install XPEnology (DSM) 5.1 on ESXi 6 (HP MicroServer Gen 8) June 8, 2015
  • 呢幾日個blogger 有問題….
    呢幾日個blogger 有問題…. October 28, 2004
  • assembly
    assembly February 11, 2006
  • 新工作
    新工作 January 6, 2009
  • 嫁人要嫁工程師
    嫁人要嫁工程師 April 27, 2006

標籤雲 Tag Cloud

CentOS Character chroot Cluster crash cryptography DD-WRT debug Domino DSM Dual Core DWA email ESXi GCP git google HylaFax IE Java Javascript JRE LikeCoin Linux log LotusScript mint MX MySQL nginx PKI PowerShell Qwiklabs srt telent VMware vpn vSphere WinXP wordpress XPEnology 專欄 網絡資訊 選股 風帆

日曆 Calendar

June 2025
M T W T F S S
  « Feb    
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Follow Me

Follow Us on RSSFollow Us on TwitterFollow Us on YouTube

文章存檔 Archives

Copyright © 2004-2021 hang321.net. All Rights Reserved