]> Frank Brehm's Git Trees - docs/frank.git/commitdiff
Weiter an inst-wheezy-debbotstrap.txt gearbeitet
authorFrank Brehm <frank@brehm-online.com>
Mon, 18 Feb 2013 11:31:44 +0000 (12:31 +0100)
committerFrank Brehm <frank@brehm-online.com>
Mon, 18 Feb 2013 11:31:44 +0000 (12:31 +0100)
Dokumentationen/inst-wheezy-debbotstrap.txt

index 5cec2ab3bccd7acde91f9046569ee6e4d03d68eb..94b3d88b058fcd1edc7342da0e6db39dcae5f47b 100644 (file)
@@ -877,4 +877,591 @@ root@uhu2 ~/work # LANG=C LANGUAGE= chroot /a /bin/bash
 root@uhu2:/#
 ----
 
+.APT auf den richtigennStand bringen:
+----
+root@uhu2:/#
+root@uhu2:/# vi /etc/apt/sources.list
+root@uhu2:/# cat /etc/apt/sources.list
+deb http://ftp2.de.debian.org/debian wheezy main non-free contrib
+deb-src http://ftp2.de.debian.org/debian/ wheezy main non-free contrib
+
+deb http://security.debian.org/ wheezy/updates main contrib non-free
+deb-src http://security.debian.org/ wheezy/updates main contrib non-free
+root@uhu2:/#
+root@uhu2:/# apt-get update
+Get:1 http://security.debian.org wheezy/updates InRelease [102 kB]
+Get:2 http://security.debian.org wheezy/updates/main Sources [14 B]    
+Get:3 http://security.debian.org wheezy/updates/contrib Sources [14 B]             
+Get:4 http://security.debian.org wheezy/updates/non-free Sources [14 B]            
+Get:5 http://security.debian.org wheezy/updates/main amd64 Packages [14 B]         
+Get:6 http://security.debian.org wheezy/updates/contrib amd64 Packages [14 B]       
+Get:7 http://security.debian.org wheezy/updates/non-free amd64 Packages [14 B]      
+Ign http://security.debian.org wheezy/updates/contrib Translation-en                
+Ign http://security.debian.org wheezy/updates/main Translation-en
+Get:8 http://ftp2.de.debian.org wheezy InRelease [224 kB]                    
+Ign http://security.debian.org wheezy/updates/non-free Translation-en        
+Get:9 http://ftp2.de.debian.org wheezy/main Sources [6009 kB]                                                                                                                                                          
+Get:10 http://ftp2.de.debian.org wheezy/non-free Sources [93.5 kB]                                                                                                                                                     
+Get:11 http://ftp2.de.debian.org wheezy/contrib Sources [49.8 kB]                                                                                                                                                      
+Get:12 http://ftp2.de.debian.org wheezy/main amd64 Packages/DiffIndex [7876 B]                                                                                                                                         
+Get:13 http://ftp2.de.debian.org wheezy/non-free amd64 Packages [81.1 kB]                                                                                                                                              
+Get:14 http://ftp2.de.debian.org wheezy/contrib amd64 Packages [43.3 kB]                                                                                                                                               
+Get:15 http://ftp2.de.debian.org wheezy/contrib Translation-en [35.5 kB]                                                                                                                                               
+Get:16 http://ftp2.de.debian.org wheezy/main Translation-en [3872 kB]                                                                                                                                                  
+Get:17 http://ftp2.de.debian.org wheezy/non-free Translation-en [66.3 kB]                                                                                                                                              
+Fetched 10.6 MB in 1min 56s (90.9 kB/s)                                                                                                                                                                                
+Reading package lists... Done
+root@uhu2:/#
+----
+
+.Die ersten (wichtigen) Pakete installieren:
+----
+root@uhu2:/# apt-get install locales
+Reading package lists... Done
+Building dependency tree... Done
+The following NEW packages will be installed:
+  locales
+0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
+Need to get 5713 kB of archives.
+After this operation, 15.5 MB of additional disk space will be used.
+Get:1 http://ftp2.de.debian.org/debian/ wheezy/main locales all 2.13-37 [5713 kB]
+Fetched 5713 kB in 1min 3s (89.4 kB/s)                                                                                                                                                                                 
+perl: warning: Setting locale failed.
+perl: warning: Please check that your locale settings:
+    LANGUAGE = "",
+    LC_ALL = (unset),
+    LC_TIME = "de_DE.utf8",
+    LC_MONETARY = "de_DE.utf8",
+    LC_CTYPE = "de_DE.utf8",
+    LC_COLLATE = "de_DE.utf8",
+    LC_ADDRESS = "de_DE.utf8",
+    LC_TELEPHONE = "de_DE.utf8",
+    LC_MESSAGES = "de_DE.utf8",
+    LC_NAME = "de_DE.utf8",
+    LC_MEASUREMENT = "de_DE.utf8",
+    LC_IDENTIFICATION = "de_DE.utf8",
+    LC_NUMERIC = "de_DE.utf8",
+    LC_PAPER = "de_DE.utf8",
+    LANG = "C"
+    are supported and installed on your system.
+perl: warning: Falling back to the standard locale ("C").
+locale: Cannot set LC_CTYPE to default locale: No such file or directory
+locale: Cannot set LC_MESSAGES to default locale: No such file or directory
+locale: Cannot set LC_ALL to default locale: No such file or directory
+Preconfiguring packages ...
+Can not write log, openpty() failed (/dev/pts not mounted?)
+Selecting previously unselected package locales.
+(Reading database ... 9294 files and directories currently installed.)
+Unpacking locales (from .../locales_2.13-37_all.deb) ...
+Processing triggers for man-db ...
+locale: Cannot set LC_CTYPE to default locale: No such file or directory
+locale: Cannot set LC_MESSAGES to default locale: No such file or directory
+locale: Cannot set LC_ALL to default locale: No such file or directory
+Can not write log, openpty() failed (/dev/pts not mounted?)
+Setting up locales (2.13-37) ...
+locale: Cannot set LC_CTYPE to default locale: No such file or directory
+locale: Cannot set LC_MESSAGES to default locale: No such file or directory
+locale: Cannot set LC_ALL to default locale: No such file or directory
+Generating locales (this might take a while)...
+Generation complete.
+root@uhu2:/# dpkg-reconfigure locales
+perl: warning: Setting locale failed.
+perl: warning: Please check that your locale settings:
+    LANGUAGE = "",
+    LC_ALL = (unset),
+    LC_PAPER = "de_DE.utf8",
+    LC_ADDRESS = "de_DE.utf8",
+    LC_MONETARY = "de_DE.utf8",
+    LC_NUMERIC = "de_DE.utf8",
+    LC_TELEPHONE = "de_DE.utf8",
+    LC_MESSAGES = "de_DE.utf8",
+    LC_IDENTIFICATION = "de_DE.utf8",
+    LC_COLLATE = "de_DE.utf8",
+    LC_MEASUREMENT = "de_DE.utf8",
+    LC_CTYPE = "de_DE.utf8",
+    LC_TIME = "de_DE.utf8",
+    LC_NAME = "de_DE.utf8",
+    LANG = "C"
+    are supported and installed on your system.
+perl: warning: Falling back to the standard locale ("C").
+locale: Cannot set LC_CTYPE to default locale: No such file or directory
+locale: Cannot set LC_MESSAGES to default locale: No such file or directory
+locale: Cannot set LC_ALL to default locale: No such file or directory
+/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
+/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
+/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
+Generating locales (this might take a while)...
+  de_AT.ISO-8859-1... done
+  de_AT.UTF-8... done
+  de_AT.ISO-8859-15@euro... done
+  de_BE.ISO-8859-1... done
+  de_BE.UTF-8... done
+  de_BE.ISO-8859-15@euro... done
+  de_CH.ISO-8859-1... done
+  de_CH.UTF-8... done
+  de_DE.ISO-8859-1... done
+  de_DE.UTF-8... done
+  de_DE.ISO-8859-15@euro... done
+  de_LI.UTF-8... done
+  de_LU.ISO-8859-1... done
+  de_LU.UTF-8... done
+  de_LU.ISO-8859-15@euro... done
+  en_AG.UTF-8... done
+  en_AU.ISO-8859-1... done
+  en_AU.UTF-8... done
+  en_BW.ISO-8859-1... done
+  en_BW.UTF-8... done
+  en_CA.ISO-8859-1... done
+  en_CA.UTF-8... done
+  en_DK.ISO-8859-1... done
+  en_DK.ISO-8859-15... done
+  en_DK.UTF-8... done
+  en_GB.ISO-8859-1... done
+  en_GB.ISO-8859-15... done
+  en_GB.UTF-8... done
+  en_HK.ISO-8859-1... done
+  en_HK.UTF-8... done
+  en_IE.ISO-8859-1... done
+  en_IE.UTF-8... done
+  en_IE.ISO-8859-15@euro... done
+  en_IN.UTF-8... done
+  en_NG.UTF-8... done
+  en_NZ.ISO-8859-1... done
+  en_NZ.UTF-8... done
+  en_PH.ISO-8859-1... done
+  en_PH.UTF-8... done
+  en_SG.ISO-8859-1... done
+  en_SG.UTF-8... done
+  en_US.ISO-8859-1... done
+  en_US.ISO-8859-15... done
+  en_US.UTF-8... done
+  en_ZA.ISO-8859-1... done
+  en_ZA.UTF-8... done
+  en_ZM.UTF-8... done
+  en_ZW.ISO-8859-1... done
+  en_ZW.UTF-8... done
+  es_AR.ISO-8859-1... done
+  es_AR.UTF-8... done
+  es_BO.ISO-8859-1... done
+  es_BO.UTF-8... done
+  es_CL.ISO-8859-1... done
+  es_CL.UTF-8... done
+  es_CO.ISO-8859-1... done
+  es_CO.UTF-8... done
+  es_CR.ISO-8859-1... done
+  es_CR.UTF-8... done
+  es_DO.ISO-8859-1... done
+  es_DO.UTF-8... done
+  es_EC.ISO-8859-1... done
+  es_EC.UTF-8... done
+  es_ES.ISO-8859-1... done
+  es_ES.UTF-8... done
+  es_ES.ISO-8859-15@euro... done
+  es_GT.ISO-8859-1... done
+  es_GT.UTF-8... done
+  es_HN.ISO-8859-1... done
+  es_HN.UTF-8... done
+  es_MX.ISO-8859-1... done
+  es_MX.UTF-8... done
+  es_NI.ISO-8859-1... done
+  es_NI.UTF-8... done
+  es_PA.ISO-8859-1... done
+  es_PA.UTF-8... done
+  es_PE.ISO-8859-1... done
+  es_PE.UTF-8... done
+  es_PR.ISO-8859-1... done
+  es_PR.UTF-8... done
+  es_PY.ISO-8859-1... done
+  es_PY.UTF-8... done
+  es_SV.ISO-8859-1... done
+  es_SV.UTF-8... done
+  es_US.ISO-8859-1... done
+  es_US.UTF-8... done
+  es_UY.ISO-8859-1... done
+  es_UY.UTF-8... done
+  es_VE.ISO-8859-1... done
+  es_VE.UTF-8... done
+Generation complete.
+root@uhu2:/# locale -a
+C
+C.UTF-8
+de_AT
+de_AT@euro
+de_AT.iso88591
+de_AT.iso885915@euro
+de_AT.utf8
+de_BE
+de_BE@euro
+de_BE.iso88591
+de_BE.iso885915@euro
+de_BE.utf8
+de_CH
+de_CH.iso88591
+de_CH.utf8
+de_DE
+de_DE@euro
+de_DE.iso88591
+de_DE.iso885915@euro
+de_DE.utf8
+de_LI.utf8
+de_LU
+de_LU@euro
+de_LU.iso88591
+de_LU.iso885915@euro
+de_LU.utf8
+deutsch
+en_AG
+en_AG.utf8
+en_AU
+en_AU.iso88591
+en_AU.utf8
+en_BW
+en_BW.iso88591
+en_BW.utf8
+en_CA
+en_CA.iso88591
+en_CA.utf8
+en_DK
+en_DK.iso88591
+en_DK.iso885915
+en_DK.utf8
+en_GB
+en_GB.iso88591
+en_GB.iso885915
+en_GB.utf8
+en_HK
+en_HK.iso88591
+en_HK.utf8
+en_IE
+en_IE@euro
+en_IE.iso88591
+en_IE.iso885915@euro
+en_IE.utf8
+en_IN
+en_IN.utf8
+en_NG
+en_NG.utf8
+en_NZ
+en_NZ.iso88591
+en_NZ.utf8
+en_PH
+en_PH.iso88591
+en_PH.utf8
+en_SG
+en_SG.iso88591
+en_SG.utf8
+en_US
+en_US.iso88591
+en_US.iso885915
+en_US.utf8
+en_ZA
+en_ZA.iso88591
+en_ZA.utf8
+en_ZM
+en_ZM.utf8
+en_ZW
+en_ZW.iso88591
+en_ZW.utf8
+es_AR
+es_AR.iso88591
+es_AR.utf8
+es_BO
+es_BO.iso88591
+es_BO.utf8
+es_CL
+es_CL.iso88591
+es_CL.utf8
+es_CO
+es_CO.iso88591
+es_CO.utf8
+es_CR
+es_CR.iso88591
+es_CR.utf8
+es_DO
+es_DO.iso88591
+es_DO.utf8
+es_EC
+es_EC.iso88591
+es_EC.utf8
+es_ES
+es_ES@euro
+es_ES.iso88591
+es_ES.iso885915@euro
+es_ES.utf8
+es_GT
+es_GT.iso88591
+es_GT.utf8
+es_HN
+es_HN.iso88591
+es_HN.utf8
+es_MX
+es_MX.iso88591
+es_MX.utf8
+es_NI
+es_NI.iso88591
+es_NI.utf8
+es_PA
+es_PA.iso88591
+es_PA.utf8
+es_PE
+es_PE.iso88591
+es_PE.utf8
+es_PR
+es_PR.iso88591
+es_PR.utf8
+es_PY
+es_PY.iso88591
+es_PY.utf8
+es_SV
+es_SV.iso88591
+es_SV.utf8
+es_US
+es_US.iso88591
+es_US.utf8
+es_UY
+es_UY.iso88591
+es_UY.utf8
+es_VE
+es_VE.iso88591
+es_VE.utf8
+german
+POSIX
+spanish
+root@uhu2:/# locale   
+LANG=C
+LANGUAGE=
+LC_CTYPE=de_DE.utf8
+LC_NUMERIC=de_DE.utf8
+LC_TIME=de_DE.utf8
+LC_COLLATE=de_DE.utf8
+LC_MONETARY=de_DE.utf8
+LC_MESSAGES=de_DE.utf8
+LC_PAPER=de_DE.utf8
+LC_NAME=de_DE.utf8
+LC_ADDRESS=de_DE.utf8
+LC_TELEPHONE=de_DE.utf8
+LC_MEASUREMENT=de_DE.utf8
+LC_IDENTIFICATION=de_DE.utf8
+LC_ALL=
+root@uhu2:/#
+root@uhu2:/# apt-get install vim vim-scripts
+Paketlisten werden gelesen... Fertig
+Abhängigkeitsbaum wird aufgebaut.       
+Statusinformationen werden eingelesen.... Fertig
+Die folgenden zusätzlichen Pakete werden installiert:
+  libffi5 libgpm2 libruby1.9.1 libyaml-0-2 ruby ruby1.9.1 vim-addon-manager vim-runtime
+Vorgeschlagene Pakete:
+  gpm ri ruby-dev ruby1.9.1-examples ri1.9.1 graphviz ruby1.9.1-dev ruby-switch ctags vim-doc perlsgml libtemplate-perl
+Die folgenden NEUEN Pakete werden installiert:
+  libffi5 libgpm2 libruby1.9.1 libyaml-0-2 ruby ruby1.9.1 vim vim-addon-manager vim-runtime vim-scripts
+0 aktualisiert, 10 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
+Es müssen 11,0 MB an Archiven heruntergeladen werden.
+Nach dieser Operation werden 41,8 MB Plattenplatz zusätzlich benutzt.
+Möchten Sie fortfahren [J/n]? 
+...
+root@uhu2:/#
+root@uhu2:/# update-alternatives --config editor
+Es gibt 3 Auswahlmöglichkeiten für die Alternative editor (welche /usr/bin/editor bereitstellen).
+
+  Auswahl      Pfad                Priorität Status
+ ------------------------------------------------------------
+* 0            /bin/nano            40        Auto-Modus
+  1            /bin/nano            40        manueller Modus
+  2            /usr/bin/vim.basic   30        manueller Modus
+  3            /usr/bin/vim.tiny    10        manueller Modus
+
+Drücken Sie die Eingabetaste, um die aktuelle Wahl[*] beizubehalten,
+oder geben Sie die Auswahlnummer ein: 2
+update-alternatives: /usr/bin/vim.basic wird verwendet, um /usr/bin/editor (editor) im manueller Modus bereitzustellen
+root@uhu2:/#
+root@uhu2:/# vi /etc/vim/vimrc.local
+root@uhu2:/# cat /etc/vim/vimrc.local
+set noai
+set nohlsearch
+set fo="tcq"
+set modeline
+set showmatch
+set ignorecase
+
+if has("multi_byte")
+    set encoding=utf-8
+    setglobal fileencoding=utf-8
+"     set bomb
+"     set termencoding=iso-8859-15
+"     set fileencodings=ucs-bom,iso-8859-15,iso-8859-3,utf-8
+else
+    echoerr "Sorry, this version of (g)vim was not compiled with +multi_byte"
+endif
+
+if has("autocmd")
+    au BufRead,BufNewFile *.p{l,m,hp} set ts=4 sw=4 noexpandtab
+    autocmd BufReadPost *
+        \ if ! exists("g:leave_my_cursor_position_alone") |
+        \     if line("'\"") > 0 && line ("'\"") <= line("$") |
+        \         exe "normal g'\"" |
+        \     endif |
+        \ endif
+
+endif " has("autocmd")
+
+filetype plugin off
+
+colorscheme delek
+
+syntax on
+root@uhu2:/#
+root@uhu2:/# 
+root@uhu2:/# vi /etc/bash.bashrc
+root@uhu2:/# cat /etc/bash.bashrc
+# System-wide .bashrc file for interactive bash(1) shells.
+
+# To enable the settings / commands in this file for login shells as well,
+# this file has to be sourced in /etc/profile.
+
+# If not running interactively, don't do anything
+[ -z "$PS1" ] && return
+
+# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
+HISTSIZE=5000
+HISTFILESIZE=10000
+HISTTIMEFORMAT='%Y-%m-%d %H:%M:%S '
+HISTCONTROL=ignoredups:ignorespace
+# append to the history file, don't overwrite it
+shopt -s histappend
+
+# coloring grep:
+export GREP_OPTIONS='--color=auto'
+export GREP_COLOR='1;32'
+# hold these special chars when piping to less
+export LESS="--RAW-CONTROL-CHARS"
+
+# 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)
+[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
+
+# set variable identifying the chroot you work in (used in the prompt below)
+if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
+    debian_chroot=$(cat /etc/debian_chroot)
+fi
+
+# set a fancy prompt (non-color, overwrite the one in /etc/profile)
+PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
+
+# uncomment for a colored prompt, if the terminal has the capability; turned
+# off by default to not distract the user: the focus in a terminal window
+# should be on the output of commands, not on the prompt
+force_color_prompt=yes
+
+if [ -n "$force_color_prompt" ]; then
+    if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
+        # We have color support; assume it's compliant with Ecma-48
+        # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
+        # a case would tend to support setf rather than setaf.)
+        color_prompt=yes
+    else
+        color_prompt=
+    fi
+fi
+
+if [ "$color_prompt" = yes ]; then
+    if [ "$UID" = 0 ]; then
+        PS1='$? ${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[01;30m\]:\[\033[01;34m\]\w \$ \[\033[00m\]'
+    else
+        PS1='$? ${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w \$ \[\033[00m\]'
+    fi
+else
+    PS1='$? ${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
+fi
+
+# enable color support of ls and also add handy aliases
+if [ -x /usr/bin/dircolors ]; then
+    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
+    alias ls='ls --color=auto'
+    #alias dir='dir --color=auto'
+    #alias vdir='vdir --color=auto'
+
+#    alias grep='grep --color=auto'
+#    alias fgrep='fgrep --color=auto'
+#    alias egrep='egrep --color=auto'
+fi
+
+# Commented out, don't overwrite xterm -T "title" -n "icontitle" by default.
+# If this is an xterm set the title to user@host:dir
+case "$TERM" in
+xterm*|rxvt*)
+    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
+    ;;
+*)
+    ;;
+esac
+
+alias ..='cd ..'
+alias ...='cd ../..'
+alias cd..='cd ..'
+alias cd...='cd ../..'
+alias l='ls -l'
+alias la='ls -la'
+alias ll='ls -lA'
+alias md='mkdir -p'
+if type -t whoami >/dev/null; then
+    alias pl="ps -fu $(whoami)"
+fi
+alias rd='rmdir'
+
+if [ "$(type -t colordiff)" = "file" ] ; then
+    alias diff="$(type -p colordiff)"
+fi
+
+if [ -f ~/.bash_aliases ]; then
+    . ~/.bash_aliases
+fi
+
+# enable bash completion in interactive shells
+if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
+    . /etc/bash_completion
+fi
+
+if type -t __git_ps1 >/dev/null ; then
+    if [ "$color_prompt" = yes ]; then
+        if [ "$UID" = 0 ]; then
+            PS1='$? ${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[01;30m\]:\[\033[01;34m\]\w\[\033[01;31m\]$(__git_ps1)\[\033[01;34m\] \$ \[\033[00m\]'
+        else
+            PS1='$? ${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[01;31m\]$(__git_ps1)\[\033[01;34m\] > \[\033[00m\]'
+        fi
+    else
+        if [ "$UID" = 0 ]; then
+            PS1='$? ${debian_chroot:+($debian_chroot)}\u@\h:\w$(__git_ps1) \$ '
+        else
+            PS1='$? ${debian_chroot:+($debian_chroot)}\u@\h:\w$(__git_ps1) > '
+        fi
+    fi
+fi
+
+# if the command-not-found package is installed, use it
+if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found ]; then
+    function command_not_found_handle {
+            # check because c-n-f could've been removed in the meantime
+                if [ -x /usr/lib/command-not-found ]; then
+           /usr/bin/python /usr/lib/command-not-found -- $1
+                   return $?
+                elif [ -x /usr/share/command-not-found ]; then
+           /usr/bin/python /usr/share/command-not-found -- $1
+                   return $?
+        else
+           return 127
+        fi
+    }
+fi
+
+unset color_prompt force_color_prompt
+
+# vim: ts=4 expandtab
+root@uhu2:/# 
+root@uhu2:/# . /etc/bash.bashrc
+0 root@uhu2:/ #
+----
+
 // vim: ts=4 expandtab fileencoding=utf-8 filetype=asciidoc