Ten(ish) steps to set up a dockstar

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Re: Ten(ish) steps to set up a dockstar

Postby pepedog » Tue Sep 28, 2010 4:08 pm

I the supplied apache comes a file /etc/rc.d/httpd, which goes something like this.
You add httpd to daemons in /etc/rc.conf

Dave
$this->bbcode_second_pass_code('', '#!/bin/bash

daemon_name=httpd

. /etc/rc.conf
. /etc/rc.d/functions

APACHECTL=/usr/sbin/apachectl

case "$1" in
start)
stat_busy "Starting Apache Web Server"
[ ! -d /var/run/httpd ] && install -d /var/run/httpd
if $APACHECTL start &>/dev/null ; then
add_daemon $daemon_name
stat_done
else
stat_fail
exit 1
fi
;;

stop)
stat_busy "Stopping Apache Web Server"
if $APACHECTL stop &>/dev/null ; then
rm_daemon $daemon_name
stat_done
else
stat_fail
exit 1
fi
;;

reload)
stat_busy "Reloading Apache Web Server"
if $APACHECTL graceful &>/dev/null ; then
add_daemon $daemon_name
stat_done
else
stat_fail
exit 1
fi
;;

restart)
stat_busy "Restarting Apache Web Server"
if $APACHECTL restart &>/dev/null ; then
add_daemon $daemon_name
stat_done
else
stat_fail
exit 1
fi
;;

status)
stat_busy "Checking Apache Web Server status";
ck_status $daemon_name
;;

*)
echo "usage: $0 {start|stop|reload|restart|status}"
esac

exit 0')
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Ten(ish) steps to set up a dockstar

Postby blurry » Tue Sep 28, 2010 4:17 pm

If I can figure out how to start the packaged version of Apache HTTPD to load the webdav plugin, then I'll update the docs for that. In the meantime, I've updated my wiki page to mention a symbolic link for apachectl for the time being.
blurry
 
Posts: 17
Joined: Tue Aug 31, 2010 2:52 pm

Re: Ten(ish) steps to set up a dockstar

Postby pepedog » Tue Sep 28, 2010 4:39 pm

I think apache on Arch Linux ARM is built using this (open with browser and save the tar)
http://repos.archlinux.org/wsvn/package ... 83&isdir=1
Once extracted, look at the PKGBUILD file, you can alter the ./configure options to add DAV

I notice with stock Arch Linux ARM that file /etc/httpd/conf/extra/http-dav.conf is there.
To add (if it is compiled in) add
Include extra/http-dav.conf
to httpd.conf file

Whether it had your stuff in I don't know.

Dave
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Ten(ish) steps to set up a dockstar

Postby unmesh » Wed Nov 03, 2010 5:27 am

I got my Dockstar earlier today and, although I'm a noob to this, I managed to get Linux up and running following the excellent instructions. Thanks :D

One problem with the instructions for blinking the LEDs on network traffic is that it does not survive a reboot. It would appear that the "modprobe xt_LED" command needs to be rerun at reboot and I'm hoping someone can tell me if there is a file where I need to put that command in.

Thanks.
unmesh
 
Posts: 15
Joined: Wed Nov 03, 2010 4:17 am

Re: Ten(ish) steps to set up a dockstar

Postby peaslaker » Wed Nov 03, 2010 5:56 pm

/etc/rc.conf
peaslaker
 
Posts: 101
Joined: Tue Sep 07, 2010 10:40 pm

Re: Ten(ish) steps to set up a dockstar

Postby unmesh » Wed Nov 03, 2010 7:15 pm

$this->bbcode_second_pass_quote('peaslaker', '/')etc/rc.conf


Should I just put xt_LEDs in the MODULES list?
unmesh
 
Posts: 15
Joined: Wed Nov 03, 2010 4:17 am

Re: Ten(ish) steps to set up a dockstar

Postby peaslaker » Wed Nov 03, 2010 11:35 pm

Yes. That's it.
peaslaker
 
Posts: 101
Joined: Tue Sep 07, 2010 10:40 pm

Re: Ten(ish) steps to set up a dockstar

Postby Smokey » Sat Nov 13, 2010 10:20 pm

OK, I set up the dockstar, but the only reason I did so, samba, isn't working.

I'm a Mac guy, so I did all of the setup by sshing from the Mac. I put in 2 guest accounts and a third account with a password. I followed http://www.faqs.org/docs/Linux-HOWTO/SMB-HOWTO.html as well as I could, but I'm not sure about the differences in the conf file. All I want is wide-open guest access to any attached USB drives from the network.

When I look at my network from the Mac, I automatically connect with my third account. I see the Arch Linux ARM install, public, and tmp folders. When I double-click on one, all three disappear and I get a window saying:

"The operation can’t be completed because the original item for “Arch Linux ARM install” [or Public or tmp] can’t be found."

Then the folders reappear in the FInder window.

I have an XP tower that I rarely use. When I look at the network from it, I see "Arch Linux ARM install on Arch Linux ARM install (Arch Linux ARM install)." When I double-click on it, I get an error window:

"\\Arch Linux ARM install\Arch Linux ARM install is not accessible. You might not have permission to use this network resource…"

Any ideas? I have the Seagate that fits the dockstar with factory formatting, and I have a second USB drive that was formatted by my Mac years ago. Do I need to reformat them from linux?
Smokey
 
Posts: 5
Joined: Sat Nov 13, 2010 9:58 pm

Re: Ten(ish) steps to set up a dockstar

Postby unmesh » Sun Nov 14, 2010 7:55 am

I got the following smb.conf files suggestion from ygator on another thread and it works like a charm with Windows and USB drives formatted with ext2, ext3, FAT, FAT32 and NTFS; hopefully it will work for Macs as well. Change the name of the SMB server from DOCKSTAR to whatever you want.

$this->bbcode_second_pass_code('', '[global]
workgroup = WORKGROUP
server string = DOCKSTAR
netbios name = DOCKSTAR
security = share
load printers = no
printing = bsd
printcap name = /dev/null
disable spools = yes
log file = /var/log/samba/%m.log
max log size = 50
dns proxy = no
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072 SO_KEEPALIVE

[root]
path = /
read only = no
public = yes
writable = yes
force user = root
')

All filesystems will be visible under /root.
unmesh
 
Posts: 15
Joined: Wed Nov 03, 2010 4:17 am

Re: Ten(ish) steps to set up a dockstar

Postby Smokey » Mon Nov 15, 2010 10:18 am

Thanks! I'm seeing a lot more over the network now.
Smokey
 
Posts: 5
Joined: Sat Nov 13, 2010 9:58 pm

PreviousNext

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 5 guests