サーバー構築 6 Epeg
Epeg で JPEG ファイルのサムネイルを高速に生成する
Epegは JPEG ファイルのサムネイル (縮小画像) を高速に生成するライブラリです。JPEG に特化した手法でサムネイルの処理を行うため、内部的に画像をビットマップに伸張せず、高速かつ少ないメモリで処理できるのが特徴です。
インストールは、(先にmakeさえインストールされていれば)簡単なはずだった…。
でもなんかconfigureから先にすすまないぞ???<いまここ
Labels: Server, ubuntu
サーバー構築 5 phpMyAdmin
sudo apt-get install phpMyAdmin
で、鯖host/phpmyadmin で接続できるはずなのにできない…
http://localhost/phpmyadmin" not found
sudo ln -s /usr/share/phpmyadmin /var/www
で開通。
Labels: PHP, Server, ubuntu
サーバー構築 4 Webmin, Proftpd, 時刻合わせ
Webmin has some dependency package.
Install dependencies: sudo aptitude install bash perl libnet-ssleay-perl openssl \
libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
After install dependencies, you can download and install Webmin. Last version of Webmin is 1.390.
Download Webmin:
sudo wget http://prdownloads.sourceforge.net/webadmin/webmin_1.390_all.deb
Install Webmin:
sudo dpkg -i webmin*.deb
Log in and use it:
Copy this URL into your web browser: https://localhost:10000
てわけで終了。
そして難儀したのがFTP. 結局これに1日近くかかった。
まずFTP自体入ってなかったから、WebminからProFTPdをインストール、でも途中で固まる(なぜ?)
SSHで繋いで sudo apt-get install screen してもフォルダーをロックできませんみたいなエラー。たぶんFTPのインストールで固まってるから。
再起動して、もう一回試したらCDを入れろと。いま大学のラボなんですけど。
で、検索して、結局/etc/apt/sources.list のcdromで始まるやつをコメントアウトしたら通った。しかもついでにProFTPdのインストールもなぜか終わった。
で、だ。
inet.dで起動ってやったんだけど、どーやってもConnection Refused で外からもlocalhostからもTelnetでもつながらない。
nmapしたら動いてないし。ファイアーウォールもまだ入れてない。
なぜだ。いろいろHowtoとか試したんだけど、ぜんぜんだめー。
で、すっきり解決:
なにもわかんなかったらとりあえず stand aloneモードにすれば動く。
ちょっと知ったかしてinetdを使おうとしたからだめだったのね。
ntpdateで時刻を自動的に合わせる - 試験運用中なLinux備忘録
ntpdate+cronの実際
1番目のフィールド(分)は、cron.hourlyなどとぶつからない値にする。
2番目のフィールド(時)に「*/n」と指定する(nは数字)と、「n時間ごと」になる。下の例では2時間ごとに実行されることになる。
サーバは複数指定可能で、スペース区切りで書いていく。
ファイル名: /etc/crontab
59 */2 * * * root /usr/sbin/ntpdate -s -b -u [NTPサーバ...]
ちゃんとしたNTPの一覧は
http://www.pool.ntp.org/で。
Labels: PHP, Server, ubuntu
サーバ構築 3
sudo:timestamp too far in the future
 May 11th, 2006 |
| First Cup of Ubuntu | | Join Date: Apr 2006 Beans: 5 Thanks: 0 Thanked 0 Times in 0 Posts | |
| Re: sudo:timestamp too far in the future After I restarted the computer it's work for me. Could someone explain to me why this is happen and how to prevent this sudo:timestamp happen again? Thanks ... __________________ |
 May 11th, 2006 |
 | Chocolate Ubuntu Mocha Blend | | Join Date: Jun 2005 Location: Australia Beans: 1,728 Ubuntu 6.06 User Thanks: 0 Thanked 0 Times in 0 Posts | |
| Re: sudo:timestamp too far in the future I believe its a security measure to stop a method of getting around certain security related restrictions by changing the date. To stop people from changing the date to use this 'exploit', sudo gives this message if the timestamp is 'too far into the future'. That's my vague explanation. I've read about it in detail a long time ago, but I don't recall the exact details. Basically if your clock is way out of sync and you change the date, this problem will occur. There are methods of fixing it, but they are not well documented on the wiki or in the forum atm. It might be an idea for someone to do the research and create a little HOW TO on how to resolve the issue. |
てわけで、再起動したら直ったってオチ。
あとはがんばってFTPとapacheくらいは動くようにしてみよう。(ってインストール直後から動いてるけどさ)
Labels: Server, ubuntu
サーバー構築 2
インストール中ににつながらなかったので、何かが設定できませんでしたっていうエラー。
たぶんこれ。
/etc/apt/sources.list
中にインストーラによってコメントアウトされましたって書いてある行のコメントを元に戻せばおけ。
ntpで時刻を修正したら、そのあとTimestamp too farといわれてapt-getできなくなった。
もともと日本時間だったパソコンを、米国中部時間として認識させちゃったのが多分原因。
てわけで明日の朝までおあづけ。
でもなんでssh動かないんだろう。Server 7.10で途中でインストールしたはずなのに。<いまここ
Labels: Server, ubuntu
サーバー構築
ハードディスクがクラッシュして起動しなくなったといって譲り受けた4年前のDynabook。
6年前(!)に買ったPowerBook G4についていた10ギガのハードディスク。
どうせデータはUSBハードディスクでRAID組むつもりなので、これで当分しのいでみる。
早速問題発生。うちの大学のネットワークは、グローバルIPがもらえるしFirewallも特にセットされてないから便利なんだけど、大学外には500MBの送信制限があるからサーバたてたりSkypeでビデオチャットするとちょっと面倒。
そしてMACアドレスを登録しないと接続できない。
てわけで、とりあえずMACアドレスを登録。するには本体からWebで登録しないと・・・でもserver版ブラウザてかGUIないよ?てわけでKnoppixを引っ張りだして起動 <いまここ
Labels: Server, ubuntu