debian

How to run a script at a certain time on Linux? [closed]

痴心易碎 提交于 2019-12-17 07:04:25
问题 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 6 years ago . I have a text file containing a specific date and time. I want to be able to run a script at the time specified in that file. How would you achieve that? Create another script that runs in background (sort of a deamon) and checks every second if the current time is matching the time in the file? Is there another

CUDA incompatible with my gcc version

一曲冷凌霜 提交于 2019-12-17 02:54:13
问题 I have troubles compiling some of the examples shipped with CUDA SDK. I have installed the developers driver (version 270.41.19) and the CUDA toolkit, then finally the SDK (both the 4.0.17 version). Initially it didn't compile at all giving: error -- unsupported GNU version! gcc 4.5 and up are not supported! I found the line responsible in 81:/usr/local/cuda/include/host_config.h and changed it to: //#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 4) #if __GNUC__ > 4 || (__GNUC__ == 4

No module named _sqlite3

眉间皱痕 提交于 2019-12-17 02:21:47
问题 I am trying to run a Django app on my VPS running Debian 5. When I run a demo app, it comes back with this error: File "/usr/local/lib/python2.5/site-packages/django/utils/importlib.py", line 35, in import_module __import__(name) File "/usr/local/lib/python2.5/site-packages/django/db/backends/sqlite3/base.py", line 30, in <module> raise ImproperlyConfigured, "Error loading %s: %s" % (module, exc) ImproperlyConfigured: Error loading either pysqlite2 or sqlite3 modules (tried in that order): No

ubuntu(Debian)中ISO相关控制命令

限于喜欢 提交于 2019-12-16 22:06:47
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 1、加载iso文件 #sudo mount -t iso9660 -o loop renyuan.iso /cdrom 注:/cdrom为目录名,如使加载到iso可写可以使用命令sudo mount -o rw,loop renyuan.iso /cdrom,卸载sudo umount /cdrom 2、复制光盘为iso镜像文件 #dd if=/dev/hdb of=renyuan.iso 或 #cp /dev/cdrom renyuan.iso 注:/dev/hdb为实际光驱设备,因机器不同而不同,也可能是/dev/hdc 3、虚拟iso为设备 #rm -rf /dev/cdrom //删除原来的符号连接,最好先查看一下,使用后要复原 #ln -s /dev/loop7 /dev/cdrom //建立符号连接 #losetup /dev/loop7 /path/to/renyuan.iso //虚拟iso为设备loop7 #mount /dev/cdrom /mnt/cdrom //挂载虚拟设备 以下是换盘步骤: #losetup -d /dev/loop7 //删除虚拟设备 #losetup /dev/loop7 /path/to/renyuan1.iso #mount /dev/cdrom /mnt

Debian sources.list

╄→гoц情女王★ 提交于 2019-12-16 00:41:36
env $ cat /proc/version Linux version 4.19.0-6-amd64 (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.67-2+deb10u1 (2019-09-20) /etc/apt/sources.list bak # # deb cdrom:[Debian GNU/Linux 10.2.0 _Buster_ - Official amd64 DVD Binary-1 20191116-09:57]/ buster contrib main deb cdrom:[Debian GNU/Linux 10.2.0 _Buster_ - Official amd64 DVD Binary-1 20191116-09:57]/ buster contrib main # Line commented out by installer because it failed to verify: #deb http://security.debian.org/debian-security buster/updates main contrib # Line commented out by installer because

what is oradiag_<user> folder?

坚强是说给别人听的谎言 提交于 2019-12-14 04:16:16
问题 I see these in the my Linux folder hierarchy after installing the Zend Framework. /oradiag_root/ /user/myuser/oradiag_myuser/ /user/myuser/oradiag_root/ This name reminds me of Oracle. But I did not find any official documentation about this. I didn't install any Oracle server. What's going on here? 回答1: I never installed Oracle on my system and don't know why these directories kept being created, but I finally managed to stop them from reappearing. Here's how it's done. First, head over to:

Debian mod_wsgi : No module named 'psycopg2._psycopg'

亡梦爱人 提交于 2019-12-14 03:54:10
问题 I am struggling in making Django run with mod_wsgi. I tried to follow recommendations here but it did not work. The server is a Debian : $ lsb_release -da No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 8.3 (jessie) Release: 8.3 Codename: jessie Python 3.5.1 has been installed with --ensable-shared. The virtualenv venv uses this Python because of the following in the user .bash_profile : LD_LIBRARY_PATH=/usr/local/lib VIRTUALENVWRAPPER_PYTHON=/usr/local/bin

Trouble with header file

别来无恙 提交于 2019-12-14 03:13:34
问题 I got the following error on compiling a c code I wrote. I understand that the problem is in the header file. Can anyone please tell me which all header files are needed to define these functions. sign.c: In function ‘main’: sign.c:78: warning: assignment makes pointer from integer without a cast /tmp/ccnsSeHy.o: In function `sign_data_evp': sign.c:(.text+0x68): undefined reference to `check_ssl_rv' sign.c:(.text+0xd5): undefined reference to `check_ssl_rv' sign.c:(.text+0x13e): undefined

java.security.AccessControlException: access denied (java.io.FilePermission /usr/share/java/jsp-api-2.0.jar read)

蓝咒 提交于 2019-12-14 01:04:47
问题 I am trying to deploy me application to Tomcat 5.5 on Debian Lenny. I am getting the following exception: java.security.AccessControlException: access denied (java.io.FilePermission /usr/share/java/jsp-api-2.0.jar read) I'm not sure what to do. Solution Add the following line to /etc/tomcat5.5/policy.d/04webapps.policy: grant codeBase "file:/var/lib/tomcat5.5/webapps/mywebapp/-" { permission java.security.AllPermission; }; 回答1: I smells like an SecurityManager. It is a message from the Java

Installing Remastersys on Debian

不打扰是莪最后的温柔 提交于 2019-12-13 23:46:23
问题 I've been trying to install Remastersys on my OS and haven't been able to. I've tried using the terminal using the following commands: wget -O- http://www.remastersys.com/debian/remastersys.gpg.key | apt-key add - This one gives this error: gpg: no valid OpenPGP data found I also tried with: sudo apt-get install remastersys which says that that package hasn't been located Finally, I downloaded a deb package from internet, but I haven't been able to open it. Is there any other possible way I