Tiny Core Linux

Tiny Core Base => Micro Core => Topic started by: chichita on March 28, 2020, 12:48:27 PM

Title: Quagga Vtysh
Post by: chichita on March 28, 2020, 12:48:27 PM
Hello,
in installed quagga with this following instructions but whenever i type vtysh i get this message " vtysh: error while loading shared libraries : libtinfo.so.6 : cannot open shared object file : No such file or directory "
what can i do please ?


tce-load -wi quagga

 sudo su
# echo "password quagga" > /usr/local/etc/quagga/zebra.conf
# echo "password quagga" > /usr/local/etc/quagga/vtysh.conf
# echo "password quagga" > /usr/local/etc/quagga/ripd.conf
# echo "password quagga" > /usr/local/etc/quagga/ripngd.conf
# echo "password quagga" > /usr/local/etc/quagga/ospfd.conf
# echo "password quagga" > /usr/local/etc/quagga/ospf6d.conf
# echo "password quagga" > /usr/local/etc/quagga/bgpd.conf
# echo "password quagga" > /usr/local/etc/quagga/isisd.conf
# echo "password quagga" > /usr/local/etc/quagga/babeld.conf

 sudo su
# echo "/usr/local/sbin/zebra -u root -d -f /usr/local/etc/quagga/zebra.conf" >> /opt/bootlocal.sh
# echo "/usr/local/sbin/ripd -u root -d -f /usr/local/etc/quagga/ripd.conf" >> /opt/bootlocal.sh
# echo "/usr/local/sbin/ripngd -u root -d -f /usr/local/etc/quagga/ripngd.conf" >> /opt/bootlocal.sh
# echo "/usr/local/sbin/ospfd -u root -d -f /usr/local/etc/quagga/ospfd.conf" >> /opt/bootlocal.sh
# echo "/usr/local/sbin/ospf6d -u root -d -f /usr/local/etc/quagga/ospf6d.conf" >> /opt/bootlocal.sh
# echo "/usr/local/sbin/bgpd -u root -d -f /usr/local/etc/quagga/bgpd.conf" >> /opt/bootlocal.sh
# echo "/usr/local/sbin/isisd -u root -d -f /usr/local/etc/quagga/isisd.conf" >> /opt/bootlocal.sh
# echo "/usr/local/sbin/babeld -u root -d -f /usr/local/etc/quagga/babeld.conf" >> /opt/bootlocal.sh

echo "/usr/local/etc/quagga" >> /opt/.filetool.lst
/usr/bin/filetool.sh -b

Title: Re: Quagga Vtysh
Post by: Rich on March 28, 2020, 01:53:41 PM
Hi chichita
... error while loading shared libraries : libtinfo.so.6 : cannot open shared object file : No such file or directory ...
libtinfo.so.6  is in  ncurses.tcz.  quagga.tcz  lists  ncursesw.tcz  as a dependency, which does not include  libtinfo.so.6.
If you are running TC10, you can try installing  ncurses.  That extension is not present in TC11.

Title: Re: Quagga Vtysh
Post by: chichita on March 28, 2020, 02:54:44 PM
i already installed ncursesw.tcz , it says that it's already installed ...
Title: Re: Quagga Vtysh
Post by: Rich on March 28, 2020, 05:08:50 PM
Hi chichita
libtinfo.so.6  is in  ncurses.tcz.  quagga.tcz  lists  ncursesw.tcz  as a dependency, which does not include  libtinfo.so.6.
If you are running TC10, you can try installing  ncurses.  That extension is not present in TC11.

TC10 has both  ncurses.tcz  and  ncursesw.tcz.  Notice the different spelling.
Title: Re: Quagga Vtysh
Post by: chichita on March 29, 2020, 12:12:32 PM
i get an error when i load
tce-load -wi ncurses.tcz
bad address 'distro.ibiblio.org'
md5sum: ncurses.tcz.md5.txt: no such file or directory
Title: Re: Quagga Vtysh
Post by: Rich on March 29, 2020, 05:54:27 PM
Hi chichita
... bad address 'distro.ibiblio.org' ...
That's not a valid Tinycore repo address, this is:
Code: [Select]
http://distro.ibiblio.org/tinycorelinux/Check your  /opt/tcemirror  file and correct it if necessary.

You also don't mention whether you are running TC10 or TC11. Whether you are running 32 or 64 bit.
If you are running TC10, you can use  tce-load.

If you are running TC11 and want to try the TC10 extension, then:

for 32 bit
Code: [Select]
http://tinycorelinux.net/10.x/x86/tcz/ncurses.tcz
for 64 bit
Code: [Select]
http://tinycorelinux.net/10.x/x86_64/tcz/ncurses.tcz
Title: Re: Quagga Vtysh
Post by: Juanito on March 29, 2020, 10:11:38 PM
I'd also suggest you pm the quagga maintainer and request an update compiled against ncursesw.
Title: Re: Quagga Vtysh
Post by: chichita on March 30, 2020, 04:12:42 PM
how can i use http://tinycorelinux.net/10.x/x86_64/tcz/ncurses.tcz please ?
and what is the command line to activated zebra,ospf.... and vtysh ?
thanks
Title: Re: Quagga Vtysh
Post by: Rich on March 30, 2020, 05:14:07 PM
Hi chichita
how can i use http://tinycorelinux.net/10.x/x86_64/tcz/ncurses.tcz please ? ...
Download it to your  tce  directory, then:
Code: [Select]
tce-load -i ncurses
If that fixes the  missing library  message, then add  ncurses.tcz  to your  onboot.lst  file.
Title: Re: Quagga Vtysh
Post by: chichita on March 31, 2020, 07:55:51 AM
how can i download it to my tce directory ? im sorry im a new to all of this
Title: Re: Quagga Vtysh
Post by: Rich on March 31, 2020, 08:24:10 AM
Hi chichita
Code: [Select]
cd  /etc/sysconfig/tcedir/optional
wget http://tinycorelinux.net/10.x/x86_64/tcz/ncurses.tcz

If it works for you, then add it to your onboot.lst  file:
Code: [Select]
echo ncurses.tcz >> /etc/sysconfig/tcedir/onboot.lst
Title: Re: Quagga Vtysh
Post by: chichita on March 31, 2020, 09:13:41 AM
it says when i add it
 wget: bad address 'tinycorelinux.net'
Title: Re: Quagga Vtysh
Post by: Rich on March 31, 2020, 09:22:15 AM
Hi chichita
I just tried it, and it works:
Code: [Select]
tc@box:~$ wget http://tinycorelinux.net/10.x/x86_64/tcz/ncurses.tcz
--2020-03-31 12:19:35--  http://tinycorelinux.net/10.x/x86_64/tcz/ncurses.tcz
Resolving tinycorelinux.net... 89.22.99.37
Connecting to tinycorelinux.net|89.22.99.37|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 200704 (196K) [text/plain]
Saving to: `ncurses.tcz'

100%[======================================>] 200,704      540K/s   in 0.4s   

2020-03-31 12:19:35 (540 KB/s) - `ncurses.tcz' saved [200704/200704]

tc@box:~$
Title: Re: Quagga Vtysh
Post by: chichita on March 31, 2020, 09:31:46 AM
here is a screenshot of what i get
Title: Re: Quagga Vtysh
Post by: curaga on March 31, 2020, 09:41:07 AM
You don't have internet properly setup (your DNS is failing to find the address).
Title: Re: Quagga Vtysh
Post by: chichita on March 31, 2020, 09:58:10 AM
how can i fix te DNS please ?
Title: Re: Quagga Vtysh
Post by: chichita on March 31, 2020, 10:27:28 AM
how can i fix this please ? how can i fix the DNS ?
Title: Re: Quagga Vtysh
Post by: Rich on March 31, 2020, 11:36:08 AM
Hi chichita
Check your  /etc/resolv.conf  file:
Code: [Select]
tc@E310:~$ cat /etc/resolv.conf
nameserver 192.168.1.1
nameserver 68.237.161.12
tc@E310:~$

The first entry is my routers LAN address.
The second entry is the  name server  run by my  (ISP) Internet Service Provider.

Do not copy theses numbers. The router address may not be correct for your router. The second entry may not be appropriate
for your location.
Title: Re: Quagga Vtysh
Post by: chichita on March 31, 2020, 11:57:58 AM
this is what i get
i checked my router wifi address and its 192.168.1.1
what can i do to fix it ?
Title: Re: Quagga Vtysh
Post by: Rich on March 31, 2020, 12:18:33 PM
Hi chichita
Try this:
Code: [Select]
echo "nameserver 192.168.1.1" > /etc/resolv.conf
echo "nameserver 8.8.8.8" >> /etc/resolv.conf

The second entry is one of Googles name servers.
Title: Re: Quagga Vtysh
Post by: chichita on March 31, 2020, 12:39:37 PM
i still get the same bad address message ...
is there an alternative to quagga ? since i can't make it work with vtysh as i get ibiblio.so.6 problem
i tried to download FRRouting or bird but this is the message i get
Title: Re: Quagga Vtysh
Post by: Rich on March 31, 2020, 12:42:16 PM
Hi chichita
What is that  192.168.101.254  address?
Title: Re: Quagga Vtysh
Post by: chichita on March 31, 2020, 12:55:58 PM
i don't know ; i think it's my eth2 address
Title: Re: Quagga Vtysh
Post by: Rich on March 31, 2020, 01:45:27 PM
Hi chichita
I don't know what to make of that. Maybe someone else can provide some ideas.

It's not a solution, but see if this gets you past the DNS issue for the time being:
Code: [Select]
wget 89.22.99.37/10.x/x86_64/tcz/ncurses.tcz
Title: Re: Quagga Vtysh
Post by: chichita on March 31, 2020, 02:00:45 PM
i don't know what to do  :-\ :-\ 
another question : how can i run an ssh session so i can use the copy past option plz ?