Ubuntu装机相关记录

一、静态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




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值