Linux en audio devices / NDAS schijf installeren

Pagina: 1
Acties:

  • macdoggie
  • Registratie: Oktober 2009
  • Laatst online: 30-11-2022
Hoi,

Ik ben sinds kort een Ubuntu gebruiker en heb er nog niet erg veel verstand van, dus wellicht dat iemand hier me wat op weg kan helpen. Er zijn twee dingen waar ik momenteel even mee zit dus als je het antwoord hebt hoor ik het graag...

1> Ik heb twee geluidskaarten in mijn PC eentje onboard die ik eigenlijk niet gebruik, en een XFi-extreme Audio kaart. Nu heb ik in het menu syste/preferences/sound op alle onderdelen mijn XFi kaart geselecteerd, en voor de movieplayer enzo werkt dat ook wel, maar als ik Firefox start en filmpjes via de flashplugin kijk (b.v. Youtube, dan gaat het geluid nog steeds via die onboard kaart. Ik kan in de instellingen van Firefox ook zo een twee drie niet iets vinden waar ik dat zou kunnen instellen. Weet iemand misschien hoe ik dat geluid ook naar de XFi kaart kan sturen...?

2> Ik heb een Dane-elec externe harde schijf gekocht met een soort van mediacentertje erin zodat ik via de TV mijn series kan kijken. Nu is dat geen normale NAS schijf, maar een NDAS schijf. Allemaal heel leuk onder windows, maar onder linux krijg ik het dus niet voor elkaar om een NDAS client te installeren. Ik heb op internet lopen zoeken, en heb deze gedownload: http://code.ximeta.com/trac-ndas/wiki/HowToBuildDEB

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
sudo apt-get install dpkg-dev debhelper gcc bzip2 fakeroot module-assistant libc6-dev build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
dpkg-dev is already the newest version.
debhelper is already the newest version.
gcc is already the newest version.
bzip2 is already the newest version.
fakeroot is already the newest version.
module-assistant is already the newest version.
libc6-dev is already the newest version.
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


code:
1
2
3
4
5
6
7
sudo apt-get install linux-headers-`uname -r`Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers-2.6.27-7-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package linux-headers-2.6.27-7-generic has no installation candidate


Hier ging het dus al enigzins mis... En als ik dan toch stug verder ga met de rest van de acties...

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
dpkg-buildpackage -rfakeroot
dpkg-buildpackage: set CFLAGS to default value: -g -O2                     
dpkg-buildpackage: set CPPFLAGS to default value:                          
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions  
dpkg-buildpackage: set FFLAGS to default value: -g -O2                     
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2                   
dpkg-buildpackage: source package ndas                                     
dpkg-buildpackage: source version 1.1-24                                   
dpkg-buildpackage: source changed by Ilgu Hong <ighong@ximeta.com>         
dpkg-buildpackage: host architecture i386                                  
 fakeroot debian/rules clean                                               
dh_testdir                                                                 
#dh_testroot                                                               
rm -f build-arch-stamp build-indep-stamp configure-stamp                   
# Add here commands to clean up after the build process.                   
/usr/bin/make clean                                                        
make[1]: Entering directory `/home/rogier/downloads/ndas-1.1-24'           
rm -f /home/rogier/downloads/ndas-1.1-24/ipkg/ndas-kernel/CONTROL/conffiles
rm -f /home/rogier/downloads/ndas-1.1-24/ipkg/ndas-kernel/CONTROL/control  
rm -fd /home/rogier/downloads/ndas-1.1-24/ipkg/ndas-kernel/CONTROL         
rm -fd /home/rogier/downloads/ndas-1.1-24/ipkg/ndas-kernel                 
rm -f /home/rogier/downloads/ndas-1.1-24/ipkg/ndas-admin/CONTROL/conffiles 
rm -f /home/rogier/downloads/ndas-1.1-24/ipkg/ndas-admin/CONTROL/control   
rm -fd /home/rogier/downloads/ndas-1.1-24/ipkg/ndas-admin/CONTROL          
rm -fd /home/rogier/downloads/ndas-1.1-24/ipkg/ndas-admin                  
rm -rf /home/rogier/downloads/ndas-1.1-24/ndasadmin /home/rogier/downloads/ndas-1.1-24/admin/ndasadmin.o /home/rogier/downloads/ndas-1.1-24/ndas_sal.ko /home/rogier/downloads/ndas-1.1-24/ndas_core.ko /home/rogier/downloads/ndas-1.1-24/ndas_block.ko /home/rogier/downloads/ndas-1.1-24/ndas_scsi.ko /home/rogier/downloads/ndas-1.1-24/ndas_emu.ko /home/rogier/downloads/ndas-1.1-24/nd.ko sal/debug.o sal/io.o sal/libc.o sal/mem.o sal/net.o sal/sal.o sal/sync.o sal/thread.o sal/time.o block/block24.o block/block26.o block/ctrldev.o block/ops.o block/procfs.o scsi/ctrldev.o scsi/ndas_scsi.o scsi/procfs.o /home/rogier/downloads/ndas-1.1-24/ndas.o                                                                            
find . \( -name 'ndas_*.o' -o -name '*.ko' -o -name '.*.cmd' -o -name '.*.d' -o -name '*.mod.c' -o -name '*.mod.o' -o -name '*.symvers' \) -type f -print | xargs rm -f                                                                         
rm -rf '.tmp_versions'                                                          
rm -rf '.kernel.mk'                                                             
make[1]: Leaving directory `/home/rogier/downloads/ndas-1.1-24'                 
dh_clean                                                                        
 dpkg-source -b ndas-1.1-24                                                     
dpkg-source: info: using source format `1.0'                                    
dpkg-source: warning: source directory 'ndas-1.1-24' is not <sourcepackage>-<upstreamversion> 'ndas-1.1'                                                        
dpkg-source: info: building ndas in ndas_1.1-24.tar.gz                          
dpkg-source: info: building ndas in ndas_1.1-24.dsc                             
 debian/rules build                                                             
dh_testdir                                                                      
# Add here commands to configure the package.                                   
touch configure-stamp                                                           
dh_testdir                                                                      
# Add here command to compile/build the package.                                
/usr/bin/make ndas-admin                                                        
make[1]: Entering directory `/home/rogier/downloads/ndas-1.1-24'                
gcc -DLINUX -I/home/rogier/downloads/ndas-1.1-24/inc -D_X86   -c -o /home/rogier/downloads/ndas-1.1-24/admin/ndasadmin.o /home/rogier/downloads/ndas-1.1-24/admin/ndasadmin.c                                                                   
gcc -DLINUX -I/home/rogier/downloads/ndas-1.1-24/inc -D_X86   -o /home/rogier/downloads/ndas-1.1-24/ndasadmin /home/rogier/downloads/ndas-1.1-24/admin/ndasadmin.o                                                                              
make[1]: Leaving directory `/home/rogier/downloads/ndas-1.1-24'                 
touch build-arch-stamp                                                          
dh_testdir                                                                      
# Add here command to compile/build the arch indep package.                     
# It's ok not to do anything here, if you don't need to build                   
#  anything for this package.                                                   
#docbook-to-man debian/ndas.sgml > ndas.1                                       
touch build-indep-stamp                                                         
 fakeroot debian/rules binary                                                   
# If libndas does not exist, create one removing license aggrement.             
if [ -f libndas.a.sfx ]; then \                                                 
                tail -n +119 libndas.a.sfx > libndas.a; \                       
        fi                                                                      
dh_testdir                                                                      
dh_testroot                                                                     
dh_clean -k                                                                     
dh_installdirs                                                                  
dh_installdirs usr/share/ndas                                                   
# Create the directories to install the source into                             
dh_installdirs -pndas-modules-src  usr/src/modules/ndas/debian                  
# Copy only the driver source to the proper location                            
cp -r block debian/ndas-modules-src/usr/src/modules/ndas                        
cp -r scsi debian/ndas-modules-src/usr/src/modules/ndas                         
cp -r sal debian/ndas-modules-src/usr/src/modules/ndas                          
cp -r inc debian/ndas-modules-src/usr/src/modules/ndas                          
cp -r admin debian/ndas-modules-src/usr/src/modules/ndas                        
cp -r ipkg debian/ndas-modules-src/usr/src/modules/ndas
cp *.c debian/ndas-modules-src/usr/src/modules/ndas
cp Makefile debian/ndas-modules-src/usr/src/modules/ndas
cp *.mk debian/ndas-modules-src/usr/src/modules/ndas
cp libndas.a debian/ndas-modules-src/usr/src/modules/ndas
# Copy the needed debian/ pieces to the proper location
cp debian/*modules.in* \
                debian/ndas-modules-src/usr/src/modules/ndas/debian
cp debian/*_KVERS_* debian/rules debian/changelog debian/copyright \
                debian/compat debian/ndas-modules-src/usr/src/modules/ndas/debian/
cd debian/ndas-modules-src/usr/src && tar c modules | bzip2 -9 > ndas.tar.bz2 && rm -rf modules
# Add here commands to install the package into debian/ndas
dh_install ndasadmin usr/sbin
dh_install ndas usr/share/ndas
dh_install mknod.sh usr/share/ndas
dh_testdir -i
dh_testroot -i
dh_installchangelogs  -i
dh_installdocs -i
dh_link -i
dh_compress -i
dh_fixperms -i
dh_installdeb -i
dh_installdeb -i
dh_shlibdeps -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
dpkg-deb: building package `ndas-modules-src' in `../ndas-modules-src_1.1-24_all.deb'.
dh_testdir -s
dh_testroot -s
dh_installdocs -s
dh_installinit -s --init-script=ndas
dh_installchangelogs  -s
dh_link -s
dh_compress -s
dh_fixperms -s
dh_installdeb -s
dh_shlibdeps -s
dh_gencontrol -s
dh_md5sums -s
dh_builddeb -s
dpkg-deb: building package `ndasadmin' in `../ndasadmin_1.1-24_i386.deb'.
 signfile ndas_1.1-24.dsc
gpg: skipped "Ilgu Hong <ighong@ximeta.com>": secret key not available
gpg: [stdin]: clearsign failed: secret key not available

 dpkg-genchanges  >../ndas_1.1-24_i386.changes
dpkg-genchanges: including full source code in upload
dpkg-buildpackage: full upload; Debian-native package (full source is included)
dpkg-buildpackage: warning: Failed to sign .dsc and .changes file


Whatever dsc files ook mogen zijn...

code:
1
2
3
4
5
ls -l ndas*.deb
-rw-r--r-- 1 rogier rogier  21982 2009-10-23 21:25 ndasadmin_1.1-24_i386.deb
-rw-r--r-- 1 rogier rogier  22048 2009-07-12 14:49 ndasadmin_1.1-24_Ubuntu8.04-i386.deb
-rw-r--r-- 1 rogier rogier 194748 2009-10-23 21:25 ndas-modules-src_1.1-24_all.deb
-rw-r--r-- 1 rogier rogier 194920 2009-07-12 14:48 ndas-modules-src_1.1-24_Ubuntu8.04-all.deb


De packages staat er dus wel...

code:
1
2
3
4
5
sudo dpkg -i ndas-modules-src_1.1-24_all.deb
(Reading database ... 143250 files and directories currently installed.)
Preparing to replace ndas-modules-src 1.1-24 (using ndas-modules-src_1.1-24_all.deb) ...
Unpacking replacement ndas-modules-src ...
Setting up ndas-modules-src (1.1-24) ...


code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
sudo m-a prepare
Getting source for kernel version: 2.6.27-7-generic
apt-get install linux-headers-2.6.27-7-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers-2.6.27-7-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package linux-headers-2.6.27-7-generic has no installation candidate
apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Done!


code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
sudo m-a auto-install ndas

Updated infos about 1 packages
Getting source for kernel version: 2.6.27-7-generic
apt-get install linux-headers-2.6.27-7-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers-2.6.27-7-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package linux-headers-2.6.27-7-generic has no installation candidate
apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Done!

er verschijnt een blauw scherm met de volgende melding:

Bad luck, the kernel headers for the target kernel version could not be found and you did not specify other valid kernel headers to use.

als ik vervolgens op escape druk staate r:
If the running kernel has been shipped with the Debian distribution, please install the package linux-headers-2.6.27-7-generic. If your kernel source tree (or headers) is located in some non-usual location, please set the KERNELDIRS environment variable to the path of this directory, or (alternatively) specify the source directory we build for with the --kernel-dir option in module-assistant calls.

Package ndas-modules-src was not built successfully, see /var/cache/modass/ndas-modules-src*buildlog* for details!

code:
1
2
3
4
5
6
7
8
9
10
11
sudo dpkg -i ndasadmin_1.1-24_Ubuntu8.04-i386.deb
Selecting previously deselected package ndasadmin.
(Reading database ... 143250 files and directories currently installed.)
Unpacking ndasadmin (from ndasadmin_1.1-24_Ubuntu8.04-i386.deb) ...
dpkg: dependency problems prevent configuration of ndasadmin:
 ndasadmin depends on ndas-modules; however:
  Package ndas-modules is not installed.
dpkg: error processing ndasadmin (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 ndasadmin


Ik heb ook nog dit geprobeerd:
code:
1
export NDAS_KERNEL_PATH=/usr/src/linux-headers-2.6.28-16-generic/

en daarna nogmaals sudo m-a auto-install ndas maar zonder het gewenste resultaat...

Hopelijk kan ieman dme hiermee verder helpen...

groeten,

mac

  • DutchNutcase
  • Registratie: Augustus 2005
  • Niet online

DutchNutcase

E = mc^2

Misschien is het als eerste een goed idee om je kernel te gaan updaten. Dit kun je gewoon vanuit aptitude of synaptic doen. Ik draai nu kernel 2.6.28.15 (Ubuntu) en daarvoor zijn de kernel headers gewoon via aptitude en synaptic te installeren. Ik moet nu overigens zelf ook upgraden naar 2.6.28.16, maar ben nu in Belgie en ik ben niet van plan iemands datalimiet wat op te rekken.

Als je de kernel headers hebt geinstalleerd kun je de rest van het stappenplan alsnog proberen uit te voeren. Waarschijnlijk werkt het dan wel, omdat hetgeen je wil doen afhankelijk is van de kernel headers.

Succes!

Luctor et Emergo || specs


  • JeanLeGrand
  • Registratie: April 2002
  • Laatst online: 31-07-2024
Een simpele tip: Als je de onboard soundchip niet gebruikt, schakel 'm dan gewoon in de BIOS Setup uit.

Denon AVR-X3600H


  • macdoggie
  • Registratie: Oktober 2009
  • Laatst online: 30-11-2022
Ik had juist net alle updates geïnstalleerd waar linux zelf mee aan was gekomen, zelfs een hele nieuwe distributie 9. nogwat terwijl ik eerst op 8. nogwat zat...

Ik weet ook niet hoe ik die headers zou moeten upgraden... ik heb het geprobeerd met aptitude -safe-update maar dan zegt hij dat er 0 packages geudate zijn:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
sudo aptitude safe-upgrade
[sudo] password for rogier:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Initializing package states... Done
Writing extended state information... Done
The following packages will be upgraded:
  tzdata tzdata-java
2 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 835kB of archives. After unpacking 0B will be used.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
Get:1 http://nl.archive.ubuntu.com jaunty-updates/main tzdata-java 2009o+repack-0ubuntu0.9.04.2 [142kB]
Get:2 http://nl.archive.ubuntu.com jaunty-updates/main tzdata 2009o+repack-0ubuntu0.9.04.2 [693kB]
Fetched 835kB in 2s (281kB/s)
Preconfiguring packages ...
(Reading database ... 146638 files and directories currently installed.)
Preparing to replace tzdata-java 2009o+repack-0ubuntu0.9.04 (using .../tzdata-java_2009o+repack-0ubuntu0.9.04.2_all.deb) ...
Unpacking replacement tzdata-java ...
Preparing to replace tzdata 2009o+repack-0ubuntu0.9.04 (using .../tzdata_2009o+repack-0ubuntu0.9.04.2_all.deb) ...
Unpacking replacement tzdata ...
Setting up tzdata (2009o+repack-0ubuntu0.9.04.2) ...

Current default timezone: 'Europe/Amsterdam'
Local time is now:      Sun Oct 25 14:20:48 CET 2009.
Universal Time is now:  Sun Oct 25 13:20:48 UTC 2009.
Run 'dpkg-reconfigure tzdata' if you wish to change it.


Setting up tzdata-java (2009o+repack-0ubuntu0.9.04.2) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done

Current status: 0 updates [-2].


Ik heb overigens ook al 2.6.28.16
code:
1
2
3
4
5
ls /usr/src/
linux                            linux-OLDVERSION.1247401143  linux-OLDVERSION.1247402385  modules
linux-headers-2.6.28-16          linux-OLDVERSION.1247401633  linux-OLDVERSION.1247402620  ndas.tar.bz2
linux-headers-2.6.28-16-generic  linux-OLDVERSION.1247401648  linux-OLDVERSION.1247402809
linux-OLDVERSION.1247400489      linux-OLDVERSION.1247401769  linux-OLDVERSION.1247402911

[ Voor 10% gewijzigd door macdoggie op 25-10-2009 14:27 ]


  • FireDrunk
  • Registratie: November 2002
  • Laatst online: 17:03
Probeer eens:
code:
1
 sudo apt-get dist-upgrade


Misschien dat het builden daarna wel lukt.
Let op dat je nieuwe headers download nadat je je kernel geupgrade hebt.

Even niets...