Ubuntu Questions on U&L

 Ask Ubuntu General Room

Normally: General discussion around Ask Ubuntu, Ubuntu & offic...
Oct 10, 2020 17:00
0
Q: awk to do a sum of numbers from a .txt

blueStarhere is an example of the lines of the text file alternatives.log 13156 alternatives.log.1 3688 alternatives.log.2.gz 470 alternatives.log.3.gz 380 alternatives.log.4.gz 368 alternatives.log.5.gz 724 i want to know how can i use awk to sum the numbers of all the line (i have more than 5 lines) i ...

Oct 10, 2020 15:19
0
Q: Superimpose multiple images

ArzybekI have multiple pictures that are look alike, they're all black and differ only in the one dot of the screen, I want to combine them in one picture so I can see all the dots in one picture. How can I do this using something like ImageMagic? I don't want to use something with gui bc there are a lo...

Oct 10, 2020 11:34
0
Q: Compare all Values from a column with a string

yungerI have the next txt file: ----------------------------- CPU(%) SWAP Memory(%) ----------------------------- 181.2 0kB 0.4 12.5 0kB 0.4 0.0 0kB 0.4 0.0 0kB 0.4 0.0 0kB 0.4 0.0 0kB ...

Oct 10, 2020 10:19
0
Q: Show cpu and memory utilisation of process visually

yungerI'm writing a script to monitor CPU and MEMORY utilization during a stability test that will run 24 hours, in the end, I want to present it in a graph or another visual tool. To do so I collect CPU/memory usage every 5 minutes the data file look like this: ----------------------------- CPU(%)...

Oct 10, 2020 09:54
0
Q: How to store usage and memory percentage that are shown after login in AWS EC2

nokanec2 stats when we ssh into our instance we can see these stats displaying. Is there any way to get the same percentage stats with a terminal command?

Oct 10, 2020 07:24
0
Q: Why not able to install ubuntu 20.04 desktop amd64 to usb flash?

turkishtunesKeep getting error message: no root filesystem defined. It's a new usb, formatted, partitioned. "Install ubuntu" is on my desktop as I use ubuntu-live from a dvd, and I click on it to install ubuntu. I get to the screen to decide where to install and I choose "sda" and "16gb usb". The partition t...

Oct 9, 2020 23:05
0
Q: How to dynamically launch a screen session, open a gnome terminal and then run a script in that terminal?

mugetsucurrently I have the following gnome-terminal --window -e /tmp/script1 --tab -e /tmp/script2 --tab -e /tmp/script3 this allows me to open a gnome-terminal window with multiple tabs, each running different scripts. However, my issue is that my scripts uses SSH and I'd like to use screen to deal w...

Oct 9, 2020 21:23
0
Q: Which linux system should i use for cuda on acer predator helios 300?

ZEROI am using Predator helios 300 (1660 Ti) and work with CUDA and other deep learning libraries.So wanted to know which linux is most suitable for working in this setting. I specially want a linux that supports CUDA. I tried working with ubuntu 18 but failed because ubuntu turns on both graphic car...

Oct 9, 2020 19:42
0
Q: Install OpenWRT firmware for WD MyNet600 Router using Ubuntu 20.04

sifarI am trying to install the latest OpenWRT firmware openwrt-19.07.4-ar71xx-generic-mynet-n600-squashfs-factory.bin on my old WD MYNET600 Router whose current firmware version is Firmware Version 1.04.16. I am on Ubuntu 20.04 and have connected the LAN cable to the Router on the LAN port. The Date ...

Oct 9, 2020 16:44
0
Q: Frequent freezes and reboots on Lenovo Legion 5i RTX2060

knarewskiI bought a brand new laptop and tried installing Ubuntu 20.04 on it (via bootable usb), however I experience frequent issues which render the system unusable, ie: everything freezes (including mouse cursor, ctrl+alt+f1 combination doesn't work), followed by reboot after about 10s laptop suddenly...

Oct 9, 2020 15:03
0
Q: mounting a raspbian image - can't find a guide that works

TedTrippinI'm on windows 10 running a virtual linux (Ubuntu 18.04.2 LTS running in Oravle VM VirtualBox) and I'm trying to mount a raspbian image. I've tried various posts mentioning plain old mount and kpartx with no success. The simplest approach seems to use losetup but that not working either... $ sudo...

Oct 9, 2020 11:15
0
Q: Ubuntu shows ethernet is connected but takes very long time for internet to start working

Mr SquidrI am using Ubuntu 18.04.5 LTS version of Ubuntu. When connecting to ethernet it usually takes about 10-15 minutes for internet connection to work even tho the arrows show the ethernet is connected as soon as I boot up. This issue is not present on same machine and same ethernet when using Windows...

Oct 9, 2020 05:20
0
Q: I just installed python3.9 but whenever i install a package using pip and go to the pycharm and write import (package) it shows ModuleNotFoundError

The ProgramminG DudEI just installed python3.9 but whenever i install a package using pip and go to the pycharm and write import (package) it shows ModuleNotFoundError.so then i saw the path of pip and saw there were three paths. one of python3.8.2 other one of python3.8.5 and the other one of python3.9.0 I removed ...

Oct 8, 2020 23:25
0
Q: Process fails to get restarted by systemd service

mohit singhI have written a systemd service for my python app. The script is installed in /etc/systemd/system on Ubuntu 18.04and has been enabled and started. I want the app to always be restarted after a set time interval whenever it exits/stops/killed/crashed or when the device reboots. The service shoul...

Oct 8, 2020 22:07
0
Q: "Could not chdir to home directory /home/spinner: No such file or directory" What do i do?

SpinnerTrying to setup my own vpn. While trying to configurate SHH and entering: ssh-copy-id user@ip-adress and enter my password i get: Could not chdir to home directory /home/user: No such file or directory sh: 1: cd: can't cd to /home/user mkdir: cannot create directory '.ssh': Permission denied

Oct 8, 2020 21:41
0
Q: Headphone jack not reliably detecting on Ubuntu 20.04

Matthew MillerThe issue that I'm having is that headphones plugged into the 3.5mm jack on the front of my desktop computer are not always detected. I'm running Ubuntu 20.04 on a custom built computer with a B450 Tomahawk motherboard. I'm certain that the issue is with Ubuntu 20.04 because the issue was not occ...

Oct 8, 2020 21:16
0
Q: Connect to ethernet via terminal without ifconfig / others

JasperEditsMy NVidia Drivers are broken, I can't boot up my Zorin OS (ubuntu 18.04) system, so I entered recovery mode, and purged the drivers using apt-get. But when trying to install another version (450) I see that I have no internet connection. I can't use net-tools, I don't have them installed, and I a...

Oct 8, 2020 20:25
0
Q: BASH_ENV being ignored in AWS Ubuntu 20.04 crontab

arturompWith both SHELL=/bin/bash` BASH_ENV=/home/ubuntu/.bashrc` set on AWS Ubuntu 20.04.1 LTS crontab, .bashrc isn't sourced. I've made sure with ps -p $$ that SHELL=/bin/bash is actually running bash instead of what would be sh. I also made sure that BASH_ENV is properly set by running echo $BASH_EN...

Oct 8, 2020 18:18
0
Q: How does netstat find ESTABLISHED connections

Stefan VahlgrenIf I perform a TCP based call (for example a HTTP call), the first thing that happens is that the 3 step tcp handshake is made. If I then use netstat like below, it shows me that there is a TCP connection with state ESTABLISHED: netstat -an | grep ESTAB Proto Recv-Q Send-Q Local Address F...

Oct 8, 2020 11:07
0
Q: Can Ubuntu swap between tethered internet and ethernet automatically?

guestI have an unstable internet connection tethered by my mobile. In my home, I have ability to use slower ethernet. Is it possible to make my internet connnection to work like it tries to connect to my tethered internet if that is available and if not, it uses ethernet? I found that it is not by def...

Oct 8, 2020 09:25
0
Q: Grep from occurence to first other occurence

Aurèle PetitIt's my first question here ! I've tried many grep, still not found what I wanted ... So, here we are. I have many many files that contain things like this : {"group":{"name":"Subdivision01","id":"94827-20934-23085"}manytext {"group":{"name":"Department28","id":"11672-23517-87241"}manytext {"...

Oct 8, 2020 09:25
0
Q: Issue with trimming mp3 files

αԋɱҽԃ αмєяιcαηI do have around 200 mp3 files. there's an example of one mp3 file here I would like to remove the iPhone notification sound. which is in the start of each mp3 file. i tried the following command but failed to achieve it: ffmpeg -ss 00:00:01.7 -i *.mp3 -y i understood that -i will rewrite the f...

Oct 7, 2020 16:52
0
Q: /var/log/wtmp non volatile storage

TitoI have a question regarding something what i consider unusual behavior related to the logging file /var/log/wtmp There is a server which had Ubuntu 14.04.5 LTS minimal server installed and running for a while. At some point in time, it was decided to reinstall the base OS and change that to CentO...

Oct 7, 2020 16:01
0
Q: Ubuntu 20.04 — build/update-linux-sandbox.sh, no such file or directory?

Sage WeasleyI used google-chrome name.pdf to open my file in Chrome, but it output an error message as below: 1007/010233.322709:ERROR:nacl_helper_linux.cc(308)] NaCl helper process running without a sandbox! Most likely you need to configure your SUID sandbox correctly Although the browser did open my file,...

Oct 7, 2020 14:20
0
Q: Installing a Dual boot on MSI Motherboard with GPT disk

Eoin HananI am attempting to install a dualboot (Ubuntu on top of Windows 10) to a PC I have just built myself. I have no problem installing Ubuntu, its just I am unable to setup my computer to boot into it afterwards. During the instalation I am told that the GRUB does not install properly and I also hit ...

Oct 7, 2020 09:15
0
Q: Ubuntu 18.04 LTS-like nautilus “breadcrumb” adress bar in Ubuntu 20.04.1 LTS

JaimeIn Ubuntu 20.04.1 LTS, the GNOME (3.36.3) nautilus "breadcrumb" address bar looks like this. In this directory (i.e. at /usr/local/), in Ubuntu 18.04 LTS (GNOME version probably 3.26) it was possible to click in the e.g. "usr" tab and show the contents of /usr/, WHILE STILL SHOWING the "local" ta...

Oct 6, 2020 19:19
0
Q: How can I create a “CLI Kiosk” before login?

SlykeI have a bash script that runs screen that displays various things like htop and some output from a MQTT server. I currently have no GUI installed and this runs on the command line on Ubuntu Server. I also have to login manually on each startup and run the script. Is it possible to create a user ...

Oct 6, 2020 19:19
0
Q: Errors in packages after signing kernel modules

WestMDI'm running Ubuntu 20.04.1 LTS and installed Virtualbox Version 6.1.14 r140239 (Qt5.12.8) I've tried to create a VM and got the following error: Kernel driver not installed (rc=-1908) The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again ...

Oct 6, 2020 17:38
0
Q: Script called by another system doesn't run correctly

DasPeteI am trying to write some scripts for graceful shutdowns from my UPS. My UPS is hooked up to my freenas system. I also have a KVM server running KVM on Ubuntu 18.04, and that is where I'm having some issues. I have the following script on my freenas to call the shutdown script on my KVM server: s...

Oct 6, 2020 17:38
0
Q: How can I fix the boot or retrieve the information from VirtualBox?

Heber46Trying to expand the virtual storage capacity, from ubuntu with the "parted" command, the GRUB got damaged, and the partition where I have the cloud service does not recognize it. I tried to repair it from a Live USB, but it doesn't work. I even entered a command and removed everything from GRUB,...

Oct 6, 2020 17:12
0
Q: manjaro not showing desktop files

CharlesI have manjaro 20.1.1 installed alongside ubuntu 20.04. They share the same home partition. There is a Desktop directory and Ubuntu has no problem recognizing it and showing the files inside it on the desktop. But Manjaro doesn't. In Manjaro, there is nothing on the desktop and when I right click...

Oct 6, 2020 16:47
0
Q: GRUB exhibiting strange behavior after upgrade to ubuntu 20.4

Hououin KyomaI have a dual-boot system with windows 10 and ubuntu 18.04. I recently upgraded to ubuntu 20.4 and my grub menu has started to exhibit strange behavior. When the upgrade was complete and I restarted the system, everything went fine. I booted into linux did some stuff and then shut down the system...

Oct 6, 2020 16:21
0
Q: Not sure what I'm doing wrong here, trying to be able to use both TCP and UDP for OPENVPN

TimeShadow RiderI dont know what I'm doing wrong but I need to have the TCP port 1195 also open for the VPN but it just says tcp dpt:1195 instead of udp dpt:openvpn and gives and error message explicit-exit-notify can only be used with -proto udp ACCEPT tcp -- anywhere anywhere tcp dpt:1195 /* Allow VPN connecti...

Oct 6, 2020 09:08
0
Q: Unable to boot my laptop, After unlocking the screen goes black just the cursor remains

Anonymous ChatboxI am unable to boot my laptop as I put in my password after some loading my screen goes blank and just the cursor remains. This is my GRUB screen:-

Oct 6, 2020 04:04
0
Q: Node Version Management in Production on Ubuntu 20.04 NGINX several sites

GabrielI have several sites/apps on the same Ubuntu 20.04 server with NGINX server blocks. The NodeJS apps are using different versions on NodeJS. How shall I install node and configure NVM (or volta/nvs) in production to switch node versions and use different node versions simultaneously for respective...

Oct 6, 2020 03:13
0
Q: Get total size of file in current directory (not include size of subdirectory)

Loc NguyenI'm a newbie in Linux and English is not my primary language. I have folder structure (example): /folder1/file1.zip (1GB) /folder1/file2.zip (1GB) /folder1/subfolder/file3.zip (1GB) /folder1/subfolder/file4.zip (1GB) I tried "tree -dh /folder1" command, got 4K (size) each folder. I...

Oct 5, 2020 22:59
0
Q: ulimit Settings Unable to be Increased on Ubuntu 16.04

NyxynyxIn order to try to increase the ulimit -n values to larger ones on a Ubuntu 16.04 system, I have made the following changes: Edited /etc/security/limits.conf to include * hard nofile 50000 * soft nofile 50000 Edited /etc/pam.d/common-sessio...

Oct 5, 2020 20:52
0
Q: Tor Browser quits immediately; can't upgrade

l0b0I tried to run Tor Browser, installed from the Ubuntu 20.04 official repository. First the browser just wouldn't start: $ torbrowser-launcher Tor Browser Launcher By Micah Lee, licensed under MIT version 0.3.2 https://github.com/micahflee/torbrowser-launcher Your version of Tor Browser is out-of...

Oct 5, 2020 17:29
0
Q: Open display linux with VcXsrv Windows X Server in windows

Eduardo FreitasI've have been trouble with the instalation of my linux subsystem on windowns 10. I prepared my wsl2 environment and downloaded ubuntu 20.04 and VcXsrv Windows X Server in windows, but when I tried configure the display localhost nothing happened, and I do not know why. Thus I have my linux subsy...

Oct 5, 2020 15:47
0
Q: Ubuntu fails to boot after possible failed update

ItsmybirthdaybuticantbootmyosI run a dual boot of newest Ubuntu 20.04 Focal Fossa and Windows 10. After an ubuntu update that required a restart, the pc didn't respond for 2 hours, so I shut it down by pressing the power button. I tried various things recommended in that situation, but none of them seem to be working. After ...

Oct 5, 2020 14:31
0
Q: How to reset admin password for remote VM running Ubuntu

SosolalaI have a VM running Ubuntu 18, on which I have both a normal user account and an admin account. Now I lost the password for the admin account and can’t update or install new software anymore. The VM is hosted in our facilities internal network. The VM can be accessed via ssh only, no GUI is insta...

Oct 5, 2020 09:27
0
Q: WiFi suddenly stopped working on Ubuntu 18

TargonMy Situation is exactly equal to OP's from this question (except for the exact hardware configuration; I can add some more details if needed). In particular, the output to sudo dmesg |grep iwl is practically the same, i.e. [ 3.252011] iwlwifi 0000:00:14.3: loaded firmware version 34.312581198...

Oct 5, 2020 08:36
0
Q: Ubuntu unsupported resolution on external monitor

NoLoopI am trying to get my laptop hooked up to my external monitor (21:9 3440x1440@60hz). for some reason, I can get the screen to work at the native resolution. if I set: Modeline "3440x1440_60.00" 419.50 3440 3696 4064 4688 1440 1443 1453 1493 -hsync +vsync I have an error. screen 0: 5360x1440 1...

Oct 5, 2020 06:30
0
Q: Mic not recognized Ubuntu 20.04 [Lenovo Extreme X1 Gen 3]

lavistamI have a new laptop and my mic isnt recoginzed by ubuntu (18.04 or 20.04) $ uname -r 5.4.66-050466-generic I've been playing with settings to try to get: snd_hda_intel to work, and then got lost trying to replace it with sof-firmware per: https://askubuntu.com/questions/1203799/internal-microphon...

Oct 5, 2020 00:35
0
Q: How to setup proxy for Linux app

Nikita AbramovI'm using Ubuntu, I'd like to set proxy for Telegram. I know about /etc/environment and export https_proxy way to set proxy but that not working, telegram seeing my real ip. How to do that?

Oct 4, 2020 20:46
0
Q: HDD or SSD for linux

lucasIn my pc i have 1tb HDD in gpt format with windows and i want to install linux, but i have not too much space. i plan to buy and ssd m2 to use with the hdd, is that okay? Should i use the ssd for windows only? the ssd would be a 500gb, and i would keep windows. What do you recommend to me? or ano...

Oct 4, 2020 20:21
0
Q: Cannot insert special Polish characters using alt gr

aqumI have a problem with inserting Polish characters using left Alt or right Alt Gr with internal keyboard of HP 250 G5. On external keyboard everything works fine. I have Polish layout set in options. Weird thing is when alt is pressed overlay with "disabled" icon is visible. I'm using Linux Mint 1...

Oct 4, 2020 15:17
0
Q: How to create a shell script with the systemctl

JonasI've been trying to create a script but it doesn't work out, if you can help me ... I'm doing a script on the systemctl command that should ask you to write the name of a service, and then show you the status of that service. If the service does not exist, it should show you an error message sayi...

Oct 4, 2020 13:35
0
Q: Winbind uses multiple ports and accesses multiple machines

StanI have winbindd as a method of connecting my ubuntu to the DC in the network. When I look at the processes and ports used I can see that my machine shows winbind as the process connecting to variable other machines on the network, while utilizing different ports, such as 3389, 22, 139, 445, 88, 4...

Oct 4, 2020 08:31
0
Q: Remove GRUB bootloader from EFI

CybranOn Ubuntu 20.04, I want to remove the EFI bootloader installed by the default GRUB. Basically, I'm searching for the inverse of grub-install, which does not leave any dysfunctional remains (files on EFI partition, NVRAM entry, etc.) behind. I don't want to uninstall GRUB packages I don't want to...