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.

Navigate Scroll Up and Down on Screen SSH

When working in an SSH session or terminal, you can navigate and scroll up and down on the screen using a combination of keyboard shortcuts and Vim-like commands. Here’s how to do it:

  1. Ctrl + A, ESC: This combination is used to enter the “copy mode” in the terminal. Pressing Ctrl + A followed by ESC allows you to navigate and scroll using Vim-like keybindings.

  2. Vim-like Commands: Once you are in copy mode, you can use the following Vim-like commands to navigate and scroll:

Troubleshooting a Hanging Cron Job in Ubuntu's APT Script

Cron jobs are an essential part of automating tasks on a Unix-like operating system. However, occasionally, you may encounter issues where a cron job hangs or fails to run as expected. In this blog post, we’ll address a specific scenario where a cron job hangs in the APT script on Ubuntu and provide a solution to resolve it.

Step 1: Locate the APT Cron Job Script

The APT script is responsible for automatically updating the package lists and installing updates on Ubuntu systems. To begin troubleshooting, open a terminal and run the following command to locate the script:

Auto Check Connection and Restart Network Manager if Down

Introduction

In this article, we will create a simple script and a cron job to automatically check the connection status of your wireless network (Wi-Fi) and restart the Network Manager service if the connection is down. This can be particularly useful to ensure that your network remains stable and connected, especially in situations where the Wi-Fi connection tends to drop or become unreliable.

Routing Forward IP

It looks like you’re configuring some iptables rules for routing and forwarding traffic between two networks with specific IP address ranges. These rules are designed to allow traffic to flow between the “wi.red.net.work” network and the “wire.less.net.work” network through two interfaces, “eth0” and “wlan0.”

Here’s a breakdown of the rules you’ve provided:

  1. The first rule:

    iptables -I FORWARD -i eth0 -o wlan0 -s wi.red.net.work/24 -d wire.less.net.work/24 -j ACCEPT

    This rule allows traffic coming from the “wi.red.net.work” network (source) going to the “wire.less.net.work” network (destination) to be forwarded from the “eth0” interface to the “wlan0” interface. The -j ACCEPT part at the end indicates that this traffic should be accepted and forwarded.

How to Map a Network Drive Onto Ubuntu 14.04 Permanently

Published on August 11, 2014

Network Drive Mapping

In this simple tutorial, we will guide you on how to map a network drive, using a Windows share as an example, onto Ubuntu 14.04 LTS with read and write permissions permanently. We will be performing all actions in a terminal window. If you’re not familiar with Linux commands, don’t worry; just paste the provided commands into the terminal and hit enter to execute them. We will also include screenshots to make the process clearer.

0%