Saturday, 11 March 2017

Text Processing

Status : Draft


rpl


Salah satu tool yang bermanfaat adalah rpl [1].
rpl : intelligent recursive search/replace utility.   
rpl is a text replacement utility. It will replace strings with new strings  in multiple text files. It can work recursively over directories and supports  limiting the search to specific file suffixes.



Referensi


  1. How can I replace a string in a file(s)?, http://unix.stackexchange.com/questions/112023/how-can-i-replace-a-string-in-a-files
  2. rpl, http://rpl.sourceforge.net/

Solid State Drives (SSD) di Linux

Status : Draft

Referensi


  1. Solid state drives in Linux: Enabling TRIM for SSDs, https://opensource.com/article/17/1/solid-state-drives-linux-enabling-trim-ssds

Friday, 3 March 2017

Linux Performance Anaylisis

Status : Draft

Beberapa tool yang bisa kita manfaatkan untuk analisis performa di Linux, terutama yang dijalankan di comand line : atop, vmstat, iostat, top, htop, mpstat, iptraf, glances,  saidar

Saturday, 7 January 2017

USB Tethering

Status : Draft

Kasus 1
 
Server terkoneksi dengan LAN yang tidak terkoneksi ke internet ..., kita ingin tethering via HP yang terkoneksi via Wifi.

Lihat ethernet device yg tersedia

$ifconfig
....
enp0s20u10 Link encap:Ethernet  HWaddr 02:5f:6f:30:61:34 
          inet addr:192.168.42.86  Bcast:192.168.42.255  Mask:255.255.255.0
          inet6 addr: fe80::f3cc:8911:dd0c:5588/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:752 errors:0 dropped:0 overruns:0 frame:0
          TX packets:732 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:662531 (662.5 KB)  TX bytes:112711 (112.7 KB)
....

update dhcp :

$sudo dhclient enp0s20u10


tambahkan routing default :


sudo route del default gw 192.168.42.86

Friday, 6 January 2017

Solusi : -bash: /bin/rm: Argument list too long

Buat file di ~/bin/rmall

#!/bin/bash                                                                                                                                  
for i in *; do rm -f "$i"; done

chmod +x ~/bin/rmall

Referensi


  1. -bash: /bin/rm: Argument list too long - Solution, https://linuxconfig.org/bash-bin-rm-argument-list-too-long-solution



Saturday, 17 December 2016

resolvconf : Set DNS Default

Untuk menset DNS default, edit file :
/etc/resolvconf/resolv.conf.d/head 
dan tambahkan dengan daftar DNS default yang ingin kita gunakan, contohnya :
nameserver 8.8.8.8
nameserver 8.8.4.4
Jika sudah, jalankan :
sudo resolvconf -u

 Referensi


  1. How do I set my DNS when resolv.conf is being overwritten?, http://unix.stackexchange.com/questions/128220/how-do-i-set-my-dns-when-resolv-conf-is-being-overwritten