Java: System.getProperty("user.home") returns "?"

I'm completely lost on this one: System.getProperty("user.home") and System.getProperty("user.name") returns a questionmark "?". System-Specs: Kubuntu 9.04 Gnome 2.2.61 Java 1.5.0_16 My testcase...

FFmpeg saving rtmp live stream cuts off after 3 minutes

I was playing with ffmpeg and was able to save a live stream to a file. The command to do so is: ffmpeg -re -i "rtmp://<ip addr>/livestream live=1" -f h264 test.flv However, I have tested this...

org.gnome.SessionManager in Ubuntu 12.04 chroot

I'm trying to test totem in a minimal chroot (host and chroot both ubuntu 12.04 amd64). When I load a video, I get the error ** (totem:25660): WARNING **: Problem inhibiting the screensaver:...

Error when installing Ruby on Rails: "Failed to build gem native extension"

I'm running Crunchbang 11 (Debian-based). I'm trying to install Ruby on Rails, like this: gem install rails --version 4.0.0 I get the error "Failed to build gem native extension". My ruby is...

syntax error near unexpected token `fi' while checking no of arguments passed

I am new to shell scripting and created a script to check arguments are passed or not using if else condition . But it is always giving a error 'syntax error near unexpected token `fi' ' is it...

Emacs ansi-term as a login shell

I am using Emacs Live. How can I configure emacs ansi-term to allow login shell? When I try to switch rvm gemsets I get the following message: RVM is not a function, selecting rubies with 'rvm use...

Running notify-send as root

I am trying to get a notification when pluging in a USB device, for this I use a udev rule to track the moment it is pluged and from there I launch a script. The idea on the script was to use what...

debian jessie unable to install modules and perform upgrade

When I am trying to upgrade the system I am getting following error.I am new to debian and have been trying to install some modules dependent on python. But it seems I cannot install any of them...

Execute multiple commands sequentially in terminal using shell script

I would like to do the following: Open a terminal. Change to the directory where target script resides. Open the text file which provides the input to the target script. Hold/wait until the user...

Vim colorschemes not working in GNU Screen even after setting .bashrc & .screenrc

I set my .screenrc and .bashrc files to the following answer here: https://stackoverflow.com/questions/6787734/strange-behavior-of-vim-color-inside-screen-with-256-colors But the colorschemes...

Open new gnome-terminal and run command

I'm trying to write a script that opens a new terminal then runs a separate python script from that terminal. I've tried: os.system("gnome-terminal 'python f.py'") and p =...

can't see terminal or anything other thing than aws ec2 vncserver

I followed this guide to setup GUI for ec2 aws instance: https://youtu.be/9BAoJ7JZHr0 sudo apt-get install ubuntu-desktop vnc4server gnome-panel gnome-settings-daemon metacity nautilus...

Tensorflow can't use GPU. tf.test.is_gpu_available() show GPU but cannot use

I have Ubuntu 18.04. Python 3.7.3, Tensorflow 2.0.0 here's my cuda version: nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2017 NVIDIA Corporation Built on...

Using dbus to poweroff Raspberry Pi inside docker container and python

I'm using BalenaOS and building a docker container with some python that senses when a button is pressed and then is supposed to send this command: dbus-send --system \ --print-reply=literal...

Whey the applications running in VNC shows up in host instead of in client?

When I connect to the vnc server with vncviewer, I get a stranger thing: I can see the desktop of gnome or xfce4 and their menus, every GUI application I launch doesn't show up. At first I...

Kivy garden mapview deploying error with Buildozer

I am using kivy.garden.mapview for my application. Everything works properly, but problems arise when I try to deploy the application to Android with Buildozer. I set "garden_requirements =...

Kivy to Android apk using Buildozer on Ubuntu not work

I try to build my APK file for Android using Buildozer 1.2.1.dev0 on Ubuntu 19.04, but I get this error: Build failed: Requested API target 27 is not available, install it with the SDK android...

How to get steam to run on Ubuntu 20.04

Steam won't run =( Here's what I've tried: I have a fresh install of Ubuntu 20.04 (via Ubuntu Server Live Installer + ubuntu-desktop package) with nvidia drivers: $ nvidia-smi Mon Jun 22 10:26:49...

Tensorflow build from source error ValueError: invalid literal for int() with base 10: '' during cuda path configuration?

I'm on ubuntu 20.04 with cuda 10.1 and cudnn 7.6.5-32 and I'm trying to build from source tensorflow 2.3 but I keep getting a value error while using ./configure? Please specify the CUDA SDK...

Tensorflow 2.0 utilize all CPU cores 100%

My Tensorflow model makes heavy use of data preprocessing that should be done on the CPU to leave the GPU open for training. top - 09:57:54 up 16:23, 1 user, load average: 3,67, 1,57,...

Could not load dynamic library 'libcublas.so.10'; dlerror: libcublas.so.10: cannot open shared object file: No such file or directory;

When I try to run a python script , which uses tensorflow, it shows following error ... 2020-10-04 16:01:44.994797: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully...

Tensorflow stuck after "Created TensorFlow device"

I'm working on Ubuntu 18.04 with tensorflow==2.2. I've installed cuda 10.1. My GPU is detected but the program seems to be stucked after "Created TensorFlow device" or at least takes 2-3 minutes...

flutter: Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

I'm working with flutter in ubuntu 18.04. I can't run my project although flutter doctor is no problem. I stuck in the problem of Gradle daemon. I have tried the method in gradle user guide and...

Why virtualbox fails to install on Ubuntu20.04

I am trying to install virtualbox. I had it installed previously and it worked. Today I tried to add another virtual machine and it started complaining about problems with dkms so I tried to purge...

"Could not load dynamic library 'libcudnn.so.8'" when running tensorflow on ubuntu 20.04

Note: there are many similar questions but for different versions of ubuntu and somewhat different specific libraries. I have not been able to figure out what combination of symbolic links,...

sh.CommandNotFound: ./compile.sh Buildozer and KivyMD error

OS: (VM) Ubuntu 20.04.2 Python3 : 3.8.5 I've been trying to compile a an application I created using the following modules: kivy,kivymd,pafy,vlc,sys, threading,time. And also a local custom module...

Android build failing during soong bootsrap -- uses all resources and hangs

I'm building AOSP11 and building on Ubuntu 18.04 and early in the build process I get the following error: soong bootstrap failed with: exit status 1 It fails during this...

RTX3060 cannot run Pytorch Yolov4 with cuda11.4

Before I am using RTX2070 SUPER to run Pytorch Yolov4 and now my PC is changed to use RTX3060, ASUS KO GeForce RTX™ 3060 OC. I have deleted the existing cuda11.2 and install again with cuda11.4...

The pgAdmin 4 server could not be contacted in Linux Mint 20.2

Folks i just installed pgAdmin 4 from here. But when i launch the application, it crashed, throwing me the following me error: The pgAdmin 4 server could not be contacted: pgAdmin Runtime...

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway

I try to use library cv2 for changing picture. In mode debug I found out that problem in function cv2.namedWindow: def run(self): name_of_window = 'Test_version' image_cv2 =...