Install ipkg on ix4-300d

Post Reply
User avatar
Scramble
Posts: 3
Joined: Wed Sep 11, 2013 11:38 am

Install ipkg on ix4-300d

Post by Scramble » Tue Oct 01, 2013 12:43 am

Installing ipkg is the gateway to customising/hacking your iomega nas. This method works for iomega nas with ARM architecture, here is how to get it done.
You need to install and configure ipkg-opt as everything in the /opt folder is persistent. Here you have about 16gb for your apps.
SSH into your nas logging in as root.
download and install the ipkg-opt package.

Code: Select all

wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/ipkg-opt_0.99.163-10_arm.ipk
tar -xOvzf ipkg-opt_0.99.163-10_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
rm ipkg-opt_0.99.163-10_arm.ipk
/opt/bin/ipkg update
ipkg is now ready, so to install some basics

Code: Select all

/opt/bin/ipkg install python26 py26-cheetah py26-openssl par2cmdline unrar unzip git gcc
Programs are located in /opt/bin or /opt/sbin. Now just need to nano /etc/profile to add the new directories to the $PATH variable. This is not as staightforward as it seems as you need to make the change permanent after a reboot. So we write a script to do this.

Code: Select all

nano /opt/editprofile.sh
Paste the following-

Code: Select all

#!/bin/sh
mknod -m0660 /dev/loop3 b 7 3
chown root.disk /dev/loop3
mkdir /tmp/apps
mount -o loop /boot/images/apps /tmp/apps
nano /tmp/apps/etc/profile
sleep 1
umount /tmp/apps
rm /dev/loop3
Now make executeable and run.

Code: Select all

chmod +x /opt/editprofile.sh
/opt/editprofile.sh
Add

Code: Select all

PATH=/opt/bin:/opt/sbin:$PATH
at the end. Note installing the lame php and mysql server through the web interface will mess with the PATH variable so don't do it! better install all that via ipkg now you have it.
Iomega StorCenter ix4-300d
Instantly get 20GB of cloud storage https://copy.com?r=gvPfNQ

barker0
Posts: 4
Joined: Sun Jan 05, 2014 4:08 am

Re: Install ipkg on ix4-300d

Post by barker0 » Sun Jan 05, 2014 4:17 am

I really apologize if this is a stupid question. I am new here and plan to keep reading after this post. (I will update this post if I answer my own question). If there is a thread dedicated to this I just haven't found yet I am more than willing to read if you would be gracious enough to provide the link!

How did you enable SSH into your Ix4-300d? I just setup my Ix4 yesterday. My firmware is "4.0.6.19294", so going to <my-ip>/diagnostics.html results in the page not found error.

If I need to start all over I would rather do that now than after I have been using the system for a few months!

Thanks in advance!

barker0
Posts: 4
Joined: Sun Jan 05, 2014 4:08 am

Re: Install ipkg on ix4-300d

Post by barker0 » Sun Jan 05, 2014 4:47 am

I answered my own question... sorry to be annoying. I am posting this here in case anybody searches and sees my post. Answer found here:
http://stevenbreuls.com/2013/04/ssh-acc ... -300d-nas/

<summary in case that other page changes>
Firmware :
4.0.2.9960(Lenovo) : http:// [NAS IP]/manage/diagnostics.html
3.3.4.29856(Iomega) : http:// [NAS IP] /diagnostics.htm
not working? Try : http:// [NAS IP] /support.html

This page will allow you to enable SSH with a password.

Login:
Username : root
Password : soho + password (if password = 123 ==> soho123 )

superdupe
Posts: 2
Joined: Sun Mar 16, 2014 11:41 pm

Re: Install ipkg on ix4-300d

Post by superdupe » Sun Mar 16, 2014 11:58 pm

Hi... I'm trying to add pyTivo to my px4 to make it a TiVo video server... I tried Scramble's solution for the ix4, but when I try to do the ipkg update, I get "cannot execute binary file" response. I'm not much of a unix/Linux person so bear with me... But I'm guessing in the updates made to the px4 vs the ix4 some parts of the os were locked down? Any help would be appreciated... Any ideas? Thanks!

Rmilyard
Posts: 1
Joined: Thu Apr 24, 2014 3:37 am

Re: Install ipkg on ix4-300d

Post by Rmilyard » Thu Apr 24, 2014 3:40 am

Is there a way to restore system? I tried some of this but think messed something up.

If so can you restore it without deleting all movies I have on it?

barker0
Posts: 4
Joined: Sun Jan 05, 2014 4:08 am

Re: Install ipkg on ix4-300d

Post by barker0 » Mon Apr 28, 2014 2:02 am

straight up restore I'm not sure on, but what makes you think something is messed up? I might be able to send a file or peak at a config to tell you what is there with a bit more description.

madcowke
Posts: 3
Joined: Thu Dec 25, 2014 9:52 pm

Re: Install ipkg on ix4-300d

Post by madcowke » Thu Dec 25, 2014 10:01 pm

I was able to install the ipkg package as well as mysql (Install mysql --- /opt/bin/ipkg install mysql), php and apache (/opt/bin/ipkg install php-apache).

I can get apache running but i can't include de libphp5 module in het httpd.conf file of apache. When i include it it stops with this error..

Cannot load /opt/libexec/libphp5.so into server: /opt/libexec/libphp5.so: Unable to run arch-specific checks\n

if i don't include the module and put a php file in /opt/share/www directory i get the file served but not interpreted. :-(

<?php

phpinfo();

?>

any idea how to fix the arch-specific checks thing???

madcowke
Posts: 3
Joined: Thu Dec 25, 2014 9:52 pm

Re: Install ipkg on ix4-300d

Post by madcowke » Thu Dec 25, 2014 10:10 pm

this is the include line in httpd.conf of apache

Include /opt/etc/apache2/conf.d/php.conf

i checked the directory with modules and php is there:

root@ix4-300d:/opt/libexec# dir
httpd.exp mod_authn_dbm.so mod_autoindex.so mod_disk_cache.so mod_imagemap.so mod_mime_magic.so mod_reqtimeout.so mod_usertrack.so
libphp5.so mod_authn_default.so mod_cache.so mod_dumpio.so mod_include.so mod_negotiation.so mod_rewrite.so mod_version.so
mod_actions.so mod_authn_file.so mod_cern_meta.so mod_env.so mod_info.so mod_proxy.so mod_setenvif.so mod_vhost_alias.so
mod_alias.so mod_authz_dbm.so mod_cgid.so mod_expires.so mod_ldap.so mod_proxy_ajp.so mod_speling.so mysqld
mod_asis.so mod_authz_default.so mod_dav.so mod_ext_filter.so mod_log_config.so mod_proxy_balancer.so mod_ssl.so
mod_auth_basic.so mod_authz_groupfile.so mod_dav_fs.so mod_file_cache.so mod_log_forensic.so mod_proxy_connect.so mod_status.so
mod_auth_digest.so mod_authz_host.so mod_dbd.so mod_filter.so mod_logio.so mod_proxy_ftp.so mod_substitute.so
mod_authn_anon.so mod_authz_owner.so mod_deflate.so mod_headers.so mod_mem_cache.so mod_proxy_http.so mod_unique_id.so
mod_authn_dbd.so mod_authz_user.so mod_dir.so mod_ident.so mod_mime.so mod_proxy_scgi.so mod_userdir.so





and this is what in php.conf:


#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#

LoadModule php5_module libexec/libphp5.so

#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

madcowke
Posts: 3
Joined: Thu Dec 25, 2014 9:52 pm

Re: Install ipkg on ix4-300d

Post by madcowke » Sun Dec 28, 2014 10:29 am

I have given up on the ipkg thing. :?

I was able to get the same (mysql, php and phpmyadmin) using the lifelineapps.

Here is how to...

http://www.baerty.be/activiteiten.php?view=55

maniac1181
Posts: 3
Joined: Thu Mar 12, 2015 7:34 pm

Re: Install ipkg on ix4-300d

Post by maniac1181 » Thu Apr 09, 2015 9:52 pm

Madcowke, you're saying you managed to install phpmyadmin but I only see the instructions for PHP and MySQL.
madcowke wrote:I have given up on the ipkg thing. :?

I was able to get the same (mysql, php and phpmyadmin) using the lifelineapps.

Here is how to...

http://www.baerty.be/activiteiten.php?view=55
How did you manage to get phpmyadmin working?

Thanks

amr42
Posts: 28
Joined: Mon Jan 16, 2012 9:34 pm

Re: Install ipkg on ix4-300d

Post by amr42 » Fri May 01, 2015 10:41 pm

When I try to run the first command:

wget http://ipkg.nslu2-linux.org/feeds/optwa ... 10_arm.ipk


I get:

ipkg-opt_0.99.163-10_arm.ipk: Read-only file system

Cannot write to `ipkg-opt_0.99.163-10_arm.ipk' (Read-only file system).

I am on firmware v4.1.108.32627. Has something changed since this posting?

Thx,

Post Reply