1) После установки "чистой" ОС и обновления пакетов до актуального состояния нам могут понадобиться пакеты из сторонних репозиториев, пример: htop, его в стандартных репо просто нет.
Ниже буду писать список репозиториев, принесших пользу лично мне.
Fedoraproject Epel x86_64
для версии 6, для 7 версии.
для подключения к своей системе устанавливаем RPM epel-release.
(В случае возникновения Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again)
Фикс простой:
vim /etc/yum.repos.d/epel.repoИ на строке mirrorlist=https заменяем на http.
RepoForge (ex. RPMForge)
RPMfusion.org
2) Смена timezone на работающем сервере:
cp /usr/share/zoneinfo/Europe/moscow /etc/localtime
3) dot1q vlan на сетевых интерфейсах (from redhat customer portal)
Configure your physical interface inmodprobe 8021q
/etc/sysconfig/network-scripts/ifcfg-ethX, where X is a unique number corresponding to a specific interface, as follows:Configure the VLAN interface configuration in
DEVICE=ethX TYPE=Ethernet BOOTPROTO=none ONBOOT=yes
/etc/sysconfig/network-scripts. The configuration filename should be the physical interface plus a . character plus the VLAN ID number. For example, if the VLAN ID is 192, and the physical interface is eth0, then the configuration filename should be ifcfg-eth0.192:If there is a need to configure a second VLAN, with for example, VLAN ID 193, on the same interface,
DEVICE=ethX.192 BOOTPROTO=none ONBOOT=yes IPADDR=192.168.1.1 NETMASK=255.255.255.0 USERCTL=no NETWORK=192.168.1.0 VLAN=yes
eth0 , add a new file with the name eth0.193 with the VLAN configuration details.Restart the networking service, in order for the changes to take effect, as follows:
5) Использование Http proxy в yum и консоли (from centos docs):
service network restart
To enable all
yum operations to use a proxy
        server, specify the proxy server details in
        /etc/yum.conf. The proxy
        setting must specify the proxy server as a complete URL,
        including the TCP port number. If your proxy server requires a
        username and password, specify these by adding
        proxy_username and
        proxy_password settings.
      The settings below enable
yum to use the
        proxy server
        mycache.mydomain.com,
        connecting to port 3128, with the username
        yum-user and the
        password qwerty.To enable proxy access for a specific user, add the lines in the example box below to the user's shell profile. For the default# The proxy server - proxy server:port number proxy=http://mycache.mydomain.com:3128 # The account details for yum connections proxy_username=yum-user proxy_password=qwerty
bash shell, the profile is the file
        ~/.bash_profile. The settings below enable
        yum to use the proxy server
        mycache.mydomain.com,
        connecting to port 3128.# The Web proxy server used by this account http_proxy="http://mycache.mydomain.com:3128" export http_proxy
6) How to install dig on CentOS
yum install bind-utils
Комментариев нет:
Отправить комментарий
Примечание. Отправлять комментарии могут только участники этого блога.