Showing posts with label Terminal. Show all posts
Showing posts with label Terminal. Show all posts

Sunday, September 1, 2013

How to run Google Chromium browser from the terminal

In case you need to run the Google Chromium browser from the terminal (such as my case where my unity is messed up/broken), you can use the simple command

chromium-browser


http://ubuntuforums.org/showthread.php?t=1811171

Wednesday, August 24, 2011

Pre-built Binary Install and Compile from Source Install — Sage Installation Guide v4.7.1

Pre-built Binary Install — Sage Installation Guide v4.7.1 - http://www.sagemath.org/doc/installation/binary.html

In order to install a binary (a pre-compiled version) of Sage:

1) Go here -> Download for Linux - http://www.sagemath.org/download-linux.html

and choose a mirror.


2) Choose you system bit type then system appropriate file -> my case was 64-bit and I chose the smaller file to download

sage-4.7.1-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux.tar.lzma


*.lzma compressed binaries can be extracted via
tar --lzma -xvf sage-*...tar.lzma
They save you about 150MB to download.




3) Then extract package and move to desired folder location. For additional path naming etc. information see -> Pre-built Binary Install - http://www.sagemath.org/doc/installation/binary.html

I, for example, simply extracted it into the folder it was downloaded to -> home/Downloads then moved it to home.



4) Then simply execute the Sage command by typing:

./sage

in the directory. If you don't and try to double click on it like the big dummy I am then it won't run and you might get confused and try to run make (like I did) which is not necessary, but you can do it :). Sage will then open in a browser, but on your local machine. Sage is heavy on being online based (works in a web browser) so that is why it opens in a browser.



Also see link:

Quick Download and Installation Guide - http://wiki.sagemath.org/DownloadAndInstallationGuide



If you choose to compile yourself,

1) then download the source file from the mirror of your choice:


2) You may have to do extra steps (see below), but then run the command "make" without quotations (simply type make) in a terminal command line IN the directory where the "sage" file is located.


Source Code - http://www.sagemath.org/download-source.html

Information

Thank you for your interest in Sage! You can get the complete source for Sage to compile it on your own Linux or Mac OS X system. Sage lives in an isolated directory and does not interfere with your surrounding system. It ships together with everything necessary to develop Sage, the source code, all its dependencies and the complete changelog.

Short instructions:

Extract archive

Start compiling:
make

Run Sage: .
/sage

Upgrade to newer version later:
./sage -upgrade

Please read the README.txt and the installation guide for more details. Note: On Linux systems like Debian/Ubuntu, you may have to install the build essential package, the m4 macro processor, and gfortran:

sudo apt-get install build-essential
sudo apt-get install m4
sudo apt-get install gfortran

You might also consider installing the readline package and its corresponding development headers. These packages make it easier to work with the Sage command line interface by providing text editing features at the command line level:

sudo apt-get install readline-common
sudo apt-get install libreadline-dev

There is a very high level changelog.

You can browse all the tracked source code repositories and see exactly what's going on, and who did what when.

Upgrading to/Installation of Kile 2.1

Ubuntu does not update Kile from 2.1 beta 4 to the latest 2.1 release. In order to update you can do two things.

1) Compile your own like I did with wxMaxima

How to compile Kile for Linux/BSD - http://kile.sourceforge.net/help.php#compile

2) Or find someone that has already compiled a deb package install like I should have looked for one for wxMaxima. (I have found the PPA for wxMaxima here -> Maxima and wxMaxima by István Blahota - https://launchpad.net/~blahota/+archive/wxmaxima as ppa:blahota/wxmaxima and have added it to my original wxMaxima post too.)

In this forum topic, I found a PPA (Personal Package Archive) which once added to the repositories and updated will then install once you run the update manager.

[SOLVED] Kile upgrade - Ubuntu Forums - http://ubuntuforums.org/showthread.php?t=1773808

See here for PPA explanation. I've used it several times without knowing what it was or did. Now I think I understand a little bit better.

How do I use software from a PPA? - https://launchpad.net/+help/soyuz/ppa-sources-list.html

To start installing and using software from a Personal Package Archive, you first need to tell Ubuntu where to find the PPA.

Important: The contents of Personal Package Archives are not checked or monitored. You install software from them at your own risk.

Adding the PPA to Ubuntu 9.10 (Karmic) and later

If you're using the most recent version of Ubuntu (or any version from Ubuntu 9.10 onwards), you can add a PPA to your system with a single line in your terminal.

Step 1: On the PPA's overview page, look for the heading that reads Adding this PPA to your system. Make a note of the PPA's location, which looks like:

ppa:gwibber-daily/ppa

Step 2: Open a terminal and enter:

sudo add-apt-repository ppa:user/ppa-name

Replace ppa:user/ppa-name with the PPA's location that you noted above.

Your system will now fetch the PPA's key. This enables your Ubuntu system to verify that the packages in the PPA have not been interfered with since they were built.

Step 3: Now, as a one-off, you should tell your system to pull down the latest list of software from each archive it knows about, including the PPA you just added:

sudo apt-get update

Now you're ready to start installing software from the PPA!


So in this case do:

sudo add-apt-repository ppa:kile/stable

sudo apt-get update

(launchpad.net link -> Kile - kile stable - https://launchpad.net/~kile/+archive/stable)

Then run the update manager either from the apps (GUI tool - Ubuntu Update Manager) or the terminal in the command line (I don't know the terminal command).

Ah, found it here -> How do I update Ubuntu Linux softwares? - http://www.cyberciti.biz/faq/how-do-i-update-ubuntu-linux-softwares/

sudo apt-get upgrade


From the site:

=> apt-get update : Update is used to resynchronize the package index files from their sources via Internet.

=> apt-get upgrade : Upgrade is used to install the newest versions of all packages currently installed on the system

=> apt-get install package-name : install is followed by one or more packages desired for installation. If package is already installed it will try to update to latest version.

Saturday, August 20, 2011

wxMaxima - Community Ubuntu Documentation - Installing the latest version by compiling and PPA

In order to install the latest wxMaxima (a Mathematica type software) by compiling the source code yourself follow these instructions (this is not necessary as you can use the PPA that I provide further below). The Ubuntu SC only installs 0.8.5 while the latest version as of this date is 11.8.0

wxMaxima - Community Ubuntu Documentation

Download the latest version here: http://sourceforge.net/projects/wxmaxima/files/

Uninstall the old version if you have one.

sudo apt-get remove maxima-doc wxmaxima


Then:

You will need the virtual package "build-essential" for making the package and the package "checkinstall" for building a debian package. So if you don't have it or are unsure,
sudo apt-get install build-essential checkinstall

Now its time to extract, configure, make and install your package:

tar xfvz /"locationof"/wxMaxima-"latest-version".tar.gz
sudo apt-get build-dep wxmaxima
cd /"locationof"/wxMaxima-"latest-version"/
./configure --enable-dnd --enable-printing --enable-unicode-glyphs --prefix=/usr --exec-prefix=/usr
make
sudo checkinstall


After
sudo apt-get build-dep wxmaxima
I extracted the .tar.gz file because the /"locationof"/wxMaxima-"latest-version"/ directory didn't exist until you do this. You may be able to do this (extract) earlier. Then follow the rest of the directions:

ay "yes" to create a document package and paste the description of Maxima off of the website pasted bellow:

wxMaxima is a cross platform GUI for the computer algebra system maxima based on wxWidgets.

When this is done type "0" then "ENTER" and enter your email address so that people know who you are if they use your package you@somewhere as an example

hit "ENTER" and hope for the best. Checkinstall attempts to build you a deb package which it automatically installs by default and is also included in the directory you made WxMaxima, i.e. the deb is in /"locationof"/WxMaxima-"latest-version"/. Thus if everything goes smoothly you now have the latest version of wxmaxima installed.

I have found the PPA for wxMaxima here -> Maxima and wxMaxima by István Blahota - https://launchpad.net/~blahota/+archive/wxmaxima as ppa:blahota/wxmaxima.

Thus to install via PPA:

sudo add-apt-repository ppa:blahota/wxmaxima

sudo apt-get update

Then install from USC (Ubuntu Software Center) or if an older version is already installed simply type into the terminal command line:

sudo apt-get upgrade

Links to Maxima and wxMaxima:


Maxima, a Computer Algebra System - http://maxima.sourceforge.net/

Maxima is a system for the manipulation of symbolic and numerical expressions, including differentiation, integration, Taylor series, Laplace transforms, ordinary differential equations, systems of linear equations, polynomials, and sets, lists, vectors, matrices, and tensors. Maxima yields high precision numeric results by using exact fractions, arbitrary precision integers, and variable precision floating point numbers. Maxima can plot functions and data in two and three dimensions.

The Maxima source code can be compiled on many systems, including Windows, Linux, and MacOS X. The source code for all systems and precompiled binaries for Windows and Linux are available at the SourceForge file manager.

Maxima is a descendant of Macsyma, the legendary computer algebra system developed in the late 1960s at the Massachusetts Institute of Technology. It is the only system based on that effort still publicly available and with an active user community, thanks to its open source nature. Macsyma was revolutionary in its day, and many later systems, such as Maple and Mathematica, were inspired by it.

The Maxima branch of Macsyma was maintained by William Schelter from 1982 until he passed away in 2001. In 1998 he obtained permission to release the source code under the GNU General Public License (GPL). It was his efforts and skill which have made the survival of Maxima possible, and we are very grateful to him for volunteering his time and expert knowledge to keep the original DOE Macsyma code alive and well. Since his passing a group of users and developers has formed to bring Maxima to a wider audience.

We are constantly updating Maxima, to fix bugs and improve the code and the documentation. We welcome suggestions and contributions from the community of Maxima users. Most discussion is conducted on the Maxima mailing list.

Some screen shots from the Maxima site:

Xmaxima 5.18 running on Linux (with Tk 8.5) with the Embedded plot windows option:

Xmaxima running on Windows:

Maxima running in GNU Emacs:

Maxima 5.18 running in command line mode in Linux:

Maxima running in GNU TeXmacs:

Maxima running in GNU Emacs with Imaxima mode:

Maxima Documentation - http://maxima.sourceforge.net/documentation.html


wxMaxima - http://andrejv.github.com/wxmaxima/

About

wxMaxima is a document based interface for the computer algebra system Maxima. wxMaxima uses wxWidgets and runs natively on Windows, X11 and Mac OS X. wxMaxima provides menus and dialogs for many common maxima commands, autocompletion, inline plots and simple animations. wxMaxima is distributed under the GPL license.

Some screen shots from wxMaxima:

wxMaxima on Linux:



wxMaxima on Mac OS X:

Some interesting links from the Maxima website:

Related Projects

Stand-alone user interfaces for Maxima

Imaxima and imath

Developers: Jesper Harder, Yasuaki Honda.

“Imaxima.el provides support for interacting with the computer algebra system Maxima in an Emacs buffer. Imaxima processes the output from Maxima with TeX and inserts the resulting image in the buffer.”

→ http://sites.google.com/site/imaximaimath/
Kayali

Developer: Abdulhaq Lynch.

“Kayali is a Qt based Computer Algebra System (CAS) that can also be used as an advanced replacement for KDE KCalc. It is essentially a front end GUI for Maxima (and is easily extended to other CAS back-ends) and Gnuplot.”

→ http://kayali.sourceforge.net/
LyX

There is a way to send commands to Maxima from the LyX document processor. It's somewhat different from the TeXmacs functionality, but does seem to be functional at least on a basic level.

See an example document: http://maxima.sourceforge.net/lyx+maxima.lyx.

→ http://www.lyx.org/
Symaxx2

Developer: Markus Nentwig.

“Symaxx is a graphical front end for the Maxima computer algebra system (GPL).”

→ http://symaxx.sourceforge.net/
TeXmacs

Developer: Joris van der Hoeven.

“GNU TeXmacs is a free wysiwyw (what you see is what you want) editing platform with special features for scientists. The software aims to provide a unified and user friendly framework for editing structured documents with different types of content (text, graphics, mathematics, interactive content, etc.).”

→ http://www.texmacs.org/
wxMaxima

Developers: Andrej Vodopivec et al

“wxMaxima is a cross platform GUI for the computer algebra system maxima based on wxWidgets. It provides menu and dialog based interface for maxima and a nice display of math output.”

→ http://wxmaxima.sourceforge.net/

Web interfaces running Maxima

Calc.Matthen.com

Online integrator, differentiator, graph plotter, etc.

→ http://calc.matthen.com/
Interactive Demos of Mathematical Computations

(Institute for Computational Mathematics at Kent State U)

→ http://icm.mcs.kent.edu/research/demo.html
Mathematical Assistant

Developers: Robert Marik, Miroslava Tihlarikova.

“This site contains interface to access computer algebra system Maxima and automatically solve selected typical problems from mathematical courses, including intermediate steps in the solution.”

Mathassistant project page at Sourceforge.

→ http://user.mendelu.cz/marik/maw/index.php?lang=en
Maxima-Online

Developer: Piotr Lewalski

“Maxima-Online is a web based front end to the oryginal Maxima command line program. It's task is to deliver an interface which is simple and easy to use.”

→ http://maxima-online.lewalski.pl/
MaximaPHP

Developer: Bowo Prasetyo

“A PHP program to access Maxima on the server interactively from a website.”

See also: Maxima show-case.

See also: MaximaPHP project page at SourceForge.

→ http://www.my-tool.com/mathematics/maximaphp/
WebMathematics Interactive

Developer: Zoltan Kovacs, U Szeged, Hungary.

WMI On-line demo
Documentation (including 3 short movies in English and 3 in Hungarian)
Old version
Details of development (obsolete)

→ http://wmi.math.u-szeged.hu/wmi/math.php

Systems using Maxima as a component in a larger scheme

Euler

Developer: Rene Grothmann.

“Euler is a MatLab like numerical system with a GUI frontend in notebook style ala Maple, plot features, and a numerical programming language. Euler can be used as a GUI frontend to Maxima. It can also exchange data and expressions with Maxima, helping Maxima with numerical calculations, and Euler with symbolic evaluation.”

→ http://mathsrv.ku-eichstaett.de/MGF/homes/grothmann/euler/
GeoGebraCAS

Developer: Markus Hohenwarter et al.

“GeoGebra is free and multi-platform dynamic mathematics software for all levels of education that joins geometry, algebra, tables, graphing, statistics and calculus in one easy-to-use package. GeoGebraCAS extends the Computer Algebra System (CAS) features of GeoGebra to allow students to work with fractions, equations, and formulas that include variables.”

→ http://www.geogebra.org/trac/wiki/GeoGebraCAS/Documentation
The LearningOnline Network with CAPA

Developer: Gerd Kortemeyer.

“Sharing and using online learning and assessment materials across institutions and disciplines.”

Computer Algebra System (notes about integration of Maxima with LON-CAPA).

→ http://www.lon-capa.org/
MathDrag'n

Developer: James Hart.

MathDrag'n project page at SourceForge.

“MathDrag'n is an interface designed to help you, the user, maintain almost complete control over the algebra while stopping you from making mistakes. In contrast to most computer algebra systems, MathDrag'n's philosophy is that the user interface is first, and that ease of use is what you want.”

→ http://mathdragn.squarespace.com/
Mediawiki Algebra extension

Developer: Markus Arndt.

defines a maxima session. Any line terminating with a semicolon is passed to maxima for evaluation. For all other lines the wiki syntax applies.”

→ http://meta.wikimedia.org/wiki/User:Mafs/Computer_algebra
SAGE

“Sage is a comprehensive open-source mathematics software suite that has the mission statement ‘Creating a viable free open source alternative to Magma, Maple, Mathematica, and Matlab.’”

SAGE web interface.

→ http://sagemath.org/
STACK

Developer: Chris Sangwin, U Birmingham, UK.

STACK SourceForge project page.

→ http://www.stack.bham.ac.uk/
WIMS

→ http://wims.unice.fr/wims/en_home.html

Third Party Code

There are some packages we cannot include in the official Maxima distribution due to legal restrictions or because they are not in a stable state yet.

If you know any old Macsyma code still available on the Internet or new Maxima packages that should be included in this list, please tell us about it so we can add a link or even add it to the official distribution, if its license is compatible with Maxima's.

A collection of user-contributed code
Misc code by Willy Hereman et. al.
A series of interesting Macsyma packages. Commercial use is not permitted without consent of the authors.
Pw.mac
The package pw.mac extends Maxima by enabling it to work with piecewise continuous functions.
Qinf (quantum information and entanglement package)
A quantum information package that allows the manipulation of instances of objects — operators, vectors, tensors, etc. — that appear in the theory of quantum information and quantum entanglement.
SymSAP
Symbolic matrix analysis of structures. SymSAP aims to become a powerful didactic tool to help students learn structural analysis.
rfMaxima
rfMaxima allows for symbolic derivation, as well as numerical evaluation (incl. Bode and Smith chart plotting), of 2-port network (ABCD, G, InverseABCD, H, S, Y, and Z), noise and stability parameters. Derivations are based on the solution of the set of Kirchoff current and voltage law equations representing the 2-port. Expressions can be exported to HTML or TeX. Figures can be exported to EPS or PNG.

Other Open Source Computer Algebra Systems


Axiom

“Axiom is a general purpose Computer Algebra system. It is useful for doing mathematics by computer and for research and development of mathematical algorithms. It defines a strongly typed, mathematically correct type hierarchy. It has a programming language and a built-in compiler.”

There is also an interesting Rosetta Stone which offers translations of many basic operations for several computer algebra systems, including Maxima.

→ http://axiom-developer.org/
GAP

“GAP is a system for computational discrete algebra, with particular emphasis on Computational Group Theory.”

→ http://turnbull.mcs.st-and.ac.uk/~gap/
Jasymca

“Jasymca is a symbolic calculator written for mobile phones and PDAs. It solves and manipulates equations, handles basic calculus problems, and provides a few more typical functions of computer algebra systems. The syntax is loosely related to GNU-Maxima.”

→ http://webuser.hs-furtwangen.de/~dersch
REDUCE

“REDUCE is an interactive system for general algebraic computations of interest to mathematicians, scientists and engineers.”

→ http://reduce-algebra.com
SINGULAR

“SINGULAR is a Computer Algebra System for polynomial computations with special emphasis on the needs of commutative algebra, algebraic geometry, and singularity theory.”

→ http://www.singular.uni-kl.de/
Yacas

“YACAS is an easy to use, general purpose Computer Algebra System, a program for symbolic manipulation of mathematical expressions. It uses its own programming language designed for symbolic as well as arbitrary-precision numerical computations.”

→ http://yacas.sourceforge.net/

Other Open Source Mathematical Software

Oberwolfach References on Mathematical Software: http://orms.mfo.de/
Free mathematical and computational software directory: http://cadadr.org/fm/

ARIBAS

“ARIBAS is an interactive interpreter for big integer arithmetic and multi-precision floating point arithmetic with a Pascal/Modula like syntax. It has several builtin functions for algorithmic number theory like gcd, Jacobi symbol, Rabin probabilistic prime test, factorization algorithms (Pollard rho, elliptic curve, continued fraction, quadratic sieve), etc.”

→ http://www.mathematik.uni-muenchen.de/~forster/sw/aribas.html
NumPy

“The fundamental package needed for scientific computing with Python is called NumPy. This package contains a powerful N-dimensional array object, sophisticated (broadcasting) functions, tools for integrating C/C++ and Fortran code, and useful linear algebra, Fourier transform, and random number capabilities.”

→ http://numpy.scipy.org/
Octave

“GNU Octave is a high-level language, primarily intended for numerical computations. It provides a convenient command line interface for solving linear and nonlinear problems numerically, and for performing other numerical experiments using a language that is mostly compatible with Matlab.”

→ http://www.gnu.org/software/octave/
PARI/GP

“PARI/GP is a widely used computer algebra system designed for fast computations in number theory (factorizations, algebraic number theory, elliptic curves...), but also contains a large number of other useful functions to compute with mathematical entities such as matrices, polynomials, power series, algebraic numbers etc., and a lot of transcendental functions.”

→ http://pari.math.u-bordeaux.fr/
R

“R is a free software environment for statistical computing and graphics. It compiles and runs on a wide variety of UNIX platforms, Windows and MacOS.”

→ http://www.r-project.org/

Information about Computer Algebra Systems


List of computer algebra systems (Wikipedia)

Lots of links there.

→ http://en.wikipedia.org/wiki/List_of_computer_algebra_systems
SymbolicNet

A very good starting point to learn about symbolic computation and computer algebra systems.

→ http://www.symbolicnet.org/

Tuesday, July 5, 2011

Don't be afraid to use the Terminal and Command Line Interface

CLI Companion works great so far! It has a command list right at your disposal with descriptions!!

Also check out this Ubuntu Community help link for more on the Terminal and Command Line with inofrmation for commands and descriptions, etc. There are additional links at the end of this Ubuntu Community help page.

Ubuntu Documentation > Community Documentation > UsingTheTerminal

I have also installed Guake which is pretty cool. Default F12 pulls down a Terminal screen for quick Terminal access. However, you could also call the Terminal by the keyboard shortcut Ctl + Atl + T.


Edit: 7-17-11

Here are some more links to Terminal commands.

UBUNTU LINUX HELP - 20 Useful, Common Linux (Ubuntu) Commands for New Users (2009) - http://ubuntulinuxhelp.com/20-useful-common-linux-ubuntu-commands-for-new-users/

UBUNTU LINUX HELP - Friday Fun – Useful Linux Terminal Commands for New Users (2008) - http://ubuntulinuxhelp.com/friday-fun-useful-linux-terminal-commands-for-new-users/

FOSSwire - Ubuntu Cheat Sheet - http://fosswire.com/post/2008/04/ubuntu-cheat-sheet/

https://help.ubuntu.com/6.06/kubuntu/desktopguide/C/terminals.html


Edit: 7-25-11

Top Ubuntu Cheat Sheets - http://www.ubuntuka.com/cheat-sheets-ubuntu/

Saturday, July 2, 2011

Terminal in Ubuntu - some alternatives and CLI Companion command line help app

For those interested in alternate terminal apps in Ubuntu, check out this post on Tech Drive-in.

9 Good Terminal Emulators for Linux

Also, check out this post for CLI Companion, a tool which helps newcomers (like myself) to the command line in the terminal for linux OSs.

CLI Companion - Incredible Tool to Learn Command Line

Link to DL CLI Companion - https://launchpad.net/clicompanion

Check out this post, as well, on TermKit, one of the terminal emulators mentioned in the first link.

TermKit is Terminal Reimagined, Install TermKit in Ubuntu 11.04 Easily