ServersMan@VPS LABをさわってみた。
2015/08/29

そういえば、結局LABが使えますよとメールが来ていたのでした。
で、早速ログインをしてコンソールでバージョンを確認。
1 2 3 4 5 6 | xxxxxxx@lab-vps-xxxxxxxx:/ # cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=12.04 DISTRIB_CODENAME=precise DISTRIB_DESCRIPTION= "Ubuntu 12.04.2 LTS" xxxxxxx@lab-vps-xxxxxxxx:/ # |
お恥ずかしい話ながら、実は私はviの使い方がわかりません。ブイアイではなくヴィーアイと唇を軽く噛みながら発音をすること以外は何も使い方を知りません。というわけで、一番最初に導入するのはemacsです。
1 2 | xxxxxxx@lab-vps-xxxxxxxx:/ # yum install emacs - su : yum: command not found |
うん。
Ubuntu初めてだし。つーかコンソールで触るubuntuって、よくよく考えてみたらただのLinuxじゃないのかな。ぶつぶつと自分の無知を棚に上げながらググります。
第235回 Ubuntu 12.04でEmacs 24.1を使う
なるほど、まずはリポジトリの追加だね!
1 2 | xxxxxxx@lab-vps-xxxxxxxx:/ # add-apt-repository ppa:cassou/emacs - su : add-apt-repository: command not found |
さすがにまだキレるのは早すぎると自分を諌めつつ、調べます。
Topic: sudo: add-apt-repository: command not found???
I’ve read that the following command will fix the add-apt-repository command:
sudo apt-get install python-software-properties
なるほど。
01 02 03 04 05 06 07 08 09 10 11 12 13 14 | xxxxxxx@lab-vps-xxxxxxxx:/ # apt-get install python-software-properties Reading package lists... Done Building dependency tree # 中略 After this operation, 2402 kB of additional disk space will be used. Do you want to continue [Y /n ]? y Get:1 http: //archive .ubuntu.com /ubuntu/ precise /main librtmp0 amd64 2.4~20110711.gitc28f1bab-1 [57.1 kB] # 中略 Get:9 http: //archive .ubuntu.com /ubuntu/ precise-updates /main python-software-properties all 0.82.7.3 [22.3 kB] Fetched 622 kB in 2s (227 kB /s ) Preconfiguring packages ... (Reading database ... 27543 files and directories currently installed.) # 中略 ldconfig deferred processing now taking place |
できたできた。再度、emacsのリポジトリをゲットしにかかります。
01 02 03 04 05 06 07 08 09 10 11 12 13 | xxxxxxx@lab-vps-xxxxxxxx:/ # add-apt-repository ppa:cassou/emacs You are about to add the following PPA to your system: NEWS: EMACS 24.3 is finally available! - emacs24 will be updated only when I change the build process or when new emacs24 versions are realeased - emacs-snapshot are updated between once a week and once every two weeks on average. These versions are created from those of Julien Danjou for Debian unstable: http: //emacs .naquadah.org/. To build this PPA, I created this script: https: //gist .github.com /2360655 #中略 More info: https: //launchpad .net/~cassou/+archive /emacs Press [ENTER] to continue or ctrl-c to cancel adding it #中略 OK |
OKOK。超OK。
これでemacsが立ち上がるようになりました。
問題はこの期間限定サーバで何をしようかという点ですが、今からゆっくりUbubtuというかRed Hat系のlinuxをいじって勉強しながら考えたいと思います。
では。