I'm trying to start the recently published Apache Archiva v2.1.0 (Standalone) on Linux.
For testing purpose, the zip has been uncompressed in /opt/archiva-2.0.
The docs says:
http://archiva.apache.org/docs/2.1.0/adminguide/standalone.html
On Linux, the bin/archiva script is suitable for linking or copying to
/etc/init.d/archiva and running as root, as long as the RUN_AS_USER
environment variable is set within the script.
So I've copied the /opt/archiva-2.0/bin/archiva Shell script in /opt/init.d.
I tried with both:
#RUN_AS_USER=root
and
RUN_AS_USER=root
but I always get the same error at startup:
>service archiva console
/etc
Unable to locate any of the following operational binaries:
/etc/rc.d/init.d/./wrapper-linux-x86-64
/etc/rc.d/init.d/./wrapper-linux-x86-32
/etc/rc.d/init.d/./wrapper
For information:
>uname -a
Linux ****** 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
Any idea?
Making symbolic link of the bin/archiva script to /etc/init.d/archiva works better and that way the script is just in one place.
$ ln -s /opt/archiva-2.0/bin/archiva /etc/init.d/archiva
Related
Q1: Can I change which Linux kernel that Docker uses on macOS?
Q2: When does Docker upgrade the Linux kernel version?
Currently, as of:
21 Sep 2020, up-to-date Docker Desktop v2.3.0.5 (48029), Engine 19.03.12
it is using Linux kernel 4.19.76 (released 22 Oct 2018).
I expected it to be on a more recent kernel
(e.g., Linux 5.8 was released 2 Aug 2020; Linux 5.0 was release 3 Mar 2019).
$ docker run -it alpine uname -a
Linux f745312f5a3e 4.19.76-linuxkit #1 SMP Tue May 26 11:42:35 UTC 2020 x86_64 Linux
Related:
How does Docker run a Linux kernel under macOS host?
Can I change the kernel used in Docker for Windows?
https://kernelnewbies.org/LinuxVersions
Q1: Can I change which Linux kernel that Docker uses on macOS?
Safe and simple answer: No. Unless you want to mess-up directly with the Hyperkit VM that docker desktop for Mac is deploying for you when installing. I don't use Mac, I have no clue it this is even possible and strongly suggest you don't walk that path unless you seriously know what your are doing and are ready to reinstall everything if this breaks.
Q2: When does Docker upgrade the Linux kernel version?
When that change is incorporated to a new release and announced on the Docker for mac release notes. Latest kernel upgrade was made on 2020-05-27.
That being said, docker only uses the underlying kernel of the OS/VM where it is installed. If you really need a different kernel for a very specific reason, you can always deploy in parallel your own custom vm with the exact kernel you want, install a docker engine there and use it.
https://stackoverflow.com/a/65844573/8818399
Docker uses its own patched Kernel (along with a specialized Linux distro) called linuxkit in Docker Desktop. It is mentioned in https://hub.docker.com/r/docker/for-desktop-kernel.
I am able to find kernel, initrd.img and cmdline in a folder called linuxkit inside the application folder of my Docker for Mac installation.
Simply build your own Kernel with the instructions/patches of linuxkit and replace those files.
I am trying to install Oracle database to Linux machine.I am getting error down below
Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<
I run commands down below but it still returns error.
What should I do?
[oracle#localhost ~]$ hostname
localhost.localdomain
[oracle#localhost ~]$ DISPLAY=localhost.localdomain:0.0; export DISPLAY
[oracle#localhost ~]$ xclock
Error: Can't open display: localhost.localdomain:0.0
Linux Version
[root#localhost oracle]# uname -a
Linux localhost.localdomain 3.10.0-514.el7.x86_64 #1 SMP Wed Oct 19
11:24:13 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux
Oracle Db Version 12.2.01
This should do the trick:
# as root. Grant access to everyone to the X Server
#xhost +
# as oracle
$export DISPLAY=:0.0
$xclock
$./runInstaller
You need to install Linux with gui
Then check
echo $DISPLAY
This command must output like :0
I have an ec2 instance in redhat 4.
Linux version 4.4.41-36.55.amzn1.x86_64 (mockbuild#gobi-build-60008) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Wed Jan 18 01:03:26 UTC 2017
I'm trying to execute a code made in matlab 2015b I have the m file.
So first I installed the MCR with unziping mat and executing ./install and later I add the environment variables :
LD_LIBRARY_PATH=/usr/local/MATLAB/MATLAB_Runtime/v90/runtime/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v90/bin/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v90/sys/os/glnxa64:
MATLAB=/usr/local/MATLAB/MATLAB_Runtime/v90
to my bashrc
So next I wanted to do is execute the m file but in /usr/local/MATLAB/MATLAB_Runtime/v90/bin there is no matlab script.
Reading a little what I need to do is this post: https://hpc.nih.gov/apps/Matlab_compiler.html but When I tried to execute : module load matlab/v90 says module commantd not found
I try this: https://ask.fedoraproject.org/en/question/59399/module-command-not-found-in-fedora-21/ Adding ". /etc/profile" to my .bashrc but seems not to work.
So three questions
How can I run this file .m file, what are the steps for 2015b in
linux 64 bit?
How to get module command working on redhat 4?
For the question 2, I have insmod and modprobe in /sbin/ folder...
are this related to add matlab?
module command here refers to the Environment modules software and not the Linux kernel modules. You should be able to install module on your system by following the installation documentation provided.
Hi I've been searching high and low in the internet where to find a Git installer that will work on our machines at work. They are ATEs that can only run on RedHat3 (which means we can't upgrade the OS).
My limited knowledge on Unix administration is also a big hindrance and the reason that I cannot find a working installer. this is the system information of our machines.
Linux D10-003 2.4.21-4.0.1.EL #1 Thu Oct 23 01:36:33 EDT 2003 i686
i686 i386 GNU/Linux
thanks and looking forward to your answers!
You can install git by compiling source. More steps are at https://git-scm.com/book/en/v2/Getting-Started-Installing-Git#Installing-from-Source
My uname -a reads :
root#edu [~]# uname -a
Linux edu.educationlinked.com 2.6.18-028stab068.3 #1 SMP Tue Feb 16 20:21:42 MSK 2010 x86_64 x86_64 x86_64 GNU/Linux
I am not sure which Linux OS is this?
I already have a repository hosted at a free repository and i use Tortoise SVN on windows as the client. I need to do the check out etc on a Linux machine mentioned above.
I have read and read and got confused about what to use? Can someone please help me.
There should be svn utility on you box, if installed:
$ svn checkout http://example.com/svn/somerepo somerepo
This will check out a working copy from a specified repository to a directory somerepo on our file system.
You may want to print commands, supported by this utility:
$ svn help
uname -a output in your question is identical to one, used by Parallels Virtuozzo Containers for Linux 4.0 kernel, which is based on Red Hat 5 kernel, thus your friends are rpm or the following command:
$ sudo yum install subversion
You can use checkout or co
$ svn co http://example.com/svn/app-name directory-name
Some short codes:-
checkout (co)
commit (ci)
copy (cp)
delete (del, remove,rm)
diff (di)