DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#51 2009-01-29 19:19:29

Gozmoth
New member
Registered: 2009-01-28
Posts: 4

Re: New and easy installer for Debian

beebock wrote:

ok. I have found a few steps to upgrade

of course this is at your own risk blah blah blah
Anyhow. Follow the steps below and you should be fine (most of these steps have been pilfered from here)

1) modify the etch.list file to show lenny (see Sraet posts) I would launch to the following command first
   cp etc/apt/sources.list.d/etch.list ~/etch.list.bak
  This will give you a backup on the root's home folder
2) launch command
   apt-get update
3) then
   apt-get upgrade
4) then
   apt-get dist-upgrade
5) reboot
6) just to check
   apt-get update
7) then
   apt-get upgrade

that should put your NAS to a nice little lenny distro and up to date.

Any questions, yell.

Fresh install of the tarball linked in the first post.
I have updated my resolv.conf and modify the etch.list by replacing the 'etch' by 'lenny' :

# more etc/apt/sources.list.d/etch.list
deb http://ftp.de.debian.org/debian lenny main contrib non-free
deb-src http://ftp.de.debian.org/debian lenny main contrib non-free

Now I am ending with :

(Reading database ... 9630 files and directories currently installed.)
Preparing to replace coreutils 5.97-5.3 (using .../coreutils_6.10-6_arm.deb) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Unpacking replacement coreutils ...
rm: cannot remove `/var/lib/dpkg/tmp.ci/control': Function not implemented
dpkg: error while cleaning up:
subprocess rm cleanup returned error exit status 1
Setting up coreutils (6.10-6) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

rm: cannot remove `/var/lib/dpkg/tmp.ci/control': Function not implemented
dpkg: error processing /var/cache/apt/archives/diff_2.8.1-12_arm.deb (--unpack):
subprocess rm cleanup returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/diff_2.8.1-12_arm.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


on the apt-get upgrade command.

An apt-get install command will systematically fail. Any idea ?

Last edited by Gozmoth (2009-01-29 19:56:29)

Offline

 

#52 2009-01-29 19:44:22

JediSthlm
Member
Registered: 2009-01-17
Posts: 19

Re: New and easy installer for Debian

@kennedy101: Thanks a lot for answering. I'll keep my eye on the thread and see what where this ends.

Offline

 

#53 2009-01-30 09:31:43

butze
New member
Registered: 2009-01-30
Posts: 2

Re: New and easy installer for Debian

Gozmoth wrote:

Fresh install of the tarball linked in the first post.
I have updated my resolv.conf and modify the etch.list by replacing the 'etch' by 'lenny' :

# more etc/apt/sources.list.d/etch.list
deb http://ftp.de.debian.org/debian lenny main contrib non-free
deb-src http://ftp.de.debian.org/debian lenny main contrib non-free

Now I am ending with :

(Reading database ... 9630 files and directories currently installed.)
Preparing to replace coreutils 5.97-5.3 (using .../coreutils_6.10-6_arm.deb) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Unpacking replacement coreutils ...
rm: cannot remove `/var/lib/dpkg/tmp.ci/control': Function not implemented
dpkg: error while cleaning up:
subprocess rm cleanup returned error exit status 1
Setting up coreutils (6.10-6) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

rm: cannot remove `/var/lib/dpkg/tmp.ci/control': Function not implemented
dpkg: error processing /var/cache/apt/archives/diff_2.8.1-12_arm.deb (--unpack):
subprocess rm cleanup returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/diff_2.8.1-12_arm.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


on the apt-get upgrade command.

An apt-get install command will systematically fail. Any idea ?

I have the same function not implemented error with lenny:

Code:

Do you want to continue? [Y/n/?] 
Writing extended state information... Done
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_US"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Extracting templates from packages: 100%
Preconfiguring packages ...
Can not write log, openpty() failed (/dev/pts not mounted?)
rm: cannot remove `/var/lib/dpkg/tmp.ci/control': Function not implemented
dpkg: error processing /var/cache/apt/archives/debianutils_2.30_arm.deb (--unpack):
 subprocess rm cleanup returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/debianutils_2.30_arm.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Reading package lists... Done             
Building dependency tree        
Reading state information... Done
Reading extended state information       
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done

Last edited by butze (2009-01-30 09:59:17)

Offline

 

#54 2009-01-30 10:35:42

Gozmoth
New member
Registered: 2009-01-28
Posts: 4

Re: New and easy installer for Debian

Offline

 

#55 2009-01-30 12:32:41

butze
New member
Registered: 2009-01-30
Posts: 2

Re: New and easy installer for Debian

i fixed it with: mount -t proc none /mnt/HD_a2/lenny/proc

Offline

 

#56 2009-02-02 13:11:20

atomicguava
New member
Registered: 2009-02-02
Posts: 1

Re: New and easy installer for Debian

Thanks for this, I've wanted to get a proper debian distro running off my 323 for some time, and this seems to fit the bill perfectly. However, I'm having some issues! My DNS-323 runs firmware 1.05 by the way.

I FTP'ed up to my 323 and transferred the fun_plug and linux files over. Previously, I'd been using a very early version of FFP (probably 0.1) which I moved to an 'OLD' folder on the drive. Twonky also used to be installed, but I moved that too as I just wanted Debian to be accessible so I could evalutate other UPnP streaming software.

Anyhoo, after the 323 rebooted, I couldn't telnet or SSH into it. A port scan revealed:

Code:

Port Scanning host: 192.168.1.175

     Open TCP Port:     21             ftp
     Open TCP Port:     80             http
     Open TCP Port:     139            netbios-ssn
     Open TCP Port:     443            https
     Open TCP Port:     445            microsoft-ds
     Open TCP Port:     515            printer

So basically it seems as if the SSH service hasn't started up as described in the first post on this thread.

I wondered what had gone wrong, so I edited the fun_plug and added a dmesg which looks like this:

Code:

Linux version 2.6.12.6-arm1 (jack@SWTEST2) (gcc version 3.3.3) #29 Wed Apr 30 10:03:59 CST 2008
CPU: ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ)
CPU0: D VIVT write-back cache
CPU0: I cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets
CPU0: D cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets
Machine: MV-88fxx81
Using UBoot passing parameters structure
Sys Clk = 166000000, Tclk = 166000000


- Warning - This LSP release was tested only with U-Boot release 1.7.3 

Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 16384
  DMA zone: 16384 pages, LIFO batch:7
  Normal zone: 0 pages, LIFO batch:1
  HighMem zone: 0 pages, LIFO batch:1
Built 1 zonelists
Kernel command line: root=/dev/ram console=ttyS0,115200 :::DB88FXX81:egiga0:none
PID hash table entries: 512 (order: 9, 8192 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB 0MB 0MB 0MB = 64MB total
Memory: 55552KB available (2470K code, 453K data, 112K init)
Calibrating delay loop... 331.77 BogoMIPS (lpj=1658880)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 6197K
NET: Registered protocol family 16

  Marvell Development Board (LSP Version 1.7.6_NAS)-- RD-88F5181-88SX7042-2xSATA 

 Detected Tclk 166000000 and SysClk 166000000 
Marvell USB EHCI Host controller #0: c0e28980
pexBarOverlapDetect: winNum 2 overlap current 0
mvPexInit:Warning :Bar 2 size is illigal
it will be disabled
please check Pex and CPU windows configuration
PCI: bus0: Fast back to back transfers disabled
PCI: bus1: Fast back to back transfers enabled
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
cesadev_init(c0012498)
Fast Floating Point Emulator V0.9 (c) Peter Teichmann.
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Initializing Cryptographic API
Serial: 8250/16550 driver $Revision: 1.1.1.1 $ 4 ports, IRQ sharing disabled
ttyS0 at MMIO 0x0 (irq = 3) is a 16550A
io scheduler noop registered
io scheduler deadline registered
RAMDISK driver initialized: 16 RAM disks of 10240K size 1024 blocksize
loop: loaded (max 8 devices)
Marvell Gigabit Ethernet Driver 'egiga':
  o Ethernet descriptors in DRAM
  o DRAM SW cache-coherency
  o Checksum offload enabled
  o Loading network interface 'egiga0' 
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
scsi2 : Marvell SCSI to SATA adapter
scsi3 : Marvell SCSI to SATA adapter
  Vendor: WDC       Model: WD5000ABYS-01TNA  Rev: 12.0
  Type:   Direct-Access                      ANSI SCSI revision: 03
  Vendor: WDC       Model: WD5000ABYS-01TNA  Rev: 12.0
  Type:   Direct-Access                      ANSI SCSI revision: 03
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 0
Attached scsi generic sg1 at scsi1, channel 0, id 0, lun 0,  type 0
physmap flash device: 800000 at ff800000
phys_mapped_flash: Found 1 x16 devices at 0x0 in 8-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available
RedBoot partition parsing not available
Using physmap partition definition
Creating 5 MTD partitions on "phys_mapped_flash":
0x00000000-0x00010000 : "MTD1"
0x00010000-0x00020000 : "MTD2"
0x00020000-0x001a0000 : "Linux Kernel"
0x001a0000-0x007d0000 : "File System"
0x007d0000-0x00800000 : "u-boot"
ehci_platform ehci_platform.20865: EHCI Host Controller
ehci_platform ehci_platform.20865: new USB bus registered, assigned bus number 1
ehci_platform ehci_platform.20865: irq 17, io mem 0x00000000
ehci_platform ehci_platform.20865: park 0
ehci_platform ehci_platform.20865: USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
mice: PS/2 mouse device common for all mice
md: linear personality registered as nr 1
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27
device-mapper: 4.4.0-ioctl (2005-01-12) initialised: dm-devel@redhat.com
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
NET: Registered protocol family 1
NET: Registered protocol family 17
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
RAMDISK: Compressed image found at block 0
EXT2-fs warning: maximal mount count reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 112K
SCSI device sda: 976773168 512-byte hdwr sectors (500108 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 976773168 512-byte hdwr sectors (500108 MB)
SCSI device sda: drive cache: write back
 sda: sda1 sda2
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sdb: 976773168 512-byte hdwr sectors (500108 MB)
SCSI device sdb: drive cache: write back
SCSI device sdb: 976773168 512-byte hdwr sectors (500108 MB)
SCSI device sdb: drive cache: write back
 sdb: sdb1 sdb2
Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
egiga0: mac address changed
egiga0: link down
Adding 530104k swap on /dev/sda1.  Priority:-1 extents:1
Adding 530104k swap on /dev/sdb1.  Priority:-2 extents:1
egiga0: link up<5>, full duplex<5>, speed 100 Mbps<5>
md: md0 stopped.
md: bind<sdb2>
md: bind<sda2>
raid1: raid set md0 active with 2 out of 2 mirrors
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
md: md0 stopped.
md: unbind<sda2>
md: export_rdev(sda2)
md: unbind<sdb2>
md: export_rdev(sdb2)
md: md1 stopped.
ext3: No journal on filesystem on sda2
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
ext3: No journal on filesystem on sdb2
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
md: md0 stopped.
md: md1 stopped.
md: md0 stopped.
md: bind<sdb2>
md: bind<sda2>
raid1: raid set md0 active with 2 out of 2 mirrors
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended

Sorry for all the pasting, I'm just trying to give as much feedback as I can with my limited knowledge!

FTP'ing back into the 323 reveals that the linux archive was uncompressed, so that bit appeared to work at least.

If anyone has any idea what can be done to get SSH or telnet working again so I can do a bit of apt-get-ing, I'd really appreciate it.

Offline

 

#57 2009-02-03 17:16:42

manuel_t
Member
Registered: 2008-10-19
Posts: 6

Re: New and easy installer for Debian

Sorry, I did not visit this board for several weeks / months.
Actually I thought this thread was dead already.

I will try to catch up things and maybe post an update within the next two weeks.

Offline

 

#58 2009-02-10 09:31:33

manuel_t
Member
Registered: 2008-10-19
Posts: 6

Re: New and easy installer for Debian

Just updated the Wiki by adding the installation instructions for DebNAS.

Offline

 

#59 2009-02-10 21:35:06

JediSthlm
Member
Registered: 2009-01-17
Posts: 19

Re: New and easy installer for Debian

@manuael_T: Hi, thanks. I'll have a go at this as soon as possible. Is this the page your are referring to >> http://dns323.kood.org/howto:chroot_debian

Offline

 

#60 2009-02-11 08:57:33

abubin
Member
Registered: 2007-11-01
Posts: 59

Re: New and easy installer for Debian

would this make all the utility default firmware not working? Like logon webui, configure raid, ftp and so on..

Offline

 

#61 2009-02-12 22:11:46

JediSthlm
Member
Registered: 2009-01-17
Posts: 19

Re: New and easy installer for Debian

@abubin: Yes it works

@manuel_t: You should update the script so both drives are mounted. They are not by default now.

Offline

 

#62 2009-02-17 16:42:18

JediSthlm
Member
Registered: 2009-01-17
Posts: 19

Re: New and easy installer for Debian

@manuel_t: I have a problem with the root account. First there was no problem to log in with the root / 12345678 but now it does not work. Do you have clue what this? I've added some new packages, like sudo. Could this be a problem?

To reset the chrooted debian root password, is there a way?

Offline

 

#63 2009-02-18 00:11:23

spricer
Member
Registered: 2009-02-17
Posts: 5

Re: New and easy installer for Debian

I compiled all info at one place adding my customizations. Everything works great and should go "sticky" or "wiki"

######Simple NAS-323 Hack#######

##########Download manuel_t's Debian Etch package:########### (thanks Manuel)###
http://mesh.dl.sourceforge.net/sourcefo … .5.tar.bz2
Installation of Etch:
1. Ensure you have the newest firmware (1.06).
2. Extract the downloaded archive
3. Copy the two extracted files linux.tar and fun_plug to the root directory of your first DNS-323 volume
4. Reboot the DNS-323
5. The DNS-323 is going to work for several minutes now and finally reboots
6. The DNS-323 automatically boots into Debian and runs the SSH - daemon

You can now log in via SSH, the default root password is 12345678

###########Mount second drive (if you did not used raid 1), fix fun_plug entries, fix errors that df -h command throws:#####
#thanks kennedy101#

1. Edit fun_plug file and add next: 

Code:

# Root DISK2
export DISK2=/mnt/HD_b2
mount --bind $DISK2 $DISTDIR/$DISK2

Manualy create folder in /mnt:
mkdir /mnt/HD_b2

2. The "/" between $DISTDIR and $DISK1 is missing:

Code:

mount --bind $DISK1 $DISTDIR/$DISK1

3. Fix errors showed by df -h:
manually create next folders:
mkdir /mnt/HD_a4
mkdir /mnt/HD_b4
mkdir /sys/crfs

############Upgrade to Lenny:#############

1. Make copy then  edit next file /etc/apt/sources.list.d/etch.list using nano command:
nano /etc/apt/sources.list.d/etch.list
Replace all occurrences of etch with lenny and save the file

2. launch command
apt-get update

3. then
apt-get upgrade

4. then
apt-get -u dist-upgrade

5. reboot

6. just to check
apt-get update

7. then
apt-get upgrade

That should put your NAS to a nice little lenny distro and up to date.

############Install Samba :#############

!!Important Info!!:
Before this modification decide which samba instance you want to use.
You will have to stop original samba instance first by editing next file:
/mnt/HD_a2/linux/boot/linuxrc
add at bottom:

Code:

# Stop samba
/usr/bin/killall smbd nmbd
#Give some time to stop process
sleep 5
# Start samba and read new smb.conf file
/etc/init.d/samba start

After this install do not use settings from web interface because all settings will be "killed" anyway:
USERS / GROUPS, QUOTAS, NETWORK ACCESS
Everything will be handled by your chroted lenny samba

Do not delete HD_xx folders!

Download all files required to satisfy dependency (could be more then this).
Your version is lenny and architecture is ARM.
Download latest version (as of time writing samba_3.2.5-4_arm.deb).
Samba will probably fail to start but you will fix that later.

Check dependencies for samba:
aptitude -D show samba   

Depends: samba-common (= 2:3.2.5-4), logrotate, libacl1 (>= 2.2.11-1),
         libattr1 (>= 2.4.41-1), libc6 (>= 2.7-1), libcomerr2 (>= 1.01),
         libcups2 (>= 1.3.8), libgnutls26 (>= 2.4.0-0), libkrb53 (>=
         1.6.dfsg.2), libldap-2.4-2 (>= 2.4.7), libpam0g (>= 0.99.7.1),
         libpopt0 (>= 1.14), libtalloc1, libwbclient0 (>= 2:3.2.0), zlib1g
         (>= 1:1.1.4), debconf (>= 0.5) | debconf-2.0, libpam-runtime (>=
         0.76-13.1), libpam-modules, lsb-base (>= 3.0-6), procps,
         update-inetd, adduser

cd /tmp
wget http://http.us.debian.org/debian/pool/m … -4_arm.deb
wget http://http.us.debian.org/debian/pool/m … -4_arm.deb
wget http://http.us.debian.org/debian/pool/m … .1_arm.deb
wget http://http.us.debian.org/debian/pool/m … -6_arm.deb
wget http://http.us.debian.org/debian/pool/m … -9_arm.deb
wget http://http.us.debian.org/debian/pool/m … -5_arm.deb
wget http://http.us.debian.org/debian/pool/m … -1_arm.deb
wget http://http.us.debian.org/debian/pool/m … -1_arm.deb
wget http://http.us.debian.org/debian/pool/m … -4_arm.deb


dpkg --install samba-common_3.0.28-2_arm.deb
dpkg --install samba_3.0.28-2_arm.deb
.
.
install rest of the packages...

Samba start fix:
make backup of /etc/samba/smb.conf
mv /etc/samba.conf /etc/samba.conf.bckp

Copy file used by NAS323 firmware to new samba location
cp /mnt/root/etc/samba/smb.conf /etc/samba

Now you can customize samba respecting paths in your file
Restart once again, check access to share etc...
#########################################

Last edited by spricer (2009-02-19 22:17:55)

Offline

 

#64 2009-02-18 09:42:27

JediSthlm
Member
Registered: 2009-01-17
Posts: 19

Re: New and easy installer for Debian

@spricer: Thanks for the nice writeup. This should really go into the wiki! One question about Samba. Why do you need to wget the files. Don't apt-get work? And why install Samba this way, what are the benefits?

Offline

 

#65 2009-02-18 17:12:57

spricer
Member
Registered: 2009-02-17
Posts: 5

Re: New and easy installer for Debian

@spricer: Thanks for the nice writeup. This should really go into the wiki! One question about Samba.

JediSthlm wrote:

Why do you need to wget the files. Don't apt-get work?

Prefference I guess and to be sure that I got latest package they have from http://www.debian.org/distrib/packages

JediSthlm wrote:

And why install Samba this way, what are the benefits?

Well samba has much bigger potential then presented in original flash image (which you can control through web interface).
Enabled this (hacked) way original manual could be used:
http://us1.samba.org/samba/docs/man/Sam … Collection
Otherwise you are stuck what web interface has to offer...

Last edited by spricer (2009-02-18 17:18:03)

Offline

 

#66 2009-02-18 17:25:51

JediSthlm
Member
Registered: 2009-01-17
Posts: 19

Re: New and easy installer for Debian

@spricer: Ok, thanks for the reply

Offline

 

#67 2009-02-18 23:14:39

knuermpf
New member
Registered: 2009-02-18
Posts: 2

Re: New and easy installer for Debian

@spicer: thanks for the writeup, that's just what I was looking for.
Does anyone know how to get apache working? I tried installing it using apt but it didnt work out because the webserver for the webgui was still running. Is there any way to keep the webgui and run apache?

Offline

 

#68 2009-02-19 12:56:58

bluebeer
Member
Registered: 2009-02-08
Posts: 18

Re: New and easy installer for Debian

are there any performance and memory consumption differences between the embedded samba or running it in debian?

Last edited by bluebeer (2009-02-19 12:58:19)

Offline

 

#69 2009-02-19 22:34:01

spricer
Member
Registered: 2009-02-17
Posts: 5

Re: New and easy installer for Debian

bluebeer wrote:

are there any performance and memory consumption differences between the embedded samba or running it in debian?

Logic says no since you are killing one instance and starting another one. (colud be that newer version of samba have different "requirements" but "usually" newer version should bring better performance)
There are couple of things you can check by running first original samba then chroot-ed one (I would check this way):
Try to copy big file to NAS (e.g. 700 MB) and compare results from "top" command (memory, cpu).
Also you could compare times needed for file to be copied...

Last edited by spricer (2009-02-19 22:43:31)

Offline

 

#70 2009-02-19 23:54:21

bluebeer
Member
Registered: 2009-02-08
Posts: 18

Re: New and easy installer for Debian

perhaps i'll give it a try & report.... theory is often too different from the reality smile
btw for me it *feels* like the debian services are runnin faster as in fonz fun_plug - but i never tried to proved it wink
too busy atm

anyway i like debian & can't be impartial without any tests big_smile

Last edited by bluebeer (2009-02-20 00:02:57)

Offline

 

#71 2009-02-20 10:18:26

spricer
Member
Registered: 2009-02-17
Posts: 5

Re: New and easy installer for Debian

knuermpf wrote:

@spicer: thanks for the writeup, that's just what I was looking for.
Does anyone know how to get apache working? I tried installing it using apt but it didnt work out because the webserver for the webgui was still running. Is there any way to keep the webgui and run apache?

Hmm...to my knowledge I do not think you can use two applications that will use same port at same IP address.
I see here  couple of solutions:
-configure apache to listen on different port e.g 8080

-create vitual IP address and bind apache to new ip address then you can keep port 80
http://www.debianhelp.co.uk/network.htm (Setting up Second IP address or Virtual IP address in Debian)

-move "goahead" server port e.g. 81
http://dns323.kood.org/howto:ffp#lighttpd_web_server (plenty of useful info )

Question here is how much resource will apache "eat" since hardware is very "light" and apache is robust web server.
Goahead has unbelievable memory print of 60K:
http://goahead.com/products/webserver/default.aspx
Maybe you can consider lighthttpd:
http://www.lighttpd.net/

Offline

 

#72 2009-02-20 14:03:17

bluebeer
Member
Registered: 2009-02-08
Posts: 18

Re: New and easy installer for Debian

I installed samba and configured it (took it from the embedded) - on windows clients mouting is no problem but with macs i get a error -6602

Code:

[ global ]
#interfaces = egiga0
unix charset = UTF8
workgroup = WORKGROUP
netbios name = DNS323
server string = DNS323
#hosts allow =
#hosts deny =
security = SHARE
encrypt passwords = yes
max log size = 1000
socket options = TCP_NODELAY SO_RCVBUF=65536 SO_SNDBUF=65536
max xmit = 65535
create mask = 0777
directory mask  = 0777
force create mode = 0777
force directory mode = 0777
load printers = No
use sendfile = yes

[NASStorage]
comment = NAS-Storage
path = /mnt/HD_a2/hdstorage
valid users = USERNAME
read only = no
guest ok = no
oplocks = yes
map archive = yes

any hints?

Offline

 

#73 2009-02-20 17:29:08

spricer
Member
Registered: 2009-02-17
Posts: 5

Re: New and easy installer for Debian

bluebeer I think you should start new topic regarding your question, otherwise people not interested in this one will never see your question...
Check here:
http://spiralbound.net/2008/03/14/when- … tions-fail

Last edited by spricer (2009-02-20 17:29:43)

Offline

 

#74 2009-02-20 20:40:26

knuermpf
New member
Registered: 2009-02-18
Posts: 2

Re: New and easy installer for Debian

@spicer thanx, I think I'll try the virtual ip address. I'll report if there is a problem concerning resources.

Offline

 

#75 2009-03-02 22:22:18

krull
Member
Registered: 2008-10-27
Posts: 10
Website

Re: New and easy installer for Debian

Hi all,

Can't seem to get this chroot working with my DNS-343... chroot says Illegal instruction even when stepping the cmds from fun_plug one by one.

Can anyone confirm that they got this Debian working on a 343? I successfully installed this chroot Debian on a DNS-323, and wanted to try the same thing on my 343... sigh...

Guess I'll try Gentoo! big_smile

Cheers!

- KrulL

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB