Saturday, November 5, 2011

problem of apt-get install


E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

rm /var/lib/dpkg/lock
rm /var/cache/apt/archives/lock
sudo dpkg --configure -a


Reference
http://www.linuxquestions.org/questions/linux-newbie-8/e-could-not-get-lock-var-lib-dpkg-lock-open-11-resource-temporarily-unavailable-360554/

Apache in linux Ubuntu(2)

403 Forbidden
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>



權限問題
drwx------

chmod 707

Reference 
http://ubuntuforums.org/archive/index.php/t-763605.html
http://linux.vbird.org/linux_basic/0210filepermission.php
http://klaus580925.pixnet.net/blog/post/28185261-%5B伺服器的背叛%5D---解決-apache-的-403-forbidden-問

Apache in linux Ubuntu(1)


root@chihhang-desktop:/etc# ./init.d/apache2 restart

Error message 
* Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
 ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
   ...done.
Solve
   vi /etc/apache2/httpd.conf
ServerName localhost 

http://plus-now.com/?p=4

Successful message
 * Restarting web server apache2
 ... waiting    ...done.


Register Transfer Level Design with Verilog (1) [ebook]

設計程式之所以有趣不外乎是它的千變萬化,同樣的結果卻有不同的寫法。 但這些不同寫法當中也並沒有分誰對誰錯,也沒有制定標準來規範何事該用何解。 這也就是我們設計者的珍貴!! [1] Primitive Instantiations 在Verilog中最基本的邏輯...