Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
redhat:base-redhat:basics-redhat [2017/08/22 10:14] – michael | redhat:base-redhat:basics-redhat [2019/06/11 10:24] (current) – [System Information] michael | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Grundlagen für Redhat / CentOS7 ====== | ====== Grundlagen für Redhat / CentOS7 ====== | ||
+ | {{ : | ||
---- | ---- | ||
===== Basis Know-How Redhat Systems ===== | ===== Basis Know-How Redhat Systems ===== | ||
+ | |||
+ | * [[linux: | ||
+ | * [[linux: | ||
+ | |||
<WRAP center box 100%> | <WRAP center box 100%> | ||
==== System Aktualisieren / Warten ==== | ==== System Aktualisieren / Warten ==== | ||
'' | '' | ||
- | - <wrap em> | + | |
+ | <wrap em> | ||
</ | </ | ||
Line 25: | Line 31: | ||
==== motd - Message of the day==== | ==== motd - Message of the day==== | ||
'' | '' | ||
- | |||
- | Add description and serial number to motd: | ||
< | < | ||
- | hxxxxx | + | ############################################################################## |
- | IT2 Debian Test Server (251xxxxx) | + | # # |
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | ############################################################################## | ||
- | Debian Stable (i386) Linux | + | ' > / |
+ | </ | ||
- | IT2 ApplicationServices | + | <WRAP center box 100%> |
+ | ==== Neuer User anlegen ==== | ||
+ | '' | ||
+ | < | ||
+ | # passwd michael</ | ||
- | " | + | ''< |
+ | |||
+ | '' | ||
+ | '' | ||
+ | |||
+ | ''< | ||
+ | |||
+ | < | ||
- | ' > / | ||
</ | </ | ||
+ | <WRAP center box 100%> | ||
+ | ==== Die Grösse eines Ordners anzeigen ==== | ||
+ | '' | ||
+ | < | ||
+ | <sxh plain; gutter: false;> | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP center box 100%> | ||
+ | ==== SSH Login auf Server mit DNS oder User-Hash Problemen ==== | ||
+ | '' | ||
+ | < | ||
+ | |||
+ | <sxh plain; gutter: false;> | ||
+ | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | ||
+ | @ | ||
+ | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | ||
+ | The RSA host key for vb7gl9 has changed, | ||
+ | and the key for the corresponding IP address 172.18.13.12 | ||
+ | is unknown. This could either mean that | ||
+ | DNS SPOOFING is happening or the IP address for the host | ||
+ | and its host key have changed at the same time. | ||
+ | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | ||
+ | @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! | ||
+ | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | ||
+ | IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! | ||
+ | Someone could be eavesdropping on you right now (man-in-the-middle attack)! | ||
+ | It is also possible that a host key has just been changed. | ||
+ | The fingerprint for the RSA key sent by the remote host is | ||
+ | SHA256: | ||
+ | Please contact your system administrator. | ||
+ | Add correct host key in / | ||
+ | Offending RSA key in / | ||
+ | RSA host key for vb7gl9 has changed and you have requested strict checking. | ||
+ | Host key verification failed.</ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ''< | ||
+ | |||
+ | < | ||
+ | |||
+ | </ | ||
---- | ---- | ||
Line 46: | Line 114: | ||
===== Systemverwaltung ===== | ===== Systemverwaltung ===== | ||
'' | '' | ||
+ | |||
+ | <WRAP center box 100%> | ||
+ | ==== Wechseln der Zeitzone ==== | ||
+ | - '' | ||
+ | - '' | ||
+ | - Um nun die aktuelle Timezone (Zeitzone) zu wechseln, verwendet man set-timezone zusammen mit der gewünschten TIMEZONE. <wrap em> | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
Line 64: | Line 144: | ||
<WRAP center box 100%> | <WRAP center box 100%> | ||
==== Show Kernel Version and Architecture ==== | ==== Show Kernel Version and Architecture ==== | ||
- | < | + | - '' |
- | <sxh plain; gutter: false;> | + | |
Linux vstif2.pnet.ch 3.10.0-514.21.1.el7.x86_64 #1 SMP Sat Apr 22 02:41:35 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux | Linux vstif2.pnet.ch 3.10.0-514.21.1.el7.x86_64 #1 SMP Sat Apr 22 02:41:35 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux | ||
+ | </ | ||
+ | - '' | ||
+ | Red Hat Enterprise Linux Server release 7.4 (Maipo) | ||
</ | </ | ||
</ | </ | ||
Line 213: | Line 295: | ||
<WRAP center box 100%> | <WRAP center box 100%> | ||
==== Show Installed Packages ==== | ==== Show Installed Packages ==== | ||
- | < | + | < |
<sxh plain; gutter: false;> | <sxh plain; gutter: false;> | ||
- | ||/ Name | + | pyserial-2.6-6.el7.noarch |
- | +++-==========================-==========================-==================================================================== | + | libblkid-2.23.2-43.el7.x86_64 |
- | ii acpid 1.0.4-5 Utilities for using ACPI power management | + | tfm-rubygem-rails-i18n-4.0.8-1.el7sat.noarch |
- | ii adduser | + | basesystem-10.0-7.el7.noarch |
- | ii apt 0.6.46.4-0.1 | + | pulp-selinux-2.8.7.14-1.el7sat.noarch |
- | ii apt-utils 0.6.46.4-0.1 APT utility programs | + | gawk-4.0.2-4.el7_3.1.x86_64 |
- | ii aptitude | + | tfm-rubygem-sprockets-rails-2.3.3-1.el7sat.noarch |
- | ii base-files 4 | + | libsndfile-1.0.25-10.el7.x86_64 |
- | ii base-passwd | + | libsemanage-2.5-8.el7.x86_64 |
- | ii bash | + | tfm-rubygem-highline-1.6.21-4.el7sat.noarch |
- | ii bsdmainutils | + | rubygem-bundler_ext-0.3.0-7.el7sat.noarch |
- | ii bsdutils | + | fuse-2.9.2-8.el7.x86_64 |
- | ii busybox | + | tfm-rubygem-will_paginate-3.0.7-1.el7sat.noarch |
- | ii console-common | + | popt-1.13-16.el7.x86_64 |
- | ii console-data 1.01-7 | + | cairo-1.14.8-2.el7.x86_64 |
- | ii console-tools | + | libmspack-0.5-0.5.alpha.el7.x86_64 |
- | ii coreutils | + | tfm-rubygem-trollop-2.0-5.el7sat.noarch |
- | ii cpio 2.6-17 GNU cpio -- a program to manage archives of files | + | libcap-ng-0.7.5-4.el7.x86_64 |
- | ii cron 3.0pl1-100 | + | geronimo-jms-1.1.1-19.el7.noarch |
- | ii debconf | + | python-libs-2.7.5-58.el7.x86_64 |
- | ii debconf-i18n 1.5.11 full internationalization support for debconf | + | tfm-rubygem-facter-2.4.0-3.el7sat.x86_64 |
- | ii debian-archive-keyring | + | findutils-4.5.11-5.el7.x86_64 |
- | ii debianutils | + | apache-commons-logging-1.1.2-7.el7.noarch |
- | ii dhcp3-client | + | openldap-2.4.44-5.el7.x86_64 |
- | ii dhcp3-common | + | tfm-rubygem-awesome_print-1.0.2-13.el7sat.noarch |
- | ii diff 2.8.1-11 File comparison utilities | + | tomcat-7.0.76-2.el7.noarch |
- | ii dmidecode | + | ruby-2.0.0.648-30.el7.x86_64 |
- | ii dpkg 1.13.25 package maintenance system for Debian | + | tfm-rubygem-formatador-0.2.1-9.el7sat.noarch |
- | ii dselect | + | unzip-6.0-16.el7.x86_64 |
- | ii e2fslibs | + | fuse-libs-2.9.2-8.el7.x86_64 |
- | ii e2fsprogs | + | tfm-rubygem-fog-vsphere-0.6.3-1.el7sat.noarch |
- | ii ed 0.2-20 The classic unix line editor | + | qrencode-libs-3.4.1-3.el7.x86_64 |
- | ii eject | + | openssl-1.0.2k-8.el7.x86_64 |
- | ii findutils | + | redhat-release-server-7.4-18.el7.x86_64 |
- | ii gcc-4.1-base | + | tfm-rubygem-activerecord-session_store-0.1.2-1.el7sat.noarch |
- | ii gnupg | + | cracklib-2.9.0-11.el7.x86_64 |
- | ii gpgv 1.4.6-2 GNU privacy guard - signature verification tool | + | python-pulp-oid_validation-2.8.7.14-1.el7sat.noarch |
- | ii grep 2.5.1.ds2-6 | + | libcgroup-0.41-13.el7.x86_64 |
- | ii groff-base 1.18.1.1-12 GNU troff text-formatting system (base system components) | + | tfm-rubygem-hammer_cli_katello-0.0.22.29-1.el7sat.noarch |
- | ii grub 0.97-27 | + | libutempter-1.1.6-4.el7.x86_64 |
- | ii gzip 1.3.5-15 The GNU compression utility | + | puppet-3.8.6-2.el7sat.noarch |
- | ii hostname | + | setroubleshoot-plugins-3.0.65-1.el7.noarch |
- | ii ifupdown | + | tfm-rubygem-ancestry-2.0.0-4.el7sat.noarch |
- | ii info 4.8.dfsg.1-4 | + | .. |
- | ii initramfs-tools 0.85h tools for generating an initramfs | + | </ |
- | ii initscripts | + | </ |
- | ii installation-report | + | |
- | ii iptables | + | |
- | ii iputils-ping | + | |
- | ii klibc-utils | + | |
- | ii klogd 1.4.1-18 | + | |
- | ii laptop-detect | + | |
- | ii libacl1 | + | |
- | ii libattr1 | + | |
- | ii libblkid1 | + | |
- | ii libbz2-1.0 1.0.3-6 high-quality block-sorting file compressor library - runtime | + | |
- | ii libc6 | + | |
- | ii libcap1 | + | |
- | ii libcomerr2 | + | |
- | ii libconsole | + | |
- | ii libdb4.2 | + | |
- | ii libdb4.3 4.3.29-8 | + | |
- | ii libdb4.4 | + | |
- | ii libdevmapper1.02 1.02.08-1 The Linux Kernel Device Mapper userspace library | + | |
- | ii libedit2 | + | |
- | ii libgcc1 | + | |
- | ii libgcrypt11 | + | |
- | ii libgdbm3 | + | |
- | ii libgnutls13 | + | |
- | ii libgpg-error0 | + | |
- | ii libklibc | + | |
- | ii libkrb53 | + | |
- | ii libldap2 | + | |
- | ii liblocale-gettext-perl 1.05-1 Using libc functions for internationalization in Perl | + | |
- | ii liblzo1 | + | |
- | ii libncurses5 | + | |
- | ii libncursesw5 | + | |
- | ii libnewt0.52 | + | |
- | ii libopencdk8 | + | |
- | ii libpam-modules | + | |
- | ii libpam-runtime | + | |
- | ii libpam0g | + | |
- | ii libpopt0 | + | |
- | ii libreadline5 | + | |
- | ii libsasl2 | + | |
- | ii libsasl2-2 2.1.22.dfsg1-8 | + | |
- | ii libselinux1 | + | |
- | ii libsepol1 | + | |
- | ii libsigc++-2.0-0c2a 2.0.17-2 type-safe Signal Framework for C++ - runtime | + | |
- | ii libslang2 | + | |
- | ii libss2 | + | |
- | ii libssl0.9.8 | + | |
- | ii libstdc++6 4.1.1-21 | + | |
- | ii libtasn1-3 0.3.6-2 Manage ASN.1 structures (runtime) | + | |
- | ii libtext-charwidth-perl | + | |
- | ii libtext-iconv-perl 1.4-3 converts between character sets in Perl | + | |
- | ii libtext-wrapi18n-perl | + | |
- | ii libusb-0.1-4 0.1.12-5 | + | |
- | ii libuuid1 | + | |
- | ii libvolume-id0 0.105-4 libvolume_id shared library | + | |
- | ii libwrap0 | + | |
- | ii linux-image-2.6.18-5-amd64 2.6.18.dfsg.1-13etch4 | + | |
- | ii locales | + | |
- | ii login 4.0.18.1-7 | + | |
- | ii logrotate | + | |
- | ii lsb-base | + | |
- | ii lvm-common | + | |
- | ii lvm2 2.02.06-4 The Linux Logical Volume Manager | + | |
- | ii makedev | + | |
- | ii man-db 2.4.3-6 The on-line manual pager | + | |
- | ii manpages | + | |
- | ii mawk 1.3.3-11 a pattern scanning and text processing language | + | |
- | ii mktemp | + | |
- | ii module-init-tools | + | |
- | ii mount 2.12r-19 Tools for mounting and manipulating filesystems | + | |
- | ii nano 2.0.2-1etch1 | + | |
- | ii ncurses-base | + | |
- | ii ncurses-bin | + | |
- | ii net-tools 1.60-17 The NET-3 networking toolkit | + | |
- | ii netbase | + | |
- | ii netcat | + | |
- | ii openbsd-inetd | + | |
- | ii openssh-client | + | |
- | ii openssh-server | + | |
- | ii passwd | + | |
- | ii perl-base | + | |
- | ii procps | + | |
- | ii readline-common | + | |
- | ii sed 4.1.5-1 The GNU sed stream editor | + | |
- | ii ssh 4.3p2-9 | + | |
- | ii sudo 1.6.8p12-4 Provide limited super user privileges to specific users | + | |
- | ii sysklogd | + | |
- | ii sysv-rc 2.86.ds1-38 System-V-like runlevel change mechanism | + | |
- | ii sysvinit | + | |
- | ii sysvinit-utils | + | |
- | ii tar 1.16-2 GNU tar | + | |
- | ii tasksel | + | |
- | ii tasksel-data | + | |
- | ii tcpd | + | |
- | ii traceroute | + | |
- | ii tzdata | + | |
- | ii udev 0.105-4 /dev/ and hotplug management daemon | + | |
- | ii update-inetd 4.27-0.5 | + | |
- | ii usbutils | + | |
- | ii util-linux | + | |
- | ii vim-common | + | |
- | ii vim-tiny | + | |
- | ii wget 1.10.2-2 | + | |
- | ii whiptail | + | |
- | ii zlib1g | + | |
- | h034w5:~# dpkg -l | grep ^ii | wc -l | + | <WRAP center box 100%> |
- | 148 | + | ==== Show Contents of one Installed Package ==== |
+ | '' | ||
+ | < | ||
+ | <sxh plain; gutter: false;> | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | .. | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | |||
+ | <WRAP center box 100%> | ||
+ | ==== Show what exactly a Package does on installation ==== | ||
+ | '' | ||
+ | < | ||
+ | <sxh plain; gutter: false;> | ||
+ | postinstall scriptlet (using /bin/sh): | ||
+ | #!/bin/sh | ||
+ | |||
+ | if [ ! -e / | ||
+ | cp / | ||
+ | fi | ||
+ | |||
+ | if ! grep / | ||
+ | sed -i -e " | ||
+ | / | ||
+ | fi | ||
+ | |||
+ | service httpd reload | ||
+ | |||
+ | patchman-set-secret-key | ||
+ | chown apache / | ||
+ | |||
+ | mkdir -p / | ||
+ | patchman-manage collectstatic --noinput | ||
+ | |||
+ | patchman-manage makemigrations | ||
+ | patchman-manage migrate --run-syncdb | ||
+ | |||
+ | chown -R apache: | ||
+ | chcon --type httpd_sys_rw_content_t / | ||
+ | |||
+ | echo | ||
+ | echo " | ||
+ | echo | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Redhat Dokumentation zum Thema ===== | ||
+ | |||
+ | <WRAP center round download 80%> | ||
+ | '' | ||
+ | </ | ||
+ | |||
+ | |||