これはsudoした際にターミナルの環境がptsになっているせいのようです。 解決作はserverfaultにありました。 Sudo as different user and running screen http://serverfault.com/questions/116775/sudo-as-different-user-and-running-screen/116830#116830 以下の関数を.bashrcに載せることでscreenコマンドを変更できるようです。
su で切り替わったユーザーで $ screen を実行すると “Cannot open your terminal ‘/dev/pts/0’ – please check.” というようなエラーが発生する。 エラーが発生する原因 screen (やそのリライトである tmux) は擬似ターミナルへの read/write を行うことで実現されており、この擬似ターミナルはログイン時にログインユーザー向けに作成される。 su でユーザーが切り替わっても新規に擬似ターミナル(pty)が作られるわけではないので、新規に起動する screen と既存 pty の実行ユーザーが異なり、権限のない pty に R/W しようとして上記の様なエラーが発生する。 解決策 一人で使っているサーバーなら root 権限で screen を起動してその後、各ユーザになる pty の権限を chmod で変える
Have you ever faced the situation where you perform a long-running task on a remote machine, and suddenly your connection drops, the SSH session is terminated, and your work is lost. Well, it has happened to all of us at some point, hasn’t it? Luckily, there is a utility called screen that allows us to resume the sessions. Introduction #Screen or GNU Screen is a terminal multiplexer. In other word
I use screen for my command-line tasks while managing the servers where I work. I usually run small commands (mostly file-system tasks) but sometimes I run more extensive tasks (like DBA). The output of those tasks is important to me. Since I use Ubuntu and OS X (both Terminal Windows) for my tasks, yet I need to use screen, the scrolling is not available, so any long output (think a 500-row table
Ubuntu Weekly Recipe 第291回tmux/GNU Screenのラッパーコマンド、byobuを使いこなす(2013年版) Ubuntuには、byobuというtmux/GNU Screenのラッパーコマンドが準備されています。これらのコマンドをうまく利用することで、ターミナル上での作業効率を大きく引き上げることができます。今週は、2013年現在のbyobuの利用方法を紹介します。 Byobu Ubuntuでは、GNU Screenやtmuxのラッパーコマンドである「byobu」を利用することができます。デスクトップ版には標準では導入されていませんが、次のように操作することで簡単に導入できます(サーバー版ではデフォルトで導入されています)。 $ sudo apt-get update $ sudo apt-get install byobu GNU Screenとtmu
B! 7 0 4 0 先日のAnniversary UpdateによってWindows 10の標準装備になった Bash on Ubuntu on Windowsですが、現状GNU screenが使えません。 tmuxはAnniversary Update時には使える様になっていたようですが、 screenの方もなんとか使える様になるみたいです。 GNU screen on Bash on Ubuntu on Windows GNU screen on Bash on Ubuntu on Windows Windowsに採用されたBash (Ubuntu)を試してみる Bash on Ubuntu on Windowsはまだ完全なUbuntuとは行かない感じで 使えなかったりするものがいくつかあったりします。 その一つがGNU screenです。 screenがデフォルトで入ってたかどうか
wget http://ftp.gnu.org/gnu/screen/screen-4.0.3.tar.gz wget http://ftp.eq.uc.pt/software/pc/prog/cygwin/release/screen/screen-4.0.3-1-src.tar.bz2 tar xvzf screen-4.0.3.tar.gz tar xvjf screen-4.0.3-1-src.tar.bz2 sed -e 's/__CYGWIN__/__MSYS__/g' screen-4.0.3-1.src.patch > screen-4.0.3-1.src.patch.msys patch -p1 -d . < screen-4.0.3-1.cygwin.patch patch -p1 -d . < screen-4.0.3-1.src.patch.msys cd scre
Not your computer? Use a private browsing window to sign in. Learn more about using Guest mode
Version control system: Bazaar Programming languages: bash, python All packages Packages in Distributions byobu source package in Xenial Version 5.106-0ubuntu1 uploaded on 2016-04-14 byobu source package in Trusty Version 5.77-0ubuntu1.2 uploaded on 2014-07-26 byobu source package in Sid Version 5.133-1.1 uploaded on 2023-01-08 byobu source package in Precise Version 5.17-0ubuntu1 uploaded on 2012
Linux Screen allows you to: Use multiple shell windows from a single SSH session. Keep a shell active even through network disruptions. Disconnect and re-connect to a shell sessions from multiple locations. Run a long running process without maintaining an active shell session. If this sounds like stuff you can use, check our our 2 minute quick-start video below or read on for more details on how
elscreen is a GNU Emacs window session manager modeled after GNU screen by NaotoMorishima. WorkInProgressPage XavierMaillard 2020-04-03: ElScreen needs a maintainer, see: https://github.com/shosti/elscreen IntroductionGNU Emacs is more of an “environment” than just an editor, since it has the strong configuration language, emacs-lisp. There are a lot of applications written in emacs-lisp, and you
emacsclientは便利なのだけど,GUIのない環境でもうまく使いたい. 解決したいのはこの辺. screenのウィンドウ切り替え(行き帰り)をして欲しい. .emacsにemacsclient用の設定を書きたくない. .emacsに書きたくないのは,スケジューラ専用のemacsとかを別で立ち上げていたりするので,そちらはサーバになって欲しくないから. この辺を参考にした. Using EmacsClient with screen - ~fumi/ChangeLog EmacsClient すこし改良 : おまえのログ シェルスクリプト emという名前で作った.他にem-wとem-extという名前でシンボリックリンクを作っておき,名前によって挙動を変えている. #!/bin/sh SERVER_WINDOW=~/.emacs.d/emacs-server-window CLIENT_
問題と解決方法 localのtmuxでscreen-256colorで起動したい場合などは以下に設定すると思います set -g default-terminal "screen-256color" 上記の設定にしていると、sshを利用したremote接続先までそのTERMが継承されるtmuxの仕様なので当然CentOSなどの接続先でエラーが出てくる。 'screen-256color': unknown terminal type. そのため、以下をzshrcかbashrcにaliasにする。 alias ssh='TERM=xterm ssh' 参考:https://coderwall.com/p/ftuwdq 特定のサーバには256系でログインしたい[追記:2013/1/29] ログイン先各サーバへ以下をインストールする。 yum -y install ncurses-term そし
開発版のScreenを入れたら、Emacsでsaveできなくなってこまった。 解決法をググってみるとここに書いてあった。 screen+emacs で Ctrl-S を押すと固まる問題 なにやらフロー制御がおかしくなるとかなんとか。 Ctrl-z(デフォルトではCtrl-a) Ctrl-f で解除しておく。-flowと表示されればOK。 ちゃんと使えるようになった。 ・・・・・と思ったら、新しくウィンドウを開いたり、 screenを再起動したりするとまたCtrl-sが効かなくなった。 デフォルトでflowはoffにしておかなければいけないらしい。 .screenrcに下のように書いておけばOK。 defflow off
screen is a much under utilised program, which provides the following functionality: Remote terminal session management (detaching or sharing terminal sessions) unlimited windows (unlike the hardcoded number of Linux virtual consoles) scrollback buffer (not limited to video memory like Linux virtual consoles) copy/paste between windows notification of either activity or inactivity in a window spli
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く