вторник, 2 июля 2013 г.

Безрассудное поведение

FROM

С увлечением крутя педали, я съехал с проселочной дороги на горячий асфальт. С пригорка открылся очаровательный вид на незнакомую усадьбу. Она была трехэтажной, зато в длину простиралась на добрую сотню метров. Фасад украшали белоснежные колонны, а крыша щетинилась направленными в разные стороны телевизионными тарелками и антеннами. По периметру располагался металлический забор с колючей проволокой.

Не успел я хорошенько рассмотреть это великолепие, как из кустов выскочили вооруженные люди, стащили меня с велосипеда и опрокинули носом в асфальт. Буквально через несколько часов после задержания службой вневедомственной охраны я предстал перед судом.

– Вы обвиняетесь

понедельник, 1 июля 2013 г.

XEN: kernel panic

При настройке нового XEN, в конфиге grub необходимо указать dom0_mem
В одном из официальных wiki предлагают указать
dom0_mem=256M
Но данного объема RAM недостаточно, в связи с чем возникает Kernel panic
Для решения данной "проблемы" можно указать значение равное 1gb:
dom0_mem=1024M

Slow ssh login in CentOS 6. ( Upd: CentOS 7)

  • Cent OS 6
  • Edit sshd_config:
    vi /etc/ssh/sshd_config
    change from
    #useDNS yes
    to
    useDNS no


    FRM

    Upd:
  • Cent OS 7
  • Edit sshd_config:
    vi /etc/ssh/sshd_config
    change from
    #useDNS yes
    to
    useDNS no

    and change from
    GSSAPIAuthentication yes
    to
    GSSAPIAuthentication no


    FRM2

четверг, 27 июня 2013 г.

Filesystem update

What u do when filesystem update
During your next update, you will get a error message like:
error: failed to commit transaction (conflicting files)
filesystem: /bin exists in filesystem
The update merges all binaries into a unified /usr/bin directory. This step removes a distinction that has been meaningless for Arch systems and simplifies package maintenance for the development team. See this post for more explanation of the reasoning behind this change. The following instructions will ensure a safe update:
  1. Fix any non-official packages with files in /bin, /sbin or /usr/sbin to put those files in /usr/bin. The list of packages that are not in a repo that need to be fixed can be generated using:
    $ pacman -Qqo /bin /sbin /usr/sbin | pacman -Qm -
    Also check packages installed from non-official repos using:
    $ paclist <repo> | awk ' { print $1 } ' | pacman -Ql - | grep ' /s\?bin/\| /usr/sbin/'
  2. Make sure any packages in IgnorePkg or IgnoreGroup do not have files in /bin, /sbin or /usr/sbin. Fix them if necessary.
  3. If you have files in /bin, /sbin or /usr/sbin that are unowned by any package, you need to move them. Find a list using:
    $ find /bin /sbin /usr/sbin -exec pacman -Qo -- {} + >/dev/null
  4. Ensure all partitions are mounted if using autofs. They may not automount when needed later in this update.
  5. Update your system. Before performing this update, you may want to ensure you have a second terminal open with root privileges in the unlikely event of an emergency, particularly if updating over ssh.
    # pacman -Syu --ignore filesystem,bash
    # pacman -S bash
    # pacman -Su