Skip to content

Chris' Laboratory

chrislee.kr – Personal blog as bookshelves

Menu
  • Home
  • Github
  • Contact Me
Menu

Category: Server

Alpine – Plugin caching_sha2_password could not be loaded

Posted on 06/01/202306/01/2023 by Chris Lee

When using mysql client to login MySQL, it throws the following error: If it’s alpine linux, then simply install mariadb-connector-c

Continue reading

How to setup Gitlab runner with KVM enabled

Posted on 21/08/202221/08/2022 by Chris Lee

To implement the CI pipeline for the Android project, I need to run Gitlab CI, in which KVM is enabled. TL; TR Enable VTx virtualization technology in your server BIOS Pass /dev/kvm to Gitlab runner Sample .gitlab-ci.yml However, the pipeline was failing with the following error. Enable VTx virtualization technology First, I had to configure…

Continue reading

Change Java OpenJDK version in Arch Linux

Posted on 04/11/202104/11/2021 by Chris Lee

Issue: When execute npm run android for React Native, the build error occurred as below: Solution: It’s because currently Java version is lower than 11. Assuming already has another Java JDK, simply change Java for Arch Linux. Reference: https://edgardorl.com/blog/configure-java-in-arch-linux-to-run-a-react-native-application/

Continue reading

Convert gnome-boxes virtual machine image to Oracle Virtual Box image

Posted on 13/12/202013/12/2020 by Chris Lee

First convert gnome-boxes image to Virtual Box image Open Virtual Box Click Add button and follow below steps

Continue reading

Gitlab troubleshooting

Posted on 24/07/202024/07/2020 by Chris Lee

Environment: Gitlab is running under docker Error with ActiveModel::UnknownAttributeError (unknown attribute ‘author_name’ for SecurityEvent.):

Continue reading

Mount iPhone/iPad in Arch Linux

Posted on 16/12/201928/11/2020 by Chris Lee

Install libimobiledevice and ifuse$ yays libimobiledevice ifuse (* important) Pair with iPad – make sure iPad is connected via USB cable$ idevicepair pair Run usbmuxd $ sudo usbmuxd -f -v Create mount folder$ sudo mkdir /media/ipad$ sudo chmod 777 /media/ipad Mount iPad using ifuse$ ifuse /media/ipad Open file manager, then you will see iPad is…

Continue reading

When Arch Linux installation, cannot find nvme0n1 in DELL XPS 13

Posted on 05/09/201929/08/2020 by Chris Lee

When you do lsblk, it does not show your SSD, then it means RAID for SATA Operation is on. Simply open Bios -> System Configuration -> SATA Operation and set “AHCI” Refer Install Arch Linux with Full Disk Encryption (LVM on LUKS) for Dell XPS 13 – https://gist.github.com/chrisleekr/a23e93edc3b0795d8d95f9c70d93eedd

Continue reading

Linux Docker uses excessive memory

Posted on 17/08/201929/08/2020 by Chris Lee

Issue: I have a 16G memory and configured swap as 16G. When start mysql docker, mysqld uses crazy amount of memory and make the system freeze. References: https://success.docker.com/article/node-using-swap-memory-instead-of-host-memory Solution

Continue reading

VirtualBox + Windows 7 USB storage not recognised

Posted on 12/07/201929/08/2020 by Chris Lee

Environments: Arch Linux Oracle VM VirtualBox 6.0.8 + Extension Pack Issue: In “Device Manager”, Universal Serial Bus Controller driver is not installing correctly. USB storage is not showing. Driver not found for USB storage. Solution: Install Intel USB 3.0 eXtensible Host Controller Driver – https://downloadcenter.intel.com/download/21129/USB-3-0-Driver-Intel-USB-3-0-eXtensible-Host-Controller-Driver-for-Intel-7-Series-C216-Chipset-Family Then reboot References: https://forums.virtualbox.org/viewtopic.php?f=7&t=84793 https://dwaves.org/2016/10/11/linux-debian-host-virtualbox-5-x-windows-7-guest-usb-3-0-external-harddisk-hardware-verr_pdm_no_usb_ports/

Continue reading

Share clipboard between GNOME and Boxes (Windows)

Posted on 07/07/201929/08/2020 by Chris Lee

Reference: https://help.gnome.org/users/gnome-boxes/stable/clipboard.html.en https://www.spice-space.org/download.html While express installation typically takes care of making shared clipboard available to you, express installation is not available for all operating systems. In such cases or if you choose manual installation, for shared clipboard to work the SPICE vdagent needs to be installed in the guest. In most Linux-based operating systems the…

Continue reading

Winetricks failed to install WMP9

Posted on 29/06/201929/08/2020 by Chris Lee

References: https://www.hahwul.com/2018/08/install-kakaotalk-on-ubuntu-18.04.html https://www.playonlinux.com/en/topic-16540-MPSetup_wmp9_will_not_run.html Error message: Solution: Download MPsetup.exe from https://web.archive.org/web/20180404022333/http://download.microsoft.com/download/1/b/c/1bc0b1a3-c839-4b36-8f3c-19847ba09299/MPSetup.exe Save as /home/{username}/.cache/winetricks/wmp/MPSetup.exe Rerun winetricks

Continue reading

Certbot으로 무료 SSL/TLS 인증서 발급/재발급 하기

Posted on 18/05/201918/05/2019 by Chris Lee

참고자료: https://www.bennadel.com/blog/3420-obtaining-a-wildcard-ssl-certificate-from-letsencrypt-using-the-dns-challenge.htm SSL 새로 발급 받기 SSL 재발급하기

Continue reading

When you get 403 Forbidden error in VentraIP shared hosting

Posted on 03/03/201903/03/2019 by Chris Lee

Out of nowhere, I started getting the error when I try to post any article. After in-depth investigation, I found if I add any code snippet, I cannot save or publish the article due to getting 403 Forbidden error in the server. Other articles are suggesting to do following things: Disable all plugins Fix folder/file…

Continue reading

Backup/Restore pacman & yaourt packages list

Posted on 16/09/201829/08/2020 by Chris Lee

Arch linux Backup pacman package list pacman -Qqet | grep -v “$(pacman -Qqg base)” | grep -v “$(pacman -Qqm)” > pacman-packages.txt   Restore pacman package  pacman -S –needed $(cat pacman-packages.txt)   Backup yaourt package list pacman -Qm > yaourt-packages.txt   Backup yaourt package yaourt -S –needed –noconfirm $(cat yaourt-packages.txt)    

Continue reading

Error on installing `networkmanager-l2tp 1.2.10-3` in Arch Linux

Posted on 15/07/201829/08/2020 by Chris Lee

References: https://gist.github.com/pastleo/aa3a9524664864c505d637b771d079c9 https://askubuntu.com/questions/981165/l2tp-ipsec-failing-to-connect-kubuntu-17-10   When run the command to install the package `networkmanager-l2tp 1.2.10-3`, an error occurs like below: $ yaourt -S networkmanager-l2tp … ==> Validating source files with md5sums… network-manager-l2tp-1.2.10.tar.gz … Passed network-manager-l2tp-1.2.10.tar.gz.asc … Skipped ==> Verifying source file signatures with gpg… network-manager-l2tp-1.2.10.tar.gz … FAILED (unknown public key 49A7787EF8D3C039) ==> ERROR: One or more…

Continue reading

Get AWS EC2 tags to environment parameters for apache2

Posted on 17/12/201622/01/2017 by Chris Lee

Objective: AWS instances are assigned tags per instance. Need tags to be environment parameters for Apache2; thus, web application can retrieve environment parameter.   Step 1: Configure tags in AWS EC2 instance   Step 2: Setup IAM user and get access key id and secret access key   Step 3: Access to SSH and append…

Continue reading

How to re-compile imap.so with SSL enabled for MAMP Pro (Mac), macOS Sierra

Posted on 31/10/201631/10/2016 by Chris Lee

  Steps for re-compiling imap.so   1. Download imap source $ cd ~/Downloads $ wget -c ftp://ftp.cac.washington.edu/imap/imap-2007f.tar.gz $ rm -rf imap-2007f $ tar xvvfz imap-2007f.tar.gz $ cd imap-2007f $ nano Makefile 2. Find the text osx: and replace SSLINCLUDE=/usr/include/openssl to SSLINCLUDE=/usr/local/opt/openssl/include/openssl osx: osxok an $(TOUCH) ip6 $(BUILD) BUILDTYPE=$@ IP=$(IP6) EXTRAAUTHENTICATORS=”$(EXTRAAUTHENTICATORS) gss” \ SPECIALS=”SSLINCLUDE=/usr/local/opt/openssl/include/openssl SSLLIB=/usr/lib SSLCERTS=/System/Library/OpenSSL/certs SSLKEYS=/System/Library/OpenSSL/private…

Continue reading

How to install memcache.so/memcached.so for MAMP Pro (Mac)

Posted on 30/10/201631/10/2016 by Chris Lee

Install memcache.so for PHP 5.6   1. Install memcached $ brew install memcached 2. Download php source code http://www.php.net/downloads.php   3. Copy source code to the folder /Applications/MAMP/bin/php/{php version}/include/php e.g.) /Applications/MAMP/bin/php/php5.6.10/include/php   4. Install libiconv $ brew install homebrew/dupes/libiconv   5. Execute configure in php source folder $ cd /Applications/MAMP/bin/php/php5.6.10/include/php $ ./configure –with-iconv=/usr/local/Cellar/libiconv/1.14/   6….

Continue reading

Vagrant Box 디스크 용량 늘리기

Posted on 15/10/201615/10/2016 by Chris Lee

참고(Reference): http://tuhrig.de/resizing-vagrant-box-disk-space/ http://derekmolloy.ie/resize-a-virtualbox-disk/ http://stackoverflow.com/questions/11659005/how-to-resize-a-virtualbox-vmdk-file   요약  Vagrant는 디스크 용량을 바꿀수있는 옵션을 주지 않는다. 기본으로 40G(기본 이미지 10GB)를 제공하는데, 이 용량을 바꾸는 옵션을 제공하지 않는다. Vagrant의 VirtualBox를 리사이징할려면 수동으로 리사이징을 해야한다.   순서 Vagrant VM을 먼저 종료시킨다. $ vagrant halt 그리고 Vagrant VirtualBox VM이 어디에 위치한지 VirtualBox에서 찾는다. 해당 Virtualbox VM 폴더로 가서 VMDK disk를 VDI디스크로…

Continue reading

[Linux] Remove all email & Reset /var/log files

Posted on 12/10/201612/10/2016 by Chris Lee

Delete all mails $ mail > d * > q   Force to reset log files not recommended $ sudo su $ cd /var/log $ > lastlog $ > wtmp $ > dpkg.log $ > kern.log $ > syslog $ > messages $ exit  

Continue reading

Vagrant Scalable Web Application Architecture

Posted on 10/09/201610/09/2016 by Chris Lee

Deploying scalable web application using Vagrant, Consul, Consul Template, nginx and HAProxy Source Repo: https://github.com/chrisleekr/vagrant-scalable-web-application-architecture This is proof-of-concept project to spin up scalable web application architecture with Vagrant. The project involves: Vagrant for launching multiple VM instances and persistent storage Consul for health checking and service discovery Consul Template for automated load balancer management nginx for…

Continue reading

Vagrant MySQL Master-Slave Replication

Posted on 22/08/201629/08/2020 by Chris Lee

Vagrant MySQL Master-Slave Replication Source Repo: https://github.com/chrisleekr/vagrant-mysql-master-slave-replication Vagrantfile to spin up MySQL Master-Slave replication with persistent data storage Note: This project is created for just practice. Not suitable for production use. Prerequisites Vagrant 1.8.1+: http://www.vagrantup.com/ VirtualBox: https://www.virtualbox.org/ Usage $ git clone https://github.com/chrisleekr/vagrant-mysql-master-slave-replication.git $ cd vagrant-mysql-master-slave-replication $ vagrant up After vagrant machines are running, you can connect…

Continue reading

VPS – Apache & MySQL Performance Tuning

Posted on 13/03/201429/08/2020 by Chris Lee

Apache 1. Open/Create /var/www/vhosts/{hostname}/conf/vhosts.conf 2. Add oradjust below code KeepAlive On MaxKeepAliveRequests 29 KeepAliveTimeout 15 3. Copy to make backup of apache configuration # cp -p /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.YYYY-MM-DD.bak 4. Execute below shell script one by one # ramCount=`awk ‘match($0,/vmguar/) {print $4}’ /proc/user_beancounters` # ramBase=-16 && for ((;ramCount>1;ramBase++)); do ramCount=$((ramCount/2)); done # perl -0 -p -i…

Continue reading

.htaccess GZIP Compression & Enable Keep-alive

Posted on 07/03/201410/09/2016 by Chris Lee

To make faster webpage loading, use Gzip compress and Enable keep-alive in htaccess <ifModule mod_deflate.c> AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript </ifModule> <ifModule mod_headers.c> Header set Connection keep-alive </ifModule>   In Plesk Control Panel, follow below steps Access SSH as root user Go to /var/www/vhosts/{domain}/conf Create or Modify vhosts.conf Add following code…

Continue reading

.htaccess to force browsers to display a download dialog for non-image files

Posted on 23/08/201329/08/2020 by Chris Lee

.htaccess to force browsers to display a download dialog for non-image files Reference: jQuery File Upload # The following directives force the content-type application/octet-stream # and force browsers to display a download dialog for non-image files. # This prevents the execution of script files in the context of the website: ForceType application/octet-stream Header set Content-Disposition…

Continue reading
  • 1
  • 2
  • Next

Categories

  • Databases (11)
    • MongoDB (4)
    • MS-SQL (1)
    • MySQL (6)
  • E-Commerce (8)
    • Magento (8)
  • Finance (2)
  • Frameworks (84)
    • Adobe Flex (1)
    • Angular (ngx) (3)
    • Codeigniter (6)
    • CSS (5)
    • Django (2)
    • Javascript (13)
    • Node.js (6)
    • PHP (17)
    • React Native (4)
    • React.js (1)
    • Sencha Touch (4)
    • Terraform (1)
    • Vue.js (1)
    • WordPress (4)
    • Yii2 (3)
  • General Documents (15)
  • Marketing (3)
  • Mobile Development (33)
    • Android (20)
    • iPhone (13)
  • Platforms (21)
    • Arduino (2)
    • Docker (5)
    • Google App Engine (5)
    • Raspberry Pi (5)
    • Samsung Smart TV (4)
  • Security (17)
  • Server (30)
    • Linux (12)
  • Tools (14)
    • SVN (7)
  • Uncategorized (2)

Search

Recent Posts

  • Taint all resources in the one module
  • Alpine – Plugin caching_sha2_password could not be loaded
  • npm link with peerDependencies
  • How to setup Gitlab runner with KVM enabled
  • Failed to transform bcprov-jdk15on-1.68.jar

Recent Comments

  • Obayed on Binance Auto Trading Bot – Buy low/Sell high with stop loss limit/Trade multiple coins
  • Ari on How to install memcache.so/memcached.so for MAMP Pro (Mac)
  • Mida ali on Binance Auto Trading Bot – Buy low/Sell high with stop loss limit/Trade multiple coins
  • Chris Lee on How to install memcache.so/memcached.so for MAMP Pro (Mac)
  • Chris Lee on Setting Up A VPN Server On OSX 10.6

Tags

1 ajax amazon android android-addpart browser chrislee-kr codeigniter codeigniter-tcpdf com-apple-net-racoon CSS CSS history hack delpaigmail-com entity-addpart-double exception-printing-is-disabled-by-default-for-security-reasons ext-plugins-listpagingplugin ext-plugins-listpagingplugin-example f iphone javascript jquery-defaultchecked jquery-samsung-smart-tv listpagingplugin mac magento-exception-printing-is-disabled-by-default-for-security-reasons magento-sample-data-exception-printing-is-disabled-by-default-for-security-reasons nu-vot null-core-errors-confignotfound-config-mk9engine-ini php samsung-smart-tv-jquery samsung-smart-tv-sdk-ajax samsung-smart-tv-sdk-jquery samsung-tv-sdk samsung-tv-sdk-jquery samsung tv sencha-smart-tv sencha-touch-list-paging smart-tv-jquery sqlite subversion svn tcedook tcpdf-codeigniter uilinebreakmodecharacterwrap-is-deprecated unknown-column-link-area

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2023 Chris' Laboratory | Powered by Minimalist Blog WordPress Theme
Chris' Laboratory
Proudly powered by WordPress Theme: Dark Minimalistblogger.
 

Loading Comments...