Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: someone on September 04, 2016, 06:30:45 AM
-
I want to install iproute2.tcz.
tce-load -wi iproute2
always get 'wget:timed out', so I download iproute2.tcz
wget -c http://www.tinycorelinux.net/7.x/x86/tcz/iproute2.tcz
after download
tce-load -i iproute2.tcz
and verify.
OK,I intalled iproute2 successfully.
~$ sudo backup
but after reboot,
~$ ip
-sh: ip: not found
what shall I do?
-
echo iproute2.tcz >> /etc/sysconfig/tcedir/onboot.lst
-
Think you for reply. but it doesn't work.
after reboot,
~$ ip
-sh: ip: not found
~$ cat /etc/sysconfig/tcedir/onboot.list
openssh.tcz
iproute2.tcz
but iproute.tcz still here.
Did I miss any details?
-
If you use the apps gui to set iproute2 "onboot", it will be loaded the next time you re-boot.
-
When you manually downloaded iproute2.tcz , did you also download iproute2.tcz.dep and whatever dependencies are listed in that file?
-
I used text based install, no gui
-
Is your file .lst or .list? .lst is the right one. Also, where is tcedir actually? Is it persistent? Also, you don't need to sudo backup. Maybe your backup file has a permissions problem.
-
Think you for reply.
my file is .lst, list is input error here.
tcedir path is /etc/sysconfig/tcedir/.
after reboot
~$ cat /etc/sysconfig/tcedir/onboot.lst
openssh.tcz
iproute2.tcz
so, I think tcedir is persistent.
~$ ls /opt/.filetool.lst -l
-rw-rw-r-- 1 root staff 79 Sep 4 14:14 /opt/.filetool.lst
-
When you manually downloaded iproute2.tcz , did you also download iproute2.tcz.dep and whatever dependencies are listed in that file?
~$ cat /mnt/sda1/tce/optional/iproute2.tcz.dep
db.tcz
~$ tce-load -wi db.tcz
db is already installed!
-
Since I (and probably we) can't reproduce your problem I/we have to guess. We need more information about your system. Can you do this for us:
uname -a
version
which ip
ldd $(which ip)
cat /proc/cmdline
Do you have copy2fs.flg set?
-
@andyj
tc@tinycorelinux01:~$ uname -a
Linux tinycorelinux01 4.2.9-tinycore #1999 SMP Mon Jan 18 19:42:12 UTC 2016 i686 GNU/Linux
tc@tinycorelinux01:~$ version
7.2
tc@tinycorelinux01:~$ which ip
tc@tinycorelinux01:~$ ldd $(which ip)
tc@tinycorelinux01:~$ cat /proc/cmdline
initrd=/tce/boot/core.gz quiet waitusb=5:UUID="82130f12-af9b-42f0-8e02-7ff7f4fa49b8" tce=UUID="82130f12-af9b-42f0-8e02-7ff7f4fa49b8" BOOT_IMAGE=/tce/boot/vmlinuz
I dont know copy2fs.flg.
-
If it is present, copy2fs.flg will be in your tce folder.
If "which ip" doesn't give any output, then the iproute2 extension is not loaded.
What does this give: $ tce-load -i iproute2
$ ldd `which ip`
-
~$ ls /etc/sysconfig/tcedir/
boot/ mydata.tgz onboot.lst ondemand/ optional/
~$ tce-load -i iproute2.tcz
iproute2.tcz: OK
~$ ldd 'which ip'
./which ip: error while loading shared libraries: ./which ip: cannot open shared object file: No such file or directory
-
It's not 'which ip', but `which ip` using the backtick symbol "`" under the "~" on my keyboard.
Alternatively use "ldd /usr/local/sbin/ip"
What does this give: $ cat /etc/sysconfig/tcedir/onboot.lst
-
~$ ldd /usr/local/sbin/ip
linux-gate.so.1 (0xb77c7000)
libdl.so.2 => /lib/libdl.so.2 (0xb77bf000)
libc.so.6 => /lib/libc.so.6 (0xb76aa000)
/lib/ld-linux.so.2 (0x800f7000)
~$ cat /etc/sysconfig/tcedir/onboot.lst
openssh.tcz
iproute2.tcz # this is I added manually by 'echo iproute2.tcz >> /etc/sysconfig/tcedir/onboot.lst '
-
That seems to be in order, I'm really not sure why iproute2 does not load "onboot"
Edit: just a thought, but does "ls /etc/sysconfig/tcedir/optional/iproute*" show iproute2.tcz.{, dep, md5.txt}?
-
How about the output to these?
whoami
env
cat ~/.profile
ls -al /etc/sysconfig/tcedir
df -a
-
That seems to be in order, I'm really not sure why iproute2 does not load "onboot"
Edit: just a thought, but does "ls /etc/sysconfig/tcedir/optional/iproute*" show iproute2.tcz.{, dep, md5.txt}?
~$ ls /etc/sysconfig/tcedir/optional/iproute*
/etc/sysconfig/tcedir/optional/iproute2.tcz
/etc/sysconfig/tcedir/optional/iproute2.tcz.dep
-
How about the output to these?
whoami
env
cat ~/.profile
ls -al /etc/sysconfig/tcedir
df -a
~$ whoami
tc
~$ env
SSH_CLIENT=192.168.122.1 46842 22
MAIL=/var/mail/tc
USER=tc
SHLVL=1
HOME=/home/tc
SSH_TTY=/dev/pts/0
PAGER=less -EM
PS1=\u@\h:\w\$
ENV=/home/tc/.ashrc
BACKUP=1
LOGNAME=tc
TERM=xterm-256color
PATH=/home/tc/.local/bin:/usr/local/sbin:/usr/local/bin:/apps/bin:/usr/sbin:/usr/bin:/sbin:/bin:/etc/sysconfig/tcedir/ondemand
G_FILENAME_ENCODING=iso8859-1
LANG=C
MANPAGER=less -isR
SHELL=/bin/sh
FLWM_TITLEBAR_COLOR=58:7D:AA
PWD=/home/tc
SSH_CONNECTION=192.168.122.1 46842 192.168.122.191 22
EDITOR=vi
~$ cat ~/.profile
# ~/.profile: Executed by Bourne-compatible login SHells.
#
# Path to personal scripts and executables (~/.local/bin).
[ -d "$HOME/.local/bin" ] || mkdir -p "$HOME/.local/bin"
export PATH=$HOME/.local/bin:$PATH
ONDEMAND=/etc/sysconfig/tcedir/ondemand
[ -d "$ONDEMAND" ] && export PATH=$PATH:"$ONDEMAND"
# Environment variables and prompt for Ash SHell
# or Bash. Default is a classic prompt.
#
PS1='\u@\h:\w\$ '
PAGER='less -EM'
MANPAGER='less -isR'
EDITOR=vi
export PS1 PAGER FILEMGR EDITOR MANPAGER
export BACKUP=1
[ "`id -un`" = "`cat /etc/sysconfig/tcuser`" ] && echo "$BACKUP" | sudo tee /etc/sysconfig/backup >/dev/null 2>&1
export FLWM_TITLEBAR_COLOR="58:7D:AA"
if [ -f "$HOME/.ashrc" ]; then
export ENV="$HOME/.ashrc"
. "$HOME/.ashrc"
fi
TERMTYPE=`/usr/bin/tty`
[ ${TERMTYPE:5:3} == "tty" ] && (
[ ! -f /etc/sysconfig/Xserver ] ||
[ -f /etc/sysconfig/text ] ||
[ -e /tmp/.X11-unix/X0 ] ||
startx
)
~$ ls -al /etc/sysconfig/tcedir/
total 2611
drwxrwxr-x 5 tc staff 1024 Sep 4 10:10 ./
drwxr-xr-x 4 root root 1024 Sep 4 10:10 ../
drwxrwxr-x 3 tc staff 1024 Sep 4 10:10 boot/
-rw-rw-r-- 1 tc staff 2666853 Sep 5 01:59 mydata.tgz
-rw-rw-r-- 1 tc staff 25 Sep 5 11:26 onboot.lst
drwxrwxr-x 2 tc staff 1024 Sep 4 10:10 ondemand/
drwxrwxr-x 2 tc staff 1024 Sep 5 01:35 optional/
:~$ df -a
Filesystem Size Used Available Use% Mounted on
rootfs 107.9M 14.6M 93.4M 13% /
proc 0 0 0 0% /proc
sysfs 0 0 0 0% /sys
devpts 0 0 0 0% /dev/pts
tmpfs 60.0M 0 60.0M 0% /dev/shm
fusectl 0 0 0 0% /sys/fs/fuse/connections
/dev/sda1 56.7M 18.8M 36.7M 34% /mnt/sda1
/dev/loop0 1.5M 1.5M 0 100% /tmp/tcloop/openssl
/dev/loop1 232.0K 232.0K 0 100% /tmp/tcloop/ncurses
/dev/loop2 92.0K 92.0K 0 100% /tmp/tcloop/libedit
/dev/loop3 2.0M 2.0M 0 100% /tmp/tcloop/openssh
-
I don't think a missing *.md5.txt would cause any problems regarding extension loading but you might want to get that as well in order to get updates if available and to not confuse extension browser if an extension depends on iproute2.
Also try
sudo ldconfig
And see if ip works then.
Re onboot.lst, make sure the last line is an empty line.
-
Are you sure you didn't truncate the df -a output? Otherwise iproute2 isn't loaded. Also, I wanted to see ls -al /etc/sysconfig/tcedir WITHOUT a trailing slash. The output will be different.
-
tc@tinycorelinux01:~$ sudo ldconfig
tc@tinycorelinux01:~$ ip
-sh: ip: not found
tc@tinycorelinux01:~$ df -a
Filesystem Size Used Available Use% Mounted on
rootfs 107.9M 14.6M 93.4M 13% /
proc 0 0 0 0% /proc
sysfs 0 0 0 0% /sys
devpts 0 0 0 0% /dev/pts
tmpfs 60.0M 0 60.0M 0% /dev/shm
fusectl 0 0 0 0% /sys/fs/fuse/connections
/dev/sda1 56.7M 18.8M 36.7M 34% /mnt/sda1
/dev/loop0 1.5M 1.5M 0 100% /tmp/tcloop/openssl
/dev/loop1 232.0K 232.0K 0 100% /tmp/tcloop/ncurses
/dev/loop2 92.0K 92.0K 0 100% /tmp/tcloop/libedit
/dev/loop3 2.0M 2.0M 0 100% /tmp/tcloop/openssh
tc@tinycorelinux01:~$ ls -al /etc/sysconfig/tcedir
lrwxrwxrwx 1 root root 13 Sep 6 01:34 /etc/sysconfig/tcedir -> /mnt/sda1/tce/
@andyj I really didn't truncate the df -a output
-
It doesn't look like iproute2 is loaded. I would expect to see loop devices mounted for it and it's dependencies. Let's try:
tce-status -i
ls -al /etc/sysconfig/tcedir/optional
-
~$ tce-status -i
db
libedit
ncurses
openssh
openssl
~$ ls -al /etc/sysconfig/tcedir/optional/
total 4867
drwxrwxr-x 2 tc staff 1024 Sep 5 01:35 ./
drwxrwxr-x 5 tc staff 1024 Sep 4 10:10 ../
-rw-rw-r-- 1 tc staff 537258 Sep 4 13:09 db.tcz
-rw-rw-r-- 1 tc staff 41 Sep 4 12:07 db.tcz.md5.txt
-rw-rw-r-- 1 tc staff 483328 Sep 5 01:35 iproute2.tcz
-rw-rw-r-- 1 tc staff 7 Sep 4 13:08 iproute2.tcz.dep
-rw-rw-r-- 1 tc staff 94208 Sep 4 10:18 libedit.tcz
-rw-rw-r-- 1 tc staff 12 Sep 4 10:15 libedit.tcz.dep
-rw-rw-r-- 1 tc staff 46 Sep 4 10:16 libedit.tcz.md5.txt
-rw-rw-r-- 1 tc staff 237568 Sep 4 10:16 ncurses.tcz
-rw-rw-r-- 1 tc staff 46 Sep 4 10:16 ncurses.tcz.md5.txt
-rw-rw-r-- 1 tc staff 2093056 Sep 4 10:22 openssh.tcz
-rw-rw-r-- 1 tc staff 24 Sep 4 10:18 openssh.tcz.dep
-rw-rw-r-- 1 tc staff 46 Sep 4 10:18 openssh.tcz.md5.txt
-rw-rw-r-- 1 tc staff 1527808 Sep 4 10:16 openssl.tcz
-rw-rw-r-- 1 tc staff 46 Sep 4 10:15 openssl.tcz.md5.txt
what does 'tce-status -i' mean?
-
"tce-status -i" shows which extensions are loaded.
-
ip isn't working because iproute2 isn't loaded. There's probably a message during the boot process that tells you why. Edit /etc/sysconfig/tcedir/boot/extlinux/extlinux.conf and add the word pause to the end of the line labeled APPEND. Save and reboot.
-
ip isn't working because iproute2 isn't loaded. There's probably a message during the boot process that tells you why. Edit /etc/sysconfig/tcedir/boot/extlinux/extlinux.conf and add the word pause to the end of the line labeled APPEND. Save and reboot.
no message,everything looks ok
-
Hi someone
~$ tce-status -i
db
libedit
ncurses
openssh
openssl
no message,everything looks ok
Not Ok because as previously mentioned the above status report doesn't show iproute2 being loaded
try tce-load -i iproute2
then be sure to add iproute2 to your "onboot.lst" before next reboot
:)