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

GRID Error 整理(未完)

 

  • Job 在 server01 被砍掉

LOG 範例如下: Job 3136912

03/24/2014 17:16:24|  main|server01|E|shepherd of job 3136912.1 died through signal = 9
03/24/2014 17:16:24|  main|server01|E|abnormal termination of shepherd for job 3136912.1: “exit_status" file is empty
03/24/2014 17:16:24|  main|server01|E|can’t open usage file “active_jobs/3136912.1/usage" for job 3136912.1: No such file or directory
03/24/2014 17:16:24|  main|server01|E|shepherd exited with exit status 19: before writing exit_status

有人在 server01 做的動作

ex.

ps -ef | grep 3136912

sgeadmin 21371  6116  0 17:15 ?        00:00:00 sge_shepherd-3136912 -bg

kill -9 21371

NTP Client on Linux / Soaris

Oracle Solaris

(http://docs.oracle.com/cd/E23824_01/html/821-1454/time-20.html)

  1. copy sample ntp.conf

    #scp server /etc/inet/ntp.conf /etc/inet

  1. Start ntpd daemon

#svcadm enable ntp

  1. Enable logging

    #svccfg -s svc:/network/ntp:default setprop config/verbose_logging = true

  2. Update SMF repository and restart the service)

    #svcadm refresh svc:/network/ntp:default

OpenSolaris 11

http://thegreyblog.blogspot.com/2008/11/configuring-ntp-server-and-client-on.html

  1. copy sample ntp.conf

    #scp tpwok01:/etc/inet/ntp.conf /etc/inet

  2. Enable and Restart ntp daemon

    #svcadm enable ntp

    #svcadm restart ntp

  3. Check NTP Service

    #svcs ntp

Samba notices

來記一下 SAMBA 怎麼 mount

雖然不常用   但每次都要花時間去試  實在很不 make sense

 

Ubuntu:

新版用  apt-get install cifs-utils

/etc/fstab

//server/folder    /DATA    cifs    user,credentials=/etc/samba/cred-file,uid=501,gid=501 0 0

 

 

參考

https://wiki.ubuntu.com/MountWindowsSharesPermanently