Top | Download | VBox | VM | Utils | XAMPP | Samba | Deploy | Lin. site access
2020.04.06 see http://dev1:8083/fwphp/glomodul/mkd/?edit=01/001_config_ssl_tls/001_instalac_moj_vbox_oralin_8_1.txt
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/
Top | Download | VBox | VM | Utils | XAMPP | Samba | Deploy | Lin. site access
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.
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
WinSCP FTP -> "New session" icon -> button "Edit" -> button "Advanced" assign SFTP value : /usr/libexec/openssh/sftp-server assign Shell value : sudo su -
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).
Top | Download | VBox | VM | Utils | XAMPP | Samba | Deploy | Lin. site access
http://oralin76/fwphp/www = fwphp site on vbox PC oralin76 - ERR_CONNECTION_REFUSED (why ?)
Same for http://192.168.5.13/fwphp/www
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
chances are you need only do http://192.168.5.13 or http://oralin76
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).
or httpd.conf is only listening on 127.0.0.1
See J:\awww\www\zinc\img\img_big\site_on_LAN_or_WEB.png :
#### 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>
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 :
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).
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),
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/
Top | Download | VBox | VM | Utils | XAMPP | Samba | Deploy | Lin. site access
L:\1_instalac\1_instalirano\5_virtualbox
xampp-linux-x64-7.4.3-0-installer.run
2023.2020.03.30
#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/
Listen 8083
ServerName localhost:8083
...
<Directory "J:/awww/www/">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
Now in J:\xampp\xampp-control.exe :
http://localhost:8083/ shows :
Apache Friends Applications FAQs HOW-TO Guides PHPInfo phpMyAdmin
dev1:8083/phpmyadmin/ shows Server: 127.0.0.1 Database :
in http://dev1:8083/phpmyadmin/import.php
To see http://dev1:8083/fwphp/www/ (dev1 is apache virtual host) :
First VirtualHost section is default or fallback virtual host,
used f or all requests that do not match ServerName or ServerAlias
in any \
<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
<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>
Top | Download | VBox | VM | Utils | XAMPP | Samba | Deploy | Lin. site access
Server Message Block version 2 (SMBv2) network protocol
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
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
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>
[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
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
\\server_name\share_name
or only \\server_name
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"
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
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
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
--------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 :
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
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
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
30-MART-2020
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:80 shows :
Apache Friends Applications FAQs HOW-TO Guides PHPInfo (7.4.3) phpMyAdmin
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 bash
cd /media/sf_J_DRIVE/awww/www/fwphp/glomodul/blog/
chmod 755 /opt/lampp/htdocs/fwphp/glomodul/blog/home.php
ls -alF /opt/lampp/htdocs/fwphp/glomodul/blog/
.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.
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 :
https://www.virtualbox.org/wiki/Downloads J:\awww\apl\dev1\dev1_zinstalac_dok\linux\oralinux\vbox_UserManual.pdf
http://otodiginet.com/software/how-to-install-xampp-on-centos-7/
[oracle@localhost ~]$ sudosudo yum update I did not - 723 MB
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)
Top | Download | VBox | VM | Utils | XAMPP | Samba | Deploy | Lin. site access
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)
Open it so : winkey in gnome or sudo /usr/bin/notepadqq
Alternate Repository for RPM based systems Fedora, CentOS, RHEL, OEL etc.
$ cd /etc/yum.repos.d
$ sudo wget http://sea.fedorapeople.org/sea-devel.repo
$ sudo yum install notepadqq or $ sudo dnf install notepadqq
sudo yum install geany
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
(has good terminal tabs GUI)
(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/
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
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**
[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
Top | Download | VBox | VM | Utils | XAMPP | Samba | Deploy | Lin. site access
This is already done when using VM, but see Bridged, not NAT in VM !!!.
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
Machine -> New or icon "New" in vbox main screen :
J:\vbox_vms
(for oralin81.vdi)J:\vbox_vms\oralin81\oralin81.vdi
100 GB (8 GB for swap - required by Oracle 11g DB)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 :
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
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.
This is already done when using VM
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
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
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.
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.
Top | Download | VBox | VM | Utils | XAMPP | Samba | Deploy | Lin. site access
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 ~]$
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
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