Tags » Ubuntu/Linux

How to install Atom editor in Ubuntu Mate

$ sudo add-apt-repository ppa:webupd8team/atom
$ sudo apt-get update
$ sudo apt-get install atom
...

Split terminal windows using tmux

tmux is a terminal multiplexer. It allows you to access a tmux terminal using multiple virtual terminals.
tmux takes advantage of a client-server model, which allows you to attach terminals to a tmux session. 272 more words

Travis CI: This version of node/NAN/v8 requires a C++11 compiler

Upon deploying your node.js app using Travis CI you may encountered a build error that says “This version of node/NAN/v8 requires a C++11 compiler” it means that the current compiler is not capable to build to some node modules like json or time. 319 more words

Linux: Using curl

curl -u johndoe:passwo0t https://myapp.com

Using Base64 Authentication Header
curl -X GET https://myapp.com \
-H "Authorization: Basic xxxxxxxxxxxxxxxxxxxx=="
..
Ubuntu/linux

Linux: Basic usage of rsync, scp, tar

Copy from local file to remote server using rsync

$ rsync -av -P myapp.tar.gz martian@202.x.x.x:~  #Assuming this server was set to DISALLOW PASSWORD Login
$ rsync -r -v --progress -e ssh user@remote-system:/address/to/remote/file /home/user/
... 29 more words
Ubuntu/linux

How to check the running ports or services

How to list running services

$ netstat -an|grep LISTEN
tcp   0   0 0.0.0.0:993      0.0.0.0:*     LISTEN
tcp   0   0 0.0.0.0:995      0.0.0.0:*     LISTEN
tcp   0   0 127.0.0.1:3306   0.0.0.0:*     LISTEN
tcp   0   0 0.0.0.0:110      0.0.0.0:*     LISTEN
tcp   0   0 0.0.0.0:143      0.0.0.0:*     LISTEN
tcp   0   0 0.0.0.0:2000     0.0.0.0:*     LISTEN
tcp   0   0 0.0.0.0:80       0.0.0.0:*     LISTEN
tcp   0   0 0.0.0.0:25       0.0.0.0:*     LISTEN
tcp   0   0 0.0.0.0:443      0.0.0.0:*     LISTEN
… 117 more words
Ubuntu/linux

How to install Redis on Centos 6

1) Install
// — Compiling —
$ wget http://download.redis.io/releases/redis-2.8.3.tar.gz
$ tar xzvf redis-2.8.3.tar.gz
$ cd redis-2.8.3
$ make
$ make install

2) Config
$ sudo nano /etc/sysctl.conf… 75 more words

Ubuntu/linux