4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Ubuntu新規インストール時の環境構築メモ

Posted at

デュアルブートとか仮想マシンとか、新しくUbuntuをインストールする機会が多いので、備忘録を兼ねたメモです。

環境

$ arch
x86_64
$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"
$ uname -a
Linux E440-l 4.4.0-89-generic #112-Ubuntu SMP Mon Jul 31 19:38:41 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

下準備

お決まりのアップデート、Windowsとのデュアルブート時のズレ防止、端末で操作しやすくするためにフォルダ名を英語表記に。

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo timedatectl set-local-rtc 1
$ LANG=C xdg-user-dirs-gtk-update

LAMP環境

$ sudo apt-get install git
$ sudo apt-get install ruby
$ sudo apt-get install apache2
$ sudo apt-get install php
$ sudo apt-get install libapache2-mod-php
$ sudo apt-get install mysql-server
$ sudo apt-get install php-mysql
$ sudo apt-get install phpmyadmin

エディタ

個々お好きなものがあると思うので、自分に合うものをどうぞ。
自分はAtom使ってます。
ホームページからdebパッケージダウンロードしてから、インストールします。

$ sudo dpkg -i (package name).deb

諸々

FuelPHP

個人的に使う機会が多いので、メモ。
FuelPHP » Downloads より最新版をダウンロード。
展開して、publicフォルダ内のファイルをドキュメントルートに、その他をその一つ上の階層にコピー。
あとはインストール。

$ cd /var/www
$ php oil refine install

http://localhost/ で初期ページが表示されれば完了。

Reference

[Ubuntuのバージョン確認とアーキテクチャ確認コマンド | mawatari.jp](Ubuntuのバージョン確認とアーキテクチャ確認コマンド | mawatari.jp)
UbuntuとWindowsをデュアルブートしていると時刻が9時間ずれる - 出羽と発火後忘失
Ubuntu日本語フォーラム / カタカナ表記のフォルダ名を英語表記にするには
Ubuntu 16.04 LTS 日本語 Remix でLAMPなど - Qiita

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?