Questions tagged [ubuntu]

Please don't use this tag just because your system is running Ubuntu. Use it _only_ if your question is somehow specific to Ubuntu only. Note that https://askubuntu.com is specifically dedicated to Ubuntu questions.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

How to read from syslog using systemd service

Does anyone know what the proper way is to create a systemd service and read from syslog write the logs out to the network? I had this in a service: tail -f /var/log/syslog | ...
1
vote
1answer
2k views

Compiled kernel 4.19 will not boot: “Kernel panic not syncing : System is deadlocked on memory”

I am compiling kernel 4.19 on Ubuntu 14.04 because I have a assignment to add a system call, but when I try to boot this kernel there's a error: Kernel panic - not syncing: System is deadlocked on ...
0
votes
3answers
10k views

sudo must be owned by uid 0 and have the setuid bit set

I have changed my ubuntu super password by recovery mode after that i can't run my sudo command in normal user i have attempted to crack my previous password in Recovery mode i followed this ...
2
votes
1answer
179 views

How do I apply several processes to the content of a text file using script but save the modified content in a new txt file?

I have an assignment saying "Using bash scripts and command line tools, implement the following functionality: Your created script should be run like this: and it should process *.txt files in that ...
-1
votes
0answers
19 views

Inputting password on Firefox is slow [on hold]

Whenever I have to input a password on Firefox ( I'm using UBUNTU 19 ) the inputs are delayed and it takes a great effort to input my password. I have no idea where to look. Has anyone else had the ...
-1
votes
0answers
14 views

Issue while logging ssl log from Ubuntu 18.04 apache/2.4.41

I want to log both succeed and failed TLS handshake from Ubuntu 18.04. My Apache version is 2.4.41 and openssl version is 1.1.1. I found this article that describes how to debug ssl problem so I setup ...
-1
votes
0answers
22 views

sudo stop working after i close my ssh connection

I have to connect to one server using ssh. let's call it UbuntuA. from that server I could access with ssh to UbuntuB. I made the config to connect to the server directly without password using the ...
0
votes
0answers
17 views

Ubuntu Server 19.04 systemd service for PixArk

I have created a systemd service for a PixArk server on my Ubuntu server that will keep the server running even if it crashes and allow for safe shutdown of the server when the system is restarted or ...
0
votes
2answers
1k views

How to checkpoint using CRIU on ubuntu 14?

I tried to install CRIU in ubuntu 14.04 Desktop. When I used $ sudo ./criu check , it showed Error (cr-check.c:268): fdinfo doesn't contain the mnt_id field And when I tried to checkpoint joomla ...
0
votes
1answer
57 views

Performance and security differences between Ubuntu and other linux distros

Assume I have a physical server with vanilla Ubuntu Server 18.04 LTS where I'll do some minimal configuration adjustments in iptables and /etc/ssh/sshd_config and only install docker. Using docker I'...
0
votes
0answers
67 views

Ubuntu 19.04 screen crashing often

I'm using Ubuntu 19.04. Whenever I try to switch on my laptop, sometimes screen crashes and system shutdown automatically. Below I attached screenshot. How to fix this?
1
vote
0answers
19 views

Read only filesystem after adding raid1 HDs

I have a 1TB HD on an ubuntu 18.04 server and wanted to add 2 6TB HDs in raid1. Now my filesystem is read-only on the 1TB HD, the other two drives are no longer showing up and most programs don't work ...
2
votes
3answers
45 views

Read text file and move only those files to another folder

I have a folder filled with 100 log files, some of them have data, some dont. I have a script that picks out the files with the data and have the names saved in a text file named "goodfiles.txt" I ...
0
votes
0answers
24 views

HP monitor gets Full HD in Windows, does not get Full HD with Ubuntu 18.10

I have a new HP 22es monitor which supports 1920x1080 (Full HD). When I plug it in to a laptop running Ubuntu 18.10 via VGA, it's in 1024x768 resolution. I got dual OS on my computer so I tried on ...
-2
votes
1answer
66 views

Install openssh-server 8.0p1 on Ubuntu 18.04.3 LTS

Ubuntu 18.04.3 LTS (bionic) have OpenSSH server version 7.6p1 but that release is 2 years old by now. On my local Arch Linux machine I'm running 8.0p1 but Ubuntu naturally have slower pace. The ...
0
votes
1answer
41 views

How to use HDD from ubuntu server on windows 10 VirtualBox?

My personal server's motherboard has died and the replacement is going to take a few weeks to arrive. In the meantime I have content on the hard drive I need access to so I have set up a VirtualBox on ...
170
votes
5answers
365k views

delete line in vi

How can I delete a line in VI? Here what I am doing right now: Open up the terminal alt + ctrl + t vi a.txt I move my cursor to the line which I wan to delete, then what key-combination is should ...
64
votes
7answers
248k views

Shell script fails: Syntax error: “(” unexpected

I've been working on a script that automates setting up a development environment for Raspberry Pi development (step by step details that work are here). The script is linked in that article but ...
0
votes
1answer
155 views

Sudden shutdowns on Ubuntu 18.04 Acer Laptop

I am running Ubuntu 18.04.2 on an Acer Laptop (F5-573G-52PJ). Randomly the system does a shutdown itself. In /var/log/syslog I see the events: May 15 11:24:53 top boltd[1176]: power: got event for ...
1
vote
2answers
80 views

cryptsetup resize returns device not active, despite cryptdisk status returning active and in use (resizing LVM-on-LUKS)

I am in the process of resizing LVM-on-LUKS, referring to these two posts as guides. I had done this once before smoothly, but I have run into a strange problem. When I run #cryptsetup -b 377523479 ...
0
votes
1answer
16 views

How to merge unallocated preceding partition using gparted or any other tool

I had windows 10 installed and I dual booted ubuntu 18.04 with it. Now I want to remove windows 10 and just keep ubuntu so i used gparted to remove windows 10 but now I can't resize /dev/sda3 or /dev/...
0
votes
1answer
65 views

broken Ubuntu after failed release-upgrade

I recently attempted a do-release-upgrade, which unfortunately was interrupted during the process (it is a remote machine, that I can only access through ssh), and I now encounter many broken ...
0
votes
0answers
24 views

Xmobar, icons and background not showing when launching from xmobar

I have made a little program which allows me to turn off, log out, etc with the mouse. It is a little pop-up-window which is run when I press an icon in xmobar. The progam is written in c with gtk+ 3 ...
0
votes
0answers
8 views

How to configure second mate-panel via script/dconf keyfile?

I am attempting to create an automatic installer, and part of the requirement is to have the mate-panel appear on the top of two monitors. I have attempted to create a keyfile that contains a second ...
0
votes
1answer
47 views

Error running .jar on Ubuntu: Could not find ot load main class

I'm creanting an script to run an .jar on Ubuntu 18. The project was develop on Windows with Intellij IDEA. In windows the .jar runs correctly. But in Linux is show the error: Could not find or ...
18
votes
2answers
9k views

Which version of Ubuntu is my Linux Mint installation based on?

For any given version or installation of Linux Mint, how would I find out which version of Ubuntu it is based on? I'm sure it must be in documentation somewhere right?
1
vote
0answers
5k views

How to troubleshoot and fix Wifi driver on Wandboard DUAL?

Environment Wandboard DUAL C1 Ubuntu Trusty using these instruction Issue I was able to install Ubuntu Trusty and I am failing to get the Wifi driver to work. root@ubuntu-armhf:~# uname -a Linux ...
0
votes
1answer
2k views

Unallocated space in empty flash drive

Hello, I am trying to recover unallocated space in my flash drive. I'm not quite sure how it got to this point. I have tried the following commands: resize2fs sudo resize2fs /dev/sdc1 resize2fs 1.42....
0
votes
0answers
10 views

Play .MP4 video and its frame index

I am using Videos to play .MP4 video files in Linux. Sometimes I also use VLC media player to play these files. They are great in Linux. However, either of them has one feature I desperately want to ...
-1
votes
1answer
50 views

useradd: UID 0 is not unique

I'm using Ubuntu and attempting to take a course in Yocto. I've been able to download Yocto and run the 'hello-world' test script to verify the Yocto installation. The next step (from the instructor)...
0
votes
1answer
946 views

How to auto-mount HDD within encrypted /home partition/directory?

My machine has a secondary (NTFS-formatted) internal hard disk drive containing most of my personal files and data. I wish to auto-mount this drive under my user HOME. However, during installation of ...
2
votes
1answer
1k views

Ubuntu 18.04 mount/umount causes drives resume from standby state

I have 3 physical drives - SSD with / mounted, 1st HDD used as /var and /home, 2nd HDD - recovery storage for backups. The HDD with backups should stay most of the time in standby and unmounted state ...
0
votes
2answers
30 views

ThinkPad T420 intel i5 4 GB RAM freezes all the time I open some tab on browser [closed]

My laptop, a Thinkpad T420 with an intel i5 processor and 4 GB RAM works very slowly and freezes when I open some tabs, pages on browser. The laptop works slowly, sometimes, also when I do another ...
0
votes
1answer
42 views

How do I install/uninstall GRUB to change the primary boot manager owner?

I have a dual boot system with 2 versions (derivatives) of Ubuntu installed (Linux Mint 17.3 KDE and Kubuntu 18.04). In order to keep the LM install in control of the GRUB boot manager updates (...
0
votes
0answers
24 views

Discrepancy between linux man page and implementation of mmap

I am trying to compile a program that requires the mmap(2) to support the flag MAP_SYNC, but my compiler reports that no such thing exists. Now, I manually verified the header file for mmap and found ...
0
votes
1answer
2k views

Headers are missing - Ubuntu

I try to install https://github.com/episage/SharpNFC/ , according to readme file. I don't have internet access on my VM so I move files instead of wget. So I move the file libnfc-1.7.0.tar.bz2 to my ...
-1
votes
0answers
25 views

Can't Sign In With New User

I followed this guide in order to limit the amount of files a user can access: How to restrict a user to one folder and not allow them to move out his folder However, none of the new accounts that I ...
1
vote
2answers
918 views

Creating a port mirror on the open vswitch bridge

I have been trying to configure port mirror on Virtual bridge created using open vswitch. I have created the following ports on Bridge demo_bridge using: sudo ovs-vsctl add-port demo_bridge victim0 ...
0
votes
3answers
3k views

vncviewer error:could not connect to session bus :failed to connect to socket/tmp/dbus-XXXXXXXX connection refused

First, I use putty to log in my server computer with vnc4server -geometry 1920x1080. Then I got my port number is 1. The system on my server computer is ubuntu 16.04. Then I use vncviewer to log with ...
1
vote
1answer
2k views

Can't install python3 on Ubuntu 18.04

I fresh installed Ubuntu 18.04. I want to install python on it so I can run flask on it, but for some reason every time I run sudo apt install python3-minimal I keep getting these results: ashoms@...
1
vote
1answer
2k views

Dual boot Windows 10-Ubuntu - Grub, os-prober not detecting Windows 10 partition

Got my Dell XPS 9560 replaced by warranty after motherboard on previous one went bad. Took out the HDD on the new unit and swapped it out with SSD in previous unit. In the past when swapping out hard ...
2
votes
2answers
21k views

Fix read only file system usb [closed]

I have a usb flash memory which I can't do anything on it because its read only: sudo fdisk -l Device Boot Start End Sectors Size Id Type /dev/sdc1 * 2048 7864319 7862272 3.8G ...
1
vote
0answers
14 views

Objdump shows different symbols when disassembling and just printing symbols

Ubuntu 18.04 I have a simple ELF64 binary compiled from a C source file and linked with a shared object. I tried to examine it with objdump and got the following confusion: $ objdump -d -j .plt bin ...
0
votes
0answers
14 views

Build DHCP server ubuntu 16.04 on KVM

How to build an DHCP server with ubuntu on KVM ? I have try some guide but when the DHCP client turn on, the interface will use the IP from the KVM network not from the DHCP server i just build ...
3
votes
1answer
90 views

How to prevent to install newer kernel when removing one?

On Ubuntu, I've got some trouble with one new kernel (4.18.0-20) so I rebooted on one older one (4.18.0-15). Now I want to uninstall the new kernel to prevent any confusion, but doing this, apt to ...
0
votes
2answers
35 views

Can I use Plugins for Vim which are mounted in a Docker-container

So I am currently running Ubuntu, and I want to use the Ubuntu docker-image and mount the plugin folder (.vim/bundle) in the container to my host machine. Because there are some Plugins that are hard ...
4
votes
2answers
2k views

OpenVPN - Linux client connects but could not access internet, routing issue

I installed OpenVPN server quite a while a go with the gateway option that all internet traffic get routed through. It works fine for client machines like Windows and my Android phone, but same Open ...
1
vote
1answer
504 views

E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution) libreoffice

Every time I try to upgrade it shows me this message sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --...
0
votes
2answers
42 views

How secure is 666 as file-permission for a socket-file on web server

As a beginner, I am trying to deploy Flask web app, on a vps server, using Nginx as a reverse proxy and Uwsgi as HTTP server. After creating a socket file in the web-app's root directory, which is ...
-1
votes
0answers
25 views

Blocked in Ubuntu login screen loop

I create this question because I've already search a lot on the web to solve my problem. I have installed Xubuntu 1 year ago, and since 6 month I tried Ubuntu 18.04, so my main user was on Xubuntu ...