Questions tagged «linux»

使用Linux内核的一系列类似Unix的操作系统。如果您的问题仅与特定分布有关,请使用更具体的标签。

1
帮助理解传感器命令的输出
我有一台运行Ubuntu Jaunty的Acer Travelmate 2420。由于过热,它很老了,有时会停止: Aug 9 22:25:56 Fjords kernel: [10921.525876] ACPI: Critical trip point Aug 9 22:25:56 Fjords kernel: [10921.525892] Critical temperature reached (85 C), shutting down. Aug 9 22:25:57 Fjords init: tty4 main process (2123) killed by TERM signal Aug 9 22:25:57 Fjords init: tty5 main process (2124) killed …
2 linux  cooling 

1
为什么du和ls报告的文件大小之间存在巨大差异?
在服务器上,我有一个目录/opt/kafka/data/topics。 $ du -hs /opt/kafka/data/topics 52M /opt/kafka/data/topics 当我像这样的目录tar $ tar czfv /tmp/topics.tar.gz /opt/kafka/data/topics 我得到一个有意义的文件大小 $ ls -alh /tmp/topics.tar.gz -rw-r--r-- 1 user user 11M Jan 12 15:15 kafka 但是,当我下载topics.tar.gz到我的本地OS X计算机并提取它时,它占用10GB! 在/opt/kafka/data/topics仔细检查服务器上的内容后,我注意到它根据ls它包含许多10MB文件: $ find /opt/kafka/data -type f -exec ls -alh {} \; ... [output] -rw-r--r-- 1 user user 10M Jan 12 02:45 …

1
没有root权限的Linux权限更改
是否有其他用户在没有root权限的情况下更改文件的权限?如果另一个用户可以访问我的驱动器,理论上他们可以通过二进制或十六进制编辑器更改文件中的用户位,他们可以更改权限吗?

0
连接正常时FTP连接问题
我使用FTP客户端FileZilla通过FTP传输我的文件。但是,最近我注意到FTP活动的许多问题,例如列出一些目录。 我的服务器落后于VPN,所以我怀疑连接问题时的VPN连接。但是,ping结果下面是FTP客户端问题,如上所述: 64 bytes from 10.8.0.1: icmp_seq=0 ttl=64 time=16.634 ms 64 bytes from 10.8.0.1: icmp_seq=1 ttl=64 time=17.509 ms 64 bytes from 10.8.0.1: icmp_seq=2 ttl=64 time=17.966 ms 64 bytes from 10.8.0.1: icmp_seq=3 ttl=64 time=16.037 ms 64 bytes from 10.8.0.1: icmp_seq=4 ttl=64 time=17.611 ms 64 bytes from 10.8.0.1: icmp_seq=5 ttl=64 time=17.699 ms …

2
VM apt-get install - 网络无法访问
我有一个Vagrant支持的Ubuntu VM,我正在尝试进行一些性能测试。为了做到这一点,我正在尝试安装gdb 当我运行apt-get install时,我看到以下内容: vagrant@ubuntu-1204:~$ sudo apt-get install gdb sudo: /etc/sudoers.d/vagrant is mode 0644, should be 0440 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libpython2.7 python2.7 python2.7-minimal Suggested packages: gdb-doc gdbserver python2.7-doc binfmt-support The following NEW packages will be …

0
在Lubuntu上安装TeamViewrer
我已直接从网站下载了Teamvier的最新版本(13),现在有了我的.deb文件。当我双击这个文件并单击“安装包”选项时,它会询问我的sudo密码,但是我得到一个错误 - 请检查您的安装介质并确保您的apt-cache是​​最新的 我打开终端跑了 sudo apt-get update 然后尝试再次安装,但我收到了同样的错误。为了成功安装此程序,我该怎么办? EDIT从终端 运行dpkg命令时出现完全错误 owner@OwnerBackup:~/Downloads$ sudo dpkg -i teamviewer_13.1.8286_i386.deb (Reading database ... 226294 files and directories currently installed.) Preparing to unpack teamviewer_13.1.8286_i386.deb ... Unpacking teamviewer (13.1.8286) over (13.1.8286) ... dpkg: dependency problems prevent configuration of teamviewer: teamviewer depends on libqt5x11extras5 (>= 5.2); however: Package …

1
cron工作没有执行
我有一个cron作业,应该每15分钟运行一次脚本。 */15 * * * * /path/to/script.sh 我在三个小时后检查过,发现脚本从未运行,甚至一次。 早些时候我试图让它每隔半小时运行一次: 0, 30 * * * * /path/to/script.sh 具有相同(缺乏)的结果。 是的,脚本可以由我执行,我正在使用我自己的crontab。有任何想法吗? 更新: 这是我到目前为止尝试的内容: 通过编写脚本来回显helloworld来测试cron,写了一个crontab来每分钟运行它并等待15分钟而没有任何事情发生。 寻找cron.allow和cron.deny。cron.allow不存在,cron.deny确实存在,但我不在其中。 按照建议查看cron日志。没有读过priveleges,会写请求他们。
2 linux  cron 

1
从grub 1.98启动菜单中删除已删除的操作系统
我试图从grub 1.98菜单中删除已删除操作系统的条目。 我正在使用Gnu / Linux Debian 6(grub版本1.98 + 20100804-14 + squeeze1)。 我有一个带有10个内核映像的Ubuntu分区和一个Microsoft Windows; 这两个分区都已删除,但条目仍在启动菜单中。 我试过sudo /usr/sbin/update-grub输出看起来不错, #$sudo /usr/sbin/update-grub Generating grub.cfg ... Found background image: /usr/share/images/desktop-base/desktop-grub.png Found linux image: /boot/vmlinuz-2.6.32-5-686 Found initrd image: /boot/initrd.img-2.6.32-5-686 Found linux image: /boot/vmlinuz-2.6.32-5-486 Found initrd image: /boot/initrd.img-2.6.32-5-486 done 但没有改变。 然后我跑了 sudo /usr/sbin/grub-mkconfig 2>&1 | less 看看它做了什么 …
2 linux  boot  debian  grub  gnu 

2
在ssh linux上使用图形界面
我们有一个涉及Linux编程的项目。不幸的是,我们只有一个ssh界面,而不是一个方便的图形界面。我们能做什么?我们听说xterm可以解决我们的问题,但是我们无法正常运行(我们得到:无法打开DISPLAY,因为我们尝试了DISPLAY =:0.0并导出DISPLAY =:0.0),尽管事实上我们已经根权限。 我们在linux论坛上发现了一些问题,例如http://www.linuxquestions.org/questions/slackware-14/xterm-error-display-not-set-583271/,但它没有帮助...... 我们如何转换为grqphic界面?
2 linux  ssh  xterm 

1
Linux Driver需要使用Matrox TripleHead2Go数字信号分配器
我有3台显示器,我正在尝试使用我的Linux工作站获得Matrox TripleHead2Go数字信号分配器。当我连接它们时,我得到的是显示器上闪烁的绿灯,我认为这意味着没有信号。我需要下载Linux驱动程序吗?我在网上搜索但找不到任何东西。也许问题是别的。尝试连接到我的电脑时也是如此。谢谢

8
为什么“ls -a”会隐藏root用户的某些现有目录?
今天我在我们的一个测试服务器上发现了一些非常有趣的东西(至少对我而言): 我可以使用相对路径从我的实际工作目录更改为现有目录,但使用时不会列出该目录ls -a。 这是shell会话(as root): $ pwd /you/are/here $ ls -a . .. <-- Note: "somedir" is not shown to root $ echo $CDPATH $ cd somedir <-- But still: "cd" works fine $ pwd /you/are/here/somedir $ cd .. $ pwd /you/are/here $ ls -a . .. 有人能告诉我,这怎么可能呢?我已经检查:ls是/bin/ls,和pwd是/bin/pwd,无论是从原来的包(我的意思是:不是黑客攻击)。 /you是一个已安装的EMC磁盘(ext3)。并somedir存在,因为我可以列出它的内容(有几个子目录,文件)。它的名字不是以点开头。 更多shell会话,有关命令和ls输出的更多信息: …


1
安装ubuntu而不隐藏已安装的Windows 7?
我有一个包含ubuntu安装程序的可启动闪存驱动器。我想在我的系统上安装ubuntu而不隐藏Windows 7.上次当我在我的系统上安装Windows时,它隐藏了ubuntu启动菜单。 我可以采取哪些步骤来确保这次安装ubuntu不会隐藏/删除我的Windows 7?

1
找不到扩展变量
我尝试了以下内容,但它没有奏效。 image=.jpg,.png,.gif find . -type f -iname "*$image" 为什么?找不到扩展变量?
2 linux  find 

2
Debian 5.0.8不会检测我的以太网适配器
我正在使用网络安装x86 CD在Dell Latitude E6410上安装Debian 5.0.8。 不幸的是,它不会检测我的以太网适配器。具体来说,我收到错误:No Ethernet card was detected. If you know the name of the driver needed by your Ethernet card, you can select it from the list. lspci显示: 00:19.0 Ethernet controller: Intel Corporation Device 10ea (rev 05) 这应该对应于e1000e驱动程序。但是,如果我从列表中选择它,安装CD仍然无法检测到它。 Ubuntu 10.10和Windows 7能够毫无问题地使用此设备。 有谁知道我可以做什么让Debian使用/识别我的以太网适配器? 编辑:附加信息: 我认为这是一款Intel 82577LM千兆以太网芯片组。 如果我从图形安装程序切换到控制台并运行lsmod,我看到e1000e使用次数为0。

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.