Tuning the Sensitivity of Thinkpad X240 Trackpoint on Ubuntu 18.04

First, install sysfsutils:

sudo apt-get install sysfsutils

Second, edit the /etc/sysfs.conf. Add the following lines at the end.

#tweak trackpoint
devices/platform/i8042/serio1/serio2/sensitivity = 215
devices/platform/i8042/serio1/serio2/rate = 280
devices/platform/i8042/serio1/serio2/speed = 150
devices/platform/i8042/serio1/serio2/inertia = 1

run sudo service sysfsutils restart to try out the new values ..

Remove post info files of the trouble package

Try to removing the file associated to the package in question from /var/lib/dpkg/info. In my case, i had an issue with installing  mysql package. So i looked for the files associated with it :

cyberkidal@visitketapang:/etc$ ls -l /var/lib/dpkg/info | grep -i mysql
-rw-r–r– 1 root root 1280 Mar 17 01:47 mysql-client-5.7.list
-rw-r–r– 1 root root 1734 Oct 23 08:20 mysql-client-5.7.md5sums
-rw-r–r– 1 root root 437 Nov 23 22:17 mysql-client-core-5.7.list
-rw-r–r– 1 root root 546 Oct 23 08:20 mysql-client-core-5.7.md5sums
-rw-r–r– 1 root root 87 Oct 23 08:11 mysql-common.conffiles
-rw-r–r– 1 root root 469 Mar 17 01:47 mysql-common.list

and then remove all of these files :

cyberkidal@visitketapang:/etc$ sudo mv /var/lib/dpkg/info/mysql-* /tmp

Use the  sudo apt update and then you should be able to install software as usual.

autologin di ubuntu 9.10

Solusi autologin bagi yang menggunakan ubuntu 9.10, yg masi ada bugs di fitur autologinnya :

1.) Add the following line to /etc/pam.d/gdm just before the line @include common-auth:
auth sufficient pam_listfile.so item=user sense=allow file=/usr/local/etc/nopassusers onerr=fail
You need to either be root or run a text editor as root to do this. Since you’re using Ubuntu, you’d probably use the command sudo gedit /etc/pam.d/gdm to open /etc/pam.d/gdm with gedit.
2.) Create a file called nopassusers in /usr/local/etc/.
Again, you need to be root, so use sudo gedit /usr/local/etc/nopassusers.
3.) Type the names of the users who will not need a password to login, one to a line, and save. That should do the trick.

1.) Add the following line to /etc/pam.d/gdm just before the line @include common-auth:
auth sufficient pam_listfile.so item=user sense=allow file=/usr/local/etc/nopassusers onerr=fail
You need to either be root or run a text editor as root to do this. Since you’re using Ubuntu, you’d probably use the command sudo gedit /etc/pam.d/gdm to open /etc/pam.d/gdm with gedit.

2.) Create a file called nopassusers in /usr/local/etc/.
Again, you need to be root, so use sudo gedit /usr/local/etc/nopassusers.

3.) Type the names of the users who will not need a password to login, one to a line, and save. That should do the trick.

Gyachoo @ ubuntu 9.10

Lagi butuh Gyachoo untuk dipake di komputer client K-TUX  ( KLIK-TUX ) , warnet Linux-nya KLIK internet Lounge (KLIKnet) yang lagi kukebut untuk dibuka dalam minggu2 ini. K-TUX full pake Karmic Koala (Ubuntu 9.10), instalasi Gyachoo versi terakhir berjalan sukses, cuman ga bisa dieksekusi >.< soalnya membutuhkan libltdl.so.3  untuk bisa berjalan baik. Padahal, Karmic pakenya libltdl.so.7 di default. Iseng aja, libtdl.so.7 di linking sebagai libltdl.so.7 :

sudo ln -s /usr/lib/libltdl.so.7.2.0 /usr/lib/libltdl.so.3

Alhasil, bisa jalan juga tuh Gyachoo. Tapi masalah yg lain lagi….tidak bisa login ke serper yahoo. Kenapa ????????!@??

Tips Instalasi Fonts Windows di Linux

Bagi anda yang baru bermigrasi dari Windows ke Linux, terdapat satu hal yang membuat penggunaan Linux menjadi aneh yakni font. Font-font yang biasa dipakai di WIndows jangan harap bisa ditemukan di Linux. Supaya user bisa merasa nyaman melihat dan menggunakan Linux, solusinya adalah dengan menginstall font-font Windows di Linux.

Caranya ??

  1. Bikin Folder baru untuk penempatan font Windows
  2. mkdir /usr/share/fonts/truetype/fontwindows

  3. Copy semua font yang di Window ke folder yang sudah dibikin sebelumnya Linux
  4. cp /media/sda1/WINDOWS/Fonts/* /usr/share/fonts/truetype/fontwindows

  5. Ubah permission file fonts yang sudah dicopy
  6. chmod 644 /usr/share/fonts/truetype/fontwindows/*

  7. Aktifkan fonts baru di system
  8. mkfontdir /usr/share/fonts/truetype/fontwindows/
    fc-cache

Saya menggunakan Hardy Heron, jadi bagi yang menggunakan distro lain silahkan struktur directory nya disesuaikan dengan sistem yang dipakai.

move /home to it’s own partition

Karena ada kebutuhan space yg lebih ‘lega’ untuk /home, mau gak mau harus menambah hdd untuk partisi /home sendiri.

root@files:/#mkdir /mnt/newhome
root@files:/#mount -t reiserfs /dev/sdb2 /mnt/newhome

Copy semua isi current /home ke /home yg baru

root@files:/#cd /home
root@files:/home#find . -depth -print0 | cpio –-null –-sparse -pvd /mnt/newhome

Pastikan source telah tercopy semua ke /home yg baru, selanjutnya unmount /home yg baru

root@files:/home#umount /mnt/newhome
root@files:/#mv /home /oldhome
root@files:/#mkdir /home
root@files:/#mount /dev/sdb2 /home

Tambahkan line berikut ke /etc/fstab untuk auto mount
/dev/sdb2 /home reiserfs nodev,nosuid 0 2

Hapus /oldhome
root@files:/#rm -rf /oldhome

Konfigurasi Samba Sebagai PDC di Ubuntu

Samba adalah himpunan aplikasi yang bertujuan agar komputer dengan sistem operasi Linux, BSD ( atau UNIX lainnya) dapat bertindak sebagai file dan print server yang berbasis protokol SMB (session message block). Jaringan yang semacam ini biasa dijumpai pada Windows workgroup atau Windows NT Domain. Samba juga dilengkapi dengan beberapa program bantu sehingga sistem operasi Linux (dan UNIX lainnya) bisa mengakses resources yang ada pada jaringan Windows yang telah ada. Bisa dikatakan, Samba adalah jembatan penghubung antara Windows dan UNIX.

Samba terdiri atas dua program yang berjalan di background: SMBD dan NMBD. Secara singkat dapat disebutkan bahwa SMBD adalah file server yang akan menghasilkan proses baru untuk setiap client yang aktif sementara NMBD bertugas mengkonversi nama komputer (NetBIOS) menjadi alamat IP sekaligus juga memantau share yang ada di jaringan. Kerja SMBD sendiri diatur melalui file konfigurasi /etc/samba/smb.conf. Dengan membuat file konfigurasi yang tepat, Samba dapat dijadikan file server, print server, domain controller, dan banyak fungsi lainnya.

Continue reading Konfigurasi Samba Sebagai PDC di Ubuntu