Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Linux Ask!

Oct 142012
 

Fix the error "Cannot open your terminal '/dev/pts/x'" when using screen during su

Answer:

When you first "su" into another user account and then invoke the screen command, you will get the error like "Cannot open your terminal '/dev/pts/x'"

To fix this, simply enter..

# script /dev/null

That's all you need!

Oct 082012
 

Modern way to show current IP address(es) in Linux

Answer:

In the past we already showed that you can get the IP information using the command "ifconfig", actually the modern way to do the job is

# ip a

1: lo:  mtu 16436 qdisc noqueue state UNKNOWN 
  ..

2: eth0:  mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:26:5e:3e:42:d2 brd ff:ff:ff:ff:ff:ff
 ..
Sep 282012
 

Install Redis server in Ubuntu

Answer:

The easiest way is to install using the PPA approach.

# sudo add-apt-repository ppa:rwky/redis
# sudo apt-get update
# sudo apt-get install redis-server

That's it.