30 gru 2015

10 gru 2015

fluxbox wheezy nm-applet themes

touch ~/.config/gtk-3.0/settings.ini

....
[Settings]
gtk-theme-name = Adwaita
gtk-fallback-icon-theme = gnome-brave
gtk-font-name=Sans 8
....


http light

python -m SimpleHTTPServer 8000

lighttpd

thttpd ;)

7 gru 2015

upgrade: squeeze -> wheezy nm-applet WARNING **: Failed to add/activate connection: (32) Not authorized to control networking

touch /etc/polkit-1/localauthority/50-local.d/org.freedesktop.NetworkManager.pkla


....

[nm-applet]
Identity=unix-group:netdev
Action=org.freedesktop.NetworkManager.*
ResultAny=yes
ResultInactive=no
ResultActive=yes
....


adduser <user> netdev


ponadto można sprawdzić dostęp:

/etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf

....
:%s/deny /allow /g
....

1 gru 2015

firewall iptables

#!/bin/sh

ipt=/sbin/iptables
ip6t=/sbin/ip6tables

# czyszczonko
${ipt} -F
${ipt} -X
${ipt} -t nat -F
${ipt} -t nat -X
${ipt} -t mangle -F
${ipt} -t mangle -X
${ipt} -P INPUT ACCEPT
${ipt} -P OUTPUT ACCEPT
${ipt} -P FORWARD ACCEPT

${ip6t} -F
${ip6t} -X
#${ip6t} -t nat -F
#${ip6t} -t nat -X
${ip6t} -t mangle -F
${ip6t} -t mangle -X
${ip6t} -P INPUT ACCEPT
${ip6t} -P OUTPUT ACCEPT
${ip6t} -P FORWARD ACCEPT

# nowe dwie reguły
${ipt} -N TCP
${ipt} -N UDP

# polityka 
${ipt} -P FORWARD DROP
${ipt} -P OUTPUT ACCEPT
${ipt} -P INPUT DROP

# puszczam wszystkie nawiązane połączenia
${ipt} -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT

# dostęp dla lo
${ipt} -A INPUT -i lo -j ACCEPT

# drop invalid ;)
# Note: ICMPv6 Neighbor Discovery packets remain untracked, and will always be classified "INVALID" though they are not corrupted or thelike. 
# Keep this in mind, and accept them before this rule! ${ipt} -A INPUT -p 41 -j ACCEPT
#${ipt} -A INPUT -p 41 -j ACCEPT

${ipt} -A INPUT -m conntrack --ctstate INVALID -j DROP

# włączam odpowiedzi na pingi
${ipt} -A INPUT -p icmp --icmp-type 8 -m conntrack --ctstate NEW -j ACCEPT
# ograniczam ilość ping req
${ipt} -I INPUT -p icmp --icmp-type 8 -m recent --set
${ipt} -I INPUT -p icmp --icmp-type 8 -m recent --update --seconds 10 --hitcount 5 -j DROP

# podłączenie nowych regół
${ipt} -A INPUT -p udp -m conntrack --ctstate NEW -j UDP
${ipt} -A INPUT -p tcp --syn -m conntrack --ctstate NEW -j TCP

# cała reszta 'OUT!'
${ipt} -A INPUT -p udp -j REJECT --reject-with icmp-port-unreachable
${ipt} -A INPUT -p tcp -j REJECT --reject-with tcp-rst

${ipt} -A INPUT -j REJECT --reject-with icmp-proto-unreachable

# www
${ipt} -A TCP -p tcp -m tcp --dport 80 -j ACCEPT
echo allow www 80


${ipt} -A UDP -p udp -m udp -s 172.17.0.0/24 --dport 137 -j ACCEPT
${ipt} -A UDP -p udp -m udp -s 172.17.0.0/24 --dport 138 -j ACCEPT
${ipt} -A TCP -p tcp -m tcp -s 172.17.0.0/24 --dport 139 -j ACCEPT
${ipt} -A TCP -p tcp -m tcp -s 172.17.0.0/24 --dport 445 -j ACCEPT
echo allow samba in localnet 137,138,139,445

# ftp from localnet allow
${ipt} -A TCP -s 172.17.0.0/24 -p tcp --dport 21 -j ACCEPT
${ipt} -A TCP -s 172.17.0.0/24 -p tcp -m tcp --dport 50000:50100 -j ACCEPT
echo allow ftp from localnet
echo allow ftp passive 50000:50100


25 lis 2015

adb tcpip startup

mount -o remount,rw /system
echo 'service.adb.tcp.port=5555' >> /system/build.prop

19 lis 2015

android fastboot kernel

# mango (sk17i) xperia mini pro - 
# fastboot mode ( vol up + usb )
fastboot flash boot kernel.img



# fastboot erase system
# fastboot erase userdata

udev reload rules

udevadm control --reload-rules

3 lis 2015

touchpad edge-scroll / click

/usr/share/X11/xorg.conf.d/50-synaptics.conf 

add :
Option "TapButton1" "1"
Option "VertEdgeScroll" "1"

29 paź 2015

SSH pipe..

z 'Tar' przez ssh

TAM:
tar zcf - cos | ssh user@server 'tar zxf -'

Z POWROTEM:
ssh user@server 'tar zcf - cos' | tar zxf -

ZDALNE:
ssh user@server 'bash -s' < exec.sh
ssh user@server 'mpg321 -' < audio.mp3


Backup..

tar zcf - cos | ssh user@server 'cat - > cos.tar.gz'
tar zcf - cos | gpg -e | ssh user@server 'cat - > cos.tar.gz.gpg'
tar zcf - cos | openssl enc -rc4 | ssh user@server 'cat - > cos.tar.gz.rc4'
ssh user@server 'cat cos.tar.gz.rc4' | openssl enc -rc4 -d -out cos.tar.gz

TAM:
dd if=/dev/sda | ssh user@server 'dd of=sda.img'

Z POWROTEM:
ssh user@server 'dd if=sda.img' | dd of=/dev/sda

26 cze 2015

xterm mc (alt + enter) fix

Mój ~/.Xdefaults :
---

xterm*saveLines:32767
xterm*background:Black
xterm*foreground:Green
xterm*scrollBar:false
xterm*font:-schumacher-*-*-*-*-*-*-*-*-*-*-*-iso8859-2
xterm*boldFont:-xos4-terminus-medium-r-*-*-*-*-*-*-*-*-iso8859-2
xterm*termName:xterm-256color
xterm*fullscreen:never
xterm*cursorBlink:true
xterm*cursorColor:yellow
xterm*charClass:33:48,36-47:48,58-59:48,61:48,63-64:48,95:48,126:48
xterm*on4Clicks: regex ([[:alpha:]]+://)?([[:alnum:]!#+,./=?@_~-]|(%[[:xdigit:]][[:xdigit:]]))+
xterm*on3Clicks: regex (^.*$)+
xterm*metaSendsEscape: true


---

xrdb -load ~/.Xdefaults

18 cze 2015

ssh i socket proxy

ssh -p<port_ssh> -o ProxyCommand='nc -x <ip_proxy:port_proxy> %h %p' <login>@<ip_ssh>

debian squeeze Dell Latitude d430

xorg.conf:

---

Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
#       Screen      1  "Screen1" RightOf "Screen0"
#       Screen      2  "Screen2" RightOf "Screen1"
        InputDevice    "TouchPad" "SendCoreEvents"
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "/usr/share/fonts/X11/misc"
        FontPath     "/usr/share/fonts/X11/cyrillic"
        FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
        FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
        FontPath     "/usr/share/fonts/X11/Type1"
        FontPath     "/usr/share/fonts/X11/100dpi"
        FontPath     "/usr/share/fonts/X11/75dpi"
        FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
        FontPath     "built-ins"
EndSection

Section "Module"
        Load  "synaptics"
        Load  "dri2"
        Load  "dri"
        Load  "glx"
        Load  "dbe"
        Load  "record"
        Load  "extmod"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "InputDevice"
        Identifier "TouchPad" 
        Driver "synaptics" 
        Option "Protocol" "auto-dev" 
        Option "Device" "/dev/input/mouse1" 
        Option "MatchIsTouchpad" "on"
        Option "SHMConfig" "on" 
        Option "LeftEdge" "120" 
        Option "RightEdge" "830" 
        Option "TopEdge" "120" 
        Option "BottomEdge" "650" 
        Option "FastTaps" "1" 
        Option "TapButton1" "1"
        Option "VertScrollDelta" "20" 
        Option "HorizScrollDelta" "0" 
        Option "MinSpeed" "0.7" 
        Option "MaxSpeed" "1" 
        Option "AccelFactor" "0.070" 
        Option "FingerLow" "35"
        Option "FingerHigh" "40"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Monitor"
        Identifier   "Monitor1"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Monitor"
        Identifier   "Monitor2"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "AccelMethod"               # [<str>]
        #Option     "DRI"                       # [<bool>]
        #Option     "ColorKey"                  # <i>
        #Option     "VideoKey"                  # <i>
        #Option     "FallbackDebug"             # [<bool>]
        #Option     "Tiling"                    # [<bool>]
        #Option     "LinearFramebuffer"         # [<bool>]
        #Option     "Shadow"                    # [<bool>]
        #Option     "SwapbuffersWait"           # [<bool>]
        #Option     "XvMC"                      # [<bool>]
        #Option     "XvPreferOverlay"           # [<bool>]
        #Option     "DebugFlushBatches"         # [<bool>]
        #Option     "DebugFlushCaches"          # [<bool>]
        #Option     "DebugWait"                 # [<bool>]
        #Option     "HotPlug"                   # [<bool>]
        #Option     "RelaxedFencing"            # [<bool>]
        Identifier  "Card0"
        Driver      "intel"
        BusID       "PCI:0:2:0"

        Option        "DRI"            "true"
        Option        "NoDDC"            "true"
        Option        "NoAccel"        "false"
        Option        "EnablePageFlip"    "true"
        Option        "RenderAccel"        "true"
        Option        "AccelMethod"        "EXA"
        Option        "MigrationHeuristic"    "greedy"
        Option        "ExaNoComposite"    "false"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "ShadowFB"                  # [<bool>]
        #Option     "Rotate"                    # <str>
        #Option     "fbdev"                     # <str>
        #Option     "debug"                     # [<bool>]
        Identifier  "Card1"
        Driver      "fbdev"
        BusID       "PCI:0:2:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "ShadowFB"                  # [<bool>]
        #Option     "DefaultRefresh"            # [<bool>]
        #Option     "ModeSetClearScreen"        # [<bool>]
        Identifier  "Card2"
        Driver      "vesa"
        BusID       "PCI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen1"
        Device     "Card1"
        Monitor    "Monitor1"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen2"
        Device     "Card2"
        Monitor    "Monitor2"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

---

source.list:

---

deb http://ftp.pl.debian.org/debian/ squeeze main non-free contrib
deb http://ftp.pl.debian.org/debian/ wheezy main
deb-src http://ftp.pl.debian.org/debian/ squeeze main non-free contrib

deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free

deb http://http.debian.net/debian-backports squeeze-backports main contrib non-free

deb http://www.deb-multimedia.org squeeze main non-free
deb http://www.deb-multimedia.org squeeze-backports main

---

/etc/apt/preferences.d/wheezy:   ( gcc-4.7   [aptitude install gcc/wheezy )   // potrzebne do tmux-mem-cpu-load

---
Package: *
Pin: release n=squeeze
Pin-Priority: 900

Package: *
Pin: release n=wheezy
Pin-Priority: 200
---

/etc/default/grub: (replace lines)

---

GRUB_CMDLINE_LINUX_DEFAULT="elevator=noop quiet nomodeset vga=8"

GRUB_GFXMODE=1024x768

---

/etc/modprobe.d/alsa-base.conf: (add)

---

options snd-hda-intel model=dell-m22 enable=1 index=0
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
---

/etc/modprobe.d/i915-kms.conf: (new)

---

options i915 modeset=1
---


mSATA Intel 120GB (trim) + zif-mSATA adapter + kernel 3.2.0-0.bpo.4-amd64 (backports) 

Mniejsze użycie + przyśpieszenie = RAM

fstab:  

xfs with options: noatime,discard

# tmpfs
tmpfs   /tmp            tmpfs   size=300M,defaults,noatime      0       0
tmpfs   /var/log        tmpfs   size=10M,defaults,noatime       0       0
tmpfs   /var/tmp        tmpfs   size=20M,defaults,noatime       0       0



/etc/X11/Xsession: (replace)
---
ERRFILE=/tmp/$USER-xsession-errors
---

~/.fluxbox/startup: (add)
---
if [ ! -d /tmp/${USER}-thumbnails ]; then mkdir -m 0700 /tmp/${USER}-thumbnails; fi
if [ ! -d /tmp/${USER}-cache ]; then mkdir -m 0700 /tmp/${USER}-cache; fi
---

po dodaniu, przed ponownym uruchomieniem usunąć katalogi: 
rm -rf ~/.thumbnails ~/.cache
utworzyć nowe:
mkdir -m 0700 /tmp/${USER}-thumbnails  /tmp/${USER}-cache
stworzyć symlinki:
ln -s /tmp/${USER}-thumbnails ~/.thumbnails
ln -s /tmp/${USER}-cache ~/.cache



Inne dodatki w ~/.fluxbox/startup:
# dla działającego poprawnie touchpada
synclient TapButton1=1 LBCornerButton=2 RBCornerButton=3 &  

xrdb -load ~/.Xdefaults &

/usr/bin/perl -e 'sleep 5 && exec ("rm -rf /home/\${USER}/.tilda/locks/* && /usr/bin/tilda &");' &
/usr/bin/perl -e 'sleep 5 && exec ("/usr/bin/conky &");' &
xscreensaver -no-splash -log /tmp/${USER}-xscreensaver.log &
/usr/bin/perl -e 'sleep 10 && exec ("/usr/bin/root-tail -g 1000x200+30+590 -font \"-*-clean-*-*-*-*-12-*-*-*-*-*-*-*\" /var/log/messages,#585858 /var/log/auth.log,#bd0d0d /tmp/\${USER}-xsession-errors,#ffffff &");' &




28 maj 2015

debian squeeze acer aspire one A110

/etc/default/grub: [update]

GRUB_CMDLINE_LINUX_DEFAULT="elevator=noop quiet pciehp.pciehp_force=1 enable_mtrr_cleanup vga=8"
GRUB_GFXMODE=800x600


/etc/modprobe.d/alsa-base.conf: [new]

options snd-hda-intel model=acer-aspire


/etc/modprobe.d/acerhdf.conf: [new]

options acerhdf kernelmode=1 interval=10 fanon=65000 fanoff=60000


/etc/modprobe.d/aspire-blacklist-memstick.conf: [new]

blacklist jmb38x_ms
blacklist memstick


/etc/modprobe.d/i915-kms.conf: [new]
options i915 modeset=1


/etc/modules: [update]

loop
acpi_cpufreq


/etc/rc.local: [update]

# Change writeback-time (as suggested by powertop)
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs

# Enable laptop mode
echo 5 > /proc/sys/vm/laptop_mode

# Make the right SD-slot visible, as suggested by the Debian wiki (problem..)
#setpci -d 197b:2381 AE=47
# left?
#setpci -d 197b:2382 AE=47

# wifi-on-off
/usr/bin/setkeycodes e055 159
/usr/bin/setkeycodes e056 158

# fn-key
/usr/bin/setkeycodes e025 130
/usr/bin/setkeycodes e026 131
/usr/bin/setkeycodes e027 132
/usr/bin/setkeycodes e029 122
/usr/bin/setkeycodes e071 134
/usr/bin/setkeycodes e072 135


no swap

/etc/fstab: [update]

# tmpfs
tmpfs /var/log tmpfs size=10M,defaults,noatime 0 0
tmpfs /tmp tmpfs size=300M,defaults,noatime 0 0
tmpfs /var/tmp tmpfs size=20M,defaults,noatime 0 0


/etc/apt/source.list: [update]

deb http://ftp.pl.debian.org/debian/ squeeze main non-free contrib
deb-src http://ftp.pl.debian.org/debian/ squeeze main non-free contrib

deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free

deb http://http.debian.net/debian-backports squeeze-backports main contrib non-free

deb http://www.deb-multimedia.org squeeze main non-free
deb http://www.deb-multimedia.org squeeze-backports main

18 maj 2015

mutt Maildir postfix

~/.muttrc

set mbox_type=Maildir

set spoolfile="~/Maildir"
set folder="~/Maildir"
set mask="!^\\.[^.]"
set mbox="~/Maildir"
set record="+.Sent"
set postponed="+.Drafts"



postfix:
postconf -e "home_mailbox = Maildir/"
postconf -e "mailbox_command = "

8 maj 2015

automount

Dwa sposoby?

1. usbmount
2. udev :
   a) automount.rules -> /etc/udev/rules.d

    automount.rules:

    ACTION=="add",KERNEL=="sdb*", RUN+="/usr/bin/pmount --sync --umask 000 %k"
    ACTION=="remove", KERNEL=="sdb*", RUN+="/usr/bin/pumount %k"
    ACTION=="add",KERNEL=="sdc*", RUN+="/usr/bin/pmount --sync --umask 000 %k"
    ACTION=="remove", KERNEL=="sdc*", RUN+="/usr/bin/pumount %k"

#> udevadm control --reload-rules
                                                                         ( src: unix.stackexchange.com )

17 kwi 2015

login i hasło

tcpdump port http or port ftp or port smtp or port imap or port pop3 -l -A | egrep -i \
'pass=|pwd=|log=|login=|user=|username=|pw=|passw=|passwd=|password=|pass:|user:|username: \
|password:|login:|pass |user ' --color=auto --line-buffered -B20

1
ngrep '[&\s?](?:login|user(?:name|)|p(ass(?:word|wd|)|w|wd))[\s:=]\s?([^&\s]*)' -q -i

9 kwi 2015

sudo jednorazowo wprowadzone hasło dla sesji, nie pyta więcej

Defaults    env_reset,!tty_tickets

tworzenia patcha

diff -Naur plik1 plik2 > p.patch
patch -p1 < p.patch

włącz / wyłącz monitor

xset dpms force off
xset dpms force on
xset -q

naprawa grub

Linia poleceń "grub"
Wpisz root (hd0,2)  #partycja odpowiednia do partycji gruba
Wpisz setup (hd0)  # dysk
i wyjdź : quit

ciekawe zarządzanie aplikacjami w xach

Wmctrl provides command line access to almost all the features defined in the EWMH specification. For example it can maximize windows, make them sticky, set them to be always on top. It can switch and resize desktops and perform many other useful operations.

Record system output sound [pacat] (pulseaudio)

pacmd list | grep ".monitor"

"output.monitor"

pacat --record -d output.monitor | sox -t raw -r 44100 -e signed-integer -L -b 16 -c 2 - audio.wav

przydatna pętla w powłoce

watch

3 kwi 2015

badblock

Test: read-write: patterns : 0xaa (10101010), 0x55 (01010101), 0xff (11111111) and 0x00 (00000000)

badblocks -wsv /dev/<device>


Test: read-write: random pattern

badblocks -wsv -t random /dev/<device>



Test: read-write [non-destructive]

badblocks -nsv /dev/<device>
fsck -vcck /dev/<device-part>




Create filesystem with badblocks

badblocks -wsv -o badblocks.txt /dev/<device>

mkfs.<fs> -l badblocks.txt /dev/<device>


24 mar 2015

Connect SSH via socks5 proxy

ssh -o ProxyCommand='nc -x 127.0.0.1:30000 %h %p' user@destination.com

mc


~/.config/mc/ini :
[Midnight-Commander]
(..)
skin=ne.ini

 ------
skin: ~/.local/share/mc/skins/ne.ini :
 ------
 [skin]
    description=nEon skin


[Lines]

( copy from default )

[core]
    _default_=green;
    selected=white
    marked=yellow;
    markselect=brightred;
    gauge=;white
    input=white;green
    reverse=black;lightgray

[dialog]
    dfocus=brightred;white
    dhotnormal=brightred;
    dhotfocus=brightred;

[error]
    _default_=white;red
    errdhotnormal=yellow;red
    errdhotfocus=yellow;lightgray

[filehighlight]
    directory=cyan;
    executable=green;
    symlink=cyan;
    stalelink=lightgray;red;
    device=brown;
    special=brown;
    core=red;
    temp=black;green;
    archive=red;
    doc=green;
    source=cyan;
    media=magenta;
    graph=magenta;
    database=blue;

[menu]
    menuhot=white;
    menusel=white;
    menuhotsel=brightred;

[help]
    helpitalic=brightred;
    helpbold=blue;
    helplink=white;
    helpslink=white;brightred
[editor]
    editbold=yellow;blue
    editmarked=black;cyan
    editwhitespace=brightblue;blue
    linestate=white;cyan
[viewer]
    viewunderline=brightred;blue

17 lut 2015

3GPP TS

3GPP TS 27.007 Release 9 145 V9.4.0 (2010-06)

AT+CAAP 7.25 - Automatic answer for eMLPP Service
AT+CACM 8.25 - Accumulated call meter
AT+CAEMLPP 7.22 - eMLPP Priority Registration and Interrogation
AT+CAHLD 11.1.3 - Leave an ongoing Voice Group or Voice Broadcast Call
AT+CAJOIN 11.1.1 - Accept an incoming Voice Group or Voice Broadcast Call
AT+CALA 8.16 - Alarm
AT+CALCC 11.1.6 - List current Voice Group and Voice Broadcast Calls
AT+CALD 8.38 - Delete alarm
AT+CALM 8.20 - Alert sound mode
AT+CAMM 8.26 - Accumulated call meter maximum
AT+CANCHEV 11.1.8 - NCH Support Indication
AT+CAOC 7.16 - Advice of Charge
AT+CAPD 8.39 - Postpone or dismiss an alarm
AT+CAPTT 11.1.4 - Talker Access for Voice Group Call
AT+CAREJ 11.1.2 - Reject an incoming Voice Group or Voice Broadcast Call
AT+CAULEV 11.1.5 - Voice Group Call Uplink Status Presentation
AT+CBC 8.4 - Battery charge
AT+CBCAP 8.59 - Battery Capacity
AT+CBCHG 8.61 - Battery Charger Status
AT+CBCON 8.60 - Battery Connection Status
AT+CBCS 11.3.2 - VBS subscriptions and GId status
AT+CBKLT 8.51 - Backlight
AT+CBST 6.7 - Select bearer service type
AT+CCFC 7.11 - Call forwarding number and conditions
AT+CCHC 8.46 - Close Logical Channel
AT+CCHO 8.45 - Open Logical Channel
AT+CCLK 8.15 - Clock
AT+CCUG 7.10 - Closed user group
AT+CCWA 7.12 - Call waiting
AT+CCWE 8.28 - Call Meter maximum event
AT+CDIP 7.9 - Called line identification presentation
AT+CDIS 8.8 - Display control
AT+CEAP 8.47 - EAP authentication
AT+CEER 6.10 - Extended error report
AT+CEMODE 10.1.28 - UE modes of operation for EPS
AT+CEPTT 11.1.10 - Short Data Transmission during ongoing VGCS
AT+CEREG 10.1.22 - EPS network registration status
AT+CERP 8.48 - EAP Retrieve Parameters
AT+CFCS 7.24 - Fast call setup conditions
AT+CFUN 8.2 - Set phone functionality
AT+CGACT 10.1.10 - PDP context activate or deactivate
AT+CGATT 10.1.9 - PS attach or detach
AT+CGCLASS 10.1.17 - GPRS mobile station class
AT+CGCLOSP 10.1.13 - Configure local Octet Stream PAD parameters
AT+CGCMOD 10.1.11 - PDP Context Modify
AT+CGCONTRDP 10.1.23 - PDP Context Read Dynamic Parameters
AT+CGCS 11.3.1 - VGCS subscriptions and GId status
AT+CGDATA 10.1.12 - Enter data state
AT+CGDCONT 10.1.1 - Define PDP Context
AT+CGDSCONT 10.1.2 - Define Secondary PDP Context
AT+CGEQOS 10.1.26 - Define EPS Quality Of Service
AT+CGEQOSRDP 10.1.27 - EPS Quality Of Service Read Dynamic Parameters
AT+CGEREP 10.1.19 - Packet Domain event reporting
AT+CGLA 8.43 - Generic UICC Logical Channel access
AT+CGMI 5.1 - Request manufacturer identification
AT+CGMM 5.2 - Request model identification
AT+CGMR 5.3 - Request revision identification
AT+CGREG 10.1.20 - GPRS network registration status
AT+CGSMS 10.1.21 - Select service for MO SMS messages
AT+CGSN 5.4 - Request product serial number identification
AT+CGTFT 10.1.3 - Traffic Flow Template
AT+CGTFTRDP 10.1.25 - Traffic Flow Template Read Dynamic Parameters
AT+CHLD 7.13 - Call related supplementary services
AT+CHSC 6.15 - HSCSD current call parameters
AT+CHSD 6.12 - HSCSD device parameters
AT+CHSR 6.16 - HSCSD parameters report
AT+CHST 6.13 - HSCSD transparent call configuration
AT+CHSU 6.17 - HSCSD automatic user initiated upgrading
AT+CHUP 6.5 - Hangup call
AT+CIMI 5.6 - Request international mobile subscriber identity
AT+CIND 8.9 - Indicator control
AT+CKPD 8.7 - Keypad control
AT+CLAC 8.37 - List all available AT commands
AT+CLAE 8.31 - Language Event
AT+CLAN 8.30 - Set Language
AT+CLCC 7.18 - List current calls
AT+CLCK 7.4 - Facility lock
AT+CLIP 7.6 - Calling line identification presentation
AT+CLIR 7.7 - Calling line identification restriction
AT+CLVL 8.23 - Loudspeaker volume level
AT+CMAR 8.36 - Master Reset
AT+CMEC 8.6 - Mobile Termination control mode
AT+CMEE 9.1 - Report mobile termination error
AT+CMER 8.10 - Mobile Termination event reporting
AT+CMOD 6.4 - Call mode
AT+CMOLR 8.50 - Mobile Originated Location Request
AT+CMOLRE 9.1 - Report mobile originated location request error
AT+CMOLRE 9.3 - Mobile termination error result code
AT+CMTLR 8.57 - Mobile Terminated Location Request notification
AT+CMUT 8.24 - Mute control
AT+CMUX 5.7 - Multiplexing mode
AT+CNAP 7.30 - Calling name identification presentation
AT+CNUM 7.1 - Subscriber number
AT+COLP 7.8 - Connected line identification presentation
AT+COLR 7.31 - Connected line identification restriction status
AT+COPN 7.21 - Read operator names
AT+COPS 7.3 - PLMN selection
AT+COTDI 11.1.9 - Originator to Dispatcher Information
AT+CPAS 8.1 - Phone activity status
AT+CPBF 8.13 - Find phonebook entries
AT+CPBR 8.12 - Read phonebook entries
AT+CPBS 8.11 - Select phonebook memory storage
AT+CPBW 8.14 - Write phonebook entry
AT+CPIN 8.3 - Enter PIN
AT+CPLS 7.20 - Selection of preferred PLMN list
AT+CPNET 7.27 - Preferred network indication
AT+CPNSTAT 7.28 - Preferred network status
AT+CPOL 7.19 - Preferred PLMN list
AT+CPOS 8.55 - Positioning Control
AT+CPOSR 8.56 - Positioning Reporting
AT+CPPS 7.23 - eMLPP subscriptions
AT+CPROT 8.42 - Enter protocol mode
AT+CPSB 7.29 - Current Packet Switched Bearer
AT+CPUC 8.27 - Price per unit and currency table
AT+CPWC 8.29 - Power class
AT+CPWD 7.5 - Change password
AT+CR 6.9 - Service reporting control
AT+CRC 6.11 - Cellular result codes
AT+CREG 7.2 - Network registration
AT+CRLA 8.44 - Restricted UICC Logical Channel access
AT+CRLP 6.8 - Radio link protocol
AT+CRMC 8.34 - Ring Melody Control
AT+CRMP 8.35 - Ring Melody Playback
AT+CRSL 8.21 - Ringer sound level
AT+CRSM 8.18 - Restricted SIM access
AT+CSCC 8.19 - Secure control command
AT+CSCS 5.5 - Select TE character set
AT+CSDF 6.22 - Settings date format
AT+CSGT 8.32 - Set Greeting Text
AT+CSIL 6.23 - Silence Command
AT+CSIM 8.17 - Generic SIM access
AT+CSNS 6.19 - Single numbering scheme
AT+CSQ 8.5 - Signal quality
AT+CSSAC 7.32 - Service Specific Access Control restriction status
AT+CSSN 7.17 - Supplementary service notifications
AT+CSTA 6.1 - Select type of address
AT+CSTF 6.24 - Settings time format
AT+CSVM 8.33 - Set Voice Mail Number
AT+CTFR 7.14 - Call deflection
AT+CTZR 8.41 - Time Zone Reporting
AT+CTZU 8.40 - Automatic Time Zone Update
AT+CUAD 8.49 - UICC Application Discovery
AT+CUSD 7.15 - Unstructured supplementary service data
AT+CVHU 6.20 - Voice Hangup Control
AT+CVIB 8.22 - Vibrator mode
AT+CVMOD 6.4 - Voice Call Mode
AT+FCLASS C.2.1 - Select mode
AT+VBT C.2.2 - Buffer threshold setting
AT+VCID C.2.3 - Calling number ID presentation
AT+VGR C.2.4 - Receive gain selection
AT+VGT C.2.5 - Transmit gain selection
AT+VIP C.2.6 - Initialise voice parameters
AT+VIT C.2.7 - Inactivity timer
AT+VLS C.2.8 - Line selection
AT+VRX C.2.9 - Receive data state
AT+VSM C.2.10 - Select compression method
AT+VTD C.2.12 - Tone duration
AT+VTS C.2.11 - DTMF and tone generation
AT+VTX C.2.13 - Transmit data state

2 lut 2015

hdd monitor - command line

iotop 

aptitude install sysstat, collectl
:

pidstat -d 2
sar -d 5 5 -p
collectl : http://collectl.sourceforge.net/Matrix.html

23 sty 2015

opiekey on Debian Wheezy howto

dpkg -i opie*.deb libpam-opie*.deb


> /etc/pam.d/opie [new]

auth           sufficient      pam_opie.so
session        optional        pam_opie.so




> /etc/pam.d/ssh

(...)
auth       required     pam_env.so envfile=/etc/default/locale

# Enable OPIE authentication.
@include opie


# Standard Un*x authentication.
@include common-auth
(...)




> /etc/ssh/sshd_config

ChallengeResponseAuthentication yes
UsePAM yes

/etc/init.d/ssh restart



on user account shell set passphrase with:
opiepasswd -f -c



pogoda / meteo android widget

APK:
meteowidget

monitor gsm/wifi android

APK:

G-MoN
NetMonitor