πŸ“ƒEverything Linux

πŸ“œ In this 🐧 Linux notes repository, I store all of my notes related to the Linux operating system and Unix based apps.

  • πŸ“ŒSome commands can be outdated.

  • ❗Most of the commands are for Debian-based distributions.


🌐 Resources πŸ”—


Terminal commands

Linux Kernel version

Linux Distribution

Linux OS Install date

Bash history

Cpu - Ram usage

Check Swap usage

Swap Enable

  • To enable swap with btrfs disk run

Disk - Expand Partition

Disk - Expand LVM Partition

Hardware Check

ACPI Powerstate

πŸ”— System Sleep Statesarrow-up-right

Terminal clean

System off

General update

Info:

  • apt clean β†’ cleans the packages and install script in /var/cache/apt/archives/ (removes all stored archives in your cache)

  • apt autoclean β†’ cleans obsolete deb-packages, less than clean (removes all stored archives in your cache for packages that can not be downloaded anymore (thus packages that are no longer in the repo or that have a newer version in the repo))

  • apt autoremove β†’ removes orphaned packages which are not longer needed from the system, but not purges them, use the --purge option together with the command for that.

  • apt --purge autoremove β†’ remove config files and (more important as it cleans dead subdirectories from the documentation tree) entries from /usr/share/doc.

Create Aliases

  • Ubuntu:

  • Kali Linux:

Set local timezone

Set NTP

Set Keyboard layout

Disable Password prompt for sudo group

Install packages (deb, etc)

First settings after O.S. install

Set grub boot menu timeout

Boot Partition Clean Up (Ubuntu/Debian)

Change Console setup

Disable Ubuntu automatic updates

Speedtest-cli

  • Or install speedtest-cli

Change password at boot - Single User Mode

Check Hardware Temperatures

Renew DHCP

Benchmark


Software

Basic Tools

Install Sublime

Install VSCode

Install Obsidian

Install Brave Browser

Install Telegram

Discord

Install Anydesk

Install ForticlientVPN

Install DnsLeakTest

Install Tor

Install Anonsurf

  • Or use APT package manager on Debian-based distros

  • Enable postgresql at boot, start the service and initialize MSF database

  • Run msfconsole to start the Metasploit Framework Console

  • Ubuntu

  • Debian

Install Asbru CM (Linux Desktop)

  • ÁsbrΓΊ Connection Manager is a user interface that helps organizing remote terminal sessions and automating repetitive tasks.

Install BurpSuite

Install Arch Linux


Usage and Configuration

SSH Login

Configure Git for Github

Proxychains

OpenVpn

Global Socket allows two workstations on different private networks to communicate with each other. Through firewalls and through NAT - like there is no firewall.

nmap

x2goserver on Kali Linux

RDP with Xfce (Kali Linux)

πŸ”— Setting up RDP with Xfce - Kali Linuxarrow-up-right

  • The xfce4.sh does the following

  • Fix for Authentication Required to Create Managed Color Device, run

  • Port to connect to is 3390

Xfce Power manager and Screensaver

Arm on x86 QEMU-USER

πŸ”— Running arm binaries on x86 with qemu-userarrow-up-right

Kali repos on Debian/Ubuntu apt


Virtual Machines

Install VirtualBox on Kali

πŸ”— Install VirtualBox on Kali (Host)arrow-up-right

VirtManager backup qcow2 VM

Metaspoitable VM

πŸ“Œ Check Metasploitable3 VM here

Root Servers Shells


Troubleshooting

Exit a locked SSH session

  • Press Enter followed by ~. to terminate the locked SSH session

Disable a specific bluetooth adapter


Audio/Microphone Bluetooth Fix with HFP/HSP (Headset Head Unit)


Debug and optimize long boot


Disable NetworkManager-wait-online.service - script


Debug bash script


Logs


Last updated