If you need to do this from scratch I have followed these how-to-install-and-configure-php-70-or-php-71-on-ubuntu-16-04 insructions to install PHP7.0 and apache.
Once installed then
Follow these instructions to compile oci8 extentions Oracle tech note OCI8
Download the instant client from oracle’s web site here : Oracle instant client download
I downloaded the .ZIP files since I dont have RPM installed.
I then extracted it to ~/Downloads/instantclient_12_2
NOTE: Download the instantclient-basic-linux.x64-18.104.22.168.0.zip and instantclient-sdk-linux.x64-22.214.171.124.0.zip
Now we need to create the paths
sudo mkdir /usr/lib/oracle
sudo mkdir /usr/lib/oracle/12.2
sudo mkdir /usr/lib/oracle/12.2/client64
sudo mkdir /usr/lib/oracle/12.2/client64/lib
sudo cp * /usr/lib/oracle/12.2/client64/lib/
ln -s libclntsh.so.12.1 libclntsh.so
sudo mkdir /usr/include/oracle
sudo mkdir /usr/include/oracle/12.2
sudo mkdir /usr/include/oracle/12.2/client64
sudo cp * /usr/include/oracle/12.2/client64
Edit ld.so.conf and include oracle libs. Add a file called oracle.conf under /etc/ld.so.conf.d
sudo vi oracle.conf
PRESS ESC i
PRESS ESC :wq
Now to download and compile OCI8
sudo pecl install oci8 --with-oci8=instantclient,/usr/lib/oracle/12.2/client64/lib
On My machine it compiled it under ‘/usr/lib/php/20151012/oci8.so’ but look at the last few lines it should echo it.
First lets install a page to test that the configuration works.
sudo vi /var/www/html/t.php ( or xed /var/www/html/t.php if you dont know vi)
Press ESC i and paste
Press ESC :qw
now open your favorite browser and go to http://localhost/t.php and you should see a information page of php
to configure php do:
Edit oci8.ini with content
sudo service apache2 restart
My Installation now gave an error
if you get an error about libaio.so.1: cannot open shared object file: No such file or directory
sudo apt-get install libaio1 libaio-dev
Now we need to give the path to the libraries.
Edit /etc/apache2/envvars and add the flowing to the bottom of the file
php --ri oci8
Here is the steps I followed to get the domain controller’s SSL CA cert and configure PHP with LDAP to do LDAPS authentication on Active Directory (Domain Controller AD).
First let get the CA cert. If you dont have it, it can be done via openssl.
To get the CA cert
openssl s_client -connect :636
you will see all the values but what we are interested in is the –BEGIN CERTIFICATE — and –END CERTIFICATE—
so save all the output to a file :
openssl s_client -connect :636 > ca_cert.pem
then edit it: vi ca_cert.pem (or xed ca_cert.pem) and delete everything only leaving the –BEGIN CERTIFICATE — …. –END CERTIFICATE— including the –BEGIN CERTIFICATE — and –END CERTIFICATE— tages.
Rename the file to a more descriptive name for your CA
mv ca_cert.pem MyCA.pem
To make sure you have the right Domain you can always do a nslookup to verify the domain controllers.
Now to install the new CA cert on the server
To see where the cert dir is located do a : openssl version -d
New verify the installed certificate
(Mine was /etc/openssl/certs)
so I copy
cp ca_cert.pem /etc/openssl/certs
and to create the HASH
openssl x509 -noout -hash -in ca-certificate-file
grab the output hash (ie 23456789d)
then do a link
ln -s MaCA.crt 23456789d.0
Now to configure the LDAP to use secure LDAPS
openssl s_client -connect ANY_OF_THE_LDAP_SERVERS_GET_LIST_FROM_NSLOOKUP:636 -CAfile
/etc/ssl/certs/MyCA.pem -verify 0
Here is the tricky part. I have found that my PHP does not pick up the changes I have made on /etc/openldap/ldap.conf .
but start there first edit : xed /etc/openldap/ldap.conf (or vi /etc/openldap/ldap.conf if you prefer)
add these lines:
You can always add this to ensure that you accept all certificates
now test and to see any errors you can do a
sudo tail -f /var/log/apache2/error_log to see the errors
If it does not work (Like on my UNIX box HP-UX) then on your phpinfo(); page under “Environment” look for variable HOME and lts say its
Using PHP to autenticate
cp /etc/openldap/ldap.conf /srv/www/.ldaprc
Now when its configured now you can use Active Directory Include tom Source Forge
First we need to ensure that you USB is working on linux. In order to do this you need to go to users and groups and add yourself to the vboxusers group.
On my PC I only have USB 3.0 ports and had to give access to the VM for USB 3.0 on the VM Settings.
Then you probably need to logout and login to refresh the groups.
Now for the filter go to add filters:
Now remove everything accept the name and verndor tag. The reason for that is that these modems switch modes and then it does not pick it up anymore.
It should look like this:
Lastly you should install the USB3.0 Drivers for windows. I installed the Downloads for Intel USB 3.0 eXtensible Host Controller Driver
Here is my steps to get fetchmail to stop complaining about SSL certificates.
You Might get an error like :
fetchmail: Server certificate verification error: unable to get local
fetchmail: This means that the root signing certificate (issued for
/C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA
Certification Authority) is not in the trusted CA certificate locations,
or that c_rehash needs to be run on the certificate directory. For
details, please see the documentation of --sslcertpath and --sslcertfile
in the manual page.
I run my fetchmail like :
/usr/bin/fetchmail --ssl --sslcertck --sslcertpath=/etc/fetchmail/cert -a -K -f /etc/fetchmailrc
You need to get the server’s certificate and the CA certificate under /etc/fetchmail/cert
openssl s_client -connect server.yourdomain.com:993
look for Certificate chain
0 s:/OU=Domain Control Validated/OU=PositiveSSL/CN=server.yourdomain.com
and copy the section —–BEGIN CERTIFICATE—–
including the —–BEGIN CERTIFICATE—– and —–END CERTIFICATE—– sections to a file.
If you dont know how to do it what I normally do is highlight it in a terminal then in another terminal I do a :
and hit ESC I (vi insert command) right click with my mouse to paste and then ESC :wq (vi write & quit command)
Now all you need is the CA Cert. Have a look in the output of the openssl command and look for issuer. I had to download it form their site. If it was a legitimate issuer you might not need to do this part.
Now you need to do a
to rehash the certificates.
If you have an old PC converting it to Linux for a media player at home is great fun and I will let you know how I did mine. You can also watch Netflix or Showmax directly on your TV in Full HD.
- Get an old PC with preferably HDMI or DVI video out onboard.
DVI Port looks like:
If its DVI you would need a converter adapter to convert from DVI Male to HDMI Female. Look Like: (Picture is wrong its a DVI female you would need DVI male)
The only issue is that it will not have sound and you would require a separate audio cable for that. Maybe Stereo to RCA.
Now all you need is to download a Linux CD try Mint from Linux Mint.
For ShowMax to work you would need to download and install Google Chrome. Not Chromium and not Firefox. And you should download the Latest Ubuntu flavor from : Chrome
Now for your own Media MP3’s and MP4’s you have I suggest following the Kodi TV Addons instructions.