ubuntu command模式连网

a@a-HP-ENVY-Notebook:/home$ cat start.sh 
wpa_supplicant -i wlo1 -c wpa.conf -B
#wpa_supplicant -i wlo1 -c wpa.conf
wpa_cli -i wlo1 enable_network 0
dhclient wlo1
cp resolv.conf /etc/
ping www.baidu.com

cp locale /etc/default/locale 
source /etc/default/locale

 

a@a-HP-ENVY-Notebook:/home$ cat wpa.conf 
ctrl_interface=/var/run/wpa_supplicant
update_config=1
network={
ssid="nova_4e"
psk="123456789"
key_mgmt=WPA-PSK
 

 

a@a-HP-ENVY-Notebook:/home$ cat resolv.conf 
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "resolvectl status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

nameserver 8.8.4.4
nameserver 127.0.0.53
options edns0
 

a@a-HP-ENVY-Notebook:/home$ cat locale 
#  File generated by update-locale
LANG="en_US.UTF-8"
LANGUAGE="en_US:zh"
 

手动编译新版本内核升级内核后空易让进入engergency mode 需要注释掉黑色粗体行。。。。

a@a-HP-ENVY-Notebook:/home$ cat /etc/fstab 
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme0n1p2 during installation
UUID=0df0ec6d-15f8-47d8-a618-50937a2a0db2 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/nvme0n1p1 during installation
#UUID=CD4E-A0AD  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0
a@a-HP-ENVY-Notebook:/home$ 
a@a-HP-ENVY-Notebook:/home$ 
 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值