PDA

Bekijk de volledige versie : Hello all, Kfurge C'firmware problem



bluemotion
09-09-2007, 14:44
Hi all,
nice site.
i followed the guide on kfurge's site up to...

---Step #3, Installing optware packages
-----For completeness, re-run "ipkg install" for uclibc, busybox, ipkg, and wget to fully install them. You may have to use the -force-overwrite flag.

there seems to be no problem while installing the pakages using ipkg

i stopped here i decided to quit telnet by typing 'exit'

but when i enter back into telnet i get the the busy box console (as expected)
but none of the previous pakages i installed do not work,
eg VI (new busybox),ipkg .

is this suppose to happen? if not what im i doing wrong?

i eventually hoped to install ushare (to stream mp4 file to my ps3)
and Php,apache,mySQl (for my brother)

Thanks -BLUE

bluemotion
09-09-2007, 17:46
i even if i browse opt/bin the new executables are there, what have i done wrong?

gratitude182
09-09-2007, 18:30
you have to run

export PATH=/opt/bin:/opt/sbin:${PATH}
export LD_LIBRARY_PATH=/opt/lib:${LD_LIBRARY_PATH}

and/or put it in your rc.local.

grat182

bluemotion
16-09-2007, 20:04
thanks that fixed it!

ValoYossa
18-09-2007, 11:19
i have the same problem, after i enter this to line everything is back. i checked my rc.local file and this

export PATH=/opt/bin:/opt/sbin:${PATH}
export LD_LIBRARY_PATH=/opt/lib:${LD_LIBRARY_PATH}

strings are in it, why its not working after reboot? do i have all the time enter this strings after reboot??

kfurge
19-09-2007, 03:22
Both PATH and LD_LIBRARY_PATH become invalid with a true login shell. You'll have to add the lines to the users .profile in order to make them active with each login.

- K.C.

ValoYossa
19-09-2007, 13:40
Im sorry for a dummy question but how can i do that?

back2basic
19-09-2007, 16:50
Im sorry for a dummy question but how can i do that?

http://wl700g.homelinux.net/drupal/?q=node/84

ValoYossa
20-09-2007, 11:25
http://wl700g.homelinux.net/drupal/?q=node/84

thank you for link

i followed this guide but i think i made a mistake somewhere

after all i have this:

telnet 192.168.1.1
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
(none) login: MyUser
Password:
warning: cannot change to home directory
Connection closed by foreign host.

whats could be wrong? what i did wrong?

im not sure if i did this right:

vi /opt/etc/sudoers
-.-.-.-.-.-.-.-.-.-.-.
# Runas alias specification

# User privilege specification
root ALL=(ALL) SETENV: ALL
MyUser ALL=(ALL)SETEVN: ALL

# Uncomment to allow people in group wheel to run all commands
# and set environment variables.
%wheel ALL=(ALL) SETENV: ALL

# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: SETENV: ALL

# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now


and my .profile was totally empty file so i just added two strings and saved it:

export PATH=/opt/bin:/opt/sbin:${PATH}
export LD_LIBRARY_PATH=/opt/lib:$/{LD_LIBRARY_PATH}
~
~
~

im sorry im trying learn linux but its difficul and to much information in same time. Im sorry for bothering you with my dummy question

back2basic
20-09-2007, 16:37
thank you for link

i followed this guide but i think i made a mistake somewhere



this also has to be in youre .profile


#
# Bash initialization script
#

PS1="[\u@\h \W]$ "
PATH=/opt/sbin:/opt/bin:/sbin:/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH=/opt/lib:/shares/lib

export PS1 PATH LD_LIBRARY_PATH

and youre /etc/passwd should look like someting like this


root::0:42000:root:/:/bin/sh
ron:****encrypted passwd DON'T change***:35001:42000:ron:/opt/home/ron:/opt/bin/bash

use putty to log in to youre box
Download here (http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe)

ValoYossa
20-09-2007, 18:11
this also has to be in youre .profile


#
# Bash initialization script
#

PS1="[\u@\h \W]$ "
PATH=/opt/sbin:/opt/bin:/sbin:/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH=/opt/lib:/shares/lib

export PS1 PATH LD_LIBRARY_PATH

and youre /etc/passwd should look like someting like this


root::0:42000:root:/:/bin/sh
ron:****encrypted passwd DON'T change***:35001:42000:ron:/opt/home/ron:/opt/bin/bash

use putty to log in to youre box
Download here (http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe)

THANK YOU THANK YOU THANK YOU its finally working!!!!:D :D :D :D :D

i use mac os terminal but i have this putty too. Mac os also unix based system so i think its ok to use it, cause i did mostly everything in my box trough mac os terminal and its working.

metamorphose
26-10-2007, 18:01
this also has to be in youre .profile


#
# Bash initialization script
#

PS1="[\u@\h \W]$ "
PATH=/opt/sbin:/opt/bin:/sbin:/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH=/opt/lib:/shares/lib

export PS1 PATH LD_LIBRARY_PATH

and youre /etc/passwd should look like someting like this


root::0:42000:root:/:/bin/sh
ron:****encrypted passwd DON'T change***:35001:42000:ron:/opt/home/ron:/opt/bin/bash

use putty to log in to youre box
Download here (http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe)


Hi,

I just don't understand one thing: I followed kfurge's instructons regarding rc.local, shells, passwd and profile files. Despite if I reboot the router and connect via telnet, I could just receive an empty line or string, if I release this command echo $LD_LIBRARY_PATH or if I release this, result of echo $PATH is /usr/sbin:/bin:/usr/bin:/sbin
Situation is almost the same, if I try it in bash, unless value of $PATH is correct (/bin:/sbin:/usr/bin:/usr/sbin::/opt/bin:/opt/sbin), but $LD_LIBRARY_PATH is even empty.

Why? What did I do wrong?