PR

Freelink 初期設定

pc.casey.jp » HD-HLAN Ver.2.xを簡単にdebian化するでFreelinkを使ってdebian化した。が、少なくとも筆者の環境は192.168.11.xではないためいくつかの設定が必要だった。また、pc.casey.jp » apt-get の /etc/apt/sources.list が嫌いだ… で触れたようにいくつかの情報も古くなってしまっている。

いくつかの情報をまとめてみた。

まず、viは重要なのだが、viが壊れているというかおかしな動きをする。viはTeraTermで操作してもPuTTYで操作してもどうもオカシイ。いくつか参考文献を調べるとオカシイと明記されていた。そして、デッドリンク状態だ。ベースの環境を整えるためのviが重要なのだがこれが相当を気を使って操作しないと期待通りの結果にならない。それを改善するための操作も結局エラーだったりviがおかしかったりとまるでお役所状態だ。

スポンサードリンク

最初にすること

ネットワーク関係の設定は最初に行ってしまう。

# vi /etc/resolv.conf

#frontalot’s static setup (adjust to your network settings)
search
nameserver 192.168.1.1

# vi /etc/network/interfaces

# we always want the loopback interface

auto lo
iface lo inet loopback

#frontalot’s static setup (adjust to your network settings)
auto eth0
iface eth0 inet static
address 192.168.1.51
netmask 255.255.255.0
gateway 192.168.1.1

ホストネームの登録1

# vim /etc/hostname

ホストネームの登録2

# vim apache2ctl restart
apache2: apr_sockaddr_info_get() failed for LINKSTATION
apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName

上記エラーが出るので以下を編集

# vim /etc/hosts

127.0.0.1 localhost.localdomain localhost

127.0.0.1 localhost.localdomain localhost LINKSTATION

ディスク容量が少ない

root@LINKSTATION:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda1               373359    201633    152450  57% /
/dev/hda3            195375484    160500 195214984   1% /mnt/hda

初期状態でこんな状態なので何とかしなければ。参考文献にあるものを真似る。

root@LINKSTATION:~# cp -pR /home /mnt/hda/share
root@LINKSTATION:~# rm -rf /home
root@LINKSTATION:~# ln -s /mnt/hda/share/home /home

root@LINKSTATION:~# cp -pR /var /mnt/hda/share
root@LINKSTATION:~# rm -rf /var
root@LINKSTATION:~# ln -s /mnt/hda/share/var /var

root@LINKSTATION:~# cp -pR /usr /mnt/hda/share
root@LINKSTATION:~# rm -rf /usr
root@LINKSTATION:~# ln -s /mnt/hda/share/usr /usr

確認してみる。

root@LINKSTATION:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda1               373359     50114    303969  15% /
/dev/hda3            195375484    338796 195036688   1% /mnt/hda

sources.list を作る

pc.casey.jp » apt-get の /etc/apt/sources.list が嫌いだ… を参考

環境を整える

# apt-get update
# apt-get dist-upgrade

パスワードの変更

# passwd root

あとは好きに

groupadd www
useradd username -G www -p password

  • apt-get install ssh
  • apt-get install apache / apt-get install apache2
  • apt-get install php5
  • apt-get install mysql-server
  • apt-get install perl
  • apt-get install vim
  • apt-get install php5-mysql
  • apt-get install otrs
  • apt-get install phpmyadmin
  • apt-get  install asterisk

参考文献

コメント