General NAS-Central Forums

Welcome to the NAS community
It is currently Sun Apr 23, 2017 3:46 pm

All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Install ipkg on ix4-300d
PostPosted: Tue Oct 01, 2013 12:43 am 
Offline
User avatar

Joined: Wed Sep 11, 2013 11:38 am
Posts: 3
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:
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:
/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:
nano /opt/editprofile.sh
Paste the following-
Code:
#!/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:
chmod +x /opt/editprofile.sh
/opt/editprofile.sh
Add
Code:
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


Top
 Profile  
 
PostPosted: Sun Jan 05, 2014 4:17 am 
Offline

Joined: Sun Jan 05, 2014 4:08 am
Posts: 4
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!


Top
 Profile  
 
PostPosted: Sun Jan 05, 2014 4:47 am 
Offline

Joined: Sun Jan 05, 2014 4:08 am
Posts: 4
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 )


Top
 Profile  
 
PostPosted: Sun Mar 16, 2014 11:58 pm 
Offline

Joined: Sun Mar 16, 2014 11:41 pm
Posts: 2
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!


Top
 Profile  
 
PostPosted: Thu Apr 24, 2014 3:40 am 
Offline

Joined: Thu Apr 24, 2014 3:37 am
Posts: 1
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?


Top
 Profile  
 
PostPosted: Mon Apr 28, 2014 2:02 am 
Offline

Joined: Sun Jan 05, 2014 4:08 am
Posts: 4
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.


Top
 Profile  
 
PostPosted: Thu Dec 25, 2014 10:01 pm 
Offline

Joined: Thu Dec 25, 2014 9:52 pm
Posts: 3
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???


Top
 Profile  
 
PostPosted: Thu Dec 25, 2014 10:10 pm 
Offline

Joined: Thu Dec 25, 2014 9:52 pm
Posts: 3
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


Top
 Profile  
 
PostPosted: Sun Dec 28, 2014 10:29 am 
Offline

Joined: Thu Dec 25, 2014 9:52 pm
Posts: 3
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


Top
 Profile  
 
PostPosted: Thu Apr 09, 2015 9:52 pm 
Offline

Joined: Thu Mar 12, 2015 7:34 pm
Posts: 3
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


Top
 Profile  
 
PostPosted: Fri May 01, 2015 10:41 pm 
Offline

Joined: Mon Jan 16, 2012 9:34 pm
Posts: 28
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,


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group