Dimas Maulana

Dimas Maulana

Developer

Welcome to my website! I am a developer with a current focus on React and Go. My experience encompasses both front-end and back-end development, enabling me to design and develop seamless and efficient applications.

Configuring Samba Share in Linux

Samba is a widely-used software suite that enables file and printer sharing between Windows and Linux systems. The primary configuration file for Samba is typically located at /etc/samba/smb.conf. This article will guide you through setting up a Samba share on Linux, utilizing the provided information.

Samba Configuration Path

The main configuration file for Samba is usually located at /etc/samba/smb.conf. This file contains various settings that control the behavior of Samba, including share definitions, authentication settings, and access controls.

Adding a Non-Root User to Execute Docker Commands

In Docker, it’s common to want non-root users to execute Docker commands without needing to use sudo each time. This is achieved by adding the user to the docker group. Here are the steps to do that:

  1. Open a Terminal: First, open a terminal on your Linux system.

  2. Check If the docker Group Exists: Run the following command to check if the docker group already exists:

    1
    
    cat /etc/group | grep docker

    If it doesn’t exist, you will not see any output from this command.

How to Fix Chrome Certificate HSTS Issue

If you are encountering an issue with Chrome’s HSTS (HTTP Strict Transport Security) certificate for a specific website, you can follow these steps to resolve it. HSTS is a security feature that enforces HTTPS connections for websites, and sometimes it can lead to certificate errors. Here’s a step-by-step guide on how to fix it:

  1. Open Google Chrome and go to the address bar.

  2. Type the following URL and press Enter:

Login to Any User as Root

It looks like you’re trying to log in as the root user and then switch to another user, www-data, with the su command in a Unix-like operating system. Here’s a breakdown of what’s happening in your provided commands:

  1. $ su: This command is used to switch to another user account. When executed without specifying a username, it assumes you want to switch to the root user.

  2. Password:: You’ll be prompted to enter the root user’s password. You should enter the root password to proceed.

How to Port Forward Docker-Machine to Localhost

Port forwarding allows you to expose services running inside a virtual machine, such as Docker-Machine, to your local machine. In this example, we’ll use VirtualBox and Docker-Machine to forward port 8080 from the virtual machine to localhost.

Prerequisites

Before you begin, make sure you have the following:

Location of Cron Logs on Ubuntu 14.04

Cron logs on Ubuntu 14.04 are typically stored in the /var/log/syslog file. However, if you wish to separate cron-related logs into their own file, you can follow the steps you’ve provided to create a dedicated log file for cron messages. Here’s how you can do it:

  1. Open the 50-default.conf file in the /etc/rsyslog.d/ directory:

    1
    2
    
    cd /etc/rsyslog.d/
    sudo nano 50-default.conf
  2. Uncomment the line that corresponds to cron messages. Remove the “#” symbol at the beginning of the line:

0%