linux-mint

GPU Memory not freeing itself after CUDA script execution

流过昼夜 提交于 2019-12-11 03:58:37
问题 I am having an issue with my Graphics card retaining memory after the execution of a CUDA script (even with the use of cudaFree()). On boot the Total Used memory is about 128MB but after the script runs it runs out of memory mid execution. nvidia-sma: +------------------------------------------------------+ | NVIDIA-SMI 340.29 Driver Version: 340.29 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC

How to remove the HUGE padding for tabs and icons in Eclipse on Linux Mint 17.3 Xfce edition?

♀尐吖头ヾ 提交于 2019-12-11 00:18:27
问题 I've just installed Linux Mint 17.3 Xfce edition on a laptop and went on to install Eclipse Mars.2 after I have finished playing with colors everywhere. I've downloaded the gzipped tarball and extracted it in my home, started it, and got this bad surprise: I've already tried this but as you can see on the screenshot, it didn't work I've been searching and tinkering css files for now, in /usr/share/themes but haven't been successful (I'm not even sure which theme I'm using). 来源: https:/

Linux Log all the su to root messages

北城以北 提交于 2019-12-10 22:59:59
问题 I am learning how to use log files in Linux and now I am trying to configure a file called Mysu.log in /dev/log/ In this file I have to log all the su to root messages I have logged different types of services in the /etc/rsyslog.d/50-default.conf file but I don't understand how I can log these commands. If you have any solution how I could configure this root messages, please post. 来源: https://stackoverflow.com/questions/19681981/linux-log-all-the-su-to-root-messages

Error when running pocketsphinx_continuous: Acoustic model definition is not specified

好久不见. 提交于 2019-12-10 21:22:40
问题 When I run pocketsphinx_continuous -inmic yes , I get this error: ERROR: "acmod.c", line 85: Acoustic model definition is not specified neither with -mdef option nor with -hmm . I've already read the information in this StackOverflow question as well as the Pocketsphinx FAQ, and neither of those helped. Here's the full stack trace: INFO: cmd_ln.c(691): Parsing command line: pocketsphinx_continuous \ -inmic yes Current configuration: [NAME] [DEFLT] [VALUE] -adcdev -agc none none -agcthresh 2.0

A font doesn't appear in IntelliJ's dialog of choosing a font

可紊 提交于 2019-12-10 16:42:28
问题 I installed Monaco font using this code. However, it doesn't appear in Setting -> Editor -> Color and fonts -> Font . What should I do? 回答1: Try to install fonts in another way. Just use the Font Viewer. I use IDEA under ElementaryOS and it works for me. Update: 回答2: You need to create a folder monaco in directory /usr/share/fonts/truetype/ and copy the font 'monaco.ttf' into this folder. Then, run fc-cache -v -f 回答3: I had the similar problems recently. The reason IDEA could not find the

How to determine system value for _POSIX_PATH_MAX

亡梦爱人 提交于 2019-12-10 14:13:06
问题 Can anyone please tell me how to find the system value for _POSIX_PATH_MAX in Linux mint? I know that it is available in the <limits.h> file but I do not know how to find its value. 回答1: The tool to use, according to POSIX, is named getconf(1): $ getconf _POSIX_PATH_MAX 256 回答2: One more way to get it's value. #include "stdio.h" #include "unistd.h" #include "limits.h" int main() { printf ("Value :: %d \n", _POSIX_PATH_MAX); return 0; } 回答3: #define one of the following #define _POSIX_SOURCE

Desktop Launcher for Python Script Starts Program in Wrong Path

孤者浪人 提交于 2019-12-10 13:16:08
问题 I can not launch a python script from a .desktop launcher created on Linux Mint 17.1 Cinnamon. The problem is that the script will be launched in the wrong path - namely the home folder instead of the directory it is placed in. Thereby it can not find other vital files accompanying it in its folder and hence does not work. To examine that misbehaviour I created a short script to check the folder a python script is executing in: #!/usr/bin/env python import subprocess import time subprocess

Cannot open /dev/console

此生再无相见时 提交于 2019-12-10 05:24:44
问题 // console = fopen("con", "wt"); this worked under windows // console = fopen("/dev/console", "wt"); segmentation fault console = fopen("/dev/tty0", "wt"); returns zero Writing in C, using Mint Linux. I want to talk to the console regardless of redirection of stdin & stdout. 回答1: The /dev/console device is not necessarily available to you. For Linux that device would only show any result if you happen to look at the current virtual terminal. Also (including Linux), for most systems /dev

Docker installation on Linux Mint 19.2 doesn't work

 ̄綄美尐妖づ 提交于 2019-12-09 15:12:27
问题 Just got a fresh Linux mint 19.2 installed, i needed docker so i went to the docker doc and followed the process. https://docs.docker.com/install/linux/docker-ce/ubuntu/ everything went well until step 4 of the repository set up. on the 4 step it says "Malformed input, repository not added." I've changed "$(lsb_release -cs)" to "tina" and "tara" still doesn't work. the 4th step to set up the repository: sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb

OSError: [Errno 13] Permission denied: '/dev/ttyACM0' - using pyserial from Python to Arduino

眉间皱痕 提交于 2019-12-09 06:05:46
问题 Environment Linux Mint 17.1 Python 2.7 pyserial 2.7 Arduino UNO rv3 Desired Behaviour I'm trying to send three values from a Python application to Arduino. It works when doing the following from terminal: $ python $ import serial $ import struct $ ser = serial.Serial('/dev/ttyACM0', 9600) $ ser.write(struct.pack('>3B', 255, 0, 0)) Current Behaviour It doesn't work when using the same code in a Python file ie: import serial import struct ser = serial.Serial('/dev/ttyACM0', 9600) ser.write