Linux

Linux上のUSB HDDをNetatalkで共有して,time machineのバックアップとして使う

まずはUSB HDDの初期化・マウント http://d.hatena.ne.jp/SumiTomohiko/20080524/1211628731などを参考に #fdisk /dev/sdb(環境によってはsdb以外) #mkfs.ext3 /dev/sdb1 #mount /dev/sdb1 /mntnetatalkはdb4.6以上が必要なので, http://www.oracle.com/t…

LDAPによるユーザ認証

条件 CentOS 5.4 x86_64 openldap 2.3 サーバ側 #vim /etc/openldap/slapd.conf database bdb suffix "dc=hoge,dc=jp" rootdn "cn=Manager,dc=hoge,dc=jp" rootpw {SSHA}hogehoge (slappasswdの結果) #cp /etc/openldap/DB_CONFIG.example /var/lib/ldap/DB_…

同期バックアップ

$rsync -acouv --delete source destination deleteのオプションで完全同期

内蔵HDDを外付けUSBーHDDにして中身取り出す方法

内蔵HDDをHDD1,外付けHDDをHDD2とする.#vgscan Reading all physical volumes. This may take a while... Found volume group "VolGroup00" using metadata type lvm2 Found volume group "VolGroup00" using metadata type lvm2それぞれのHDDの…

fixfiles relabelでエラー

#fixfiles relabel 実行時に /etc/selinux/targeted/contexts/files/file_contexts.homedirs: line 18 has invalid context というようなエラーが発生.# genhomedircon # touch /.autorelabel # reboot で解決参考URL https://bugzilla.redhat.com/show_…

SELinuxに移行した時のエラー

# service syslog start Starting system logger: syslogd: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory [FAILED] Starting kernel logger: klogd: error while loading shared libraries…

NFSでhome directoryをマウント

NFSサーバ側設定#vi /etc/exports /home client(rw) #exportfs -ra#vi /etc/sysconfig/nfs MOUNTD_PORT= STATD_PORT= LOCKD_TCPPORT= LOCKD_UDPPORT= #chkconfig portmap on #service portmap start #chkconfig nfs on #service nfs startiptablesで111,204…

Autofsを使う

couldn't locate nis+ table auto.master /etc/nsswitch.confautomount fileshttp://hyphenlink.blog48.fc2.com/blog-entry-69.html ホームディレクトリとしてローカルとリモートを混在させる. user1とuser2はリモート,それ以外のユーザはローカルに実体が…

GUIなしCentOSでX Forwarding

まずはsshの設定(/etc/ssh/sshd_config) X11Forwarding yes次にxorg-x11-xauthのインストール #yum install xorg-x11-xauth最後にfirewallの設定(iptables) tcpの6010くらいを通す. リモートホスト側では, puttyの”Enable X11 forwarding”をチェック.ゲー…

Xlib: connection to ":1.0" refused by server Xlib: No protocol specified

xhost + Sounds like you are trying to access X as a non-authorised user. The only time I ever see those lines is when I have done "su" in a shell and then attempt to run a program. If this is the problem, then make sure you are the correct…

CentOSにXFCEを導入

#yum groupinstall XFCE #yum install switchdesk$switchdesk xfce $vim $HOME/.vnc/xstartup # Uncomment the following two lines for normal desktop: unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc

Sambaでファイル共有する

selinuxを有効にしている場合に,ホームディレクトリを共有する場合, #setsebool -P samba_enable_home_dirs 1NFSでマウントしているフォルダをsambaで共有する場合 #setsebool -P samba_share_nfs 1pdbeditでユーザの登録が必要 http://www.searchman.info…

CentOSでgvインストール

EPELレポジトリを追加yumでgvインストール

How to compile EEGLabImport on 64-bit Linux

Edit the following lines in defines.h (src/shared/defines.h), #if( defined( __BORLANDC__ ) && ( __BORLANDC__ > 0x0560 ) ) // bcc32 > 5.5.1 typedef unsigned long long uint64; typedef signed long long sint64; #else // __BORLANDC__ typedef un…

BCI2000 OfflineAnalysis on Linux

Comment out the following lines in OfflineAnalysis.m, if ~strcmp(computer, 'PCWIN') || verNum error('BCI2000 Offline Analysis currently works only on windows-based systems with version 7.x or greater of MATLAB or the MATLAB Component Runti…

R

インストール readline-devel libX11 libX11-devel libXt libXt-devel ./configure --enable-R-shlib make

Matlab

/usr/loca/matlab/R2009b/にインストールした場合 setsebool -P allow_execheap=1 chcon -t textrel_shlib_t /usr/local/matlab/R2009b/bin/glnxa64/* chcon -t textrel_shlib_t /usr/loca/matlab/R2009b/sys/java/jre/glnxa64/jre/lib/amd64/*参考URL:http…

Fedoraで文字化けを直す

/etc/sysconfig/i18nLANG="ja_JP.eucJP" SUPPORTED="ja_JP.eucJP:ja_JP:ja"~/.vimrc set encoding=euc-jp set fileencodings=sjis,utf-8,iso-2022-jp

lastでログイン履歴を見れないようにする

chmod 660 /var/log/wtmp 一般ユーザには見られなくなる.

libra構築メモ

iptables http://d.hatena.ne.jp/HRM-7/20081203/1228308851以上をしないとyumすらできない. OpenLDAP DB_CONFIG samba.schema perlモジュールインストール Net::LDAP Digest::SHA1 Jcode Unicode::Map Unicode::String Unicode::Map8 Unicode::MapUTF8 Cry…

iptables設定

ssh iptables -A INPUT -p tcp --dport 22 -j ACCEPT セッション確立後や関連パケットを疎通(Puttyなどによるポートフォーワーディングを含む) iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT 外部DNSへの問い合わせ iptables -A INPU…

Ubuntu設定

Ubuntuで動画を再生する 著作権の関係で標準ではインストールされないリストをレポジトリに追加。 https://help.ubuntu.com/community/Medibuntu UbuntuでWindowsのntfsフォーマットドライブを自動でマウント、読み書きできるようにする. 8.04 Hardy Heronで…

Ubuntuでrm, wmvを同一プレーヤで再生

http://www.ubuntugeek.com/install-mplayer-and-multimedia-codecs-libdvdcss2w32codecsw64codecs-in-ubuntu-804-hardy-heron.html要は、w32codecsをインストールする必要があるらしい。

ThunderbirdのWebmail設定

WebMailは、ローカル上で専用のPOP3,SMTP(,IMAP4)サーバを動かすのだが、GNU/Linux上では、そのポート番号を(1024以上に)変更しないと、一般ユーザでは動作しない。 http://d.hatena.ne.jp/kakurasan/20080706/p1

UbuntuでWindowsとファイル共有

Electronic Genome - Ubuntu 8.04のsmbfsでWindows共有フォルダをマウントする

VMware上でUbuntuを動かす

VMware Player 2.5 http://www.vmware.com/download/player/Ubuntuの最新のディストリビューション(8.04)の仮想マシンが英語サイトになかったので,日本語サイトからダウンロード Ubuntu 8.04 LTS ubuntu-ja-8.04-vmware-i386.zip http://www.ubuntulinux.jp…

VMware上のUbuntuのネットワーク設定

LANの環境であればデフォルトのブリッジでいいが,グローバルIPを割り振られている環境なので,NATを選択.あっさりできた.参考サイト http://nobumasa-web.hp.infoseek.co.jp/multi_boot/vmware/vmware.html