2009年3月31日火曜日

9.04 jauntyのApt Line

2009/3/30現在のApt lineです。
#deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Beta amd64 (20090324)]/ jaunty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://nl.archive.ubuntu.com/ubuntu/ jaunty main restricted
deb-src http://nl.archive.ubuntu.com/ubuntu/ jaunty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://nl.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted
deb-src http://nl.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://nl.archive.ubuntu.com/ubuntu/ jaunty universe
deb-src http://nl.archive.ubuntu.com/ubuntu/ jaunty universe
deb http://nl.archive.ubuntu.com/ubuntu/ jaunty-updates universe
deb-src http://nl.archive.ubuntu.com/ubuntu/ jaunty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://nl.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb-src http://nl.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb http://nl.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse
deb-src http://nl.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://nl.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
deb-src http://nl.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu jaunty partner
deb-src http://archive.canonical.com/ubuntu jaunty partner

deb http://security.ubuntu.com/ubuntu jaunty-security main restricted
deb-src http://security.ubuntu.com/ubuntu jaunty-security main restricted
deb http://security.ubuntu.com/ubuntu jaunty-security universe
deb-src http://security.ubuntu.com/ubuntu jaunty-security universe
deb http://security.ubuntu.com/ubuntu jaunty-security multiverse
deb-src http://security.ubuntu.com/ubuntu jaunty-security multiverse

#Medibuntu
deb http://packages.medibuntu.org jaunty free non-free

#Virtual host
deb http://download.virtualbox.org/virtualbox/debian intrepid non-free

# lastfm
deb http://apt.last.fm/ debian stable

# Dropbox
deb http://linux.getdropbox.com/ubuntu intrepid main
deb-src http://linux.getdropbox.com/ubuntu intrepid main

# Google testing
deb http://dl.google.com/linux/deb/ testing non-free

VirtualBoxなどはintrepidのレポしかないので流用してますが、今のところ何も問題なしです。

Medibuntu追加後
$wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update
$sudo apt-get install acroread w64codecs skype

で少し幸せ。

9.04 jaunty Betaインストール


正式版リリースから1ヶ月ぐらいして落ち着いてからアップグレードしようと思ってました。。
やっちゃいました。ベータ版からのアップグレード。。最近いろいろといじってブートが50秒近くかかってたので、
今回のFast Bootが気になって。。おかげさまで現在Bootchartによると15秒です。。

Homeを別パーティションにしているので、インストール後のデータの引き継ぎなどは超簡単!ちなみにルートのマウントポイントのファイルシステムをExt4にしてみました。今のところ、特に問題もなくうごいていますが、各種設定で覚書を書き留めるようにしたいです。

2009年3月21日土曜日

64bit Flash plugin

以前までnspluginwrapper を噛ませてFlashを使ってたんですが、良く見るとAdobeから64Bit向けFlash10がプレリリースされているではないですか! ここ

実はiKnowでFlash上で文字入力ができないという問題があったのでVirtualbox内でWindows環境からFFを使ってたんですが、これで入力問題は解決しました。

sudo apt-get remove nspluginwrapper 
tar xvfz libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gz
sudo cp libflashplayer.so /usr/lib/firefox-addons/plugins/

2009年3月16日月曜日

VIMRCです。


 VimのStatuslineにカーソルの位置情報などを表示しようと思い試していたがうまく行かず。。
結論から言うと、私がインストールしていたパッケージはvim-tinyでフル機能のVimではなかったということでした。。で、改めてVimrcを晒してみます。
" .vimrc
" Clear any existing autocommands:
if has("autocmd")
" Restore cursor position
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif

" Filetypes (au = autocmd)
au FileType helpfile set nonumber " no line numbers when viewing help
au FileType helpfile nnoremap <buffer><cr> <c-]> " Enter selects subject
au FileType helpfile nnoremap <buffer><bs> <c-T> " Backspace to go back

" When using mutt, text width=72
au FileType mail,tex set textwidth=72
au FileType cpp,c,java,sh,pl,php,asp set autoindent
au FileType cpp,c,java,sh,pl,php,asp set smartindent
au FileType cpp,c,java,sh,pl,php,asp set cindent
"au BufRead mutt*[0-9] set tw=72

" Automatically chmod +x Shell and Perl scripts
"au BufWritePost *.sh !chmod +x %
"au BufWritePost *.pl !chmod +x %

" File formats
au BufNewFile,BufRead *.pls set syntax=dosini
au BufNewFile,BufRead modprobe.conf set syntax=modconf
endif

" *** User Interface
" use indents of 4 spaces, and have them copied down lines:
set shiftwidth=4
set tabstop=4
set shiftround
set expandtab
set autoindent

" allways show status line
set ls=2

" Set for visible tab
"set listchars=tab:>-,extends:<,trail:-,eol:<
set listchars=tab:>-
set list

" The format of status line
"set statusline=%<%f\%m%r%h%w%y%{'['.(&fenc!=''?&fenc:&enc).']['.&ff.']'}%=%4v\ %l/%L
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
set laststatus=2

" No beep
" set vb t_vb=
set visualbell

" No auto NL
set formatoptions=q

" Show line number
set number

" have syntax highlighting in terminals which can display colours:
"if has('syntax') &amp;amp;amp;& (&t_Co > 2)
syntax on
"endif

" have fifty lines of command-line (etc) history:
set history=50

" display the current mode and partially-typed commands in the status line:
set showmode
set showcmd

" have the mouse enabled all the time:
"set mouse=a

" don't have files trying to override this .vimrc:
set nomodeline

" Set the type of background color
set background=dark

" *** Text Formatting -- Specific File Formats
" enable filetype detection:
"filetype on

" for C-like programming, have automatic indentation:
"autocmd FileType c,cpp,slang set cindent

" for actual Java C (not C++) programming where comments have explicit end
" characters, if starting a new line in the middle of a comment automatically
" insert the comment leader characters:
"autocmd FileType c,java set formatoptions+=ro smartindent noexpandtab tabstop=4

" for Perl programming, have things in braces indenting themselves:
"autocmd FileType perl set smartindent

" for CSS, also have things in braces indented:
"autocmd FileType css set smartindent

" for HTML, generally format text, but if a long line has been created leave it
" alone when editing:
"autocmd FileType html set formatoptions+=tl

" for both CSS and HTML, use genuine tab characters for indentation, to make
" files a few bytes smaller:
"autocmd FileType html,css set noexpandtab tabstop=4

" in makefiles, don't expand tabs to spaces, since actual tab characters are
" needed, and have indentation at 4 chars to be sure that all indents are tabs
" (despite the mappings later):
"autocmd FileType make set noexpandtab shiftwidth=4

" *** Search & Replace
" make searches case-insensitive, unless they contain upper-case letters:
set ignorecase
set smartcase
set hlsearch

" show the `best match so far' as search strings are typed:
set incsearch

Firefox3のabout:config

Firefox3のabout:configの設定でいろいろいい感じのがまとまっている海外サイトがありました。
ここです。

あなたのUbuntuシステムを綺麗にする方法

ネットサーフィンしてたら海外のサイトでいろいろとUbuntuのシステムを綺麗にしておくTipsがあったので書いておきます。

1)重複するファイルを見つける
sudo apt-get install fslint

で、Applications-> System Tools-> FSlint.からアプリを起動すると重複するファイルやリンクの切れたSymlinkなどが検索できます。

2)パッケージを綺麗にする
・部分的なパッケージを削除
sudo apt-get autoclean

・Aptのキャッシュを削除
sudo apt-get clean

・使用されてないパッケージの削除
sudo apt-get autoremove


3)orphaned packageを削除する
sudo apt-get install gtkorphan

で、インストールしてからSystem-> Administration-> Removed Orphaned packageより起動し、orphaned packageを削除することができます。

4)インストールパッケージの管理
debfosterというパッケージを入れることで、パッケージ管理ができます。アンインストール時などにorphanedパッケージがあれば、削除しますか?と効いてくれたりするみたいです。
sudo apt-get install debfoster

・新たにKeeperファイルを作成
sudo debfoster -q

・システムにKeeperファイルを使うよう設定
sudo debfoster -f

・もしシステムから自動的に削除などしたくないパッケージがある場合は、下記のファイルからパッケージを削除するれば管理管轄外になります。
sudo vim /var/lib/debfoster/keepers

・削除対象のファイルがあるか確認
sudo debfoster


7)不要なロケールファイルの削除
sudo apt-get install localepurge

でインストールして、必要なロケールのみマークをつけます。すると不要なロケールのファイルは削除してくれます。

mac4linがSubversionで最新版利用可能に


ということで、開発ではいつもお世話になっているバージョン管理システムのSubversionですが、Mac4LinのプロジェクトもSubversionを使用してアクセス可能になりました。

取り合えず、SVNクライアントとしてRapidSVN何かを使って最新のリソースをDLし、Macテーマを更新しました。以前は、再起動のアイコンがなかったのですが、最新版ではそのアイコンも配備され良い感じになってます。

% sudo apt-get install rapidsvn


なおSubversionのアカウントは下記でOKです。
* Hostname: mac4lin.svn.sourceforge.net
* Port: 443
* Protocol: HTTPS
* Repository Path: /svnroot/mac4lin

2009年3月11日水曜日

Firefox の高速化

FFは内部でSQLiteを使ってるらしいんだけど、使っていると起動・終了時のI/Oで結構しんどくなってきてました。
そこで下記のコマンドでデータを綺麗にすると、かなりパフォーマンス改善しました。
*   For Linux
$ for i in *.sqlite; do echo "VACUUM;" | sqlite3 $i ; done

* For Windows
for %i in (*.sqlite) do @echo VACUUM; | sqlite3 %i