一、静态IP配置
参考url:
http://www.cnblogs.com/honeybee/p/5581543.html
http://m.111cn.net/art-51376.htm
是的网络小白就是我==! 参考网址里的最终可用的静态地址配置方式为:
■编辑配置文件
sudo vi /etc/network/interfaces
■重启网络配置
sudo /etc/init.d/networking restart
/etc/network/interfaces 配置示例,注意需要将DNS同时设置在此处
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#auto eth0
#iface eth0 inet dhcp
#
auto eth0
iface eth0 inet static
address 10.207.24.182
netmask 255.255.255.0
gateway 10.207.24.1
dns-nameservers 10.207.0.43 202.106.196.115 8.8.8.8
但是犯了个低级错误,没先查查网卡名字是不是叫eth0,结果悲剧了一直配不对。
ifconfig -a后发现网卡名字脚eno1,改了之后就可以了
二、SSH权限开通后密码不对的问题
参考URL:https://jingyan.baidu.com/article/6079ad0e97278828ff86dbb7.html
1. 安装 open ssh:
sudo apt-get install openssh-server
2. 修改root密码
#sudo passwd root
3. 辑配置文件,允许以 root 用户通过 ssh 登录:
sudo vi /etc/ssh/sshd_config
找到:PermitRootLogin prohibit-password禁用
添加:PermitRootLogin yes
sudo service ssh restart
OK,正常登录!!!
三、apt-get下软件报Unable to locate package
执行 apt-get update 即可
四、查看串口名称
查看串口设备: dmesg|grep ttyS*
五、minicom界面的按键顺序
为自己的智商捉急,调出配置界面是:按ctrl+A,松开手后按Z。。。。哭了。。
六、shell脚本程序执行后如何在ps -aux中检索到
第一行写:#!/bin/bash