Home/End keys in zsh don't work with putty

I'm running zsh as the default shell on a Ubuntu box, and everything works fine using gnome-terminal (which as far as I know emulates xterm). When I login from a windows box via ssh and putty...

Change the background color in Gnome terminal through a command?

I'm using Gnome terminal and I want to change the background color or the profile through a command so I can group some commands in an alias to visually differentiate my windows when I run certain...

When do I need to call mainloop in a Tkinter application?

Every tkinter tutorial I have seen claims that tkinter.mainloop must be called for windows to be drawn and events to be processed, and they always call this function, even in hello world programs....

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...

How to specify geometry (e.g. 1280x720) for a new browser window?

Ubuntu Studio Linux 14.04.1 LTS From a Linux shell script, I'd like to launch a browser window of an exact size, e.g. as a step for automatically recording a screencast. My first thought was to...

Running jar with Processbuilder doesn't work properly

I have the following code: ProcessBuilder pb = new ProcessBuilder( "java", "-jar", "test.jar", Integer.toString( jobId ), Integer.toString( software ), Integer.toString( entryPoint ), application...

Properly Removing .deb Files

I installed LibreOffice on a server with a shell script using the following sudo -S dpkg -r LibreOffice_5.1.1.3_Linux_x86-64_deb/DEBS/*.deb Now I would like to change to a different version and...

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...

Gnome Shell extensions not loading, no error message available

I have two gnome-shell extensions that don't appear to be loading after upgrading to 3.24. In gnome-tweak-tool they have a warning sign icon with "Error loading extension", and nothing else. I...

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...

Run Python Script through Shell Script by Double Click

I have a runGUI.sh script and I want to run a Python script through it. The Python Script is a GUI.py that I want to make it run as an App, by either double clicking the Shell script or the Python...

Docs for developing gnome shell extensions

I need to know when inFullscreen of monitor object is set to true, I wanna make sure it's not set to true when window is maximized. I can't find any docs for imports.ui.main nor any imports.ui.*....

lower_case_table_names=1 on Ubuntu 18.04 doesn't let mysql to start

I have installed mysql community server 8.013 on ubuntu 18.04 and I have the following issue. I want to set lower_case_table_names=1 in order to have case insensitive table names in my db. I...

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...

Unable to use GNOME shell extension after installing chrome-gnome-shell

I followed the tutorial here to install all the necessary packages to use gnome extensions on Firefox, Ubuntu 18.04. However, when I opened the website, it returned an error Although GNOME Shell...

How do I remap the default CTRL+f (find) in Visual Studio Code such that I can use CTRL+f as is typical in unix/linux?

In Visual Studio Code, Ctrl+f activates the Find widget. I use vscode on Windows 10 (ssh into 'nix) and separately on the Ubuntu 18.04 Linux distro (w/Gnome Shell), when using the integrated...

GNOME Shell integration extension is running, native host connector is not detected?

I have followed these steps while installing the gnome extension of chromium in Ubuntu 20.04. Installed the GNOME Shell integration extension on chromium. As per their documentation ran a...

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 =...

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...

ruby: /usr/lib/x86_64-linux-gnu/libcrypt.so.1: version `XCRYPT_2.0` not found (required by ...)

I'm trying to edit a ruby file in my spacemacs editor. When I open the ruby file I get this debugging information: [rbenv] Using the currently activated ruby. evil-line-move: End of...

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,...

ffmpeg takes too long to start

I have this command in python script, in a loop: ffmpeg -i somefile.mp4 -ss 00:03:12 -t 00:00:35 piece.mp4 -loglevel error -stats It cuts out pieces of input file (-i). Input filename, as well...

"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,...

Cannot move or resize Anaconda Navigator window

Are there any way out to have a maximize button on the Anaconda Navigator window? I have installed Anaconda in Ubuntu & created a custom launcher using this tutorial...

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...

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...

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 =...