This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'bot11' | |
import sys, paramiko | |
hosts = {'host1': '192.168.1.1', | |
'host2': '192.168.1.2'} | |
port = 22 | |
username = 'user' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'bot11' | |
''' | |
Hop on to the servers and make the passwordauthentication no | |
''' | |
import sys | |
import paramiko as pm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Connect: | |
def __init__(self, ip, port): | |
self.ip = ip | |
self.port = port | |
def verify(self): | |
import socket | |
import telnetlib | |
session = None | |
try: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Connect: | |
def __init__(self, ip, port): | |
self.ip = ip | |
self.port = port | |
def verify(self): | |
import socket | |
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
try: | |
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'root' | |
from keystoneclient.v2_0 import client as keystoneclient | |
from neutronclient.neutron import client as neutronclient | |
import sys | |
kclient = keystoneclient.Client(auth_url="http://localhost:35357/v2.0/", | |
username="admin", tenant_name="admin", | |
password="devstack") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lets say: | |
IP Address of Raspberry: 192.168.0.106 | |
IP Address of ubuntu Desktop: 192.168.0.103 | |
IP Address of remote linux server to copy image files: 192.168.0.200 | |
1) On Raspberry pi , run the camera and stream using gstreamer as below: | |
raspivid -t 0 -w 800 -h 600 -fps 25 -g 5 -b 4000000 -vf -n -o - | gst-launch -v fdsrc ! h264parse ! gdppay ! tcpserversink host=192.168.0.106 port=5000 | |
2) On Ubuntu desktop, run the local rtsp server as below: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** Proxy configuration at the end of document. Make sure you have it in case if you internet is routed from proxy | |
Installation of chef server: | |
--------------------------- | |
1) Install pre-requisites: | |
$ apt-get update | |
$ apt-get install build-essential | |
$ apt-get install ruby1.9.3 | |
$ apt-get install ruby-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stack@devstackmac:~/devstack$ sudo PIP_DOWNLOAD_CACHE=/var/cache/pip HTTP_PROXY= HTTPS_PROXY= NO_PROXY= /usr/local/bin/pip install --build=/tmp/pip-build.RMFAI 'prettytable>=0.7' | |
The directory '/home/stack/.cache/pip/log' or its parent directory is not owned by the current user and the debug log has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag. | |
The directory '/home/stack/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag. | |
DEPRECATION: --download-cache has been deprecated and will be removed in the future. Pip now automatically uses and configures its cache. | |
The directory '/home/stack/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip wit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error description: | |
----------------- | |
'keystone middleware' is not a global requirement but it should be,something went wrong | |
Solution: | |
-------- | |
Update the oslo.config in all directories present at /opt/stack. | |
Change the requirements.txt and egg.info/requires.txt files only. | |
For example in cinder: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[local|localrc]] | |
HOST_IP=10.0.0.13 | |
# Credentials | |
DATABASE_PASSWORD=devstack | |
ADMIN_PASSWORD=devstack | |
SERVICE_PASSWORD=devstack | |
SERVICE_TOKEN=devstack | |
RABBIT_PASSWORD=devstack |
OlderNewer