HP ProLiant MicroServer Edit

scientific linux 6.1 Edit

EPEL6レポジトリの追加 Edit

  • http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
    をダウンロードしてインストールするとEPELレポジトリが使えるようになる。
    rpm -ivh epel-release-6-5.noarch.rpm
    
  • 自動アップデートが有効になっているので無効化しておく
    • /etc/yum.repos.d/epel.repo
      [epel]
      ...
      enabled=0
      gpgcheck=1
      gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
      

仮想化関連 Edit

  • http://www.tooyama.org/kvm-host.html からコピペ
    # yum -y install qemu-kvm libvirt python-virtinst bridge-utils
    # usermod -G kvm -a $USER
    # /etc/rc.d/init.d/libvirtd start
    # chkconfig libvirtd on 
    
    # service NetworkManager stop
    # chkconfig NetworkManager off
    # service network start
    # chkconfig network on
    
    # cd /etc/sysconfig/network-scripts/
    # cp ifcfg-eth0 ifcfg-br0
    
  • ifcfg-eth0
    DEVICE=eth0
    HWADDR=XX:XX:XX:XX:XX:XX
    BOOTPROTO=none
    ONBOOT=yes
    BRIDGE=br0
    
  • ifcfg-br0
    DEVICE=br0
    TYPE=Bridge
    ONBOOT=yes
    BOOTPROTO=none
    NETMASK=255.255.255.0
    IPADDR=192.168.1.41
    GATEWAY=192.168.1.1
    
  • iptables
    • /etc/sysctl.conf:
      # Disable netfilter on bridges.
      net.bridge.bridge-nf-call-ip6tables = 0
      net.bridge.bridge-nf-call-iptables = 0
      net.bridge.bridge-nf-call-arptables = 0
      

RAID + LVM Edit

# /dev/sdbと/dev/sdcで/dev/md0という名前のRAID1を構築する場合
$ mdadm --create --metadata 1.0 --verbose /dev/md0 --level=mirror --raid-devices=2 /dev/sdb /dev/sdc
$ pvcreate -M2 --dataalignment 64K /dev/md0

Oracle 11gR2 XE(Express Edition) beta Edit

  • document
    http://download.oracle.com/docs/cd/E17781_01/index.htm
  • install
    # yum install binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel \
                  glibc glibc-common glibc-devel gcc gcc-c++ libaio libaio-devel \
                  libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel 
    
    
    # rpm -ivh oracle-xe-11.2.0-0.5.x86_64.rpm
    準備中...                ########################################### [100%]
    error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
    error: "net.bridge.bridge-nf-call-iptables" is an unknown key
    error: "net.bridge.bridge-nf-call-arptables" is an unknown key
    エラー: %pre(oracle-xe-11.2.0-0.5.x86_64) scriptlet failed, exit status 255
    エラー:   install: スクリプト %pre の実行に失敗しました (2)。oracle-xe-11.2.0-0.5 をスキップします。
    
    エラーにより、/etc/sysctl.conf が書き換えられる?もう一度インストールすればOK
    
    # rpm -ivh oracle-xe-11.2.0-0.5.x86_64.rpm
    
    # /etc/init.d/oracle-xe configure
    
    Oracle Database 11g Express Edition Configuration
    -------------------------------------------------
    This will configure on-boot properties of Oracle Database 11g Express
    Edition.  The following questions will determine whether the database should
    be starting upon system boot, the ports it will use, and the passwords that
    will be used for database accounts.  Press <Enter> to accept the defaults.
    Ctrl-C will abort.
    
    Specify the HTTP port that will be used for Oracle Application Express [8080]:18080 #個人的事情により変更
    
    Specify a port that will be used for the database listener [1521]:
    
    Specify a password to be used for database accounts.  Note that the same
    password will be used for SYS and SYSTEM.  Oracle recommends the use of
    different passwords for each database account.  This can be done after
    initial configuration:
    Confirm the password:
    
    Do you want Oracle Database 11g Express Edition to be started on boot (y/n) [y]:y
    
    Starting Oracle Net Listener...Done
    Configuring database...Done
    Starting Oracle Database 11g Express Edition instance...Done
    Installation completed successfully.
    
  • /.bash_profile へ下記を追加

    . /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh
    
  • 接続テスト
    $ sqlplus
    
    SQL*Plus: Release 11.2.0.2.0 Beta on 水 8月 17 23:12:47 2011
    
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    
    Enter user-name: system
    Enter password: インストールで指定したパスワード
    
    Connected to:
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Beta
    
    
    SQL> EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
    PL/SQL procedure successfully completed.
    
    データベースをユーザの作成($USER/$PASWORD)
    SQL> create user $USER identified by $PASSWORD;
    
    User created.
    
    SQL> alter user $USER default tablespace USERS;
    
    User altered.
    
    SQL> grant connect, resource to $USER;
    
    Grant succeeded.
    
    SQL> exit;
    
  • perl-DBD-Oracle
    $ cd DBD-Oracle-1.27
    $ perl Makefile.PL -m /u01/app/oracle/product/11.2.0/xe/rdbms/demo/demo_xe.mk
    $ make
    $ sudo make install
    $ su
    
    # ライブラリパスを通す
    # echo '/u01/app/oracle/product/11.2.0/xe/lib' > /etc/ld.so.conf.d/oracle-x86_64.conf
    # /sbin/ldconfig
    

ubuntu 10.10 Edit

  • ubuntu10.10 server版でsynapticがGUIで起動しません。
    https://forums.ubuntulinux.jp/viewtopic.php?pid=71484
  • ディレクトリ名を英語に変更
    LANG=C xdg-user-dirs-gtk-update
  • http://moimoitei.blogspot.com/2008/07/ubuntu-kvm-libvirt.html
    • kvmのブリッジ設定
      auto eth0
      iface eth0 inet static
      address 192.168.1.xx
      netmask 255.255.255.0
      gateway 192.168.1.1
      broadcast 192.168.1.255
      
      auto br0
      iface br0 inet static
      address 192.168.1.xx
      netmask 255.255.255.0
      gateway 192.168.1.1
      broadcast 192.168.1.255
      bridge_ports eth0
      bridge_fd 9
      bridge_hello 2
      bridge_maxage 12
      bridge_stp off
      
  • /etc/X11/xorg.conf
    • マウスカーソルがマウスに追従しない問題の解決法(タブレットデバイスを使う)
      # Xorg configuration created by pyxf86config
      
      Section "ServerLayout"
              Identifier     "Default Layout"
              Screen      0  "Screen0" 0 0
              InputDevice    "Keyboard0" "CoreKeyboard"
              InputDevice "Tablet" "SendCoreEvents"
              InputDevice "Mouse" "CorePointer"
      EndSection
      
      Section "InputDevice"
              Identifier  "Keyboard0"
              Driver      "kbd"
              Option      "XkbModel" "pc105"
              Option      "XkbLayout" "us"
      EndSection
      
      Section "InputDevice"
              Identifier "Mouse"
              Driver "void"
              #Option "Device" "/dev/input/mice"
              #Option "Emulate3Buttons" "yes"
      EndSection
      
      Section "InputDevice"
              Identifier "Tablet"
              Driver "evdev"
              Option "Device" "/dev/input/event2"
              Option "CorePointer" "true"
              Option "Name" "Adomax QEMU USB Tablet"
      EndSection
      
      Section "Device"
              Identifier  "Videocard0"
              Driver      "cirrus"
      EndSection
      
      Section "Screen"
              Identifier "Screen0"
              Device     "Videocard0"
              DefaultDepth     24
              SubSection "Display"
                      Viewport   0 0
                      Depth     24
              EndSubSection
      EndSection
      

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2011-08-22 (月) 15:44:45 (4722d)