File: fwphp/glomodul/mkd/01/001_vbox/001_instalac_moj_VM_oralinux_7_6.mkd

Recommend this page to a friend!
  Classes of Slavko Srakocic  >  B12 PHP FW  >  fwphp/glomodul/mkd/01/001_vbox/001_instalac_moj_VM_oralinux_7_6.mkd  >  Download  
File: fwphp/glomodul/mkd/01/001_vbox/001_instalac_moj_VM_oralinux_7_6.mkd
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change: ver 7.0.1 mnu, msg, mkd FUNCTIONAL namespaces, CRUD PDO trait, pretty URL-s
Date: 2 months ago
Size: 55,907 bytes
 

Contents

Class file image Download
<a name="top"></a>
**[Top](#top)** | [Download](#download) | [VBox](#vbox) | [VM](#vm) | [Utils](#utils) | [XAMPP](#xampp) | [Samba ](#samba)   | [Deploy](#deploy) | [Lin. site access](#linsite)    

2020.04.06 see http://dev1:8083/fwphp/glomodul/mkd/?edit=01/001_config_ssl_tls/001_instalac_moj_vbox_oralin_8_1.txt
# Oracle DB 19c on VBOX 6.1.4 Ora Linux 7.6 
#### Oracle DB Developer VM :  All passwords are oracle or noted if otherwise.

In windows, type "winver" in the run box. My latest version is 1909. (march 2020)
[root@oralin76 ~]# uname -a     
Linux oralin76 4.1.12-124.27.1.el7uek.x86_64 #2 SMP Mon  May 13 08:56:17 PDT 2019 x86_64 x86_64 x86_64 GNU/Linux          

For right click -> "New .txt" : create file shortcut :
Home -> Templates -> create in Terminal or copy here moj_Blank_Doc.txt 

super (winkey) + space - **switch to english**

sudo /opt/lampp/manager-linux-x64.run     - **start XAMPP**       
or sudo /opt/lampp/xampp start 

**URLs to use on Linux in vbox PC oralin76 :**       

|                   URL                                   |             URL opens page          |
|:-------------------------------------------- |:-----------------------------------|
| http://oralin76/fwphp/www/                 | fwphp site on vbox PC oralin76 |
| http://192.168.5.12:8083/fwphp/www/ | fwphp site on win 10 PC sspc2 (or sspc2 instead IP) |


**URLs to use on win 10 PC sspc2 :**        

|                   URL                         |             URL opens page          |
|:------------------------------------- |:-----------------------------------|
| http://sspc2:8083/fwphp/www    | fwphp site on on win 10 PC sspc2 |
| http://192.168.5.13/fwphp/www | fwphp site on vbox PC oralin76 - **ERR_CONNECTION_REFUSED** (why ?) (or oralin76 instead IP) |

On Linux oralin76 vbox PC (VM), in explorer : smb://192.168.5.13/htdocs/ opens Linux share defined in /etc/samba/smb.conf         

/media/sf_J_DRIVE opens Windows share defined in Windows

On Windows sspc2 PC, in explorer : \192.168.5.12 and \192.168.56.1 = Win shares visible in Win Network folder on PC sspc2, but Lin does not open this, same as \sspc2 or smb://192.168.56.1/






<br /><br /><br />
<a name="deploy"></a>
[Top](#top) | [Download](#download) | [VBox](#vbox) | [VM](#vm) | [Utils](#utils) | [XAMPP](#xampp) | [Samba ](#samba)   | **[Deploy](#deploy)** | [Lin. site access](#linsite)       
## 6\.2 Access Linux share dir from Windows with WinSCP FTP
How we can see RHEL type linux 64 bit share in Windows 10 64 bit Network folder ?
I can in Linux file explorer ctrl+c, v files on win10 to/from Linux.      
With WinSCP FTP I can sync website tree.       

### WinSCP FTP website tree synchronization

1. chown -R someuser:somegroup /your/folder/here/*     (Recursive mode only works on directories, not files.)
   This will apply chown to all files and all subdirectories and sub-subdirectories of the specified folder. Use with care.     
   **sudo chown -R oracle:oracle /opt/lampp/htdocs/fwphp/**    On Debian Linux : var/www/html/fwphp        
   **sudo chmod 755 /opt/lampp/htdocs/fwphp -R**

2. **WinSCP FTP -> "New session" icon -> button "Edit" -> button "Advanced"** 
   assign SFTP value : /usr/libexec/openssh/sftp-server
   assign Shell value : sudo su -

### Synchronization using PHP interpreter
See http://dev1:8083/fwphp/glomodul/mkd/?edit=01/001_config_ssl_tls/ftp.txt


> **/opt/lampp/htdocs**    /u01/userhome/oracle      
> To create or delete file you need have a write permissions to the directory;     
> To change file or directory permissions you need to be its owner;          
> To change file modification time you need to be its owner (note that by default WinSCP updates file modification time when uploading).     






<br /><br /><br />
<a name="linsite"></a>
[Top](#top) | [Download](#download) | [VBox](#vbox) | [VM](#vm) | [Utils](#utils) | [XAMPP](#xampp) | [Samba ](#samba)   | [Deploy](#deploy) | **[Lin. site access](#linsite)**
## 6\.1 Access Linux fwphp site from Windows (with URL)

http://oralin76/fwphp/www = fwphp site on vbox PC oralin76 - **ERR_CONNECTION_REFUSED** (why ?)      
Same for http://192.168.5.13/fwphp/www     

**https://stackoverflow.com/questions/5524116/accessing-localhost-xampp-from-another-computer-over-lan-network-how-to**     

https://www.ionos.com/digitalguide/hosting/technical-matters/err-connection-refused/      

`$> netstat -an | grep "LISTEN "  if outputs this :  tcp        0      0 127.0.0.1:3000          0.0.0.0:* `       
Only 127.0.0.1:3000 is listed in netstat output meaning **server is listening on the localhost interface only**, ee you won't be able to access it from a remote computer.       
Use "0.0.0.0" - I believe this acts as a wildcard, now allowing for public resolution via the domain name and it also works with "localhost".  Here's a link to a serverfault page on the 0.0.0.0 topic:        
https://serverfault.com/questions/78048/whats-the-difference-between-ip-address-0-0-0-0-and-127-0-0-1    


1. chances are you need only do http://192.168.5.13 or http://oralin76

2.  if 1. doesnt work,may be firewall running on your computer - work out how to add port 80 to it to let other machines in.
   In Windows : Control Panel > Windows Firewall > Allow an app through Windows Firewall > Allow another app > Browse to: XAMPP/apache/bin/httpd.exe and allow it (see https://www.tomshardware.com/news/how-to-open-firewall-ports-in-windows-10,36451.html).

3.  or httpd.conf is only listening on 127.0.0.1


<br /><br />
###  1. Set up a virtual host

See J:\awww\www\zinc\img\img_big\site_on_LAN_or_WEB.png :     
1.  see (1) in site_on_LAN_or_WEB.png - **J:\xampp\apache\conf\extra\httpd-vhosts.conf** :
   Prepare Web server on your computer for handling requests to localhost and dev1 sites. We provide name of Virtual Host and  root/main folder of localhost and dev1 websites.
```
#### First VirtualHost section is default or fallback virtual host (testing site), 
#### used f or all requests that do not match **ServerName or ServerAlias**
#### in any <VirtualHost> block.
#### 8083 0r 80 :
<VirtualHost *:8083>
    DocumentRoot "/xampp/htdocs/"
    ServerName localhost
</VirtualHost>
#### sets up a virtual host named dev1 (development site)
#### To see http://dev1:8083/fwphp/www/ (dev1 is apache virtual host) :
<VirtualHost *:8083>
    DocumentRoot "J:/awww/www/"
    #### on oralin76 PC : oralin76.sspc  (symfony.local) :
   ServerName dev1
</VirtualHost>
```

### 2. Configure your hosts file
For the client (your browser in that case) to understand what dev1 means, you need to edit the hosts file on your computer. Everytime you type an URL in your browser, your computer tries to understand what it means! dev1 doesn't mean anything for a computer. So it will try to resolve the name dev1 to an IP address. It will do this by first looking into the hosts file on your computer to see if he can match an IP address to what you typed in the address bar. If it can't, then it will ask DNS servers. The trick here is to append `127.0.0.1  localhost dev1` to your hosts file :     

1. MAC /private/etc/hosts;
2. LINUX /etc/hosts;
3. WINDOWS \Windows\system32\private\etc\hosts;
4. WINDOWS 10 and 7  **C:\Windows\System32\drivers\etc\hosts**;

From now on, everytime you type dev1 on this computer, your computer will use the loopback interface to connect to dev1. It will understand that you want to work on localhost (127.0.0.1).

### 3. Access localhost from an other computer
We need to tell the other computers how they could find localhost eg on oralin76.

3a Get the IP address of the computer hosting the website:

In the terminal (CLI), 
1. on LINUX (oralin76) and MAC type **ifconfig |grep inet**
2. on WINDOWS type `ipconfig`
Let's assume the IP address of oralin76 is 192.168.5.13 .      

3b Edit hosts file on oralin76 computer you are trying to access the website from :     
Trick is to use IP address of oralin76 (computer we are trying to access/talk to):      

192.168.5.13         oralin76.sspc2        

You can now go into your browser and type http://oralin76.sspc2  (symfony.local) to beautifully see your website on different computers! Note that you can apply the same strategy if you are a OSX user to test your website on Internet Explorer via Virtual Box (if you don't want to use a Windows computer). This is beautifully explained in Crafting Your Windows / IE Test Environment on OSX     
http://www.studiobanks.com/blog/post/279/crafting-your-windows-ie-test-environment-on-osx-106.

You can also access your localhost from mobile devices, see http://egalo.com/2012/05/29/testing-mac-web-site-using-local-hostname-on-mobile-device/





<br /><br /><br />
<a name="xampp"></a>
[Top](#top) | [Download](#download) | [VBox](#vbox) | [VM](#vm) | [Utils](#utils) |** [XAMPP](#xampp)** | [Samba ](#samba)   | [Deploy](#deploy) | [Lin. site access](#linsite)
## XAMPP instalac

L:\1_instalac\1_instalirano\5_virtualbox

### On Linux

xampp-linux-x64-7.4.3-0-installer.run      

### On Windows

2023.2020.03.30

### 1. C:\Windows\System32\drivers\etc\hosts
\#localhost name resolution is handled within DNS itself.         
```
128.127.0.0.1       localhost dev1 https://www.expressvpn.com/       
::1             localhost dev1 https://www.expressvpn.com/      
```
### 2. J:\xampp\apache\conf\httpd.conf
Listen 8083      
ServerName localhost:8083   

...
#### To see http://dev1:8083/fwphp/www/ (dev1 is apache virtual host) :
```xml
<Directory "J:/awww/www/">
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Require all granted
</Directory>
```

Now in J:\xampp\xampp-control.exe :
   1. buttons "Config", "Editor" and "Service and port settings" Apache port 8083
   2. buttons "Start mysql" and "Start Apache"

http://localhost:8083/ shows :          
Apache Friends    Applications    FAQs    HOW-TO Guides    PHPInfo    phpMyAdmin          

dev1:8083/phpmyadmin/ shows Server: 127.0.0.1 Database :     
   1. information_schema
   2. mysql
   3. performance_schema
   4. phpmyadmin
   5. test

#### my db-s imporeted
   in http://dev1:8083/phpmyadmin/import.php
1.  J:\\awww\\www\\01_DDL_mysql_blog.sql




To see http://dev1:8083/fwphp/www/ (dev1 is apache virtual host) :      
### 3. J:\xampp\apache\conf\extra\httpd-vhosts.conf :
First VirtualHost section is default or fallback virtual host,     
used f or all requests that do not match **ServerName or ServerAlias**       
in any \<VirtualHost> block.      
```xml
<VirtualHost *:8083>
   DocumentRoot "/xampp/htdocs/"
   ServerName localhost
</VirtualHost>
#### sets up a virtual host named dev1        
<VirtualHost *:8083>
   DocumentRoot "J:/awww/www/"
   ServerName dev1
</VirtualHost>
```

**Self signed certificate comes with xampp :**     
  SSLCertificateFile "conf/ssl.crt/server.crt"      
  SSLCertificateKeyFile "conf/ssl.key/server.key"       

**To see https://dev1/fwphp/www/ (dev1 is apache virtual host) :**      
**4. J:\xampp\apache\conf\extra\httpd-ssl.conf**      

#### SSL Virtual Host Content

```xml
<VirtualHost _default_:443>

  DocumentRoot "J:/awww/www"
  ServerName dev1:443
  ServerAdmin slavkoss22@gmail.com
  ErrorLog "J:/xampp/apache/logs/error.log"
  TransferLog "J:/xampp/apache/logs/access.log"

  SSLEngine on

  SSLCertificateFile "conf/ssl.crt/server.crt"
  SSLCertificateKeyFile "conf/ssl.key/server.key"

  <FilesMatch "\.(cgi|shtml|phtml|php)$">
      SSLOptions +StdEnvVars
  </FilesMatch>
  <Directory "J:/xampp/apache/cgi-bin">
      SSLOptions +StdEnvVars
  </Directory>

  BrowserMatch "MSIE [2-5]" \
           nokeepalive ssl-unclean-shutdown \
           downgrade-1.0 force-response-1.0

  CustomLog "J:/xampp/apache/logs/ssl_request.log" \
            "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>



<VirtualHost _default_:443>

#   General setup for the virtual host
DocumentRoot "J:/xampp/htdocs"
#ServerName www.example.com:443
ServerName localhost:443
#ServerAdmin admin@example.com
ServerAdmin slavkoss22@gmail.com
ErrorLog "J:/xampp/apache/logs/error.log"
TransferLog "J:/xampp/apache/logs/access.log"

#   SSL Engine Switch:
#   Enable/Disable SSL for this virtual host.
SSLEngine on

SSLCertificateFile "conf/ssl.crt/server.crt"

SSLCertificateKeyFile "conf/ssl.key/server.key"

<FilesMatch "\.(cgi|shtml|phtml|php)$">
    SSLOptions +StdEnvVars
</FilesMatch>
<Directory "J:/xampp/apache/cgi-bin">
    SSLOptions +StdEnvVars
</Directory>


BrowserMatch "MSIE [2-5]" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0

CustomLog "J:/xampp/apache/logs/ssl_request.log" \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>
```





<br /><br /><br />
<a name="samba"></a>
[Top](#top) | [Download](#download) | [VBox](#vbox) | [VM](#vm) | [Utils](#utils) | [XAMPP](#xampp) |** [Samba ](#samba)**   | [Deploy](#deploy) | [Lin. site access](#linsite)    
## Configuring Samba Server - successful
Server Message Block version 2 (SMBv2) network protocol       

### Access Linux share from Windows 10 machine 
with username and password (to deploy website)     

How can I configure Samba so that Windows 10 will prompt the user for credentials, rather than attempting to use an insecure guest logon?        
VBOX network card must be **Bridged adapter Promiscuous Mode: Allow all**.      

9 ms **ping oralin76** or **ping 192.168.5.13** = STATIC IP = on Linux and Windows,     
ee Manual IPv4, and IPv6 disabled    
(not NAT IP 10.0.2.15, Default route 10.0.2.2 - error "...samba not responding")         

net view shows System error 1231 has occurred. net view is an outdated way to find computer information due to its dependency on NetBIOS. https://adamtheautomator.com/psexec-ultimate-guide/     
J:\symenu\ProgramFiles\SPSSuite\SyMenuSuite\Cmder_sps      
#### net view oralin76 shows :        
```
Shared resources at oralin76   Samba 4.9.1
Share name  Type     Used as  Comment
-------------------------------------------------------------------------------
htdocs          Disk      Shared dir
oracle           Disk      User home directories
```
    
J:\symenu\ProgramFiles\SPSSuite\SyMenuSuite\Cmder_sps
#### net view sspc2 shows :
```
Shared resources at sspc2   Slavko doma MB Asus
Share name  Type  Used as  Comment
-------------------------------------------------------------------------------
J                  Disk
Users           Disk

[root@oralin76 oracle]# smbclient -L oralin76
Enter WORKGROUP\oracle's password: 
Anonymous login successful

  Sharename       Type      Comment
  ---------       ----      -------
  htdocs          Disk      Shared dir
  IPC$            IPC       IPC Service (Samba 4.9.1)
SMB1 disabled -- no workgroup available
```

`connect: smbclient //<HOST_IP_OR_NAME>/<folder_name> -U <user>`        
`List all shares:   smbclient -L //<HOST_IP_OR_NAME>/<folder_name> -U <user>`     



## Install samba
1. **sudo bash**
2. **yum install samba samba-client samba-winbind**
3. **gedit /etc/samba/smb.conf** See smb.conf.example for a more detailed config file or read the smb.conf manpage      
Run **testparm** to verify the config is correct after you modified it.     

```
[global]
security = user
workgroup = WORKGROUP
#### I gave this name :
netbios name = oralin76
server min protocol = SMB2_10
client min protocol = SMB2
client max protocol = SMB3
ntlm auth = yes 
wins support = yes
local master = yes
preferred master = yes
load printers = yes
printing = cups
printcap name = cups

[printers]
comment = All Printers
#### location of a spooling directory that receives print jobs from Win clients before submitting them to the local print spooler. Samba advertises all  locally configured printers on the server.
path = /var/spool/samba
browseable = no
guest ok = yes
writable = no
printable = yes
#unknown param : printer admin = root, @ntadmins, @smbprintadm

[homes]
comment = User home directories
# = personal share for each user in the smbusers group - browsable and writable prevent other users from browsing home directories, while allowing full access to valid users
valid users = @smbusers
browsable = no
writable = yes
guest ok = no

# share /usr/local/apps, for Windows users : browsing (read-only permission) : admin:///opt/lampp/htdocs
[htdocs]
comment = Shared dir 
path = /opt/lampp/htdocs
browsable = yes
writable = yes
guest ok = yes
valid users = oracle
read only = no






Aded this to the very end of the file:

[<folder_name>]
path = /home/<user_name>/<folder_name>
valid users = <user_name>
read only = no
```


#### [root@localhost oracle]\# testparm

```
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[homes]"
Processing section "[htdocs]"
Loaded services file OK.
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

# Global parameters
[global]
  client max protocol = SMB3
  client min protocol = SMB2
...
```

`List all shares: smbclient -L //<HOST_IP_OR_NAME>/<folder_name> -U <user>`       
[oracle@localhost ~]$ **smbclient -L oralin76**
```
Unable to initialize messaging context
Enter WORKGROUP\oracle's password: 

Sharename       Type      Comment
---------       ----      -------
htdocs          Disk      Shared dir
IPC$            IPC       IPC Service (Samba 4.9.1)
  oracle          Disk      User home directories
SMB1 disabled -- no workgroup available
```

`connect: smbclient //<HOST_IP_OR_NAME>/<folder_name> -U <user>`        
[oracle@localhost ~]$ **smbclient oralin76**     

1. **user must already exist as a user on the system :**
   **smbpasswd -a oracle**     answer when asks :  MYSHORTPSW
   not :   gedit /etc/passwd        gedit /etc/shadow
2. gedit /etc/samba/smbusers and put linusr=winusr so (Only user security model uses **Samba passwords**) :
   oracle = ss
   root = admin administrator root
   nobody = guest nobody pcguest smbguest
3. To access a share on a Samba server from Windows Explorer :      
   `\\server_name\share_name` or only `\\server_name`


#### save config file and create a Samba shared folder. Then, restart Samba services
mkdir -p /etc/samba/anonymous       mkdir -p /samba/anonymous      
cd /samba       
chmod -R 0755 anonymous/      
**chmod -R 0755 /opt/lampp/htdocs**  
   drwxr-xr-x.  2 root root    6  4. Jun 16:31 anonymous/  --already was     
chown -R nobody:nobody anonymous/      
ls -alF     
   drwxr-xr-x.  2 nobody nobody    6  4. Jun 16:31 anonymous/
chcon -t samba_share_t anonymous/

```
systemctl enable smb.service
systemctl enable nmb.service
systemctl restart smb.service
systemctl restart nmb.service
```

Configure the system firewall to allow incoming TCP connections to ports 139 and 445, and incoming UDP datagrams on ports 137 and 138:
```
firewall-cmd --zone=zone \
  --add-port=139/tcp --add-port=445/tcp --add-port=137-138/udp
firewall-cmd --permanent --zone=zone \
  --add-port=139/tcp --add-port=445/tcp --add-port=137-138/udp
```


Search for Local Group Policy Editor:
Computer configuration\administrative templates\network\Lanman Workstation
"Enable insecure guest logons"


### In PowerShell (PS C:\Users\ss>) :

1. Get-SmbServerConfiguration
2. Get-SmbServerConfiguration | Select EnableSMB1Protocol   displays false
3. Get-SmbServerConfiguration | Select EnableSMB2Protocol   displays  true
4. Get-SmbClientNetworkInterface
5. Set-SmbServerConfiguration -EnableSMB2Protocol $true   **- enables also SMB3**
6. **Get-SmbShare** - Instead of using **net view**, use Get-SmbShare  as it obviously works. You can point it to another pc on the network:
   Get-SmbShare -Name "computername"
   Get-SmbShare -Name "computername" | Format-List
   Get-SmbShare -Name "computername" | Format-List -Property *
7. sc.exe qc lanmanworkstation 
   You must run next commands at an elevated command prompt.             
   You must restart the computer after you make these changes.       
   >sc.exe config lanmanworkstation depend= bowser/mrxsmb10/mrxsmb20/nsi         
   >sc.exe config mrxsmb20 start= auto      (or disabled)      


```
Interface Index RSS Capable RDMA Capable Speed  IpAddresses                               Friendly Name
--------------- ----------- ------------ -----  -----------                               -------------
7               False       False        1 Gbps {fe80::adc0:ccb4:63e8:2661, 192.168.56.1} VirtualBox Host-Only Network
12              False       False        0  bps {fe80::2850:b7fc:aea2:e806}               Ethernet
15              False       False        1 Gbps {192.168.5.12}                            Ethernet 2
```

```
Name   ScopeName Path       Description
----   --------- ----       -----------
ADMIN$ *         C:\Windows Remote Admin
C$     *         C:\        Default share
D$     *         D:\        Default share
E$     *         E:\        Default share
F$     *         F:\        Default share
I$     *         I:\        Default share
IPC$   *                    Remote IPC
J      *         J:\
J$     *         J:\        Default share
K$     *         K:\        Default share
L$     *         L:\        Default share
```


```
[SC] QueryServiceConfig SUCCESS

SERVICE_NAME: lanmanworkstation
        TYPE               : 20  WIN32_SHARE_PROCESS
        START_TYPE         : 2   AUTO_START
        ERROR_CONTROL      : 1   NORMAL
        BINARY_PATH_NAME   : C:\Windows\System32\svchost.exe -k NetworkService -p
        LOAD_ORDER_GROUP   : NetworkProvider
        TAG                : 0
        DISPLAY_NAME       : Workstation
        DEPENDENCIES       : Bowser
                           : MRxSmb20
                           : NSI
        SERVICE_START_NAME : NT AUTHORITY\NetworkService
```






<br /><br />
#### Turn on the Samba server and make sure it starts automatically on reboot :
service smb start
systemctl enable smb.service or chkconfig smb on     
service smb restart       
Redirecting to /bin/systemctl restart smb.service


You can check samba services by running ps -eaf | grep smbd; ps -eaf | grep nmbd
Now go to the windows Run prompt and type 
\\yourhostname\anonim. 
\\ssvbox\anonim
IP adress   \\10.0.2.15\anonim     and    Default route 10.0.2.2
Thats it!! You will be able to access anonymous shared drive by now.
Windows cant communicate with the device or resource (10.0.2.15). 
The computer or service you are trying to reach might be temporarily unavailable. 
 
If this doesnt connect to the shared folder make sure your firewall services 
are stopped and try again. You can run below commands to stop the services.
service firewalld stop   -----Redirecting to /bin/systemctl stop firewalld.service
service iptables stop      ---- Unit iptables.service not loaded.

Now test shared folder by creating a sample text file on linux machine 
and opening it on windows machine.

J:\symenu\ProgramFiles\SPSSuite\SyMenuSuite\Cmder_sps         
#### ? ipconfig /all    or   ipconfig | grep IPv4     
then ping -a 192.168.5.12 shows hostname.
```
Windows IP Configuration                                                                     
                                                                                             
   Host Name . . . . . . . . . . . . : sspc2                                                 
   Primary Dns Suffix  . . . . . . . :                                                       
   Node Type . . . . . . . . . . . . : Hybrid                                                
   IP Routing Enabled. . . . . . . . : No                                                    
   WINS Proxy Enabled. . . . . . . . : No                                                    
                                                                                             
Ethernet adapter Ethernet:                                                                   
                                                                                             
   Media State . . . . . . . . . . . : Media disconnected                                    
   Connection-specific DNS Suffix  . :                                                       
   Description . . . . . . . . . . . : **Realtek** PCIe GbE Family Controller                    
   Physical Address. . . . . . . . . : 38-D5-47-1C-C6-15                                     
   DHCP Enabled. . . . . . . . . . . : No                                                    
   Autoconfiguration Enabled . . . . : Yes                                                   
                                                                                             
Ethernet adapter Ethernet 2:   **ss@sspc2**                                                              
                                                                                             
   Connection-specific DNS Suffix  . :                                                       
   Description . . . . . . . . . . . : **TP-Link** Gigabit PCI Express Adapter                   
   Physical Address. . . . . . . . . : **50-3E-AA-08-23-F8**                                     
   DHCP Enabled. . . . . . . . . . . : No                                                    
   Autoconfiguration Enabled . . . . : Yes                                                   
   Link-local IPv6 Address . . . . . : fe80::55f0:dde8:14c3:8d5d%15(Preferred)               
   IPv4 Address. . . . . . . . . . . : **192.168.5.12**(Preferred)                               
   Subnet Mask . . . . . . . . . . . : 255.255.255.0                                         
   Default Gateway . . . . . . . . . : **192.168.5.1**                                           
   DHCPv6 IAID . . . . . . . . . . . : 173031082                                             
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-25-AE-2B-AD-38-D5-47-1C-C6-15             
   DNS Servers . . . . . . . . . . . : **213.191.128.8**                                         
                                       213.191.128.9                                         
   NetBIOS over Tcpip. . . . . . . . : Enabled                                               
                                                                                             
Ethernet adapter **VirtualBox oracle@localhost.localdomain** Host-Only Network:                                               
                                                                                             
   Connection-specific DNS Suffix  . :                                                       
   Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter                 
   Physical Address. . . . . . . . . : 0A-00-27-00-00-07                                     
   DHCP Enabled. . . . . . . . . . . : No                                                    
   Autoconfiguration Enabled . . . . : Yes                                                   
   Link-local IPv6 Address . . . . . : fe80::adc0:ccb4:63e8:2661%7(Preferred)                
   IPv4 Address. . . . . . . . . . . : **192.168.56.1**(Preferred)                               
   Subnet Mask . . . . . . . . . . . : 255.255.255.0                                         
   Default Gateway . . . . . . . . . :                            **!!!!! MUST**                            
   DHCPv6 IAID . . . . . . . . . . . : 470417447                                             
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-25-AE-2B-AD-38-D5-47-1C-C6-15             
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1                                    
                                       fec0:0:0:ffff::2%1                                    
                                       fec0:0:0:ffff::3%1                                    
   NetBIOS over Tcpip. . . . . . . . : Enabled                                               
                                                                                             


J:\symenu\ProgramFiles\SPSSuite\SyMenuSuite\Cmder_sps      
? ping 192.168.56.1                                        
Reply from 192.168.56.1: bytes=32 time=12ms TTL=128        
... Average = 9ms to 15ms                                                
```



#### ? net view \\sspc2
```
--------Symenu -> Cmder :          
Shared resources at \\sspc2          
Share name  Type  Used as  Comment                                       
-------------------------------------
J           Disk                     
```

net view returns computers **in current domain or network**. This list will only show computers that have file and printer sharing enabled.
net view /all shows all shares available, including administrative shares like C$ and admin$.
**Enable network discovery** in the Advanced Sharing Center and enable services :         
1. Discovery Provider Host
2. Function Discovery Resourse Publication

#### ? net view show below, later stopped working :
```
Server Name            Remark       
--------------------------------------------------       
\\ORALIN76             Samba 4.9.1  
\\SSPC2                             

was :
\\SSPC1      
\\SSVBOX               Samba Server 4.8.3    


To complete reset of my network stack:

ipconfig /release
ipconfig /flushdns
ipconfig /renew
netsh winsock reset
netsh interface ipv4 reset
netsh interface ipv6 reset
netsh winsock reset catalog
netsh int ipv4 reset reset.log
netsh int ipv6 reset reset.log
netsh advfirewall reset

```










<br /><br /><br />


#### cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.6 (Maipo)          
[oracle@localhost ~]$ **cat /etc/os-release**         
NAME="Oracle Linux Server"  VERSION="7.6"   ID="ol"   VARIANT="Server"    VARIANT_ID="server"     VERSION_ID="7.6"    
PRETTY_NAME="Oracle Linux Server 7.6"   ANSI_COLOR="0;31"   CPE_NAME="cpe:/o:oracle:linux:7:6:server"      
HOME_URL="https://linux.oracle.com/"    BUG_REPORT_URL="https://bugzilla.oracle.com/"       
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 7"     ORACLE_BUGZILLA_PRODUCT_VERSION=7.6       
ORACLE_SUPPORT_PRODUCT="Oracle Linux"    ORACLE_SUPPORT_PRODUCT_VERSION=7.6       

#### sudo bash   or su -

whoami    
**oracle**

**hostnamectl**
```
[root@localhost ~]# hostnamectl
   Static hostname: oralin76        was localhost.localdomain
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 9e6407e94b0d4e1f8d899a0cb2b64149
           Boot ID: b7a0eeb6b9ef4776927f9aedc9ab79d4
    Virtualization: kvm
  Operating System: Oracle Linux Server 7.6
       CPE OS Name: cpe:/o:oracle:linux:7:6:server
            Kernel: Linux 4.1.12-124.27.1.el7uek.x86_64
      Architecture: x86-64
```

--------Win CLI Symenu -> Cmder :          
```
? net view - not working later        
Server Name            Remark       
-------------------------------------------------------------------------------       
\\SSPC2      
\\nothing               Samba Server 4.8.3    
```


## vbox 6.1.4
30-MART-2020
 

#### sudo gedit /etc/hosts    
```
128.127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4          
####::1         localhost localhost.localdomain localhost6 localhost6.localdomain6           

127.0.0.1 vbgeneric vbgeneric.localdomain         
192.168.5.12 sspc2           
```


**sudo chmod 755 /opt/lampp/htdocs -R**        /var/www/html/fw
resultd in eg :      
drwxr-xr-x. 1 root   root      86 Mar 30 08:26 img/    
-rwxr-xr-x. 1 root   root     260 Jul  9  2015 index.php*      

http://localhost/fwphp     

http://localhost:80   shows :    
Apache Friends   Applications   FAQs   HOW-TO Guides   PHPInfo (7.4.3)   phpMyAdmin

## Deploy web site win 10 64 bit -> VBOX Oracle Linux
Shared folder :   /media/sf_J_DRIVE    (/awww/www)      
[oracle@localhost ~]$ **cd /media/sf_J_DRIVE/awww/www**       
[oracle@localhost www]$ sudo rm -r /opt/lampp/htdocs/zinc/    
ls -ltr  /opt/lampp/htdocs     
#### sudo cp -r zinc/ /opt/lampp/htdocs
#### sudo cp -r fwphp/ /opt/lampp/htdocs
#### sudo cp -r vendor/ /opt/lampp/htdocs
#### sudo cp -r 01_DDL_mysql_blog.sql /opt/lampp/htdocs

sudo bash    
cd /media/sf_J_DRIVE/awww/www/fwphp/glomodul/blog/
#### sudo cp home.php  /opt/lampp/htdocs/fwphp/glomodul/blog/
chmod 755 /opt/lampp/htdocs/fwphp/glomodul/blog/home.php     
ls -alF  /opt/lampp/htdocs/fwphp/glomodul/blog/        


## Oracle_VM_VirtualBox_Extension_Pack-5.1.6-110634.vbox-extpack

**.vbox-extpack extension**. To install an extension, **double-click on the package**       
and a Network Operations Manager window will appear, guiding you through steps.       

Extension Pack is for All supported platforms - Install it with same version as installed version of VirtualBox.     
Support for **USB 2.0 and USB 3.0 devices**, VirtualBox **RDP** and **PXE** boot for Intel cards.       

To view the extension packs that are currently installed, start        
VirtualBox Manager -> File menu -> select Preferences-> go to the        
Extensions category - allows you to remove a package or add a new one.        
Alternatively you can use VBoxManage on the command line: see chapter 8.41, VBoxMan        
age extpack, page 184 for details.        

VirtualBox Remote Desktop Extension (**VRDE**) allows for high-performance remote access to any running virtual machine. This extension supports Remote Desktop Protocol (RDP) originally built into Microsoft Windows, with special additions for full client USB support.



## VBoxGuestAdditions_5.1.6.iso
This image file is located in the installation directory of VirtualBox: eg C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso       
To install the Guest Additions for a particular VM, you mount this ISO file in your VM (VM containing Linux in vbox) as a virtual CD-ROM and install from there.      

su -
yum update     

**if ERROR install VBoxGuestAdditions.iso (see 002_instalac02_2ERROR_add_guest_add.jpg)**        
cd /var/log     
ls      
gedit vboxadd-setup.log.highest_ver_eg_4 (I tried 4 times)   
**look for "please install"...  shift+ctrl+c them**     
yum install zlib-devel      
yum install elfutils-libelf-devel      
repeat install VBoxGuestAdditions.iso   

Right click on desktop -> Display setings -> 1920 x 1200 (16:10) then **rightctrl+f works**     

see chapter 4, Guest Additions, page 61/352 VBoxGuestAdditions.iso contains software packages which can be installed inside of supported guest systems to improve their performance and to provide additional integration and communication with the host system :     
  1. automatic adjustment of VIDEO RESOLUTIONS ee **rightctrl+f**
  2. MOUSE POINTER integration
  3. SEAMLESS WINDOWS -  windows that are displayed on the desktop of the virtual machine can be mapped on the host's desktop, as if the underlying application was actually running on the host See ch 4.6, page 74
  4. SHARED CLIPBOARD
  5. SHARED FOLDERS which let you access files from the host (Widows) system **from within a guest machine** see chapter 4.3 page 69
  6. accelerated 3D graphics
  7. Generic host/guest communication channels
  8. Time synchronization
  9. Automated logons (credentials passing) 


https://www.virtualbox.org/wiki/Downloads
J:\awww\apl\dev1\dev1_zinstalac_dok\linux\oralinux\vbox_UserManual.pdf




<br /><br /><br />
http://otodiginet.com/software/how-to-install-xampp-on-centos-7/      
[oracle@localhost ~]$ sudosudo yum update   I did not - 723 MB     
1. https://www.apachefriends.org/xampp-files/7.4.3/xampp-linux-x64-7.4.3-0-installer.run
2. ctrl + L     to see /home/oracle/Downloads in explorer,  ls -alF   ls -ltr
    cd Downloads/
    Add the execution mode for the file :
    [oracle@localhost Downloads]$ **chmod +x xampp-linux-x64-7.4.3-0-installer.run**
3. [oracle@localhost Downloads]$ **sudo ./xampp-linux-x64-7.4.3-0-installer.run**         
    installed to **/opt/lampp**

START /bin/firefox "http://localhost:80"   ERROR Running Firefox as root in a regular user's session is not supported.        
which firefox      
sudo /usr/bin/firefox "http://localhost:80"  same ERROR       

[oracle@localhost Downloads]$ which ProFTPD    
/usr/bin/which: no ProFTPD in (/home/oracle/Desktop/Database_Track/coffeeshop         
:/home/oracle/bin       
:/home/oracle/LDLIB       
:/u01/app/oracle/product/version/db_1/bin      
:/usr/sbin:/home/oracle/Desktop/Database_Track/coffeeshop      
:/home/oracle/java/jdk1.8.0_201/bin        
:/home/oracle/bin        
:/home/oracle/sqlcl/bin        
:/home/oracle/sqldeveloper        
:/home/oracle/datamodeler         
:/usr/local/bin    
:/usr/local/sbin         
:/usr/bin:/usr/sbin         
:/bin:/sbin         
:/home/oracle/sqlcl/bin         
:/home/oracle/sqldeveloper         
:/home/oracle/bin            
:/home/oracle/.local/bin        
:/home/oracle/bin)





<br /><br /><br />
<a name="utils"></a>
[Top](#top) | [Download](#download) | [VBox](#vbox) | [VM](#vm) | **[Utils](#utils)** | [XAMPP](#xampp) | [Samba ](#samba)   | [Deploy](#deploy) | [Lin. site access](#linsite)  
## Install important oralin73 Utils

### 1\. How to add user into sudoers in Red Hat Linux server  
to use "sudo"  

su -  
cd /etc  
ls -alF  
chmod +w sudoers  
gedit sudoers  
\--- scroll down in file and find line (root ALL=(ALL) ALL) ---  
\---- right there add this for the user (example userid: roman)---  
root ALL=(ALL) ALL  
ssoralin73 ALL=(ALL) ALL  
  
Exit & Save  
chmod -w sudoers  (make the sudoers READ-ONLY again)


### 2. notepadqq and geany
Open it so : winkey in gnome or sudo /usr/bin/notepadqq     

Alternate Repository for RPM based systems Fedora, CentOS, RHEL, OEL etc.    
1. $ cd /etc/yum.repos.d
2. $ sudo wget http://sea.fedorapeople.org/sea-devel.repo        
3. $ sudo yum install notepadqq         or $ sudo dnf install notepadqq


1. sudo yum install geany
2. sudo /usr/bin/geany

**notepadqq  unsuccessful**

https://github.com/notepadqq/notepadqq
sudo yum install -y qt5-qtbase-devel qt5-qttools-devel qt5-qtwebengine-devel qt5-qtwebsockets-devel qt5-qtsvg-devel uchardet qt5-qtwebchannel-devel pkgconfig


------Get the source
download .zip   or :

sudo yum install git
$ git clone --recursive https://github.com/notepadqq/notepadqq.git
cd notepadqq
------Build
      ERROR checking for c++... not found! :
./configure --prefix /usr
make

-- WARNING: Project ERROR: Unknown module(s) in QT: webenginewidgets
-- Project ERROR: uchardet development package not found
-- make: *** [sub-src-ui-make_first] Error 3

You can run notepadqq from its build output folder.
If however you want to install it, first build it by following the above steps, then run:
sudo make install



### 3\. Install  Locate (search) - allready installed  

1. sudo /usr/bin/locate
2. sudo yum install mlocate
updatedb

  

### 4\. Install GNU Midnight commander 4.8.7 (if needed)   

1. sudo yum install mc   (to /usr/bin/mc)
mc



<br /><br />
### 5\. Install Links text & graphic www browser ver 2.13  
    (has  good terminal tabs GUI)  

1. sudo yum install links  
sudo links
    
  

### 6\. Install gparted - unsuccessful
(needed in vbox guest ? how to see Win diks ?)  

su -c "yum install gparted"  
No package gparted available  

[http://tutorialforlinux.com/2017/03/14/how-to-install-gparted-on-red-hat-linux-desktop/](http://tutorialforlinux.com/2017/03/14/how-to-install-gparted-on-red-hat-linux-desktop/)  
enable the EPEL Repository (Extra Packages for Enterprise Linux) -Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux including, but not limited to, Red Hat Enterprise Linux (RHEL), RedHat and Scientific Linux (SL), Oracle Enterprise Linux (OEL).  
**Download Latest EPEL Release for RedHat 7**:  2017-06-24 15:08   15K  
https://dl.fedoraproject.org/pub/epel/7/x86\_64/e/  
su -c "rpm -ivh ./epel-release-7\*noarch.rpm"  
  
or  
**su -  
cd /tmp  
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm  
ls \*.rpm  
yum install epel-release-latest-7.noarch.rpm  
yum repolist**  
repo id                    repo name                                                        status  
epel/x86\_64       Extra Packages for Enterprise Linux 7 - x86\_64      11,932  
ol7\_UEKR4/x86\_64   Latest Unbreak.Enterp.Kernel R 4  for 7 Server   396  
ol7\_latest/x86\_64    Oracle Linux 7Server Latest (x86\_64)                19,362  
                                                                                          repolist: 31,690  
  
sudo yum install gparted  
start gparted:    sudo gparted

### **Win folder (eg aplw) shared in vbox settings**

1. su -  
2. ls -alF /media/sf\_aplw  
3. ls -alF** **/media/****sf\_2\_oralinux**

cp /media/sf\_2\_oralinux/1\_oralinux\_7\_2\_Downloads\_rpm.zip** **/home/ssoralin73  


**Not needed:**

cd /home/ss/Desktop       
su -       
mkdir /mnt/****sf\_aplw**  
**mount -t vboxsf fw /mnt/****sf\_aplw**  
**ls -alF /mnt/****sf\_aplw or** **ls -alF /mnt/****sf\_2\_oralinux**

### Server's public IP address

\[root@oralin73 ~\]#  **ip addr show enp0s3 | grep inet | awk '{ print $2; }' | sed 's/\\/.\*$//'**  
192.168.5.95  
fe80::9760:1dcd:9a9b:92

or  **curl http://icanhazip.com**  
89.164.133.80

  




<br /><br /><br />
<a name="vbox"></a>
[Top](#top) | [Download](#download) | **[VBox](#vbox)** | [VM](#vm) | [Utils](#utils) | [XAMPP](#xampp) | [Samba ](#samba)   | [Deploy](#deploy) | [Lin. site access](#linsite)  
## Install VirtualBox 6.1.4

### 1\. VirtualBox CLICK RIGHT CTRL TO FREE MOUSE !!

>**This is already done when using VM, but see Bridged, not NAT in VM !!!**.

1. Download  Oracle VM VirtualBox OR   https://www.virtualbox.org/wiki/Downloads         
    Oracle Linux 8.1 64 bit https://edelivery.oracle.com/osdc/faces/Home.jspx

2. Machine -> New or icon "New" in vbox main screen :
    1. Name for your VM **oralin81** Simmilar are RHEL, Fedora, CentOS (yum, rpm based Linux distros).      
        Machine folder: `J:\vbox_vms` (for oralin81.vdi)     
        Type of OS (operating system) Linux, version Oracle (64 bit)       
        click "Next"
        Select Memory size eg 4096 + 1024= 5120 MB  (6028) and click Next        
    2. Create a virtual hard disk now, expert mode VDI (VirtualBox Disk Image), Dinamically allocated, 
        `J:\vbox_vms\oralin81\oralin81.vdi`  100 GB (**8 GB for swap - required by Oracle 11g DB**)         
        click "Create" New Wizzard re-directs you back to vbox main screen.     

3. Settings -> General -> Advanced
    Snapshot folder is : `J:\vbox_vms\oralin81\Snapshots`  (`J:\vbox\VMs\ora11gxefedora\Snapshots`)
    Enable Shared Clippboard and Drag-drop both bidirectional        
    Settings -> System -> Processor -> 2 CPU (2 for Win 10 64 bit)          
    Settings -> Display -> Screen -> 128 MB        
    Settings -> Display -> Screen -> Enable 3D acceleration       
    Settings -> Network -> Adapter 1  -> Atached to: -> **Bridged, not NAT in VM !!!** adapter         
    (my is cable, Realtek PCIe GBE on Gigabyte Z68AP-D3, Intel Core i5 2500K, 16 GB DDR3 - recomended)     
    ->Promiscuous -> Mode: Allow all          

   Settings -> Shared folders -> Add -> Folder path and name J:\, or J:\awww\www, name: **JWIN**        
   My virt. Apache site doc.root on Win.10 is  J:\awww\www      
   Auto-mount check box for all Shared folders.     
   Mount point :

4. Settings -> Storage -> IDE controller -> **Click on Empty CD icon**.       
   On screen right side click on CD image icon for the CD/DVD drive        
   and click on the ?**Choose a virtual CD/DVD disk file**...?           
   L:\1_instalac\1_instalirano\linux\2_oralinux\000_0ralin_8_1_V984216-01.iso   7,5 GB      
   was L:\1_instalac\1_instalirano\linux\2_oralinux\7_5\V975367-01.iso    4,3 GB     
   



### 2\. Oracle_VM_VirtualBox_Extension_Pack-5.1.6-110634.vbox-extpack

>**This is already done when using VM**

**.vbox-extpack extension**. To install an extension, **double-click on the package**       
and a Network Operations Manager window will appear, guiding you through steps.       

Extension Pack is for All supported platforms - Install it with same version as installed version of VirtualBox.     
Support for **USB 2.0 and USB 3.0 devices**, VirtualBox **RDP** and **PXE** boot for Intel cards.       

To view the extension packs that are currently installed, start        
VirtualBox Manager -> File menu -> select Preferences-> go to the        
Extensions category - allows you to remove a package or add a new one.        
Alternatively you can use VBoxManage on the command line: see chapter 8.41, VBoxMan        
age extpack, page 184 for details.        

VirtualBox Remote Desktop Extension (**VRDE**) allows for high-performance remote access to any running virtual machine. This extension supports Remote Desktop Protocol (RDP) originally built into Microsoft Windows, with special additions for full client USB support.


### 33333
>**This is already done when using VM**      

#### 8 GB for swap - required by Oracle 11g DB (2 x memory = eg 12 GB)
5. Select Virtual Machine oralin81 that you just created.   Click on the green Start icon on the top of vbox screen.
Select 'install Oracle linux' and click Enter key.  Select language to use during the installation process.
Only ora Linux: Select **Server with GUI**. Minimal installation option is the installation without GUI.
         Select :Add ons for selected environment and choose :
         File and storage server
         Java platform
         Network filesystem client
         Performance tools
         Compatibility libraries
         Development tools --- at least this
         **not !!! KDE desktop (installs also Gnome)** 
Select other buttons (keyboard if not english, partitioning...)
ethernet  fwphp75   enp0s3    GENERAL: Automatic conn. to network   ipv4 :
during installation you will see 2 red warnings indicating that the       root password is not set and no users are created - create root account and user account 
When system reboots, you will be directed to perform the initial setup,
       click on the checkbox to accept the license agreement
       and click on the Done button on the top left corner.
       Click on the FINISH CONFIGURATION button to proceed.
       do not forget to remove the tick at Boot Order 'CD/DVD'.
Installation is finished.

su -
yum update     

**if ERROR see 002_instalac02_2ERROR_add_guest_add.jpg**        
cd /var/log     
ls      
gedit vboxadd-setup.log.highest_ver_eg_4    
**look for "please install"...  shift+ctrl+c them**     
yum install zlib-devel      
yum install elfutils-libelf-devel      

Right click on desktop then Display setings 1920 1200 (16:10) then **right ctrl+f works**     


<br /><br />
yum group list

dnf group list       
ping google.com   err NOT KNOWN       
lp a     shows if netw card is down (GUI is also down)        
ifup enp0s3       **now we can ping and dnf group**
dnf group list       

dnf group install workstation

uname -a 



<br /><br />
I tested also Centos 7.3 and Mint 18.2 Cinnamon - do not work for me (after OS update - problems with booting same as with oralinux 7.3). To install DB 11g XE I ended withoralinux 7.3 - works better than 7.2.     



### 44444 VBoxGuestAdditions_5.1.6.iso

>**This is already done when using VM**

This image file is located in the installation directory of VirtualBox:     
  eg C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso       
To install the Guest Additions for a particular VM, you mount this ISO file    
in your VM as a virtual CD-ROM and install from there.      

see chapter 4, Guest Additions, page 61/352
software packages which can be installed inside of supported guest
systems to improve their performance and to provide additional integration 
and communication with the host system. 
  - automatic adjustment of VIDEO RESOLUTIONS,
  - MOUSE POINTER integration
  - SEAMLESS WINDOWS -  windows that are displayed on the desktop of the
    virtual machine can be mapped on the host?s desktop, as if the underlying 
    application was actually running on the host See ch 4.6, page 74
  - SHARED FOLDERS which let you access files from the host system 
    from within a guest machine see chapter 4.3 page 69
  - accelerated 3D graphics
  - Generic host/guest communication channels
  - Time synchronization
  - SHARED CLIPBOARD
  - Automated logons (credentials passing) 







<br /><br /><br />
<a name="download"></a><a name="vm"></a>
[Top](#top) | **[Download](#download)** | [VBox](#vbox) | **[VM](#vm) **| [Utils](#utils) | [XAMPP](#xampp) | [Samba ](#samba)   | [Deploy](#deploy) | [Lin. site access](#linsite)
## Download to instalac dir

Instalac dir : **L:\1_instalac\1_instalirano\linux\1_virtualbox**

VirtualBox-6.1.4-136177-Win.exe

Oracle_VM_VirtualBox_Extension_Pack-6.1.4.vbox-extpack

DeveloperDaysVM2019-05-31_20.ova is **Oracle DB Developer VM** = Database Virtual Box Appliance = Virtual Machine  


**After install :**      

APEX: http://localhost:8080/ords/f?p=4550:1     
file:///u01/userhome/oracle/Desktop/APEX_Track/APEXTrack.html    
file:///u01/userhome/oracle/Desktop/APEX_Track/beginner_hol/Beginner_HOL.pdf    
Workspace = obe
Username  = obe
Password   = oracle

* All the Hands on Labs can be accessed by opening the ODDHandsOnLabs.html file on the Desktop.

* Oracle SQL Developer, Data Modeler, SQLcl and Rest Client can be found in the desktop menu Applications/Other.

The SQL Developer and Data Modeler scripts are in the directory:        
/home/oracle/Desktop/Database_Track/sqldevdm        
and          
/home/oracle/Desktop/Database_Track/sqldev          

The Application Express scripts are in the directory:      
/home/oracle/Desktop/APEX_Track/files

To Reset the labs:       
SQL Developer:            /home/oracle/reset_sqldev (includes ORDS, Data Modeler, Unit Test)          
Application Express:      /home/oracle/reset_apex         
REST Data Services :    /home/oracle/reset_rest (APEX related)         
SODA4REST :               /home/oracle/reset_soda4rest           
Soup to Nuts :              /home/oracle/reset_soup          
  -- APEX Labs Only       /home/oracle/reset_soup_apex_only       

Database Information:       
Oracle SID    : orclcdb        
Pluggable DB  : orcl              
Pluggable DB  : ords create if required by running:           
    'newpdbords' in the terminal - for ORDS pdb creation.          
         (if 'sqlplus system/oracle@ORDS' connects ORDS pdb has already been installed)          
    'loadstorm' in the terminal for spatial demo data - takes a few minutes.             

Please note that this appliance is for testing purposes only, as such it is unsupported and should not be used as a production environment.

try JDBC REST driver: sql HRREST/oracle@http://localhost:8080/ords/hrrest/
[oracle@localhost ~]$ 




<br /><br /><br />
**https://www.howtogeek.com/213795/how-to-enable-intel-vt-x-in-your-computers-bios-or-uefi-firmware/     **
Advanced -> CPU

L:\1_instalac\1_instalirano\linux\1_virtualbox       
J:\vbox_vms\Oracle DB Developer VM           


1. **VBOX** download https://www.oracle.com/virtualization/technologies/vm/downloads/virtualbox-downloads.html
2. **Oracle DB Developer VM** = Database Virtual Box Appliance / Virtual Machine      
    Set-Up instructions: Database Application Development Hands On Labs Updated: 6/20/2019       
    https://www.oracle.com/database/technologies/databaseappdev-vm.html
    https://download.oracle.com/otn/other/virtualbox/dd/DeveloperDaysVM2019-05-31_20.ova     
    7,817,064,448 bytes, md5sum: 20b5a5bd91cfe9d4f5acf5128f06146e, sha1: e0b9f8af8158664139b9ca970c3500752fc15fd2      
    Oracle Linux 7,  Oracle Database 19.3 Linux x86-64,  Oracle SQL Developer 19.1,  Oracle Application Express 19.1,       
    Hands-On-Labs (accessed via the Toolbar Menu in Firefox),  Oracle REST Data Services 19.1,  Oracle SQL Developer Data Modeler 19.1,    
    Oracle XML DB
3. **Import your VM**: File > Import Appliance to launch Appliance Import Wizard. Click Choose... to browse to the directory you re-assembled all the files in and select the OTN_Developer_Day_VM.ova then click Next> to begin importing the virtual machine. It will prompt you to agree to the appropriate developer licenses while importing. You will see 'Oracle Developer Days (Powered Off)' when it is finished importing.
4. **Test your VM**: Once the import has completed, double-click the OTN Developer Days VM. Click OK to close the Virtualbox Information dialogs. When you get to the Enterprise Linux 6 screen you can now login. (Username and password is oracle.) Allow the process to complete; it is ready when you see a terminal window, which you can close. Once you are finished working in the guest VM you can shut it down via System > Shut Down; this will return the guest VM to the Powered Off state.     
If you have any questions about this process, post a message to our Virtualization Discussion Forum (use hashtag "developerday" https://community.oracle.com/search.jspa?q=developerday&depth=ALL). Otherwise, you are now ready to complete the Hands-on Database Application Development HOLs at the workshop or at your desk. See you there!







Why vbox ? Before larger installations we make snapshot to return to (any previos) state-snapshot  before (failed) installation. 

https://www.thegeekdiary.com/beginners-guide-to-samba-installation-and-configuration/     
https://docs.microsoft.com/en-us/windows-server/storage/file-server/troubleshoot/detect-enable-and-disable-smbv1-v2-v3     
https://docs.microsoft.com/en-us/windows-server/storage/file-server/file-server-smb-overview    

https://docs.oracle.com/en/operating-systems/oracle-linux/7/admin/ol7-s1-sharedfs.html       

https://linuxconfig.org/install-samba-on-redhat-8

**https://wiki.samba.org/index.php/Main_Page**     
https://www.virtualbox.org/wiki/Downloads     
J:\awww\apl\dev1\dev1_zinstalac_dok\linux\oralinux\vbox_UserManual.pdf     


**file:///L:/1_instalac/1_instalirano/video/centos/Install_CentOS8_on_VirtualBox_Linux_Hint.html  - pictures  **
(https://linuxhint.com/install_centos8_virtualbox/)       

https://www.linuxtechi.com/install-configure-samba-centos-8/

https://davidghedini.com/pg/entry/install_oracle_11g_xe_on_centos/ 

https://www.youtube.com/watch?v=9lMifqB6Y8s         
https://www.youtube.com/watch?v=HSPbwezgMno         

https://appuals.com/how-to-fix-the-windows-10-file-sharing-not-working-problem/ 


L:\1_instalac\1_instalirano\linux\1_virtualbox\2_VirtualBox 5.1.26_forWindowshosts_oralinux7.3.txt

L:\1_instalac\1_instalirano\linux\2_oralinux\2_VirtualBox 5.1.26_forWindowshosts_oralinux7.3.txt

L:\_ISO\_ISO\LINUX\oracle_linux\Instalac11gXE_on_oralin7_6.txt

L:\1_instalac\1_instalirano\linux\2_oralinux\1_instalac_moj_oracle_linux_or_fedora_64bit_virtualbox_Apache_PHP_11gXE.html

L:\2_knjige\linux\z_doc\How to install Oracle Express Edition on Centos_RHEL - COMPUTER TECHNOLOGY SPECIAL.html


http://dev1:8083/fwphp/glomodul/mkd/?edit=01/001_config_ssl_tls/ftp.txt/

http://dev1:8083/fwphp/glomodul/mkd/markdown.html      
http://dev1:8083/fwphp/glomodul/mkd/?edit=001_MDcheatsheet.txt/    


http://dev1:8083/fwphp/glomodul/mkd/?edit=J:/awww/www/readme.md

This file : http://dev1:8083/fwphp/glomodul/mkd/?edit=01/001_vbox/01_instalac_oralinux_or_fedora_Apache_PHP_19_3c.txt

https://dev1/fwphp/glomodul/mkd/?showhtml=01/001_config_ssl_tls/ftp.txt

http://dev1:8083/fwphp/glomodul/mkd/?edit=01/001_config_ssl_tls/001_instalac_moj_vbox_oralin_8_1.txt

https://dev1/fwphp/glomodul/mkd/?showhtml=01/001_config_ssl_tls/001_instalac_moj_xampp_743.txt

https://dev1/fwphp/glomodul/mkd/?showhtml=01/001_config_ssl_tls/ftp.txt





For more information send a message to info at phpclasses dot org.