月度归档:2013年05月

Install ArchLinux on pogoplug HD

Installation

  1. With the device on and online, register and enable SSH through my.pogoplug.com.
  2. Power down the original, unmodified Pogoplug.
  3. Unplug all disk drives.
  4. With only the drive you intend to install Arch Linux ARM to plugged in (all data will be erased), switch on the power.
  5. Log in to Pogoplug over SSH using the IP address of the Pogoplug (from your router's DHCP table), with "root" as the username and the password you set up on my.pogoplug.com.
  6. Stop the Pogoplug software, so it doesn't interfere with the install process:killall hbwd
  7. Start fdisk to partition the USB or SATA drive:
    /sbin/fdisk /dev/sda
  8. At the fdisk prompt, delete old partitions and create a new one:
    1. Type o
      . This will clear out any partitions on the drive.
    2. Type p
       to list partitions. There should be no partitions left.
    3. Now type n
      , then p
       for primary, 1
       for the first partition on the drive, and then press ENTER, accepting default values.
    4. Exit by typing w
      .
  9. Create the ext3 filesystem:
    sync cd /tmp wget http://archlinuxarm.org/os/pogoplug/mke2fs chmod 755 mke2fs ./mke2fs -j /dev/sda1
  10. Download the install script and execute
    cd /tmp wget http://archlinuxarm.org/os/oxnas/oxnas-install.sh chmod 755 oxnas-install.sh ./oxnas-install.sh

    The installer will ensure that the Pogoplug services are not running and that it has sda1 mounted where it wants it. Then, it will collect some information from the system, download the rootfs tarball, verify it, extract it, and finally use spare space in the NAND for the updated kernel before making modifications to the u-boot environment. If something goes wrong, it will be darn sure to tell you.
  11. In the end, this is what the last lines of blparam output should look like:
    bootargs_stock=root=ubi0:rootfs ubi.mtd=2,512 rootfstype=ubifs console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes load_custom_nand=nboot 60500000 0 500000 load_custom_nand2=nboot 60500000 0 B00000 boot_custom=run load_custom_nand boot || run load_custom_nand2 boot bootargs=root=/dev/sda1 ubi.mtd=2,512 rootfstype=ext3 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes rootdelay=15 bootcmd=run boot_custom

    Note that there are no " (double quote) characters here.
  12. The install script will automatically unmount /dev/sda1. If everything went OK, reboot:
    /sbin/reboot
  13. Login to Arch Linux ARM (note: The IP address may have changed. Check your router's DHCP assignments if you can't log in.)
    Username: root
    Password: root
  14. If you want to have your plug automount drives when they're plugged in. Install the udev rules:
    pacman -Sy udev-automount

    If the LED on the front is still blinking after booting, rebuild the module dependencies.
    depmod -a

    Then, reboot again:
    /sbin/reboot
  15. Login again with root/root. Now would be a good time to change your root password.
    passwd
  16. Most likely there are several packages that are now out of date. Update them with pacman:
    pacman -Syu

    You may have to run pacman a few more times. Accept any default answers (hit enter) and follow any instructions it gives you.
    Welcome to Arch Linux ARM. Any questions, stop by the forums or on IRC.

点击查看原图
点击查看原图

tomato dualwan wan重启命令

telnet进去执行下面3条中的一条

service wan restart        (全部wan口重启)


service wan1link restart   (wan1口重启)

service wan2link restart   (wan2口重启)


因为到目前为止(版本:263),如果wan1 wan2 为DHCP方式,按释放按钮,无法释放IP. 按更新,也无法更新IP,用这个端口重启命令可以重启端口更新IP.