作为标题:
如何找到我正在使用的桌面环境?
我想使用命令行完成此操作。
从 GConf 密钥描述:
窗口焦点模式指示窗口是如何被激活的。它有三个可能的值;“click”表示必须点击窗口才能使它们聚焦,“sloppy”表示当鼠标进入窗口时窗口被聚焦,“mouse”表示当鼠标进入窗口时窗口被聚焦,当鼠标离开窗口时不聚焦.
当我配置focus_mode使用gconf编辑,/apps/metacity/general/focus_mode我不能告诉之间的区别mouse和sloppy。
当我将此键设置为 时mouse,如果我将光标悬停在背景上,焦点仍然在该窗口上。
我正在做一个关于ip数据包转发的网络实验,但我不知道它为什么起作用。
我有一台带有两个网络接口的 linux 机器,eth0 和 eth1 都有静态 IP 地址(eth0:192.168.100.1,eth1:192.168.101.2)。
我的目标很简单,我只想将目标在子网 192.168.100.0/24 中的 eth1 的 ip 数据包转发到 eth0,并将目标在子网 192.168.101.0/24 中的 eth0 中的 ip 数据包转发到 eth1。
我打开了 ip 转发:
sysctl -w net.ipv4.ip_forward=1
Run Code Online (Sandbox Code Playgroud)
我的路由表是这样的:
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.101.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
Run Code Online (Sandbox Code Playgroud)
但是,当我尝试从 192.168.100.25 ping 到 192.168.101.47 时,它不起作用。
当我输入ifconfig -a时,有一个sit0,为什么在这里,以及如何删除它?
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Run Code Online (Sandbox Code Playgroud) $ ps -elf | grep
...
0 D nobody 27320 27319 2 90 10 - 353471 sleep_ 07:54 ? 00:02:19 /usr/bin/find / -ignore_readdir_race ( -fstype NFS -o -fstype nfs -o -fstype nfs4 -o -fstype afs -o -fstype binfmt_misc -o -fstype proc -o -fstype smbfs -o -fstype autofs -o -fstype iso9660 -o -fstype ncpfs -o -fstype coda -o -fstype devpts -o -fstype ftpfs -o -fstype devfs -o -fstype mfs -o -fstype shfs -o -fstype sysfs -o -fstype cifs -o -fstype lustre_lite …Run Code Online (Sandbox Code Playgroud) 可能重复:
inittab 文件在哪里?
我从得知维基百科是init程序通常通过指定运行级别,为了争论内核称为根据不同的运行级别做不同的事情,而且运行级别可以找到/etc/inittab,但为什么我不能找到/etc/inittab?
networking ×2
anacron ×1
boot ×1
command-line ×1
focus ×1
init ×1
ip-forward ×1
ipv6 ×1
mouse ×1
ps ×1