10 Haziran 2017 Cumartesi

dumpcap

-f seçeneği
Açıklaması şöyle
-f
Set the capture filter expression.
The entire filter expression must be specified as a single argument (which means that if it contains spaces, it must be quoted).
This option can occur multiple times. If used before the first occurrence of the -i option, it sets the default capture filter expression. If used after an -i option, it sets the capture filter expression for the interface specified by the last -i option occurring before this option. If the capture filter expression is not set specifically, the default capture filter expression is used if provided.
Şöyle yaparız.
dumpcap -i wlp2s0 -b filesize:100000 -w capture.pcapng -a duration:18000
  -f `wlan addr1 d4:be:d9:5b:a6:45'

1 Haziran 2017 Perşembe

ntpd

ntpd
-g seçeneği
Açıklaması şöyle
-g

Normally, ntpd exits with a message to the system log if the offset exceeds the panic threshold, which is 1000 s by default. This option allows the time to be set to any value without restriction; however, this can happen only once. If the threshold is exceeded after that, ntpd will exit with a message to the system log. This option can be used with the -q and -x options. See the tinker command for other options.
Örnek
Şöyle yaparız
ntpd -g -x -q pool.ntp.org
ntp.conf Dosyası
Giriş
Bu dosyanın yolu /etc/ntp.conf şeklinde.

Örnek - client
Şöyle yaparız
driftfile /var/lib/ntp/ntp.drift
leapfile /usr/share/zoneinfo/leap-seconds.list

statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable

server 192.168.0.51

restrict -4 default kod notrap nomodify nopeer noquery limited
restrict -6 default kod notrap nomodify nopeer noquery limited

# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1

# Needed for adding pool entries
restrict source notrap nomodify noquery

# If you want to listen to time broadcasts on your local subnet, de-comment the
# next lines.  Please do this only if you trust everybody on the network!
disable auth
broadcastclient
minpoll Alanı
Açıklaması şöyle
minpoll minpoll
maxpoll maxpoll
    These options specify the minimum and maximum poll intervals for NTP 
    messages, in seconds as a power of two. The maximum poll interval 
    defaults to 10 (1024 s), but can be increased by the maxpoll option to 
    an upper limit of 17 (36 h). The minimum poll interval defaults to 6 (64 s), 
    but can be decreased by the minpoll option to a lower limit of 3 (8 s).

31 Mayıs 2017 Çarşamba

ntpq komutu

shell seçenekleri
ntpq ile shell açılabilir. Eğer saat geri kalmışsa ntpdate ile güncellenebilir

lpeers 
lpeers ile listeme yapılabilir. 

Komut Seçenekleri
-p seçeneği 
Print list anlamına gelir. Kullanılan NTP sunucuları hakkında bilgi verir.
Örnek
Şöyle yaparız
ntpq -p server_ip

ntpq -pn
Offset sütunu NTP sunucusu ile aramızdaki farktır. Jitter sütünü olması gereken zamana göre kaymadır. Değerler milisaniye cinsindendir. 

30 Mayıs 2017 Salı

pv komutu

-b seçeneği
pipe içinden geçen byte sayısını verir. Şöyle yaparız. Bu komut yerine wc -c komutu kullanılabilir.
mysqldump | pv -b > /dev/null


29 Mayıs 2017 Pazartesi

Jitsi

Giriş
Jitsi bir sunucu gerektiriyor. Chat yanında telefon, vidyo görüşmesi imkânı tanıyor. 

12 Mayıs 2017 Cuma

route komutu

add seçeneği
Şöyle yaparız.
route add default 192.168.0.1
get seçeneği
Örnek
Eğer Default Gateway yoksa çıktı olarak şunu alırız
route get default
route: writing to routing socket: not in table
gw seçeneği
Örnek
Bir arayüze Default gateway eklemek için şöyle yaparız
route add default gw 192.168.0.253 eth0

Örnek
Default gateway eklemek için  şöyle yaparız.
route add -net 0.0.0.0 mask 0.0.0.0 gw 192.168.1.1
-n seçeneği
Açıklaması şöyle. Adres yerine sayı görmek için kullanılır.
show numerical addresses instead of trying to determine symbolic host names. This is useful if you are trying to determine why the route to your nameserver has vanished.
Örnek
Şöyle yaparız.
route -n flush

5 Mayıs 2017 Cuma

gpsd

Make ve Kurulum
scons && scons check && sudo scons udev-install

xgpsd komutu
gpsd servisine bağlanıp uyduların konumunu gösterir.

gpsd komutu
gpsd kaynak olarak bir TCP sunucusunu okuyabilir. Şöyle yaparız.
gpsd -n tcp://192.168.1.2:40006

-n seçeneği
gpsd -n /dev/ttyS0