How to install Redis DeskTop manager for Ubuntu 14.04 - python

Can somebody suggest how to install redis desktop manager in ubuntu 14.04?
I want to use for python application. While I'm cloning from github, it's asking username and password, but I don't have such credentials. And when I'm installing by downloading zip file, it's not installing.
So please suggest some effective way.

how to install redis desktop manager in ubuntu 14.04?
Just follow the link for installing in ubuntu..
Ubuntu:
Download deb package from http://redisdesktop.com/download (Requires subscription)
Install package via Ubuntu Software Center
Run RedisDesktopManager : /usr/share/redis-desktop-manager/bin/rdm or redis-desktop-manager
These steps copied as-is from the link I provided.
While I'm cloning from github, it's asking username and password, but I d'nt have any such credentials.
to create your credentials it is easy.
Go to github site. https://github.com/join?source=header-home
Click on sighup.
fill the form, username, valid email, password. and Submit.
use the same creds for cloning the repo.
And when I'm installing by downloading zip file, it's not installing.
Please download the deb-file, and install via ubuntu software center

Related

Azure App Service ImportError: libmysqlclient.so.18: cannot open shared object file: No such file or directory

On App Azure Linux with Python, the Mysql module seem not work :
2018-12-24T19:11:38.215760010Z import _mysql
2018-12-24T19:11:38.215763810Z ImportError: libmysqlclient.so.18: cannot
open shared object file: No such file or directory
...
2018-12-24T19:11:27.536810347Z django.core.exceptions.ImproperlyConfigured:
Error loading MySQLdb module.
2018-12-24T19:11:27.536813747Z Did you install mysqlclient?
requirement :
django
mysqlclient
Has anyone ever managed to run django on azure web app?
This is a common error. Using mysqlclient also requires native dependencies to be installed: either the mysql client or the mysql-compatible mariadb client. In order to address these issues the easiest way, change your project to use mysql-connector-python instead of mysqlclient. You will also have to update your settings so that any database engine that uses django.db.backends.mysql should be updated to mysql.connector.django.
It sounds like there is not mysql native client library installed in your Azure App for Linux.
Here is two cases for building custom image.
For Debian or Ubuntu image, please run apt install libmysqlclient-dev firstly to preinstall libmysqlclient.so on your Docker image.
For Fedora or CentOS iamge, please run yum install mysql-libs firstly to preinstall the same one.
Or you can directly use the existing image which has preinstalled these required libs from Azure Container Registry or DockerHub.
Please take a try that go to the app service scm site, and find the pip location, then use pip to install the required module.

Python flask saml throwing saml2.sigver.SigverError Error Message

Has anyone succesfully implemented flask-saml using Windows as dev environment, Python 3.6 and Flask 1.0.2?
I was given the link to the SAML METADATA XML file by our organisation and had it configured on my flask app.
app.config.update({
'SECRET_KEY': 'changethiskeylaterthisisoursecretkey',
'SAML_METADATA_URL': 'https://<url>/FederationMetadata.xml',
})
flask_saml.FlaskSAML(app)
According to the documentation this extension will setup the following routes:
/saml/logout/: Log out from the application. This is where users go
if they click on a “Logout” button.
/saml/sso/: Log in through SAML.
/saml/acs/: After /saml/sso/ has sent you to your IdP it sends you
back to this path. Also your IdP might provide direct login without
needing the /saml/sso/ route.
When I go to one of the routes http://localhost:5000/saml/sso/ I get the error below
saml2.sigver.SigverError saml2.sigver.SigverError: Cannot find
['xmlsec.exe', 'xmlsec1.exe']
I then went to this site https://github.com/mehcode/python-xmlsec/releases/tag/1.3.5 to get xmlsec and install it. However, I'm still getting the same issue.
Here is a screenshot of how I installed xmlsec
where does not seem to find the xmlsec.exe
documentationis asking to have xmlsec1 pre-installed. What you installed is a python binding to xmlsec1.
Get a windows build of xmlsec1 from here or build it from source
And make it available in the PATH.
xmlsec won't work properly in windows, better use Linux environment
Type the below command before giving pip install xmlsec
sudo apt-get install xmlsec1

Checking out private repository on pip install

I've been working on an update to a server that requires a private GitHub repository. I can download the repo on my machine, because I'm able to enter a password when prompted. When I try to do this with my server, which is running on an Amazon EC2 instance, I don't have these prompts, so the module from the GitHub repository is not installed. Is there a way for me to provide the username and password in the installing file that I'm using for pip, so I can have the private repo module install successfully?
I'm using the -e git+<url>#egg=<name> in my requirements.txt
You can use SSH links instead of HTTPS links, like git#github.com:username/projectname.git instead of https://github.com/username/projectname.git, and use authentication keys instead of a password.
Step by step, you have to:
Change URL in requirements.txt to git#....
Create a key pair for your deployment machine and store it in ~/.ssh/ directory.
Add the key to you Github account.
Read the GitHub help pages for more detailed instructions.

How to contact specific pypi server using Chef and python_pip

We're running our own PyPi server. Now we're starting to use Chef to handle deployments. I'm trying to figure out the best approach to pip install from within a Chef recipe, contacting our custom server and passing credentials.
Typically we would intall packages like this:
pip install -i http://<server address:portno>/simple extremely_cool_package
The server prompts for username and password. The server speaks basic access authentication since it's behind our firewall.
Can python_pip do all this, and if so how? If not, what's the best practice?
The following isn't optimal, but it gets the job done:
python_pip "extremely_cool_package" do
action :install
options "--index-url=http://username:password#server address:portno/simple"
end
I was facing the same problem when trying to install from a pip repository.
The easiest way is to introduce your credentials ~/.pip/pip.conf in the form:
[global]
index-url = http://user:password#server_address:portno/simple
You can also put pip.conf in the root of your virtualenv folder and use pip install inside the virtualenv session.
Edit:
In order of avoiding your default pip library being replaced by the new one you should use
[global]
extra-index-url = http://user:password#server_address:portno/simple

Where to get the CherryPy auth_digest module?

I have a CherryPy web site running on a virtual ubuntu linux server. I'm attempting to move the application to a second, larger-memory server. Both servers appears to have CherryPy 3.2 installed (I just used apt-get to install it on the newer server).
The newer server, however, does not appear to have the CherryPy auth_digest module installed which is what I'm using for authentication. It is present in the CherryPy egg on the older server.
How can I update my copy of CherryPy to incorporate that module?
I wound up downloading the tar file (which I think may be a minor version or two more recent than what apt-get knows about) and using setup.py to install it. This version includes the digest authorization module.

Categories