Ubuntu

Ubuntu用户和开发人员的问答

1
bluetoothctl-什么是蓝牙代理?
我正在使用该bluetoothctl实用程序在计算机和Raspberry Pi之间建立蓝牙连接。 在中bluetoothctl,我可以看到有一个称为“代理”的东西,通过查看大多数教程,必须将“代理”设置为“开”以创建连接。我试图了解什么是蓝牙代理。 1)什么是蓝牙代理? 2)bluetoothctlfor中的“ default-agent”命令是什么?所有连接都可以相同吗? 3)建立连接时不使用代理会有什么影响? 4)通过查看man bluetoothctl,可以设置代理功能。什么是座席能力?什么值可以放在那里? 5)代理仅与蓝牙一起存在吗?是否也可以说wifi代理? 我对蓝牙世界还很陌生,并且bluetoothctl的文档非常有限...任何信息将不胜感激。
16 bluetooth  16.04 



5
升级到16.04后的登录循环
将xenial beta更新为最新更新后,我遇到了登录循环。 我尝试了很多事情: xauthority或/tmp特权更改 重新安装nvidia驱动程序,将其删除。 重新安装unity,unity-greeter,ubuntu-desktop,upstart,lightdm和compiz。 重置compiz和unity设置。(我收到dbus启动错误: Failed to commit changes to dconf: error spawning command line 'dbus-launch -auto launch=..................) 使用较旧的内核和故障保护(故障安全报告未找到屏幕) 试图推出其他DE(蒸汽大图) 这是xsession错误日志: unity: open connection: connect: No such file or directory Cannot connect to brltty at :0 upstart: gnome-session (unity) main process (5441) terminated with status 1 upstart unity-settings-daemon …
16 login  compiz  lightdm 

1
如何使用dconf或gsettings更改gnome终端配置文件首选项?
从Ubuntu 14.10升级到15.10后,似乎不再支持gnome-terminal使用更改首选项gconftool-2。我猜这个问题与Gconf与GSettings迁移有关。 现在,我想更改一些旧脚本(因为它们在Ubuntu 15.10中已损坏)以使用dconf/ gesettings代替gconftool-2。 例如,在Ubuntu 14.10(gnome-terminal版本3.6.2)上,我可以使用以下命令设置Default配置文件中的列数: $ gconftool-2 --set /apps/gnome-terminal/profiles/Default/default_size_columns \ --type=int 140 $ gconftool-2 --set /apps/gnome-terminal/profiles/Default/use_custom_default_size \ --type=bool true 现在,在Ubuntu 15.10中,键入: $ dconf list /org/gnome/terminal/legacy/ 给 profiles:/ schema-version 而 $ gsettings list-relocatable-schemas | grep Terminal 给 org.gnome.Terminal.SettingsList org.gnome.Terminal.Legacy.Profile org.gnome.Terminal.Legacy.Keybindings 上面的输出使我感到困惑: 为什么有/org/gnome/terminal/legacy/profiles:/路径dconf但没有org.gnome.Terminal.Legacy.Profiles(请注意结尾的s)模式ID gsettings?另外,请参见 dconf-editor和gsettings不应该访问同一数据库吗?了解更多信息。 gnome-terminal如果运行,仍在Ubuntu 15.10(使用版本3.16.2)中: $ gsettings list-keys …

2
MySQL 5.7没有目录,使用HOME = /登录
很抱歉,如果已经问过这个问题,但找不到这个(可能很小)问题的解决方案: 我刚刚在14.04服务器上重新安装了mysql-server 5.7。每次启动MySQL服务时,都会出现此错误: root@xxx:/etc/mysql# service mysql restart * Stopping MySQL Community Server 5.7.11 ... * MySQL Community Server 5.7.11 is stopped * Re-starting MySQL Community Server 5.7.11 No directory, logging in with HOME=/ .. * MySQL Community Server 5.7.11 is started 这意味着什么?我是否必须为用户“ mysql”设置主目录?(如果是这样,最好的选择是什么?/ home / mysql ??)现在是/不存在: mysql:x:110:106:MySQL Server,,,:/nonexistent:/bin/false 但是我有另一台具有相同/不存在的机器,它没有显示任何错误...
16 server  mysql 

1
为什么Ubuntu软件中心被GNOME软件取代?
在Ubuntu 16.04中,Ubuntu软件中心将替换为GNOME软件应用程序,但是为什么会这样呢?他们为什么做出这个决定?因为GNOME软件甚至还没有稳定发布...那么为什么他们要赶紧使用它来替换已经运行了这么长时间的Ubuntu软件中心呢?这种变化一定有一个非常重要的原因,否则就是疯狂。


3
sudo apt-get安装libstdc ++
当我尝试libstdc++使用安装时: sudo apt-get install libstdc++ 我在ubuntu中收到以下错误。你有什么想法吗? The following packages have unmet dependencies: libstdc++-4.8-doc : Conflicts: libstdc++6-4.4-doc but 4.4.7-8ubuntu1 is to be installed Conflicts: libstdc++6-4.6-doc but 4.6.4-6ubuntu2 is to be installed Conflicts: libstdc++6-4.7-doc but 4.7.3-12ubuntu1 is to be installed libstdc++-4.9-doc : Conflicts: libstdc++-4.8-doc but 4.8.5-2ubuntu1~14.04.1 is to be installed Conflicts: libstdc++6-4.4-doc …
16 apt  gcc 

3
为什么推荐“ LANG = C; sudo apt-get clean”等?
我碰到了这个Wiki页面:Package Manager故障排除过程。 其中包含以下命令: LANG=C;sudo apt-get clean LANG=C;sudo apt-get autoclean LANG=C;sudo apt-get -f install LANG=C;sudo apt-get --fix-missing install LANG=C;sudo apt-get --purge autoremove LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000 LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade 那么目的是LANG=C;什么?


1
SSHFS-自动重新连接
我有一个SSHFS挂载,可以使用命令行连接: echo myPassword | sudo sshfs user@home.address:/ /media/NAS -p31337 -o workaround=rename -o password_stdin -o allow_other 这似乎足以将我的NAS安装/media/NAS好。 如果电源或Internet中断,连接有时会断开,在这种情况下,我将不得不识别出这种情况,并使用同一命令手动重新连接。 有没有办法让我的Ubuntu服务器在连接断开时自动尝试重新连接(例如每30秒一次)? 谢谢。
16 14.04  server  sshfs 

1
“ / sys”目录用于什么?
不久前,我注意到该目录以前从未见过/sys。我研究了一下,读到“现代Linux系统”经常有此目录,并且它管理设备。我以为那是/ dev的目的。除了我提到的内容之外,我似乎找不到关于此目录的大量信息,而此内容引用于此页面: / sys是一个虚拟文件系统,可以访问它来设置或获取有关系统内核视图的信息。 我已经运行Trusty有一段时间了,以前从没注意到它,这就是为什么我觉得它有点奇怪。有人可以帮我吗?这个和/ dev有什么区别?Ubuntu何时开始使用此目录,为什么?谢谢。

5
我为什么要将所有内容移至/ opt?
每当我阅读安装SDK,IDE,一些扩展等的提示时,都会说我应该将它们解压缩到/opt文件夹中。为什么我需要这样做? 当我安装Ubuntu时,我读到我应该只为/文件系统设置10-20 GiB,并为设置剩余空间/home。因此,我应该扩展根文件夹的空间,还是将所有内容保留在/home?有什么区别吗?


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.