LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Why cant I execute certain files? (https://www.linuxquestions.org/questions/linux-newbie-8/why-cant-i-execute-certain-files-686864/)

confusarama 11-28-2008 12:05 PM

Ah! Didnt see the "edit" button. Doh!

tredegar 11-28-2008 12:25 PM

IP is gone. No harm done.
The output from env is a little sparse compared to mine.
To note: /opt/bin is not in your PATH
Your SHELL is /bin/sh but what is that linked to? Mine is /bin/bash
Quote:

fsck -N
Errr, my man fsck doesn't have that option.
But when I try it:
Code:

tred@vaio:~$ fsck -N
fsck 1.40.8 (13-Mar-2008)
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 UUID=7591fe5b-8907-407f-854e-321684957104
tred@vaio:~$

shutdown used to have a F ( or was it f option ?) that would force a fsck at the next boot. That doesn't seem to be available to me since about a year ago, but you might try it.

shutdown -rF now or maybe shutdown -rf now

to reboot and check (and repair) the filesystems as linux comes up. Then check your kernel logs.

Otherwise, you'll have to unmount the filesystem, and then check it.

Quote:

Yes, file is missing, cant install it either (get an error).
What "error", the more information you provide, the faster we'll find the cause of the problems. If we ever find them.
Quote:

This is an unusual distro.
Looks like it. How old is it? Why are you running it?

confusarama 11-28-2008 12:58 PM

Code:

/ # shutdown -?
/bin/sh: shutdown: not found

Its the distro that comes with a bit of kit called a Freecom Network Drive Pro (ARM based network storage supporting SMB). Bought it because its actually a Linux box underneath and has preinstalled Apache, PHP, MySQL. However my Linux skills are basic (actually bragging now) so I should have started with something a bit more "standard".

tredegar 11-28-2008 01:55 PM

Ah!
Now I am beginning to understand your frustrations. We assumed (always a bad thing to do) that you were running some "mainstream" distro.

The linux installed on your device will be a minimal install to save on space (& cost). It will not come with any development tools (C compiler, kernel source-code etc.) and many basic things like file will have been omitted, because they are not needed for the device to function (probably very well, as long as you do not break it).

In short, you are setting yourself a very hard task if you are new to linux, and want to play with it (IMHO the best way to learn linux is to play with it until you break it, then start again: like a bicycle - at first you keep falling off, but soon you wonder why everybody can't just ride one, the same as you can - it's EASY!).

You may well break the fuctionality of your device if you play with it without knowing what you are doing. Please take care, especially if you are working as root, which you have been doing.

I do not know where you found your lynx executable, but maybe it was not compiled for your ARM system: linux isn't windows - you can't just drop in an exe file and expect it to work. This is one of the many advantages of linux. (Drop in a virus: it doesn't work. Nothing happens).

If you'd like to learn linux to the level that you can hack linux-powered devices, start with a mainstream distro, and dual-boot with that "other" OS, until you earn your wings.

Start here http://distrowatch.com/ and pick any distro in the top ten. Maybe try them all.
I am currently recommending kubuntu 8.04 but make your own choice, and play as you wish.

Search-engine (or search this board) for dual boot linux to see what I am talking about.

I'm sure you'll have a lot of fun, and learn to appreciate all linux has to offer. Then you can play with hacking linux-powered devices.
That's fun too: My jailbroken iTouch! Whooo Hooo! I rarely listen to music, but hacking it was fun.

Explore a mainstream distro. Try others. Have fun. Good luck.

{BBI}Nexus{BBI} 11-28-2008 03:28 PM

Quote:

Originally Posted by confusarama (Post 3357983)
Oh bllx! Just gave out my ip address. Dont look :)

Lol. Just to echo what tredegar has said, keep it simple to start with, use one of the mainstream distros until your find you feet.

Welcome to the world of the Penguin. :D

i92guboj 11-28-2008 07:13 PM

Code:

mount | grep noexec
If there's any output, you probably have the cause of your problem there.

confusarama 12-01-2008 11:36 AM

Thanks for all your advice guys, I still cant get it to work but I have learnt some stuff and the advice to start simple and build up is certainly useful. I am going to setup what I need on a Debian VM to practice, then reimplement on a freshly wiped Network Drive Pro once I have the prerequisite skills. No pain no gain :)

FYI: mount | grep noexec returned nothing, however

Code:

/ # mount
/dev/root on / type ext3 (rw,noatime,nodiratime,data=ordered)
proc on /proc type proc (rw,nodiratime)
sysfs on /sys type sysfs (rw)
none on /proc/bus/usb type usbfs (rw)
none on /ramdisk type tmpfs (rw)
/dev/hdd4 on /home type ext3 (rw,noatime,nodiratime,data=ordered,usrquota)
/dev/hdd4 on /opt type ext3 (rw,noatime,nodiratime,data=ordered,usrquota)

If I ever do figure it out then I will post the answer here.

Cheers,
Paul


All times are GMT -5. The time now is 05:19 AM.