Wednesday, January 27, 2016

Flash player installation in Ubuntu

Copied from:  www.adobe.com

Adobe Systems Incorporated
Flash Player 11 for Linux
Version 11.2.202.521
2015

Adobe recommends that all users upgrade to the latest version of Adobe Flash
Player for the most recent features, bug fixes, and security fixes.  For
more information on the new features in Flash Player 9, please visit
http://www.adobe.com/products/flashplayer/.  For more information on system
requirements, fixed issues, and known issues, see the release notes at
http://www.adobe.com/go/flashplayer_releasenotes.

To confirm which version of Flash Player you have currently installed, see
http://www.adobe.com/software/flash/about/. Users should only install
Players that have been downloaded from trusted sources, such as
http://www.adobe.com/.

Your use of this player is governed by the Adobe End User License Agreement
found at http://www.adobe.com/products/eulas/players/flash/.


Privacy
-------

Adobe is committed to preserving the privacy of end users. For more
information on configuring Client-side privacy visit the Settings Manager
Documentation: http://www.adobe.com/go/flashplayerhelp.


Installation instructions
-------------------------

Installing using the plugin tar.gz:
    o Unpack the plugin tar.gz and copy the files to the appropriate location. 
    o Save the plugin tar.gz locally and note the location the file was saved to.
    o Launch terminal and change directories to the location the file was saved to.
    o Unpack the tar.gz file.  Once unpacked you will see the following:
        + libflashplayer.so
        + /usr
    o Identify the location of the browser plugins directory, based on your Linux distribution and Firefox version
    o Copy libflashplayer.so to the appropriate browser plugins directory.  At the prompt type:
        + cp libflashlayer.so <BrowserPluginsLocation>
    o Copy the Flash Player Local Settings configurations files to the /usr directory.  At the prompt type:
        + sudo cp -r usr/* /usr

Installing the plugin using RPM:
   o As root, enter in terminal:
          + # rpm -Uvh <rpm_package_file>
          + Click Enter key and follow prompts

Installing the standalone player:
   o Unpack the tar.gz file
   o To execute the standalone player,
          + Double-click, or
          + Enter in terminal: ./flashplayer


Uninstallation instructions
---------------------------

Manual uninstallation (for users who installed the plugin via Install script):
   o Delete libflashplayer.so binary and flashplayer.xpt file in
   directory /home/<user>/.mozilla/plugins/

RPM uninstallation:
   o As root, enter in terminal:
          + # rpm -e flash-plugin
          + Click Enter key and follow prompts


Technical Issues and Reporting Bugs
-----------------------------------

The Adobe Flash Player Support Center at
http://www.adobe.com/support/flashplayer/ is a free online resource for
support and troubleshooting information. Bug reports may be submitted at
http://www.adobe.com/go/wish. To allow us to investigate reported bugs,
please include the following information:

1) Platform and version
2) Browser version
3) Reproducible steps including a URL to the web site where the problem
   was encountered.

If we need further information about a bug, you will be contacted. An
automated reply will be sent to assure you that we have received your
bug report. Due to the volume of mail received, we are not able to
individually respond to each report.

Use the following commands to generate dependency lists for Flash Player or the Local Setting Manager:

Flash Player:
ldd <BrowserPluginsLocation>/libflashplayer.so

Gnome Local Setting Manager:
ldd /usr/lib/kcm_adobe_flash_player.so (for 32-bit systems)
ldd /usr/lib64/kcm_adobe_flash_player.so (for 64-bit systems)

KDE Local Settings Manager:
ldd /usr/bin/flash-player-properties


Legal
-----

Adobe(R) Flash(R) Player. Copyright (C) 1996 - 2015 Adobe Systems
Incorporated. All Rights Reserved. Adobe and Flash  are either
trademarks or registered trademarks in the United States and/or
other countries.

ANTLR

How to write ANTLR grammar:
---------------------------

* Writing Verilog grammar for the output of VIS, the counter example

    ? : either zero or one
    + : One or more
    * : Zero or more

    Wildcard characters:
        '.' : All characters
        ~c : every character but c

Gimp:

Move selectin in Gimp

https://docs.gimp.org/en/gimp-using-selections.html

Saturday, September 5, 2015

Linux: Things I don't want to Google again

ssh: connect to host localhost port 22: Connection refused
------------------------------------------------------------------------------------------------------------
Error: 
ssh: connect to host localhost port 22: Connection refused

Solution:
install openssh-server
service ssh start
------------------------------------------------------------------------------------------------------------

Secure way of doing SSH: SSH with Keys 
------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------

How to set proxy in Ubuntu terminal
------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------


Using GREP
  ------------------------------------------------------------------------------------------------------------
    grep to search inside files in the same directory
    grep -nrw '.' -e "Input"

Installing Ubuntu (Credits: https://www.cse.iitb.ac.in/~aamod/ubuntu/install.html#repo)
------------------------------------------------------------------------------------------------------------

    You can either install Ubuntu by downloading the ISO file and creating a bootable device and create a disk partition, OR you can download the Windows Installer and install directly from windows.

    If you have another operating system already, it would be nice to backup your files (just in case). If in case you you blow up you Windows while trying to install Ubuntu (happened to me the first time I tried), you can download Windows from IIT Bombay's MS Store, if your from IIT Bombay. If your not from IIT Bombay, then God help you!

    You then also need to set up proxy settings if you are within the IIT Bombay network and repository settings if you need to install softwares and packages fast:

* Ubuntu Proxy Settings (Credits: https://www.cse.iitb.ac.in/~aamod/ubuntu/install.html#repo)
------------------------------------------------------------------------------------------------------------
Following is the way to get Ubuntu working under IITB proxy with apt-line installation
Ubuntu 11.04 and below, go to network proxy.

proxy either netmon.iitb.ac.in port 80 or www.aero.iitb.ac.in port 8081 for all protocols.

In exclusion list, add *.iitb.ac.in and 10.0.0.0/8.
Apply system wide

For Ubuntu 11.10 and above, go to Network from the dash. Network Proxy should be under it. Set proxy as above.

Now some files have to be edited:

Open terminal.
Type
sudo gedit /etc/apt/apt.conf /etc/environment /etc/wgetrc
This will open 3 files in gedit
      
If you are using aero proxy, P=http://www.aero.iitb.ac.in:8081/ . If you are using netmon, P=http://ldapusername:ldappassword@netmon.iitb.ac.in:80/. Use HTTP protocol only. No https://.... or ftp://....

        The /etc/apt/apt.conf should look like

        Acquire::http::proxy "P";
        Acquire::https::proxy "P";

        #### P is from previous step
        #### Notice: No FTP proxy
                   

        For /etc/environment,

        #### Something about PATH variable here

        http_proxy=P
        https_proxy=P
        ftp_proxy=P
                   
       
For /etc/wgetrc, Uncomment the proxy lines and replace the values by value of P. Uncomment the line use_proxy=on
       
Save files, restart Terminal and you are done!!!


* Ubuntu Repository Settings (Credits: https://www.cse.iitb.ac.in/~aamod/ubuntu/install.html#repo)
------------------------------------------------------------------------------------------------------------

    To use IITB apt software repositories in ubuntu, follow the steps:

        Make sure you have no FTP proxy in /etc/apt/apt.conf file. If you have followed proxy instructions from this wiki, you don't need to do anything.
        Make a backup of /etc/apt/sources.list if you want to.
        Open Terminal.
        Type & hit enter

    sudo gedit /etc/apt/sources.list

        A file will open in gedit. Replace all the contents by

        ######### Warning: Instead of maverick, use the name of your distribution in following lines
        # For 12.04, its 'precise'

        deb ftp://ftp.iitb.ac.in/os/ubuntu/archives/ maverick main restricted
        deb-src ftp://ftp.iitb.ac.in/os/ubuntu/archives/ maverick main restricted

        deb ftp://ftp.iitb.ac.in/os/ubuntu/archives/ maverick-updates main restricted
        deb-src ftp://ftp.iitb.ac.in/os/ubuntu/archives/ maverick-updates main restricted

        deb ftp://ftp.iitb.ac.in/os/ubuntu/archives/ maverick universe
        deb-src ftp://ftp.iitb.ac.in/os/ubuntu/archives/ maverick universe
        deb ftp://ftp.iitb.ac.in/os/ubuntu/archives/ maverick-updates universe
        deb-src ftp://ftp.iitb.ac.in/os/ubuntu/archives/ maverick-updates universe

        deb ftp://ftp.iitb.ac.in/os/ubuntu/archives/ maverick multiverse
        deb-src ftp://ftp.iitb.ac.in/os/ubuntu/archives/ maverick multiverse
        deb ftp://ftp.iitb.ac.in/os/ubuntu/archives/ maverick-updates multiverse
        deb-src ftp://ftp.iitb.ac.in/os/ubuntu/archives/ maverick-updates multiverse
                   

        Save the file.
        Run sudo apt-get update in Terminal. You are done.
        Now you can install softwares from IITB repositories. They are very fast as compared to HTTP repositories.

Tar in terminal
------------------------------------------------------------------------------------------------------------
    * tar -zcvf archive_name.tar.gz folder_to_compress

'Cannot open display error
------------------------------------------------------------------------------------------------------------
    * Use the following command
        DISPLAY=:0

Error: exit status 1: Autolaunch error: X11 initialization failed. Cannot open display:
------------------------------------------------------------------------------------------------------------
    * Solution:
        Added the following lines to ~/.bashrc
            xhost +
            alias sudo='sudo DISPLAY=:0'
    * Ref: 
        http://superuser.com/questions/514688/sudo-x11-application-does-not-work-correctly
    * After effects:
        Whenever I open a terminal it will show the warning given below
            access control disabled, clients can connect from any host

Mount and unmount iso file in termial
------------------------------------------------------------------------------------------------------------------
    Mount
        sudo mount -o loop /home/vineeshvs/software_installations/SPEC/cpu2006-1.2.iso /media/iso
        Ignore the error
            mount: block device /home/vineeshvs/software_installations/SPEC/cpu2006-1.2.iso is write-protected, mounting read-only
    Unmount
        sudo umount /media/iso/



TEXiLA, give it a shot...

LaTeX : From the mistakes I made 

Use label after caption so that reference to figure will come correctly
------------------------------------------------------------------------------------------------------------
correct
\begin{figure}[here]
\center
\includegraphics[width=0.5\textwidth]{../images/ex_circuit.png}
\caption{Connecting the output of the circuit to DSO}
\label{ex_circuit}
\end{figure}

Wrong
\begin{figure}[here]
\center
\includegraphics[width=0.5\textwidth]{../images/ex_circuit.png}
\label{ex_circuit}\caption{Connecting the output of the circuit to DSO}
\end{figure}
------------------------------------------------------------------------------------------------------------

Use \noindent if the text is not aligned to left

Using bibtex?
------------------------------------------------------------------------------------------------------------
You should do the compilation as follows (so that citations will come correctly)
pdflatex -> bibtex ->pdflatex -> pdflatex
Ref: http://tex.stackexchange.com/questions/204291/bibtex-latex-compiling
------------------------------------------------------------------------------------------------------------
Download IEEE BibTeX Bibliography Style file for IEEE Journals and Conferences
------------------------------------------------------------------------------------------------------------http://www.dlsi.ua.es/wemis09/styles/IEEEtran.bst
------------------------------------------------------------------------------------------------------------








Thursday, February 13, 2014

Install 'qhsim' and 'vsim' in Ubuntu

 Verified on : Ubuntu 12.04 LTS

  • Install modelsime student edition from http://download.altera.com/akdlm/software/acdsinst/13.1/162/ib_installers/ModelSimSetup-13.1.0.162.run
  • Go to the folder in which the .run file is located and type chmod +x filename.run, it will install modelsim (which contains qhsim, vsim etc)
  • To start qhsim, change directory to /home/vineeshvs/altera/13.1/modelsim_ase/bin. There you can find the binaries (/executables) for the following


drill     mc2autopart    qhcvt      qhlib  qverilog  scgenmod vcom      vdir           vhencrypt  vmap   wlf2log   xml2ucdb
dumplog64 mc2com         qhdel      qhmake qvhcom    sdfcom   vcover    vencrypt       vlib       vopt   wlf2vcd
hm_entity mc2perfanalyze qhdir      qhmap  qvlcom    sm_entity vdbg      verror         vlog       vrun   wlfman
jobspy    mc2_util       qhgencomp  qhsim  sccom     vcd2wlf   vdel      vgencomp       vmake      vsim   wlfrecover



  • To start qhsim, type ./qhsim
One of the projects using qhsim

VIS & VL2MV

18/01/2016: -----------     Installing VIS model checker     ----------------------------         Download from: http://vlsi.colorado.edu/~...