it:linux:debian:homeconfig

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
it:linux:debian:homeconfig [2011/08/15 09:10] berniit:linux:debian:homeconfig [2024/03/03 09:34] (aktuell) admin
Zeile 1: Zeile 1:
 ====== Homeconfig ====== ====== Homeconfig ======
 Zunächstmal muss man sich ja auf einem jungfäulichen Linux System zu Hause fühlen: Zunächstmal muss man sich ja auf einem jungfäulichen Linux System zu Hause fühlen:
-<code bash>aptitude install vim screen zsh +<code bash> 
-wget --no-check-certificate https://wiki.ex23.de/dokuwiki/lib/exe/fetch.php/it:linux:debian:vimrc.gz -O - | gunzip > /etc/vim/vimrc+apt-get update 
 +apt-get install -y vim screen zsh 
 +wget --no-check-certificate "https://wiki.ex23.de/dokuwiki/lib/exe/fetch.php?media=it:linux:debian:vimrc.gz-O - | gunzip > /etc/vim/vimrc 
 +mkdir -p /etc/vim/after/plugin/ 
 +ln -s /etc/vim/vimrc /etc/vim/after/plugin/vimrc.vim 
 + 
 +wget --no-check-certificate "https://wiki.ex23.de/dokuwiki/lib/exe/fetch.php?media=it:linux:debian:a.vim.gz" -O - | gunzip > ~/.vim/plugin/a.vim
 echo "hardstatus alwayslastline echo "hardstatus alwayslastline
 hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'" >> /etc/screenrc hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'" >> /etc/screenrc
Zeile 10: Zeile 16:
 bindkey '5C' forward-word bindkey '5C' forward-word
 #Historic Pg-Up Pg-Down for history search... #Historic Pg-Up Pg-Down for history search...
-bindkey "^[[6~" history-beginning-search-forward +bindkey \"^[[6~\" history-beginning-search-forward 
-bindkey "^[[5~" history-beginning-search-backward" > ~/.zshrc.local +bindkey \"^[[5~\" history-beginning-search-backward" > ~/.zshrc.local 
-usermod -s /bin/zsh `whoami`+/usr/sbin/usermod -s /bin/zsh `whoami` 
 +sed -e '/AcceptEnv LANG LC_*/ s/^#*/#/' -i /etc/ssh/sshd_config 
 +service ssh restart
 </code> </code>
 +===== ZSH prompt anpassen =====
 +/etc/zsh/zshrc
 +grml_prompt_token_default suchen und
 +host auf '%M' setzen.
 +===== Backup =====
 +<code bash>
 +#!/bin/bash
 +backupname=<hostname>_backup_`date -I`.tar.gz
 +tar -C / -cpvf - --exclude="./sys/*" --exclude="./proc/*" --exclude="./data/*" . | pigz -p 4 | ssh backup-fetch@server "cat >/<server_destination>/<hostname>/${backupname}"
 +
 +</code>
 +
 +
  • it/linux/debian/homeconfig.1313399438.txt.gz
  • Zuletzt geändert: 2015/12/24 14:25
  • (Externe Bearbeitung)