pygst is the python binding of Gstreamer which is a media-framework, it supports various media handling such as audio playback, video playback and editing. Installation open up the terminal and enter the following commands sudo apt-get update sudo apt-get install python-gst-1.0 Check if its working properly open up your python shell and import pygst aman@vostro:~$ python Python 2.7.11+ (default, Apr 17 2016, 14:00:29) [GCC 5.3.1 20160413] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pygst >>> if its not installed properly then an error message will be shown: ImportError: No module named pygst
Antlr is a parser generator written in Java. Execute these commands to download atlr .jar file in /usr/local/lib directory cd /usr/local/lib curl -O http://www.antlr.org/download/antlr-4.5-complete.jar add antlr4 to your class path. export CLASSPATH=".:/usr/local/lib/antlr-4.5-complete.jar:$CLASSPATH" create alias alias antlr4='java -Xmx500M -cp "/usr/local/lib/antlr-4.5-complete.jar:$CLASSPATH" org.antlr.v4.Tool' alias grun='java org.antlr.v4.runtime.misc.TestRig' Test installation java org.antlr.v4.Tool ANTLR Parser Generator Version 4.5 -o ___ specify output directory where all output is generated -lib ___ specify location of grammars, tokens files -atn generate rule augmented transition network diagrams ........... ........... The above 3 commands (one export and two alias commands) needs to be run every time you start a new terminal. To solve this problem put the three commands in your .bashrc file li...
With Python's SimpleHTTPServer you can quickly setup a webserver without any hassle. In order to use it, you don't need to install or configure anything.. you just need to have python installed on your server. Step 1: Open up your AWS console and in your instance security group make the Inbound & Outbound settings like shown in the sceenshots below Step 2: Login into your remote server via ssh example: aman@vostro:~$ ssh -i yourkeyfile.pem ubuntu@your-server-ip Read more »
Comments
Post a Comment