VirtualBox 4.1.8 + LinuxMint 12
Host=windows (64bit)
VirtualBox 4.1.8 r75467
Guest=Linux Mint 12 (64bit)
LinuxMint12已經內建有VirtualBoxGuestAddition, 不要再安裝VirtualBox裡的GuestAddition, 否則在linux-mint裡若有設定變更Gnome shell後,X-window會變得不正常且無法回復○
另外在virtual box分享host資料夾給linux guest時, 便會自動掛載在/media/sf_xxx, 但是該目錄 owner user=root, group=vboxsf ,而其權限為0770 ,故要將自己的帳號加入vboxsf群組, sudo gpasswd -a userName vboxsf , 接著重新登入~
Linux筆記
部落客廣告聯播
2012年1月18日 星期三
2012年1月10日 星期二
Ubuntu 11.10上安裝Apache+SVN+TRAC
Ubuntu 11.10上安裝Apache+SVN+Trac
1.install apache
sudo apt-get install apache2
2.install svn
sudo apt-get install subversion
3.install apache lib for svn
sudo apt-get install libapache2-svn
4.create svn repository
svnadmin create /path/to/repositoryName
5.create user
htpasswd -c /path/to/accounts/file yourName
6. setup permission
edit /path/to/repositoryName/conf/authz
#群組的設定
[groups]
admin = adm1
rd = rd1,rd2,yourName
#根目錄存取權限
[/]
@admin = rw
* =
#repositoryName 資源庫存取權限
[repositoryName:/]
@admin = rw # @admin 代表 群組admin
@rd = rw
* =
7.edit /etc/apache2/mods-enabled/dav_svn.conf
DAV svn
SVNParentPath /path/to/parent/directory/of/repositoryName
Satisfy Any
AuthType Basic
AuthName "SVN Repository"
AuthUserFile /path/to/accounts/file
AuthzSVNAccessFile /path/to/repositoryName/conf/authz
Require valid-user
8. restart apache
sudo service apache2 restart
9. visit to validate apache & svn
http://localhost/svn/repositoryName
10. install TRAC
sudo apt-get install python python-babel trac
sudo apt-get install sqlite3
11. upgrade python
sudo easy_install Bable
sudo easy_install Trac
12. make dir
sudo mkdir -p /var/local/trac
13. init env
trac-admin /var/local/trac initenv
14. test trac (standalone)
sudo tracd -p 8080 /var/local/trac
browse to http://localhost:8080
15. verify trac auth
sudo tracd -p 8080 --auth="trac,/path/to/accounts/file,yourName"
browse to http://localhost:8080, try login
16. intergrate with apache
to be continue...
---------------------------------------------------------------------------------
15. add file /etc/apache2/sites-available/trac
ServerName trac.local
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /var/local/trac
PythonOption TracEnvParentDir /var/local/trac
PythonOption TracUriRoot /
PythonOption TracEnv /var/local/trac
# PythonOption TracEnvIndexTemplate /var/local/trac/templates/index-template.html
PythonOption TracLocale en_US.UTF8
PythonOption PYTHON_EGG_CACHE /tmp
Order allow,deny
Allow from all
AuthType Basic
AuthName "myproject"
AuthUserFile /var/local/trac/.htpasswd
Require valid-user
15. enable the trac site
cd /etc/apache2/sites-enabled
sudo ln -s ../sites-available/trac
16. install apache 2 python module
sudo apt-get install libapache2-mod-python
16. restart apache
service apache2 restart
refer to:
http://thisismyeye.blogspot.com/2011/12/installing-and-configure-trac-on.html
1.install apache
sudo apt-get install apache2
2.install svn
sudo apt-get install subversion
3.install apache lib for svn
sudo apt-get install libapache2-svn
4.create svn repository
svnadmin create /path/to/repositoryName
5.create user
htpasswd -c /path/to/accounts/file yourName
6. setup permission
edit /path/to/repositoryName/conf/authz
#群組的設定
[groups]
admin = adm1
rd = rd1,rd2,yourName
#根目錄存取權限
[/]
@admin = rw
* =
#repositoryName 資源庫存取權限
[repositoryName:/]
@admin = rw # @admin 代表 群組admin
@rd = rw
* =
7.edit /etc/apache2/mods-enabled/dav_svn.conf
DAV svn
SVNParentPath /path/to/parent/directory/of/repositoryName
Satisfy Any
AuthType Basic
AuthName "SVN Repository"
AuthUserFile /path/to/accounts/file
AuthzSVNAccessFile /path/to/repositoryName/conf/authz
Require valid-user
8. restart apache
sudo service apache2 restart
9. visit to validate apache & svn
http://localhost/svn/repositoryName
10. install TRAC
sudo apt-get install python python-babel trac
sudo apt-get install sqlite3
11. upgrade python
sudo easy_install Bable
sudo easy_install Trac
12. make dir
sudo mkdir -p /var/local/trac
13. init env
trac-admin /var/local/trac initenv
14. test trac (standalone)
sudo tracd -p 8080 /var/local/trac
browse to http://localhost:8080
15. verify trac auth
sudo tracd -p 8080 --auth="trac,/path/to/accounts/file,yourName"
browse to http://localhost:8080, try login
16. intergrate with apache
to be continue...
---------------------------------------------------------------------------------
refer to:
http://thisismyeye.blogspot.com/2011/12/installing-and-configure-trac-on.html
Eclipse CDT在Ubuntu 11.10無法使用問題
興高采烈的在KUbuntu 11.10裏面載了Eclipse IDE for C/C++ Developers(Indigo SR1, 3.7.1)準備當作C++的IDE來使用(因為KDeveloper4真是難用),但才試著第1個內建的Hello world程式竟然就有問題,project explorer裏面一直沒有Incude列出來,Editor也一堆錯誤。
真不知道是不是因為我的ubuntu是中文環境才會出現這樣錯誤。
找了好久,最後解決的方法是改使用nightly build版本的CDT才沒問題(似乎是nightly build有修正這各bug).
CDT的nightly build版本可在這下載:
https://hudson.eclipse.org/hudson/job/cdt-nightly/lastSuccessfulBuild/
真不知道是不是因為我的ubuntu是中文環境才會出現這樣錯誤。
找了好久,最後解決的方法是改使用nightly build版本的CDT才沒問題(似乎是nightly build有修正這各bug).
CDT的nightly build版本可在這下載:
https://hudson.eclipse.org/hudson/job/cdt-nightly/lastSuccessfulBuild/
2012年1月9日 星期一
解決E: Unable to correct problems, you have held broken packages.
在使用apt-get時,若出現E: Unable to correct problems, you have held broken packages. ,可使用下列命令修正:
sudo apt-get clean && sudo apt-get update
2011年12月24日 星期六
Kubuntu 11.10安裝VirtualBox Guest Additions
我在Windows上使用VirtualBox起了個VM安裝了Kubuntu 11.10,但發現顯示大小無法改變,需要安裝VirtualBox Guest Additions。
但安裝Guest Additions還要先下指令:
sudo apt-get install dkms gcc
來安裝DKMS和GCC。
詳見:
http://digitizor.com/2009/05/26/how-to-install-virtualbox-guest-additions-for-a-linux-guest/
但安裝Guest Additions還要先下指令:
sudo apt-get install dkms gcc
來安裝DKMS和GCC。
詳見:
http://digitizor.com/2009/05/26/how-to-install-virtualbox-guest-additions-for-a-linux-guest/
2010年10月10日 星期日
VirtualBox 3.2.8上安裝Ubtntu 10.10
VirtualBox 3.2.8上安裝Ubtntu 10.10
一切都很順利,但在安裝Guest Addition時會說偵測到不知道的X版本,
導致解析度無法調整,解決方法為在guest的ubuntu裡面使用:
sudo apt-get install virtualbox-ose-guest-x11
指令安裝必要的東西後,重新開機,就能順利地調整解析度了
一切都很順利,但在安裝Guest Addition時會說偵測到不知道的X版本,
導致解析度無法調整,解決方法為在guest的ubuntu裡面使用:
sudo apt-get install virtualbox-ose-guest-x11
指令安裝必要的東西後,重新開機,就能順利地調整解析度了
訂閱:
文章 (Atom)