openwrt 路由看网速;OpenWrt使用dl更新opkg;Install entware on IPQ8065
- Wordpress建设
- 2020-05-12
- 84热度
- 0评论
在openwrt路由器上使用iftop命令查看实时网速
在openwrt安装iftop命令:
#首先得更新软件清单才能安装软件,略蛋疼
opkg update
#安装iftop
opkg install iftop
然后,然后就安装完了……
iftop -i br-lan
就这么简单,完结233
OpenWrt使用daili 更新软件源命令
还可以直接终端登陆路由用添加使用ddaili 命令
vi /etc/opkg.conf
option http_proxy http://daili服务器:8080/
option ftp_proxy ftp://daili服务器:2121/
Install entware repository on Synology NAS
Introduction
ARM & intel based devices are supported. DSM version must be 3.2 or higher. Use armv5 installer for Marvell Kirkwood mv6282 cpu, you can use armv7 installer for newer ARM cpu’s. Although armv7 repo was compiled with cortex-a9 optimization it was successfully tested on Marvell Armada XP based NAS.
Deploying Entware-ng
1. Create a folder on your hdd (outside rootfs)
mkdir -p /volume1/@entware-ng/opt
Make sure that /opt folder is empty (Optware is not installed), we will remove /opt folder with its contents at this step.
2. Remove /opt and create a symlink
rm -rf /opt
ln -sf /volume1/@entware-ng/opt /opt
3. Run install script
for armv5
wget -O - http://pkg.entware.net/binaries/armv5/installer/entware_install.sh | /bin/sh
for armv7
wget -O - http://pkg.entware.net/binaries/armv7/installer/entware_install.sh | /bin/sh
for x86-32
wget -O - http://pkg.entware.net/binaries/x86-32/installer/entware_install.sh | /bin/sh
for x86-64
wget -O - http://pkg.entware.net/binaries/x86-64/installer/entware_install.sh | /bin/sh
for MIPS
wget -O - http://pkg.entware.net/binaries/mipsel/installer/installer.sh | /bin/sh
4. Edit /etc/rc.local file with a text editor and insert following strings
/bin/ln -sf /volume1/@entware-ng/opt /opt
/opt/etc/init.d/rc.unslung start
at the end of this file, but before ‘exit 0’. The last line ensures that Entware services will be started at boot.
Note: As of DSM 6.0, /etc/rc.local is no longer executed as part of the boot process (see this thread). Instead you have two options.
5. Add the following line in the end of /etc/profile file
. /opt/etc/profile
It will add /opt/bin and /opt/sbin to the PATH variable for interactive login.
6. Reboot your NAS,then you can use opkg commands.
via Entware/Entware-ng
历史命令
* opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/15.05.1/ipq/ipq807x/packages/wigig_utils/Packages.gz, wget returned 8.
* opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/15.05.1/ipq/ipq807x/packages/wigig_utils/Packages.sig, wget returned 8.
opkg: the ``upgrade'' command requires at least one argument
usage: opkg [options...] sub-command [arguments...]
where sub-command is one of:Package Manipulation:
update Update list of available packages
upgrade <pkgs> Upgrade packages
install <pkgs> Install package(s)
configure <pkgs> Configure unpacked package(s)
remove <pkgs|regexp> Remove package(s)
flag <flag> <pkgs> Flag package(s)
<flag>=hold|noprune|user|ok|installed|unpacked (one per invocation)Informational Commands:
list List available packages
list-installed List installed packages
list-upgradable List installed and upgradable packages
list-changed-conffiles List user modified configuration files
files <pkg> List files belonging to <pkg>
search <file|regexp> List package providing <file>
find <regexp> List packages whose name or description matches <regexp>
info [pkg|regexp] Display all info for <pkg>
status [pkg|regexp] Display all status for <pkg>
download <pkg> Download <pkg> to current directory
compare-versions <v1> <op> <v2>
compare versions using <= < > >= = << >>
print-architecture List installable package architectures
depends [-A] [pkgname|pat]+
whatdepends [-A] [pkgname|pat]+
whatdependsrec [-A] [pkgname|pat]+
whatrecommends[-A] [pkgname|pat]+
whatsuggests[-A] [pkgname|pat]+
whatprovides [-A] [pkgname|pat]+
whatconflicts [-A] [pkgname|pat]+
whatreplaces [-A] [pkgname|pat]+Options:
-A Query all packages not just those installed
-V[<level>] Set verbosity level to <level>.
--verbosity[=<level>] Verbosity levels:
0 errors only
1 normal messages (default)
2 informative messages
3 debug
4 debug level 2
-f <conf_file> Use <conf_file> as the opkg configuration file
--conf <conf_file>
--cache <directory> Use a package cache
-d <dest_name> Use <dest_name> as the the root directory for
--dest <dest_name> package installation, removal, upgrading.
<dest_name> should be a defined dest name from
the configuration file, (but can also be a
directory name in a pinch).
-o <dir> Use <dir> as the root directory for
--offline-root <dir> offline installation of packages.
--add-arch <arch>:<prio> Register architecture with given priority
--add-dest <name>:<path> Register destination with given pathForce Options:
--force-depends Install/remove despite failed dependencies
--force-maintainer Overwrite preexisting config files
--force-reinstall Reinstall package(s)
--force-overwrite Overwrite files from other package(s)
--force-downgrade Allow opkg to downgrade packages
--force-space Disable free space checks
--force-postinstall Run postinstall scripts even in offline mode
--force-remove Remove package even if prerm script fails
--force-checksum Don't fail on checksum mismatches
--noaction No action -- test only
--download-only No action -- download only
--nodeps Do not follow dependencies
--nocase Perform case insensitive pattern matching
--size Print package size when listing available packages
--force-removal-of-dependent-packages
Remove package and all dependencies
--autoremove Remove packages that were installed
automatically to satisfy dependencies
-t Specify tmp-dir.
--tmp-dir Specify tmp-dir.regexp could be something like 'pkgname*' '*file*' or similar
e.g. opkg info 'libstd*' or opkg search '*libop*' or opkg remove 'libncur*'
Info: Congratulations!
Info: If there are no errors above then Entware-ng was successfully initialized.
Info: Add /opt/bin & /opt/sbin to your PATH variable
Info: Add '/opt/etc/init.d/rc.unslung start' to startup script for Entware-ng services to start
Info: Found a Bug? Please report at https://github.com/Entware-ng/Entware-ng/issues
root@Norton:/opt# ls
bin etc lib sbin share tmp usr var
root@Norton:/opt# cd bin
root@Norton:/opt/bin# ls
find locale.new localedef.new opkg xargs
root@Norton:/opt/bin# ./opkg update
Downloading http://bin.entware.net/armv7sf-k2.6/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
root@Norton:/opt/bin# ls
find locale.new localedef.new opkg xargs
root@Norton:/opt/bin# mv opkg opkgg
root@Norton:/opt/bin# opkgg update
-ash: opkgg: not found
root@Norton:/opt/bin# vi /etc/profile
root@Norton:/opt/bin# cat /etc/rc.local
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing./opt/etc/init.d/rc.unslung start
exit 0
root@Norton:/opt/bin# cat /opt/etc/profile
#!/bin/sh# Please note it's not a system-wide settings, it's only for a current
# terminal session. Point your f\w (if necessery) to execute /opt/etc/profile
# at console logon.export PATH=/opt/bin:/opt/sbin:$PATH
export TERMINFO=/opt/share/terminfo
export TERM=xterm
export TMP=/opt/tmp
export TEMP=/opt/tmp
alias mc="mc -c"# You may define localization
#export LANG='ru_RU.UTF-8'
#export LC_ALL='ru_RU.UTF-8'
export LANG='en_US.UTF-8'
export LC_ALL='en_US.UTF-8'
root@Norton:/opt/bin# vi /etc/profile
root@Norton:/opt/bin# . /etc/profile
MM NM MMMMMMM M M
$MMMMM MMMMM MMMMMMMMMMM MMM MMM
MMMMMMMM MM MMMMM. MMMMM:MMMMMM: MMMM MMMMM
MMMM= MMMMMM MMM MMMM MMMMM MMMM MMMMMM MMMM MMMMM'
MMMM= MMMMM MMMM MM MMMMM MMMM MMMM MMMMNMMMMM
MMMM= MMMM MMMMM MMMMM MMMM MMMM MMMMMMMM
MMMM= MMMM MMMMMM MMMMM MMMM MMMM MMMMMMMMM
MMMM= MMMM MMMMM, NMMMMMMMM MMMM MMMM MMMMMMMMMMM
MMMM= MMMM MMMMMM MMMMMMMM MMMM MMMM MMMM MMMMMM
MMMM= MMMM MM MMMM MMMM MMMM MMMM MMMM MMMM
MMMM$ ,MMMMM MMMMM MMMM MMM MMMM MMMMM MMMM MMMM
MMMMMMM: MMMMMMM M MMMMMMMMMMMM MMMMMMM MMMMMMM
MMMMMM MMMMN M MMMMMMMMM MMMM MMMM
MMMM M MMMMMMM M M
M
---------------------------------------------------------------
For those about to rock... (Chaos Calmer, unknown)
---------------------------------------------------------------
root@Norton:/opt/bin# opkgg update
Downloading http://bin.entware.net/armv7sf-k2.6/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
root@Norton:/opt/bin# cd ..
root@Norton:/opt# ls
bin etc lib sbin share tmp usr var
root@Norton:/opt# cd etc
root@Norton:/opt/etc# ls
group ld.so.conf opkg.conf profile shells
init.d nsswitch.conf passwd shadow
root@Norton:/opt/etc# cd opkg.conf
-ash: cd: can't cd to opkg.conf: Not a directory
root@Norton:/opt/etc# vi opkg.conf
root@Norton:/opt/etc# opkgg update
Downloading http://bin.entware.net/armv7sf-k2.6/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
root@Norton:/opt/etc# . /etc/profile
MM NM MMMMMMM M M
$MMMMM MMMMM MMMMMMMMMMM MMM MMM
MMMMMMMM MM MMMMM. MMMMM:MMMMMM: MMMM MMMMM
MMMM= MMMMMM MMM MMMM MMMMM MMMM MMMMMM MMMM MMMMM'
MMMM= MMMMM MMMM MM MMMMM MMMM MMMM MMMMNMMMMM
MMMM= MMMM MMMMM MMMMM MMMM MMMM MMMMMMMM
MMMM= MMMM MMMMMM MMMMM MMMM MMMM MMMMMMMMM
MMMM= MMMM MMMMM, NMMMMMMMM MMMM MMMM MMMMMMMMMMM
MMMM= MMMM MMMMMM MMMMMMMM MMMM MMMM MMMM MMMMMM
MMMM= MMMM MM MMMM MMMM MMMM MMMM MMMM MMMM
MMMM$ ,MMMMM MMMMM MMMM MMM MMMM MMMMM MMMM MMMM
MMMMMMM: MMMMMMM M MMMMMMMMMMMM MMMMMMM MMMMMMM
MMMMMM MMMMN M MMMMMMMMM MMMM MMMM
MMMM M MMMMMMM M M
M
---------------------------------------------------------------
For those about to rock... (Chaos Calmer, unknown)
---------------------------------------------------------------
root@Norton:/opt/etc# opkgg update
Downloading http://bin.entware.net/armv7sf-k2.6/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
root@Norton:/opt/etc# opkgg install hdparm
Installing hdparm (9.58-1) to root...
Downloading http://bin.entware.net/armv7sf-k2.6/hdparm_9.58-1_armv7-2.6.ipk
Configuring hdparm.
root@Norton:/opt/etc# hdparm -Tt /dev/
bus/ mmcblk0p10 mmcblk0p3 pts/ ram8
console mmcblk0p11 mmcblk0p4 ram0 ram9
cpu_dma_latency mmcblk0p12 mmcblk0p5 ram1 random
crypto mmcblk0p13 mmcblk0p6 ram10 shm/
full mmcblk0p14 mmcblk0p7 ram11 snd/
fuse mmcblk0p15 mmcblk0p8 ram12 switch_ssdk
hwrng mmcblk0p16 mmcblk0p9 ram13 tty
kmsg mmcblk0p17 mmcblk0rpmb ram14 ttyMSM0
log mmcblk0p18 net/ ram15 ubi_ctrl
mem mmcblk0p19 network_latency ram2 urandom
memory_bandwidth mmcblk0p2 network_throughput ram3 watchdog
mmcblk0 mmcblk0p20 null ram4 watchdog0
mmcblk0boot0 mmcblk0p21 port ram5 zero
mmcblk0boot1 mmcblk0p22 ppp ram6
mmcblk0p1 mmcblk0p23 ptmx ram7
root@Norton:/opt/etc# hdparm -Tt /dev/
bus/ mmcblk0p10 mmcblk0p3 pts/ ram8
console mmcblk0p11 mmcblk0p4 ram0 ram9
cpu_dma_latency mmcblk0p12 mmcblk0p5 ram1 random
crypto mmcblk0p13 mmcblk0p6 ram10 shm/
full mmcblk0p14 mmcblk0p7 ram11 snd/
fuse mmcblk0p15 mmcblk0p8 ram12 switch_ssdk
hwrng mmcblk0p16 mmcblk0p9 ram13 tty
kmsg mmcblk0p17 mmcblk0rpmb ram14 ttyMSM0
log mmcblk0p18 net/ ram15 ubi_ctrl
mem mmcblk0p19 network_latency ram2 urandom
memory_bandwidth mmcblk0p2 network_throughput ram3 watchdog
mmcblk0 mmcblk0p20 null ram4 watchdog0
mmcblk0boot0 mmcblk0p21 port ram5 zero
mmcblk0boot1 mmcblk0p22 ppp ram6
mmcblk0p1 mmcblk0p23 ptmx ram7
root@Norton:/opt/etc# hdparm -Tt /dev/
bus/ mmcblk0p10 mmcblk0p3 pts/ ram8
console mmcblk0p11 mmcblk0p4 ram0 ram9
cpu_dma_latency mmcblk0p12 mmcblk0p5 ram1 random
crypto mmcblk0p13 mmcblk0p6 ram10 shm/
full mmcblk0p14 mmcblk0p7 ram11 snd/
fuse mmcblk0p15 mmcblk0p8 ram12 switch_ssdk
hwrng mmcblk0p16 mmcblk0p9 ram13 tty
kmsg mmcblk0p17 mmcblk0rpmb ram14 ttyMSM0
log mmcblk0p18 net/ ram15 ubi_ctrl
mem mmcblk0p19 network_latency ram2 urandom
memory_bandwidth mmcblk0p2 network_throughput ram3 watchdog
mmcblk0 mmcblk0p20 null ram4 watchdog0
mmcblk0boot0 mmcblk0p21 port ram5 zero
mmcblk0boot1 mmcblk0p22 ppp ram6
mmcblk0p1 mmcblk0p23 ptmx ram7
root@Norton:/opt/etc# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 27.0M 27.0M 0 100% /rom
tmpfs 483.4M 1.4M 482.0M 0% /tmp
overlayfs:/overlay 3.3G 500.3M 2.6G 16% /
tmpfs 512.0K 0 512.0K 0% /dev
root@Norton:/opt/etc# hdparm -Tt /dev/mmcblk0p23/dev/mmcblk0p23:
Timing cached reads: 1374 MB in 2.00 seconds = 686.78 MB/sec
HDIO_DRIVE_CMD(identify) failed: Invalid argument
Timing buffered disk reads: 218 MB in 3.01 seconds = 72.31 MB/sec
root@Norton:/opt/etc# df -m
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/root 27 27 0 100% /rom
tmpfs 483 1 482 0% /tmp
overlayfs:/overlay 3342 500 2652 16% /
tmpfs 1 0 1 0% /dev
root@Norton:/opt/etc# time dd count=128 bs=1M if=/dev/zero of=test.test
128+0 records in
128+0 records out
134217728 bytes (128.0MB) copied, 1.230334 seconds, 104.0MB/s
real 0m 1.23s
user 0m 0.00s
sys 0m 1.18s
root@Norton:/opt/etc# hdparm -Tt /dev/mmcblk0p23/dev/mmcblk0p23:
Timing cached reads: 1300 MB in 2.00 seconds = 650.36 MB/sec
HDIO_DRIVE_CMD(identify) failed: Invalid argument
Timing buffered disk reads: 216 MB in 3.02 seconds = 71.45 MB/sec
root@Norton:/opt/etc# hdparm -t --direct /dev/mmcblk0p23
/dev/mmcblk0p23: Invalid argument
root@Norton:/opt/etc# hdparm -hhdparm - get/set hard disk parameters - version v9.58, by Mark Lord.
Usage: hdparm [options] [device ...]
Options:
-a Get/set fs readahead
-A Get/set the drive look-ahead flag (0/1)
-b Get/set bus state (0 == off, 1 == on, 2 == tristate)
-B Set Advanced Power Management setting (1-255)
-c Get/set IDE 32-bit IO setting
-C Check drive power mode status
-d Get/set using_dma flag
-D Enable/disable drive defect management
-E Set cd/dvd drive speed
-f Flush buffer cache for device on exit
-F Flush drive write cache
-g Display drive geometry
-h Display terse usage information
-H Read temperature from drive (Hitachi only)
-i Display drive identification
-I Detailed/current information directly from drive
-J Get/set Western DIgital "Idle3" timeout for a WDC "Green" drive (DANGEROUS)
-k Get/set keep_settings_over_reset flag (0/1)
-K Set drive keep_features_over_reset flag (0/1)
-L Set drive doorlock (0/1) (removable harddisks only)
-m Get/set multiple sector count
-M Get/set acoustic management (0-254, 128: quiet, 254: fast)
-n Get/set ignore-write-errors flag (0/1)
-N Get/set max visible number of sectors (HPA) (VERY DANGEROUS)
-p Set PIO mode on IDE interface chipset (0,1,2,3,4,...)
-P Set drive prefetch count
-q Change next setting quietly
-Q Get/set DMA queue_depth (if supported)
-r Get/set device readonly flag (DANGEROUS to set)
-R Get/set device write-read-verify flag
-s Set power-up in standby flag (0/1) (DANGEROUS)
-S Set standby (spindown) timeout
-t Perform device read timings
-T Perform cache read timings
-u Get/set unmaskirq flag (0/1)
-U Obsolete
-v Use defaults; same as -acdgkmur for IDE drives
-V Display program version and exit immediately
-w Perform device reset (DANGEROUS)
-W Get/set drive write-caching flag (0/1)
-x Obsolete
-X Set IDE xfer mode (DANGEROUS)
-y Put drive in standby mode
-Y Put drive to sleep
-z Re-read partition table
-Z Disable Seagate auto-powersaving mode
--dco-freeze Freeze/lock current device configuration until next power cycle
--dco-identify Read/dump device configuration identify data
--dco-restore Reset device configuration back to factory defaults
--dco-setmax Use DCO to set maximum addressable sectors
--direct Use O_DIRECT to bypass page cache for timings
--drq-hsm-error Crash system with a "stuck DRQ" error (VERY DANGEROUS)
--fallocate Create a file without writing data to disk
--fibmap Show device extents (and fragmentation) for a file
--fwdownload Download firmware file to drive (EXTREMELY DANGEROUS)
--fwdownload-mode3 Download firmware using min-size segments (EXTREMELY DANGEROUS)
--fwdownload-mode3-max Download firmware using max-size segments (EXTREMELY DANGEROUS)
--fwdownload-mode7 Download firmware using a single segment (EXTREMELY DANGEROUS)
--fwdownload-modee Download firmware using mode E (min-size segments) (EXTREMELY DANGEROUS)
--fwdownload-modee-max Download firmware using mode E (max-size segments) (EXTREMELY DANGEROUS)
--idle-immediate Idle drive immediately
--idle-unload Idle immediately and unload heads
--Iraw filename Write raw binary identify data to the specfied file
--Istdin Read identify data from stdin as ASCII hex
--Istdout Write identify data to stdout as ASCII hex
--make-bad-sector Deliberately corrupt a sector directly on the media (VERY DANGEROUS)
--offset use with -t, to begin timings at given offset (in GiB) from start of drive
--prefer-ata12 Use 12-byte (instead of 16-byte) SAT commands when possible
--read-sector Read and dump (in hex) a sector directly from the media
--repair-sector Alias for the --write-sector option (VERY DANGEROUS)
--sanitize-antifreeze-lock Block sanitize-freeze-lock command until next power cycle
--sanitize-block-erase Start block erase operation
--sanitize-crypto-scramble Change the internal encryption keys that used for used data
--sanitize-freeze-lock Lock drive's sanitize features until next power cycle
--sanitize-overwrite PATTERN Overwrite the internal media with constant PATTERN
--sanitize-status Show sanitize status information
--security-help Display help for ATA security commands
--set-sector-size Change logical sector size of drive
--trim-sector-ranges Tell SSD firmware to discard unneeded data sectors: lba:count ..
--trim-sector-ranges-stdin Same as above, but reads lba:count pairs from stdin
--verbose Display extra diagnostics from some commands
--write-sector Repair/overwrite a (possibly bad) sector directly on the media (VERY DANGEROUS)root@Norton:/opt/etc# hdparm -Tt /dev/mmcblk0p23
/dev/mmcblk0p23:
Timing cached reads: 1422 MB in 2.00 seconds = 710.82 MB/sec
HDIO_DRIVE_CMD(identify) failed: Invalid argument
Timing buffered disk reads: 218 MB in 3.00 seconds = 72.66 MB/sec
root@Norton:/opt/etc# hdparm -t /dev/mmcblk0p23/dev/mmcblk0p23:
HDIO_DRIVE_CMD(identify) failed: Invalid argument
Timing buffered disk reads: 218 MB in 3.02 seconds = 72.10 MB/sec
root@Norton:/opt/etc# hdparm -T /dev/mmcblk0p23/dev/mmcblk0p23:
Timing cached reads: 1380 MB in 2.00 seconds = 689.67 MB/sec
root@Norton:/opt/etc# hdparm -tT --direct /dev/mmcblk0p23
/dev/mmcblk0p23: Invalid argument
root@Norton:/opt/etc# hdparm -tT --direct /root/
/root/: Invalid argument
root@Norton:/opt/etc# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 27.0M 27.0M 0 100% /rom
tmpfs 483.4M 1.4M 482.0M 0% /tmp
overlayfs:/overlay 3.3G 628.3M 2.5G 20% /
tmpfs 512.0K 0 512.0K 0% /dev
root@Norton:/opt/etc# time -p bash -c "(dd if=/dev/zero of=/home/ftp/dd.log bs=1M count=1024)"
^N^N1024+0 records in
1024+0 records out
1073741824 bytes (1.0GB) copied, 45.346372 seconds, 22.6MB/s
real 45.44
user 0.02
sys 8.35
root@Norton:/opt/etc# time -p bash -c "(dd if=/dev/zero of=/home/ftp/dd.log1 bs=1M count=100)"
100+0 records in
100+0 records out
104857600 bytes (100.0MB) copied, 1.051218 seconds, 95.1MB/s
real 1.14
user 0.00
sys 0.99
root@Norton:/opt/etc# ls
group ld.so.conf nsswitch.conf passwd shadow ssl
init.d netconfig opkg.conf profile shells test.test
root@Norton:/opt/etc# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 27.0M 27.0M 0 100% /rom
tmpfs 483.4M 1.4M 482.0M 0% /tmp
overlayfs:/overlay 3.3G 646.8M 2.4G 21% /
tmpfs 512.0K 0 512.0K 0% /dev
root@Norton:/opt/etc# time -p bash -c "(dd if=/dev/zero of=/home/ftp/dd.log1 bs=1M count=500)"
500+0 records in
500+0 records out
524288000 bytes (500.0MB) copied, 19.552081 seconds, 25.6MB/s
real 19.56
user 0.00
sys 4.56
root@Norton:/opt/etc# time -p bash -c "(dd if=/dev/zero of=/home/ftp/dd.log1 bs=1M count=1024)"
1024+0 records in
1024+0 records out
1073741824 bytes (1.0GB) copied, 44.807244 seconds, 22.9MB/s
real 44.82
user 0.03
sys 8.80
root@Norton:/opt/etc# opkgg install iftop
Installing iftop (2018-10-03-77901c8c-1) to root...
Downloading http://bin.entware.net/armv7sf-k2.6/iftop_2018-10-03-77901c8c-1_armv7-2.6.ipk
Installing libpcap (1.9.1-2) to root...
Downloading http://bin.entware.net/armv7sf-k2.6/libpcap_1.9.1-2_armv7-2.6.ipk
Configuring libpcap.
Configuring iftop.
root@Norton:/opt/etc# iftop -i br-lan
interface: br-lan
IP address is: 192.168.9.1
MAC address is: b4:a9:84:47:19:37
root@Norton:/opt/etc# cd /
历史记录2
0 cd /home
1 ls
2 cd ft
3 ls
4 cd
5 cd
6 cd -
7 cd /home/ftp/
8 ls
9 opkg install ./luci-theme-netgear_git-17.016.25656-a85807d-1_all.ipk
10 df -h
11 reboot
12 cd /home/ftp
13 ls
14 df -h
15 cd /dev
16 ls
17 df -h
18 cd /overlay
19 ls
20 df -h `ls`
21 du -sh `ls`
22 cd ..
23 cd /
24 ls
25 du -sh `ls`
26 ls -al /home
27 ls
28 cd /mnt
29 ls
30 cd mmcblk0p
31 cd mmcblk0p1
32 ls
33 cd ..
34 ls
35 cd mmcblk0p12
36 ls
37 cd ..
38 cd mmcblk0p2
39 ls
40 cd ..
41 cd mmcblk0p23
42 ls
43 cd ..
44 ls
45 reboot
46 ls
47 pwd
48 cd
49 ls
50 ls -a
51 cd /
52 ls
53 ls opt
54 mkdir opt
55 cd /opt
56 ls
57 exit
58 ls
59 cd /www
60 ls
61 cd cgi-bin/
62 ls
63 cd lu
64 cd ..
65 ls
66 cd luci-static/
67 ls
68 cd netgear/
69 ls
70 cd ..
71 cp -r netgear /home/ftp/
72 cd netgear/
73 ls
74 ls -alh
75 mv favicon.ico favicon.ico1
76 cp /home/ftp/*ico favicon.ico
77 ls
78 ls -alh
79 cd /home/ftp
80 ls
81 rm -rf netgear/
82 iptraf -g
83 ifconfig -a
84 mii-tool -w -v
85 sar –n DEV 1 2
86 watch -n 1 "ifconfig eth0"
87 hdparm -Tt /dev/sda
88 ls
89 pwd
90 time dd count=128 bs=1M if=/dev/zero of=test.test
91 opkg update
92 cd /etc
93 ls
94 cd opkg/
95 ls
96 cat customfeeds.conf
97 cp distfeeds.conf distfeeds.conf2
98 vi distfeeds.conf
99 cp distfeeds.conf /home/ftp/
100 ls
101 cd
102 ls
103 cd
104 ls
105 cd /
106 ls
107 cd opt
108 ls
109 ls -al
110 cd ..
111 ls
112 cd opt
113 ls
114 pwd
115 wget -qO - http://pkg.entware.net/binaries/armv7/installer/upgrade.sh | sh
116 ls
117 wget http://pkg.entware.net/binaries/armv7/installer/upgrade.sh
118 wget -qO - http://pkg.entware.net/binaries/armv7/installer/entware_install.sh | sh
119 ls
120 cd bin
121 ls
122 ./opkg update
123 ls
124 mv opkg opkgg
125 opkgg update
126 vi /etc/profile
127 cat /etc/rc.local
128 cat /opt/etc/profile
129 vi /etc/profile
130 . /etc/profile
131 opkgg update
132 cd ..
133 ls
134 cd etc
135 ls
136 cd opkg.conf
137 vi opkg.conf
138 opkgg update
139 . /etc/profile
140 opkgg update
141 opkgg install hdparm
142 df -h
143 hdparm -Tt /dev/mmcblk0p23
144 df -m
145 time dd count=128 bs=1M if=/dev/zero of=test.test
146 hdparm -Tt /dev/mmcblk0p23
147 hdparm -t --direct /dev/mmcblk0p23
148 hdparm -h
149 hdparm -Tt /dev/mmcblk0p23
150 hdparm -t /dev/mmcblk0p23
151 hdparm -T /dev/mmcblk0p23
152 hdparm -tT --direct /dev/mmcblk0p23
153 hdparm -tT --direct /root/
154 df -h
155 time -p bash -c "(dd if=/dev/zero of=/home/ftp/dd.log bs=1M count=1024)"
156 time -p bash -c "(dd if=/dev/zero of=/home/ftp/dd.log1 bs=1M count=100)"
157 ls
158 df -h
159 time -p bash -c "(dd if=/dev/zero of=/home/ftp/dd.log1 bs=1M count=500)"
160 time -p bash -c "(dd if=/dev/zero of=/home/ftp/dd.log1 bs=1M count=1024)"
161 opkgg install iftop
162 iftop -i br-lan
163 cd /
164 ls
165 du -sh /opt
166 cd opt
167 ls
168 history
