顯示具有 wheezy 標籤的文章。 顯示所有文章
顯示具有 wheezy 標籤的文章。 顯示所有文章

2013年7月23日 星期二

Procedure to install Bugzilla on Debian Wheezy without using install-module.pl


Procedure to install Bugzilla on Debian Wheezy without using install-module.pl

No build-essential / make  or other development  package needed, no CPAN / perl module manually compile needed.

Pre-request:

  1. system already installed apache2 and mysql and perl.
  2. already configured mysql user/password for bugzilla, using root or other account



##get bugzilla tarball
wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.4.tar.gz
tar xzvf bugzilla-4.4.tar.gz
mv bugzilla-4.4 /var/www/bugzilla

##install necessary perl modules
apt-get install libapache2-mod-perl2 libdatetime-perl libemail-send-perl libtemplate-perl libemail-mime-perl liburi-perl liblist-moreutils-perl  libmath-random-isaac-perl libgd-graph-perl libchart-perl libtemplate-plugin-gd-perl

##generate localonfig file by ./checksetup.pl
cd /var/www/bugzilla
./checksetup.pl

##modify localconfig
## Debian use www-data:www-data as apache2 daemon user:group
vi localconfig
change --> $webservergroup = 'www-data';
change --> $db_user = 'user For Bugzilla';
change --> $db_pass = 'password For Bugzilla';

##run checksetup.pl again , auto setup db and administrator users
## checksetup.pl will ask for administrator email as admin account
Enter the e-mail address of the administrator: bug@m$
Enter the real name of the administrator: M$ Bug
Enter a password for the administrator account:
Please retype the password to verify:
dodgelin@gmail.com is now set up as an administrator.


## modify /etc/apache2/apache2.conf , append floolwing two line, like below
tail -2 /etc/httpd/conf/httpd.conf
PerlSwitches -I/var/www/bugzilla -I /var/www/bugzilla/lib -w -T
PerlConfigRequire /var/www/bugzilla/mod_perl.pl

## add apache2 alias config
vi /etc/apache2/conf.d/bugzilla

## add bugzilla alias as following
Alias /bugzilla/ "/var/www/bugzilla/"

  AddHandler cgi-script .cgi .pl
  Options +Indexes +ExecCGI +FollowSymLinks
  DirectoryIndex index.cgi
  AllowOverride Limit



##modify /var/www/bugzilla/mod.pl
##remark following lines due to lack of Apache::SizeLimit
##otherwise you will see a error message when starting APACHE2 
## "You must install Linux::Pid for Apache::SizeLimit to work on your platform."
vi /var/www/bugzilla/mod.pl

##find following section and remark it.
#use Apache2::SizeLimit;
# This means that every httpd child will die after processing
# a CGI if it is taking up more than 45MB of RAM all by itself,
# not counting RAM it is sharing with the other httpd processes.
#Apache2::SizeLimit->set_max_unshared_size(45_000);

## restart apache2
/etc/init.d/apache2 restart

##Done.







2013年7月9日 星期二

HOW to install Apache Activemq on Debian 7 Wheezy

##Debian 7 wheezy activemq install

##down apache activemq binary from http://activemq.apache.org/download.html  (current version: apache-activemq-5.8.0-bin.tar.gz)

##extract files to /opt
cd /opt
tar xzvf /root/Downloads/apache-activemq-5.8.0-bin.tar.gz


## make symbolic link
ln -s apache-activemq-5.8.0 activemq
cd /etc/init.d
ln -s /opt/activemq/bin/activemq

## generate activemq configuration file under /etc/default/activemq
/etc/init.d/activemq setup /etc/default/activemq
chown 'root':root '/etc/default/activemq'; chmod 600 '/etc/default/activemq'


##change admin password
vi /opt/activemq/conf/jetty-realm.properties

##update service autostart during boot
update-rc.d activemq defaults

2013年5月28日 星期二

Debian Wheezy 英文版 Libreoffice 中文輸入問題

在Debian Wheezy 中,Libreoffice有個困擾已久的中文輸入問題。

在Debian英文OS環境中,系統預設安裝的Libreoffice無法正常輸入中文。症狀是第一次開啟Libreoffice的任何程式,在視窗焦點沒離開Libreoffice之前還可以正常輸入中文,ibus-酷音的輸入視窗和界面都正常。可是一旦視窗切換到其他軟體,例如gedit,開啟中文輸入法輸入幾個字後,再切換回Libreoffice視窗,ibus-酷音就無法正常動作。

解決方法是補安裝 libreoffice-gnome & libreoffice-gtk 。我是透過synaptic package manager勾選安裝這兩隻之後,Libreoffice的中文輸入就正常了。

已經在 Wheezy正式版的 Libreoffice 4.0.3-3 環境下驗證可行。

2013年1月3日 星期四

在 Debian Wheezy 下啟用 Thinkpad X200 靜音鍵功能

這台X200先前被公司財務長徵用,最近又回到我手上。按照慣例換回 Debain ,用了一下發現之前就有的小問題一直還沒解決。

X200 的靜音鍵(mute)在Wheezy中無動作。稍微找了一下,發現是Linux Kernel 2.6.23之後,kernel回傳 ACPI字串更改所導致。Linux version 2.6.23 kernel passes OSI string "!Linux" to ACPI (instead of "Linux")

解決方案是在 boot parameter中加入acpi_osi="Linux"參數。在Debian Wheezy中修改 
/etc/default/grub
GRUB_CMDLINE_LINUX=""
改成
GRUB_CMDLINE_LINUX=" acpi_osi=Linux"

然後執行
update-grub

重新開機後就靜音鍵就可以用了。
參考網址: ThinkWiki
http://www.thinkwiki.org/wiki/Mute_button


2012年8月19日 星期日

IBM X31 Debian Wheezy Trackpoint 小紅點的中鍵滾輪正確解法

在殺肉組合零件之後,第二部IBM X31也正式服役了。安裝了 Debian Wheezy XFCE + LXDE 桌面。碰到最困擾的問題在於XFCE / LXDE 桌面環境下,小紅點的中鍵滾輪模擬無法正確動作,找了一陣子,正確解法如下:

To enable scrolling with the TrackPoint while holding down the middle mouse button, create a new file /etc/X11/xorg.conf.d/20-thinkpad.conf with the following content:
 Section "InputClass"
     Identifier "Trackpoint Wheel Emulation"
     MatchProduct       "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device"
     MatchDevicePath    "/dev/input/event*"
     Option             "EmulateWheel"          "true"
     Option             "EmulateWheelButton"    "2"
     Option             "Emulate3Buttons"       "false"
     Option             "XAxisMapping"          "6 7"
     Option             "YAxisMapping"          "4 5"
 EndSection

2012年5月25日 星期五

在Debian Wheezy 中更改Google Chrome cache dir

更改下面檔案

  1. /usr/share/gnome/applications/google-chrome.desktop
  2. /usr/share/applications/google-chrome.desktop
  3. /usr/share/gnome/applications/google-chrome.desktop

其中1.是最主要的,2,3可改可不改。


找到這行
Exec=/opt/google/chrome/google-chrome  %U

改為這樣
Exec=/opt/google/chrome/google-chrome --disk-cache-dir=/tmp %U

其中/tmp是要更改的 disk cache 目錄。

我的/tmp是記憶體中的tmpfs



2012年4月4日 星期三

Debian Wheezy 3G 行動網路分享(wifi hotspot)



重點提示: ignore IPV6
1.go to System settings --> Network --> Wireless -->Use as hotspot --> Configure (or 'Edit connections' under your connections --> Edit the hotspot connection)
2.Switch to IPv6 Settings tab --> Set Method to 'Ignore' and confirm/save
go to System settings --> Network --> Wireless --> Use as hotspot




這樣就可以讓其他設備透過分享wheezy的 mobile broadband 行動寬頻上網。

詳細步驟.....有人需要嗎?很少遇到用 Debian Wheezy 當作日常使用桌面系統,很懶的花時間寫啊。

2012年4月2日 星期一

ibus-chewing 新酷音輸入法選字數目太少的解決方式



ibus-chewing 新酷音輸入法在GNOME3環境中,基本上是安裝完之後就可以使用,但是一直有個小問題。在新酷音的候選字視窗中,系統預設值是只有四個中文字(8個英文字母)。就算你透過GUI界面更改了新酷音輸入法的設定,將 maximum chinese characters 的值放大到20或30,等到切換輸入法之後一樣恢復為最多四個中文字(8個英文字母),設定值完全無法儲存。

掙扎了一陣子,後來想到GNOME3預設是使用dconf / gsettings 來管理應用程式的設定值,而新酷音好像還是用 GNOME 2.X 的 gconf 方式設定,於是安裝相關套件,

apt-get install gconf-editor gconf-defaults-service

之後,執行 gconf-editor ,找到 /desktop/ibus/engine/Chewing/maxChiSymbolLen  這個設定 key, 手動更改為 30 之後,登出再登入,就可以解決輸入法候選字長度太短的問題了。

2012-08-23
更新一下自己的經驗 Debian Wheezy - LXDE上也是用這個方式解決。

2012年3月30日 星期五

Debian wheezy on Thinkpad X200

是的,這次是X200。我又拿到一台新的小黑,又來玩Debain安裝樂。

基本上跟上一篇X61安裝 Debain wheezy 差不多,上次的筆記照表操課就可以了。這次安裝的dvd image是3/26釋出的weekly build.


補充一點,ibus-chewing 在GNOME3環境中,安裝完之後就可以使用,但是一直有個小問題。在輸入法候選字視窗中,預設值是只有四個中文字(8個英文字母)。就算你更改了新酷音輸入法的設定,將 maximum chinese characters 的值放大到20或30,等到切換輸入法之後一樣變成四個中文字(8個英文字母),設定值完全無法儲存。

掙扎了一陣子,後來想到GNOME3預設是使用dconf / gsettings 來管理應用程式的設定值,而新酷音好像還是用 GNOME 2.X 的 gconf 方式設定,於是安裝相關套件,apt-get install gconf-editor gconf-defaults-service 之後,執行 gconf-editor ,找到 /desktop/ibus/engine/Chewing/maxChiSymbolLen  這個設定 key, 手動更改為 30 之後,登出再登入,就可以解決輸入法候選字長度太短的問題。

2012年2月15日 星期三

Debian wheezy on Thinkpad X61

Debian wheezy on Thinkpad X61
Installing :
using weekly build iso ( 13-Feb-2012 ) from http://cdimage.debian.org/cdimage/weekly-builds/amd64/iso-cd/

  1. Graphic install option not work.
  2. linux kernel 3.2.0
  3. use network mirror in US
  4. wait for 1 hour.. don't leave your seat, you will have to enter SMB workgroup name to continue.
  5. after first login, remove cdrom from source.lst
  6. for build-in Intel Wireless 3945 ABG ,  modify /etc/apt/source.lst ,  add non-free , then apt-get install firmware-iwlwifi
  7. enable trackpoint wheel emulation , apt-get install gpointing-device-settings , then run gpointing-device-settings, configure wheel emulation button:2   update: reference this page "Enabling TrackPoint scrolling in Debian Wheezy"
  8. browse https://extensions.gnome.org , install extra gnome-shell extensions
  9. apt-get install ibus ibus-anthy ibus-chewing fonts-arphic-ukai fonts-arphic-uming ( for traditional chinese support in English locale )
  10. apt-get install libcurl3 libxss1 , then download Google Chrome and install. After install Chrome, ln -s /opt/google/chrome/google-chrome.desktop ~/.local/share/applications/