ascii image


0010101000011111101001101010000010011000
1110101110110101011011111010010010001011
0001011100011101111001010011010010111110
0000010111101001100000110011101100001000
0011000000111010001111111000100110000001
1010110110000000000001011001000110001010
0101100010101100000100000010100100010101
0001011001011101100011000101110111101110
0110010100110100111101110100110011111101
0010111100110011010010110010101111011011
0100000000001001001011000010110100101001
1101000111100000110111011100110111000010
1111110001111111101101001010000111101100
0010110000100000111011000000101100010110
0101111000011100111010000000011111101111
0010010011110010011101001000110101000101
0000000001000100001111111100111010001111

Thursday, 12 November 2015

lxd - container wont start due to fork error


# lxc start test-centos-6 

error: Error calling 'lxd forkstart test-centos-6 /var/lib/lxd/containers /var/log/lxd/test-centos-6/lxc.conf': err='exit status 1'
Try `lxc info --show-log test-centos-6` for more info
Check the logs
# lxc info --show-log test-centos-6 | egrep "ERROR"
            lxc 1447352472.614 ERROR    lxc_utils - utils.c:setproctitle:1461 - Invalid argument - setting cmdline failed
            lxc 1447352472.675 ERROR    lxc_sync - sync.c:__sync_wake:62 - sync wake failure : Broken pipe
            lxc 1447352472.675 ERROR    lxc_start - start.c:__lxc_start:1192 - failed to spawn 'test-centos-6'
Basically, i had set the max memory for the container to 4GB.
with
lxc config set test-centos-6 limits.memory 4096
Only thing it is in bytes not MB
This fixes it.
lxc config set test-centos-6 limits.memory 4096000000
Check the container once started
# lxc start test-centos-6

# lxc exec test-centos-6 /bin/bash

[root@test-centos-6 ~]# free -g
             total       used       free     shared    buffers     cached
Mem:             3          0          3          0          0          0
-/+ buffers/cache:          0          3 
Swap:            7          0          7 

Tuesday, 30 June 2015

Ubuntu 14.04 - window buttons to the right


Read this.

https://askubuntu.com/a/451330

sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install gnome-session-flashback

log out, and select gnome flashback as the Desktop

now run this

gsettings set org.gnome.desktop.wm.preferences button-layout 'menu:minimize,maximize,close' 

a bit more saner :)

Changing Ubuntu 14.04 scroll bar colors


Install  gnome-tweak-tool, this will sort out Firefox etc.

$ sudo apt-get install gnome-tweak-tool

Next fix GTK 3.0

Make sure you pick the right theme :)  current as of June 2015

$ sudo gedit /usr/share/themes/Ambiance/gtk-3.0/gtk-widgets.css


Add the stepper buttons

/* search for the stepper and change the size */

-GtkRange-stepper-size: 20;   /* was 13 */

/* enable the stepper */

/*************
 * scrollbar *
 *************/
.scrollbar,
.scrollbar.vertical {
    -GtkScrollbar-has-backward-stepper: 1;   /* 1 = enable */
    -GtkScrollbar-has-forward-stepper: 1;
    -GtkRange-slider-width: 20;   /* change width, was 13 */




/* change the colors */

/* VERTICAL */

.scrollbar.slider,
.scrollbar.slider:hover,
.scrollbar.button,
.scrollbar.slider.vertical,
.scrollbar.slider.vertical:hover,
.scrollbar.button.vertical {
    border-width: 1px;
    border-style: solid;
    border-color: shade (@bg_color, 0.86);
    background-image: -gtk-gradient (linear, left top, right top,
                                     from (shade (#00BFFF, 1.08)),   /* was @button_bg_color */
                                     color-stop (0.5, #00BFFF),      /* was @button_bg_color */
                                     to (shade (#00BFFF, 0.94)));    /* was @button_bg_color */



/* HORIZONTAL */

.scrollbar.slider.horizontal,
.scrollbar.slider.horizontal:hover,
.scrollbar.button.horizontal {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (#00BFFF, 1.08)),    /* was @button_bg_color */
                                     color-stop (0.5, #00BFFF),       /* was @button_bg_color */
                                     to (shade (#00BFFF, 0.94)));     /* was @button_bg_color */