I am using Ubuntu virtual box and writing a project in C++. I am unable to put a format specifier for atomic<uint64_t> datatype in C++. Answer Use .load() to get uint64_t out of the atomic, then print it as a regular uint64_t using PRIu64:
Tag: ubuntu
Ubuntu initial configuration script errors
I’m newbie to linux and I’m trying to make an initial configuration script for basic users passwords, SSH rules and system config of Hostname & timezone as below, But I’m getting below errors, I couldn’t figure it out. Anyone could help me plz Thanks, Answer I’ve found this out after long search. The problem is, executing the script with root
making a Hotel management system in BashScript
I am unable to correct the error. I have tried searching on Google but i can’t figure out what my output is referring to. Its giving a line number but the code is right there. “fi” is used at the end of IF statements in scriptfiles. This is my code I am attaching the output too Error while running the
Collecting data into one text file maintaining the original directory name, for loop, bash
I have a random folders names structure directories as below: Each file.txt has one value e.g. -300. I am trying to loop through those folders with the random naming and collect the data in one text file in the Main directory maintaining the original directory name as below: The result.txt should contain as below: Answer In oneliner form: In readable
Laravel images not shown in any browser while firefox throwing “Image x cannot be displayed because it contains errors” error
My laravel app’s images are not being shown in Firefox Chrome or Edge Firefox shows a more explicit error saying “The image [image] cannot be displayed because it contains errors” ie: the following image is not being shown: http://test-gestion.pedifacil.com/storage/app/public/1/logo_196_196.png but a txt in the same folder is being shown so it does not seem to be problem of wrong symlink
How to install Python package installer PIP on Ubuntu 20.04 Linux
Trying to install pip with Ubuntu version 20.04, Python version 3.8 on my Oracle virtual box. Tried everything to install pip but failed Steps tried Also tried Error both times python3-pip is not available but is being used by another candidate. This may mean that the package has been obsolete, has been missing or is only available from another source.
Deploying jar to unix server
Currently, in order to deploy my program to my ubuntu server, I have to do the following steps. 1. Compile the code using Gradle 2. Using FileZilla to move the jar to my server. 3. Connect to my server and find the process to kill it 4. restart the program. I am curious if there are any alternatives to this
Executing a shell script having docker | docker commands not found
I created a pipeline in Azure with Ubuntu 18.04. My requirement was to run a docker image using bash script and for the same below script was created but on execution I received an error “docker command does not exist and docker: invalid reference format. test.sh Error To describe in detail, here are the tasks created on az pipeline :-
Why docker exec command ingore bashrc inside docker container?
So. I have docker image with ubuntu (also creared container from this image). On my docker container I see this output: On my container on file ~/.bashrc (it is /root/.bashrc) I’m export some variables: When I try to execute command on docker container using “docker exec” I don’t see my variables from .bashrc file Why I don’t see my variables?
change default environment from (base) to (env) in conda/anaconda in Ubuntu
My question is not about changing the .bashrc file to append source activate env because it does the same same task. I have no problem writing an extra line of code everytime I use the environment but the problem is that when I deactivate, it switches it to (base) back again. How can I stop switching to make the (env)