Selasa, 05 Mei 2020

Mengatasi Gagal Booting Pada Solaris 5.9




Tiba-tiba saja salah satu server Solaris di kantor mati mendadak, dan ketika dicoba dihidupkan power nya, dan tidak bisa masuk ke OS nya, padahal IP nya bisa di ping, namun tidak bisa di remote, akhirnya saya memutuskan untuk melakukan console ke server nya langsung dan ternyata benar saja OS nya seperti masuk ke single mode :

Type control-d to proceed with normal startup,
(or give root password for system maintenance):

Saya coba tekan control-d untuk boot normal dan mucul error seperti ini :

resuming system initialization
mount: the state of /dev/vx/dsk/bootdg/rootvol is not okay
        and it was attempted to be mounted read/write
mount: Please run fsck and try again
/sbin/rcS: /etc/dfs/sharetab: cannot create
failed to open /etc/coreadm.conf: Read-only file system
chmod: WARNING: can't change /kernel/drv/rdriver.conf
chown: /kernel/drv/rdriver.conf: Read-only file system
chgrp: /kernel/drv/rdriver.conf: Read-only file system
VxVM vxvm-startup2 INFO V-5-2-503 VxVM general startup...
May  2 11:01:47 vxvm:vxconfigd: V-5-1-7601 vxvm:vxconfigd: ERROR: Could not open file /etc/vx/array.info for writing
May  2 11:01:47 vxvm:vxconfigd: V-5-1-11219 vxvm:vxconfigd: ERROR: Failed to open file /etc/vx/disk.info.new
May  2 11:01:48 vxvm:vxconfigd: V-5-1-1589 enable failed: Error in disk group configuration copies
May  2 11:01:48 vxvm:vxconfigd:         System error in configuration copy; transactions are disabled.
/etc/rcS.d/S85vxvm-startup2: /etc/vx/.vxesd.lock: cannot create
VxVM vxesd ERROR V-5-1-8405 Duplicate daemon check failed
dumpadm: failed to open /etc/dumpadm.conf: Read-only file system
VxVM vxvm-startup2 ERROR V-5-2-3656 Vold is not enabled for transactions
        No volumes started
May  2 11:02:15 vxvm:vxconfigd: V-5-1-7601 vxvm:vxconfigd: ERROR: Could not open file /etc/vx/array.info for writing
May  2 11:02:17 vxvm:vxconfigd: V-5-1-1589 enable failed: Error in disk group configuration copies
May  2 11:02:17 vxvm:vxconfigd:         System error in configuration copy; transactions are disabled.
UX:vxfs qlogrec: ERROR: V-3-22653: Cannot open file /etc/qlog/config.lock
UX:vxfs qlogrec: ERROR: V-3-22695: Problem writing file /etc/qlog/config.lock: Bad file number
UX:vxfs qlogck: ERROR: V-3-22653: Cannot open file /etc/qlog/config.lock
UX:vxfs qlogck: ERROR: V-3-22695: Problem writing file /etc/qlog/config.lock: Bad file number
UX:vxfs qlogck: TO FIX: V-3-22842: Command qlogck was not successful
UX:vxfs qlogck: WARNING: V-3-25613: Fix whatever problem was encountered and rerun
the command qlogck

Running the command qlogck with the -f option
will fix most of the problem(s) but will force
a full consistency check (full fsck)
on the VxFS volume(s) which cannot be fixed.

The QuickLog routine 'qlogck' encountered the errors mentioned above. It is
recommended that you enter the maintenance shell and attempt to correct
these problems. Once all possible corrections have been made, enter
Control-d to exit the maintenance shell, and initialization will resume.
See qlogck(1M) for assistance.


Type control-d to proceed with normal startup,
(or give root password for system maintenance):

Akhirnya saya masukan password root OS nya dan kemudian pertama kali saya coba cek dulu mount disk di file etc/vstab nya :

bash-2.05# more /etc/vstab           
/etc/vstab: No such file or directory
bash-2.05# more /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/vx/dsk/bootdg/swapvol      -       -       swap    -       no      nologging
/dev/vx/dsk/bootdg/rootvol      /dev/vx/rdsk/bootdg/rootvol     /       ufs     1       no      nologging
/dev/vx/dsk/bootdg/home /dev/vx/rdsk/bootdg/home        /export/home    ufs     2       yes     nologging
swap    -       /tmp    tmpfs   -       yes     -
#NOTE: volume rootvol () encapsulated partition c0t0d0s0
#NOTE: volume swapvol () encapsulated partition c0t0d0s1
#NOTE: volume home () encapsulated partition c0t0d0s6

Kemudian saya coba jalankan fsck :

bash-2.05# fsck -y /dev/vx/dsk/bootdg/rootvol
** /dev/vx/rdsk/bootdg/rootvol
** Last Mounted on /
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3a - Check Connectivity
** Phase 3b - Verify Shadows/ACLs
** Phase 4 - Check Reference Counts
UNREF FILE  I=224826  OWNER=root MODE=100664
SIZE=41147 MTIME=Jun 14 17:09 2013
RECONNECT?  yes

LINK COUNT FILE I=224826  OWNER=root MODE=100664
SIZE=41147 MTIME=Jun 14 17:09 2013  COUNT 0 SHOULD BE 1
ADJUST?  yes

UNREF FILE  I=226829  OWNER=root MODE=100664
SIZE=5242850 MTIME=Jun 15 10:30 2013
RECONNECT?  yes

LINK COUNT FILE I=226829  OWNER=root MODE=100664
SIZE=5242850 MTIME=Jun 15 10:30 2013  COUNT 0 SHOULD BE 1
ADJUST?  yes

UNREF FILE  I=226830  OWNER=root MODE=100664
SIZE=1682730 MTIME=Jun 14 17:09 2013
RECONNECT?  yes

LINK COUNT FILE I=226830  OWNER=root MODE=100664
SIZE=1682730 MTIME=Jun 14 17:09 2013  COUNT 0 SHOULD BE 1
ADJUST?  yes

** Phase 5 - Check Cylinder Groups
197574 files, 16418504 used, 14562566 free (142830 frags, 1802467 blocks, 0.5% fragmentation)

***** FILE SYSTEM WAS MODIFIED *****

Setelah selesai fsck, maka tinggal di restart saja OS nya :

bash-2.05# reboot
syncing file systems... done
rebooting...
Resetting ...

Setelah restart, maka saat ini sudah bisa masuk ke OS Solaris dengan normal.

Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017

Sabtu, 02 Mei 2020

Cara Install Nessus di Ubuntu 20.04 LTS



Karena saya melakukan install ulang laptop saya untuk upgrade ke Ubuntu 20.04 LTS, maka saya harus melakukan instalasi lagi untuk program nessus yang sering saya gunakan. Saya akan share sedikit langkah-langkah instalasi nessus nya :

1. Download dulu nessus nya dari sini : https://www.tenable.com/downloads/nessus

2. Download file : Nessus-8.10.0-ubuntu1110_amd64.deb

3. Install file yang sudah di download :

$ sudo dpkg -i Nessus-8.10.0-ubuntu1110_amd64.deb

[sudo] password for dony:
Selecting previously unselected package nessus.
(Reading database ... 191934 files and directories currently installed.)
Preparing to unpack Nessus-8.10.0-ubuntu1110_amd64.deb ...
Unpacking nessus (8.10.0) ...
Setting up nessus (8.10.0) ...
Unpacking Nessus Scanner Core Components...

 - You can start Nessus Scanner by typing /etc/init.d/nessusd start
 - Then go to https://dony-Latitude-E5270:8834/ to configure your scanner

Processing triggers for systemd (245.4-4ubuntu3) ...

4. Setelah itu jalankan service nessus dan juga di startup os nya :

$ sudo systemctl start nessusd
$ sudo systemctl enable nessusd.service
nessusd.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable nessusd

5. Sekarang tinggal akses nessus dari alamat URL ini di web browser :

https://localhost:8834/#/

Nanti akan di minta memasukan activation code lalu diminta juga membuat user dan password login nessus nya. Setelah ini akan muncul halaman login seperti ini :


Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017

Rabu, 29 April 2020

Install AddOn Calendar lightning di Thunderbird Ubuntu 20.04 LTS



Addon lightning ini fungsi nya adalah untuk management kalender di thunderbird, saya akan coba share sedikit cara install addon lightninig nya dari repository ubuntu, Cara nya :

$ sudo apt install xul-ext-lightning

[sudo] password for dony:
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following additional packages will be installed:
  xul-ext-calendar-timezones xul-ext-gdata-provider
The following NEW packages will be installed:
  xul-ext-calendar-timezones xul-ext-gdata-provider xul-ext-lightning
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 4.401 kB of archives.
After this operation, 5.548 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://id.archive.ubuntu.com/ubuntu focal/universe amd64 xul-ext-calendar-timezones amd64 1:68.7.0+build1-0ubuntu2 [9.248 B]
Get:2 http://id.archive.ubuntu.com/ubuntu focal/universe amd64 xul-ext-gdata-provider amd64 1:68.7.0+build1-0ubuntu2 [9.240 B]
Get:3 http://id.archive.ubuntu.com/ubuntu focal/universe amd64 xul-ext-lightning amd64 1:68.7.0+build1-0ubuntu2 [4.382 kB]
Fetched 4.401 kB in 5s (869 kB/s)           
Selecting previously unselected package xul-ext-calendar-timezones.
(Reading database ... 154603 files and directories currently installed.)
Preparing to unpack .../xul-ext-calendar-timezones_1%3a68.7.0+build1-0ubuntu2_amd64.deb ...
Unpacking xul-ext-calendar-timezones (1:68.7.0+build1-0ubuntu2) ...
Selecting previously unselected package xul-ext-gdata-provider.
Preparing to unpack .../xul-ext-gdata-provider_1%3a68.7.0+build1-0ubuntu2_amd64.deb ...
Unpacking xul-ext-gdata-provider (1:68.7.0+build1-0ubuntu2) ...
Selecting previously unselected package xul-ext-lightning.
Preparing to unpack .../xul-ext-lightning_1%3a68.7.0+build1-0ubuntu2_amd64.deb ...
Unpacking xul-ext-lightning (1:68.7.0+build1-0ubuntu2) ...
Setting up xul-ext-gdata-provider (1:68.7.0+build1-0ubuntu2) ...
Setting up xul-ext-lightning (1:68.7.0+build1-0ubuntu2) ...
Setting up xul-ext-calendar-timezones (1:68.7.0+build1-0ubuntu2) ...

Setelah selesai, coba restart dulu Thunderbird nya :



Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017

Selasa, 28 April 2020

Problem koneksi ssh Ubuntu 20.04 LTS ke ssh server versi lama

Begini memang resiko nya ketika masih punya server ssh versi jadul, kebetulan saya ada server masih menggunakan ssh versi 4.3 :

$ ssh -v
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008

Dan ketika saya baru saja install ulang laptop saya ke Ubuntu 20.04 LTS, dan laptop saya tidak bisa ssh ke server ssh tersebut diatas. Berikut error nya :

Unable to negotiate with 192.168.0.1 port 2222 : no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1

Solusi nya adalah saya harus melakukan perubahan pada file ssh_config di ubuntu 20.04 LTS nya dengan konfigurasi sebagai berikut :

$ sudo gedit /etc/ssh/ssh_config

Isinya jadi seperti ini (perubahan pada tulisan berhuruf tebal saja) :


# This is the ssh client system-wide configuration file.  See
# ssh_config(5) for more information.  This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.

# Configuration data is parsed as follows:
#  1. command line options
#  2. user-specific file
#  3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.

# Site-wide defaults for some commonly used options.  For a comprehensive
# list of available options, their meanings and defaults, please see the
# ssh_config(5) man page.

Include /etc/ssh/ssh_config.d/*.conf

Host *
#   ForwardAgent no
#   ForwardX11 no
#   ForwardX11Trusted yes
#   PasswordAuthentication yes
#   HostbasedAuthentication no
#   GSSAPIAuthentication no
#   GSSAPIDelegateCredentials no
#   GSSAPIKeyExchange no
#   GSSAPITrustDNS no
#   BatchMode no
#   CheckHostIP yes
#   AddressFamily any
#   ConnectTimeout 0
#   StrictHostKeyChecking ask
#   IdentityFile ~/.ssh/id_rsa
#   IdentityFile ~/.ssh/id_dsa
#   IdentityFile ~/.ssh/id_ecdsa
#   IdentityFile ~/.ssh/id_ed25519
#   Port 22
    Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc
    MACs hmac-md5,hmac-sha1,umac-64@openssh.com
#   EscapeChar ~
#   Tunnel no
#   TunnelDevice any:any
#   PermitLocalCommand no
#   VisualHostKey no
#   ProxyCommand ssh -q -W %h:%p gateway.example.com
#   RekeyLimit 1G 1h
    SendEnv LANG LC_*
    HashKnownHosts yes
    GSSAPIAuthentication yes
    KexAlgorithms diffie-hellman-group1-sha1,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
    # Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
    HostKeyAlgorithms ssh-rsa,ssh-dss
#MACs hmac-md5,hmac-sha1,hmac-ripemd160

Jadi yang berubah nya hanya baris ini saja :

    - Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc
    - MACs hmac-md5,hmac-sha1,umac-64@openssh.com
    - KexAlgorithms diffie-hellman-group1-sha1,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
    - HostKeyAlgorithms ssh-rsa,ssh-dss

Semoga tulisan ini bisa membantu pembaca semua yang kebetulan mengalami problem seperti saya


Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017

Kamis, 16 April 2020

Install Steam di Ubuntu 18.04 LTS



Bagi para pengguna linux, terutama linux ubuntu, jangan takut gak bisa main game, karena steam sebagai penyedia game juga ada versi linux nya loh..

Kali ini saya ingin coba sedikit share bagaimana cara nya install steam di Linux Ubuntu 18.04 LTS

1. Kita download dulu file installer steam nya dari sini : https://steamcdn-a.akamaihd.net/client/installer/steam.deb

2. Setelah itu install file installer nya :

$ sudo dpkg -i steam_latest.deb

Selecting previously unselected package steam-launcher.
(Reading database ... 270991 files and directories currently installed.)
Preparing to unpack steam_latest.deb ...
Unpacking steam-launcher (1.0.0.61) ...
dpkg: dependency problems prevent configuration of steam-launcher:
 steam-launcher depends on python-apt; however:
  Package python-apt is not installed.

dpkg: error processing package steam-launcher (--install):
 dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Errors were encountered while processing:
 steam-launcher

3. Jika muncul error seperti diatas, coba jalankan perintah dibawah ini :

$ sudo apt --fix-broken install

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  python-apt
Suggested packages:
  python-apt-dbg python-apt-doc
The following NEW packages will be installed:
  python-apt
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 151 kB of archives.
After this operation, 693 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://id.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python-apt amd64 1.6.5ubuntu0.2 [151 kB]
Fetched 151 kB in 2s (72,9 kB/s)     
Selecting previously unselected package python-apt.
(Reading database ... 271014 files and directories currently installed.)
Preparing to unpack .../python-apt_1.6.5ubuntu0.2_amd64.deb ...
Unpacking python-apt (1.6.5ubuntu0.2) ...
Setting up python-apt (1.6.5ubuntu0.2) ...
Setting up steam-launcher (1.0.0.61) ...

4. Setelah selesai, kita tinggal jalankan steam nya, dan pertama kali kita harus buat account dulu di steam nya jika belum punya account steam :


5. Setelah create account maka kita sudah bisa install game yang gratis maupun yang berbayar dari steam di Linux Ubuntu kita.




Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017

Senin, 30 Maret 2020

Install BlueJ di Linux Ubuntu 18.04



BlueJ merupakan salah satu program untuk pemrograman bahasa java, software ini di support oleh oracle dan sampai saat ini masih merupakan software yang gratis. Dengan BlueJ kita bisa membuat coding dan program dengan bahasa java

Untuk download software BlueJ, silahkan buka link berikut : https://www.bluej.org/index.html

Berikut langkah instalasi nya :

1. Install dulu paket pendukung nya di linux ubuntu :

$ sudo apt install openjdk-8-jdk openjfx openjdk-11-jdk libopenjfx-java

2. Setelah di download, silahkan install paket bluej nya :

$ sudo dpkg -i BlueJ-linux-422.deb
Selecting previously unselected package bluej.
(Reading database ... 269189 files and directories currently installed.)
Preparing to unpack BlueJ-linux-422.deb ...
Unpacking bluej (4.2.2) ...

Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...

3. Setelah selesai kita bisa langsung menjalankan program BlueJ nya :



Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017

Kamis, 12 Maret 2020

Cara Install Netbeans di Linux Ubuntu 18.04 LTS



Bagi programmer java, tidak usah takut untuk menggunakan OS Linux, terutama ubuntu, karena kita bisa membuat program java di linux ubuntu, tentunya dengan aplikasi yang sudah sangat terkenal untuk programming java yaitu Netbeans.

Cara install Netbeans pada Linux Ubuntu sangat mudah, Cara nya sebagai berikut :

1. Update dulu repository nya :

$ sudo apt update

2. Install openjdk nya :

$ sudo apt install openjdk-8-jdk

Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following additional packages will be installed:
  openjdk-8-jdk-headless openjdk-8-jre openjdk-8-jre-headless
Suggested packages:
  openjdk-8-demo openjdk-8-source visualvm icedtea-8-plugin fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei
  fonts-wqy-zenhei
The following NEW packages will be installed:
  openjdk-8-jdk openjdk-8-jdk-headless openjdk-8-jre openjdk-8-jre-headless
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 37,4 MB of archives.
After this operation, 142 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

3. Install Netbeans IDE nya dari snap :

$ sudo snap install netbeans --classic
netbeans 11.3 from Apache NetBeans✓ installed

Setelah selesai, tinggal jalankan Netbeans nya dan siap untuk membuat program java :


Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017

Rabu, 26 Februari 2020

Cara Mematikan Terminal Monitor di Cisco Switch



Ketika kita sedang melakukan console ke perangkat cisco switch atau cisco router, biasanya terminal log di monitor akan muncul terus dan itu cukup mengganggu untuk kita ketika sedang melakukan troubleshooting.

Namun hal tersebut bisa dilakukan disable terminal monitor nya dengan cara :

1. Masuk ke global configuration mode :

sw> en
sw# config terminal

2. Ketik no logging console :

sw(config)# no logging console

Selesai, dan kita tidak akan diganggu lagi oleh log terminal yang muncul terus-menerus. Untuk mengaktifkannnya lagi tinggal ketik :

sw(config)# logging console

Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017