Projekt Qnap: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 53: | Line 53: | ||
# copy admin lines in /etc/passwd /etc/shadow for root | # copy admin lines in /etc/passwd /etc/shadow for root | ||
add file /opt/etc/sudoers.d/joachim with content "joachim ALL = (root) ALL" and permissions 0440 | add file /opt/etc/sudoers.d/joachim with content "joachim ALL = (root) ALL" and permissions 0440 | ||
* perl is missing libperl | |||
# use perl from other repo | |||
wget http://ipkg.nslu2-linux.org/feeds/optware/cs05q1armel/cross/stable/perl_5.10.0-6_arm.ipk | |||
# fix md5sum to quiece ipkg | |||
md5sum perl_5.10.0-6_arm.ipk # -> db8d74945234dd9cfb0b848c7601e6fe | |||
vi /opt/lib/ipkg/lists/cs08q1armel # find line "Package: perl" and replace the md5sum | |||
ipkg install perl_5.10.0-6_arm.ipk |
Revision as of 20:01, 2 March 2012
History of my QNAP TS-419PII
- Started with 2 disks WD20EARX as RAID1 2012-01-14
- Added another WD20EARX at 2012-01-31
[2 disk raid1 to 3 disk raid5 failed?]
- Discovered high Load_Cycle_Count. This fix needs optware QPKG
ipkg update ipkg install make ipkg install gcc # neded? cd /tmp wget http://dfn.dl.sourceforge.net/project/idle3-tools/idle3-tools-0.9.1.tgz tar xzvf idle3-tools-0.9.1.tgz cd idle3-tools-0.9.1 CC=gcc make ./idle3ctl -g105 /dev/sd[abc] ./idle3ctl -s300 /dev/sdc # unplug sdc, wait for qnap to ack # replug sdc, wait for resync to finish # repeat for sda and sdb
- no smartctl (only get_hd_smartinfo) and the one provided by ipkg just segfaults -> compile my own
ipkg install grep ipkg install gawk ipkg install optware-devel # needed? export PATH=/opt/bin:$PATH wget http://heanet.dl.sourceforge.net/project/smartmontools/smartmontools/5.42/smartmontools-5.42.tar.gz tar xzvf smartmontools-5.42.tar.gz cd smartmontools-5.42 ./configure make make install # -> same problem, try dev trunk (later try older version?) cd /tmp svn co https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk/smartmontools smartmontools cd smartmontools ./autogen.sh # -> fails because perl does not work. Seems ipkg is missing libperl. Reported on freenode #nslu2-general build 5.38 from tar and execute smrtctl works
- missing home directory
mkdir -p /share/homes/joachim chown joachim /share/homes/joachim ln -s /share/joachim /share/homes/joachim/share cp /root/.profile /root/.bashrc /share/homes/joachim # edit ps1 and add /opt/bin to PATH in .profile
- no sudo
ipkg install sudo # copy admin lines in /etc/passwd /etc/shadow for root add file /opt/etc/sudoers.d/joachim with content "joachim ALL = (root) ALL" and permissions 0440
- perl is missing libperl
# use perl from other repo wget http://ipkg.nslu2-linux.org/feeds/optware/cs05q1armel/cross/stable/perl_5.10.0-6_arm.ipk # fix md5sum to quiece ipkg md5sum perl_5.10.0-6_arm.ipk # -> db8d74945234dd9cfb0b848c7601e6fe vi /opt/lib/ipkg/lists/cs08q1armel # find line "Package: perl" and replace the md5sum ipkg install perl_5.10.0-6_arm.ipk