Jump to content


Photo

linux tools coming to MCR

- - - - -

  • Please log in to reply
215 replies to this topic

#201
fubaya

fubaya

    Newbie

  • Members
  • Pip
  • 2 posts
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, 11 April 2010 - 06:45 AM.

  • 0

#202
freeasabeer

freeasabeer

    Regular

  • Members
  • PipPip
  • 88 posts
  • Location:Paris, France
  • Devices:HTC Hero
@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

#203
Pitel

Pitel

    Newbie

  • Members
  • Pip
  • 41 posts
  • Location:Brno
  • Devices:HTC Hero
  • Twitter:@Pitlik

On which ROM are you trying to install mc ?


MCR 3.2 (from kitchen)

# cat /data/local/opkg.confdest 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]

And now when I tried to do opkg update:
# 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

#204
freeasabeer

freeasabeer

    Regular

  • Members
  • PipPip
  • 88 posts
  • Location:Paris, France
  • Devices:HTC Hero

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.b...oid/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, 12 April 2010 - 12:52 PM.

  • 0

#205
Pitel

Pitel

    Newbie

  • Members
  • Pip
  • 41 posts
  • Location:Brno
  • Devices:HTC Hero
  • Twitter:@Pitlik

Make sure you have the right busybox (should be then same as this one: http://freeasabeer.b...id/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

#206
freeasabeer

freeasabeer

    Regular

  • Members
  • PipPip
  • 88 posts
  • Location:Paris, France
  • Devices:HTC Hero

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

#207
fubaya

fubaya

    Newbie

  • Members
  • Pip
  • 2 posts

@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, 13 April 2010 - 01:47 AM.

  • 0

#208
cowai

cowai

    Newbie

  • Members
  • Pip
  • 32 posts
  • Devices:HTC Hero
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, 18 April 2010 - 02:47 PM.

  • 0

#209
Amedee.VanGasse

Amedee.VanGasse

    Newbie

  • Members
  • Pip
  • 1 posts
  • Gender:Male
  • Location:Belgium
  • Devices:Motorola Milestone
  • Twitter:@amedee

It was worth trying...

Download the busybox ipk (cyanogen variant): http://freeasabeer.b....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.ipkCollected errors: * pkg_init_from_file: Malformed package file busybox_cyanogen_1.16.0-2_arm.ipk.
Also this:
# 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 Vlasenkoand 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


EDIT: never mind, I added an /etc/resolv.conf as suggested above.
Now I get this:
# opkg updateDownloading [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 foundCollected errors: * pkg_run_script: postinst script returned status 127. * opkg_configure: screen.postinst returned 127.

Edited by Amedee.VanGasse, 10 May 2010 - 02:23 AM.

  • 0

#210
freeasabeer

freeasabeer

    Regular

  • Members
  • PipPip
  • 88 posts
  • Location:Paris, France
  • Devices:HTC Hero

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.


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

# 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

#211
Smilgs

Smilgs

    Newbie

  • Members
  • Pip
  • 38 posts
  • Location:Riga, Latvia
  • Devices:HTC Desire, HTC Hero
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.modac...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, 04 July 2010 - 02:04 PM.

  • 0

#212
Andcr

Andcr

    Regular

  • Members
  • PipPip
  • 53 posts
  • Devices:HCT Hero (Euro)
Hi freeasabeer,

I was wondering if it would be possible to get a version of "expect" (http://www.nist.gov/...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

#213
vaddimka

vaddimka

    Newbie

  • Members
  • Pip
  • 2 posts
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

#214
vaddimka

vaddimka

    Newbie

  • Members
  • Pip
  • 2 posts
ADD: On 2.2.1 .bashrc must be in /

  • 0

#215
Nick Fankhauser

Nick Fankhauser

    Newbie

  • Members
  • Pip
  • 1 posts
  • Devices:HTC Desire
I tried to make this work, but http://freeasabeer.byethost33.com isn't up anymore. Does someone know a mirror of these packages?

  • 0

#216
krzych.s

krzych.s

    Newbie

  • Members
  • Pip
  • 1 posts
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




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users