Mengubah Tanggal di OpenBSD (Set Date Time )

Mengubah tanggal dan waktu di OpenBSD melalui shell bisa menggunakan perintah sbb :

date yyyyMMddhhmm

misalkan mau mengubah ke tanggal 25 may 2017 jam 15:27 maka lakukan sbb :

su digunakan untuk mendapatkan wewenang root supaya perintah date tidak gagal. Asumsinya kita login menggunakan user biasa ya …

simple !

fswebcam

Berawal dari penasaran apakah bisa OpenBSD 6.1 mengenali webcam yang ada di laptop acer 1810TZ keluaran 2007 ( jadul ).

Saya coba lihat dulu keluaran dmesg dan cari apakah ada terdeteksi webcam dan ternyata ada.

Ternyata webcam nya buatan Chicony.

Kemudian install fswebcam dengan pkg_add

Langkah selanjutnya adalah mencoba program fswebcam itu setelah baca-baca dulu caranay di man fswebcam

Capture dan simpan gambarnya di file jpg sbb :

Coba buka file hasil capture webcam

Kurang cahaya ….

Selesai

Howto connect my Wifi

If you have a wifi on your laptop you can connect manually by :

  1. login as root or do su
  2. ifconfig [device] nwid [network name] wpakey [password]
  3. dhclient [device]

Device example is iwn0, vlan0,alc0 (see man ifconfig for detailed option available)

To automatically connect after boot we need to do as follow :

  1. edit /etc/hostname.[device name]
  2. set parameter
  3. save file

pretty easy huh …

Run cmd.exe under the local system account

Some time we need to debug a program which run using cmd.exe under system account(NT AUTHORITY\SYSTEM).

We can use psexec program from sysinternals’ PsTools to achieve this.

To use it, put pstools folder on your system path and execute

psexec -i -s cmd.exe

where arguments -i if for interactive and -s is for system account

Finding Your Program On OpenBSD Ports

OpenBSD have a package called sqlports and sqlports-compact which contain sqlite database about ports.

add to your system using

pkg_add sqlports-compact

see pkg_info on sqlports-compact below

Location of the database and  sample query

We can use a GUI sqlite manager program called sqliteman, its easier.

Add it to your system

pkg_add sqliteman

see below the look and fee of sqliteman

bye for now …

Capturing Screenshot From OpenBSD

To be able to take screenshot we can use xpaint program on OpenBSD.

Install xpaint using pkg_add xpaint.

To select screen area to be captured use a menu from xpaint

Use menu save from parent menu file to save your screen capture.

Thats it …