curl w Tomato
|
qrs |
Dodano 17-09-2014 09:17
|
Maxi User
Posty: 749
Dołączył: 02/12/2012 00:55
|
czy jest możliwość dodania curl do skryptu tomato?
obecnie
#!/bin/bash
curl -s "http://meteo.org.pl/lodz"
zwraca
Cytat /tmp/.wxVKjpnZ: line 7: curl: not found
:( |
|
|
|
shibby |
Dodano 17-09-2014 09:21
|
SysOp
Posty: 17110
Dołączył: 15/01/2009 20:30
|
a zainstalowałeś libcurl z optware?
Router: Unifi Cloud Gateway Max
Switch: Netgear MS510TXPP
Switch: Unifi USW-Flex-Mini - szt. 2
Wi-Fi: Unifi U6-Lite - szt. 2
Proxmox VE: i5-13400T, 64GB RAM, 2x 512GB NVMe, 3x 2TB SSD, Intel X710-DA2 SFP+
VM #1: Synology SA6400
VM #2: Debian, WWW
VM #3: Home Assistant OS
|
|
|
|
qrs |
Dodano 17-09-2014 09:38
|
Maxi User
Posty: 749
Dołączył: 02/12/2012 00:55
|
mam default 1.28.0000 MIPSR2-121 K26 USB Tor-VPN
przy próbie
echo "src/gz nslu2 http://ipkg.nslu2-linux.org/feeds/optware/mbwe-bluering/cross/stable" > /opt/etc/ipkg.conf
echo "dest /opt/ /" >> /opt/etc/ipkg.conf
/opt/bin/ipkg update
dostaję
'/opt/bin/ipkg': No such file or directory
Edytowany przez qrs dnia 17-09-2014 09:52
|
|
|
|
shibby |
Dodano 17-09-2014 10:00
|
SysOp
Posty: 17110
Dołączył: 15/01/2009 20:30
|
a zainstalowaś w ogóle optware? Komendy które wydałeś nie mają sensu gdyż właśnie wskazałeś repozytorium pakierów dla ARM a jak mniemam po wersji masz MIPSEL.
by zainstalować optware, zamontuj dysk pod /opt i wydaj komendę optware-install.sh
Router: Unifi Cloud Gateway Max
Switch: Netgear MS510TXPP
Switch: Unifi USW-Flex-Mini - szt. 2
Wi-Fi: Unifi U6-Lite - szt. 2
Proxmox VE: i5-13400T, 64GB RAM, 2x 512GB NVMe, 3x 2TB SSD, Intel X710-DA2 SFP+
VM #1: Synology SA6400
VM #2: Debian, WWW
VM #3: Home Assistant OS
|
|
|
|
qrs |
Dodano 17-09-2014 10:25
|
Maxi User
Posty: 749
Dołączył: 02/12/2012 00:55
|
niczego nie instalowałem do tomato, mogę prosić o tutorial co zrobić aby curl działał? |
|
|
|
sapcio2 |
Dodano 17-09-2014 13:40
|
Power User
Posty: 352
Dołączył: 21/11/2012 19:45
|
Tak jak shibby napisał próbujesz dodać repozytoria pod inną architekturę niż posiadasz.
Przygotuj pendriva. Sformatuj go na ext2. zadbaj żeby był podmontowany do /opt i wydaj komendę
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
Asus RT-N16 - tomato-K26USB-1.28.RT-N5x-MIPSR2-115-NEWDRIVER
|
|
|
|
qrs |
Dodano 17-09-2014 15:26
|
Maxi User
Posty: 749
Dołączył: 02/12/2012 00:55
|
hmmm dzięki, powalczę z tym, jeszcze nie wiem jak i nie mam libcurl ale w sieci może coś znajdę
Połączony z 17 wrzesień 2014 17:40:45:
podłączyłem pendrive i mam status
Cytat Partition 'sda1' ext2 (7,716.68 MB / 7,699.47 MB free) is mounted on /tmp/mnt/sda1
jednakże gdy wykonuję optware-install.sh dostaję
Cytat
Checking system config ...
Using 87.51.20.1 as default gateway.
Using the following nameserver(s):
nameserver 127.0.0.1
Error: /opt partition not mounted.
Enter
mkdir /jffs/opt
mount -o bind /jffs/opt /opt
to correct this.
Połączony z 17 wrzesień 2014 17:51:50:
udalo się :)
Cytat
Checking system config ...
Using 87.51.20.1 as default gateway.
Using the following nameserver(s):
nameserver 127.0.0.1
Installing package uclibc-opt_0.9.28-13_mipsel.ipk ...
Connecting to ipkg.nslu2-linux.org (140.211.169.161:80)
uclibc-opt_0.9.28-13 3% |* | 33304 0:00:24 ETA
uclibc-opt_0.9.28-13 16% |***** | 139k 0:00:09 ETA
uclibc-opt_0.9.28-13 36% |*********** | 299k 0:00:05 ETA
uclibc-opt_0.9.28-13 56% |***************** | 469k 0:00:03 ETA
uclibc-opt_0.9.28-13 75% |*********************** | 625k 0:00:01 ETA
uclibc-opt_0.9.28-13 93% |***************************** | 780k 0:00:00 ETA
uclibc-opt_0.9.28-13 100% |*******************************| 832k 0:00:00 ETA
Updating /opt/etc/ld.so.cache
Installing package ipkg-opt_0.99.163-10_mipsel.ipk ...
Connecting to ipkg.nslu2-linux.org (140.211.169.161:80)
ipkg-opt_0.99.163-10 43% |************* | 33304 0:00:01 ETA
ipkg-opt_0.99.163-10 100% |*******************************| 75831 0:00:00 ETA
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/optware
Successfully terminated.
Installing uclibc-opt (0.9.28-13) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/uclibc-opt_0.9.28-13_mipsel.ipk
package uclibc-opt suggests installing ipkg-opt
package uclibc-opt suggests installing ipkg-opt
package uclibc-opt suggests installing ipkg-opt
Configuring uclibc-opt
Updating /opt/etc/ld.so.cache
Successfully terminated.
Installing ipkg-opt (0.99.163-10) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ipkg-opt_0.99.163-10_mipsel.ipk
Configuring ipkg-opt
Successfully terminated.
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/optware
Downloading http://tomato.groov.pl/repo/Packages
Updated list of available packages in /opt/lib/ipkg/lists/shibby
Successfully terminated.
Połączony z 17 wrzesień 2014 17:58:43:
no dobra a jak zainstalować curl?
w /usr/bin nie ma curl
Połączony z 17 wrzesień 2014 18:05:06:
ll /opt
zwraca
drwxr-xr-x 2 root root 4096 Sep 17 17:49 bin/
drwxr-xr-x 2 root root 4096 Sep 17 17:49 etc/
drwxr-xr-x 3 root root 4096 Sep 17 17:49 lib/
drwx------ 2 root root 16384 Sep 17 17:33 lost+found/
drwxr-xr-x 2 root root 4096 Sep 17 17:49 sbin/
drwxr-xr-x 3 root root 4096 Feb 19 2012 share/
drwxr-xr-x 3 root root 4096 Feb 18 2012 usr/
Edytowany przez qrs dnia 17-09-2014 18:05
|
|
|
|
sapcio2 |
Dodano 17-09-2014 18:21
|
Power User
Posty: 352
Dołączył: 21/11/2012 19:45
|
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
Asus RT-N16 - tomato-K26USB-1.28.RT-N5x-MIPSR2-115-NEWDRIVER
|
|
|
|
qrs |
Dodano 17-09-2014 18:24
|
Maxi User
Posty: 749
Dołączył: 02/12/2012 00:55
|
udało się, działa - wielkie dzięki
Połączony z 17 wrzesień 2014 18:51:43:
po każdym upgrade softu Tomatu będę musiał instalować optware i curl?
czy pendrive musi być przez cały czas zamontowany aby curl działał?
Edytowany przez qrs dnia 17-09-2014 18:51
|
|
|
|
sapcio2 |
Dodano 17-09-2014 19:41
|
Power User
Posty: 352
Dołączył: 21/11/2012 19:45
|
1. Nie
2. Tak
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
Asus RT-N16 - tomato-K26USB-1.28.RT-N5x-MIPSR2-115-NEWDRIVER
|
|
|
|
qrs |
Dodano 18-09-2014 23:52
|
Maxi User
Posty: 749
Dołączył: 02/12/2012 00:55
|
jeszcze dopytam, czy base64 też można dodać do Tomato tym sposobem? |
|
|
|
khain |
Dodano 19-09-2014 13:50
|
Power User
Posty: 335
Dołączył: 25/07/2007 17:09
|
Sprawdź jakie są dostępne paczki za pomocą
ipkg list |grep pełna_lub_częściowa_nazwa_paczki_ktorej_szukasz
TP-LINK TL-WDR3600 @ Openwrt - 300/20Mbps
HP ProLiant DL360e Gen8 @ ESXi 7.0.1:2 x Intel Xeon CPU E5-2450L @ 1.80GHz, 160GB RAM ECC, 2x 1TB SSD
ASRock J4205-ITX @ Debian 11 16BG RAM, 2x 1TB SSD, 1x 1TB HDD
|
|
|
|
qrs |
Dodano 19-09-2014 17:27
|
Maxi User
Posty: 749
Dołączył: 02/12/2012 00:55
|
sprawdziłem, nie ma ale dzięki za pomoc |
|
|
|
shibby |
Dodano 19-09-2014 21:14
|
SysOp
Posty: 17110
Dołączył: 15/01/2009 20:30
|
a base64 nie jest czasem częścią pakietu coreutils?
Router: Unifi Cloud Gateway Max
Switch: Netgear MS510TXPP
Switch: Unifi USW-Flex-Mini - szt. 2
Wi-Fi: Unifi U6-Lite - szt. 2
Proxmox VE: i5-13400T, 64GB RAM, 2x 512GB NVMe, 3x 2TB SSD, Intel X710-DA2 SFP+
VM #1: Synology SA6400
VM #2: Debian, WWW
VM #3: Home Assistant OS
|
|
|
|
qrs |
Dodano 19-09-2014 22:51
|
Maxi User
Posty: 749
Dołączył: 02/12/2012 00:55
|
fakt, zgadza się
Installing coreutils (8.4-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/coreutils_8.4-1_mipsel.ipk
Configuring coreutils
update-alternatives: Linking //opt/bin/[ to coreutils-lbracket
update-alternatives: Linking //opt/bin/base64 to coreutils-base64
update-alternatives: Linking //opt/bin/basename to coreutils-basename
update-alternatives: Linking //opt/bin/cat to coreutils-cat
update-alternatives: Linking //opt/bin/chcon to coreutils-chcon
update-alternatives: Linking //opt/bin/chgrp to coreutils-chgrp
update-alternatives: Linking //opt/bin/chmod to coreutils-chmod
update-alternatives: Linking //opt/bin/chown to coreutils-chown
update-alternatives: Linking //opt/bin/chroot to coreutils-chroot
update-alternatives: Linking //opt/bin/cksum to coreutils-cksum
update-alternatives: Linking //opt/bin/comm to coreutils-comm
update-alternatives: Linking //opt/bin/cp to coreutils-cp
update-alternatives: Linking //opt/bin/csplit to coreutils-csplit
update-alternatives: Linking //opt/bin/cut to coreutils-cut
update-alternatives: Linking //opt/bin/date to coreutils-date
update-alternatives: Linking //opt/bin/dd to coreutils-dd
update-alternatives: Linking //opt/bin/df to coreutils-df
update-alternatives: Linking //opt/bin/dir to coreutils-dir
update-alternatives: Linking //opt/bin/dircolors to coreutils-dircolors
update-alternatives: Linking //opt/bin/dirname to coreutils-dirname
update-alternatives: Linking //opt/bin/du to coreutils-du
update-alternatives: Linking //opt/bin/echo to coreutils-echo
update-alternatives: Linking //opt/bin/env to coreutils-env
update-alternatives: Linking //opt/bin/expand to coreutils-expand
update-alternatives: Linking //opt/bin/expr to coreutils-expr
update-alternatives: Linking //opt/bin/factor to coreutils-factor
update-alternatives: Linking //opt/bin/false to coreutils-false
update-alternatives: Linking //opt/bin/fmt to coreutils-fmt
update-alternatives: Linking //opt/bin/fold to coreutils-fold
update-alternatives: Linking //opt/bin/groups to coreutils-groups
update-alternatives: Linking //opt/bin/head to coreutils-head
update-alternatives: Linking //opt/bin/hostid to coreutils-hostid
update-alternatives: Linking //opt/bin/id to coreutils-id
update-alternatives: Linking //opt/bin/install to coreutils-install
update-alternatives: Linking //opt/bin/join to coreutils-join
update-alternatives: Linking //opt/bin/kill to coreutils-kill
update-alternatives: Linking //opt/bin/link to coreutils-link
update-alternatives: Linking //opt/bin/ln to coreutils-ln
update-alternatives: Linking //opt/bin/logname to coreutils-logname
update-alternatives: Linking //opt/bin/ls to coreutils-ls
update-alternatives: Linking //opt/bin/md5sum to coreutils-md5sum
update-alternatives: Linking //opt/bin/mkdir to coreutils-mkdir
update-alternatives: Linking //opt/bin/mkfifo to coreutils-mkfifo
update-alternatives: Linking //opt/bin/mknod to coreutils-mknod
update-alternatives: Linking //opt/bin/mktemp to coreutils-mktemp
update-alternatives: Linking //opt/bin/mv to coreutils-mv
update-alternatives: Linking //opt/bin/nice to coreutils-nice
update-alternatives: Linking //opt/bin/nl to coreutils-nl
update-alternatives: Linking //opt/bin/nohup to coreutils-nohup
update-alternatives: Linking //opt/bin/nproc to coreutils-nproc
update-alternatives: Linking //opt/bin/od to coreutils-od
update-alternatives: Linking //opt/bin/paste to coreutils-paste
update-alternatives: Linking //opt/bin/pathchk to coreutils-pathchk
update-alternatives: Linking //opt/bin/pinky to coreutils-pinky
update-alternatives: Linking //opt/bin/pr to coreutils-pr
update-alternatives: Linking //opt/bin/printenv to coreutils-printenv
update-alternatives: Linking //opt/bin/printf to coreutils-printf
update-alternatives: Linking //opt/bin/ptx to coreutils-ptx
update-alternatives: Linking //opt/bin/pwd to coreutils-pwd
update-alternatives: Linking //opt/bin/readlink to coreutils-readlink
update-alternatives: Linking //opt/bin/rm to coreutils-rm
update-alternatives: Linking //opt/bin/rmdir to coreutils-rmdir
update-alternatives: Linking //opt/bin/runcon to coreutils-runcon
update-alternatives: Linking //opt/bin/seq to coreutils-seq
update-alternatives: Linking //opt/bin/sha1sum to coreutils-sha1sum
update-alternatives: Linking //opt/bin/sha224sum to coreutils-sha224sum
update-alternatives: Linking //opt/bin/sha256sum to coreutils-sha256sum
update-alternatives: Linking //opt/bin/sha384sum to coreutils-sha384sum
update-alternatives: Linking //opt/bin/sha512sum to coreutils-sha512sum
update-alternatives: Linking //opt/bin/shred to coreutils-shred
update-alternatives: Linking //opt/bin/shuf to coreutils-shuf
update-alternatives: Linking //opt/bin/sleep to coreutils-sleep
update-alternatives: Linking //opt/bin/sort to coreutils-sort
update-alternatives: Linking //opt/bin/split to coreutils-split
update-alternatives: Linking //opt/bin/stat to coreutils-stat
update-alternatives: Linking //opt/bin/stdbuf to coreutils-stdbuf
update-alternatives: Linking //opt/bin/stty to coreutils-stty
update-alternatives: Linking //opt/bin/su to coreutils-su
update-alternatives: Linking //opt/bin/sum to coreutils-sum
update-alternatives: Linking //opt/bin/sync to coreutils-sync
update-alternatives: Linking //opt/bin/tac to coreutils-tac
update-alternatives: Linking //opt/bin/tail to coreutils-tail
update-alternatives: Linking //opt/bin/tee to coreutils-tee
update-alternatives: Linking //opt/bin/test to coreutils-test
update-alternatives: Linking //opt/bin/timeout to coreutils-timeout
update-alternatives: Linking //opt/bin/touch to coreutils-touch
update-alternatives: Linking //opt/bin/tr to coreutils-tr
update-alternatives: Linking //opt/bin/true to coreutils-true
update-alternatives: Linking //opt/bin/truncate to coreutils-truncate
update-alternatives: Linking //opt/bin/tsort to coreutils-tsort
update-alternatives: Linking //opt/bin/tty to coreutils-tty
update-alternatives: Linking //opt/bin/uname to coreutils-uname
update-alternatives: Linking //opt/bin/unexpand to coreutils-unexpand
update-alternatives: Linking //opt/bin/uniq to coreutils-uniq
update-alternatives: Linking //opt/bin/unlink to coreutils-unlink
update-alternatives: Linking //opt/bin/uptime to coreutils-uptime
update-alternatives: Linking //opt/bin/users to coreutils-users
update-alternatives: Linking //opt/bin/vdir to coreutils-vdir
update-alternatives: Linking //opt/bin/wc to coreutils-wc
update-alternatives: Linking //opt/bin/who to coreutils-who
update-alternatives: Linking //opt/bin/whoami to coreutils-whoami
update-alternatives: Linking //opt/bin/yes to coreutils-yes
Successfully terminated.
Połączony z 19 wrzesień 2014 22:55:17:
shibby
echo c2hpYmJ5LCBqZXN0ZXMgQm9naWVtIQo= | base64 -d
Edytowany przez qrs dnia 19-09-2014 22:55
|
|
|