Home » Posts tagged 'Linux'

Tag Archives: Linux

Problem Ethernet Realtek8169 tidak bisa terhubung di Linux Mint 18.3


Problem muncul saat ada teman menginstall Linux Mint 18.3 64 bit. Ethernet dikenali sebagai epn2s0 dengan memakai driver r8169. Setelah diberikan IP Address, dapat digunakan untuk tes koneksi ke diri sendiri tetapi tidak bisa untuk tes koneksi keluar dari diri-nya sendiri.
Setelah mencari di google, ditemukan solusi berikut :

Langkah-langkah :

1. Install dependencies: (tidak harus dilakukan di Linux Mint 18.3)

sudo apt-get install build-essential linux-headers-$(uname -r)

2. Download the driver “LINUX driver for kernel up to 4.7” from here

3. Blacklist the r8169 driver

sudo sh -c ‘echo blacklist r8169 >> /etc/modprobe.d/blacklist.conf’

4. Untar the archive

tar xfvj 0010-r8168–8.045.08.tar.bz2

5. Compile and install the driver

cd r8168–8.045.08/
sudo ./autorun.sh

6. Check the driver

$ lsmod | grep r8168
r8168 520192 0

7. Check whther the driver is loaded properly

ethtool -i enp2s0

8. Restart the computer

Source : https://medium.com/@lgobinath/no-ethernet-connection-in-ubuntu-16-04-linux-mint-18-with-realtek-rtl8111-8168-8411-7ae2779dc9b8

Trick agar bisa pakai extention downtemall di firefox


Update firefox dari versi 56 menjadi firefox quantum (alias firefox 57) menjadi buah simalakama karena firefox quantum memang berubah total dengan adanya webextension. Tetapi efeknya adalah beberapa extension yang masih belum mengadopsi webextension alias extension legacy tidak bisa digunakan alias disabled. Salah satu extension yang penting dan vital yang ikut ter-disabled karena belum mengadopsi webextension adalah downthemall. Padahal extension downthemall ini sangat vital. Apalagi jika untuk download video stream.

Akhirnya untuk mengakali hal ini saya download versi firefox lama (versi 56) dari web firefox langsung dan mengekstraknya. Lalu jalankan firefox quantum (versi 57) dan pastikan autoupdate-nya di-off-kan alias di-disabled. Tujuannya adalah ketika kita menjalankan firefox versi 56 (yang baru saja kita download) tidak ikut terupdate otomatis.

Setelah update otomatis dimatikan, silakan jalankan firefox versi 56 lewat command. O iya….saat ini saya pakai Linux, jadi mau pake firefox versi berapapun dan beda-beda versi tidak ada masalah….

Firefox lama (versi 56)

Firefox Quantum (versi 57)

Download : SAPGUI for Java for Linux 7.40 rev 5


Berikut link untuk download SAPGUI for Java for Linux versi 7.40 rev 5

http://adf.ly/1VCAMW

Selamat men-download !!

Download : SAPGUI for Java for Linux 7.30 rev 9


Berikut link untuk download SAPGUI for Java for Linux versi 7.30 rev 9

http://adf.ly/1VCAJv

Selamat men-download !!

Video Step by Step upgrade SLES 11 SP 2 to SLES 11 SP 4


Hi…

This video shows you on step by step upgrade process from SuSE Linux Enterprise Server 11 SP 2 to SuSE Linux Enterprise Server SP 4 (the latest version).

Enjoy !!

Fast, Easy, and Proven – Tuning Performance PC/Laptop yang pasti berhasil !!


Gw selama ini bekerja dengan notebook lama (Acer Aspire 4710 keluaran tahun 2007). OS yang gw pake adalah Linux Mint 17.2 Rafaella (berbasis Ubuntu 14.04 LTS). Dengan memory 1,5 GB terasa lambat jika membuka beberapa tab halaman web dengan firefox, aplikasi SAPGUI (klien untuk ERP SAP) plus file Manager.

Setelah mencari beberapa lama dan menemukan ide untuk tuning, akhirnya gw memutuskan untuk membeli SSD. Untuk membeli SSD, gw mempertimbangkan harga dan kapasitas SSD. Tahun lalu (2014) harga keekonomisan SSD di kapasitas 120/128 GB (kisaran harga 1 jutaan). Saat ini harga kekonomian SSD di kapasitas 240/256 GB dengan harga di kisaran 1 jutaan. Gw gak perlu SSD sampe kapasitas 240/256 GB, cukup 120 GB karena HDD notebook yang gw pake saat ini adalah 120 GB.

Setelah review dan mencari beberapa lama, ada beberapa kandidat yang cukup murah :

  • SSD Kingston SSDNow (kapasitas 120 GB), harga sekitar 850 ribu
  • SSD SANDisk X110 (kapasitas 128 GB), harga sekitar 700 ribu
  • SSD Kingmax SMP35 (kapasitas 120 GB), harga sekitar 650 ribu

Setelah melihat harga, akhirnya diputuskan membeli SSD yang terakhir. Harga cukup murah dan kapasitas pas. Setelah SSD datang, langsung dilakukan kloning HDD notebook dari SATA ke SSD memakai haddisk docking. Setelah selesai, langsung lancap ke notebook dan start.

Ternyata memang benar. Performa langsung meningkat drastis dan ini instan. Tidak perlu setting yang aneh-aneh. Tuning yang dilakukan setelah memakai SSD adalah setting TRIM untuk memperpanjang lifespan dari SSD sendiri.

Jika Anda berminat untuk melakukan pemesanan SSD ini, bisa pesan melalui saya. Nanti akan saya carikan harga terbaik 🙂

Placing Firefox cache in RAM on Ubuntu


To enhance Firefox performance on Ubuntu (or Linux), we can place the cache in RAM. This is especially helpful if you are used to hours of continuous browsing sessions.

I have mounted some directories with temporary files using the tmpfs, which is RAM based filesystem. These files will be discarded at reboot, which also helps to keep my system clean.

The entries in /etc/fstab are like:

tmpfs /tmp tmpfs noexec,defaults,noatime,nodiratime 0 0
tmpfs /var/log tmpfs noexec,defaults,noatime,nodiratime 0 0
Add the following line at the end of /etc/sysctl.conf file:

vm.swappiness = 0
Run:

# sudo sysctl -p
In Firefox, go to about:config page and search for the following entry:

browser.cache.disk.parent_directory
If it is not there, right click and create a new String value and name it as

browser.cache.disk.parent_directory
Set the value to /tmp (or tmpfs directory of your choice). Restart Firefox.

ZRAM vs ZSWAP vs ZCACHE


Another interesting to “oprex” :

Summary of what to use when:

  1. ZRAM if you have no HDD/SSD swap partition.
  2. ZSWAP if you do have a HDD/SSD swap partition.
  3. ZCACHE: It does what ZSWAP does and ALSO compresses and speeds the filesystem page cache. (It is internally much more complicated and is not in the mainline kernel as it is still under development).

Summary of their implementations:

  1. ZRAM is a compressed RAM based swap device
  2. ZSWAP is a compressed Cache if you already have a swap.
  3. ZCache is a backend for a special type of Virtual RAM thingy (Transcendent memory) that can be used to cache filesystem pages or swap data.

Details:

  • ZRAM: Makes a swap device in the RAM. Pages sent here are compressed as they are stored. It has a higher priority than other swap devices: pages that are swapped out are preferentially sent to the zram device till it is full, only then are any other swap devices used.
    • Benefits: Independent of other (physical) swap devices. It can be used when there is no swap partition to expand the available memory.
    • Disadvantages: If other swap devices (HDD/SSD) are present they are not used optimally. As the zram device is an independent swap device, once it is full, any new pages that need to be swapped out are sent to next swap device directly, hence:
      1. There is a real chance of LRU (least recently used) inversion: It will be the most recently swapped data that goes to the slow disk, while inactive pages that were swapped out long ago will remain in the fast ZRAM
      2. The data sent to and read from the disk will consume a lot of bandwidth as it is uncompressed.
        • Status: Merged into the mainline kernel 3.14. Once enabled on a system, it requires some userspace configuration to set up the swap devices and use them.
  • ZSWAP: The frontswap system hooks attempts to swap out pages and uses zswap as write-back-cache for a HDD/SSD swap device: An attempt is made to compress the page and if it contains poorly compressible data it is directly written two the disk. If the data is compressed, it is stored in the pool of zswap memory. If pages are swapped out of memory when the total compressed pages in RAM exceeds a certain size, the Least Recently Used (LRU) compressed page is written to the disk as it is unlikely to be required soon.
    • Benefits: Very efficient use RAM and disk based swap. Minimizes Disk I/O by both reducing the number of writes and reads required (data is compressed and held in RAM) and by reducing the bandwidth of these I/O operaions as the data is in a compressed form.
    • Limitations: It is an enhancement of disk based swap systems and hence depends on a swap partition on the hard disk.
    • Status: Merged into the 3.11 mainline linux kernel.
  • ZCache: It is a backend for the Transcendent memory system. Transcendent memory provides a RAM-like memory that can only be accessed a page at a time by using put and get calls. This is unlike normal memory that can be accessed a byte at a time. The frontswap and cleancache systems hook attempts to swap and reclaim file-system page caches respectively and send them to the transcendent memory backends. When zcache is used as a backend, the data is compressed and stored in the RAM. When it fills up, compressed pages are evicted to the swap. (an alternate backend is RAMster which shares a pool of RAM across networked computers). Using only the frontswap frontend with the zcache backend works just like zswap. (In fact zswap is a simplified subset of zcache)
    • Benefits Provides compressed caching both for swap and for filesystem caches.
    • Status: Still not mainlined as it is very complicated and is being worked on.

The best resources I found were:

Tuning Browser Performance dengan Profile-Sync-Daemon


Setelah melakukan tuning di sisi direktori sementara (temporary directory, /tmp, sekarang gw mencoba melakukan tuning sekali lagi pada sisi akses profile browser. Gw pake beberapa browser (Firefox, Google-Chrome, dan Opera), namun gw hanya akan melakukan tuning di Firefox aja. Sebenarnya bisa semua profile browser, tapi hanya akan membebani RAM karena gw sekali lagi akan memanfaatkan tmpfs yang seperti diketahui sangat bergantung pada RAM.

Ada script kecil yaitu profile-sync-daemon yang dapat melakukan itu semua. Cukup mudah instalasinya di Ubuntu dan turunannya.

sudo add-apt-repository ppa:graysky/utils
sudo apt-get update
sudo apt-get install profile-sync-daemon

(more…)

Setting Up a NFS Server on Top of tmpfs /dev/shm


tmpfs has blazing speed. Why not set up a high speed NFS server on top of tmpfs?

A little trick is required for setting NFS server on top of /dev/shm. If we add a normal entry in /etc/export and them run

# exportfs -a

exportfs will give us a warning like this: exportfs: Warning: /dev/shm requires fsid= for NFS export

When we try to mount this NFS server, we may get a error message from mount: mount.nfs: access denied by server while mounting nfsserver:/dev/shm

How to solve this problem? Just add the option fsid=1 to the /dev/shm entry in /etc/exports:

/dev/shm 10.0.0.1/24(rw,fsid=1,sync)

and remember to execute # exportfs -a again.

Then nfsserver:/dev/shm can be mounted in 10.0.0.1/24.