由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Hardware版 - Pogoplug安装optware和samba (适合新新手)
相关主题
我老发个垃圾由的nas,printer和asterisk的教程吧(老手绕行)pogoplug到了
Pogoplug装了Archlinux后的问题圣座咋连到外面去
pogoplug 太折腾请问这就是那个神什么吗?
pogoplug安装好了dibian,现在可以登录进去了地沟由为什么这么火?完全是误导吧
把sabnzbd 装到tomato上去, 很爽 (转载)求助:Dockstar/Goflex Net 安装Debian后的启动问题!
有人在wl-520gU上装过cups吗?问问折腾pogoplug的问题。
前几天amazon deal的4tb seagate外痔硬盘到了你们的pogoplug load是多少?
请教个网络用户名的问题被pogoplug吓了一跳
相关话题的讨论汇总
话题: 00话题: opt话题: dev话题: etc话题: pogoplug
进入Hardware版参与讨论
1 (共1页)
h*w
发帖数: 1182
1
抛砖引玉,pogoplug上面可以装很多东西。
本人新手,这个安装说明算是一个备份吧,如果要重新安装可以看看,也可以给新新手
参考。也请高手指点。
为什么没有装arch或者debian是因为看到有人说pogoplug自带的ntfs驱动比ntfs-3g性
能好,就想用原系统加装optware来安装samba共享。而且如果还想用my.pogoplug.com
也可以直接用。还没有实验过到底是自带的ntfs驱动快还是ntfs-3g快,就当瞎折腾了
,呵呵。
本说明基于POGO-E02,不保证在其他版本的pogoplug上也工作。对于使用本安装说明引
起的任何损失概不负责。
------------------------------
1. Find your Pogoplug ip address in your router.
2. Log into your Pogoplug online account that you created during the initial
setup of the POGO. Go into the advanced tab / Security. Make sure that "
Enable SSH access for this Pogoplug enabled device" is clicked. Also keep
the password handy for reference (if you didn't put a password in, it is "
ceadmin").
3. Use your favourite SSH protocol to login to the Pogoplug, or putty http://www.chiark.greenend.org.uk/~sgtatham/putty/ (在putty里面,选择文字就自动copy,右键粘贴)
4. Using your favourite SSH protocol to the IP Address from 1. and the
password you have you will connect to the Pogoplug as "root" and "ceadmin"
or your password set in step 2.
5. 将usb drive在windowns下用Minitool partition格式化成ext2或者ext3,然后将其
插入pogoplug的某个usb口上。如果不装很多东西的话512M也够了。也可用pogoplug来
分区,但是需要安装mke2fs (在安装ipkg之后用ipkg install e2fsprogs安装)。
6. 将文件系统改成读写,type "mount" to verify。
mount -o remount,rw / # 可以用 "mount -o remount,ro /" 将文件系统改回只读
mkdir /opt
# 再杀掉pogoplug的watch dog,以免有不必要的麻烦 ********************
killall hbwd
7. 决定将opteware装在哪里:onboard flash or usb drive (推荐装在usb drive上)
# 如果是onboard flash (假设是/dev/mtdblock2)************************
df -h # 查看各个分区情况,确认是否有mtdblock2或者还有mtdblock3
mount /dev/mtdblock2 /opt
# 如果是usb drive (假设是 /dev/sda)*********************************
mount /dev/sda1 /opt
8. 开始安装optware
wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/ipkg-opt_0.99.163-10_arm.ipk
tar -xOvzf ipkg-opt_*_arm.ipk ./data.tar.gz | tar -C / -xzvf –
mkdir -p /opt/etc/ipkg
echo "src cross http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable" > /opt/etc/ipkg/armel-feed.conf
echo "src native http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/native/unstable" >> /opt/etc/ipkg/armel-feed.conf
/opt/bin/ipkg update
/opt/bin/ipkg upgrade
9. 安装nano。如果喜欢用vi就跳过
/opt/bin/ipkg nano
10. 修改一些配置先
# 修改profile *******************************************************
cd /etc
nano profile
# 将下面内容写入,"#!/bin/bash"前面不要有空行空格之类的 *************
#!/bin/bash
#
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
export PATH=/opt/bin:/opt/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/opt/lib
# end of profile file ***********************************************
# 修改.bash_profile *************************************************
cd /root
nano .bash_profile
# 将下面内容写入 ****************************************************
PS1='[\u@\h \W]\$ '
export TERM=linux-lat
export PATH=/opt/bin:/opt/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/opt/lib
alias ls='ls --color=auto'
# end of .bash_profile file *****************************************
Then log out and log in again. In both cases make sure your "/opt"
subdirectories are first so that the new utilities will overide the original
. Modify the PATH to what is appropriate for your system if you have
installed other packages.
11. Pogoplug没有硬件时钟,需要网络对时
ipkg install psmisc
ipkg install tz
ln -s /opt/share/zoneinfo /usr/share/zoneinfo
ln -s /usr/share/zoneinfo/PST8PDT /etc/localtime
这用里Pacific Time做例子,For the US: Pacific - PST8PDT, Mountain - MST7MDT,
Central - CST6CDT, Eastern - EST5EDT
# Install the NTP daemon in order to set time on startup and continously ***
ipkg install ntp
cd /opt/etc/init.d
nano S77ntp
# 将内容改为如下 ****************************************************
#!/bin/sh
if [ -n "`/opt/bin/pidof ntpd`" ]; then
/usr/bin/killall ntpd 2>/dev/null
fi
if [ ! -d /var/spool/ntp ] ; then
mkdir -p /var/spool/ntp
fi
/opt/bin/ntpdate -u pool.ntp.org
/opt/bin/ntpd -g -c /opt/etc/ntp/ntp.conf -f /var/spool/ntp/ntp.drift -s /
var/spool/ntp -k /opt/etc/ntp -l /var/spool/ntp/ntp.log
# end of S77ntp file ************************************************
# 再修改一下ntp的conf文件,将US的server加入,再加入两个加拿大的 *****
nano /opt/etc/ntp/ntp.conf
# 将内容改为如下 ****************************************************
#Default conf file for ntpd
driftfile /var/spool/ntp/ntp.drift
#server 0.pool.ntp.org
#server 1.pool.ntp.org
#server 2.pool.ntp.org
server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org
server 0.ca.pool.ntp.org
server 1.ca.pool.ntp.org
# end of ntp.conf file ***********************************************
# 然后就可以启动ntp了 ************************************************
/opt/etc/init.d/S77ntp start
可以将S77ntp 加入到/etc/init.d/rcS让它每次reboot之后都自动启动。或者更好一点
,按下面提到的方法自动启动。
12. 安装openssh。pogoplug自带了dropbear,如果想要用openssh需要自己安装
ipkg install openssh
dropbear用了port 22,如果想让dropbear和sshd同时运行的话,改一下sshd的port
nano /opt/etc/openssh/sshd_config
将Port 从22改成2233之类的。其他的根据自己需要修改。
也可以让dropbear不要在启动的时候自动启动
nano /etc/init.d/db
注释掉/usr/sbin/dropbear就行了(#/usr/sbin/dropbear)
但是有个危险就是要是u盘挂掉了sshd起不来就废了,ssh进不去了。还是留着dropbear
安全点。
然后就可以启动sshd了
/opt/etc/init.d/S40sshd start
可以将S40sshd 加入到/etc/init.d/rcS让它每次reboot之后都自动启动。或者更好一
点,按下面提到的方法自动启动。
13. 安装openssh带的sftp。dropbear不带sftp所以没有办法用scp。用winscp操作文件
还是要简单一点。
ipkg install openssh-sftp-server
mkdir /usr/libexec
cp /opt/libexec/sftp-server /usr/libexec/
# Check that the file is executable for all; if not, chmod a+x sftp-server
安装之后即使sshd没有起动应该也可以用winscp通过dropbear连接pogoplug了
14. 安装blkid。因为要用做NAS,查看UUID,有blkid方便点。用uuid mount的话保证
你想mount的就是你要的那个盘
cd /tmp
wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/e2fslibs_1.41.14-1_arm.ipk
tar xvzf e2fslibs_1.41.14-1_arm.ipk
tar xvzf data.tar.gz
wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/e2fsprogs_1.41.14-1_arm.ipk
tar xvzf e2fsprogs_1.41.14-1_arm.ipk
tar xvzf data.tar.gz
cd /tmp/opt/lib
mv libb* /usr/lib
mv libc* /usr/lib
mv libe* /usr/lib
mv libu* /usr/lib
cd /tmp/opt/sbin
mv blkid /usr/sbin
mv findfs /usr/sbin
这样就可以用blkid to locate the optware flash drive by UUID, and use findfs
in /etc/init.d/rcS to mount it to /opt.
Next, locate the actual device UUID for the startup script. Run blkid to get
the UUID, and write this down.
blkid
/dev/sda1: UUID="2CB9-87AD" TYPE="vfat" LABEL="LeeJones"
/dev/sdb1: UUID="fc640330-9e49" TYPE="ext3" LABEL="OPTWARE"
In this case, Optware drive has a UUID of fc640330-9349. Now we should be
able to locate the Optware USB drive (or any particular drive) with the
findfs command:
findfs UUID="fc640330-9e49"
This returns the result of /dev/sdb1
15. 安装samba。samba2一直搞不定中文,只好安装samb35,号称需要的内存会大。
ipkg install samba35 # samba36也行
cd /opt/etc/samba/
# Backup the default configuration file *******************************
cp smb.conf smb.conf.save
nano smb.conf
# Insert the following information into the smb.conf file *************
[global]
workgroup = workgroup
server string = Pogoplug Samba35 Server
hosts allow = 192. 127. # you may need to put 10. here
null passwords = yes
guest account = root
log file = /opt/var/log/samba/log.%m
max log size = 50
security = share
load printers = no
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE
encrypt passwords = yes
smb passwd file = /opt/etc/samba/smbpasswd
dns proxy = no
preserve case = yes
dos charset = UTF-8
unix charset = UTF-8
display charset = UTF-8
os level = 255
[External]
comment = external hd
path = /opt/mnt/data # 改成你自己的
available = yes
public = yes
writable = yes
printable = no
create mask = 0777
guest ok = yes
browseable = yes
# end of smb.conf file ********************************************
# Testing the smb.conf file ***************************************
/opt/bin/testparm
# Mount your driver to /opt/mnt/data ******************************
cd /opt
mkdir mnt
cd mnt
mkdir data
mount /dev/sdb1 /opt/mnt/data # 假设你的外置硬盘是/dev/sdb,只有一个分区
# 如果外置硬盘式fat32分区, 显示中文要用utf8 option ****************
mount /dev/sdb1 /opt/mnt/data -t vfat -o iocharset=utf8,umask=0
# Start the Samba Server ******************************************
/opt/etc/init.d/S08samba start
# Restart the Samba Server ****************************************
/opt/etc/init.d/S08samba restart
# Subsequent adjustments to share information *********************
nano /opt/etc/samba/smb.conf
# Restart manually, necessary each time the power is cycled *******
/opt/etc/init.d/S08samba start
可以将S08samba 加入到/etc/init.d/rcS让它每次reboot之后都自动启动。或者更好一
点,按下面提到的方法自动启动。
16. 到这里就基本上samba和需要的东西都安装设置好了。还需要再设置一下让hdd
auto spin down,减少点发热和延长寿命
可以试下hdparm -S行不,我的不能spin down。安装scsi-idle可以。
ipkg install scsi-idle
scsi-stop /dev/sdb
如果外置硬盘停止了,表明可以用scsi-stop控制,然后用下面的script或者c程序自动
spin down,适用于kernel 2.6
# sh script 版本 **************************************************
cd /opt/sbin
nano sd-idle
将这个网页上提供的代码写入
http://tomatousb.org/forum/t-266375/
# 然后改成可执行 **************************************************
chmod +x sd-idle
Usage:
sd-idle device [idletime [checktime]] &
device /dev/sd[a-z]
idletime optional idle time in seconds before disk spindown (default
900)
checktime optional time in seconds to sleep between idle checks (default
30)
for example:
sd-idle /dev/sda &
sd-idle /dev/sdb 600 15 &
Note the & at the end of the command to run it in the background. Also note
that /dev/sdb can become /dev/sda if the device that was /dev/sda is removed
and the router is rebooted. You can run more than one copy of the script to
handle multiple disks.
但是这个说明是作者写给tomato usb用的,如果用pogoplug,直接用上面的说明你退出
ssh之后sd-idle也退出了。需要用nohup让它在后台运行,即使你退出了ssh也没事。还
有一个问题是nohup会在$home目录写一个nohup.out文件,但是我们又不想让系统的文
件系统保持在可读写状态,可以改一下这个out文件的位置。
mkdir /opt/log # 建一个目录存放out文件,可以放在U盘上随便什么位置
例子:
nohup sd-idle /dev/sda > /opt/log/nohup.out 2>&1 & # 输出到/opt/log/nohup.
out
nohup sd-idle /dev/sda >/dev/null 2>/dev/null & # 不想有任何输出
# c program 版本 ***************************************************
同一个作者还有一个c的程序。可能效率更高一点。自动以daemon运行
这个本来是给tomato usb用的,mips cpu,直接用原作者编译好的程序在pogoplug (
arm)上没法执行
原作者提供了代码,在dockstart上用安装的gcc重新编译了一下就可以在pogoplug上运
行了
从这里下载代码
http://tomatousb.org/local--files/start/sd-idle-2.6.tar.gz
# 编译之后改成可执行 ***********************************************
chmod +x sd-idle-2.6
Usage: ( runs as a daemon )
sd-idle-2.6 [ -d devices ] [ -i idletime ] [ -c checktime ] [ -h --help ]
[ -v --version ]
-d [a-z]+ include where a => /dev/sda, b => /dev/sdb (default is all
disks)
![a-z]+ exclude
-i n n seconds a disk must be idle to spin it down (default 900,
min 300)
-c n n seconds to sleep between idle checks (default 30, min 5)
-h --help usage
-v --version version
for example:
sd-idle-2.6 will manage all disks with default times
sd-idle-2.6 -d bc will manage /dev/sdb, /dev/sdc with default times
sd-idle-2.6 -d !bc will manage all disks except /dev/sdb, /dev/sdc with
default times
sd-idle-2.6 -i 600 will manage all disks spinning down after 600 seconds
or 10 minutes
17. 至此要安装的都基本上安装好,最后设置一下需要自动启动的程序。
可以直接修改 /etc/init.d/rcS, 将需要自动启动的加入。或者为了减少对原系统的改
动,可以用下面的步骤用另外的script启动
cd /etc/init.d
cp rcS rcS.save
nano rcS
# 在文件最后加入 **************************************************
mount `findfs UUID="fc640330-9e49"` /opt # mounts Optware USB, use your own
UUID。也可修改/etc/fstab,具体请google
# 或者加个 noatime option *****************************************
mount `findfs UUID="fc640330-9e49"` /opt -o noatime
/opt/etc/init.d/optrun.sh
# NOTE: The character before findfs is a back quote (`) not an apostrophe ('
). Look for the back quote on the tilde key (~) next to your number 1 key.
# 如果不想用my.pogoplug.com的话,可以将/etc/init.d/hbmgr.sh start注释掉
#/etc/init.d/hbmgr.sh start
# 修改好rcS之后保存。可以将文件系统改回只读 ************************
mount -o remount,ro /
# 创建 optrun.sh ***************************************************
cd /opt/etc/init.d/
nano optrun.sh
# 将下面内容写入 ***************************************************
#!/bin/sh
# runs optware startups
#
/opt/etc/init.d/hbmgr_mod.sh start
/opt/etc/init.d/S77ntp start
/opt/etc/init.d/S40sshd start
mount /dev/sdb1 /opt/mnt/data
/opt/etc/init.d/S08samba start
# end of optrun.sh *************************************************
有需要的话也可以将sd-idle-2.6加入
cp /etc/init.d/hbmgr.sh /opt/etc/init.d/hbmgr_mod.sh
# 打开hbmgr_mod.sh,注释掉跟my pogoplug相关的程序,不让他们启动 ****
# 其他的不用修改 ***************************************************
nano /opt/etc/init.d/hbmgr_mod.sh
# echo -n "Starting hbplug: "
# ulimit -n 65536
# ulimit -c unlimited
# nohup $INSTDIR/bin/hbwd $INSTDIR/bin/hbplug > /dev/null 2>&1 &
# echo "Success"
这样做的好处是如果脚本有问题,可以拔掉usb重新启动之后进入原系统进行修改。否
则不能ssh进入pogoplug就麻烦了。
还有我发现要是同时用my pogoplug和samba,windows访问samba共享盘的时候很慢,所
以干脆不要算了
还有一个发现是有hbwd运行的时候好像硬盘可以自动spin down,但是不是太确定,没
有仔细实验过
还留着hbmgr是要让它载入各个文件系统的驱动,或者一股脑把那些驱动加载全放到
optrun.sh里面,或者只加载你需要的那些,看个人需要了
18. 搞定, 重启一下。
sync
sync
sync
reboot
# 重启之后查看一下要启动的是否已经自动启动 ************************
ps
###### 参考文献 ######
1. http://www.nslu2-linux.org/wiki/Main/PlugComputers
2. http://pogomarvel.blogspot.com/2012/03/pogo-e02-pink-as-local-samba-server-for.html
3. http://openpogo.tumblr.com/
4. http://www.leeandcathy.com/2011/10/persistent-usb-mount-locations-on.html
5. http://tomatousb.org/forum/t-271603/sd-idle-2-6-disk-idle-spindown-program-for-2-6
6. http://www.palfans.net/unix-linux-nohup/
b********k
发帖数: 173
2
mark
h**h
发帖数: 132
3
this is 抛玉引砖. thx

com

【在 h*w 的大作中提到】
: 抛砖引玉,pogoplug上面可以装很多东西。
: 本人新手,这个安装说明算是一个备份吧,如果要重新安装可以看看,也可以给新新手
: 参考。也请高手指点。
: 为什么没有装arch或者debian是因为看到有人说pogoplug自带的ntfs驱动比ntfs-3g性
: 能好,就想用原系统加装optware来安装samba共享。而且如果还想用my.pogoplug.com
: 也可以直接用。还没有实验过到底是自带的ntfs驱动快还是ntfs-3g快,就当瞎折腾了
: ,呵呵。
: 本说明基于POGO-E02,不保证在其他版本的pogoplug上也工作。对于使用本安装说明引
: 起的任何损失概不负责。
: ------------------------------

s***g
发帖数: 495
4
Thanks for sharing.
Under Linux, I think ext4 is better if you have samba.

com

【在 h*w 的大作中提到】
: 抛砖引玉,pogoplug上面可以装很多东西。
: 本人新手,这个安装说明算是一个备份吧,如果要重新安装可以看看,也可以给新新手
: 参考。也请高手指点。
: 为什么没有装arch或者debian是因为看到有人说pogoplug自带的ntfs驱动比ntfs-3g性
: 能好,就想用原系统加装optware来安装samba共享。而且如果还想用my.pogoplug.com
: 也可以直接用。还没有实验过到底是自带的ntfs驱动快还是ntfs-3g快,就当瞎折腾了
: ,呵呵。
: 本说明基于POGO-E02,不保证在其他版本的pogoplug上也工作。对于使用本安装说明引
: 起的任何损失概不负责。
: ------------------------------

l********l
发帖数: 9452
5
折腾,有现成的squeeze image不用,自己瞎搞啥
h*w
发帖数: 1182
6
没错。
这个主要给家里只有windowns机器的,ntfs拔下来插在电脑上即可
要是只用于网络共享应该还是ext3或者ext4最快

【在 s***g 的大作中提到】
: Thanks for sharing.
: Under Linux, I think ext4 is better if you have samba.
:
: com

s***g
发帖数: 495
7
samba的ntfs中文问题俺也遇到过。
vfat没问题,ntfs就是不行。但vfat文件必须小于4G。
换了ext4后中文文件名就没问题了。ext4还可用nfs。

com

【在 h*w 的大作中提到】
: 抛砖引玉,pogoplug上面可以装很多东西。
: 本人新手,这个安装说明算是一个备份吧,如果要重新安装可以看看,也可以给新新手
: 参考。也请高手指点。
: 为什么没有装arch或者debian是因为看到有人说pogoplug自带的ntfs驱动比ntfs-3g性
: 能好,就想用原系统加装optware来安装samba共享。而且如果还想用my.pogoplug.com
: 也可以直接用。还没有实验过到底是自带的ntfs驱动快还是ntfs-3g快,就当瞎折腾了
: ,呵呵。
: 本说明基于POGO-E02,不保证在其他版本的pogoplug上也工作。对于使用本安装说明引
: 起的任何损失概不负责。
: ------------------------------

h*w
发帖数: 1182
8
这个?
http://wiki.slimdevices.com/index.php/SqueezePlug
上面都有啥?

【在 l********l 的大作中提到】
: 折腾,有现成的squeeze image不用,自己瞎搞啥
s***g
发帖数: 495
9
handy trusty spyware.

【在 h*w 的大作中提到】
: 这个?
: http://wiki.slimdevices.com/index.php/SqueezePlug
: 上面都有啥?

w*x
发帖数: 3456
10
我在用,没什么太多的东西,除了logitech那个squeezebox之外。那个我也给kill掉了
,贴个ps -e 给大家看看
PID TTY TIME CMD
1 ? 00:02:43 init
2 ? 00:00:00 kthreadd
3 ? 00:21:10 ksoftirqd/0
5 ? 00:00:58 kworker/u:0
6 ? 00:00:00 khelper
7 ? 00:00:00 kworker/u:1
10 ? 00:00:00 netns
161 ? 00:00:44 sync_supers
163 ? 00:00:02 bdi-default
165 ? 00:00:00 kblockd
171 ? 00:00:00 ata_sff
182 ? 00:00:00 khubd
275 ? 00:00:00 rpciod
286 ? 00:17:41 kswapd0
341 ? 00:00:00 fsnotify_mark
343 ? 00:00:00 aio
352 ? 00:00:00 nfsiod
359 ? 00:00:00 crypto
471 ? 00:00:00 mtdblock0
476 ? 00:00:00 mtdblock1
481 ? 00:00:00 mtdblock2
486 ? 00:00:00 mtdblock3
492 ? 00:00:00 orion_spi
531 ? 00:00:00 scsi_eh_0
532 ? 00:39:50 usb-storage
731 ? 00:00:00 udevd
773 ? 08:19:25 mlnet
796 ? 00:00:00 udevd
797 ? 00:00:00 udevd
810 ? 00:00:00 mv_crypto
1098 ? 00:00:00 dhclient
1126 ? 00:00:00 portmap
1138 ? 00:00:00 rpc.statd
1235 ? 00:00:59 rsyslogd
1271 ? 00:04:11 nmbd
1285 ? 06:35:58 asterisk
1294 ? 00:00:12 smbd
1317 ? 00:00:00 smbd
1328 ? 00:00:24 cron
1339 ? 00:00:00 dbus-daemon
1364 ? 00:00:18 sshd
1404 ? 00:11:52 ntpd
1435 ttyS0 00:00:00 getty
3968 ? 00:01:58 flush-8:0
3991 ? 00:00:23 sshd
3995 pts/0 00:00:00 bash
5958 ? 00:00:00 _plutorun
5959 ? 00:00:00 logger
5962 ? 00:00:00 _plutorun
5963 ? 00:00:00 _plutoload
5964 ? 00:00:01 pluto
6137 ? 00:00:00 _pluto_adns
6174 ? 00:00:00 xl2tpd
6211 ? 00:00:41 monit
8888 ? 02:03:02 transmission-da
11430 ? 00:00:00 kworker/0:1
11435 ? 00:00:00 kworker/0:2
11440 ? 00:00:00 sshd
11443 pts/1 00:00:00 bash
11447 pts/1 00:00:00 ps
19023 ? 01:46:43 mount.ntfs-3g
19073 ? 1-01:54:09 mount.ntfs-3g

【在 s***g 的大作中提到】
: handy trusty spyware.
相关主题
有人在wl-520gU上装过cups吗?pogoplug到了
前几天amazon deal的4tb seagate外痔硬盘到了圣座咋连到外面去
请教个网络用户名的问题请问这就是那个神什么吗?
进入Hardware版参与讨论
s***g
发帖数: 495
11
My bad, should be handy-dandy software.

【在 w*x 的大作中提到】
: 我在用,没什么太多的东西,除了logitech那个squeezebox之外。那个我也给kill掉了
: ,贴个ps -e 给大家看看
: PID TTY TIME CMD
: 1 ? 00:02:43 init
: 2 ? 00:00:00 kthreadd
: 3 ? 00:21:10 ksoftirqd/0
: 5 ? 00:00:58 kworker/u:0
: 6 ? 00:00:00 khelper
: 7 ? 00:00:00 kworker/u:1
: 10 ? 00:00:00 netns

h*w
发帖数: 1182
12
这个是debian上装的squeezebox? 还是arch?

【在 w*x 的大作中提到】
: 我在用,没什么太多的东西,除了logitech那个squeezebox之外。那个我也给kill掉了
: ,贴个ps -e 给大家看看
: PID TTY TIME CMD
: 1 ? 00:02:43 init
: 2 ? 00:00:00 kthreadd
: 3 ? 00:21:10 ksoftirqd/0
: 5 ? 00:00:58 kworker/u:0
: 6 ? 00:00:00 khelper
: 7 ? 00:00:00 kworker/u:1
: 10 ? 00:00:00 netns

t*****s
发帖数: 39
13
debian

【在 h*w 的大作中提到】
: 这个是debian上装的squeezebox? 还是arch?
h*w
发帖数: 1182
14
好像也没装啥,那就跟自己安装也差不多,不知道有什么优化的地方

【在 t*****s 的大作中提到】
: debian
t*****s
发帖数: 39
15
主要可能是安装简单点儿,找个u盘展开镜像文件就行(不用fdisk设置分区/安装系统等
),估计出错的可能性低一点儿。还有就是带个setup的界面可以选择安装比如samba/
nfs/minidlna以及设置硬盘休眠等

【在 h*w 的大作中提到】
: 好像也没装啥,那就跟自己安装也差不多,不知道有什么优化的地方
w*x
发帖数: 3456
16
我基本就是拿来跑transmission和mldonkey的

【在 h*w 的大作中提到】
: 好像也没装啥,那就跟自己安装也差不多,不知道有什么优化的地方
s***d
发帖数: 960
17
太复杂了,而且能不能详细说一下如何reboot后自动运行

com
★ 发自iPhone App: ChineseWeb 7.8

【在 h*w 的大作中提到】
: 抛砖引玉,pogoplug上面可以装很多东西。
: 本人新手,这个安装说明算是一个备份吧,如果要重新安装可以看看,也可以给新新手
: 参考。也请高手指点。
: 为什么没有装arch或者debian是因为看到有人说pogoplug自带的ntfs驱动比ntfs-3g性
: 能好,就想用原系统加装optware来安装samba共享。而且如果还想用my.pogoplug.com
: 也可以直接用。还没有实验过到底是自带的ntfs驱动快还是ntfs-3g快,就当瞎折腾了
: ,呵呵。
: 本说明基于POGO-E02,不保证在其他版本的pogoplug上也工作。对于使用本安装说明引
: 起的任何损失概不负责。
: ------------------------------

l********l
发帖数: 9452
18

方便啊,装pkg全是gui操作,不用敲命令行啊。打开webmin后,跟qnap/Synology 定制
的nas os很相似了。

【在 h*w 的大作中提到】
: 好像也没装啥,那就跟自己安装也差不多,不知道有什么优化的地方
h*w
发帖数: 1182
19
第17步就是设置自动运行的
不过是比较复杂一点,有时间慢慢折腾

【在 s***d 的大作中提到】
: 太复杂了,而且能不能详细说一下如何reboot后自动运行
:
: com
: ★ 发自iPhone App: ChineseWeb 7.8

h*w
发帖数: 1182
20
哦,如果那样倒是比较简单了

【在 l********l 的大作中提到】
:
: 方便啊,装pkg全是gui操作,不用敲命令行啊。打开webmin后,跟qnap/Synology 定制
: 的nas os很相似了。

相关主题
地沟由为什么这么火?完全是误导吧你们的pogoplug load是多少?
求助:Dockstar/Goflex Net 安装Debian后的启动问题!被pogoplug吓了一跳
问问折腾pogoplug的问题。pogoplug 折腾后还能连pogoplug.com 吗?
进入Hardware版参与讨论
l********l
发帖数: 9452
21

装好后甩个owncloud上去,啥dropbox/skydrive的都是渣。。。

【在 h*w 的大作中提到】
: 哦,如果那样倒是比较简单了
e*****3
发帖数: 1445
22
Mark
c*****z
发帖数: 171
23
如果考虑ntfs驱动的性能, 应该装Arch Linux. Arch带的ntfs-3g的版本很新 (2013.1.
13AR.1),支持big_writes, 读写性能超过Pogo原装的Paragon ufsd driver.
Debian的ntfs-3g还是2010的版本, 2013版的只在unstable源里有.
h*w
发帖数: 1182
24
如果是这样我不是白折腾了
我在dockstar上装了arch,但是还没有试过ntfs的性能
回去要好好比较一下回来汇报

1.

【在 c*****z 的大作中提到】
: 如果考虑ntfs驱动的性能, 应该装Arch Linux. Arch带的ntfs-3g的版本很新 (2013.1.
: 13AR.1),支持big_writes, 读写性能超过Pogo原装的Paragon ufsd driver.
: Debian的ntfs-3g还是2010的版本, 2013版的只在unstable源里有.

c*****z
发帖数: 171
25

没关系, Pogoplug就是用来折腾的. :)
我是用写入一个128M的文件来测试的,写入前后都执行sync:
sync; time bash -c "(dd if=/dev/zero of=test bs=4M count=32; sync)"
测试的时候没有接硬盘, 就用了一个读写速度在20MB/s的4GB SD卡,结果如下:
Stock OS:
Paragon ufsd, 10.439s (big_writes is invalid parameter), 13.xMB/s
Debian Squeeze:
ntfs-3g (1:2010.3.6-1), 14.7077 s, 9.1 MB/s (big_wirtes or not)
ntfs-3g (2013.1.13AR.1) default, 13.4184 s, 10.0 MB/s
ntfs-3g (2013.1.13AR.1) big_writes, 6.26881 s, 21.4 MB/s
Arch Linux:
ntfs-3g (2013.1.13AR.1) default, 18.1339 s, 7.4 MB/s
ntfs-3g (2013.1.13AR.1) big_writes, 6.42492 s, 20.9 MB/s
最后装好Debian和2013版的ntfs-3g, 外接Seagate 2T USB硬盘.盘上第一个是ntfs分区
, 第二个是ext3分区. 对比一下ntfs和ext3的速度:
ntfs 分区: 4.35111 s, 30.8 MB/s
ext3 分区: 4.26286 s, 31.5 MB/s

【在 h*w 的大作中提到】
: 如果是这样我不是白折腾了
: 我在dockstar上装了arch,但是还没有试过ntfs的性能
: 回去要好好比较一下回来汇报
:
: 1.

b******r
发帖数: 1137
26
usb做系统的话还是不要用ext3

com
ext3或

【在 h*w 的大作中提到】
: 抛砖引玉,pogoplug上面可以装很多东西。
: 本人新手,这个安装说明算是一个备份吧,如果要重新安装可以看看,也可以给新新手
: 参考。也请高手指点。
: 为什么没有装arch或者debian是因为看到有人说pogoplug自带的ntfs驱动比ntfs-3g性
: 能好,就想用原系统加装optware来安装samba共享。而且如果还想用my.pogoplug.com
: 也可以直接用。还没有实验过到底是自带的ntfs驱动快还是ntfs-3g快,就当瞎折腾了
: ,呵呵。
: 本说明基于POGO-E02,不保证在其他版本的pogoplug上也工作。对于使用本安装说明引
: 起的任何损失概不负责。
: ------------------------------

s***g
发帖数: 495
27
Life is short -- do not race.

【在 c*****z 的大作中提到】
:
: 没关系, Pogoplug就是用来折腾的. :)
: 我是用写入一个128M的文件来测试的,写入前后都执行sync:
: sync; time bash -c "(dd if=/dev/zero of=test bs=4M count=32; sync)"
: 测试的时候没有接硬盘, 就用了一个读写速度在20MB/s的4GB SD卡,结果如下:
: Stock OS:
: Paragon ufsd, 10.439s (big_writes is invalid parameter), 13.xMB/s
: Debian Squeeze:
: ntfs-3g (1:2010.3.6-1), 14.7077 s, 9.1 MB/s (big_wirtes or not)
: ntfs-3g (2013.1.13AR.1) default, 13.4184 s, 10.0 MB/s

h*w
发帖数: 1182
28
怎没打开big_writes?

【在 c*****z 的大作中提到】
:
: 没关系, Pogoplug就是用来折腾的. :)
: 我是用写入一个128M的文件来测试的,写入前后都执行sync:
: sync; time bash -c "(dd if=/dev/zero of=test bs=4M count=32; sync)"
: 测试的时候没有接硬盘, 就用了一个读写速度在20MB/s的4GB SD卡,结果如下:
: Stock OS:
: Paragon ufsd, 10.439s (big_writes is invalid parameter), 13.xMB/s
: Debian Squeeze:
: ntfs-3g (1:2010.3.6-1), 14.7077 s, 9.1 MB/s (big_wirtes or not)
: ntfs-3g (2013.1.13AR.1) default, 13.4184 s, 10.0 MB/s

c*****z
发帖数: 171
29

mount -o big_writes /dev/sdXY /media/sdXY

【在 h*w 的大作中提到】
: 怎没打开big_writes?
h*w
发帖数: 1182
30
抛砖引玉,pogoplug上面可以装很多东西。
本人新手,这个安装说明算是一个备份吧,如果要重新安装可以看看,也可以给新新手
参考。也请高手指点。
为什么没有装arch或者debian是因为看到有人说pogoplug自带的ntfs驱动比ntfs-3g性
能好,就想用原系统加装optware来安装samba共享。而且如果还想用my.pogoplug.com
也可以直接用。还没有实验过到底是自带的ntfs驱动快还是ntfs-3g快,就当瞎折腾了
,呵呵。这个主要是给家里只有windowns电脑的用,要是有linux的机器,还是用ext3或
ext4最快。
本说明基于POGO-E02,不保证在其他版本的pogoplug上也工作。对于使用本安装说明引
起的任何损失概不负责。
------------------------------
1. Find your Pogoplug ip address in your router.
2. Log into your Pogoplug online account that you created during the initial
setup of the POGO. Go into the advanced tab / Security. Make sure that "
Enable SSH access for this Pogoplug enabled device" is clicked. Also keep
the password handy for reference (if you didn't put a password in, it is "
ceadmin").
3. Use your favourite SSH protocol to login to the Pogoplug, or putty http://www.chiark.greenend.org.uk/~sgtatham/putty/ (在putty里面,选择文字就自动copy,右键粘贴)
4. Using your favourite SSH protocol to the IP Address from 1. and the
password you have you will connect to the Pogoplug as "root" and "ceadmin"
or your password set in step 2.
5. 将usb drive在windowns下用Minitool partition格式化成ext2或者ext3,然后将其
插入pogoplug的某个usb口上。如果不装很多东西的话512M也够了。也可用pogoplug来
分区,但是需要安装mke2fs (在安装ipkg之后用ipkg install e2fsprogs安装)。
6. 将文件系统改成读写,type "mount" to verify。
mount -o remount,rw / # 可以用 "mount -o remount,ro /" 将文件系统改回只读
mkdir /opt
# 再杀掉pogoplug的watch dog,以免有不必要的麻烦 ********************
killall hbwd
7. 决定将opteware装在哪里:onboard flash or usb drive (推荐装在usb drive上)
# 如果是onboard flash (假设是/dev/mtdblock2)************************
df -h # 查看各个分区情况,确认是否有mtdblock2或者还有mtdblock3
mount /dev/mtdblock2 /opt
# 如果是usb drive (假设是 /dev/sda)*********************************
mount /dev/sda1 /opt
8. 开始安装optware
wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/ipkg-opt_0.99.163-10_arm.ipk
tar -xOvzf ipkg-opt_*_arm.ipk ./data.tar.gz | tar -C / -xzvf –
mkdir -p /opt/etc/ipkg
echo "src cross http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable" > /opt/etc/ipkg/armel-feed.conf
echo "src native http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/native/unstable" >> /opt/etc/ipkg/armel-feed.conf
/opt/bin/ipkg update
/opt/bin/ipkg upgrade
9. 安装nano。如果喜欢用vi就跳过
/opt/bin/ipkg nano
10. 修改一些配置先
# 修改profile *******************************************************
cd /etc
nano profile
# 将下面内容写入,"#!/bin/bash"前面不要有空行空格之类的 *************
#!/bin/bash
#
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
export PATH=/opt/bin:/opt/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/opt/lib
# end of profile file ***********************************************
# 修改.bash_profile *************************************************
cd /root
nano .bash_profile
# 将下面内容写入 ****************************************************
PS1='[\u@\h \W]\$ '
export TERM=linux-lat
export PATH=/opt/bin:/opt/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/opt/lib
alias ls='ls --color=auto'
# end of .bash_profile file *****************************************
Then log out and log in again. In both cases make sure your "/opt"
subdirectories are first so that the new utilities will overide the original
. Modify the PATH to what is appropriate for your system if you have
installed other packages.
11. Pogoplug没有硬件时钟,需要网络对时
ipkg install psmisc
ipkg install tz
ln -s /opt/share/zoneinfo /usr/share/zoneinfo
ln -s /usr/share/zoneinfo/PST8PDT /etc/localtime
这用里Pacific Time做例子,For the US: Pacific - PST8PDT, Mountain - MST7MDT,
Central - CST6CDT, Eastern - EST5EDT
# Install the NTP daemon in order to set time on startup and continously ***
ipkg install ntp
cd /opt/etc/init.d
nano S77ntp
# 将内容改为如下 ****************************************************
#!/bin/sh
if [ -n "`/opt/bin/pidof ntpd`" ]; then
/usr/bin/killall ntpd 2>/dev/null
fi
if [ ! -d /var/spool/ntp ] ; then
mkdir -p /var/spool/ntp
fi
/opt/bin/ntpdate -u pool.ntp.org
/opt/bin/ntpd -g -c /opt/etc/ntp/ntp.conf -f /var/spool/ntp/ntp.drift -s /
var/spool/ntp -k /opt/etc/ntp -l /var/spool/ntp/ntp.log
# end of S77ntp file ************************************************
# 再修改一下ntp的conf文件,将US的server加入,再加入两个加拿大的 *****
nano /opt/etc/ntp/ntp.conf
# 将内容改为如下 ****************************************************
#Default conf file for ntpd
driftfile /var/spool/ntp/ntp.drift
#server 0.pool.ntp.org
#server 1.pool.ntp.org
#server 2.pool.ntp.org
server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org
server 0.ca.pool.ntp.org
server 1.ca.pool.ntp.org
# end of ntp.conf file ***********************************************
启动ntp之前还需要将ntp port加入/etc/services。否则将会看到如下错误信息
Error : Servname not supported for ai_socktype
nano /etc/services
将下面两行加入
ntp 123/tcp
ntp 123/udp
# 然后就可以启动ntp了 ************************************************
/opt/etc/init.d/S77ntp start
可以将S77ntp 加入到/etc/init.d/rcS让它每次reboot之后都自动启动。或者更好一点
,按下面提到的方法自动启动。
12. 安装openssh。pogoplug自带了dropbear,如果想要用openssh需要自己安装
ipkg install openssh
dropbear用了port 22,如果想让dropbear和sshd同时运行的话,改一下sshd的port
nano /opt/etc/openssh/sshd_config
将Port 从22改成2233之类的。其他的根据自己需要修改。
也可以让dropbear不要在启动的时候自动启动
nano /etc/init.d/db
注释掉/usr/sbin/dropbear就行了(#/usr/sbin/dropbear)
但是有个危险就是要是u盘挂掉了sshd起不来就废了,ssh进不去了。还是留着dropbear
安全点。
然后就可以启动sshd了
/opt/etc/init.d/S40sshd start
可以将S40sshd 加入到/etc/init.d/rcS让它每次reboot之后都自动启动。或者更好一
点,按下面提到的方法自动启动。
13. 安装openssh带的sftp。dropbear不带sftp所以没有办法用scp。用winscp操作文件
还是要简单一点。
ipkg install openssh-sftp-server
mkdir /usr/libexec
cp /opt/libexec/sftp-server /usr/libexec/
# Check that the file is executable for all; if not, chmod a+x sftp-server
安装之后即使sshd没有起动应该也可以用winscp通过dropbear连接pogoplug了
14. 安装blkid。因为要用做NAS,查看UUID,有blkid方便点。用uuid mount的话保证
你想mount的就是你要的那个盘
cd /tmp
wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/e2fslibs_1.41.14-1_arm.ipk
tar xvzf e2fslibs_1.41.14-1_arm.ipk
tar xvzf data.tar.gz
wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/e2fsprogs_1.41.14-1_arm.ipk
tar xvzf e2fsprogs_1.41.14-1_arm.ipk
tar xvzf data.tar.gz
cd /tmp/opt/lib
mv libb* /usr/lib
mv libc* /usr/lib
mv libe* /usr/lib
mv libu* /usr/lib
cd /tmp/opt/sbin
mv blkid /usr/sbin
mv findfs /usr/sbin
这样就可以用blkid to locate the optware flash drive by UUID, and use findfs
in /etc/init.d/rcS to mount it to /opt.
Next, locate the actual device UUID for the startup script. Run blkid to get
the UUID, and write this down.
blkid
/dev/sda1: UUID="2CB9-87AD" TYPE="vfat" LABEL="LeeJones"
/dev/sdb1: UUID="fc640330-9e49" TYPE="ext3" LABEL="OPTWARE"
In this case, Optware drive has a UUID of fc640330-9349. Now we should be
able to locate the Optware USB drive (or any particular drive) with the
findfs command:
findfs UUID="fc640330-9e49"
This returns the result of /dev/sdb1
15. 安装samba。samba2一直搞不定中文,只好安装samb35,号称需要的内存会大。
ipkg install samba35 # samba36也行
cd /opt/etc/samba/
# Backup the default configuration file *******************************
cp smb.conf smb.conf.save
nano smb.conf
# Insert the following information into the smb.conf file *************
[global]
workgroup = workgroup
server string = Pogoplug Samba35 Server
hosts allow = 192. 127. # you may need to put 10. here
null passwords = yes
guest account = root
log file = /opt/var/log/samba/log.%m
max log size = 50
security = share
load printers = no
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE
encrypt passwords = yes
smb passwd file = /opt/etc/samba/smbpasswd
dns proxy = no
preserve case = yes
dos charset = UTF-8
unix charset = UTF-8
display charset = UTF-8
os level = 255
[External]
comment = external hd
path = /opt/mnt/data # 改成你自己的
available = yes
public = yes
writable = yes
printable = no
create mask = 0777
guest ok = yes
browseable = yes
# end of smb.conf file ********************************************
# Testing the smb.conf file ***************************************
/opt/bin/testparm
# Mount your driver to /opt/mnt/data ******************************
cd /opt
mkdir mnt
cd mnt
mkdir data
mount /dev/sdb1 /opt/mnt/data # 假设你的外置硬盘是/dev/sdb,只有一个分区
# 如果外置硬盘式fat32分区, 显示中文要用utf8 option ****************
mount /dev/sdb1 /opt/mnt/data -t vfat -o iocharset=utf8,umask=0
# Start the Samba Server ******************************************
/opt/etc/init.d/S08samba start
# Restart the Samba Server ****************************************
/opt/etc/init.d/S08samba restart
# Subsequent adjustments to share information *********************
nano /opt/etc/samba/smb.conf
# Restart manually, necessary each time the power is cycled *******
/opt/etc/init.d/S08samba start
可以将S08samba 加入到/etc/init.d/rcS让它每次reboot之后都自动启动。或者更好一
点,按下面提到的方法自动启动。
16. 到这里就基本上samba和需要的东西都安装设置好了。还需要再设置一下让hdd
auto spin down,减少点发热和延长寿命
可以试下hdparm -S行不,我的不能spin down。安装scsi-idle可以。
ipkg install scsi-idle
scsi-stop /dev/sdb
如果外置硬盘停止了,表明可以用scsi-stop控制,然后用下面的script或者c程序自动
spin down,适用于kernel 2.6
# sh script 版本 **************************************************
cd /opt/sbin
nano sd-idle
将这个网页上提供的代码写入
http://tomatousb.org/forum/t-266375/
# 然后改成可执行 **************************************************
chmod +x sd-idle
Usage:
sd-idle device [idletime [checktime]] &
device /dev/sd[a-z]
idletime optional idle time in seconds before disk spindown (default
900)
checktime optional time in seconds to sleep between idle checks (default
30)
for example:
sd-idle /dev/sda &
sd-idle /dev/sdb 600 15 &
Note the & at the end of the command to run it in the background. Also note
that /dev/sdb can become /dev/sda if the device that was /dev/sda is removed
and the router is rebooted. You can run more than one copy of the script to
handle multiple disks.
但是这个说明是作者写给tomato usb用的,如果用pogoplug,直接用上面的说明你退出
ssh之后sd-idle也退出了。需要用nohup让它在后台运行,即使你退出了ssh也没事。还
有一个问题是nohup会在$home目录写一个nohup.out文件,但是我们又不想让系统的文
件系统保持在可读写状态,可以改一下这个out文件的位置。
mkdir /opt/log # 建一个目录存放out文件,可以放在U盘上随便什么位置
例子:
nohup sd-idle /dev/sda > /opt/log/nohup.out 2>&1 & # 输出到/opt/log/nohup.
out
nohup sd-idle /dev/sda >/dev/null 2>/dev/null & # 不想有任何输出
# c program 版本 ***************************************************
同一个作者还有一个c的程序。可能效率更高一点。自动以daemon运行
这个本来是给tomato usb用的,mips cpu,直接用原作者编译好的程序在pogoplug (
arm)上没法执行
原作者提供了代码,在dockstart上用安装的gcc重新编译了一下就可以在pogoplug上运
行了
从这里下载代码
http://tomatousb.org/local--files/start/sd-idle-2.6.tar.gz
# 编译之后改成可执行 ***********************************************
chmod +x sd-idle-2.6
Usage: ( runs as a daemon )
sd-idle-2.6 [ -d devices ] [ -i idletime ] [ -c checktime ] [ -h --help ]
[ -v --version ]
-d [a-z]+ include where a => /dev/sda, b => /dev/sdb (default is all
disks)
![a-z]+ exclude
-i n n seconds a disk must be idle to spin it down (default 900,
min 300)
-c n n seconds to sleep between idle checks (default 30, min 5)
-h --help usage
-v --version version
for example:
sd-idle-2.6 will manage all disks with default times
sd-idle-2.6 -d bc will manage /dev/sdb, /dev/sdc with default times
sd-idle-2.6 -d !bc will manage all disks except /dev/sdb, /dev/sdc with
default times
sd-idle-2.6 -i 600 will manage all disks spinning down after 600 seconds
or 10 minutes
17. 至此要安装的都基本上安装好,最后设置一下需要自动启动的程序。
可以直接修改 /etc/init.d/rcS, 将需要自动启动的加入。或者为了减少对原系统的改
动,可以用下面的步骤用另外的script启动
cd /etc/init.d
cp rcS rcS.save
nano rcS
# 在文件最后加入 **************************************************
mount `findfs UUID="fc640330-9e49"` /opt # mounts Optware USB, use your own
UUID。也可修改/etc/fstab,具体请google
# 或者加个 noatime option *****************************************
mount `findfs UUID="fc640330-9e49"` /opt -o noatime
/opt/etc/init.d/optrun.sh
# NOTE: The character before findfs is a back quote (`) not an apostrophe ('
). Look for the back quote on the tilde key (~) next to your number 1 key.
# 如果不想用my.pogoplug.com的话,可以将/etc/init.d/hbmgr.sh start注释掉
#/etc/init.d/hbmgr.sh start
# 修改好rcS之后保存。可以将文件系统改回只读 ************************
mount -o remount,ro /
# 创建 optrun.sh ***************************************************
cd /opt/etc/init.d/
nano optrun.sh
# 将下面内容写入 ***************************************************
#!/bin/sh
# runs optware startups
#
/opt/etc/init.d/hbmgr_mod.sh start
/opt/etc/init.d/S77ntp start
/opt/etc/init.d/S40sshd start
mount /dev/sdb1 /opt/mnt/data
/opt/etc/init.d/S08samba start
# end of optrun.sh *************************************************
有需要的话也可以将sd-idle-2.6加入
cp /etc/init.d/hbmgr.sh /opt/etc/init.d/hbmgr_mod.sh
# 打开hbmgr_mod.sh,注释掉跟my pogoplug相关的程序,不让他们启动 ****
# 其他的不用修改 ***************************************************
nano /opt/etc/init.d/hbmgr_mod.sh
# echo -n "Starting hbplug: "
# ulimit -n 65536
# ulimit -c unlimited
# nohup $INSTDIR/bin/hbwd $INSTDIR/bin/hbplug > /dev/null 2>&1 &
# echo "Success"
这样做的好处是如果脚本有问题,可以拔掉usb重新启动之后进入原系统进行修改。否
则不能ssh进入pogoplug就麻烦了。
还有我发现要是同时用my pogoplug和samba,windows访问samba共享盘的时候很慢,所
以干脆不要算了
还有一个发现是有hbwd运行的时候好像硬盘可以自动spin down,但是不是太确定,没
有仔细实验过
还留着hbmgr是要让它载入各个文件系统的驱动,或者一股脑把那些驱动加载全放到
optrun.sh里面,或者只加载你需要的那些,看个人需要了
18. 搞定, 重启一下。
sync
sync
sync
reboot
# 重启之后查看一下要启动的是否已经自动启动 ************************
ps
###### 参考文献 ######
1. http://www.nslu2-linux.org/wiki/Main/PlugComputers
2. http://pogomarvel.blogspot.com/2012/03/pogo-e02-pink-as-local-samba-server-for.html
3. http://openpogo.tumblr.com/
4. http://www.leeandcathy.com/2011/10/persistent-usb-mount-locations-on.html
5. http://tomatousb.org/forum/t-271603/sd-idle-2-6-disk-idle-spindown-program-for-2-6
6. http://www.palfans.net/unix-linux-nohup/
相关主题
pogoplug E02装了optware后有啥好的同步软件推荐?Pogoplug装了Archlinux后的问题
Debian比ARCH更难安装的多pogoplug 太折腾
我老发个垃圾由的nas,printer和asterisk的教程吧(老手绕行)pogoplug安装好了dibian,现在可以登录进去了
进入Hardware版参与讨论
b********k
发帖数: 173
31
mark
h**h
发帖数: 132
32
this is 抛玉引砖. thx

com

【在 h*w 的大作中提到】
: 抛砖引玉,pogoplug上面可以装很多东西。
: 本人新手,这个安装说明算是一个备份吧,如果要重新安装可以看看,也可以给新新手
: 参考。也请高手指点。
: 为什么没有装arch或者debian是因为看到有人说pogoplug自带的ntfs驱动比ntfs-3g性
: 能好,就想用原系统加装optware来安装samba共享。而且如果还想用my.pogoplug.com
: 也可以直接用。还没有实验过到底是自带的ntfs驱动快还是ntfs-3g快,就当瞎折腾了
: ,呵呵。这个主要是给家里只有windowns电脑的用,要是有linux的机器,还是用ext3或
: ext4最快。
: 本说明基于POGO-E02,不保证在其他版本的pogoplug上也工作。对于使用本安装说明引
: 起的任何损失概不负责。

s***g
发帖数: 495
33
Thanks for sharing.
Under Linux, I think ext4 is better if you have samba.

com

【在 h*w 的大作中提到】
: 抛砖引玉,pogoplug上面可以装很多东西。
: 本人新手,这个安装说明算是一个备份吧,如果要重新安装可以看看,也可以给新新手
: 参考。也请高手指点。
: 为什么没有装arch或者debian是因为看到有人说pogoplug自带的ntfs驱动比ntfs-3g性
: 能好,就想用原系统加装optware来安装samba共享。而且如果还想用my.pogoplug.com
: 也可以直接用。还没有实验过到底是自带的ntfs驱动快还是ntfs-3g快,就当瞎折腾了
: ,呵呵。这个主要是给家里只有windowns电脑的用,要是有linux的机器,还是用ext3或
: ext4最快。
: 本说明基于POGO-E02,不保证在其他版本的pogoplug上也工作。对于使用本安装说明引
: 起的任何损失概不负责。

l********l
发帖数: 9452
34
折腾,有现成的squeeze image不用,自己瞎搞啥
h*w
发帖数: 1182
35
没错。
这个主要给家里只有windowns机器的,ntfs拔下来插在电脑上即可
要是只用于网络共享应该还是ext3或者ext4最快

【在 s***g 的大作中提到】
: Thanks for sharing.
: Under Linux, I think ext4 is better if you have samba.
:
: com

s***g
发帖数: 495
36
samba的ntfs中文问题俺也遇到过。
vfat没问题,ntfs就是不行。但vfat文件必须小于4G。
换了ext4后中文文件名就没问题了。ext4还可用nfs。

com

【在 h*w 的大作中提到】
: 抛砖引玉,pogoplug上面可以装很多东西。
: 本人新手,这个安装说明算是一个备份吧,如果要重新安装可以看看,也可以给新新手
: 参考。也请高手指点。
: 为什么没有装arch或者debian是因为看到有人说pogoplug自带的ntfs驱动比ntfs-3g性
: 能好,就想用原系统加装optware来安装samba共享。而且如果还想用my.pogoplug.com
: 也可以直接用。还没有实验过到底是自带的ntfs驱动快还是ntfs-3g快,就当瞎折腾了
: ,呵呵。这个主要是给家里只有windowns电脑的用,要是有linux的机器,还是用ext3或
: ext4最快。
: 本说明基于POGO-E02,不保证在其他版本的pogoplug上也工作。对于使用本安装说明引
: 起的任何损失概不负责。

h*w
发帖数: 1182
37
这个?
http://wiki.slimdevices.com/index.php/SqueezePlug
上面都有啥?

【在 l********l 的大作中提到】
: 折腾,有现成的squeeze image不用,自己瞎搞啥
s***g
发帖数: 495
38
handy trusty spyware.

【在 h*w 的大作中提到】
: 这个?
: http://wiki.slimdevices.com/index.php/SqueezePlug
: 上面都有啥?

w*x
发帖数: 3456
39
我在用,没什么太多的东西,除了logitech那个squeezebox之外。那个我也给kill掉了
,贴个ps -e 给大家看看
PID TTY TIME CMD
1 ? 00:02:43 init
2 ? 00:00:00 kthreadd
3 ? 00:21:10 ksoftirqd/0
5 ? 00:00:58 kworker/u:0
6 ? 00:00:00 khelper
7 ? 00:00:00 kworker/u:1
10 ? 00:00:00 netns
161 ? 00:00:44 sync_supers
163 ? 00:00:02 bdi-default
165 ? 00:00:00 kblockd
171 ? 00:00:00 ata_sff
182 ? 00:00:00 khubd
275 ? 00:00:00 rpciod
286 ? 00:17:41 kswapd0
341 ? 00:00:00 fsnotify_mark
343 ? 00:00:00 aio
352 ? 00:00:00 nfsiod
359 ? 00:00:00 crypto
471 ? 00:00:00 mtdblock0
476 ? 00:00:00 mtdblock1
481 ? 00:00:00 mtdblock2
486 ? 00:00:00 mtdblock3
492 ? 00:00:00 orion_spi
531 ? 00:00:00 scsi_eh_0
532 ? 00:39:50 usb-storage
731 ? 00:00:00 udevd
773 ? 08:19:25 mlnet
796 ? 00:00:00 udevd
797 ? 00:00:00 udevd
810 ? 00:00:00 mv_crypto
1098 ? 00:00:00 dhclient
1126 ? 00:00:00 portmap
1138 ? 00:00:00 rpc.statd
1235 ? 00:00:59 rsyslogd
1271 ? 00:04:11 nmbd
1285 ? 06:35:58 asterisk
1294 ? 00:00:12 smbd
1317 ? 00:00:00 smbd
1328 ? 00:00:24 cron
1339 ? 00:00:00 dbus-daemon
1364 ? 00:00:18 sshd
1404 ? 00:11:52 ntpd
1435 ttyS0 00:00:00 getty
3968 ? 00:01:58 flush-8:0
3991 ? 00:00:23 sshd
3995 pts/0 00:00:00 bash
5958 ? 00:00:00 _plutorun
5959 ? 00:00:00 logger
5962 ? 00:00:00 _plutorun
5963 ? 00:00:00 _plutoload
5964 ? 00:00:01 pluto
6137 ? 00:00:00 _pluto_adns
6174 ? 00:00:00 xl2tpd
6211 ? 00:00:41 monit
8888 ? 02:03:02 transmission-da
11430 ? 00:00:00 kworker/0:1
11435 ? 00:00:00 kworker/0:2
11440 ? 00:00:00 sshd
11443 pts/1 00:00:00 bash
11447 pts/1 00:00:00 ps
19023 ? 01:46:43 mount.ntfs-3g
19073 ? 1-01:54:09 mount.ntfs-3g

【在 s***g 的大作中提到】
: handy trusty spyware.
s***g
发帖数: 495
40
My bad, should be handy-dandy software.

【在 w*x 的大作中提到】
: 我在用,没什么太多的东西,除了logitech那个squeezebox之外。那个我也给kill掉了
: ,贴个ps -e 给大家看看
: PID TTY TIME CMD
: 1 ? 00:02:43 init
: 2 ? 00:00:00 kthreadd
: 3 ? 00:21:10 ksoftirqd/0
: 5 ? 00:00:58 kworker/u:0
: 6 ? 00:00:00 khelper
: 7 ? 00:00:00 kworker/u:1
: 10 ? 00:00:00 netns

相关主题
pogoplug安装好了dibian,现在可以登录进去了前几天amazon deal的4tb seagate外痔硬盘到了
把sabnzbd 装到tomato上去, 很爽 (转载)请教个网络用户名的问题
有人在wl-520gU上装过cups吗?pogoplug到了
进入Hardware版参与讨论
h*w
发帖数: 1182
41
这个是debian上装的squeezebox? 还是arch?

【在 w*x 的大作中提到】
: 我在用,没什么太多的东西,除了logitech那个squeezebox之外。那个我也给kill掉了
: ,贴个ps -e 给大家看看
: PID TTY TIME CMD
: 1 ? 00:02:43 init
: 2 ? 00:00:00 kthreadd
: 3 ? 00:21:10 ksoftirqd/0
: 5 ? 00:00:58 kworker/u:0
: 6 ? 00:00:00 khelper
: 7 ? 00:00:00 kworker/u:1
: 10 ? 00:00:00 netns

t*****s
发帖数: 39
42
debian

【在 h*w 的大作中提到】
: 这个是debian上装的squeezebox? 还是arch?
h*w
发帖数: 1182
43
好像也没装啥,那就跟自己安装也差不多,不知道有什么优化的地方

【在 t*****s 的大作中提到】
: debian
t*****s
发帖数: 39
44
主要可能是安装简单点儿,找个u盘展开镜像文件就行(不用fdisk设置分区/安装系统等
),估计出错的可能性低一点儿。还有就是带个setup的界面可以选择安装比如samba/
nfs/minidlna以及设置硬盘休眠等

【在 h*w 的大作中提到】
: 好像也没装啥,那就跟自己安装也差不多,不知道有什么优化的地方
w*x
发帖数: 3456
45
我基本就是拿来跑transmission和mldonkey的

【在 h*w 的大作中提到】
: 好像也没装啥,那就跟自己安装也差不多,不知道有什么优化的地方
s***d
发帖数: 960
46
太复杂了,而且能不能详细说一下如何reboot后自动运行

com
★ 发自iPhone App: ChineseWeb 7.8

【在 h*w 的大作中提到】
: 抛砖引玉,pogoplug上面可以装很多东西。
: 本人新手,这个安装说明算是一个备份吧,如果要重新安装可以看看,也可以给新新手
: 参考。也请高手指点。
: 为什么没有装arch或者debian是因为看到有人说pogoplug自带的ntfs驱动比ntfs-3g性
: 能好,就想用原系统加装optware来安装samba共享。而且如果还想用my.pogoplug.com
: 也可以直接用。还没有实验过到底是自带的ntfs驱动快还是ntfs-3g快,就当瞎折腾了
: ,呵呵。这个主要是给家里只有windowns电脑的用,要是有linux的机器,还是用ext3或
: ext4最快。
: 本说明基于POGO-E02,不保证在其他版本的pogoplug上也工作。对于使用本安装说明引
: 起的任何损失概不负责。

l********l
发帖数: 9452
47

方便啊,装pkg全是gui操作,不用敲命令行啊。打开webmin后,跟qnap/Synology 定制
的nas os很相似了。

【在 h*w 的大作中提到】
: 好像也没装啥,那就跟自己安装也差不多,不知道有什么优化的地方
h*w
发帖数: 1182
48
第17步就是设置自动运行的
不过是比较复杂一点,有时间慢慢折腾

【在 s***d 的大作中提到】
: 太复杂了,而且能不能详细说一下如何reboot后自动运行
:
: com
: ★ 发自iPhone App: ChineseWeb 7.8

h*w
发帖数: 1182
49
哦,如果那样倒是比较简单了

【在 l********l 的大作中提到】
:
: 方便啊,装pkg全是gui操作,不用敲命令行啊。打开webmin后,跟qnap/Synology 定制
: 的nas os很相似了。

l********l
发帖数: 9452
50

装好后甩个owncloud上去,啥dropbox/skydrive的都是渣。。。

【在 h*w 的大作中提到】
: 哦,如果那样倒是比较简单了
相关主题
圣座咋连到外面去求助:Dockstar/Goflex Net 安装Debian后的启动问题!
请问这就是那个神什么吗?问问折腾pogoplug的问题。
地沟由为什么这么火?完全是误导吧你们的pogoplug load是多少?
进入Hardware版参与讨论
e*****3
发帖数: 1445
51
Mark
c*****z
发帖数: 171
52
如果考虑ntfs驱动的性能, 应该装Arch Linux. Arch带的ntfs-3g的版本很新 (2013.1.
13AR.1),支持big_writes, 读写性能超过Pogo原装的Paragon ufsd driver.
Debian的ntfs-3g还是2010的版本, 2013版的只在unstable源里有.
h*w
发帖数: 1182
53
如果是这样我不是白折腾了
我在dockstar上装了arch,但是还没有试过ntfs的性能
回去要好好比较一下回来汇报

1.

【在 c*****z 的大作中提到】
: 如果考虑ntfs驱动的性能, 应该装Arch Linux. Arch带的ntfs-3g的版本很新 (2013.1.
: 13AR.1),支持big_writes, 读写性能超过Pogo原装的Paragon ufsd driver.
: Debian的ntfs-3g还是2010的版本, 2013版的只在unstable源里有.

c*****z
发帖数: 171
54

没关系, Pogoplug就是用来折腾的. :)
我是用写入一个128M的文件来测试的,写入前后都执行sync:
sync; time bash -c "(dd if=/dev/zero of=test bs=4M count=32; sync)"
测试的时候没有接硬盘, 就用了一个读写速度在20MB/s的4GB SD卡,结果如下:
Stock OS:
Paragon ufsd, 10.439s (big_writes is invalid parameter), 13.xMB/s
Debian Squeeze:
ntfs-3g (1:2010.3.6-1), 14.7077 s, 9.1 MB/s (big_wirtes or not)
ntfs-3g (2013.1.13AR.1) default, 13.4184 s, 10.0 MB/s
ntfs-3g (2013.1.13AR.1) big_writes, 6.26881 s, 21.4 MB/s
Arch Linux:
ntfs-3g (2013.1.13AR.1) default, 18.1339 s, 7.4 MB/s
ntfs-3g (2013.1.13AR.1) big_writes, 6.42492 s, 20.9 MB/s
最后装好Debian和2013版的ntfs-3g, 外接Seagate 2T USB硬盘.盘上第一个是ntfs分区
, 第二个是ext3分区. 对比一下ntfs和ext3的速度:
ntfs 分区: 4.35111 s, 30.8 MB/s
ext3 分区: 4.26286 s, 31.5 MB/s

【在 h*w 的大作中提到】
: 如果是这样我不是白折腾了
: 我在dockstar上装了arch,但是还没有试过ntfs的性能
: 回去要好好比较一下回来汇报
:
: 1.

b******r
发帖数: 1137
55
usb做系统的话还是不要用ext3

com
ext3或

【在 h*w 的大作中提到】
: 抛砖引玉,pogoplug上面可以装很多东西。
: 本人新手,这个安装说明算是一个备份吧,如果要重新安装可以看看,也可以给新新手
: 参考。也请高手指点。
: 为什么没有装arch或者debian是因为看到有人说pogoplug自带的ntfs驱动比ntfs-3g性
: 能好,就想用原系统加装optware来安装samba共享。而且如果还想用my.pogoplug.com
: 也可以直接用。还没有实验过到底是自带的ntfs驱动快还是ntfs-3g快,就当瞎折腾了
: ,呵呵。这个主要是给家里只有windowns电脑的用,要是有linux的机器,还是用ext3或
: ext4最快。
: 本说明基于POGO-E02,不保证在其他版本的pogoplug上也工作。对于使用本安装说明引
: 起的任何损失概不负责。

s***g
发帖数: 495
56
Life is short -- do not race.

【在 c*****z 的大作中提到】
:
: 没关系, Pogoplug就是用来折腾的. :)
: 我是用写入一个128M的文件来测试的,写入前后都执行sync:
: sync; time bash -c "(dd if=/dev/zero of=test bs=4M count=32; sync)"
: 测试的时候没有接硬盘, 就用了一个读写速度在20MB/s的4GB SD卡,结果如下:
: Stock OS:
: Paragon ufsd, 10.439s (big_writes is invalid parameter), 13.xMB/s
: Debian Squeeze:
: ntfs-3g (1:2010.3.6-1), 14.7077 s, 9.1 MB/s (big_wirtes or not)
: ntfs-3g (2013.1.13AR.1) default, 13.4184 s, 10.0 MB/s

h*w
发帖数: 1182
57
怎没打开big_writes?

【在 c*****z 的大作中提到】
:
: 没关系, Pogoplug就是用来折腾的. :)
: 我是用写入一个128M的文件来测试的,写入前后都执行sync:
: sync; time bash -c "(dd if=/dev/zero of=test bs=4M count=32; sync)"
: 测试的时候没有接硬盘, 就用了一个读写速度在20MB/s的4GB SD卡,结果如下:
: Stock OS:
: Paragon ufsd, 10.439s (big_writes is invalid parameter), 13.xMB/s
: Debian Squeeze:
: ntfs-3g (1:2010.3.6-1), 14.7077 s, 9.1 MB/s (big_wirtes or not)
: ntfs-3g (2013.1.13AR.1) default, 13.4184 s, 10.0 MB/s

c*****z
发帖数: 171
58

mount -o big_writes /dev/sdXY /media/sdXY

【在 h*w 的大作中提到】
: 怎没打开big_writes?
b********k
发帖数: 173
59
mark
h*w
发帖数: 1182
60
charlez,能把你的smb.conf贴出来看看吗?
我在dockstar上的arch,nfts的外置硬盘,写入峰值才14MB/s,还不稳定
用了big_writes倒是有很大提高,但是没有到期望的>20MB/s
改了几个设置好像都没有提高速度
用的winxp,teracopy显示的速度

【在 c*****z 的大作中提到】
:
: mount -o big_writes /dev/sdXY /media/sdXY

相关主题
被pogoplug吓了一跳Debian比ARCH更难安装的多
pogoplug 折腾后还能连pogoplug.com 吗?我老发个垃圾由的nas,printer和asterisk的教程吧(老手绕行)
pogoplug E02装了optware后有啥好的同步软件推荐?Pogoplug装了Archlinux后的问题
进入Hardware版参与讨论
a9
发帖数: 21638
61
差不多就这意思了。

【在 h*w 的大作中提到】
: charlez,能把你的smb.conf贴出来看看吗?
: 我在dockstar上的arch,nfts的外置硬盘,写入峰值才14MB/s,还不稳定
: 用了big_writes倒是有很大提高,但是没有到期望的>20MB/s
: 改了几个设置好像都没有提高速度
: 用的winxp,teracopy显示的速度

h*w
发帖数: 1182
62
啊?就这个的速度了?这也太可怜了
明天试试pogoplug自带的ntfs驱动速度有多快

【在 a9 的大作中提到】
: 差不多就这意思了。
c*****z
发帖数: 171
63

我装的Debian 6, Samba 3.5.6, 然后smb.conf改了下面这些:
[global]
security=SHARE
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=
131072
write cache size = 2097152
use sendfile = yes
min receivefile size = 16384
aio read size = 16384
aio write size = 16384
硬盘是Seagate Expansion 2TB, USB 3.0. XP fastcopy 大文件到ntfs分区的速度大概
是19+ MB/s. smbd和mount.ntfs的CPU占用75%左右. 换成ext3分区, 25+ MB/s, smbd
CPU占用 68% 左右.

【在 h*w 的大作中提到】
: charlez,能把你的smb.conf贴出来看看吗?
: 我在dockstar上的arch,nfts的外置硬盘,写入峰值才14MB/s,还不稳定
: 用了big_writes倒是有很大提高,但是没有到期望的>20MB/s
: 改了几个设置好像都没有提高速度
: 用的winxp,teracopy显示的速度

h*w
发帖数: 1182
64
谢谢。晚上回去试试
不过我测的通过网络写入的实际的速度,可能跟你测得速度还是有差别
我用dd大概25-26MB/s

【在 c*****z 的大作中提到】
:
: 我装的Debian 6, Samba 3.5.6, 然后smb.conf改了下面这些:
: [global]
: security=SHARE
: socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=
: 131072
: write cache size = 2097152
: use sendfile = yes
: min receivefile size = 16384
: aio read size = 16384

h*w
发帖数: 1182
65
pogoplug e02上,optware上装的samba35
实验的结果paragon的ntfs完胜哦
还没有改过smb.conf
写可以达到29MB/s,就是一开始的时候有点停顿
读尽然还要慢点 23MB/s
xp上teracopy显示的速度
不知是不是跟dockstar内存小点还有关系

【在 c*****z 的大作中提到】
:
: 我装的Debian 6, Samba 3.5.6, 然后smb.conf改了下面这些:
: [global]
: security=SHARE
: socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=
: 131072
: write cache size = 2097152
: use sendfile = yes
: min receivefile size = 16384
: aio read size = 16384

1 (共1页)
进入Hardware版参与讨论
相关主题
被pogoplug吓了一跳把sabnzbd 装到tomato上去, 很爽 (转载)
pogoplug 折腾后还能连pogoplug.com 吗?有人在wl-520gU上装过cups吗?
pogoplug E02装了optware后有啥好的同步软件推荐?前几天amazon deal的4tb seagate外痔硬盘到了
Debian比ARCH更难安装的多请教个网络用户名的问题
我老发个垃圾由的nas,printer和asterisk的教程吧(老手绕行)pogoplug到了
Pogoplug装了Archlinux后的问题圣座咋连到外面去
pogoplug 太折腾请问这就是那个神什么吗?
pogoplug安装好了dibian,现在可以登录进去了地沟由为什么这么火?完全是误导吧
相关话题的讨论汇总
话题: 00话题: opt话题: dev话题: etc话题: pogoplug