BBB网络连接更新时间
Posted zhang433
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了BBB网络连接更新时间相关的知识,希望对你有一定的参考价值。
BBB通过USB连接互联网的设置:
[email protected]:~# /sbin/route add default gw 192.168.7.1 [email protected]:~# ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_req=1 ttl=43 time=207 ms 64 bytes from 8.8.8.8: icmp_req=2 ttl=43 time=210 ms 64 bytes from 8.8.8.8: icmp_req=3 ttl=44 time=203 ms ^C --- 8.8.8.8 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 203.514/206.953/210.227/2.743 ms [email protected]:~#
设置网关,此步骤在BBB重启后消失。
可以修改下面文件.profile来实现永久性修改:
[email protected]:~# vi .profile # ~/.profile: executed by Bourne-compatible login shells. if [ "$BASH" ]; then if [ -f ~/.bashrc ]; then . ~/.bashrc fi fi mesg n /sbin/route add default gw 192.168.7.1 ~ ~ ".profile" 10L, 179C 1,1 All
更新时间:
[email protected]:~# date Wed Apr 23 20:47:21 UTC 2014 [email protected]:~# /usr/sbin/ntpdate -b -s -u cn.pool.ntp.org [email protected]:~# date Wed May 22 01:42:41 UTC 2019
与实际时间差8小时,这是由于时区设置导致。
设置时区为上海:
[email protected]:~# cat /etc/localtime TZif2UTCTZif2UTC UTC0 [email protected]:~# ls /usr/share/zoneinfo/Asia/ Aden Choibalsan Irkutsk Kuwait Qyzylorda Tokyo Almaty Chongqing Istanbul Macao Rangoon Ujung_Pandang Amman Chungking Jakarta Macau Riyadh Ulaanbaatar Anadyr Colombo Jayapura Magadan Saigon Ulan_Bator Aqtau Dacca Jerusalem Makassar Sakhalin Urumqi Aqtobe Damascus Kabul Manila Samarkand Ust-Nera Ashgabat Dhaka Kamchatka Muscat Seoul Vientiane Ashkhabad Dili Karachi Nicosia Shanghai Vladivostok Baghdad Dubai Kashgar Novokuznetsk Singapore Yakutsk Bahrain Dushanbe Kathmandu Novosibirsk Taipei Yekaterinburg Baku Gaza Katmandu Omsk Tashkent Yerevan Bangkok Harbin Khandyga Oral Tbilisi Beirut Hebron Kolkata Phnom_Penh Tehran Bishkek Ho_Chi_Minh Krasnoyarsk Pontianak Tel_Aviv Brunei Hong_Kong Kuala_Lumpur Pyongyang Thimbu Calcutta Hovd Kuching Qatar Thimphu [email protected]:~# cp /usr/share/zoneinfo/Asia/Shanghai /etc [email protected]:~# rm /etc/localtime [email protected]:~# ls /etc/Sh* /etc/Shanghai [email protected]:~# cd /etc/ [email protected]:/etc# mv Shanghai localtime [email protected]:/etc# ls -l loc* -rw-r--r-- 1 root root 2570 Dec 23 2013 locale.alias -rw-r--r-- 1 root root 8554 Aug 14 2014 locale.gen -rw-r--r-- 1 root root 405 May 22 13:37 localtime [email protected]:/etc# cd .. [email protected]:/# date Wed May 22 13:41:08 CST 2019 [email protected]:/#
设置完成。
以上是关于BBB网络连接更新时间的主要内容,如果未能解决你的问题,请参考以下文章
BBB 通过USB虚拟的RNDIS与PC的vmware ubuntu 进行网络通信
BBB 通过USB虚拟的RNDIS与PC的vmware ubuntu 进行网络通信