小编Bor*_*ris的帖子

如何使用 Adob​​e Source Code Pro 字体?

Adobe发布了一个开放源码的字体家族被称为“源代码临”(下载这里,Slashdot的文章在这里)。我该如何安装?

fonts software-installation

99
推荐指数
5
解决办法
11万
查看次数

使用英特尔显卡的 Ubuntu 19.04 上的 Chrome 中的屏幕撕裂

我正在使用双显示器,其中之一与

xrandr --output HDMI-1 --rotate left
Run Code Online (Sandbox Code Playgroud)

我在两台显示器上的 Google Chrome(从Chrome 的 PPA安装,而不是 Chromium)上看到屏幕撕裂,尽管在旋转的显示器上更明显。我似乎没有在其他程序中看到屏幕撕裂,例如 gnome-terminal。

我的 GPU 是

$ inxi -G
Graphics:  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel 
           Display: x11 server: X.Org 1.20.4 driver: i915 resolution: 1920x1080~60Hz, 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel UHD Graphics 630 (Coffeelake 3x8 GT2) v: 4.5 Mesa 19.0.8 
Run Code Online (Sandbox Code Playgroud)

我尝试添加

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "TripleBuffer" "true"
   Option      "TearFree"     "true"
   Option      "DRI"          "false"
EndSection
Run Code Online (Sandbox Code Playgroud)

/etc/X11/xorg.conf.d/20-intel-graphics.conf按照这一问题,但问题是这个命令让我的双显示器作为一个监视器(相同的图片显示了两个监视器)。我尝试删除TripleBuffer …

xorg google-chrome graphics intel drivers

8
推荐指数
2
解决办法
2254
查看次数

标准帐户无需密码请求即可使用 sudo 获得 root 访问权限

我通过运行其安装脚本安装了一些软件

sudo ./install.sh
Run Code Online (Sandbox Code Playgroud)

安装后,我的 Ubuntu 笔记本电脑上的所有帐户都可以通过简单地发出命令获得 root 访问权限sudo -s,即使是标准(非管理员)帐户。发出命令时也没有密码提示sudo -s

我的/etc/sudoers看起来像这样:

Defaults    env_reset
Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d
ALL ALL=(ALL) NOPASSWD:ALL
Run Code Online (Sandbox Code Playgroud)

permissions root sudo password

7
推荐指数
1
解决办法
2802
查看次数

如何安装 Roboto 字体?

如何在 Ubuntu上安装Google Roboto 字体的常规无衬线版本(不是等宽版本)?

有一个关于 Roboto Mono问题,但我的问题是关于 Roboto,而不是等宽版本。

fonts

7
推荐指数
1
解决办法
5671
查看次数

将 19.04 升级到 19.10 的问题“UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

我做到了do-release-upgrade -d并得到了这个回溯。早些时候,我做了一些尝试用upgrade-alternatives指向pythonpython3,指着python3python3.8,但我sudo update-alternatives --remove-all pythonsudo apt install --reinstall编着他们两个。

$ sudo do-release-upgrade -d
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [1,554 B]                                                         
Get:2 Upgrade tool [1,319 kB]                                                                  
Fetched 1,320 kB in 0s (0 B/s)                                                                 
authenticate 'eoan.tar.gz' against 'eoan.tar.gz.gpg' 
extracting 'eoan.tar.gz'

Reading cache

Checking package manager
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Hit http://ca.archive.ubuntu.com/ubuntu disco InRelease                                        
Hit http://ca.archive.ubuntu.com/ubuntu …
Run Code Online (Sandbox Code Playgroud)

upgrade python apt

6
推荐指数
2
解决办法
1854
查看次数

从 18.10 升级到 19.04 时出现 Python 错误

我将 Python 2.7.15+ 符号python链接到python3. 当我尝试将 Ubuntu 升级到 19.04 时

sudo do-release-upgrade
Run Code Online (Sandbox Code Playgroud)

它返回以下错误:

Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-k7w2kx7r/disco", line 8, in <module>
    sys.exit(main())
  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeMain.py", line 238, in main
    if app.run():
  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeController.py", line 2085, in run
    return self.fullUpgrade()
  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeController.py", line 1906, in fullUpgrade
    if not self.askLivepatch():
  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeController.py", line 1175, in askLivepatch
    version = next((r.version for r in di.get_all("object") if r.series == self.toDist), self.toDist)
AttributeError: 'UbuntuDistroInfo' object has no attribute 'get_all'
Error in …
Run Code Online (Sandbox Code Playgroud)

upgrade python 19.04

5
推荐指数
2
解决办法
1187
查看次数