MoDaCo is undergoing planned maintenance. Site functionality may be reduced - follow @modaco or @paulobrien on Twitter for updates.

  • Announcements

    • Reminder - MoDaCo position on illegal content

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such software
      Nintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)


      CUSTOM ROMS

      You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not be hosted directly in topic via the MoDaCo attachment system
      ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)
      ROMs must give full credit to the original author
      This decision has been taken in light of the huge amount of interest in this area of device customisation within the community, and member feedback! Please note that custom ROM discussion should be kept in specific device sub-areas, (e.g. Kaiser.MoDaCo.com for Kaiser based devices). ISSUES If you have any issues with this policy, please contact me directly via PM. P
    • Support MoDaCo by signing up to a MoDaCo Silver or Gold membership

      To sign up to an annual MoDaCo Silver subscription which will eliminate all ads from the site (as well as giving you access to the MoDaCo Online Kitchens for Android) for only £9.99 using PayPal, Credit or Debit Card, ensure you are logged in to the site, and then click the link below, which will take you directly to the subscription store! You can also sign up to an annual MoDaCo Gold subscription for £29.99, which adds the benefits listed below! PURCHASE A MODACO SUBSCRIPTION - FREE Titanium Backup Mobile for Android worth $5.99! - FREE 1 year PrivateInternetAccess.com worth $39.95! - FREE 1 year LastPass Premium worth $12! - FREE CalcConvert for Pocket PC from Binaryfish worth $17.95! - FREE Calendar Bar for Pocket PC from OmegaOne worth $9.99! - FREE CamerAware for Pocket PC and Smartphone from MoDaCo worth £19.99 / $30! - FREE Chronos for Pocket PC from ActiveKitten worth $14.95! - FREE CodeWallet Pro for Smartphone and Pocket PC from DeveloperOne worth up to $24.95! - FREE Concentrix for Pocket PC from eSoft Interactive worth $9.95! - FREE FlexMail for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE FTouchSL for Pocket PC from Vekoff s.r.o. worth 10 euro / $12.50! - FREE Jewel Challenge for Pocket PC from eSoft Interactive worth $9.95! - FREE John Cody's Alerts Pro for Smartphone from Omnisoft worth $14.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Dutch for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> French for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> German for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Italian for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Spanish for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Dutch for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> French for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> German for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Russian for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Turkish for Smartphone from Lingvosoft worth $49.95! - FREE Note2Self for Pocket PC and Smartphone from WebIS worth up to $19.90! - FREE Opera 8.60 for Pocket PC and Smartphone from Opera Software worth up to $48! - FREE Pocket Informant for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE Pocket Launcher for Pocket PC and Smartphone from Conduits worth $9.95! - FREE PTab for Pocket PC and Smartphone from z4soft worth up to $60! - FREE Resco Explorer for Pocket PC and Smartphone from Resco worth up to $49.90! - FREE Safemode for Pocket PC from monocube worth $12.95 - FREE SplashPhoto for Pocket PC and Smartphone from SplashData worth up to $59.90! - FREE Sprite Backup for Pocket PC and Smartphone from Sprite Software worth $29.95! - FREE Teksoft Glyphs UI for Pocket PC and Smartphone from Teksoft €9.95! - FREE Teksoft HeadsetRemote for Pocket PC and Smartphone from Teksoft €4.95! - FREE Traffic Jam for Pocket PC from eSoft Interactive worth $9.95! - FREE unlock (1 per year) from imei-check.co.uk - DISCOUNT of 10% at MoDaCo FairDeal - DISCOUNT of 10% at Semsons.com - FORUM - AD FREE SITE - FORUM - custom rank / title - FORUM - double competition entries - FORUM - double post attachment space - FORUM - no search flood control - FORUM - priority event registration - FORUM - triple PM space
    • Reminder: Selling items on the forum directly is not allowed

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspensions / ban.

linux tools coming to MCR

216 posts in this topic

Posted (edited) · Report post

Hey guys, I found this thread while trying to get wget working. I apparently don't have a valid resolv.conf file and my getprop gives no output. What do I do to fix it? I'm a Linux guy but this is a little confusing. I'm on Cyan 5.0.5.3-N1.

I have following problems with installing mc:

 * extract_archive: Cannot make dir /system/etc/terminfo/x/: Read-only file system.

/system is mounted read-only by default at boot. You need to run this first: mount -o rw,remount /system

Edited by fubaya
0

Share this post


Link to post
Share on other sites

Posted · Report post

@pitel:

On which ROM are you trying to install mc ?

All the install scripts of the ipk have been designed to actually remount /system read/write before proceeding to the installation, so you shouldn't have to remount /system manually before.

@fubaya:

you need 2 things

1) a valid /etc/resolv.conf

Let say something like:

domain lan

search lan

nameserver 8.8.8.8

nameserver 8.8.4.4

2) a busybox that is linked against libresolv.so .... and I do not know if this is the case of cyanogen's busybox!

I know for sure that cyanogen has now switched to a native android busybox port (i.e. one that is dynamically linked against bionic (the android native C library)).

So, once you have put a valid resolv.conf on your system, if wget still doesn't work, then your busybox is faulty.

0

Share this post


Link to post
Share on other sites

Posted · Report post

On which ROM are you trying to install mc ?

MCR 3.2 (from kitchen)

# cat /data/local/opkg.conf
dest root /
src/gz common [url="http://freeasabeer.byethost33.com/android/feed/common"]http://freeasabeer.byethost33.com/android/feed/common[/url]
src/gz mcr [url="http://freeasabeer.byethost33.com/android/feed/mcr"]http://freeasabeer.byethost33.com/android/feed/mcr[/url][/codebox]

And now when I tried to do opkg update:

[codebox]# opkg update
Downloading [url="http://freeasabeer.byethost33.com/android/feed/common/Packages.gz"]http://freeasabeer.byethost33.com/android/...mon/Packages.gz[/url].
wget: bad address 'freeasabeer.byethost33.com'
Downloading [url="http://freeasabeer.byethost33.com/android/feed/mcr/Packages.gz"]http://freeasabeer.byethost33.com/android/...mcr/Packages.gz[/url].
wget: bad address 'freeasabeer.byethost33.com'
Collected errors:
* opkg_download: Failed to download [url="http://freeasabeer.byethost33.com/android/feed/common/Packages.gz"]http://freeasabeer.byethost33.com/android/...mon/Packages.gz[/url], wget returned 1.
* opkg_download: Failed to download [url="http://freeasabeer.byethost33.com/android/feed/mcr/Packages.gz"]http://freeasabeer.byethost33.com/android/...mcr/Packages.gz[/url], wget returned 1.

And it worked few days ago.

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

And it worked few days ago.

This is strange then...

Make sure you have the right busybox (should be then same as this one: http://freeasabeer.byethost33.com/android/busybox.zip) and that your /etc/resolv.conf is a symlink to /data/local/resolv.conf and that the latter is valid.

Edited by freeasabeer
0

Share this post


Link to post
Share on other sites

Posted · Report post

Make sure you have the right busybox (should be then same as this one: http://freeasabeer.byethost33.com/android/busybox.zip) and that your /etc/resolv.conf is a symlink to /data/local/resolv.conf and that the latter is valid.

BusyBox v1.15.3 (2010-01-16 15:45:12 CET) multi-call binary

I guess its just busybox from MCR. Your link to busybox does not work.

Anyway, ping modaco.com works, but wget http://modaco.com does not and ends with same errors. Wget is just symlink to busybox.

0

Share this post


Link to post
Share on other sites

Posted · Report post

BusyBox v1.15.3 (2010-01-16 15:45:12 CET) multi-call binary

I guess its just busybox from MCR. Your link to busybox does not work.

Anyway, ping modaco.com works, but wget http://modaco.com does not and ends with same errors. Wget is just symlink to busybox.

I've corrected the URL in previous post, should be OK now. But this link is for my busybox 1.16.0 where as Paul did ship my busybox 1.15.3.

I've have also checked that the busybox that Paul did include in MCR3.2 works ok (MD5:ef6ecb644aec804997177de8cd635d85) ... so your issue might be with your /etc/resolv.conf

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

@fubaya:

you need 2 things

1) a valid /etc/resolv.conf

Let say something like:

domain lan

search lan

nameserver 8.8.8.8

nameserver 8.8.4.4

2) a busybox that is linked against libresolv.so .... and I do not know if this is the case of cyanogen's busybox!

I know for sure that cyanogen has now switched to a native android busybox port (i.e. one that is dynamically linked against bionic (the android native C library)).

So, once you have put a valid resolv.conf on your system, if wget still doesn't work, then your busybox is faulty.

Thanks for explaining it. It sounds like it should be simple but I've tried everything. I forgot to mention I installed your Busybox with opkg and that worked once, now it doesn't anymore and I don't know what changed. The wget I am now using is a gnu binary someone pointed me to a day or two ago but it and Busybox network tools don't work and my resolv.conf file(s) look ok.

I'm a little worried about getprop producing no output. Could that be a problem or does it not matter as long as the resolv.conf files are right?

edit: Ok, hang on, it's working now! I have no idea what I did. I tried to use opkg to downgrade busybox and wget failed so I installed from the sdcard. I first downgraded to busybox 1.16.0-2 then back up to 1.16.0-3 and nothing worked still. Then I tried to downgrade to 1.16.0-1 and opkg just wouldn't let me. I don't remember the error it gave but it was like it decided that's too far to downgrade. No network commands worked still.

During the downgrade/upgrade process, I noticed the "./ln resolv.conf exists" error. I assumed it wouldn't make any difference if resolv.conf existed as long as it had the correct info, but I downgraded/upgraded again and before the upgrade, I deleted /etc/resolv.conf. It installed without any error but no network commands worked still. Then I had dinner, gave my daughter a bath and now it works. I'm not sure if it was the dinner or bath that fixed it, but you should try them both.

Edited by fubaya
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

VillainROM 5 doesn't have /data/xbin, but there is a xbin folder in /system/

However "/system/xbin/opkg install /sdcard/opkg_0.1.7+svn519-2_arm.ipk" doesn't work.

I get a "/system/xbin/opkg: not found".

Any tips?

EDIT: bootstrap 1.2 fixed it ;)

Edited by cowai
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

It was worth trying...

Download the busybox ipk (cyanogen variant): http://freeasabeer.byethost33.com/android/....16.0-2_arm.ipk on your sdcard and install it from there.

So you'll get the egg for the chicken :P

I got this:

# opkg install busybox_cyanogen_1.16.0-2_arm.ipk
Collected errors:
* pkg_init_from_file: Malformed package file busybox_cyanogen_1.16.0-2_arm.ipk.[/codebox]

Also this:

[codebox]# opkg update
Downloading [url="http://freeasabeer.byethost33.com/android/feed/common/Packages.gz"]http://freeasabeer.byethost33.com/android/...mon/Packages.gz[/url].
wget: bad address 'freeasabeer.byethost33.com'
Downloading [url="http://freeasabeer.byethost33.com/android/feed/mcr/Packages.gz"]http://freeasabeer.byethost33.com/android/...mcr/Packages.gz[/url].
wget: bad address 'freeasabeer.byethost33.com'
Downloading [url="http://freeasabeer.byethost33.com/android/feed/cyanogen/Packages.gz"]http://freeasabeer.byethost33.com/android/...gen/Packages.gz[/url].
wget: bad address 'freeasabeer.byethost33.com'
Collected errors:
* opkg_download: Failed to download [url="http://freeasabeer.byethost33.com/android/feed/common/Packages.gz"]http://freeasabeer.byethost33.com/android/...mon/Packages.gz[/url], wget returned 1.
* opkg_download: Failed to download [url="http://freeasabeer.byethost33.com/android/feed/mcr/Packages.gz"]http://freeasabeer.byethost33.com/android/...mcr/Packages.gz[/url], wget returned 1.
* opkg_download: Failed to download [url="http://freeasabeer.byethost33.com/android/feed/cyanogen/Packages.gz"]http://freeasabeer.byethost33.com/android/...gen/Packages.gz[/url], wget returned 1.

I'm not using Cyanogen, I'm just using Motorola Milestone with Android 2.1, rooted.

To confirm that I have the right busybox:

# busybox   
BusyBox v1.16.0 (2010-02-10 15:25:34 CET) multi-call binary.
Copyright © 1998-2009 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

Usage: busybox [function] [arguments]...
or: function [arguments]...

BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as.

Currently defined functions:
[, [[, addgroup, adduser, adjtimex, ar, arp, arping, ash, awk,
basename, bbconfig, beep, blkid, brctl, bunzip2, bzcat, bzip2, cal,
cat, catv, chat, chattr, chgrp, chmod, chown, chpasswd, chpst, chroot,
chrt, chvt, cksum, clear, cmp, comm, cp, cpio, crond, crontab, cryptpw,
cttyhack, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod,
devmem, df, diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du,
dumpkmap, echo, ed, egrep, eject, env, envdir, envuidgid, ether-wake,
expand, expr, fakeidentd, false, fbset, fbsplash, fdflush, fdformat,
fdisk, fgrep, find, findfs, fold, free, freeramdisk, fsck, fsck.minix,
fsync, ftpd, ftpget, ftpput, fuser, getopt, getty, grep, gunzip, gzip,
halt, hd, hdparm, head, hexdump, hostid, hostname, httpd, hush,
hwclock, id, ifconfig, ifdown, ifenslave, ifplugd, ifup, inetd, init,
insmod, install, ionice, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink,
iproute, iprule, iptunnel, kbd_mode, kill, killall, killall5, klogd,
last, length, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap,
logger, login, logname, logread, losetup, lpd, lpq, lpr, ls, lsattr,
lsmod, lzmacat, lzop, lzopcat, makedevs, makemime, man, md5sum, mdev,
mesg, microcom, mkdir, mkdosfs, mkfifo, mkfs.minix, mkfs.vfat, mknod,
mkpasswd, mkswap, mktemp, modprobe, more, mount, mountpoint, msh, mt,
mv, nameif, nc, netstat, nice, nmeter, nohup, nslookup, od, openvt,
passwd, patch, pgrep, pidof, ping, ping6, pipe_progress, pivot_root,
pkill, popmaildir, poweroff, printenv, printf, ps, pscan, pwd,
raidautorun, rdate, rdev, readahead, readlink, readprofile, realpath,
reboot, reformime, renice, reset, resize, rm, rmdir, rmmod, route,
rtcwake, run-parts, runlevel, runsv, runsvdir, rx, script,
scriptreplay, sed, sendmail, seq, setarch, setconsole, setfont,
setkeycodes, setlogcons, setsid, setuidgid, sh, sha1sum, sha256sum,
sha512sum, showkey, slattach, sleep, softlimit, sort, split,
start-stop-daemon, stat, strings, stty, su, sulogin, sum, sv, svlogd,
swapoff, swapon, switch_root, sync, sysctl, syslogd, tac, tail, tar,
tcpsvd, tee, telnet, telnetd, test, tftp, tftpd, time, timeout, top,
touch, tr, traceroute, true, tty, ttysize, tunctl, udpsvd, umount,
uname, uncompress, unexpand, uniq, unix2dos, unlzma, unlzop, unzip,
uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, volname, watch,
watchdog, wc, wget, which, who, whoami, xargs, yes, zcat, zcip[/codebox]

EDIT: never mind, I added an /etc/resolv.conf as suggested above.

Now I get this:

[codebox]# opkg update
Downloading [url="http://freeasabeer.byethost33.com/android/feed/common/Packages.gz"]http://freeasabeer.byethost33.com/android/...mon/Packages.gz[/url].
Inflating [url="http://freeasabeer.byethost33.com/android/feed/common/Packages.gz"]http://freeasabeer.byethost33.com/android/...mon/Packages.gz[/url].
Updated list of available packages in /data/local/opkg/lib/opkg/lists/common.
Downloading [url="http://freeasabeer.byethost33.com/android/feed/mcr/Packages.gz"]http://freeasabeer.byethost33.com/android/...mcr/Packages.gz[/url].
Inflating [url="http://freeasabeer.byethost33.com/android/feed/mcr/Packages.gz"]http://freeasabeer.byethost33.com/android/...mcr/Packages.gz[/url].
Updated list of available packages in /data/local/opkg/lib/opkg/lists/mcr.
Downloading [url="http://freeasabeer.byethost33.com/android/feed/cyanogen/Packages.gz"]http://freeasabeer.byethost33.com/android/...gen/Packages.gz[/url].
Inflating [url="http://freeasabeer.byethost33.com/android/feed/cyanogen/Packages.gz"]http://freeasabeer.byethost33.com/android/...gen/Packages.gz[/url].
Updated list of available packages in /data/local/opkg/lib/opkg/lists/cyanogen.
# opkg install mc
Installing mc (4.6.2-1) to root...
Downloading [url="http://freeasabeer.byethost33.com/android/feed/common/mc_4.6.2-1_arm.ipk"]http://freeasabeer.byethost33.com/android/...4.6.2-1_arm.ipk[/url].
Collected errors:
* opkg_install_pkg: Package mc md5sum mismatch. Either the opkg or the package index are corrupt. Try 'opkg update'.
* opkg_install_cmd: Cannot install package mc.

Another error:

# opkg install screen     
Installing screen (4.00.02-1) to root...
Downloading [url="http://freeasabeer.byethost33.com/android/feed/cyanogen/screen_cyanogen_4.00.02-1_arm.ipk"]http://freeasabeer.byethost33.com/android/...00.02-1_arm.ipk[/url].
Installing terminfo (5.6-1) to root...
Downloading [url="http://freeasabeer.byethost33.com/android/feed/common/terminfo_5.6-1_arm.ipk"]http://freeasabeer.byethost33.com/android/...o_5.6-1_arm.ipk[/url].
Configuring terminfo.
Configuring screen.
//data/local/opkg/lib/opkg/info/screen.postinst: not found
Collected errors:
* pkg_run_script: postinst script returned status 127.
* opkg_configure: screen.postinst returned 127.[/codebox]

Edited by Amedee.VanGasse
0

Share this post


Link to post
Share on other sites

Posted · Report post

Now I get this:


Collected errors:
* opkg_install_pkg: Package mc md5sum mismatch. Either the opkg or the package index are corrupt. Try 'opkg update'.
* opkg_install_cmd: Cannot install package mc.[/codebox]

Yeah, most probably a corrupted download. 'opkg update' is a wise suggestion...

[codebox]# opkg install screen
//data/local/opkg/lib/opkg/info/screen.postinst: not found

That one is scarry...

I would suggest some required folders do not exist on your Milestone ROM. Maybe try 'mkdir -p /data/local/opkg/lib/opkg/info' and try installing again ?

Please all... bear in mind that all this stuff has been designed for Hero Modaco Custom ROM. Although it can be used on other ROMs and devices, this may then require some tweaks to get everything runing as expected.

What I strongly advice to get the opkg stuff working is to use the opkg Android application (see that post) that *should* install opkg cleanly on most of the ROMs (well, I hope so)

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Some issues:

*) i have successfully installed the mc on HTC Hero finally after the upgrade to r5 of MCR - previously it was always the error about mismatch of MD5 checksum

the weird stuff - the same commands on HTC Desire failed initially (also MD5) but when I got the mc copied from Hero the opkg install mc behaviour changed

I have made my own installer scripts at the end to be sure mc is installed, see http://android.modaco.com/content/customis...r-mc-nano-opkg/

*) the up and down buttons don't work with SSH connection using putty (quite sure this is some tem setting I am not aware about) - both Hero and Desire

fixed using the right terminfo :lol:

*) mc is black and white, not the standard blue and white - both Hero & Desire

fixed using the right terminfo :D

*) connecting from putty, the /data/xbin is not in the PATH (or whatever its called in Linux) - both Hero and Desire

fixed by using bash instead of sh, which allows to have a .bashrc configuration (terminfo + PATH)

*) mc dies with exceptions, steps to reproduce: open any menu (like copy = F5) and try to walk around using the -> and <- keys

/data/xbin/mc.real: libc/misc/ctype/ctype.c: 290: tolower: Assertion `((((unsigned int)(© - 0)) <= ((127 * 2 + 1) - 0)) || (© == (-1)))' failed.

*) mc does not support keypresses like F8 - instead, forced to use Esc, 8 - this is only an annoyance

Edited by Smilgs
0

Share this post


Link to post
Share on other sites

Posted · Report post

Hi freeasabeer,

I was wondering if it would be possible to get a version of "expect" (http://www.nist.gov/mel/msid/expect.cfm) for Android

and if not, if something similar would be possible

I would need it to decrypt my Ubuntu machine from CLI to run rsync afterwads...

0

Share this post


Link to post
Share on other sites

Posted · Report post

Just FYI:

$ tar xzvf mc_4.6.2-1_arm.tar.gz

./debian-binary

./data.tar.gz

gzip: stdin: unexpected end of file

tar: Unexpected EOF in archive

tar: Unexpected EOF in archive

tar: Error is not recoverable: exiting now

(tried to re-download several times, extracted version segfaults all the time)

$ tar xzvf zip_3.0-1_arm.tar.gz

./debian-binary

./data.tar.gz

./control.tar.gz

(latter extracts and works perfectly)

0

Share this post


Link to post
Share on other sites

Posted · Report post

ADD: On 2.2.1 .bashrc must be in /

0

Share this post


Link to post
Share on other sites

Posted · Report post

I strongly recommedn you to add 'uninstall' subcommand to opkg which should do the same as remove. It is consequence of presence 'install' command, because there is not 'move' or 'place' to 'remove' later ;)

By the way, I'm using your opkg with mc on LeeDroid on Desire HD - do you want to support thes combination? (few bugs to report ;P)

It would be very nice if you would support us.

And posted here because cannot post elsewhere in main thread about mc/rsync/screen/opkg topic.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.