Showing posts with label Linux System. Show all posts
Showing posts with label Linux System. Show all posts

Sunday, November 9, 2025

How to install mariadb on your Debian 12/13 server

 It has been a while since my last tinkering around VM machines on my laptop. 

Today I just had little bit of time to install new Debian 13 server to play around with databases and bash scripting.

Prerequisites

Before you begin, make sure you have:

  •     A Debian 12/13 system with root or sudo access.
  •     An SSH client to connect to your server.
  •     A stable internet connection.

 Installing MariaDB on Debian 13


Follow these steps to install and configure MariaDB on your Debian server:

1. Update package index

sudo apt update

2. Install MariaDB server

sudo apt install mariadb-server -y

3. Start MariaDB service

sudo systemctl start mariadb
 

4. Enable MariaDB to start on boot

sudo systemctl enable mariadb

5. Run the secure installation script

sudo mysql_secure_installation

Installation will prompt to set a root password, remove anonymous users, disallow root login remotely and remove the test database. Follow the prompts and answer ‘Y’ or ‘N’ as needed.

6. (Optional) Log in to MariaDB to test

sudo mariadb -u root -p
 

7. (Optional) Check MariaDB service status

sudo systemctl status mariadb


Saturday, November 5, 2022

How to change default ssh login banner

To create a cool ASCII art banner for your server, first start off by going here:

ASCII art creator/

To change the message displayed before login, edit /etc/ssh/sshd_config :
sudo vim /etc/ssh/sshd_config
and add (or uncomment) the line:
Banner /etc/banner
/etc/banner can be whatever file you want. Then edit /etc/banner
sudo vim /etc/banner
You’ll probably need to restart sshd before your changes take effect:
sudo /etc/init.d/ssh restart
To change the message displayed after login, edit /etc/motd :
sudo vim /etc/motd
and enter the message you want to display.

Friday, November 4, 2022

Linux system and Hardware details via command line

Uname command

Basic information can be access with command uname. Which is short for unix name.
  1. Linux Kernel Name
  2. uname -s
  3. Linux Kernel Release
  4. uname -r
  5. Linux Kernel Version
  6. uname -v
  7. Network Node Hostname
  8. uname -n
  9. Machine Hardware Architecture
  10. uname --m
  11. Processor Type
  12. uname -p
  13. Hardware Platform
  14. uname -i
  15. Operating System information
  16. uname -o
  17. Displaying All Information of Uname Command
  18. uname -a

CPU Information with lscpu command:

lscpu

Block Device Information with lsblk

lsblk
More detailed information for all devices:
lsblk -a

USB Device Info with lsusb

lsusb
More detailed information on each device:
lsusb -v

TryHackMe - Shadow Trace Writeup

 Shadow Trace is premium room on TryHackMe.com part of the SOC Level 1 Path. We need to analyse a suspicious file, uncover hidden clues, an...