博客
关于我
2.安装好ubuntu 18.04 啥东西都没有,如何上网呢?
阅读量:366 次
发布时间:2019-03-04

本文共 2034 字,大约阅读时间需要 6 分钟。

Ubuntu网络配置指南

刚安装Ubuntu系统时,通常需要配置网络以确保网络功能正常运作。本文将详细介绍如何在Ubuntu系统中进行拨号上网和无线上网设置,并提供优化建议。

拨号上网

安装必要工具

在开始配置之前,确保已安装所有必要的网络管理工具。可以通过以下命令安装:

sudo apt install network-manager

使用nmcli进行配置

NetworkManager 提供了一个交互式命令行工具 nmcli,用于管理网络连接。启动 nmcli 并创建新的拨号连接:

nmcli con edit type pppoe con-name your_pppoe_connection

设置网络参数

nmcli 界面中,使用 help 命令查看所有可用的设置选项:

nmcli con edit type pppoe con-name your_pppoe_connection help

根据提示,设置以下参数:

  • 服务商信息:

    set pppoe.service your_internet_provider
  • 账号信息:

    set pppoe.username your_username
  • 密码信息:

    set pppoe.password your_password
  • 保存并应用配置

    输入完成后,执行以下命令保存并应用设置:

    savequit

    删除旧连接

    如果需要重置网络设置,可以删除旧的网络连接:

    nmcli c del 72ffd5f4-71f8-0001-b434-6122908cfd4e

    其中 72ffd5f4-71f8-0001-b434-6122908cfd4e 是您之前连接的网络 UUID。

    无线上网

    解除硬件锁定

    如果遇到无线网络无法连接的问题,尝试解除硬件锁定。例如,对于 IdeaPad 系统设备:

    sudo modprobe -r ideapad_laptopsudo blacklist ideapad_laptop

    连接无线网络

    重启系统后,尝试连接无线网络。若问题依旧,确保无线驱动程序已正确安装。

    优化下载速度

    更新下载源

    为了加快软件更新速度,可以切换到镜像站点:

    cd /etc/aptcp sources.list sources.list.backgedit sources.list

    将文件内容替换为:

    deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

    更新软件缓存

    执行以下命令更新软件缓存:

    apt update && apt upgrade

    文件权限管理

    在进行文件读写操作时,记得在命令前加上 sudo 记录,以确保操作权限。

    通过以上步骤,您可以轻松配置Ubuntu系统的网络设置,并优化下载速度。如有其他问题,请参考官方文档或社区资源进一步解决。

    转载地址:http://rvbr.baihongyu.com/

    你可能感兴趣的文章
    mysql8.0新特性-自增变量的持久化
    查看>>
    Mysql8.0注意url变更写法
    查看>>
    Mysql8.0的特性
    查看>>
    MySQL8修改密码报错ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
    查看>>
    MySQL8修改密码的方法
    查看>>
    Mysql8在Centos上安装后忘记root密码如何重新设置
    查看>>
    Mysql8在Windows上离线安装时忘记root密码
    查看>>
    MySQL8找不到my.ini配置文件以及报sql_mode=only_full_group_by解决方案
    查看>>
    mysql8的安装与卸载
    查看>>
    MySQL8,体验不一样的安装方式!
    查看>>
    MySQL: Host '127.0.0.1' is not allowed to connect to this MySQL server
    查看>>
    Mysql: 对换(替换)两条记录的同一个字段值
    查看>>
    mysql:Can‘t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock‘解决方法
    查看>>
    MYSQL:基础——3N范式的表结构设计
    查看>>
    MYSQL:基础——触发器
    查看>>
    Mysql:连接报错“closing inbound before receiving peer‘s close_notify”
    查看>>
    mysqlbinlog报错unknown variable ‘default-character-set=utf8mb4‘
    查看>>
    mysqldump 参数--lock-tables浅析
    查看>>
    mysqldump 导出中文乱码
    查看>>
    mysqldump 导出数据库中每张表的前n条
    查看>>