Posts

Showing posts from January, 2018

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_ACCOUNT>.pub (It is the publick key which will be copied into authorized_file on EC2) [pwang@r710 .ssh]$ chmod 600 <USER_ACCOUNT> (It is the private key) On AMAZON: as root: # useradd <USER_ACCOUNT> # su - <USER_ACCOUNT> # mkdir .ssh &&

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 sec) MariaDB [mysql]> exit Bye [root@hostnam

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