2014/10/28

bash if option

if test -x .... then fi ====>いろいろな条件 [ -a FILE ]    True if FILE exists. [ -b FILE ]    True if FILE exists and is a block-special file. [ -c FILE ]    True if FILE exists and is a character-special file. [ -d FILE ]    True if FILE exists and is a directory. [ -e FILE ]    True if FILE exists. [ -f FILE ]    True if FILE exists and is a regular file. [ -g FILE ]    True if FILE exists and its SGID bit is set. [ -h FILE ]   ...

linux gnome 電源管理問題、vboxディスク拡張

---- インストールに問題があります! GNOME電源管理のデフォルトの設定が正しくインストールされていないようです。 システム管理者に問い合わせてみて下さい。 --- 原因はおそらくHDD残量の不足かと思います。 df -h ==>Use 100% ・virtualbox ハードディスク拡張 VBoxManager.exe modifyhd "*.vid" --resize ** で。。。GParted Live (Default settings)でやる ・linux disk構成管理 ここもいろいろわからない disk-->物理ボリュームー>論理ボリュームグループー>論理ボリューム (下記はファイルシステムの領域に入る) ー>マウントポイントー>フォルダ/file df,fdisk===>などなど、普段は使っているが、上記のどの段階で何のためのコマンド、よくわからず。。。 df ==>ファイル・システムについて,使用領域と空き領域のサイズを表示する mount ==>論理ボリュームをファイルシステムにいれる。/etc/fstab 自動的に入れる物 fdisk コマンドで領域の確保を行い、 mke2fs コマンドで領域のフォーマットを行っておく必要があります(ファイルシステム) fdiskコマンドでは、ハードディスクのパーティションの作成、削除、また、パーティション情報を調べる事ができます。...

2014/10/26

eclipse jdk os 32bit/64bit

I am confusing with that I think if the os is 32bit ,then jdk,eclipse also 32bit  64bit the same but ..... there is a lot aborting ... i am wrong? they are wrong? eclipse-java-luna-SR1-win32-x86_64 window7 64bit jdk-8u20-windows-x64 i think it will  be ok but .... oh ,this time it goes oK! I uninstall all the jdk,and reinstall th...

2014/10/24

ruby `require': no such file to load -- mysql (LoadError)

require 'mysql' でエラーになった でも sudo gem install ruby-mysqlをインストール済みが。。 先に require 'rubygems' が必要だ。。 で、sudo ruby =>sudo: ruby: コマンドが見つかりません which ruby ==>/usr/local/bin で、visodu visudoでsecure_pathに「/usr/local/bin」を追加...

linux 色 front 環境設定

★vi :syntax on :syntax off ★lsの色 echo $LS_COLORS sudo vi /etc/DIR_COLOR eval `` ★front PS1 ==>Linuxの標準シェルであるbashでは、PS1という環境変数によってプロンプトを定義している。従って、exportコマンドでPS1を変更すればいい。 ==>front? ログインして、「test@somehostname」のことね。 export PS1="$" ログインして、「$」に変わる ~/.bashrcを修正して PS1="\[\033[0;34m\]$PS1" の0;32の部分はfrontの色...

linux sed

・sed 's/^192.168.0.1/&localhost/ example ==>^頭、192.168.0.1ーー>192.168.0.1&localhost ・sed '/test/'d example ==>testを含める行を削除する  g-->これはないと、行単位の初めての物がターゲットになる ・sed '2d' example =->d 削除、2第二行  sed '$d' example  最後の一行を削除する  sed '2,$d' example  第2行から最後の一行を削除する   ・sed -n '/test/mytest/p' example   ==>-n p 条件を満たす行をプリンターする   ・sed 's#10#100#g' example =->s後ろの物が分隔用になる ・sed -n '/test/,/let/p' example testとletの間で確定された行をプリンタする ・sed -e '1,5d' -e's/let/letus/g' example 実行...

2014/10/03

pipをインストール

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python get-pip.py --proxy="http://proxy.jp:80...

apache Invalid command 'Order'Add Star

LoadModule authz_host_module modules/mod_authz_host.so =>load module mod_access_compat, or update configuration to 2.4 authorization directiv...

ruby require エラー

Rubyファイルを実行するとrequireでエラーがでてるよってとき require "kakiku" ==>エラーになり、書き方を修正する require File.expand_path('kakiku.rb',__FILE__)=>NG require File.expand_path('./kakiku.rb',__FILE__)=>NG require File.expand_path('../kakiku.rb',__FILE__)=>OK バージョン: ruby 2.0.0p353 (2013-11-22) [x86_64-lin...

perl モジュール install

mysql_install_db --defaults-file=/etc/my.cnf --user=mysql ==>Data-Dumperのperlのモジュールが必要で。。 perlモジュールをインストールするにはCPANを使用すると便利である http://search.cpan.org/でほしい物を検索する 例: http://search.cpan.org/~smueller/Data-Dumper-2.154/Dumper.pm wget http://search.cpan.org/~smueller/Data-Dumper-2.154/Dumper.pm tar xzvf Data-Dumper-2.154.tar.gz cd Data-Dumper-2.154 perl Makefile.PL インストールして途中でエラーになった。 Can't locate ExtUtils/MakeMaker.pm in @INC ==>yum install perl-ExtUtils-MakeMaker make make test ==>エラーになった!! make install ★他のエラー     Can't...