Generate password Ubuntu

Для тех, кто не хочет знать свой пароль есть утилита apg.

sudo apt-get install apg

Теперь попробоуем сгенерить себе новый пароль:

hello@world-server:~$ apg
Please enter some random data (only first 16 are significant)
(eg. your old password):>
bontIfDooj6 (bont-If-Dooj-SIX)
Mocnudkidd5 (Moc-nud-kidd-FIVE)
mifojElWolt5 (mif-oj-El-Wolt-FIVE)
epidpaj5Od1 (ep-id-paj-FIVE-Od-ONE)
BufShegyus4 (Buf-Sheg-yus-FOUR)
HygunEld6 (Hyg-un-Eld-SIX)

nopasswd for sudoers

Сделать sudo беспарольным операция вполне обычная. Но я как-то устал каждый раз набирать в гугле что да как.

1. Добавляем себя в sudo группу для Ubuntu. (для Fedora можно wheel)

sudo usermod -a -G sudo $USER

2. Редактируем /etc/sudoers

sudo vim /etc/sudoers

строчка с %sudo должна принять вид. (для Fedora %wheel опять-же)

%sudo ALL=(ALL) NOPASSWD: ALL

Спасибонезачто.

 

OS X in VirtualBox - fix resolution

There's an easy way to fix resolution of your guest VirtualMachine.

You should execute something like the following command on your host machine:

VBoxManage setextradata osx CustomVideoMode1 "1920x1080x32"

Where "osx" is your virtual machine name and "1920x1080x32" is your target resolution.

OpenStack testing setup with devstack and tempest

If you have ever made any changes into OpenStack code, you will wonder how to test it. Even if you run unit tests before committing changes, this is not enough. Such complex system requires some level of integration testing. There is an OpenStack project called tempest. That is OpenStack integration test suite.

Download

This project is not the first try to do integration tests in OpenStack, however, it selected to be the standard one. It is not yet mature and it leaves some servers running after it is completed. Further more, running tempest takes a lot of time, so it is clear nobody will run it before commit or push.

Those kind of testing you will probably do via Continious Integration server. And I will describe how to create an isolated test box with vagrant, chef and devstack for testing purposes.

Read the rest of this post »

Vagrant

Сел разбираться с Chef. Первый рецепт готов. Пора проверять... но где?

Отладить на домашнем десктопе - неправильно, снесу - что-нибудь, жалко будет. Значит, запускаем VirtualBox и плодим виртуалки. Но когда это восьмая и девятая, начинаешь задумываться - а нет ли management механизма для этого. 

Vagrant_chilling

Особо циничный читатель уже понимает, что такой механизм есть и именно о нем я собираюсь рассказать в текущем посте.

Read the rest of this post »

Ubuntu 11.10 x64 fix Skype after update

После апдейта поломался скайп. Падает с ошибкой

skype: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory

Есть зарепорченый баг в launchpad: https://bugs.launchpad.net/ubuntu/+source/ia32-libs/+bug/830440

Лечить так:

echo foreign-architecture i386 | sudo tee /etc/dpkg/dpkg.cfg.d/multiarch
sudo apt-get install libxss1:i386 libqtcore4:i386 libqt4-dbus:i386 libqtgui4:i386