WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Install from a local file,lost after reboot  (Read 5334 times)

Offline someone

  • Newbie
  • *
  • Posts: 15
Install from a local file,lost after reboot
« on: September 04, 2016, 06:30:45 AM »
I want to install iproute2.tcz.

Code: [Select]
tce-load -wi iproute2
always get 'wget:timed out', so I download iproute2.tcz
Code: [Select]
wget -c http://www.tinycorelinux.net/7.x/x86/tcz/iproute2.tcz
after download
Code: [Select]
tce-load -i iproute2.tczand verify.

OK,I intalled iproute2 successfully.

Code: [Select]
~$ sudo backup
but after reboot,
Code: [Select]
~$ ip
-sh: ip: not found

what shall I do?

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Install from a local file,lost after reboot
« Reply #1 on: September 04, 2016, 06:48:05 AM »
echo iproute2.tcz >> /etc/sysconfig/tcedir/onboot.lst
Download a copy and keep it handy: Core book ;)

Offline someone

  • Newbie
  • *
  • Posts: 15
Re: Install from a local file,lost after reboot
« Reply #2 on: September 04, 2016, 07:19:56 AM »
Think you for reply. but it doesn't work.

after reboot,
Code: [Select]
~$ ip
-sh: ip: not found
Code: [Select]
~$ cat /etc/sysconfig/tcedir/onboot.list
openssh.tcz
iproute2.tcz

but iproute.tcz still here.

Did I miss any details?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14546
Re: Install from a local file,lost after reboot
« Reply #3 on: September 04, 2016, 07:59:05 AM »
If you use the apps gui to set iproute2 "onboot", it will be loaded the next time you re-boot.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Install from a local file,lost after reboot
« Reply #4 on: September 04, 2016, 08:03:49 AM »
When you manually downloaded  iproute2.tcz , did you also download  iproute2.tcz.dep  and whatever dependencies are listed in that file?
Download a copy and keep it handy: Core book ;)

Offline someone

  • Newbie
  • *
  • Posts: 15
Re: Install from a local file,lost after reboot
« Reply #5 on: September 04, 2016, 08:04:11 AM »
I used text based install, no gui

Offline andyj

  • Hero Member
  • *****
  • Posts: 1022
Re: Install from a local file,lost after reboot
« Reply #6 on: September 04, 2016, 08:10:21 AM »
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.

Offline someone

  • Newbie
  • *
  • Posts: 15
Re: Install from a local file,lost after reboot
« Reply #7 on: September 04, 2016, 06:22:38 PM »
Think you for reply.
my file is .lst,  list is input error here.
tcedir path is /etc/sysconfig/tcedir/.   

after reboot
Code: [Select]
~$ cat /etc/sysconfig/tcedir/onboot.lst
openssh.tcz
iproute2.tcz
so, I think tcedir is persistent.

Code: [Select]
~$ ls /opt/.filetool.lst -l
-rw-rw-r--    1 root     staff           79 Sep  4 14:14 /opt/.filetool.lst

Offline someone

  • Newbie
  • *
  • Posts: 15
Re: Install from a local file,lost after reboot
« Reply #8 on: September 04, 2016, 06:26:30 PM »
When you manually downloaded  iproute2.tcz , did you also download  iproute2.tcz.dep  and whatever dependencies are listed in that file?

Code: [Select]
~$ cat /mnt/sda1/tce/optional/iproute2.tcz.dep
db.tcz
~$ tce-load -wi db.tcz
db is already installed!

Offline andyj

  • Hero Member
  • *****
  • Posts: 1022
Re: Install from a local file,lost after reboot
« Reply #9 on: September 04, 2016, 07:17:30 PM »
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?

Offline someone

  • Newbie
  • *
  • Posts: 15
Re: Install from a local file,lost after reboot
« Reply #10 on: September 04, 2016, 07:33:25 PM »
@andyj
Code: [Select]
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.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14546
Re: Install from a local file,lost after reboot
« Reply #11 on: September 04, 2016, 10:13:14 PM »
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:
Code: [Select]
$ tce-load -i iproute2
$ ldd `which ip`

Offline someone

  • Newbie
  • *
  • Posts: 15
Re: Install from a local file,lost after reboot
« Reply #12 on: September 05, 2016, 03:36:45 AM »
Code: [Select]
~$ 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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14546
Re: Install from a local file,lost after reboot
« Reply #13 on: September 05, 2016, 03:42:39 AM »
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:
Code: [Select]
$ cat /etc/sysconfig/tcedir/onboot.lst
« Last Edit: September 05, 2016, 03:46:11 AM by Juanito »

Offline someone

  • Newbie
  • *
  • Posts: 15
Re: Install from a local file,lost after reboot
« Reply #14 on: September 05, 2016, 04:25:28 AM »
Code: [Select]
~$ 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 '