个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
第5行: 第5行:
 
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
This page is to help those that are having trouble installing dazuko on Linux.
+
== Dazuko Installation ==
To begin, you MUST have build-essential and module-assistant installed.
+
=== Old Method ===
$ sudo apt-get install build-essential module-assistant
+
$ sudo apt-get install build-essential module-assistant  
=== Disable [[UbuntuHelp:AppArmor|AppArmor]] ===
+
$ sudo gedit /etc/modprobe.d/dazuko
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:
+
Copy and paste the following lines to the document. Then save and exit.
$ sudo gedit /etc/modprobe.d/dazuko
+
Copy and paste the following lines to the document. Then save and exit.
+
 
install dazuko modprobe -r apparmor;\
 
install dazuko modprobe -r apparmor;\
 
modprobe -i dazuko; \
 
modprobe -i dazuko; \
modprobe -i apparmor
+
modprobe -i apparmor  
=== Installation Methods ===
+
''Deb Method'' 
===== 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
 
$ 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
 
$ 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.
+
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
 
$ tar -xvf ./Desktop/dazuko-2.3.4.tar.gz
 
$ cd dazuko-2.3.4
 
$ cd dazuko-2.3.4
$ su
+
$ sudo -s
 
# ./configure
 
# ./configure
 
# make
 
# make
第47行: 第44行:
 
# chown root:root /dev/dazuko
 
# chown root:root /dev/dazuko
 
# make install
 
# make install
Dazuko should now be installed.
+
Dazuko should now be installed.  
Source: http://www.dazuko.com
+
=== Hardy Heron 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.
 +
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.
 +
I recommend this one->http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.25.tar.bz2  Save it to your desktop.
 +
Ok, open up a terminal and let the fun begin.
 +
$ uname -r
 +
Please remember this number and replace uname -r with it each time it is mentioned in the guide.
 +
$ 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 xjvf linux*.tar.bz2
 +
# cd linux-2.6.25
 +
# cp /boot/config-`uname -r` .config
 +
# make menuconfig
 +
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-kpkg clean
 +
# fakeroot make-kpkg --initrd --append-to-version=-name-your-kernel kernel-image kernel-headers
 +
Several hours later.... 
 +
# cd /usr/src
 +
# sudo dpkg -i linux-headers*2.6.25*.tar.bz2
 +
# sudo dpkg -i linux-image*2.6.25*.tar.bz2
 +
Now reboot your computer and select your new kernel from the grub menu.
 +
$ sudo -s
 +
# cd /usr/src
 +
# rm linux-headers*2.6.25*.tar.bz2
 +
# rm linux-image*2.6.25*.tar.bz2
 +
Now download->http://dazuko.dnsalias.org/files/patch-dazuko-linux-2.6.25.diff.gz and save the file to your desktop.
 +
# cd linux-2.6.25
 +
# zcat /proc/config.gz > .config
 +
# zcat ~/Desktop/patch*.diff.gz | patch -p1
 +
You should receive no errors!!!!!
 +
# make menuconfig
 +
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.
 +
# make-kpkg clean
 +
# fakeroot make-kpkg --initrd --append-to-version=-name-your-kernel kernel-image kernel-headers
 +
Several hours later....
 +
# cd /usr/src
 +
# sudo dpkg -i linux-headers*2.6.25*.tar.bz2
 +
# sudo dpkg -i linux-image*2.6.25*.tar.bz2
 +
Now reboot your computer and select your new kernel from the grub menu.
 +
Dazuko should now be installed.  See told you it would be fun.
 +
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 modueles.  For anyone trying this method, do not delete your old kernel if you need to use your system with graphics and sound.)
 +
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. 
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2008年10月19日 (日) 04:43的版本


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

  1. ./configure
  2. make
  3. sudo make test

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

  1. rmmod capability
  2. insmod /dazuko.ko
  3. modprobe capability
  4. sudo make test

You should receive that the module is already installed.

  1. cat /proc/modules

You should find dazuko listed.

  1. cat /proc/devices

You should find dazuko listed with a number beside it.

  1. mknod -m 600 /dev/dazuko c [the number] 0
  2. chown root:root /dev/dazuko
  3. make install

Dazuko should now be installed.

Hardy Heron 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. 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. I recommend this one->http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.25.tar.bz2 Save it to your desktop. Ok, open up a terminal and let the fun begin. $ uname -r Please remember this number and replace uname -r with it each time it is mentioned in the guide. $ sudo -s

  1. apt-get install build-essential bin86 kernel-package libqt3-headers libqt3-mt-dev wget libncurses5 libncurses5-dev fakeroot
  2. cp ~/Desktop/linux*.tar.bz2 /usr/src
  3. cd /usr/src
  4. tar xjvf linux*.tar.bz2
  5. cd linux-2.6.25
  6. cp /boot/config-`uname -r` .config
  7. make menuconfig

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.

  1. make-kpkg clean
  2. fakeroot make-kpkg --initrd --append-to-version=-name-your-kernel kernel-image kernel-headers

Several hours later....

  1. cd /usr/src
  2. sudo dpkg -i linux-headers*2.6.25*.tar.bz2
  3. sudo dpkg -i linux-image*2.6.25*.tar.bz2

Now reboot your computer and select your new kernel from the grub menu. $ sudo -s

  1. cd /usr/src
  2. rm linux-headers*2.6.25*.tar.bz2
  3. rm linux-image*2.6.25*.tar.bz2

Now download->http://dazuko.dnsalias.org/files/patch-dazuko-linux-2.6.25.diff.gz and save the file to your desktop.

  1. cd linux-2.6.25
  2. zcat /proc/config.gz > .config
  3. zcat ~/Desktop/patch*.diff.gz | patch -p1

You should receive no errors!!!!!

  1. make menuconfig

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.

  1. make-kpkg clean
  2. fakeroot make-kpkg --initrd --append-to-version=-name-your-kernel kernel-image kernel-headers

Several hours later....

  1. cd /usr/src
  2. sudo dpkg -i linux-headers*2.6.25*.tar.bz2
  3. sudo dpkg -i linux-image*2.6.25*.tar.bz2

Now reboot your computer and select your new kernel from the grub menu. Dazuko should now be installed. See told you it would be fun. 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 modueles. For anyone trying this method, do not delete your old kernel if you need to use your system with graphics and sound.) 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.