个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
 
第7行: 第7行:
 
== Dazuko Installation ==
 
== Dazuko Installation ==
 
=== Old Method ===
 
=== Old Method ===
$ sudo apt-get install build-essential module-assistant  
+
<pre><nowiki>
$ sudo gedit /etc/modprobe.d/dazuko
+
$ sudo apt-get install build-essential module-assistant  
 +
$ sudo gedit /etc/modprobe.d/dazuko
 +
</nowiki></pre>
 
Copy and paste the following lines to the document. Then save and exit.
 
Copy and paste the following lines to the document. Then save and exit.
install dazuko modprobe -r apparmor;\
+
<pre><nowiki>
modprobe -i dazuko; \
+
install dazuko modprobe -r apparmor; \
modprobe -i apparmor  
+
modprobe -i dazuko; \
''Deb Method''   
+
modprobe -i apparmor;
 +
</nowiki></pre>
 +
'''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.
$ sudo dpkg -i ./Desktop/dazuko-source_2.3.3-1_all.deb
+
<pre><nowiki>
$ sudo module-assistant prepare
+
$ sudo dpkg -i ./Desktop/dazuko-source_2.3.3-1_all.deb
$ sudo m-a a-i dazuko
+
$ sudo module-assistant prepare
 +
$ sudo m-a a-i dazuko
 +
</nowiki></pre>
 
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.
 
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''
+
'''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.
$ tar -xvf ./Desktop/dazuko-2.3.4.tar.gz
+
<pre><nowiki>
$ cd dazuko-2.3.4
+
$ tar -xvf ./Desktop/dazuko-2.3.4.tar.gz
$ sudo -s
+
$ cd dazuko-2.3.4
# ./configure
+
$ sudo -s
# make
+
# ./configure
# sudo make test
+
# make
 +
# sudo make test
 +
</nowiki></pre>
 
If you receive any errors from this step, try this.
 
If you receive any errors from this step, try this.
# rmmod capability
+
<pre><nowiki>
# insmod /dazuko.ko
+
# rmmod capability
# modprobe capability
+
# insmod /dazuko.ko
# sudo make test
+
# modprobe capability
 +
# sudo make test
 +
</nowiki></pre>
 
You should receive that the module is already installed.
 
You should receive that the module is already installed.
# cat /proc/modules
+
<pre><nowiki>
 +
# cat /proc/modules
 +
</nowiki></pre>
 
You should find dazuko listed.
 
You should find dazuko listed.
# cat /proc/devices
+
<pre><nowiki>
 +
# 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.
# mknod -m 600 /dev/dazuko c [the number] 0
+
<pre><nowiki>
# chown root:root /dev/dazuko
+
# mknod -m 600 /dev/dazuko c [the number] 0
# make install
+
# chown root:root /dev/dazuko
 +
# make install
 +
</nowiki></pre>
 
Dazuko should now be installed.  
 
Dazuko should now be installed.  
=== Hardy Heron Method ===
+
=== DazukoFS Method ===
Dazuko installation is much more complicated and time consuming than on previous editions of linux, but this guide will attempt to guide you through the entire process.
+
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.
First, you will need a "vanilla" kernel from http://www.kernel.org. (a kernel that is unmodified. kernels downloaded from the update manager are premodified for you.)  Don't worry if you don't understand what this means.
+
Open Terminal.
I recommend this one->http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.25.tar.bz2 Save it to your desktop.
+
<pre><nowiki>
Ok, open up a terminal and let the fun begin.
+
$ uname -r
$ uname -r
+
</nowiki></pre>
Please remember this number and replace uname -r with it each time it is mentioned in the guide.
+
Remember the output given.  You will need to replace [insert] each time you see it with this output.
$ sudo -s
+
<pre><nowiki>
# apt-get install build-essential bin86 kernel-package libqt3-headers libqt3-mt-dev wget libncurses5 libncurses5-dev fakeroot
+
$ sudo -s
# cp ~/Desktop/linux*.tar.bz2 /usr/src
+
# apt-get install build-essential bin86 kernel-package libqt3-headers libqt3-mt-dev wget libncurses5 libncurses5-dev fakeroot
# cd /usr/src
+
# cp ~/Desktop/linux*.tar.bz2 /usr/src
# tar xjvf linux*.tar.bz2
+
# cd /usr/src
# cd linux-2.6.25
+
# tar xvjf linux*.tar.bz2
# cp /boot/config-`uname -r` .config
+
# cd linux*
# make menuconfig
+
# cp /boot/config-[insert] .config  
Ok, hit enter and scroll down with the arrow keys until you see Kernel .config support and hit space twice. Go down once more and hit space once. Hit Esc four times and then enter.
+
# make menuconfig
# make-kpkg clean  
+
</nowiki></pre>
# fakeroot make-kpkg --initrd --append-to-version=-name-your-kernel kernel-image kernel-headers
+
Scroll down with the arrow keys and select Load an Alternate Configuration using Enter.
Several hours later.... 
+
Scroll back up to General Options and hit select it.
# cd /usr/src
+
Scroll down to select Kernel .config support.  Press space twice to get the '*' option.
# sudo dpkg -i linux-headers*2.6.25*.tar.bz2
+
Also select the next option. Press space once here to get the '*' option.
# sudo dpkg -i linux-image*2.6.25*.tar.bz2
+
Press <Esc><Esc> to go back until its asks you to save.  Select Yes with Enter.
Now reboot your computer and select your new kernel from the grub menu.
+
<pre><nowiki>
$ sudo -s
+
# make-kpkg clean
# cd /usr/src
+
# fakeroot make-kpkg --initrd --append-to-version=-dazuko-kernel kernel-image kernel-headers
# rm linux-headers*2.6.25*.tar.bz2
+
</nowiki></pre>
# rm linux-image*2.6.25*.tar.bz2
+
This step will take approximately 1 - 3 hours to complete depending on computer configuration.
Now download->http://dazuko.dnsalias.org/files/patch-dazuko-linux-2.6.25.diff.gz and save the file to your desktop.
+
<pre><nowiki>
# cd linux-2.6.25
+
# cd ..
# zcat /proc/config.gz > .config
+
# sudo dpkg -i linux-headers*.deb
# zcat ~/Desktop/patch*.diff.gz | patch -p1
+
# sudo dpkg -i linux-image*.deb
You should receive no errors!!!!!
+
</nowiki></pre>
# make menuconfig
+
Restart your computer selecting the new kernel named dazuko-kernel.
Scroll down to security options and select enter. Go to the bottom of the list and hit space. Go down one and hit space. Hit Esc four times and enter once.
+
<pre><nowiki>
# make-kpkg clean
+
# shutdown now -r
# fakeroot make-kpkg --initrd --append-to-version=-name-your-kernel kernel-image kernel-headers
+
</nowiki></pre>
Several hours later....
+
Download DazukoFS from http://dazuko.dnsalias.org/files/dazukofs-3.1.1.tar.gz and navigate to the download directory.
# cd /usr/src
+
<pre><nowiki>
# sudo dpkg -i linux-headers*2.6.25*.tar.bz2
+
$ tar -xvf dazuko*
# sudo dpkg -i linux-image*2.6.25*.tar.bz2
+
$ cd dazuko*
Now reboot your computer and select your new kernel from the grub menu.
+
$ make
Dazuko should now be installed.  See told you it would be fun.
+
$ sudo -s
Due to specific computers requirements, it may be necessary for you to now compile custom restricted modules for your new kernel. Please see here->https://help.ubuntu.com/community/CustomRestrictedModules (Edit:Unfortunately, there is no current way for anyone to develop custom restricted moduelesFor anyone trying this method, do not delete your old kernel if you need to use your system with graphics and sound.)
+
# /sbin/insmod dazukofs.ko
All information is compiled from various sources. Install methods taken from http://www.dazuko.org FAQ.  Kernel compilation methods are arranged from various sources throughout the Ubuntu Community Documentation page. 
+
# 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.