Site, Sunucu Sorunlariniz ve cözümleri » Site, Server Genel

ssh screen Kurulumu ( Bağlantı Kesilse bile tekrar aynı ekrana Ulaşırsınız )

http://forum.whmdestek.com/

Go Back   WHM/cPanel Support Platform » Türkce » Site, Sunucu Sorunlariniz ve cözümleri » Site, Server Genel
 

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 30. December 2011
KLAMP's Avatar
Administrator
 
Join Date: Oct 2007
Posts: 1,269
Rep Power: 100000
KLAMP has a reputation beyond reputeKLAMP has a reputation beyond reputeKLAMP has a reputation beyond reputeKLAMP has a reputation beyond reputeKLAMP has a reputation beyond reputeKLAMP has a reputation beyond reputeKLAMP has a reputation beyond reputeKLAMP has a reputation beyond reputeKLAMP has a reputation beyond reputeKLAMP has a reputation beyond reputeKLAMP has a reputation beyond repute
Send a message via MSN to KLAMP
ssh screen Kurulumu ( Bağlantı Kesilse bile tekrar aynı ekrana Ulaşırsınız )

yum install screen komutuyla screen'i kurun. Daha sonra;

vi .screenrc komutuyla dosyayi acarak sunlari ekleyin

PHP Code:
# Configured by Haritsu - halid@halid.org - Yet Another Developer
# ------------------------------------------------------------------------------
# SCREEN SETTINGS
# ------------------------------------------------------------------------------

startup_message off
#nethack on

#defflow on # will force screen to process ^S/^Q
deflogin on
#autodetach off

# turn visual bell on
vbell on
vbell_msg 
" Wuff ---- Wuff!! "

# define a bigger scrollback, default is 100 lines
defscrollback 1024

# ------------------------------------------------------------------------------
# SCREEN KEYBINDINGS
# ------------------------------------------------------------------------------

# Remove some stupid / dangerous key bindings
bind ^k
#bind L
bind ^\
# Make them better
bind \\ quit
bind K kill
bind I login on
bind O login off
bind 
history

# An example of a "screen scraper" which will launch urlview on the current
# screen window
#
#bind ^B eval "hardcopy_append off" "hardcopy -h $HOME/.screen-urlview" "screen urlview $HOME/.screen-urlview"

# ------------------------------------------------------------------------------
# TERMINAL SETTINGS
# ------------------------------------------------------------------------------

# The vt100 description does not mention "dl". *sigh*
termcapinfo vt100 dl=5\E[M

# turn sending of screen messages to hardstatus off
# Set the hardstatus prop on gui terms to set the titlebar/icon title
termcapinfo xterm*|rxvt*|kterm*|Etermhs:ts=\E]0;:fs=\007:ds=\E]0;\007
# use this for the hard status string
#hardstatus string "%h%? users: %u%?"
# An alternative hardstatus to display a bar at the bottom listing the
# windownames and highlighting the current windowname in blue. (This is only
# enabled if there is no hardstatus setting for your terminal)
#
hardstatus alwayslastline
hardstatus string 
"%-Lw%{= BW}%58>%n%f* %t%{-}%+Lw%< %{= kG}%-=%d %M %Y %c:%s%{-}"

#hardstatus string '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}'
#hardstatus alwayslastline

# set these terminals up to be 'optimal' instead of vt100
termcapinfo xterm*|linux*|rxvt*|EtermOP

# Change the xterm initialization string from is2=\E[!p\E[?3;4l\E[4l\E>
# (This fixes the "Aborted because of window size change" konsole symptoms found
# in bug #134198)
termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'

# To get screen to add lines to xterm's scrollback buffer, uncomment the
# following termcapinfo line which tells xterm to use the normal screen buffer
# (which has scrollback), not the alternate screen buffer.
#
termcapinfo xterm|xterms|xs|rxvt ti@:te@

# ------------------------------------------------------------------------------
# STARTUP SCREENS
# ------------------------------------------------------------------------------

# Example of automatically running some programs in windows on screen startup.
#
# The following will open top in the first window, an ssh session to monkey
# in the next window, and then open mutt and tail in windows 8 and 9
# respectively.
#
#screen -t mutt mutt
#screen -t vim1 vim
#screen -t vim2 vim
#screen -t vim3 vim
#screen -t phperrors tail -f /var/log/php.errors.log|ccze
#screen -t bash bash
#screen -t bash bash
Kaydedip ciktiktan sonra,
vi .bashrc komutunu uyguluyoruzAcilan sayfaya ise sunlari ekleyip kaydediyoruz.
Alinti:
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
[ -"$PS1] && return

export PS1='\[\033[01;33m\][`date +'%H:%M'`] \[\033[01;31m\](\[\033[00;37m\]\u@\h \W\[\033[01;31m\])\[\033[00m\]\$ '

# don't put duplicate lines in the history. See bash(1) for more options
export HISTCONTROL=ignoredups

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# make less more friendly for non-text input files, see lesspipe(1)
[ -/usr/bin/lesspipe ] && eval "$(lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -"$debian_chroot] && [ -/etc/debian_chroot ]; then
debian_chroot
=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
# case "$TERM" in
# xterm-color)
# PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
# ;;
# *)
# PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
# ;;
# esac

# Comment in the above and uncomment this below for a color prompt
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

# If this is an xterm set the title to user@host:dir
case "$TERMin
xterm
*|rxvt*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
;;
*)
;;
esac

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

#if [ -f ~/.bash_aliases ]; then
# . ~/.bash_aliases
#fi

# enable color support of ls and also add handy aliases
if [ "$TERM!= "dumb" ]; then
eval "`dircolors -b`"
alias ls='ls --color=auto'
#alias dir='ls --color=auto --format=vertical'
#alias vdir='ls --color=auto --format=long'
fi

# some more ls aliases
alias ll='ls -l'
alias la='ls -la'
#alias l='ls -CF'
alias ls='ls --color=auto'

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -/etc/bash_completion ]; then
. /etc/bash_completion
fi

# Open Screen
if [ -"$STY]; then
screen 
-Rd
fi

# Locale Settings
export LANG=tr_TR.UTF-8
export LC_ALL
=tr_TR.UTF-8
export LD_LIBRARY_PATH
=/usr/lib/:${LD_LIBRARY_PATH}

ayikla () {
if [ -
$] ; then
case $1 in
*.tar.bz2tar xvjf $;;
*.
tar.gztar xvzf $;;
*.
bz2bunzip2 $;;
*.
rarrar x $;;
*.
gzgunzip $;;
*.
tartar xvf $;;
*.
tbz2tar xvjf $;;
*.
tgztar xvzf $;;
*.
zipunzip $;;
*.
Zuncompress $;;
*
.7z7z x $;;
*) echo 
"don't know how to extract '$1'..." ;;
esac
else
echo 
"'$1' is not a valid file!"
fi



bu komutu çalıştırın source .bashrc

Bash ekraninin hemen altinda yesil bir bar olusacak. Oradan mevcut screen ekranlarini görebilir, degistirebilir, ekleyebilir ve arasinda gecis yapabilirsiniz.

Örnegin ekrani en son haliyle kapattiginizda ekran gitmis gibi varsayilir. Ancak sunucuya tekrar baglandiginizda screen -Rd komutuyla tekrar ayni ekran(lar)i getirebilirsiniz


screen -RD

Eger SSH'tan cikarsaniz veya koparsaniz bu komut ile daha önceki actiginiz screen'a baglanti kurup islemlerinize devam edebilirsiniz..


Not: Altta yeni ekran acmak icin CTRL + A + C
Alttaki aktif pencereyi kapatmak icin CTRL + A + D
Pencereler arasi gecis icin CTRL + AA yada CTRL + A + P ( N )
Pencere adlarini degistirmek icin CTRL a + A

alıntıdır
__________________
Ücretli Destek İçin Özel Mesaj Gönderiniz


Skype Adresi bilgi_482

Last edited by KLAMP; 31. March 2012 at 00:47.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 31. December 2011
baracuda's Avatar
Administrator
 
Join Date: Jun 2008
Posts: 1,752
Rep Power: 100000
baracuda has a reputation beyond reputebaracuda has a reputation beyond reputebaracuda has a reputation beyond reputebaracuda has a reputation beyond reputebaracuda has a reputation beyond reputebaracuda has a reputation beyond reputebaracuda has a reputation beyond reputebaracuda has a reputation beyond reputebaracuda has a reputation beyond reputebaracuda has a reputation beyond reputebaracuda has a reputation beyond repute
ellerine sağlık ama şu vi editörüne gıcık oluyorum, vi ismini görünce tüylerim diken diken oluyor
__________________
Bir kisinin ki yardimcisi Allah ola, Var kiyas eyle ol ne sah ola!.

Ücretli Teknik Destek İçin özel mesaj atınız.

** Hp DL380/ G7 E5645 Six Core x2 Socket **
10 K Sas Diskli - Raid 50 Yapısıyla
Ücretsiz Haftalık Yedekli VDS serverlar
25 $ dan başlayan fiyatlarla, sunulmaktadır.

Talep için lütfen özel mesaj gönderin.
skype : semihavci@hotmail.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Aynı user için multi domain? ABDALWAHID WHM cPanel 5 8. March 2011 19:27
Sunucudaki tüm siteler için aynı hata sayfaları adeministrator WHM Soru ve Cevaplar 0 3. September 2010 10:26
SSH screen ? fixeL WHM cPanel 4 6. January 2009 22:37
Cpanel sifresi degisiyor.. Ftp degismiyor.. WHM´den bile... Katil61 WHM cPanel 1 4. September 2008 19:34
Asiri RAM kullanimi [ kapali olan site bile ram kullaniyor] DooMsDaY WHM cPanel 4 9. January 2008 04:24


Navigasyon
Menü