debian

MongoDB: How to disable logging the warning: ClientCursor::staticYield can't unlock b/c of recursive lock?

五迷三道 提交于 2019-12-23 13:15:20
问题 I get the warning stated in the title warning: ClientCursor::staticYield can't unlock b/c of recursive lock ns.... in the log file for literally gazillion of times (the log file reaches 200 GB in size in a single day with this single log message). As mentioned in this SO question, I want to adopt the "solution" of simply ignoring the message. What I did (to no avail) to stop it is to: set the param quiet = true set the param oplog = 0 set the param logpath=/dev/null (hoping that nothing gets

Problems while creating a Linux-executable file from C# sourcecode using mkbundle

…衆ロ難τιáo~ 提交于 2019-12-23 12:24:25
问题 As mentioned in this thread as well as here I am using mkbundle -o newfile oldfile.exe --static (OS: Ubuntu 11.10 64bit, Mono: 2.10.5) to create a file which shall be executable on an Apache Web Server (OS: Debian GNU/Linux 32bit). Here, the oldfile.exe was the result of the compilation of a C#-Hello-World-Code using mcs oldfile.cs . On the original system (with Ubuntu) the file is executable. However, whenver I call newfile on the Apache Web Server I get the error: cannot execute binary file

Symfony 2 - UploadedFile, move method failed - Unable to create directory…

梦想的初衷 提交于 2019-12-23 12:04:58
问题 I'm learning Symfony 2, and I have trouble with the class UploadedFile. I want to handle file uploading in my projet so I learned thanks to the official documentation : How to handle File Uploads with Doctrine It works pretty good. However, it works just in local. I use MAMP for testing my project. I tried to put my project in Debian 6 server. The Symfony app works, but the upload file doesn't work. When I move the file with the method move() ... I have this error : Unable to create the "/var

在Debian上安装WORDPRESS环境和WORDPRESS

回眸只為那壹抹淺笑 提交于 2019-12-23 11:17:41
1 更新系统 apt-get update && apt-get upgrade 2 安装配置APACHE apt-get install apache2 nano /etc/apache2/apache2.conf KeepAlive Off a2dismod mpm_event a2enmod mpm_prefork systemctl restart apache2 3 安装配置MYSQL apt-get install mysql-server mysql_secure_installation 4 安装配置PHP apt-get install php5 php-pear mkdir /var/log/php chown www-data /var/log/php apt-get install php5-mysql systemctl restart apache2 5 安装PHPMYADMIN apt-get install phpmyadmin 6 因为自己在后台在线安装插件和主题的时候总提示过需要建立ftp连接,最后的解决办法还是权限设置问题 chmod 755 /var/www/wordpress/wp-content/ chown -R www-data /var/www/wordpress 来源: https://www.cnblogs.com/spkljl

ImportError: No module named zbar on Linux Mint

倾然丶 夕夏残阳落幕 提交于 2019-12-23 11:12:13
问题 I want to use zbar with python on Linux Mint. I tried apt-get zbar and I didn't find any packages. So I tried to use apt-get install zbar-tools and that seemed to work. I tried to run basic example code that starts with: #!/usr/bin/python from sys import argv import zbar import Image However, that code crashes with the error: Traceback (most recent call last): File "./p4.py", line 3, in <module> import zbar ImportError: No module named zbar Normally I would expect to find some file named zbar

ImportError: No module named zbar on Linux Mint

爷,独闯天下 提交于 2019-12-23 11:12:02
问题 I want to use zbar with python on Linux Mint. I tried apt-get zbar and I didn't find any packages. So I tried to use apt-get install zbar-tools and that seemed to work. I tried to run basic example code that starts with: #!/usr/bin/python from sys import argv import zbar import Image However, that code crashes with the error: Traceback (most recent call last): File "./p4.py", line 3, in <module> import zbar ImportError: No module named zbar Normally I would expect to find some file named zbar

Create Linux install for Qt application

二次信任 提交于 2019-12-23 09:28:10
问题 I just made a great program with Qt Creator. I'm very pleased with myself. How do I move it from my desktop to my laptop? So, the best way would be an installer right? And for Ubuntu, that's a debian package right? How do I do that? Has someone done this and could they share the template files for QT 4.5? Thanks, Mike 回答1: If you want to run the application foo you created on the machine desktop on another machine laptop , then simply copy the binary, for example via scp run ldd foo on laptop

linux/init.h: No such file or directory

折月煮酒 提交于 2019-12-23 09:26:10
问题 I'm trying to build a kernel module for my class, and I'm getting a massive wall of errors, but at the top of said wall is the infamous 'No such file or directory' error. It seems to be the root of the problem. This not only seems to affect init.h, but also module.h and kernel.h. The first three lines of the program go as follows: #include <linux/init.h> #include <linux/module.h> #include <linux/kernel.h> I've looked around and tried other paths for where these files ought to be when browsing

debian 10上安装nvidia驱动真麻烦

巧了我就是萌 提交于 2019-12-23 09:17:58
https://wiki.debian.org/zh_CN/NvidiaGraphicsDrivers#config-manual 还是看官方文档做吧 https://pkgs.org/download/nvidia-prime 得切换 nvidia卡 prime-select nvidia This operation requires root privileges admin@debian:~$ sudo prime-select nvidia [sudo] admin 的密码: Info: the nvidia profile is already set glxinfo | grep OpenGL bash: glxinfo:未找到命令 sudo apt-get install mesa-utils 驱动安装完以后,x进不去。我试试把xorg.conf做了备份,然后删掉,反正这个文件是安装驱动的时候创建的,debian本来就没有,桌面能进去了。 nvidia-smi Sun Dec 22 09:28:53 2019 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 440.44 Driver Version: 440.44 CUDA

Compiling 32bits qt sources on a 64bit Debian environement

夙愿已清 提交于 2019-12-23 09:16:35
问题 I want to build 32 bits applications on my Debian 64 bits environment. So, I'm trying to compile the Qt sources in order to get the 32 bits libraries. I am trying to use the following configure command: ./configure -platform linux-g++-32 Unfortunately, I get an error as below: Basic XLib functionality test failed! You might need to modify the include and library search paths by editing But when I do the following: ./configure -platform linux-g++-64 It's working fine. Any guesses? 回答1: Based