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. 

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