Tuesday, 17 October 2017

Utilitas

Status : Draft

Berikut adalah beberapa utilitas yang insyaAllah bermanfaat dan mempermudah kita dalam pekerjaan sehari-hari :


Manajemen Sistem

  1. galternatives - sudo apt-get galternatives
    Paket yang membantu kita menset alternatives system  dengan bantuan gui. 

Utilitas yang berhubungan dengan PDF 

  1. PDF-Shuffler - sudo apt-get install pdfshuffler
    PDF-Shuffler is a small python-gtk application, which helps the user to merge or split pdf documents and rotate, crop and rearrange their pages using an interactive and intuitive graphical interface. It is a frontend for python-pyPdf.
    https://sourceforge.net/projects/pdfshuffler/

Monday, 25 September 2017

Setup VPN Server di Ubuntu

Status : Draft

$ sudo apt-get install ssh
$ sudo apt-get update && sudo apt-get install openvpn easy-rsa
$ make-cadir openvpn-ca
$ sudo bash
# cd openvpn-ca
# jed vars
# ln -s openssl-1.0.0.cnf openssl.cnf
# source vars
# ./clean-all
# ./build-ca
# ./build-key-server server
# ./build-dh
# openvpn --genkey --secret keys/ta.key
# source vars
# ./build-key client1
# cd keys
# cp ca.crt ca.key server.crt server.key ta.key dh2048.pem /etc/openvpn
# gunzip -c /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz | sudo tee /etc/openvpn/server.conf

Referensi

  1. How To Set Up an OpenVPN Server on Ubuntu 16.04, https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-16-04

Friday, 28 April 2017

Solid State Drives (SSD) di Linux

Status : Draft


Beberapa tips optimalisasi penggunaan SSD :

Pilih SLC (Single Level Cell) untuk Performa dan daya tahan terbaik 

SLC (Single Level Cell) saat ini merupakan yang terbaik, selanjutnya eMLC (Enterprise Multi Level Cell), lalu MLC (Multi Level Cell) lalu yang paling rendah TLC (Triple Level Cell) [4]

/tmp di mount ke ram

Tambahkan entri berikut di fstab, kemudian reboot : 

none /tmp tmpfs defaults 0 0

Untuk  tips yang lain silahkan baca pada bagian referensi.

Referensi

  1. 5 crucial optimizations for SSD usage in Ubuntu Linux, https://www.leaseweb.com/labs/2013/07/5-crucial-optimizations-for-ssd-usage-in-ubuntu-linux/
  2. How can I monitor the TBW on my Samsung SSD?, https://askubuntu.com/questions/865792/how-can-i-monitor-the-tbw-on-my-samsung-ssd
  3. Solid state drives in Linux: Enabling TRIM for SSDs, https://opensource.com/article/17/1/solid-state-drives-linux-enabling-trim-ssds
  4. Everything You Need to Know About SLC, MLC, & TLC NAND Flash, https://www.mydigitaldiscount.com/everything-you-need-to-know-about-slc-mlc-and-tlc-nand-flash.html

Cron : time-based job schedule

Status : Draft

Referensi

  1. Cron, https://en.wikipedia.org/wiki/Cron
  2. Reasons why crontab does not work, https://www.blogger.com/blogger.g?blogID=597281796874554104#editor/target=post;postID=6937010560866578259

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/

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, bpytop

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