How can i install SMB Client on Openshift Gear - openshift

How can i install SMB Client on Openshift Gear
Actually i have successfully installed OwnCloud Using https://hub.openshift.com/quickstarts/4-owncloud
but the only problem is after installing the External storage support plugin it gives me hard warning Note: "smbclient" is not installed. Mounting of SMB / CIFS, SMB / CIFS using OC login is not possible. Please ask your system administrator to install it. so it clearly suggest that i need to install smbclient on the server which i cant install as i don't have sufficent privilage on server.
Can anybody help? Any cartrigde or any way to achieve it

SMB is not enabled for users to use on OpenShift online, and you are correct that users do not have the required permissions to install it. unfortunately there is really no way around this. If you need to use SMB Client, you really need your own Virtual Machine that you have root access to to install whatever software you need.

Related

Docker Portable deployment across machines: where to start

I need to install a new linux server on a vps, for using mysql, apache, php and some php appications.
In the future i might need to move this server to an other machine ( for example when i want to move the vps to a machine of my own in collocation).
I understand that with Docker, it is possible to just copy to whole server installation to another machine, without the need to reinstall everything.
But what is the most easy way to do this? What action do i need to when installing the new server? I guess i need to install Linux and the rest in a Docker installation. But i am not sure. Does anyone know a step by step guide?
I am new to Docker. I get overwhelmed with all the tools on How to scale Docker containers in production.
I want to use Plesk as well. Plesk supports Docker. Perhaps is that an easy way to go.
1) Create Dockerfile in which you describe actions that you need to do on image, you can find examples in offical documentation https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
2) Build image from Dockerfile
3) Register on docker hub
4) Push your image to docker hub
5) When you setup new server you just need to pull your image from hub

Database services on new vps

There are services like ServerPilot and many others that install on a vps that handle the lamp stack env. I'm wondering if there is a service that does this for databases. I install the service on a fresh vps and that the service would do all the heavy lifting like security, replication, separate read writes, back-ups and monitoring a long with easily setting up private network access for a set fee to use that service on my server.
Looking for a simple service to install on my own fresh vps, not RDS or Google Cloud.
Thank you!
What Does ServerPilot Really Do?
First, ServerPilot deploys complete LAMP stack on your server and that’s including world’s most used web server Apache, PHP5, and MYSQL. To make it even super, ServerPilot also installs and configures Nginx in front of Apache to achieve unbeatable speed and scalability.
Secondly, ServerPilot will secure your server with a firewall. To make it even secure, it will also update your server’s packages and make sure they stay updated all the time to avoid even single bug caused by outdated package.
Thirdly, ServerPilot also offers a premium feature to monitor real-time stats of your server’s performance including CPU, memory, disk space, and more.
What Does ServerPilot Not Do?
Meanwhile Serverpilot does not provide features related to installing, configuring and managing email and DNS. In this case you may need third-party DNS server to be able to point your domain to your VPS. Need recommendations? Try CloudFlare, PointHQ, NameCheap, etc.
Also, ServerPilot does not manage your server running other than Ubuntu.
Get more details at : http://www.servermom.org/install-manage-apache-nginx-php-mysql-easiest-serverpilot/1011/
I'm not sure about services, but assuming that your VPS is Ubuntu or some other Debian-based distro, you could perform sudo apt-get install lamp-server^ phpmyadmin on the command line to get your LAMP stack setup. This will setup Apache web server, PHP, and MySQL on your Linux server. Apache and PHP will come working out-of-the-box, and when you install MySQL, by default it asks for a root password to manage the database.
phpMyAdmin would be the key here because instead of doing all your database tasks via the command line, it provides a GUI interface in your web browser to manage databases and tables. To backup your database with phpMyAdmin, see this article.
With regards to customizations, for the firewall you can simply write a few iptables rules and for the database, you can run scheduled backups of a MySQL database by creating a cron job that runs the following command:/usr/bin/mysqldump -u dbusername -p'dbpassword' dbname > /path/backup.sql
Again, this isn't a service, but at least you wouldn't have to pay for any of the tools.
Unfortunately, there is no ultimate service than can perform all this stuff. However, you can set up this manually:
Database replication:
https://www.digitalocean.com/community/tutorials/how-to-set-up-master-slave-replication-in-mysql
Database backup:
http://www.ducea.com/2006/05/27/backup-your-mysql-databases-automatically-with-automysqlbackup/
or
https://www.backuphowto.info/how-backup-mysql-database-automatically-linux-users
Database optimization:
https://www.tecmint.com/mysql-mariadb-performance-tuning-and-optimization/
and
http://www.monitis.com/blog/101-tips-to-mysql-tuning-and-optimization/
And for the networking, this tutorial may be helpful
http://www.yolinux.com/TUTORIALS/LinuxTutorialNetworking.html

Openshift Mysql 5.5 cartridge how to access logs?

I need to review the mysql 5.5 server logs but I cannot find a way to get access them via ssh, sftp or mysqlworkbench. The mysql cartridge is in a scaled application. A solution?
There are a couple things here I'd like to point out that should provide some more information on how things work and how to get to the information you're looking for.
Scalable applications with DB's actually have the DB running in a separate gear than the application framework (for scaling purposes). For instance, if you ran rhc app show <appname> --gears for one of your scalable applications you would see that there are 2 gears being used and that the ssh information for each of them is different. So if you're just looking to take a quick look at your logs via ssh, you'll need to ssh into the appropriate gear to get to them.
You will need to use the rhc port-forward command to forward the right local ports to your database gear and then be able to connect mysqlworkbench from there.

SCP Sync Support for Amazon EC2 on PHPStorm

Is there anyway I can use PHPStorm to sync with my EC2 box through SCP? EC2 requires a private key to connect to it. I don't see any option for SCP in the deployment configuration section
SCP is file transfer over SSH, a newer version of which is SFTP. Both just work over SSH, if your server is accessible over SSH then these are the options you have. You're simply looking for the SFTP mechanism in PHPStorm with Auth type of "Key pair".
If you're looking for ES2 deployment integration, check Amazon EC2 plugin. It is compatible with current latest version of PHPStorm. Аmong other features, it provide SSH client allowing connections to EC2 instances.
Installation:
Download latest plugin version.
In PHPStorm open Settings (by default Ctrl+Alt+S). Then Plugins -> Install plugin from disk.
there is a plugin called source sync https://plugins.jetbrains.com/plugin/7374?pr= it might help you. or you may use SCP.
I tried with Phpstorm 3 without success but with the most recent version the ssh connection is working fine.
I was able to have the ssh connexion with the version Webstorm 2018.3

Cannot follow external database(MySQL) of openfire server quide

I have MySQL database which I created on university's server
I try to develop android application that can send msg from mobile through XMPP protocol to keep data at my database server(from 1.)
At this time, I already downloaded openfire 3.7.0.dmg(MAC OS X) then try to setup server on my laptop
My problem is I cannot follow Database Installation Guide the error occurred: Does not have mysqladmin command at my Terminal. So, I cannot create table for openfire. Should I need to install MySQL on my laptop ?
Moreover, I pretty much confuse with [YOUR_HOST] of this statement :
jdbc:mysql://[YOUR_HOST]/[DATABASE_NAME]
I don't know what is it? should be localhost or anything?
Anyone can help me ? Thank you so much
You need to have MySQL installed on one computer you have access to. If you want to install it on your Mac, you can either download it directly from mysql.com, or you could install it using a package manager like Homebrew.
Next, make sure your MySQL install can listen for connections over TCP; there's a troubleshooting guide for that.
Next, use the name of the machine your MySQL server is running on in place of [YOUR_HOST]. If it's running on the same machine as OpenFire, you can use localhost.