linux

soundconverter oggからmp3への変換

oggからmp3への変換をffmpegでやろうとしたけどなんかだうまく行かないorz ぐぐってみたところ、soundconverterがいいらしいので そのまんまapt-get うん、確かにいいかも(ああ、ついに私もGUIerの仲間いりw)そのうちCUIerに戻る予定だといいなぁ他の候補…

mkinitrd

とてもわかりやすく書いてあります。 http://homepage3.nifty.com/rio_i/lab/driver24/000prologue.html

ウブ network manager リムーブ!!

以下、過去の関連記事 http://d.hatena.ne.jp/toshi_hirasawa/20110216/1297868310ここから本題 ubuntuにて固定IPアドレスで運用しようとしたとき、 いちいち/etc/resolv.confの内容が消えてくれるんでイラッときたわけですよんで 239 dpkg -l | grep -i net…

Ubutntu kernel source full install

http://d.hatena.ne.jp/toshi_hirasawa/20120225 でウブへのインストールについて http://d.hatena.ne.jp/toshi_hirasawa/20120218/1329547647 あたりにmakeのオプションについて かいてある。繰り返しになってしまうかもしらないけど、ubu13.04でのインスト…

kernel2.6 kernel moduleのmake作法

[hirasawa@cent5-64b-40 ~]$ cat Makefile obj-m := hello.o ROOTDIR := ~/rpmbuild/BUILD/kernel-2.6.18/linux/ PWD := $(shell pwd) default: $(MAKE) -C $(ROOTDIR) M=$(PWD) modules clean: rm -f *.o *.ko [hirasawa@cent5-64b-40 ~]$ #include <linux/module.h> // req</linux/module.h>…

CentOS 5.9 (6.xもいけるはず)kernel source full install (別解編)

Centos6.3 kernel build .. http://d.hatena.ne.jp/toshi_hirasawa/20130306/1362549359とは違うやり方でカーネルのフルソースのインストールをためしてみる ここでは、centos5.9でやっているが、6.x(未確認)でもイケるはず http://wiki.centos.org/HowTos/…

evernote クライアント on Ubuntu 12.04(32bit) / cent6.4(32bit)

wine経由じゃないクライアント イカスです こちらを参考にさせていただきました。http://mumeiyamibito.blogspot.jp/2012/10/ubuntuevernote-everpat.html 1638 add-apt-repository ppa:nvbn-rm/ppa 1639 apt-get update 1640 apt-get install everpad 1641 …

リナックス初心者の会

わたくし、でびあん万年初心者w http://linux-suomi.net/

せんと6.4 kicad install メモ

ubuに続いてcent [root@localhost ~]# yum list > /tmp/yumlist [root@localhost ~]# cat /tmp/yumlist | grep -i kicad kicad.i686 2012.01.19-1.rev3256.el6 epel kicad-doc.i686 2012.01.19-1.rev3256.el6 epel kicad-doc-de.i686 2012.01.19-1.rev3256.e…

うぶ13.04 kicad install メモ

http://kicad.jp http://toragi.cqpub.co.jp/tabid/673/Default.aspx root@ubu1204:~# apt-cache search kicad kicad-doc-it - Kicad help files (Italian) kicad-doc-pl - Kicad help files (Polish) kicad - 電子回路および PCB 設計ソフトウェア kicad-co…

Ubuntu 13.04をインストールした直後に行う設定 & インストールするソフト

こちらのサイトを偶然みつけた。いろいろ方面を包括的に網羅的 端末CUI操作が嬉しい的 アマゾンの広告いらん、気分わるいので消したい的そこをしりたかったぁ、そこの痒いところに手が届いてうれしw的すばらしい感満載です参考にさせていただきます ありが…

iotop

iotop 便利じゃね? うぶの場合は apt-get install iotop を叩くだけ root@ubu1204:/home/hirasawa/download/boxfs_src/boxfs-0.7# dpkg -L iotop | grep bin /usr/sbin /usr/sbin/iotop root@ubu1204:/home/hirasawa/download/boxfs_src/boxfs-0.7# centに…

byobu (tmux,screen)

byobu .. tmuxとかscreenなどのフロントエンド?らしい (nikkei liux 201304 p49)tmux,screenを直につかうより便利らしいのでまずはインストールしてみた root@ubu1204:~# apt-get install byobu パッケージリストを読み込んでいます... 完了 依存関係ツリー…

diff -u -rと patch -p -d コマンド (ディレクトリ単位の操作)

まず、実験の準備 /home/hirasawa/desktop/diff_patch hirasawa@ubu1204:~/desktop/diff_patch$ cat prepare.sh #!/bin/bash for dir in orig_dir revised_dir do mkdir $dir for i in 1a 1b do for j in 2a 2b; do mkdir -p $dir/$i/$j; echo $dir/$i/$j > …

diff -u (-c) と patch コマンド 

[linux] diff -u (-c) と patch コマンド の関係について確認してみた結論としては $diff -c wrongfile correctedfile > patchfile.patch にてパッチファイルを用意して patch 修正すべきファイル patch.fileにてパッチを当てる以下、実験してみた結果 hiras…

cent6.4 wine + LTspice ( + winecfg???) rootで実行

cent6.4 wine + LTspice ( + winecfg???) rootで実行 centにはplayonlinuxないんだね rootで動かしすこはできたけど、何かイケてない orz.....spiceが英語のまんまなのは日本語フォントをいれてないから?環境設定必要? 日本語のフォントをいれるのはwinecf…

bash 引数処理のサンプルスクリプト

bash 引数処理のサンプルスクリプト$* と $@ との差異がいまいちわからんのは秘密 hirasawa@ubu1204:~/download$ cat restart.sh #!/bin/bash # restart.sh # examples ...... # ex case restarting (has error) ) ./restart.sh date -h # ex case just clos…

wine playonlinux

うぶ1304 playonlinuxをaptると数珠つなぎでwineまではいる様子 hirasawa@ubu1204:~/download$ apt-cache search playonlinux playonlinux - front-end for Wine hirasawa@ubu1204:~/download$ apt-get install playonlinux E: ロックファイル /var/lib/dpkg…

dropboxクライアントのインストール

dropboxクライアントのインストール うぶとセントとのそれぞれの場合ubu 13.04の場合 328 apt-get install nautilus-dropboxやったのはこれだけ でうごきはじめたcent6.4の場合 [root@localhost ~]# history | grep drop 1000 cat /tmp/yumlist | grep -i dr…

書籍ボクのarduino工作ノート サポートページセットアップ

書籍をこうたのでセットアップ書籍のサポートページからzipファイルをDL。 http://rutles.net/download/347/index.html適当な場所でunzipするとこんな感じに見える [hirasawa@localhost arduino]$ pwd /home/hirasawa/arduino [hirasawa@localhost arduino]$…

ウブンツのavr周りを調べる

simulavr - Atmel AVR シミュレータ simulatorもあるんやねsimulatorをインストール、ヘルプをみると 以下のチップがサポートされている Currently available device types: at90s1200 at90s2313 at90s4414 at90s8515 atmega8 atmega16 atmega103 atmega128 …

昨今のHDD操作コマンド(lsblk,blkid,parted,mkfs... etc )

fdisk,mke2fs -j (ext3)ばかりつかっていたが 最近はpartedとblkid lsblk mkfs -t ext4 (mkfs.ext4 )とかがナウいのか?partedはpartitionのresizeなどの拡張などの超ベンリ機能だけではなく 2T超(GPTだっけ?)のHDDを扱う場合に必須なんすねまずはparte…

aptでフォントの追加

フォントをいかようにいれました 出典はnikkei linux 201306号からyozフォントってのは手書きふうなんやね。 245 apt-get install fonts-ipa* 253 apt-get install ttf-mikachan ttf-aoyagi* ttf-takao* ttf-kochi-gothic ttf-kochi-mincho ttf-sazanami* tt…

/etc/X11/Xsession.d

hirasawa@ubu1204:/etc/X11/Xsession.d$ pwd /etc/X11/Xsession.d hirasawa@ubu1204:/etc/X11/Xsession.d$ hirasawa@ubu1204:/etc/X11/Xsession.d$ ls | sort 00upstart 20x11-common_process-args 30x11-common_xresources 35x11-common_xhost-local 40x11-…

ubu 13.04 に RoRをソースからインストール

centosの過去記録はこちらhttp://d.hatena.ne.jp/toshi_hirasawa/20130102/1357093373How to Install Ruby on Rails on Ubuntu 12.04 from Sourcehttps://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-ubuntu-12-04-from-sourc…

adobe flash plugin adobe reader rpm /deb

[root@localhost download]# rpm -ql adobe-release-i386.noarch /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux /etc/yum.repos.d/adobe-linux-i386.repo [root@localhost download]# adobe関係のリポジトリをいれればあとはyumるだけか なるほど [root@localho…

online memeory tester memtester

online memeory tester memtester [root@localhost ~]# memtester 1300M memtester version 4.2.1 (32-bit) Copyright (C) 2010 Charles Cazabon. Licensed under the GNU General Public License version 2 (only). pagesize is 4096 pagesizemask is 0xfff…

rythombox gstreamer plugins missing memo

http://www.atmarkit.co.jp/flinux/rensai/linuxtips/a057rhythmbox.html RhythmboxでMP3ファイルを再生するには [root@localhost ~]# yum install gstreamer-plugins-ugly Loaded plugins: fastestmirror, priorities, refresh-packagekit, security Loadin…

 シェル芸4回め 第4回春爛漫シェル芸芸人撩乱勉強会 自分用の履歴とメモ

第一問 [hirasawa@ubuntu1204-20 DATA]$ cat 2.html <a href="http://my.favorite.jk/index.cgi#jk">会長のブログ</a> <a href="http://index_cgi.com/index.cgi?p=index.cgi">aho</a> [hirasawa@ubuntu1204-20 DATA]$ history | grep 2.html 2030 cat 2.html 2031 cat 2.html | sed 's 2032 cat 2.html | sed '|||' 2033 cat 2.html…

pdfからテキストを抽出 (pdftotext , pdf2textってのもあるのか?)

どこにあるんやるとおもったら Ubuntuの場合は poppler にあった。(ディフォでインストールされているのかな?) CentOSはまだわからないけど、xpdfパッケージにあるのかもしらない。 poppler(pdfまわりのユーテリティ) http://d.hatena.ne.jp/toshi_hiras…