2011-01-01から1年間の記事一覧

ssh-keygen -Rとssh-copy-id

接続先のhostnameやIP addressを変えたときにsshログインをするとknown_hostsとの食い違いによるwarningが出る。ssh-keygen -Rでknown_hostsから当該情報を消すことができる。

Ubuntu Unityに関するメモ

Ubuntu 11.04に移行した。大変好印象で、設定次第でかなり快適なった。Alt+Tabを使ったときにWindowは切り替わるけど、mouseが別のwindowの上に乗っている場合フォーカスがそちらに取られてしまう。調べてみたところ次のとおりで、いまのところうまくいかな…

Write stresslinux into USB stick

stresslinuxをUSBに書き込む方法。 http://www.stresslinux.org/sl/wiki/Documentation#HowtoimageUSBflashdrives usb-creater-gtkを使ってもできるだろうか。

VirtualboxのNAT設定の場合の接続方法

Vmwareの場合はNATでも外からのsshやhttpのアクセスに制限がない。Virtualboxの場合、ポートフォワーディングする必要がある。 % VBoxManage modifyvm "ubuntu-server" --natpf1 "host2guest-ssh,tcp,,2222,,22" % VBoxManage modifyvm "ubuntu-server" --na…

Virtualbox headlessでの使い方

% VBoxHeadless -n -s ubuntu-serverで、VNCのポートが開く。vncviewerでアクセスできる。

コマンドでのVmwareイメージのVirtualboxへの移行

イメージが複数ファイルに分割されているときはひとつにまとめる必要がある。 % vmware-vdiskmanager -r ubuntu-old.vmdk -t 2 ubuntu-new.vmdkvmware-vdiskmanagerはVmware-serverに入っている。vmware-vdiskmanagerはVmware-serverをインストールしなくて…

vmware-playerのアンインストール

% sudo vmware-installer -l Product Name Product Version ====================== ==================== vmware-player 3.1.4.385536 % sudo vmware-installer -u vmware-player

Vmware-toolsのアンインストール

% sudo /etc/vmware-tools/installer.sh uninstallhttp://blog.kumacchi.com/2007/09/vmware_player200201.html

Ubuntuのboot splashをオフにする

/etc/default/grubに書いている、GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”のquiet splashを消す。そして、 % sudo update-grubする。http://twitteling.com/2010/03/how-to-disable-splash-screen-ubuntu-karmic/#more-1531

Ubuntu 9.10から10.10へのアップグレード

9.10から10.04、10.04から10.10への2度のアップグレードを行う。 % sudo do-release-upgradeを二度行う。詳しいやり方はここに書いている。https://help.ubuntu.com/community/UpgradeNotes 10.04から10.10へのアップグレードには/etc/update-manager/relea…

vmware-playerからvirtualbox-oseへの移行 (Virtualbox GUI) on Ubuntu 10.10

UbuntuにはVirtualboxのパッケージが入っているのでそれをインストールする。Virtualboxはvmwareのイメージを読むことができる。簡単に手順を書くと、virtualboxを起動して、新しいイメージを作る。適当に一度イメージを作った後、SCSIのデバイスを作り、vmw…

Eigen geometry module

http://eigen.tuxfamily.org/dox/TutorialGeometry.html

Qt & OpenGL

http://doc.qt.nokia.com/latest/qtopengl.html qmake -project.proファイルに QT += openglを追加。そして、 qmake make

OpenGL手順

GL_MODELVIEW、GL_PROJECTIONという大事な二つのモードがあり、切り替えて使う。切り替えはglMatrixMode()を用いて行う。どこかに変換行列のスタックがある。それぞれのモードにそれぞれのスタックが用意されている。変換行列をスタックからモードの変換行列…

OpenGL Programming Guide

赤本の古いやつ。http://glprogramming.com/red/ Chapter 3 (http://glprogramming.com/red/chapter03.html) 主要な操作 Viewing: 描画する空間内の体積の方向をセットする Modeling: モデルを空間内に置く Projection: 描画する体積の形を決める Viewport: …

openssh-server in Ubuntu 10.10がおかしい

どこがおかしいかわからないけど、何かおかしい。dropbearを代わりに使ったら状況は改善した。sftpに関してはopenssh-server同梱のものを使えばよいらしい。openssh-server, dropbearの順でインストールし、 /etc/default/dropbearのNO_START=0を設定する。…

abinit-6.6.1 install

こんな感じ ./configure --prefix=~/code/abinit --enable-mpi --with-mpi-prefix=/usr/local/calc/openmpi --enable-64bit-flagsIntel compilerのPATHとLD_LIBRARY_PATH、openmpiのLD_LIBRARY_PATHを通しておく必要がある。

Ubuntuのautomountを止める

gconf-editor from the command line. Then go to apps -> nautilus -> preferences -> media_automount http://ubuntuforums.org/showthread.php?p=6426859

Xtalopt

git clone git://github.com/dlonie/XtalOpt.git xtaloptexport Avogadro_DIR=$HOME/lib/avogadrocmake .. -DOPENBABEL2_INCLUDE_DIR=$HOME/include/openbabel-2.0 -DOPENBABEL2_LIBRARIES=$HOME/lib/libopenbabel.so \ -DOPENBABEL2_VERSION_MET=true -DOPE…

Avogadro from git dlonie

Requirement git, cmake, eigen2, openbabel, qt4 (libqt4-dev?), pyqt4 (pyqt4-dev-tools?), sip (sip4?), boost (libboost-dev?), glew (libglew-dev). Install Following instruction found here, http://xtalopt.openmolecules.net/wiki/index.fcgi/wiki…

Open Babel from svn

Requirement cmakeInstall following the section 'Installing locally without root access'. -DCMAKE_INSTALL_PREFIX has to be set for local installation.Set LD_LIBRARY_PATH to openbabel/lib directory.

ひさびさgnuplot

set pm3d map splot 'hoge.dat' with pm3dデータ一列ごとに空行をいれること。

auto mount

install (Ubuntu) sudo aptitude install autofs /etc/auto.master (client) 次の行を足す /home /etc/auto.home /opt /etc/auto.opt /etc/auto.home (client) * -fstype=nfs4 aachen:/home/& /etc/auto.opt (client) intel -fstype=nfs4 aachen:/opt/intel

static mount

/etc/fstab (client) nfs-server:/home /home nfs4 _netdev,auto 0 0 nfs-server:/opt /opt nfs4 _netdev,auto 0 0sudo mount -t nfs4 nfs-server:/ /mnt

設定

/etc/exports (server) /export 192.168.1.0/24(rw,fsid=0,insecure,no_subtree_check,async) /export/home 192.168.1.0/24(rw,nohide,insecure,no_subtree_check,async) /export/opt 192.168.1.0/24(rw,nohide,insecure,no_subtree_check,async) /etc/defau…

Install (Ubuntu)

server sudo aptitude nfs-kernel-server client sudo aptitude install nfs-client