Posts

Showing posts from March, 2014

Перегляд історії комітів у деревоподібному вигяді

Для того, щоб переглянути історію комітів git в деревоподібному вигляді слід виконати команду: git log --graph --oneline --all Більше інформації тут

How set Ubuntu server console resolution and font size

First of all, let`s start from resolution: Resolution setting 1. While system booting press C. You will prompt in the grub console. The command vbeinfo can help you to find out what resolutions are supported. vbeinfo 2. Open file /etc/default/grub and add next variables (if not exist): GRUB_GFXMODE =1152x864x32 #this is supported value on my machine, # yours can be different GRUB_GFXPAYLOAD_LINUX =1152x864x32 3. Open file /etc/grub.d/00_header and set new values for: if [ "x${GRUB_GFXMODE}" = "x" ] ; then GRUB_GFXMODE= 1152x864x32 ; fi if [ "x${GRUB_GFXPAYLOAD}" = "x" ]; then GRUB_GFXPAYLOAD= 1152x864x32 ; fi set gfxmode=${GRUB_GFXMODE} set gfxplayload=${GRUB_GFXPAYLOAD} It is possible you will need to add lines with GFXPAYLOAD - don`t hesitate:) 4. Update grub: sudo update-grub 5. Reboot: sudo shutdown -r now Console font setting: To set font try ...

VirtualBox same UUID error

Some times when I trying create a new VM from existing virtual drive occured same UUID error. Solution is simple:  $ VBoxManage internalcommands sethduuid [path to the copied virtual drive file]

Troubles running run_tests.sh in OpenStack Nova

I`ve got an error messages while going to run tests in Nova. So solution is next: 1. Create a development environment.     Run: sudo apt-get install python-dev libssl-dev python-pip git-core libxml2-dev libxslt-dev pkg-config libffi-dev     Than (for Ubuntu): sudo apt-get build-dep python-mysqldb 2. Create a virtual environment and install dependencies: ./run_tests.sh In case of an error: source .venv/bin/activate Than: pip install -r requirements.txt && pip install -r test-requirements.txt It is possible receive error related to PostgreSQL module absence in some cases. So run: sudo apt-get install libpq-dev That`s all:)