Y_hagurin’s diary

パソコンの奴隷

3パーティションでUbuntu 15.04を削除してPear OSをインストールする

Windows7とLinux Mint17.2とUbuntu15.04が
パーティションで入っているマシンに
Ubuntu15.04を削除してPear OS 8(64-bit)をインストールする

準備

インストール

  • Pear OSをインストールしたいマシンにインストールメディアを挿して起動する
  • すると、Pear OS 8のインストーラが立ち上がるので、下のうちの2番目"Start the installer directly"を選択する
    • Boot the Live System
    • Start the installer directly <=
    • xforcevesa - boot Live in safe graphics mode
    • hd - boot the first hard disk
  • "Welcome"画面
    • まず、言語の設定をする。ここではEnglishを選択して、Continue
      • 日本語も入ってはいる
  • "Preparing to install Pear"画面
    • ここでは特にチェックはいれずにそのままContinue
    • ネットはWi-Fiドライバが最初から使える
  • "Installation type"画面
    • 自分でパーティションを設定するために"Something else"ボタンを選択してContinue
    • 今回はUbuntu15.04を消したいのでUbuntu15.04がマウントされている領域を選択して"-"をクリックしてfree spaceにする
    • free spaceをクリックして"+"をクリック、新たなPear OSのための領域をマウントしていく
    • 今回は、以下の表のようなマウントにした。
Partition: Size Type Location Use as Mount point
Root: 35000(MB) Logical Beginning Ext4 /
Home: 約88(GB) Logical Beginning Ext4 /home
swap: 約15(GB) Logical End swap area -
  • "Where are you?"画面
    • TokyoのままContinue
  • "Keyboard layout"画面
    • Japanese - JapaneseのままContinue
      • test typeできるので、各自適当に打ってみよう
  • "Who are you?"画面
    • Pear OS 8用ログインアカウントを作成する
    • Your nameとpasswordを入力してContinue
  • インストールが始まる
  • インストールが完了したらInstallation Completeというウィンドウが表示されるので、Restart Nowをクリックして再起動
  • USBメモリをはずしてPearOSを起動

セットアップ

  • apt-getはいずれ必要になるであろうから事前準備をしておく
  • 普通にapt-getしてもうまくfetchできない
  • なので、/etc/apt/sources.listを編集する必要がある。
    • もとのsources.listを別名で取っておこう→$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.origin
    • Pear OSはサポートが終了しているのでaptのレポジトリを変更して別のレポジトリからfetchするようにしなければならない
    • 下記コマンドでfr.archiveとなっているところをold-releasesにする
    • pearlinux、extraとなっているところはとりあえずignoreすることにする
$ sudo sed -i -e 's/fr.archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
  • /etc/apt/sources.list の中身
#deb http://pearlinux-repo.fr/ Rocha main
deb http://old-releases.ubuntu.com/ubuntu raring main

#deb http://ppa.launchpad.net/nemh/gambas3/ubuntu raring main
deb http://old-releases.ubuntu.com/nemh/gambas3/ubuntu raring main

#deb http://ppa.launchpad.net/webupd8team/experiments/ubuntu raring main
deb http://old-releases.ubuntu.com/webupd8team/experiments/ubuntu raring main

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://old-releases.ubuntu.com/ubuntu/ raring main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ raring main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://old-releases.ubuntu.com/ubuntu/ raring-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://old-releases.ubuntu.com/ubuntu/ raring universe
deb-src http://old-releases.ubuntu.com/ubuntu/ raring universe
deb http://old-releases.ubuntu.com/ubuntu/ raring-updates universe
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://old-releases.ubuntu.com/ubuntu/ raring multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring multiverse
deb http://old-releases.ubuntu.com/ubuntu/ raring-updates multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse

deb http://old-releases.ubuntu.com/ubuntu raring-security main restricted
deb-src http://old-releases.ubuntu.com/ubuntu raring-security main restricted
deb http://old-releases.ubuntu.com/ubuntu raring-security universe
deb-src http://old-releases.ubuntu.com/ubuntu raring-security universe
deb http://old-releases.ubuntu.com/ubuntu raring-security multiverse
deb-src http://old-releases.ubuntu.com/ubuntu raring-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu raring partner
# deb-src http://archive.canonical.com/ubuntu raring partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
#deb http://extras.ubuntu.com/ubuntu raring main
#deb-src http://extras.ubuntu.com/ubuntu raring main
  • これでapt-getが使えるようになる
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade
  • あとはお好みで…
$ sudo apt-get install zsh
$ chsh -s /bin/zsh
$ exit

$ sudo apt-get install tmux curl emacs git pandoc open-sshserver unity-tweak-tool ibus-mozc
$ sudo add-apt-repository ppa:webupd8team/sublime-text-2
$ sudo apt-get update
$ sudo curl -L http://install.ohmyz.sh | sh
$ sudo apt-get install sublime-text
$ exit

$ upgrade_oh_my_zsh
$ sudo reboot