Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain
なんとかsnow leopardにxcode_3.2.6_and_ios_sdk_4.3をインストールして、hallo world と行こうとしたけど、何度やってもerrorがでて前に進まない。
ちなみに上の文章でググってみるとでるはでるは12000件余。みんな躓いているよ。
では4にするかと思うが、買い求めた入門書が役にたたなくなる。せめて買った入門書をやりきるまではこのままで行こうと思う。
キーチェーンを色々変えて見たり、デベロッパーページから再度ダウンロードしてインストールしてみたりしたが、IOSエミュレーターが出てこない。
試しに再起動してみたらどうなるかと思い再起動して見ると何事も無かったかのようにIOSエミュレーターが動いた。
さて何が良かったのか?
2012年3月22日木曜日
2012年3月21日水曜日
[webmin] vsFtpd のインストール
[Webmin]-[Webmin Configuration]-[Webmin Module] の Third party module from からvsFtp を選んでモジュールをインストールと行きたいところだったのだが、
Failed to install module from This module configures the vsftpd.conf file from your VSFTPD FTP-Server. You can also have nice graphical stats from your ftp visitors. New in v.1.4: SSL CERT Creation and SSL support for your vsftpd-server : Invalid URL
上のようなエラーがでてモジュールのインストールが失敗。
webmin.com から vsftpd.tar.gz をダウンロード。
場所はwwebmin.com の Community タブをクリック、サイドメニューの Third party modules をクリックFind modules or themes matching: にvsftp と入力 Search を押下するとダウンロードページのリンクが出てくるのでそれを押下してダウンロードのページを開きます。LADENボタンをクリックしてダウンロードします。
再び [Webmin]-[Webmin Configuration]-[Webmin Module]に戻りfrom uploaded file から先ほどダウンロードしたファイルを入力して [install Module] ボタンをクリックします。
vsFtpd がインストールされていなかったらインストールする。
[vsftp] の画面を開き [Module Configuration] をクリックして2箇所を修正
[The path and filename to vsftpd.conf]
* 変更前:[/etc/vsftpd.conf]→変更後:[/etc/vsftpd/vsftpd.conf]。
[Path where the virtual user will be stored]
* 変更前:[/etc/vsftpd/vsftpd_user_conf]→変更後:[/etc/vsftpd/user_list]
[Start Vsftpd Server] をクリックしてFTPサーバーを起動させます。
利用し終わったら [Stop Vsftpd Server] クリックしてしてFTPサーバーを停止させます。
常時起動する場合は chroot や SSL を設定する。
Failed to install module from This module configures the vsftpd.conf file from your VSFTPD FTP-Server. You can also have nice graphical stats from your ftp visitors. New in v.1.4: SSL CERT Creation and SSL support for your vsftpd-server : Invalid URL
上のようなエラーがでてモジュールのインストールが失敗。
webmin.com から vsftpd.tar.gz をダウンロード。
場所はwwebmin.com の Community タブをクリック、サイドメニューの Third party modules をクリックFind modules or themes matching: にvsftp と入力 Search を押下するとダウンロードページのリンクが出てくるのでそれを押下してダウンロードのページを開きます。LADENボタンをクリックしてダウンロードします。
再び [Webmin]-[Webmin Configuration]-[Webmin Module]に戻りfrom uploaded file から先ほどダウンロードしたファイルを入力して [install Module] ボタンをクリックします。
vsFtpd がインストールされていなかったらインストールする。
[vsftp] の画面を開き [Module Configuration] をクリックして2箇所を修正
[The path and filename to vsftpd.conf]
* 変更前:[/etc/vsftpd.conf]→変更後:[/etc/vsftpd/vsftpd.conf]。
[Path where the virtual user will be stored]
* 変更前:[/etc/vsftpd/vsftpd_user_conf]→変更後:[/etc/vsftpd/user_list]
[Start Vsftpd Server] をクリックしてFTPサーバーを起動させます。
利用し終わったら [Stop Vsftpd Server] クリックしてしてFTPサーバーを停止させます。
常時起動する場合は chroot や SSL を設定する。
[webmin] mysqlのバックアップ
Backup destination の Backup to directory に
Create destination directory? を Yes にする。
Other backup options の Command to run after backup に
を入力する。
こうすると毎日、日付のフォルダーにバックアップを格納するようにできる。
"/任意の場所/mysql_bkup/xxxx"を設定
Create destination directory? を Yes にする。
Other backup options の Command to run after backup に
date +%m%d | xargs --replace mv -f /任意の場所/mysql_bkup/xxxx /任意の場所/mysql_bkup/{}
を入力する。
こうすると毎日、日付のフォルダーにバックアップを格納するようにできる。
2012年3月16日金曜日
[centos] wing-net の php52 をインストールする。
リポジトリを取ってくる。
libt1.so.5 がないらしいのでインストールする。
cd /etc/yum.repos.d/ wget http://wing-net.ddo.jp/wing/5/EL5.wing.repoパッケージのインストール
yum install --enablerepo=wing php52-devel php52-mysql php52-mcrypt php52-ncurses php52-xml php52-gd php-pear php52-mbstringとするとphp52-gdのところでエラーがでた。
Error: Missing Dependency: libt1.so.5 is needed by package
libt1.so.5 がないらしいのでインストールする。
yum install --enablerepo=rpmforge libt1.so.5
yum install --enablerepo=wing php52-devel php52-mysql php52-mcrypt php52-ncurses php52-xml php52-gd php-pear php52-mbstring成功したので httpd と mysql もインストールする。
yum install --enablerepo=remi,epel,rpmforge httpd-devel mysql-server
[centos] phpmyadmin のインストール
phpmyadminのインストール
wget http://sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/3.3.10.5/phpMyAdmin-3.3.10.5-all-languages.tar.gz tar xzfv phpMyAdmin-3.3.10.5-all-languages.tgz.gz mv phpMyAdmin-3.3.10.5-all-languages /var/www/phpMyAdmin
vi /etc/httpd/conf.d/phpmyadmin.conf
<Directory "/usr/share/phpmyadmin"> Order Deny,Allow Deny from all Allow from 127.0.0.1 </Directory> Alias /phpmyadmin /var/www/phpMyAdmin Alias /phpMyAdmin /var/www/phpMyAdmin Alias /mysqladmin /var/www/phpMyAdmin
[centos] リポジトリ epel と remi と rpmfoege を追加する。
リポジトリ epel と remi と rpmfoege をダウンロードする。
CentOS5
32bitの場合
wget http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/5/i386/epel-release-5-4.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpmリポジトリを追加。
rpm -Uvh epel-release-5-4.noarch.rpm rpm -Uvh remi-release-5.rpm rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.i386.rpm
64bitの場合
wget http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/5/x86_64/epel-release-5-4.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpmリポジトリを追加。
rpm -Uvh epel-release-5-4.noarch.rpm rpm -Uvh remi-release-5.rpm rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
CentOS6
32bitの場合
wget http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/6/i386/epel-release-6-7.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpmリポジトリを追加。
rpm -Uvh epel-release-6-5.noarch.rpm rpm -Uvh remi-release-6.rpm rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.i686.rpm
64bitの場合
wget http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/6/x86_64/epel-release-6-5.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpmリポジトリを追加。
rpm -Uvh epel-release-6-5.noarch.rpm rpm -Uvh remi-release-6.rpm rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
リポジトリを無効化する。
vi /etc/yum.repos.d/epel.repoenabled を 0 にする。
vi /etc/yum.repos.d/rpmforge.repoenabled を 0 にする。
2012年3月15日木曜日
[centos][php] centos5にphp 5.2.17のインストール
リポジトリキーのインストール
rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitkaリポジトリの作成
vi /etc/yum.repos.d/utterramblings.repo
[utterramblings] name=Jason’s Utter Ramblings Repo baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/ enabled=0 gpgcheck=1 gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitkaphpのインストール
yum --enablerepo=utterramblings install php-devel php-mysql php-mcrypt php-ncurses php-xml php-gd php-pear php-mbstringapache と mysql もインストール
yum --enablerepo=utterramblings install httpd-devel mysql-server
[webmin][centos] webminのインストール。
yum -y install perl-Net-SSLeay
wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580-1.noarch.rpm
wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580-1.noarch.rpm
rpm -ivh webmin-1.580-1.noarch.rpm
vi /etc/webmin/miniserv.conf
allow=127.0.0.1 10.0.0.0/24
/etc/rc.d/init.d/webmin restart
allow=127.0.0.1 10.0.0.0/24
/etc/rc.d/init.d/webmin restart
2012年3月7日水曜日
[centos] logの削除
logを削除する場合はsyslogも再起動する。
例えばmaillogを削除するとすると、
MTAサービスをストップ。
maillogを削除。
syslogを再起動。
MTAサービスをスタート。
# service postfix stop
# rm -f /var/log/maillog
# service syslog restart
# service postfix start
となる。
2012年3月5日月曜日
[centos] Another app is currently holding the yum lock; waiting for it to exit
yumを使っていて
"Another app is currently holding the yum lock; waiting for it to exit"が
何度も表示されて困る場合
/var/run/yum.pid ファイルを削除すると良い場合がある。
rm -f /var/run/yum.pid
"Another app is currently holding the yum lock; waiting for it to exit"が
何度も表示されて困る場合
/var/run/yum.pid ファイルを削除すると良い場合がある。
rm -f /var/run/yum.pid