Install Package Manager on IOmega/Lenovo IX4-300d NAS

The Optware package manager is a system for delivering software packages to NAS devices and other Linux-based small computer systems. To install additional services to your NAS we need to install IPKG first, on the ix4-300d, IPKG is already installed so we only have to add repositories.

Requirements
  • SSH Access(Guide Here)
Adding IPKG Optware repositories

Open PUTTY/Terminal and execute the following lines. This will add IPKG repositories to your NAS which allow you to Linux packages.

feed=http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable
ipk_name=$(wget -qO- $feed/Packages | awk '/^Filename: ipkg-opt/ {print $2}')
wget $feed/$ipk_name
tar -xOvzf $ipk_name ./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

To clean up your NAS, remove the installation package:

rm ipkg*.ipk
/opt/bin/ipkg update

Now your NAS is ready for installing new services!

ix4-300dipkgputty

Installing Packages

You can try ipkg by installing the very useful nano editor using the following command:

/opt/bin/ipkg install nano
Useful commands

List all installed applications:

/opt/bin/ipkg list_installed

List all available apps on the repository

/opt/bin/ipkg list

Install an application

/opt/bin/ipkg install "appname"

Remove Application

/opt/bin/ipkg remove "appname"

!!! Never remove any of the default installed applications !!! :
binutils
bzip2
diffutils
expat
libc-dev
libcurl
libdb
libevent
libnsl
libstdc++
ncurses
ncursesw
openssl
rcs
readline
sqlite
zlib

0 0 vote
Article Rating

Leave a Reply

45 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Rich
Rich
6 years ago

THANKS! These are great concise instructions!

Joshua M.
Joshua M.
6 years ago

Thanks for the insights. Is there a reason you’ve chosen the unstable branch instead of the stable branch for your feed?

alfred
alfred
6 years ago

Is there a way to make the ix4-300d a full webserver where i can host multiple virtual hosts?

alfred
alfred
6 years ago
Reply to  Steven

thank you very much Steven, i really appreciate that

alfred
alfred
6 years ago
Reply to  Steven

hi Steven, is there any progress on this topic?

Almar
Almar
6 years ago

Had to execute the following command before getting app listed

export IPKG_CONF_DIR=/opt/etc

rmilyard
6 years ago

Getting this error when doing second export command:

login as: root
root@10.0.1.220‘s password:
root@MilyardMedia2:/# export feed=http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable
root@MilyardMedia2:/# export ipk_name=wget -qO- $feed/Packages | awk ‘/^Filename: ipkg-opt/ {print $2}’
-sh: export: `-qO-‘: not a valid identifier
-sh: export: `http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages’: not a valid identifier
root@MilyardMedia2:/#

rmilyard
6 years ago
Reply to  Steven

Thanks. I am trying to get setup now. I got a new 4tb for just this and moved all my other files to my 12tb.

rmilyard
6 years ago
Reply to  Steven

Great! I will give it a try again!

Also by any chance you installed Iomega’s MySQL and config it for xbmc?

alfred
alfred
6 years ago

is it safe to upgrade the firmware of the ix4-300d? or do i have to start over with all the things i’ve done?

alfred
alfred
6 years ago

upgrade is done, didn’t have to do anything all my changes still work.
i managed to install a second apache for my public webserver, and set the port of the internal webserver on a other port so port 80 is free for the secondary webserver, only can’t get php working with that server, do you have any idea

alfred
alfred
6 years ago

i’ll go on also, and let you know if i find any progress 🙂

rmilyard
5 years ago

When doing the 5th command getting this error:

-sh: syntax error near unexpected token `;&’

rmilyard
5 years ago
Reply to  Steven

With just the one > not >>?

Also I keep running into issues, Just wondering if would be willing to help me out remote and I can write all the commands down etc to post?

Since having to replace this NAS keep running into little issues. Trying to get this backup so wife and kids can use the HTPC.

rmilyard
5 years ago
Reply to  Steven

Steven you think you could help me out trying to get this going? I am not a Linux/Unix guy by any means and I am having issues. I am got this new NAS and trying to get Sickbeard and CouchPotatoe running on it and keep getting errors when trying most of the commands here now. I think WordPress messed up some of them but I don’t really know the correct syntax for them, If you could help me out remotely of something I will be willing to donate to your site etc. I am working from home today so I… Read more »

Marius
Marius
5 years ago

When I try to update ipkg i get this:

root@NAS:/opt/etc# /opt/bin/ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/native/unstable/Packages
Updated list of available packages in /opt/lib/ipkg/lists/native
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages
An error ocurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 3: `wget –passive-ftp -q -P /opt/ipkg-naEv0s http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages

any idea how to fix it?

Marius
Marius
5 years ago

Steven do You use IRC channel or any other chat, where we can talk and do some live testing?

Mike
Mike
5 years ago

Amazing – Thank YOU! I’ve been trying to figure out how to put FLAC on my Lenovo NAS so I could convert some .wav files. This did the trick!!

Marius
Marius
5 years ago

Hi, after using df command I get:

root@NAS:/# df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 51200 6308 44892 13% /
/dev/root.old 11339 3244 8095 29% /initrd
none 51200 6308 44892 13% /
ubi0:boot 913360 358152 550368 40% /boot
/dev/mapper/md0_vg-BFDlv 4128448 8192 3910544 1% /mnt/boot
/dev/loop0 681297 610599 70698 90% /mnt/apps
/dev/loop1 7657 1005 6243 14% /mnt/etc
none 7657 1005 6243 14% /etc
/dev/loop2 128 128 0 100% /oem
tmpfs 51184 180 51004 1% /run
tmpfs 5120 4 5116 1% /run/lock
tmpfs 102360 0 102360 0% /run/shm
/dev/mapper/md0_vg-vol1 16493480 724464 15601452 5% /mnt/system
/dev/mapper/1714d3ec_vg-lv371485ca 11454436576 162780 11454273796 1% /mnt/pools/A/A0

So it looks like there is no opt partition.
Maybe it is possible to install ipkg to mnt/system?

Marius
Marius
5 years ago

Any updates on that issue?

Konsti
Konsti
5 years ago

Hello everyone, seems that latest firmware is somewhate “destructive” for /opt/ as any ipkg installed is not retained upon reboot… hope someone can figure out a solution… many thanks!

Ashok
5 years ago
Reply to  Konsti

I agree – same experience here. The latest firmware update is destructive for /opt. Please help!

sesew
sesew
5 years ago

same here.

dominic
dominic
5 years ago

how can we fix this problem with /opt ?

sesew
sesew
5 years ago

I fixed it. With next link: http://vincesoft.blogspot.be/2012/01/how-to-install-software-into-your.html
This fixed the ipkg. Further i followed the next steps here.

sesew
sesew
5 years ago

today i installed latest firmware. I repaired the startup script to get nzbget worked again.

tafel
tafel
5 years ago

Thanks sesew. That modification worked fine for me.

nadeaugu
nadeaugu
5 years ago

Hi, your posts are all a great help in understanding the capabilities of the ix4! I have an issue and I’m wondering if you can give me a clue as to how I would solve that! I’ve installed PHP through the LifelineApps and I’m trying to install the Zip module as well as Bzip2 so that I can use PhpMyAdmin on the machine. I’ve located the PHP.ini but now I’m stuck trying to figure out where/how to install the modules and how I should edit the php.ini to reflect the changes… any help would be more than appreciated! Loading...

Lexxx
Lexxx
4 years ago

Thanks, it works for me, until reboot.
After reboot everything is setted back to default in /opt folder.
For example the /opt/bin folder is comletly deleted.
Firmware: 4.1.110.33149

Do you have any idea?

Lexxx
Lexxx
4 years ago
Reply to  Steven

Good for you! 🙂