如果我检查google,我可以看到我的公共 IP。在 Ubuntu 命令行上有什么东西会给我同样的答案吗?
我安装了xbacklight,希望它能控制我的亮度。尝试更改亮度时,我被告知“没有输出具有背光属性”。环顾四周,我发现这与我的电脑没有/sys/class/backlight文件夹有关。我知道这是问题所在,但不知道如何解决。
不确定是否需要,但这里有一些来自 inxi 的系统信息:
System: Kernel: 3.16.0-57-generic x86_64 (64 bit, gcc: 4.8.2)
Desktop: LXDE (Openbox 3.5.2) Distro: Ubuntu 14.04 trusty
Machine: HP EliteBook 8460p
CPU: Dual core Intel Core i5-2520M CPU
Graphics: Advanced Micro Devices [AMD/ATI] Seymour [Radeon HD 6400M/7400M Series]
Run Code Online (Sandbox Code Playgroud)
这与驱动程序(可能是 Intel/AMD 图形驱动程序)有关吗?
我在某处读到 Ubuntu One 只能在 Ubuntu 上运行,这令人惊讶(我想这只是官方立场)。在 Debian 上运行它需要什么?
network-manager出于某种原因我决定摆脱,现在为了上网络,我必须运行sudo ifup eth0. 这是cat /etc/network/interfaces给出的内容:
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet dhcp
Run Code Online (Sandbox Code Playgroud)
我如何确保我不会再次执行这个费力的过程……我如何在启动时自动启动网络?
我有一个使用 amazon ec2 实例的 Ubuntu 服务器设置。我需要使用 SSH 将我的桌面(也是一台 ubuntu 机器)连接到 ubuntu 服务器。
我已经在 ubuntu 服务器中安装了 open-ssh。我需要网络的所有系统使用 SSH 连接 ubuntu 服务器(无需通过 pem 或 pub 密钥连接)。
因此,我在安全组 (AWS) 中为我的静态 IP 打开了 SSH 端口 22。
我的 SSHD-CONFIG 文件是:
# Package generated configuration file
# See the sshd_config(5) manpage for details
# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol …Run Code Online (Sandbox Code Playgroud) 运行 tcpdump 时遇到问题。我必须用非 root 用户运行 tcpdump。在网上搜索我的问题并发现我应该:
sudo setcap cap_net_admin=eip /usr/sbin/tcpdump
Run Code Online (Sandbox Code Playgroud)
这使我能够与我的用户一起运行tcpdump但后来我得到了:
you don't have permission to capture on that device
Run Code Online (Sandbox Code Playgroud)
在我尝试捕获的任何设备上。
也有点蛮力并做了:
sudo chmod +s /usr/sbin/tcpdump
Run Code Online (Sandbox Code Playgroud)
那也没有做到。
我曾经建议某人删除依赖于ubuntu-desktop元包的包,如果她不需要的话(例如:如果有人使用与gedit不同的编辑器)。其他人说这样做(删除gedit进而删除ubuntu-desktop)可能会破坏事情。这是真的?还有其他潜在的问题吗?
我想创建一个 makefile 来编译我的对象并根据 Linux 发行版(例如 Suse、RedHat 或 Ubuntu)命名它们。如何检测操作系统是否为 Ubuntu?
为了监控我的工作定义正在做什么,我想查看工作的文本输出。当我通过 SSH 登录时,这似乎是不可能的。
我在 Natty 11.04 上遇到了这个问题,但我相信这是一个更常见的问题。
我使用的一个简单的作业文件(文件名/etc/init/test.conf):
description "test"
start on test
console owner
kill timeout 5
task
script
/bin/echo Gotcha...
end script
Run Code Online (Sandbox Code Playgroud)
我的目标是在执行initctl emit testor时看到文本“Gotcha ...” initctl start test。但这不起作用。
到目前为止我尝试过的:
networking ×2
ssh ×2
14.04 ×1
backlight ×1
debian ×1
drivers ×1
hp ×1
launchpad ×1
login ×1
makefile ×1
openssh ×1
permissions ×1
server ×1
tcpdump ×1
ubuntu-one ×1
upstart ×1
upstream ×1
xbacklight ×1