包含标签 ubuntu 的文章

Ubuntu16.04 笔记本合上盖子时不进入休眠

在笔记本上装ubuntu系统,也可以从事相关开发工作。但笔记本存在这样的情况,就是有时服务功能设好了,不需要操作了,但是希望机器一直开机提供服务,或者长期下载大文件。此时,为了省电,可将笔记本屏幕合上,静待其完成任务。 但是,在默认情况下,笔记本合上屏幕后,ubuntu系统会休眠,我试着用GUI改了一下设置,实践证明没有效果,还是直接修改配置文件来得快,方法如下: 修改 Login Manager的配置文件,/etc/systemd/logind.conf: 然后将其中的: 1 #HandleLidSwitch=suspend 改成: 1 HandleLidSwitch=ignore 然后重启服务: 1 service systemd-logind restart 或者直接重启 1 sudo shutdown -r now 即可使设置生效。……

阅读全文

Ubuntu 18.04换国内源

国内有很多Ubuntu的镜像源,例如阿里、网易、清华、中科大。 我们这里以阿里云的源为例展示如何修改Ubuntu 18.04里面默认的源。 编辑/etc/apt/sources.list文件: deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse 中科大源 deb https://mirrors.……

阅读全文