Posts

Change the PLEX location on QNAP

If you feel that your video stream is always buffering, You might need to check the network first. If  the network performances OK, then you might think to move the PLEX from STAT drive to SSD drive. Here are steps to move the PLEX application to a different location on QNAP: Step 1> Stop the PLEX service Step 2> Ssh into the QNAP Step 3> Locate the current location. For example: Mine is under /share/CACHEDEV2_DATA/.qpkg/PlexMediaServer Step 4> Copy the entire directory from the current volume to the SSD volume cp -rp /share/CACHEDEV2_DATA/.qpkg/PlexMediaServer  /share/CACHEDEV3_DATA/.qpkg/ Step 5> edit /etc/config/qpkg.conf and search PlexMediaServer and change the volume name from old one to the new one. For example:

Create multiple Linux accounts on Amazon EC2

On LOCAL: [pwang@r710 .ssh]$ ssh-keygen -b 1024 -f <USER_ACCOUNT> -t dsa Generating public/private dsa key pair. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in <<USER_ACCOUNT>. Your public key has been saved in <USER_ACCOUNT>.pub. The key fingerprint is: ff:85:c1:4f:8c:26:54:2f:62:19:81:b7:9a:71:db:19 pwang@r710 The key's randomart image is: +--[ DSA 1024]----+ |         .o..    | |        . .+ .   | |         .=.. .  | |        .oooE+   | |        S=.o=oo  | |        o..oo=   | |          . . o  | |           . .   | |            .    | +-----------------+ [pwang@r710 .ssh]$ chmod 600 <USER...

Reset MariaDB Root Password

[root@hostname]# systemctl start mariadb [root@hostname]# /etc/init.d/mysql start Starting mysql (via systemctl):                            [  OK  ] [root@hostname]# mysql -u root Welcome to the MariaDB monitor.  Commands end with ; or \g. Your MariaDB connection id is 2 Server version: 10.1.30-MariaDB MariaDB Server Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> use mysql; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed MariaDB [mysql]> update user set password=PASSWORD("YOUR_PASSWORD") where User='root'; Query OK, 4 rows affected (0.00 sec) Rows matched: 4  Changed: 4  Warnings: 0 MariaDB [mysql]> flush privileges; Query OK, 0 rows affected (0.00...

xeams http/https stops working after installing the TLS

From xeams.llog: I tried to open a Secure Web Server Port : "Failed to initialize end point associated with ProtocolHandler ["http-bio-443"] java.io.IOException: Keystore was tampered with, or password was incorrect at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:780) at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56) Try the following steps: Stop Xeams Assuming you are on Windows, go to C:\Xeams\config and open AppConfig.xml in any editor such as Notepad. If you are on Linux, this file will be in /opt/Xeams/config folder. Remove the lines containing following parameters: sslCertificateFileName sslCertificatePassword sslCertKeystoreType Save the file Delete/rename C:\Xeams\config\synametrics.cert file so it is not found at runtime Restart Xeams The above steps will make your Xeams download a self-signed certificate again from Synametrics website. For more info, please see -- http://www.xeams.com/a...

Install PostgreSQL 10 on Centos 7

Ansible tower needs PostgreSQL 9.6 or later. But CentOS/Redhat only has the PostgreSQL 9.2. So I am trying to install the  postgresql-10 (https://www.postgresql.org/download/linux/redhat/) 1> Download the pstgresql10 yum install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-1.noarch.rpm 2>  Install the client packages:      yum install postgresql10 3>  Optionally install the server packages:      yum install postgresql10-server 4>  Optionally initialize the database and enable automatic start:        /usr/pgsql-10/bin/postgresql-10-setup initdb     systemctl enable postgresql-10     systemctl start postgresql-10

Vmware vRealize error messages: Another instance of the component is already installed on this server.

Vmware vR 7.3 + VCSA 6.5 Error messages: Another instance of the component is already installed on this server. To solve it, two steps: 1> Delete the vR DB 2> Uninstall VMware vCloud Automation Center Server Retry it, it works for me.

ssh tunnel forward display VNC back through a jumphost

Client --> (ssh) --> Jumphost (ssh) --> server (VNC) Host Jumphost  HostName HOSTNAME or IP_Jumphoost  User user_account  IdentityFile ~/.ssh/cbinternal_rsa  IdentitiesOnly yes Host SERVER  HostName hostname or IP_SERVER  User account  IdentityFile ~/.ssh/cbinternal_rsa  IdentitiesOnly yes  ProxyJump Jumphost on the jumphost, modify the ssh_config Match Group GROUP or USER_NAME     AllowTcpForwarding Yes     PermitOpen SERVER:22 restart ssh