我正在尝试使用 rsync 备份我的主目录,并且我想排除一些包含垃圾的目录。我想特别排除/home/ben/.ccache和/home/ben/build。不幸的是,rsync 的文档信息过载,并没有回答我的问题。这是我尝试过的:
rsync -arv --exclude "/home/ben/.ccache:/home/ben/build" /home/ben /media/ben/thumbdrive/
Run Code Online (Sandbox Code Playgroud)
这样做的正确方法是什么?
安装更新后,我的系统不再启动。我启用了全盘加密(安装程序为您设置的加密),因此它通常在通过 GRUB 引导后仅几秒钟就要求提供密钥。现在,它跳过询问密钥,尝试加载 Gnome,然后转到下图所示的屏幕。该系统是一个运行 Ubuntu Gnome 13.04 的 64 位 System76 机器。然而,这曾经发生在我身上,在运行 Ubuntu Gnome Remix 12.10 的 Dell XPS 8300 64 位上。在这种情况下,我重新安装了操作系统。但是这次我想真正解决这个问题,所以我知道将来如何处理它。此外,从头开始重新安装非常不方便。
我怀疑 /boot 中的配置文件中有些东西搞砸了,以至于它没有意识到磁盘已加密,但是我在那里闲逛时没有看到任何东西。您对如何修复它有任何想法(除了重新安装操作系统)?
Gave up waiting for root device. Common problems:
— Boot args (cat /proc/cmdline)
— Check rootdelay= (did the system wait long enough?)
— Check root= (did the system wait for the right device?)
— Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/mapper/gnome-root does not exist.
Dropping to a shell!
BusyBox v.1.20.2 (Ubuntu 1:1.20.2-1ubuntu1) built-in shell …Run Code Online (Sandbox Code Playgroud) 如何在popd不实际从堆栈中弹出最后一个目录的情况下获得使用行为?换句话说,我想导航回我设置的最后一个目录pushd,但我希望它保持在堆栈的顶部,所以下一个popd将带我到同一个目录(它仍然在顶部堆栈)。
我正在尝试在我的机器上编译 Realtek 驱动程序,但出现以下错误:
make -C /lib/modules/3.11.0-12-generic/build M=/home/david/Downloads/rtl8188ce-linux-driver modules
make[1]: Entering directory `/usr/src/linux-headers-3.11.0-12-generic'
CC [M] /home/david/Downloads/rtl8188ce-linux-driver/base.o
/home/david/Downloads/rtl8188ce-linux-driver/base.c: In function ‘rtl_action_proc’:
/home/david/Downloads/rtl8188ce-linux-driver/base.c:885:32: error: ‘struct ieee80211_conf’ has no member named ‘channel’
rx_status.freq = hw->conf.channel->center_freq;
^
/home/david/Downloads/rtl8188ce-linux-driver/base.c:886:32: error: ‘struct ieee80211_conf’ has no member named ‘channel’
rx_status.band = hw->conf.channel->band;
^
/home/david/Downloads/rtl8188ce-linux-driver/base.c: In function ‘rtl_send_smps_action’:
/home/david/Downloads/rtl8188ce-linux-driver/base.c:1451:24: error: ‘struct ieee80211_conf’ has no member named ‘channel’
info->band = hw->conf.channel->band;
^
make[2]: *** [/home/david/Downloads/rtl8188ce-linux-driver/base.o] Error 1
make[1]: *** [_module_/home/david/Downloads/rtl8188ce-linux-driver] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.11.0-12-generic'
make: *** [all] Error …Run Code Online (Sandbox Code Playgroud) 如何配置 Ubuntu 服务器安装以提供对专用网络的 Internet 访问,以便专用网络上的机器可以通过 Ubuntu 服务器访问 Internet?这台机器当然有两个网卡。