Skip to main content

Posts

Showing posts with the label ubuntu

First post using stackedit

Welcome to StackEdit! Hey! I’m your first Markdown document in StackEdit 1 . Don’t delete me, I’m very helpful! I can be recovered anyway in the Utils tab of the Settings dialog. Documents StackEdit stores your documents in your browser, which means all your documents are automatically saved locally and are accessible offline! Note: StackEdit is accessible offline after the application has been loaded for the first time. Your local documents are not shared between different browsers or computers. Clearing your browser’s data may delete all your local documents! Make sure your documents are synchronized with Google Drive or Dropbox (check out the Synchronization section). Create a document The document panel is accessible using the button in the navigation bar. You can create a new document by clicking New document in the document panel. Switch to another document All your local documents are listed in the document panel. You can switch from one to anoth...

Install latest R (3.2.5) on Debian Jessie

Installing R on Ubuntu/Debian is quite painful, especially when you want to install the latest version. I have no clue why this situation stills for a long time, but this is a way to work around. On terminal: ```bash Appends the CRAN repository to your sources.list file You could replace jessie-cran3 by the newer one Find the correct value at https://cloud.r-project.org/ sudo sh -c 'echo "deb http://cran.rstudio.com/bin/linux/debian jessie-cran3/" >> /etc/apt/sources.list' Adds the CRAN GPG key, which is used to sign the R packages for security. sudo apt-key adv --keyserver subkeys.pgp.net --recv-key 381BA480 sudo apt-get update sudo apt-get install r-base r-base-dev ``` Installing h2o : ```bash to retrieve curl-config otherwise you may have a problem with RCurl sudo apt-get install libcurl4-gnutls-dev ``` R install.packages ("h2o")

Getting started with Cryptpad in Ubuntu: step by step

Cryptpad is an open source collaborative editor which is hosted at: https://github.com/cjdelisle/cryptpad It is easy to clone the github repository and start to try, but if you are a newbie, there maybe some difficulties. Suppose that you have a clean Ubuntu machine, and want to try with Cryptpad, you can follow these steps: 1. Download mongodb for Linux: https://www.mongodb.org/downloads 2. Unzip the file you got to a location you want. You will start mongodb from there, or add this directory to your PATH variable so you can start mongodb from anywhere. 3. Suppose that you chose the easier way, i.e start mongodb from its directory. 4. Open Terminal (Ctrl + Alt + T for shortcut), move to the directory of mongodb 5. Type: mkdir db mongod --dbpath=./db These above commands will first, create a directory 'db' insider the directory mongodb, then start mongodb server. 6. Keep the terminal with mongodb server running 7. Open another terminal (Ctrl...

How to install NodeJS in Ubuntu

NodeJS provided installation file for MS Windows and Mac OS, but maybe you will not find a similar package for Ubuntu. There are some instructions on the Internet which guide you installed NodeJS by using default repository of Ubuntu, or add more PPA, but probably you will receive an older version of NodeJS. (For instance, today I tried the instruction as: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server but I only got NodeJS 0.10.25, when the latest one is 0.10.33) Actually, installing NodeJS in Ubuntu is very easy, maybe easiest among other operating systems. 1. Go to: http://nodejs.org/download/ 2. Depends on your operating system, download Linux Binaries file 32 - or 64 - bit. 3. Unzip the file you downloaded tar xzvf node-v0.10.33-darwin-x64.tar.gz 4. Modify the file ~/.bashrc by adding the following line to the end of the file: export PATH=$PATH:/path/to/bin/directory/of/node/you/downloaded 5. Restart term...

Getting started with source code of the book: Haskell the craft of functional programming in Ubuntu

If you are following the book you probably want to download and try the source code than typing everything from scratch.  To use the source code provided by the author, first of all you need to install QuickCheck:   cabal install quickcheck Then cabal unpack Craft3e If cabal cannot find the appropriate package, you need to update cabal: cabal update

How to use diffent keyboard than English in Ubuntu Server 14.04 (or 14.10) with Gnome Core

Even in my laptop, I still use Ubuntu Server because it seems more stable than Ubuntu Desktop. At the first time of using Ubuntu Server, you may have some issues, especially if you are not familiar with Linux command, because there is no GUI in Ubuntu Server by default. There are some ways to install GUI to Ubuntu Server. I am choosing Gnome Core. To install Gnome Core: sudo apt-get install xorg gnome-core gnome-system-tools gnome-app-install If you have used Ubuntu Desktop before (with Unity), you may find something different in Gnome Core. 1. The notification bar now in on the bottom but not top.  To see the notification bar, move your mouse to the bottom of the screen. 2. There is no Text Entry anymore, so if you are not native English speaker like me and want to install another typing application such as ibus to type in your own language, it may be pain. In Gnome Core, to configure your typing, press Windows button (if there is this key in your keyboard),...

How to start writing LaTex in Ubuntu

It is very easy: 1. Install TexLive: sudo apt-get install texlive-full (it will take time) 2. Install TexMaker (there are many LaTex editors, but TexMaker is a very good one, easy to use, and cross platform so you can easily switch between operating systems): You can download TexMaker from this website: http://www.xm1math.net/texmaker/download.html#linux (select the version of your Ubuntu) TexMaker will take about 1.1GB after installed, so prepare disk for it. 3. That's it. Start TexMaker. 4. By default, when click Quick Build, TexMaker will generate PDF file. For many cases, it is good enough and you do not have to modify anything.