个人工具

“UbuntuHelp:DazukoTroubleshooting”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/DazukoTroubleshooting}} {{Languages|UbuntuHelp:DazukoTroubleshooting}} == Getting Started == What is Dazuko? A common interface across all pla...)
 
 
(未显示同一用户的3个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/DazukoTroubleshooting}}
 
{{From|https://help.ubuntu.com/community/DazukoTroubleshooting}}
 
{{Languages|UbuntuHelp:DazukoTroubleshooting}}
 
{{Languages|UbuntuHelp:DazukoTroubleshooting}}
 
 
 
== Getting Started ==
 
== Getting Started ==
 
 
What is Dazuko?
 
What is Dazuko?
 
 
A common interface across all platforms is needed for 3rd party file access control. With such an interface, focus could be redirected from OS hacking to solving real problems. The interface is here. It is called Dazuko.
 
A common interface across all platforms is needed for 3rd party file access control. With such an interface, focus could be redirected from OS hacking to solving real problems. The interface is here. It is called Dazuko.
 
 
http://www.dazuko.com
 
http://www.dazuko.com
 
+
== Dazuko Installation ==
This page is to help those that are having trouble installing dazuko on Linux.
+
=== Old Method ===
To begin, you MUST have build-essential and module-assistant installed.
+
<pre><nowiki>
 
+
$ sudo apt-get install build-essential module-assistant  
$ sudo apt-get install build-essential module-assistant
+
  $ sudo gedit /etc/modprobe.d/dazuko
 
+
</nowiki></pre>
=== Disable AppArmor ===
+
Copy and paste the following lines to the document. Then save and exit.
 
+
<pre><nowiki>
First of all, dazuko cannot be inserted into your kernel if you have apparmor running. To turn this program off type or copy/paste in Terminal:
+
install dazuko modprobe -r apparmor; \
 
+
modprobe -i dazuko; \
$ sudo gedit /etc/modprobe.d/dazuko
+
modprobe -i apparmor;
 
+
</nowiki></pre>
Copy and paste the following lines to the document. Then save and exit.
+
'''Deb Method''' 
 
+
install dazuko modprobe -r apparmor;\
+
 
+
modprobe -i dazuko; \
+
 
+
modprobe -i apparmor
+
 
+
=== Installation Methods ===
+
 
+
===== Deb Method =====
+
 
+
 
Now, we will first attempt to install dazuko via the .deb package. (This file was downloaded to my desktop.)
 
Now, we will first attempt to install dazuko via the .deb package. (This file was downloaded to my desktop.)
 
+
Download the package ->http://www.dazuko.org/files/dazuko-source_2.3.3-1_all.deb
Download the package -> http://www.dazuko.org/files/dazuko-source_2.3.3-1_all.deb
+
 
+
 
Open Terminal.
 
Open Terminal.
 
+
<pre><nowiki>
$ sudo dpkg -i ./Desktop/dazuko-source_2.3.3-1_all.deb
+
$ sudo dpkg -i ./Desktop/dazuko-source_2.3.3-1_all.deb
 
+
$ sudo module-assistant prepare
$ sudo module-assistant prepare
+
$ sudo m-a a-i dazuko
 
+
</nowiki></pre>
$ sudo m-a a-i dazuko
+
For some reasons, this step may not work. Most of the time this is due to the capability module. To go around this move on to the next method.
 
+
'''Tar.gz Method'''
For some reasons, this step may not work. Most of the time this is due to the capability module. To go around this move on to the next method.
+
 
+
====== Tar.gz Method ======
+
 
+
 
If the first method did not work, try the .tar.gz method. (This file was downloaded to my desktop.)
 
If the first method did not work, try the .tar.gz method. (This file was downloaded to my desktop.)
 
+
Download the following file ->http://www.dazuko.org/files/dazuko-2.3.4.tar.gz
Download the following file -> http://www.dazuko.org/files/dazuko-2.3.4.tar.gz
+
 
+
 
Type or copy/paste the following lines into Terminal.
 
Type or copy/paste the following lines into Terminal.
 
+
<pre><nowiki>
$ tar -xvf ./Desktop/dazuko-2.3.4.tar.gz
+
$ tar -xvf ./Desktop/dazuko-2.3.4.tar.gz
 
+
$ cd dazuko-2.3.4
$ cd dazuko-2.3.4
+
$ sudo -s
 
+
# ./configure
$ su
+
# make
 
+
# sudo make test
# ./configure
+
</nowiki></pre>
 
+
# make
+
 
+
# sudo make test
+
 
+
 
If you receive any errors from this step, try this.
 
If you receive any errors from this step, try this.
 
+
<pre><nowiki>
# rmmod capability
+
# rmmod capability
 
+
# insmod /dazuko.ko
# insmod /dazuko.ko
+
# modprobe capability
 
+
# sudo make test
# modprobe capability
+
</nowiki></pre>
 
+
# sudo make test
+
 
+
 
You should receive that the module is already installed.
 
You should receive that the module is already installed.
 
+
<pre><nowiki>
# cat /proc/modules
+
# cat /proc/modules
 
+
</nowiki></pre>
 
You should find dazuko listed.
 
You should find dazuko listed.
 
+
<pre><nowiki>
# cat /proc/devices
+
# cat /proc/devices
 
+
</nowiki></pre>
 
You should find dazuko listed with a number beside it.
 
You should find dazuko listed with a number beside it.
 
+
<pre><nowiki>
# mknod -m 600 /dev/dazuko c [the number] 0
+
# mknod -m 600 /dev/dazuko c [the number] 0
 
+
# chown root:root /dev/dazuko
# chown root:root /dev/dazuko
+
# make install
 
+
</nowiki></pre>
# make install
+
Dazuko should now be installed.  
 
+
=== DazukoFS Method ===
Dazuko should now be installed.
+
To install DazukoFS you will need linux kernel 2.6.31.x from http://www.kernel.org.  This is currently the only known version that DazukoFS will work with although there may be others.
 
+
Open Terminal.
Source: http://www.dazuko.com
+
<pre><nowiki>
 +
$ uname -r
 +
</nowiki></pre>
 +
Remember the output given.  You will need to replace [insert] each time you see it with this output.
 +
<pre><nowiki>
 +
$ sudo -s
 +
# apt-get install build-essential bin86 kernel-package libqt3-headers libqt3-mt-dev wget libncurses5 libncurses5-dev fakeroot
 +
# cp ~/Desktop/linux*.tar.bz2 /usr/src
 +
# cd /usr/src
 +
# tar xvjf linux*.tar.bz2
 +
# cd linux*
 +
# cp /boot/config-[insert] .config
 +
# make menuconfig
 +
</nowiki></pre>
 +
Scroll down with the arrow keys and select Load an Alternate Configuration using Enter.
 +
Scroll back up to General Options and hit select it.
 +
Scroll down to select Kernel .config support.  Press space twice to get the '*' option.
 +
Also select the next option. Press space once here to get the '*' option.
 +
Press <Esc><Esc> to go back until its asks you to save.  Select Yes with Enter.
 +
<pre><nowiki>
 +
# make-kpkg clean
 +
# fakeroot make-kpkg --initrd --append-to-version=-dazuko-kernel kernel-image kernel-headers
 +
</nowiki></pre>
 +
This step will take approximately 1 - 3 hours to complete depending on computer configuration.
 +
<pre><nowiki>
 +
# cd ..
 +
# sudo dpkg -i linux-headers*.deb
 +
# sudo dpkg -i linux-image*.deb
 +
</nowiki></pre>
 +
Restart your computer selecting the new kernel named dazuko-kernel.
 +
<pre><nowiki>
 +
# shutdown now -r
 +
</nowiki></pre>
 +
Download DazukoFS from http://dazuko.dnsalias.org/files/dazukofs-3.1.1.tar.gz and navigate to the download directory.
 +
<pre><nowiki>
 +
$ tar -xvf dazuko*
 +
$ cd dazuko*
 +
$ make
 +
$ sudo -s
 +
# /sbin/insmod dazukofs.ko
 +
# cat /proc/filesystems | grep dazukofs
 +
</nowiki></pre>
 +
If you see dazukofs listed, everything worked.
 +
<pre><nowiki>
 +
# make dazukofs_install
 +
</nowiki></pre>
 +
That's it.  DazukoFS is now installed.
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2009年11月17日 (二) 18:51的最新版本


Getting Started

What is Dazuko? A common interface across all platforms is needed for 3rd party file access control. With such an interface, focus could be redirected from OS hacking to solving real problems. The interface is here. It is called Dazuko. http://www.dazuko.com

Dazuko Installation

Old Method

 $ sudo apt-get install build-essential module-assistant 
 $ sudo gedit /etc/modprobe.d/dazuko

Copy and paste the following lines to the document. Then save and exit.

 install dazuko modprobe -r apparmor; \
 modprobe -i dazuko; \
 modprobe -i apparmor; 

Deb Method Now, we will first attempt to install dazuko via the .deb package. (This file was downloaded to my desktop.) Download the package ->http://www.dazuko.org/files/dazuko-source_2.3.3-1_all.deb Open Terminal.

 $ sudo dpkg -i ./Desktop/dazuko-source_2.3.3-1_all.deb
 $ sudo module-assistant prepare
 $ sudo m-a a-i dazuko

For some reasons, this step may not work. Most of the time this is due to the capability module. To go around this move on to the next method. Tar.gz Method If the first method did not work, try the .tar.gz method. (This file was downloaded to my desktop.) Download the following file ->http://www.dazuko.org/files/dazuko-2.3.4.tar.gz Type or copy/paste the following lines into Terminal.

 $ tar -xvf ./Desktop/dazuko-2.3.4.tar.gz
 $ cd dazuko-2.3.4
 $ sudo -s
 # ./configure
 # make
 # sudo make test

If you receive any errors from this step, try this.

 
 # rmmod capability
 # insmod /dazuko.ko
 # modprobe capability
 # sudo make test

You should receive that the module is already installed.

 # cat /proc/modules

You should find dazuko listed.

 # cat /proc/devices

You should find dazuko listed with a number beside it.

 # mknod -m 600 /dev/dazuko c [the number] 0
 # chown root:root /dev/dazuko
 # make install

Dazuko should now be installed.

DazukoFS Method

To install DazukoFS you will need linux kernel 2.6.31.x from http://www.kernel.org. This is currently the only known version that DazukoFS will work with although there may be others. Open Terminal.

 $ uname -r

Remember the output given. You will need to replace [insert] each time you see it with this output.

 $ sudo -s
 # apt-get install build-essential bin86 kernel-package libqt3-headers libqt3-mt-dev wget libncurses5 libncurses5-dev fakeroot
 # cp ~/Desktop/linux*.tar.bz2 /usr/src
 # cd /usr/src
 # tar xvjf linux*.tar.bz2
 # cd linux*
 # cp /boot/config-[insert] .config 
 # make menuconfig

Scroll down with the arrow keys and select Load an Alternate Configuration using Enter. Scroll back up to General Options and hit select it. Scroll down to select Kernel .config support. Press space twice to get the '*' option. Also select the next option. Press space once here to get the '*' option. Press <Esc><Esc> to go back until its asks you to save. Select Yes with Enter.

 # make-kpkg clean
 # fakeroot make-kpkg --initrd --append-to-version=-dazuko-kernel kernel-image kernel-headers

This step will take approximately 1 - 3 hours to complete depending on computer configuration.

 # cd ..
 # sudo dpkg -i linux-headers*.deb
 # sudo dpkg -i linux-image*.deb

Restart your computer selecting the new kernel named dazuko-kernel.

 # shutdown now -r

Download DazukoFS from http://dazuko.dnsalias.org/files/dazukofs-3.1.1.tar.gz and navigate to the download directory.

 $ tar -xvf dazuko*
 $ cd dazuko*
 $ make
 $ sudo -s
 # /sbin/insmod dazukofs.ko
 # cat /proc/filesystems | grep dazukofs

If you see dazukofs listed, everything worked.

 # make dazukofs_install

That's it. DazukoFS is now installed.