debian

Just writing 'import' in a python script breaks my mouse cursor forcing a hard reset

落爺英雄遲暮 提交于 2019-12-22 05:01:07
问题 I'm totally baffled by this.. Trying to code a python script on my Debian Stretch system but after running a 4 lined script my mouse cursor would turn into a cross and blocking any click actions from working and forcing me to hard reset the system by holding the off button! I tested a few times and found out that my script just needs to contain an import for it to break, nothing else - literally a one-lined: import pxssh And run ./bug.py System broken. Mouse cursor looks like a cross and

How can I check apache modules version?

蓝咒 提交于 2019-12-22 04:32:46
问题 How do I get versions of apache modules on debian? I can get loaded modules list by apache2ctl -M - but how do I get their version numbers? 回答1: apt-cache show libapache2-mod-foobar | grep Version 回答2: $ strings /usr/lib/apache2/modules/mod_pagespeed.so \ | grep "mod_pagespeed/[0-9]\.[0-9]" mod_pagespeed/w.x.y.z Find more at http://thinkinginsoftware.blogspot.com/2015/10/find-out-apache-module-version.html 回答3: Did you try this? apt-cache policy libapache2-mod-foobar 来源: https://stackoverflow

How can I check apache modules version?

≡放荡痞女 提交于 2019-12-22 04:32:08
问题 How do I get versions of apache modules on debian? I can get loaded modules list by apache2ctl -M - but how do I get their version numbers? 回答1: apt-cache show libapache2-mod-foobar | grep Version 回答2: $ strings /usr/lib/apache2/modules/mod_pagespeed.so \ | grep "mod_pagespeed/[0-9]\.[0-9]" mod_pagespeed/w.x.y.z Find more at http://thinkinginsoftware.blogspot.com/2015/10/find-out-apache-module-version.html 回答3: Did you try this? apt-cache policy libapache2-mod-foobar 来源: https://stackoverflow

creating debian package

橙三吉。 提交于 2019-12-21 19:59:57
问题 I have checked on debian site for creating a package. But, it is not easy to understand as it does not give a step wise processes. Please help me how to create a Debian package. If possible a detailed steps would be very fine. 回答1: The goal is to create a package that simply puts a shell script where I want it. 1.Create a directory to build your packages in. Some use "deb" and others use "packages". Others create a directory structure for making multiple packages under "deb" (or whatever).

Imagick (Imagemagick) Defect in Debian Sqeeze (6)

我是研究僧i 提交于 2019-12-21 19:39:49
问题 I have huge troubles running my cakephp application now. after upgrading vom lenny to squeeze (even tried a complete reinstall of sqeeze) imagick is so incredible slow that it simply shuts down my server. I have several image galleries which use imagick to create thumbs. 50 images needed less then 30 seconds (2000x1200 pixel) on lenny. NOW it needs more than an hour.. Processor is at 100% for the complete time making other processes like apache very slow. is this a known bug in squeeze? it is

error: field 'ctx' has incomplete type EVP_CIPHER_CTX

我的梦境 提交于 2019-12-21 12:32:27
问题 Problem: I need to install Cepstral (tts engine) into Freeswitch running Debian 8. Freeswitch is already up and running, but I needed to build it from source in order for it create the mod_cepstral module. When I run make this is the error I get: In file included from ./crypto/include/prng.h:17:0, from ./crypto/include/crypto_kernel.h:50, from ./include/srtp.h:53, from srtp/srtp.c:46: ./crypto/include/aes_icm_ossl.h:66:20: error: field ‘ctx’ has incomplete type EVP_CIPHER_CTX ctx; ^~~ In file

Bash monitor disk usage

ⅰ亾dé卋堺 提交于 2019-12-21 10:31:50
问题 I bought a NAS box which has a cut down version of debian on it. It ran out of space the other day and I did not realise. I am basically wanting to write a bash script that will alert me whenever the disk gets over 90% full. Is anyone aware of a script that will do this or give me some advice on writing one? 回答1: #!/bin/bash source /etc/profile # Device to check devname="/dev/sdb1" let p=`df -k $devname | grep -v ^File | awk '{printf ("%i",$3*100 / $2); }'` if [ $p -ge 90 ] then df -h

Bash monitor disk usage

浪子不回头ぞ 提交于 2019-12-21 10:30:13
问题 I bought a NAS box which has a cut down version of debian on it. It ran out of space the other day and I did not realise. I am basically wanting to write a bash script that will alert me whenever the disk gets over 90% full. Is anyone aware of a script that will do this or give me some advice on writing one? 回答1: #!/bin/bash source /etc/profile # Device to check devname="/dev/sdb1" let p=`df -k $devname | grep -v ^File | awk '{printf ("%i",$3*100 / $2); }'` if [ $p -ge 90 ] then df -h

Docker Debian apt Error Reading from Server

情到浓时终转凉″ 提交于 2019-12-21 08:14:53
问题 It would seem that apt-get is having issues connecting with the repository servers. I suppose it is likely compatibility issues, as mentioned here, however the proposed solution of apt-get clean does not work for me. Also I am surprised, if this is the case, that there are not more people having my issue. MWE Dockerfile FROM debian:jessie RUN apt-get clean && apt-get update && apt-get install -y --no-install-recommends \ git $ docker build . docker build . Sending build context to Docker

Visual SVN client for Debian Linux [closed]

江枫思渺然 提交于 2019-12-21 07:57:31
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Does any one know of a good, free, visual SVN client for Linux? 回答1: KDESVN A feature-rich client with great history and revision views, annotated code views showing who changed each line of code and when it was changed, and 3D graphical views of branching and merging among trees. Written in C++ with Qt, but