linux-mint

Qt Creator, ptrace: Operation not permitted. What is the permanent solution?

岁酱吖の 提交于 2019-12-18 10:03:33
问题 While debugging C++ code in Qt creator I get the following error ptrace: Operation not permitted. Could not attach to the process. Make sure no other debugger traces this process. Check the settings of /proc/sys/kernel/yama/ptrace_scope For more details, see /etc/sysctl.d/10-ptrace.conf Here a temporary solution is found: Receiving error while trying to debug in QtProject temporary solution (won't survive a reboot): echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope But it is difficult to

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

ぐ巨炮叔叔 提交于 2019-12-17 19:12:02
问题 I'm trying to execute a Python script, but I am getting the following error: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV) I'm using python 3.5.2 on a Linux Mint 18.1 Serena OS Can someone tell me why this happens, and how can I solve? 回答1: The SIGSEGV signal indicates a "segmentation violation" or a "segfault". More or less, this equates to a read or write of a memory address that's not mapped in the process. This indicates a bug in your program. In a Python program

Storing encrypted passwords

允我心安 提交于 2019-12-17 18:49:11
问题 My coworker and I are having a fist-fight civilized discussion over password security. Please help us resolve our differences. One of us takes the viewpoint that: Storing passwords encrypted using a public key in addition to a one-way hashed version is OK and might be useful for integration with other authentication systems in the future in case of a merger or acquisition. Only the CEO/CTO would have access to the private key, and it would only be used when necessary. Regular login validation

RubyGem Native Extension - can't find ntohl() in -lsocket

喜你入骨 提交于 2019-12-13 04:58:38
问题 Here's a question where Google hasn't been very helpful thus far: I'm installing a RubyGem on Linux Mint that uses native extension, so it's trying to compile them on my machine. As often happens, it returns an error stating that it doesn't have all the tools on the machine necessary to build the extension: Building native extensions. This could take a while... ERROR: Error installing sas-helper: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb checking for expat.h..

“PANIC: Could not open” while trying to run Android emulator on Linux Mint

喜夏-厌秋 提交于 2019-12-13 04:03:52
问题 I installed Eclipse Kepler and the Android development tools. Everything is working fine, except for when I try to run my Android code in an emulator I get the following error: Emulator] PANIC: Could not open: [name of Android virtual device] I Googled the problem but I have not found a solution. It might have to do with the Android path or perhaps authorizations, but I do not know where I have to change them to. I hope someone can help me out. 回答1: This has been asked a few times already,

Android Studio Waiting for Target Device to Come Online Linux Mint 18

泪湿孤枕 提交于 2019-12-12 06:09:15
问题 I'm running android studio on linux mint cinnamon 18, when running the app the emulator opens up and works but the app won't open and android studio keeps saying waiting for target device to come online until it times out, any one know how to get the app running on the avd? I can get it working on my actual device, Any and all help appreciated! 回答1: I found the solution, android-studio was using api 25 and i was running api 24, so when running the emulator it would only search for 24 (the api

Error while compiling linux kernel on Linux mint 17

核能气质少年 提交于 2019-12-11 22:36:04
问题 I have the following error while trying to compile kernel Linux on Linux mint cinnamon 64bit linux-3.17.1 # make modules_install INSTALL arch/x86/crypto/aes-x86_64.ko Can't read private key make[1]: *** [arch/x86/crypto/aes-x86_64.ko] Error 2 make: *** [_modinst_] Error 2 This command (#make modules) had been done successfully without any errors. gcc, build-essentials and g++ are installed. The system is running on virtual machine 4 cores + 3 GB of ram + 40GB freespace. 回答1: I encountered the

MySQL connection in GUI via two ssh connections on Mint

怎甘沉沦 提交于 2019-12-11 16:59:26
问题 Apologies if this is in some way a duplicate - I couldn't find anything that covered this (at least in a way that I could understand made it similar). Here's a basic diagram of my connections: Laptop => SSH server 1 => SSH server 2 => MySQL (MariaDB) I can use terminal to jump across to server 2 as per the usual methods: ssh -t user@server1 ssh -p99 user@server2 Then, in the terminal, I can mysql -uroot -p as normal. (connections amended to remove details, of course) I have attempted a few

How to start IDLE that comes with Python 3.6

不羁岁月 提交于 2019-12-11 06:27:12
问题 I am using LinuxMint 18.I installed python 3.5 and 3.6 using apt-get in terminal. I can open IDLE of python 2.7 and 3.5 using commands idle and idle3 respectively. Anyone knows how to access IDLE that comes with python 3.6? 回答1: Try the command idle3.6 . python3 and idle3 are still associated with your system Python, which is 3.5. 回答2: Simply typing in idle3.6 should work just like carusot42 mentioned. If it doesn't work, perhaps you might want to see if everything else is installed correctly

problems installing M2Crypto on Mint

谁说我不能喝 提交于 2019-12-11 04:19:28
问题 I am trying to install M2Crypto for python on Mint 12. I have executed `python setup.py build, but the build fails, stating error: command 'gcc' failed with exit status 1 the preceding 2 lines show that there may be a problem with Python.h: SWIG/_m2crypto_wrap.c:126:20: fatal error: Python.h: No such file or directory compilation terminated If anyone knows what needs to be done to fix this, please let me know. EDIT I have attempted to install python-dev , but I get the following error: The