Add a regular user to the sudoers file

usermod -a -G sudo username

vnc cant work in Ubuntu 14.04

Ubuntu 升級到 14.04 遇到 VNC 連線被設定成加密  導致無法連線

最簡單的方法是 ( The most easy mothod )

gsettings set org.gnome.Vino require-encryption false

 

ps. https://bugs.launchpad.net/ubuntu/+source/vino/+bug/1290666

 

otrs 升級到 3.3 準備中

1. Download link

不想填註冊直接下面

http://ftp.gwdg.de/pub/misc/otrs/

2. 備份

3. 準備機器 -> 使用新機或 VM

4. 動工

先 diff 過之前改過的程式

一些寫 script 的技巧(整理中)

多行合併
ex. ls
-1| tr "\\n"","

compile gcc 4.4.5/4.5.1 on Ubuntu 10.10

要在 Ubuntu 12.04 用 gcc 4.4.5  or 4.5.1

不過 Ubuntu 很奇怪 12.04 上的 gcc 是 4.4.7 , 4.5.4  , Ubuntu 10.10 的是 4.4.5

 

Compile Environment : Ubuntu 10.10 x86_64

gcc – 4.4.5 / 4.5.1
gmp / mpc mpfr 建議版本如下
gmp 4.3.2
mpc 0.8.1
mpfr 2.4.2

-rw-r–r– 1 root root 63081552 2010-10-01 19:17 gcc-4.4.5.tar.bz2
-rw-r–r– 1 root root 66121821 2010-07-31 19:22 gcc-4.5.1.tar.bz2
-rw-r–r– 1 root root 1897483 2010-01-08 19:24 gmp-4.3.2.tar.bz2
-rw-r–r– 1 root root 544950 2009-12-09 00:10 mpc-0.8.1.tar.gz
-rw-r–r– 1 root root 1077886 2009-12-07 04:55 mpfr-2.4.2.tar.bz2

解壓縮就不講了, 都放到 /usr/local/src/4.5.1 , 4.4.5 一樣只是改放位置而已

1. make gmp
root@u1010:/usr/local/src/4.5.1/gmp-4.3.2# ./configure –prefix=/opt/gcc/Ubuntu/x86_64/4.5.1/libgmp
make
make install

2. make mpfr
root@u1010:/usr/local/src/4.5.1/mpfr-2.4.2# ./configure –prefix=/opt/gcc/Ubuntu/x86_64/4.5.1/libmpfr \
–with-gmp-lib=/opt/gcc/Ubuntu/x86_64/4.5.1/libgmp
make
make install

3. make mpc
root@u1010:/usr/local/src/4.5.1/mpc-0.8.1# ./configure –prefix=/opt/gcc/Ubuntu/x86_64/4.5.1/libmpc \
–with-gmp-lib=/opt/gcc/Ubuntu/x86_64/4.5.1/libgmp \ –with-mpfr=/opt/gcc/Ubuntu/x86_64/4.5.1/libmpfr
make
make install

4. make gcc
root@u1010:/usr/local/src/4.5.1/gcc-4.5.1# ./configure –prefix=/opt/gcc/Ubuntu/x86_64/4.5.1  \
–enable-languages=c,c++ –with-gmp=/opt/gcc/Ubuntu/x86_64/4.5.1/libgmp \
–with-mpfr=/opt/gcc/Ubuntu/x86_64/4.5.1/libmpfr –with-mpc=/opt/gcc/Ubuntu/x86_64/4.5.1/libmpc

export LD_LIBRARY_PATH=/opt/gcc/Ubuntu/x86_64/4.5.1/libgmp/lib:/opt/gcc/Ubuntu/x86_64/4.5.1/libmpfr/lib:/opt/gcc/Ubuntu/x86_64/4.5.1/libmpc/lib

make
make install

Soaris dmidecode – smbios

Linux 可以用 dmidecore 察看主機本型號

Sorlas 是用 smbios

smbios | grep -i Product | grep -v empty

 

FressNAS 文章收集

LAB XenServer 6.2 + FreeNAS 9.1.1 ZFS iSCSI MPIO
http://ithelp.ithome.com.tw/question/10143327?tag=rss.qu

在Ubuntu Linux使用Open-iSCSI Initiator連接至iSCSI裝置
http://docs.qnap.com/nas/tc/index.html?connect_iscsi_targets_linux.htm