Archive

‘Linux’ 分类存档

Telemetry Solution Demo with IOS XR

I put a telemetry demo to youtube at last year, but no more time summary… now I summaried in the article, will help you to easy build up the solution. Due to original testbed had changed, so follow some info maybe change, but all procedure should same. And XR configuration file is original. Demo video at this link:

Install Grafana and Influxdb by Docker

docker run -d -v grafana-storage:/var/lib/grafana -p 3000:3000 grafana/grafana:5.4.3
docker run -d --volume=/opt/influxdb:/data -p 8080:8083 -p 8086:8086 tutum/influxdb

Install Pipeline

git clone https://github.com/cisco/bigmuddy-network-telemetry-pipeline.git

Config Pipeline

完整阅读

TigerVNC on ubuntu 20.0

Install Desktop Gnome

root@server-test:/opt# apt-get install -y ubuntu-desktop

Install/Config TigerVNC

root@server-test:/opt# apt -y install tigervnc-standalone-server
......
root@server-test:/opt# vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
root@server-test:~# more /root/.vnc/xstartup
# create new (or add to the end)
exec /usr/bin/gnome-session &
# start with diplay number [1], screen resolution [800x600]
root@server-test:~# 
root@server-test:~# vncserver :1 -geometry 800x600 -localhost no

New 'gcsprendpoint-yonzhao2test-share-flat2-ni9ngm-server-ne.novalocal:1 (root)' desktop at :1 on machine gcsprendpoint-yonzhao2test-share-flat2-ni9ngm-server-ne.novalocal

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/gcsprendpoint-yonzhao2test-share-flat2-ni9ngm-server-ne.novalocal:1.log

Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /root/.vnc/passwd gcsprendpoint-yonzhao2test-share-flat2-ni9ngm-server-ne.novalocal:1 to connect to the VNC server.

Access by TigerVNC Client

Other

2020-07-24 Update: Change to TightVNC

I found an issue that cannot input anything when login via tigerVNC, normal user is ok after disable screen auto clock, but root couldn’t login in. So I transfer to TightVNC that work perfect now. Follow install guide:

How to Install and Configure VNC on Ubuntu 20.04

手机/平板到NAS的速率测试

问题及解决

根据如下拓扑,用iphone和ipad查看nas的高清资源总是卡,低于5mbps码率的资源没问题,当网线连接时,50mbps码率的视频也没问题,所以严重怀疑wifi出了问题,但又不好查哪里的问题,我在AppStore上找了一圈,也没有一个像样的wifi 分析软件,即使收费也能接受呀。。。

Iphone/Ipad — <wifi 5g> — wrt1200ac —<GE>—918+

问题现在已经解决了,由于我的wrt1200ac刷的是OpenWRT,开源的wifi驱动不稳定,导致时不时的卡。我在918+上部署了docker版本的speedtest,从iphone/ipad上测试了下tcp性能,发现测不出问题,速率都挺正常(只给最终结果,无法显示平均还是最大),如下:

完整阅读

被恶意注入钓鱼网站链接

当游览blog时,发现网站左上角有奇怪的link,点进去后竟是黄网。。。想了想这几天没点什么不正常的网站呀,前几天还是好好的,啥情况。。。?

我需要找到这个link在哪里,经过TS排查,发现link只会出现在我现有这个主题下,换主题就没问题了,所以我去blog管理台找,发现找不到。。。后来登录我的vps,用下面方式找到,注:网站名称已被我隐去:

[root@frank wordpress_data]# find . | xargs grep -ri "xxxx"
./wp-content/themes/page-shippou/header.php:<div id="1049"><a href="https://xxxx.com">xxx voglio</a></div>
./wp-content/themes/page-shippou/header.php:<div id="1049"><a href="https://xxxx.com">xxx voglio</a></div>
./wp-content/themes/page-shippou/header.php:<div id="1049"><a href="https://xxxx.com">xxx voglio</a></div>
./wp-content/themes/page-shippou/header.php:<div id="1049"><a href="https://xxxx.com">xxx voglio</a></div>
./wp-content/themes/page-shippou/header.php:<div id="1049"><a href="https://xxxx.com">xxx voglio</a></div>
grep: ./wp-content/plugins/backupwordpress/vendor/symfony/finder/Tests/Fixtures/with: No such file or directory
grep: space: No such file or directory
grep: ./wp-content/plugins/backupwordpress/vendor/symfony/finder/Tests/Fixtures/with: No such file or directory
grep: space/foo.txt: No such file or directory

现在才发现wordpress控制台下search不太好使呀。。。按照路径找到文件,找到下面内容删掉后恢复,然后赶紧改admin密码?,先观察几天再说:

New install NSO and Connect with XR by CLI/Netconf NED

Not update any NSO article to my blog, I will put more NSO info to here, wish that will help more guys. The article will include more hands-on experiences, help beginner fast connect xr devices with nso by cli or netconf ned. For netcong NED, build by Pioneer at former, that need to manual exclude the Yang file that no support. In the article, will build netconf ned by native tool of NSO 5.2.0.

Platform Info

[root@nso opt]# ncs --version
5.2.0.1
[root@nso opt]# cat /etc/redhat-release 
CentOS Linux release 7.6.1810 (Core) 
RP/0/RP0/CPU0:frank#show ins ac sum
Wed Aug  7 01:53:03.286 UTC
    Active Packages: 1
        xrv9k-xr-6.6.3.14I version=6.6.3.14I [Boot image]

完整阅读

blonde teen swallows load.xxx videos