problems with setcap in ubuntu 14.04 LTS - ubuntu-14.04

I am using command in my code to compile my server.
sudo setcap 'cap_net_bind_service=+ep' ./server
previously I was getting no error while I was using ubuntu 12.04 LTS but now while using ubuntu 14.04 LTS I get " Error on binding: Permission denied"
Can anyone guide me what do do in such case

Related

Snapcraft doesnt install snaps, gives a mount error

had it all working and the next day it randomly gave this error to me. I dont know what I did.
also i had a error on the ubuntu screen itself when executed this command “unable to mount volume an operation is already pending” something like that. cant get to re create this
$ snap install ubuntu-frame
error: cannot perform the following tasks:
Run hook prepare-plug-graphics-core20 of snap "ubuntu-frame" (run hook "prepare-plug-graphics-core20": cannot perform operation: mount --bind /snap/core20/current/etc/nsswitch.conf /tmp/snap.rootfs_lOwlQ8/etc/nsswitch.conf: Permission denied)
Ubuntu version
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal
Snap version
snap 2.57.6
snapd 2.57.6
series 16
ubuntu 20.04
kernel 4.9.333-127
Its an odroid i have to get it in a kiosk for work. and all it gave me is headaches with errors.
I tried reinstalling snap purged it. didnt fix anything.

Using Ubuntu 14.04 docker for cross compilation

I am using Ubuntu 14.04 docker in Ubuntu 18.04. From inside Ubuntu 14.04 docker if I run "uname -r" command then it is showing same output, when I ran the same command in Ubuntu 18.04.
I want to use Ubuntu 14.04 to cross compile package for the target, but at the beginning of configuration, it is checking for confiuration and it is failing with the following error.
checking for the kernel version... unsupported (5.4.0-generic)
configure: error: Valgrind works on kernel 2.4, 2.6

How to make a compatible application with CQtDeployer for any version of Linux/Ubuntu?

I deployed my Qt Gui application with CQtDeployer on Ubuntu 18.04.
But, I can't run it on Ubuntu 16.04 / Ubuntu 14.04.
It has an error on version.
How can I fix it?
Just build and deploy your application on ubuntu 14.04
Your distribution not run because you build and deploy application on OS that has new version of (libc/libz) library.
So, If you want to create distribution that will be works correctly on all versions of your OS then you need to build and deploy application must early OS version.
Example
Application that was built on ubuntu 16.04 will be works great on ubuntu 18.04 , 20.04 and may be 22.04
But not 14.04 because minimum required libc level is some as on ubuntu 16.04.
How to get cqdeployer on ubuntu 14.04
Install from snap store:
sudo snap install cqtdeployer
sudo snap connect cqtdeployer:process-control
sudo snap connect cqtdeployer:removable-media
sudo snap connect cqtdeployer:system-backup
And NOTE
The ubuntu 14.04 too old. So i recommend to drop support of ubuntu 14.04.
User Ubuntu 16.04 as main build machine.

Openstack installation error on ubuntu 16.04

I'm getting the following error while installing Openstack on Ubuntu 16.04.7. Can someone please help.openstack-error
You are installing a version of OpenStack that is no longer supported on Ubuntu 16.04. You either need to upgrade to 20.04 or 18.04.
An alternative would be to try to install an older version of OpenStack that supports Ubuntu 16.04 by changing the branch you use for Devstack.
git checkout stable/rocky

Oprofile install on ubuntu 15.04 - no binary found in /usr/bin

I am trying to install oprofile on my ubuntu 15.04 by following the link:
Getting started with oprofile on Ubuntu
On my the other laptop whcih is running on ubuntu 14.04, it works well.
I can find the binary under /usb/bin directory.
However, I dont know why after typing the apt-get command
sudo apt-get update && sudo apt-get install oprofile
My ubuntu 15.04 still doesn't have oprofiled & opcontrol binary in /usr/bin.
Is there anyway I could check with?
Thanks
===================post updated =======================
Ubuntu 15.04 comes with oprofile 1.0.0, which no longer uses the opcontrol and oprofiled commands. If you want to follow that tutorial, install 0.9.9 from source code. oprofile download page on SourceForge.

Resources