AT command disable PIN

Define that current pin code is 0000

OK
AT+CPIN?
+CPIN: SIM PIN
OK
AT+CPIN=”0000″
OK
AT+CLCK=”SC”,0,”0000″
OK

chan_dongle asterisk 11

При компіляції chan_dongle під asterisk 11 на етапі make отримуємо таку помилку
In file included from app.c:21:0:
/usr/include/asterisk/version.h:1:2: error: #error "Do not include 'asterisk/version.h'; use 'asterisk/ast_version.h' instead."
app.c: In function 'app_register':
app.c:162:3: warning: passing argument 2 of 'ast_register_application2' from incompatible pointer type [enabled by default]
In file included from app.c:20:0:
/usr/include/asterisk/module.h:458:5: note: expected 'int (*)(struct ast_channel *, const char *)' but argument is of type 'int (*)(struct ast_channel *, void *)'
make: *** [app.o] Error 1

Вирішення (Centos 6.4)

1) Ставимо automake autoconf
2) Качаємо пропатчений chan_dongle під asterisk 11 і розархівовуємо
3) Заходимо в папку і виконуємо по черзі aclocal, autoconf, automake -a
4) Далі ставимо як звичайно : ./configure, ./make, ./make install
5) Копіюємо файл конфігурації cp etc/dongle.conf /etc/asterisk/

python psutil

psutil is a module providing an interface for retrieving information on all running processes and system utilization (CPU, memory, disks, network, users) in a portable way by using Python, implementing many functionalities offered by command line tools such as:

  • ps
    • top
    • df
    • netstat
    • who
    • kill
    • uptime
    • free
    • lsof
    • ifconfig
    • nice
    • ionice
    • iostat
    • iotop
    • pidof
    • tty
    • taskset
    • pmap

ubuntu vnc key d show desktop

3  solutions:

1) dbconf   org > gnome > desktop > wm > keybindings

change show-desktop = [‘<Alt>d’]

2)

1. sudo apt-get install compizconfig-settings-manager

2. Run the compiz config manager: ccsm (no sudo)

3. In the compiz config manager: General (left side) -> General Options (right side) -> Key bindings (tab) -> Show Desktop (with the keyboard icon) -> Click the “X” icon (on the far right) This sets the default of d.

4. Click on the key binding d.

5. Click “Grab key combination”

6. Press ALT+D (or whatever other key combo you want to bind to the “show desktop” option).

7. Click OK

8. Click Back

9. Click Close.

10. Restart your remote session if you have one running.

3) edit file /home/youruser/.gconf/%gconf.xml

<?xml version=”1.0″?>
<gconf>
<entry name=”show_desktop” mtime=”1374499126″ type=”string”>
<stringvalue>&lt;Control&gt;&lt;Alt&gt;d</stringvalue>
</entry>
</gconf>

from here