2020-04-28 17:29:52 +02:00
|
|
|
---
|
|
|
|
title: "Screen cannot open terminal error"
|
|
|
|
date: 2018-07-03
|
2021-03-12 18:12:41 +01:00
|
|
|
description: How to fix a "Screen cannot open terminal" error
|
|
|
|
tags:
|
2021-09-13 00:48:07 +02:00
|
|
|
- linux
|
2021-03-12 18:12:41 +01:00
|
|
|
- toolbox
|
|
|
|
- unix
|
2020-04-28 17:29:52 +02:00
|
|
|
---
|
|
|
|
|
2021-03-12 18:12:41 +01:00
|
|
|
## The problem
|
|
|
|
|
|
|
|
At my current workplace there are die hard screen fanatics that refuse to upgrade to tmux. Sometimes I get the following error :
|
2020-04-28 17:29:52 +02:00
|
|
|
{{< highlight sh >}}
|
|
|
|
Cannot open your terminal '/dev/pts/0' - please check.
|
|
|
|
{{< /highlight >}}
|
|
|
|
|
2021-03-12 18:12:41 +01:00
|
|
|
## The solution
|
|
|
|
|
|
|
|
This error means that you did not open the shell with the user you logged in with. You can make screen happy by running :
|
2020-04-28 17:29:52 +02:00
|
|
|
{{< highlight sh >}}
|
|
|
|
script /dev/null
|
|
|
|
{{< /highlight >}}
|
2021-03-12 18:12:41 +01:00
|
|
|
|
|
|
|
In this new environment your screen commands will work normally.
|