www/content/blog/miscellaneous/screen-cannot-open-terminal.md

26 lines
612 B
Markdown
Raw Permalink Normal View History

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:
- 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 :
```sh
2020-04-28 17:29:52 +02:00
Cannot open your terminal '/dev/pts/0' - please check.
```
2020-04-28 17:29:52 +02:00
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 :
```sh
2020-04-28 17:29:52 +02:00
script /dev/null
```
2021-03-12 18:12:41 +01:00
In this new environment your screen commands will work normally.