Debian 12 源列表 (sources.list)deb http://deb.debian.org/debian/ bookworm contrib main non-free non-free-firmware deb-src http://deb.debian.org/debian/ bookworm contrib main non-free non-free-firmware deb http://deb.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware deb-src http://deb.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware deb http://deb.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware deb-src http:/
很久没用过ubuntu做服务器,今天装了一台ubuntu 13.04,结果遇到一个很奇怪的问题,就是dns服务器莫名其妙消失。修改了/etc/resolv.conf,添加了dns服务器可以正常解析,但重启就被清空了。然后才发现里面有两行注释。\# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)`\# DO NOT EDIT THIS FILE BY HAND — YOUR CHANGES WILL BE OVERWRITTEN解决这个问题也很简单。nano /etc/resolvconf/resolv.conf.d/base加上dns。nameserver 8.8.8.8 nameserver 8.8.4.4保存以后运行resolvconf -u这时再去看/etc/resolv.conf,已经有dns服务器了。
Ubuntu 设置方法:nano /etc/default/locale添加一行LANG="zh_CN.UTF-8"/usr/share/locales/install-language-pack zh_CN locales-gen在某些服务器上可以用下面的方法来设置:nano /var/lib/locales/supported.d/en保留en_US.UTF-8 UTF-8就可以,其他删掉。nano /var/lib/locales/supported.d/local添加zh_CN.UTF-8 UTF-8最后运行dpkg-reconfigure locales就可以了。Debian 设置方法:cat >/etc/locale.gen<<eof en_US.UTF-8 UTF-8 zh_CN.GBK GBK zh_CN.UTF-8 UTF-8 eof /usr/sbin/locale-gen cat >/etc/default/locale<<eof LANG=zh_CN.UTF-8 eof或者手动设置,第二种方法:dpkg
此文操作在Linux mint 13下,ubuntu 12.04通用。先安装依赖包。```sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 execstack libelfg0 dh-modaliases linux-headers-generic lib32gcc1 libgcc1:i386 gcc-4.6-base:i386```64位系统下加装: ```sudo apt-get install ia32-libs```
默认ubuntu外接显示器时会以两个显示器中较低的显示器分辨率同时显示两个屏幕,为了外接显示器可以达到最理想的分辨率,我们需要改造一下显示设置。先在终端中运行```sudo xrandr```会得到类似以下的结果:```LVDS2 connected (normal left inverted right x axis y axis) 1366x768 60.1 + 40.1 1360x768 59.8 60.0 1024x768 60.0 800x600 60.3 56.2 640x480 59.9 VGA2 connected (normal left inverted right x axis y axis) 0mm x 0mm 1024x768 60.0 800x600 60.3 56.2 848x480 60.0 640x480 59.9```可以看到LVDS2是笔记本自带的显示器,最高分辨率1366x768,这个分辨率是没有错了,
阿博
2011 - 2023 笔记杂谈. All Rights Reserved.
Theme Jasmine by Kent Liao
Powered by Typecho
加密硬件钱包