michihide's blog

技術メモおよび雑感

2010-01-21から1日間の記事一覧

おまけ

関係ないけど、文中の</pp>(半角)は不要です(直し方がわかりません(><))

リポジトリサイトの利用

m-hotta@celsior:~$ sudo yum -y install yum-priorities m-hotta@celsior:~$ wget http://repos.net-newbie.com/newbie.repo m-hotta@celsior:~$ sudo mv newbie.repo /etc/yum.repos.d/ m-hotta@celsior:~$ sudo rpm --import http://repos.net-newbie.com…

サーバー側の動作確認

m-hotta@gaia:~$ ls -l /var/www/repos/ 合計 12 lrwxrwxrwx 1 m-hotta wheel 3 1月 20 15:23 5 -> 5.4 drwxr-xr-x 4 m-hotta wheel 4096 1月 20 15:25 5.4 -rw-r--r-- 1 m-hotta wheel 1690 1月 20 15:13 RPM-GPG-KEY-newbie -rw-r--r-- 1 m-hotta wheel 36…

リポジトリ作成&パッケージの登録

m-hotta@gaia:$ mkdir -p /var/www/repos/5.4/{,S}RPMS m-hotta@gaia:/var/www/repos$ ln -s 5.4 5 m-hotta@gaia:~$ cp rpm/RPMS/i386/samba*3.4.5* /var/www/repos/5/RPMS/ m-hotta@gaia:~$ cp rpm/SRPMS/samba-3.4.5-1.src.rpm /var/www/repos/5/SRPMS/ m-…

リポジトリ公開用サイトの作成

m-hotta@gaia:~$ sudo mkdir /var/www/repos m-hotta@gaia:~$ sudo chown m-hotta /var/www/repos/ m-hotta@gaia:~$ grep -Ew -C 1 Include /etc/httpd/conf/httpd.conf # #Include conf.d/*.conf - NameVirtualHost *:80 Include conf.d/*.conf m-hotta@gai…

作成したパッケージへの署名(例:samba)

m-hotta@gaia:~$ cat >> .rpmmacros %_gpgbin /usr/bin/gpg _EOF_ m-hotta@gaia:~$ rpm --addsign rpm/RPMS/i386/samba-*

GPG鍵の作成

m-hotta@gaia:~$ gpg --gen-key (後は指示に従う) 十分な長さの乱数が得られません。OSがもっと乱雑さを収集 できるよう、何かしてください! (あと281バイトいります) (ここで処理が止まるので、別の端末から以下のように重い処理を動かす) m-hotta@gaia…

自作RPMパッケージを公開する