On this page…
Q: How do I change the DNS servers from shell ?
If you only have 1 DNS server and the DNS IP is 192.168.5.1, type this:
# nvram set lan_dns=192.168.5.1 # nvram commit
If you have two DNS servers and the DNS IP is 192.168.5.1 and 192.168.7.1 then type this:
# nvram set lan_dns="192.168.5.1 192.168.7.1" # nvram commit
After you have done one of the descriptions above, please reboot your mss. (you can type reboot from shell, but it will shutdown, so you will have to turn it on again).
Q: I’m not able to change the timezone from the web interface
The timezone webpage does not work. It reverts back to US format when changing to Europe. By typing these commands from the console and reboot the MSS, I was able to change the timezone correctly:
# nvram set time_zone=CET-1CETDST # nvram commit # ntpclient -h 126.96.36.199 -s # hwclock -w # reboot
The clock seems to be backed up by the battery you see on the backside of the circuit board.
Q: How do I enable NFS ?
The following commands enables NFS server and exports the path /shares/mss-hdd with read only access to host 192.168.1.6
# portmap # rpc.mountd # rpc.nfsd # exportfs -io ro,no_root_squash 192.168.1.6:/shares/mss-hdd
To start NFS automatically every time the MSS is powered on, create a file in /opt/etc/init.d/ called something like S60nfsd and containing the above commands and the following on the first line:
Make sure that the file is executable with:
# chmod +x S60nfsd
Q: Can not login to ssh with root…
This mostly happens because the password is not valid. Do this: login with root via Telnet (not SSH) and do
# passwd root
Change the password to something. It will fail – don’t be afraid.
After this procedure the password is emtpy.
Now you can login via SSH (blank password) and run passwd again to set your own root password.
[Thx to paxton]
Be sure that the ssh-user has a shell and a home directory.
Check the file /etc/passwd
Q: I can not change the root password using telnet or putty …
Windows user might have the problem that they can’t change the password with DOS telnet or Putty
# passwd root Changing password for root Enter the new password (minimum of 5, maximum of 8 characters) Please use a combination of upper and lower case letters and numbers. Enter new password: mypassword Bad password: too short. Warning: weak password (continuing). Re-enter new password: Password changed. #
In /etc/passwd the password is changed to $1$$qRPK7m23GJusamGpoGLby/
Solution: Use putty and remove the checkmark at
Connection → Telnet → Return key sends Telnet New Line instead of ^M
Q: Need help with BusyBox?
Since Busybox is made for small systems, there are no manpages included.
You can have a look on the BusyBox site, for a description of these utils:
addgroup, adduser, adjtimex, ar, arping, ash, awk, basename, bunzip2, busybox, bzcat, cal, cat, chgrp, chmod, chown, chroot, chvt, clear, cmp, cp, cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup, deluser, devfsd, df, dirname, dmesg, dos2unix, dpkg, dpkg-deb, du, dumpkmap, dumpleases, echo, egrep, env, expr, false, fbset, fdflush, fdformat, fdisk, fgrep, find, fold, free, freeramdisk, fsck.minix, ftpget, ftpput, getopt, getty, grep, gunzip, gzip, halt, hdparm, head, hexdump, hostid, hostname, httpd, hush, hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod, install, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, iproute, iptunnel, kill, killall, klogd, lash, last, length, linuxrc, ln, loadfont, loadkmap, logger, login, logname, logread, losetup, ls, lsmod, makedevs, md5sum, mesg, mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp, modprobe, more, mount, msh, mt, mv, nameif, nc, netstat, nslookup, od, openvt, passwd, patch, pidof, ping, ping6, pipe_progress, pivot_root, poweroff, printf, ps, pwd, rdate, readlink, realpath, reboot, renice, reset, rm, rmdir, rmmod, route, rpm, rpm2cpio, run-parts, rx, sed, seq, setkeycodes, sha1sum, sleep, sort, start-stop-daemon, strings, stty, su, sulogin, swapoff, swapon, sync, sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top, touch, tr, traceroute, true, tty, udhcpc, udhcpd, umount, uname, uncompress, uniq, unix2dos, unzip, uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch, watchdog, wc, wget, which, who, whoami, xargs, yes, zcat
Q: How do I connect the MSS directly to my computer?
You will need a cross-linked-patch-cable (this is a network cable with twice the wires inside – ask at the computer store, the price should be just about like a standard network cable).
Before you connect, set the MSS to a static IP-Adress. Something like 192.168.1.2 and set the subnet to 255.255.255.0
Set the network interface of your computer to 192.168.1.3 and also set the subnet to 255.255.255.0
Now connect the devices with the cross-cable, and access the MSS from your computer by typing 192.168.1.2 in the adress-bar of Windows Explorer (if you use linux, you surely dind’t need this FAQ 😉 [thanks to stertje for the idea]
Q:Is the MSS upgrade process data destructive?
Just upload the openmss firmware using the web interface.
Your data stored on the drive won’t (should not) be lost and everything will remain unaffected (web interface, users, shares), except that you now can telnet your storage.
As described in every manual, be sure that you have made a backup of your data before updating the firmware 😉
Q:The default gateway on the MSS is wrong, how to correct it?
If you have problems with ipkg not working, then telnet/ssh to the MSS and do:
# nvram set lan_gateway=192.168.0.X nvram commit reboot #
(Replace 192.168.0.X with your network’s gateway)
Q: Does the MSS support files larger than 2GB? what about 4GB files?
The MSS uses the Reiser filesystem which supports files larger than 4GB. smbfs does NOT support files larger then 2GB (on the 2.6.2 and open 2.6.2 firmware.) The CIFS filesystem DOES support files larger then 2GB. NFS should support files larger than 4GB (someone please confirm this for both MSS and MSS+)