Set vm of Virtual Box to access internet

[root@docker01 ~]# ping www.google.com ^C [root@docker01 ~]# nslookup www.google.com [root@docker01 ~]# more /etc/resolv.conf # Generated by NetworkManager search opasia.dk nameserver 193.162.153.164 nameserver 194.239.134.83 nameserver :: VirtualBox–setting–Network— Adapter1: Bridged Adapter, Promiscuous Mode:Deny, Cable Connected:enabled. Adapter2: Nat, Cable Connected:enabled. nmtui ifconfig more /etc/resolv.conf more /etc/sysconfig/network-scripts/ifcfg-enp0s3 more /etc/sysconfig/network-scripts/ cd /etc/sysconfig/network-scripts/ ls ls -lrt ifconfig ls more ifcfg-lo [root@docker01 […]

Test server connectivity via python open socket

1. Open socket via python in target vm [root@oraclevm02 ~]# python -m SimpleHTTPServer 7809 Serving HTTP on 0.0.0.0 port 7809 … 192.29.20.11 – – [11/Sep/2010 11:29:15] code 400, message Bad request syntax (‘\x03’) 192.29.20.11 – – [11/Sep/2010 11:29:15] “” 400 – 2. Telnet target:port [root@oraclevm01 ~]telnet oraclevm01 7809

Issue: /etc/ssh/ssh_config: Bad configuration option: permitrootlogin

Issue: /etc/ssh/ssh_config: Bad configuration option: permitrootlogin Symptom: [devuser@linuxvm01 docker]$ ssh devuser@linuxvm02 /etc/ssh/ssh_config: line 26: Bad configuration option: permitrootlogin /etc/ssh/ssh_config: terminating, 1 bad configuration options Cause: To resolve this issue you have to commented out line 55 in /etc/ssh/ssh_config #PermitRootLogin yes PermitRootLogin is actually an option which is valid in the /etc/ssh/sshd_config file; not the ssh_config […]

OSWatcher via MobaXterm

1. Using MobaXterm_Portable_V10.2: https://mobaxterm.mobatek.net/download-home-edition.html oraclevm01 % sudo su – root root@oraclevm01:/root % xhost + MobaXterm X11 proxy: Unsupported authorisation protocol xhost: unable to open display “localhost:10.0” root@oraclevm01:/root % exit logout oraclevm01 % xhost + access control disabled, clients can connect from any host oraclevm01 % 2. produce report oraclevm01$ cd /opt/app/oracle/admin/OSWatch/oswbb/ oraclevm01$ ls analysis call_uptime.sh […]

Docker run OGG Classic Architecture container from CIFS with docker-volume-netshare Plugin

Docker run OGG Classic Architecture container from CIFS with docker-volume-netshare_0.36_linux_amd64 Plugin 1. Mount SMB storage to Linux as CIFS [root@linuxvm01 docker-volume-netshare_0.36_linux_amd64]# sudo mount -t cifs -o username=smb_user,file_mode=0777,dir_mode=0777,uid=54321,gid=54321 \\\\191.168.11.122\\shared /u01 \\191.168.11.122\shared on /u01 type cifs (rw,relatime,vers=default,cache=strict,username=smb_user,domain=,uid=54321,forceuid,gid=54321,forcegid,addr=191.168.11.122,file_mode=0777,dir_mode=0777,soft,nounix,serverino,mapposix,rsize=1048576,wsize=1048576,echo_interval=60,actimeo=1) 2. Run docker-volume-netshare plugin with CIFS [root@linuxvm01 docker-volume-netshare_0.36_linux_amd64]# sudo ./docker-volume-netshare cifs 2019/08/16 19:13:44 Entering go-plugins-helpers getPath 2019/08/16 19:13:44 Entering go-plugins-helpers […]

mount SMB storage to Linux as CIFS

mount SMB storage to Linux as CIFS yum install cifs-utils sudo mount -t cifs -o username=smb_user,file_mode=0777,dir_mode=0777,uid=54321,gid=54321 \\\\191.168.1.122\\shared /u01 [root@linuxvm01 ~]# more /etc/fstab # # /etc/fstab # Created by anaconda on Sun Jul 28 20:19:48 2019 # # Accessible filesystems, by reference, are maintained under ‘/dev/disk’ # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for […]

faillock clear authentication failure to fix Linux login failed issue

Symptoms: Login Linux with oracle account failed, whereas the password is correct Debug: root@linuxvm01:/root % tail -f /var/log/secure Oct 2 07:33:03 linuxvm01 adminsrvr[49581]: 2019-10-02T07:33:03.342+0000 INFO | ‘oggadmin’ IS authorized for ‘user’ role by HTTP. Oct 2 07:33:14 linuxvm01 unix_chkpwd[18549]: password check failed for user (oracle) Oct 2 07:33:14 linuxvm01 sshd[18493]: pam_unix(sshd:auth): authentication failure; logname= uid=0 […]