Can not install Oracle database in Linux 7 - linux

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

Related

debian /etc/shutdown.allow does not fire when trying to shut down computer

i have a linux box where a remote management application should shut down the box. Those remote management application is running under a normal restrictive user (no root) and the shutdown does just not work.
I have created a file /etc/shutdown.allow and entered the name of that restricted user, but when i execute i get this error:
myuser/mybox:$ shutdown
command not found
also a shutdown -a is not recognized and this switch is also not mentioned in the shutdown manual
Is there a way to enable a user or a application running under a restricted user to shutdown the box at all?
INFO: a sudo shutdown of course is working from cmd-line, but does not enable the application to shut down the box and i would not be happy to let that application run as root user.
Anybody a idea?
Thank you.
INFO:
$ uname -a
Linux mybox 3.16.0-4-amd64 #1 SMP Debian 3.16.51-3 (2017-12-13) x86_64 GNU/Linux
$ cat /etc/issue
Debian GNU/Linux 8
You can only run shutdown as root user. Maybe you can run this using a sudo.

Getting 32 bit Centos docker image

I was trying to run 32 bit Centos in container:
sudo docker run -it i386/centos:6
Inside container I run command uname-a in order to know it is 32 bit. Got output:
4.10.0-28-generic #32~16.04.2-Ubuntu SMP Thu Jul 20 10:19:48 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
According to my understanding it is 64 bit version and not expected 32 bit one?
What I do wrong while getting 32 bit Centos?
Containers share kernel with the host system. Thats why you see ubuntu in the output which is your host system kernel. These containers only have 32bit packages installed and they will work fine with your 64bit kernel.

Which command will work instead of systemctl and systemd in AWS linux instance?

i have a aws linux instance,i am trying to start services from systemctl and systemd but both command is not there in system, my linux version is -
Linux ip-xx-x-x-xxx 4.9.51-10.52.amzn1.x86_64 #1 SMP Fri Sep 29 01:16:19 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Unfortunately we dont have the systemd in the Amazon Linux machines of the 1st version.
They have recently got (Amazon Linux 2 LTS Candidate 2 AMI (HVM), SSD Volume Type - ami-f973ab84) which will have the systemd in it.
If you are using the 1st version then its not possible to execute these commands.

Unable to use the Linux service to start Archiva 2.1.0

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

SVN check out linux

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)

Resources