Ubuntu

Ubuntu用户和开发人员的问答

7
Grep在一行中搜索两个单词
我一直在尝试寻找一种方法来过滤其中包含单词“ lemon”和“ rice”的行。我知道如何找到“柠檬”或“大米”,但找不到两者。它们不需要紧挨着另一行,只需一行相同的文本即可。

7
如何禁用Alt +单击窗口拖动?
在Ubuntu 14.04中,按住Alt并单击一个窗口时,可以拖动它。据我了解,您曾经能够通过gconf禁用它,但是Unity不再从此处读取设置(因此无法再更改窗口按钮的位置)。 默认情况下,没有任何设置,在Unity Tweak Tool中也找不到任何内容。无论如何,Alt在14.04中是否有禁用+单击窗口移动的功能?
46 unity  14.04  window 


2
top命令中的“缓存”是什么?
运行时top,我得到: top - 09:10:52 up 18:37, 1 user, load average: 1.56, 1.33, 1.15 Tasks: 39 total, 1 running, 38 sleeping, 0 stopped, 0 zombie Cpu(s): 0.1%us, 0.6%sy, 1.0%ni, 92.5%id, 5.8%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 4194304k total, 3045460k used, 1148844k free, 0k buffers Swap: 0k total, 0k used, 0k free, 2256128k …
46 memory  top 


1
E:dpkg被打断了……运行'sudo dpkg --configure -a'
我正在使用apt-get命令进行升级,这花费了非常长的时间,因为通过ISP进行访问的中途遇到了他们的合理使用政策。 坐在外面看了一会儿雨后,我的电子设备恢复了意识,于是我回去完成升级,我的终端责骂我 "E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem." 最后一点清晰的信息就是这一切: Installing (ri/RDoc) documention for (stuff and such) ERROR: Could not find a valid gem 'watobo-0.9.8.724.gem' (>= 0) in any repository rm: cannot remove `watobo-0.9.8.724.gem': No such file or directory Setting up …
46 dpkg 

5
如何在系统中安装英特尔图形驱动程序?
有人可以帮我解决一下视频驱动程序,看看我的视频卡是否运行正常吗? 我使用Compiz Manager在Thinkpad r61上安装了10.04,并且生活非常好,直到机器损坏了水。从那以后,我购买了华硕(X54H),并尝试使用12.04,但台式机的外观并不正确。 我一直在努力安装视频驱动程序。硬件管理器中没有可用的专有驱动程序。 当我跑步时lspci | grep VGA: 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) 非常感谢您的帮助。我想更多地使用Linux,但是就像我说的那样,视频驱动程序似乎是我最大的担忧。我也在台式机上尝试了12.04,但是再次无法配置视频卡,因此切换回Windows 7。

9
如何使用wget / curl从我登录的网站下载?
维基百科的某些部分在您登录时会出现不同的显示。我想获取用户页面,使它们看起来就像我登录时一样。 有没有办法我可以这样获取用户页面 http://en.wikipedia.org/wiki/User:A 这是登录页面: http://en.wikipedia.org/w/index.php?title=Special:UserLogin&returnto=Login&campaign=ACP3
46 bash  wget 


6
如何在登录时设置Xmodmap?
由于我的键盘布局不适合我,因此我xmodmap在登录时运行。该脚本已命名.profile,可以正常运行,但会中断Unity接口。 我想知道在哪里放置该xmodmap行,以便它在我的登录时执行,并且不会破坏任何内容。 我已经尝试将其放在.bash_login和.bash_profile文件中,但没有成功(xmodmap未设置键盘)。 我有什么选择?



1
Ubuntu 16.04命令行sendmail安装挂起
我试图安装sendmail,但尝试生成ssl证书时却挂起。我已经取消了安装过程,后来又取消了锁定所有新软件包的过程。 但是,每当我运行apt-get install <package_name>它,它就会回到sendmail安装并尝试安装ssl证书。 我已重新启动系统,但问题仍然存在。 我该如何解决? CLI信息 sudo dpkg --configure -a Setting up sendmail-bin (8.15.2-3) ... Updating sendmail environment ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Writing configuration to /etc/mail/sendmail.conf. Writing /etc/cron.d/sendmail. Disabling HOST statistics file(/var/lib/sendmail/host_status). Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Writing configuration to /etc/mail/sendmail.conf. Writing /etc/cron.d/sendmail. Could not …
46 apt  sendmail 


2
手动创建的GNOME启动器项目的重复图标
我已经下载了Aptana Studio 3,并创建了以下启动器项目以使用Alacarte: 文件: alacarte-made.desktop [Desktop Entry] Comment= Terminal=false Name=Aptana Studio 3 Exec=AptanaStudio3 Type=Application Icon=/opt/Aptana-Studio-3/icon.xpm 然后,当我将图标添加到收藏夹并打开Aptana Studio 3时,按照以下屏幕截图,它会显示两个图标,一个用于启动新实例,一个用于当前正在运行的实例。 如何强制应用程序使用添加到收藏夹的相同图标?

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.