want to code a script that is for multiple linux distributions. Also want to add commands that check, and if not exist install some packages.. So, need a solution to ckeck Dist name (like Debian or RedHat) to execute the right command for this Dist. I have tryed “lsb_release” but is this working all the follow dists? : Debian /
Tag: ubuntu
Error ubuntu apt-get update [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
Ubuntu bash script grepping and cutting on first column
I am trying to implement a bash script that will take the piped input and cut the first column and return a total. The difference is that the cut is not from a file, but from the piped input. For example: Basically, in my scenario the first column will always be from the passed input. Example usuage is: data.txt contains:
After installing Qt 5.8 all qt applications stopped working
everyone! I have got a bit of a problem. My OS is Ubuntu 16.04 LTS x64. Apt provide only Qt 5.5.1 as the latest version, but I needed to install Qt above 5.6 (I have gone with Qt 5.8) because I needed to compile one of the in-house tools (which require Qt >=5.6). But after installing Qt 5.8 (unfortunately, I
Error while compiling lsnes emulator on ubuntu
I’m currently trying to get the Mario project from https://github.com/aleju/mario-ai to work on my ubuntu (16.04) system. I followed the tutorial and already solved some errors, but now I get something that looks like a compile error on the lsnes emulator and that doesn’t make sense to me. My command is LDFLAGS=”-L/usr/lib -L/usr/local/lib -L/usr/lib/x86_64-linux-gnu” CFLAGS=”-I/usr/include -I/usr/local/include -I/usr/include/lua5.1″ make. I added
Switch user from bitbucket to github
I work for a team that stores its repositories on Bitbucket, so I have an account there. Now I’m starting to work simultaneously for another team that stores its repositories on GitHub. I have a couple of questions: Since on both Bitbucket and GitHub they use Git to manage their repository, can I use the old account from Bitbucket on
Extract the time of the video with ffmpeg in Ubuntu
I am using Ubuntu 14.04.5 LTS 32 bit and ffmpeg to extract the time of a video. In Windows 10 the command works: In Linux ffmpeg returns the error in red: At least one output file must be specified The error complete is here: How can I fix this problem? Answer Use Or you could just use ffprobe
HiveMQ systemctl service not listening to port
I am trying to set up HiveMQ on my Amazon EC2 instance (ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-20170414) using this guide: http://www.hivemq.com/docs/hivemq/latest/#hivemqdocs_installation_for_specific_operating_systems After installing I can succesfully run HiveMQ using: Change directory to HiveMQ directory cd /opt/hivemq Execute startup script ./bin/run.sh HiveMQ will start running, and listening to port 1883 and I can connect and subscribe to the broker. When I run HiveMQ as a
How to install JavaPackage on ubuntu
I came across a debian application by the name JavaPackage which can create a debian installation file (.deb) form a java binary (.tar.gz) which you can then install using dpkg -i application_name.deb. With Ubuntu being a debian-based linux distribution, it is possible that it can be installed on ubuntu as well. How do I go about installing it on Ubuntu/Kubuntu
autogen.sh: You need gtk-doc to build this package
I want to compile LXDE’s libfm from source, but when I run ./autogen.sh, it fails with this error: Answer After some experimenting, I figured out which package to install. It was: After that ./autogen.sh executed successfully and created the ./configure script. I also needed to run sudo apt-get build-dep libfm4 which installed other dependencies such as the Vala compiler.