即使管理员帐户未处于活动状态并且访客或家庭帐户正在使用中,我也希望在管理员帐户中运行应用程序(如洪水)。
有时家庭帐户正在使用中,并且出于任何原因重新启动了电脑,因此管理应用程序不会在后台启动。
有没有办法使这成为可能?
我已经更改了~/.zshrc文件中的主题,但是提示中的某些颜色更改文本大小和背景颜色仍为 Ubuntu 默认值。任何人都知道我如何覆盖它以使我的终端钱包 ZSH 具有正确的主题。我的.bashrc看起来像这样
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE …Run Code Online (Sandbox Code Playgroud) 我最近安装了 Ubuntu 14.04,然后按照 Ubuntu Bumblebee wiki 上的说明安装了 bumblebee(他们说 primusrun 比 optirun for version=> 13.10 更好)但是当我重新启动并尝试使用任何应用程序运行 primusrun 时(除了 google-chrome 和firefox)出现以下错误(并出现):
primus: fatal: Bumblebee daemon reported: error: Could not load GPU driver
Run Code Online (Sandbox Code Playgroud)
令人惊讶的是,当我检查我的 nvidia 驱动程序的状态时,它会在运行后启动,例如
primusrun clementine
sudo cat /proc/acpi/bbswitch
Run Code Online (Sandbox Code Playgroud)
给出以下
0000:01:00.0 ON
Run Code Online (Sandbox Code Playgroud)
然后,为了避免断电,我必须通过bbswitch将其关闭
注:我可以将其关闭使用后,才设置bbswitchDriver=nouveau中/etc/bumblebee/bumblebee.conf文件并重新启动它。
当我在下面运行此命令时:
sudo -u postgres psq
Run Code Online (Sandbox Code Playgroud)
我在下面收到此错误消息:
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Run Code Online (Sandbox Code Playgroud)
如何启动 postgreSql 并修复此错误?
我的蓝牙适配器在 Ubuntu 中不起作用。
$ lsusb | grep tooth
Bus 002 Device 003: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Run Code Online (Sandbox Code Playgroud)
$ hciconfig
hci0: Type: Primary Bus: USB
BD Address: 33:03:30:09:74:B4 ACL MTU: 360:4 SCO MTU: 0:0
DOWN
RX bytes:1106 acl:0 sco:0 events:56 errors:0
TX bytes:736 acl:0 sco:0 commands:60 errors:0
Run Code Online (Sandbox Code Playgroud)
$ sudo hciconfig hci0 up
Can't init device hci0: Operation not supported (95)
Run Code Online (Sandbox Code Playgroud)
$ bluetoothctl
Agent registered
[bluetooth]# power on
No default controller available
Run Code Online (Sandbox Code Playgroud)
$ hcitool dev
Devices:
$ …Run Code Online (Sandbox Code Playgroud) 我想运行一个使用python2.7版本的应用程序,但默认情况下未安装python2.7。当我尝试使用时:
$ virtualenv -p python2 flaskold
Run Code Online (Sandbox Code Playgroud)
它返回:
RuntimeError: failed to find interpreter for Builtin discover of python_spec='python2'
Run Code Online (Sandbox Code Playgroud)
如何在不支持 python 2.7 的 Ubuntu 20.04 上创建 python2.7 虚拟环境?
我有一台 Windows Server 2008 R2 Enterprise 服务器,我正在使用 remmina 连接到它。
当我按下/数字键盘时,它会写一个-而不是/.
我怎样才能解决这个问题?
我创建了一个.service包含User=xyz在该[Service]部分中的文件。该服务仍以 root 身份运行。奎德?
[Unit]
Description=...
Requires=network-online.target
[Service]
ExecStart=/usr/bin/java ...
Type=simple
ExecStop=/usr/bin/java ...
User=siraprise
[Install]
WantedBy=multi-user.target
Run Code Online (Sandbox Code Playgroud) 我尝试在Virtualbox中构建一组虚拟机,并通过NAT网络将它们连接起来。主要信息如下:
The Virtualbox version: 6.0.12
The Ubuntu guest version: ubuntu-18.04.2
The NAT network info:
NetworkName: natnet22
IP: 192.168.13.1
Network: 192.168.13.0/24
IPv6 Enabled: No
IPv6 Prefix: fd17:625c:f037:2::/64
DHCP Enabled: Yes
Enabled: Yes
loopback mappings (ipv4)
127.0.0.1=2
Run Code Online (Sandbox Code Playgroud)
当我完成创建 Ubuntu 机器时,DHCP 服务器可能会192.168.13.4为其分配 IP。但是当我克隆机器时,我更改了克隆机器的 MAC 地址。DHCP服务器仍然192.168.13.4为克隆的IP分配IP。
为什么克隆的 Ubuntu 与源的 IP 相同?我需要它们在 NAT 网络中有不同的 ip 来控制它们。请帮我解决问题。
如何在 20.04 上安装 libnginx-mod-http-passenger?
20.04 ×2
19.10 ×1
bash ×1
bluetooth ×1
bumblebee ×1
clone ×1
command-line ×1
dhcp ×1
drivers ×1
keyboard ×1
layout ×1
networking ×1
nvidia ×1
postgresql ×1
python-2.7 ×1
rdp ×1
remmina ×1
systemd ×1
virtualbox ×1
virtualenv ×1
zsh ×1