Posts

Showing posts from 2021

Prepare Lubuntu 20.04 for software development

Image
Prepare Lubuntu 20.04 for software development ninjahoahong After using windows , macosx , and serveral linux ditributions. For me, Lubuntu is the lightest and easiest to set up and run so far. If you search there will be two domains provide lubuntu which are lubuntu.me and lubuntu.net . You should use lubuntu.me which provide the most updated version of lubuntu . In this blog, I will focus on the additional packages after installation. Create Lubuntu 20.04 bootable usb Download Lubuntu 20.04 iso file. Create bootable usb using balena etcher or unetbootin . Boot to the usb and install Lubuntu . This is a starting screen using lxqt . Additional packages There are packages for apt and snap . I prefer apt since the app installed by snap command will take long time in the first launch. Web browser: brave I usually inst

Configure virtualbox data center which uses ubuntu 20.04

Image
In this blog, I will show how to configure network in ubuntu 20.04 to create a small data center with virtualbox to simulate cloud vps in local development environment. The overall procedure is to, first, creating a virtual machine with 2 bridge network adapters attached. Then, making configuration for the network adapters with netplan . After that, cloning 2 more virtual machines and adjust the ip addresses in the network configuration. Create a virtual machine and configure its network Create new virtual machine and attach bridge network adapter to Adapter 1 and Adapter 2. Let's put the name for the machine as red Find out what are the name of the network interfaces using command ip a Then modify the file with content similar to below. Copy the content below to /etc/netplan/00-installer-config.yaml , then modify the ethernet interfaces to match with your virtual machine's interfaces. After that, run netplan apply for the ne

The first taste of Rust - A simple you tube downloader

Recently, I just learnt Rust and using it to write a simple youtube downloader with reference from node-ytdl . In this blog, I would like to share the code and how did I make it. You can find the full source code here . Install development environment I am using Windows 10 and scoop package manager. Therefore, I use the following commands. Run scoop install rustup-msvc to install rustup . Run setx "%path%;%USERPROFILE%\\scoop\\persist\\rustup\\.cargo\\bin" to add rustup to the path. Restart termial (git-bash in my case) and check the installation with rustup --version; rustc --version; cargo --version Export custom RUST_HOME : export RUSTUP_HOME=$HOME/scoop/persist/rustup/.cargo/bin/rustup Install a toolchain for rustup : rustup toolchain install stable-x86_64-pc-windows-msvc Setup project Run cargo new simple_rust_youtube_downloader --bin && cd simple_rust_youtube_downloader to create and navigate to the project. Add these dependencies to

Chia sẻ: "Daily Routine To Fight Off Depression" video from Psych2Go

Image
"Daily Routine To Fight Off Depression" là một trong những video mình thấy rất hay về việc giúp hình thành những thói quen giúp cho cuộc sống bớt cẳng thẳng hơn. Video có phụ đề bằng tiếng Anh có thể dùng để ghi chép lại và dịch ra tiếng Việt nếu cần thiết. Ngoài ra bạn có thể dùng chức năng "Auto-translate" và chọn Tiếng Việt để coi video với Việt sub. Làm như vậy tuy có một ít sai sót nhưng vẫn có thể nắm được ý chính của video.     Reference:     The video from Psych2Go youtube channel: https://www.youtube.com/channel/UCkJEpR7JmS36tajD34Gp4VA - ninjahoahong