OpenWrt Forum Archive

Topic: fun_plug with DSM-G600

The content of this topic has been archived on 15 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I just picked up a DSM-G600 from Circuit City for $99 and 300GB/16MB harddrive from CompUSA for about $79 after rebates.  Not bad for under $200.  I managed to get fun_plug working.

Vim put it DOS format by default on Windows so the script wasn't working... later I :set fileformat=unix and saved it then things started working.

Here's what I have:

#!/bin/sh

echo "fun_plug executed at `date`" >> /mnt/HD_a2/fun_plug.log


# busybox was posted here http://kwzs.be/busybox by Kevin (thanks)
# I wanted to see what's enabled for busybox
/mnt/HD_a2/busybox --help > /mnt/HD_a2/busybox.log 2>&1 &


# Neither one of these two lines work for me, does anyone know why?
#/mnt/HD_a2/busybox nc -l -p 10023 -e /bin/sh &
/mnt/HD_a2/busybox telnetd -p 23 -l /bin/sh -f /welcome.msg &


# This was posted by loki (thanks)
sleep 20


# kill samba
/bin/smb stop


# Start samba and read the conf file on the hd
/usr/sbin/samba/smbd -D -s /mnt/HD_a2/smb.conf
/usr/sbin/samba/nmbd -D -s /mnt/HD_a2/smb.conf

Anyway, telnet doesn't seem to work for me.  Using busybox nc, I keep getting "Command not found" or something simliar messages when I type anything from the telnet session.  The 2nd method using telnetd connects then terminals as soon as I type anything.

By the way, I'm looking for toolchain for compiling utils for this box.  Does anyone know where to find it?

Thanks,
Quang

thanks for your hack sala and mchinand!
telnet on DSM works for me now.

yesterday i posted in the "D-Link DSM-G600 Serial Console" thread:

hi i'm new here - hello to all!

...new and got a question:

since i'm not a linux developer (uuups, developers only!?!? sorry) i don't know, but would it be possible to integrate the paragon NTFS for linux driver (http://www.ntfs-linux.com/corporate/oem/) into the DSM-G600 Firmware?

it's also available for MIPS and they did in rev.A. (http://www.nslu2-linux.org/wiki/FAQ/NTFS).

it would make the the DSM-G600 the perfect device for me.

sorry for my bad english...

benjamin

but now i think this thread may be a better place for this question.

my wish would be to add NTFS r/w support, mldonkey (http://www.mldonkey.org), USB Printer and DHCP Server to the DSM. Maybe somebody could tell me if it's possible. linux is not (now!?) my domain, so please excuse me if it's a stuipd question...

D-Link stock kernel has already NTFS built in

CONFIG_NTFS_FS=y
CONFIG_NTFS_RW=y

Try attach external usb hard drive which is formated with ntfs v1.02 (windows nt 4.0 ntfs)

Ben06 wrote:

my wish would be to add NTFS r/w support, mldonkey (http://www.mldonkey.org), USB Printer and DHCP Server to the DSM. Maybe somebody could tell me if it's possible. linux is not (now!?) my domain, so please excuse me if it's a stuipd question...

I'm working on getting printing working. I've compiled the USB printer module and can get something to print by sending a .PRN file to the printer device /dev/lp0 (cat file.PRN >/dev/lp0). I'm not too familiar with configuring cups but I hope it won't be too difficult by looking at this How to add a printer page and the config files on my computer that my have stuff specific for my printer.

thanks for ur quick answer. very good news thx! is the paragon NTFS driver included? or is there a linux NTFS r/w solution i dont know!?

im busy tonight but ill try NTFS tomorrow (GMT+1). Maybe ill also find time to try USB but since i never ever installed a USB printer at linux, it will take some reading for me before. anyway, maybe u would be so nice and post the binary?

whats about mldonkey? its written in objective CAML and i know there is a oCAML compiler for MIPS. so with my knowlege it should be possible to get it work at DSM, isn't it? Or do i think to easy?

thanks again for ur help and quick answer. ve a nice evening!

(Last edited by Ben06 on 18 Aug 2006, 21:42)

As far as I know, the NTFS r/w support comes from Linux NTFS. It will either be the old "dangerous" full NTFS support that could corrupt the filesystem, or the newer, reduced functionality version, that doesn't let you do much.

As for USB, I see that, while the Rev. A kernel has usbdevfs support, rev. B doesn't. This is a shame as I was hoping to get ftpd-topfield running on it, and that has a user-space driver.

The discussion might have continued from here.