Install Crossbar 0.12 from PPA on Ubuntu 14.04 - wamp

I am using the Ubuntu PPA for Crossbar and am running 0.11.1. I need the option to use certificate chains which does not seem to be available in this version; is there an easy mechanism to upgrade at this point either using the PPA or copying files manually? I've tried the other Pypy based setups before and haven't been confident about running them in production.

Related

aws-RunPatchBaseline doesn´t install new packages through apt-get

After running a few tests through AWS SSM Document aws-RunPatchBaseline, the content code used for Debian based OS like Ubuntu doesn´t truly install any required packages even setting this with "install" parameter and being executed. Is this something that needs to be fixed or why does this SSM document work this way without truly installing packages.
From documentation, please see below:
apt-get update downloads the package lists from the repositories and "updates" them to get information on the newest versions of packages and their dependencies. It will do this for all repositories and PPAs. From http://linux.die.net/man/8/apt-get:
Used to re-synchronize the package index files from their sources. The indexes of available packages are fetched from the location(s) specified in /etc/apt/sources.list(5). An update should always be performed before an upgrade or dist-upgrade.
apt-get upgrade will fetch new versions of packages existing on the machine if APT knows about these new versions by way of apt-get update.
From http://linux.die.net/man/8/apt-get:
Used to install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list(5). Packages currently installed with new versions available are retrieved and upgraded; under no circumstances are currently installed packages removed, nor are packages that are not already installed retrieved and installed. New versions of currently installed packages that cannot be upgraded without changing the install status of another package will be left at their current version. [Emphasis mine] An update must be performed first so that apt-get knows that new versions of packages are available.
Currently code content has this:
" apt-get update >/dev/null",
" fi",
"}",
¿Should I add a custom line or create a custom ssm with apt-get upgrade -y after apt-get update?, this document is supossed to work by installing packages, but so far on Ubuntu for example it just doesn´t do anything besides updating the package lists from repos (without installing any).
In my experience, on Ubuntu 20.04, it works. You can verify this by checking apt logs after you run AWS-RunPatchBaseline on such an instance. The logs are located in:
/var/log/apt/history.log
and
/var/log/apt/term.log
Since you have provided any details on what where your tests, which linux distribution did you use, nor provided any log output with possible errors of ssm agent or apt, it is difficult to speculate why it does not work for you.
The actual upgrade is performed by a python script, not the command you listed. You can inspect its code after you run AWS-RunPatchBaseline:
/var/log/amazon/ssm/patch-baseline-operations

Unable to download aptitude on AWS through Ubuntu

I am trying to harden my instance on AWS by downloading the Aptitude software package through Ubuntu. This is according to the steps listed in this website:
https://www.ibm.com/developerworks/linux/tutorials/l-harden-server/index.html
Typically, I would use apt-get, but I know that AWS uses yum instead. That being said, the aptitude software package is not found when using yum.
Does anyone know that installing aptitude is possible? If so, how?

How can i use the upgraded version of Sqlite3 for my Django project?

I am trying to create a django application on a server running on Centos 7. When i tried to migrate the application, i got the error:"SQLite 3.8.3 or later required (found 3.7.17)."
Thereafter I installed the latest-version of Sqlite3. When i run sqlite3 --version, it showns 3.28.0 which is the latest version.
Howevere, when I tried my migrate the project I got the same error i.e "SQLite 3.8.3 or later required (found 3.7.17)." Can someone please suggest how to ensure that python/django is configured with the latest version of sqlite3 rather than the older one which came along with the OS?
Unfortunately CentOS only has v3.7.17 in their repos.
So you need to install v3.8.3 or the latest from source.
To do that, you can install from source (I'm not sure how to use the precompile binaries)
Download the source code from sqlite downloads
cd /opt
wget https://www.sqlite.org/2019/sqlite-autoconf-3280000.tar.gz
tar -xzf sqlite-autoconf-3280000.tar.gz
cd sqlite-autoconf-3280000
./configure
make
sudo make install

How to add theano to anaconda python v2.7 on ubuntu 16.04?

I'm want to install theano into the anaconda package for python v2.7 on ubuntu 16.04. I already installed anaconda to the folder /opt/anaconda. Can some please guide me on how to install Theano package which is accessible by the anaconda packages. I've searched lot on google but not able find a clear solution to the problem.
I was recommended to switch back to 14.04 for theano, because t just stopped working on 16.04, but still I am also looking for a solid working guide.
There are some resources that explain how to set up these http://deeplearning.net/software/theano/install_ubuntu.html
and https://www.jayakumar.org/linux/gtx-1070-on-ubuntu-16-04-with-cuda-8-0-and-theano/

Can I install using Macports both py27 and py34 ports in the same location?

I've been using Python3.4 to complete certain tasks, though I still use Python2.7 as default.
I think I should be able to begin downloading py34 ports from using sudo port install py34-whatever in the same location as my Python2.7 ports.
However, I am running into significant downloading errors doing this.
Is it possible to download both py27 and py34 ports into the same location? Will there be problems doing this?
Your problems appear to be a generic Macports download problem. Resetting the download process via sudo port clean <portname> should help.
As to the general question of using multiple versions:
Macports allows you to install an arbitrary number of different versions in parallel. You switch between them using port select --set <application> <portname>, for example sudo port select --set python python34.
For easier access, you can define your own shell alias (e.g. python3 or python34), pointing to /opt/local/bin/python34.
My personal experience is that Anaconda makes these types of tasks painless. All the while providing the same functionality. http://docs.continuum.io/anaconda/install
Suppose you want an isolated environment for py27:
http://conda.pydata.org/docs/using/envs.html#create-an-environment
conda create --name py27 python==2.7.10
To use the environment:
source activate py27
To install a package, conda install or pip install.
If you want a Python 3.4 environment just change the above command a bit. I have no affiliation with Anaconda, and I would guess other Python distros work just as well. This just made things easier for me, hope it does for others as well!