Linux

Kernel Linux is a kernel: the core of an operative system. Operating systems that use the Linux kernel are called Linux Distros (Distributions). A Kernel: Executes first when the computer finishes booting up and has full access to the hardware. Implements drivers to control peripherals, network devices and other resources. Runs other programs (userland software) and allows them to communicate with each other and with the hardware through system calls. Compiling First, install the necessary dependencies. For example, on Debian: ...

31 min · 6540 words · TrudeEH

Password Manager [PASS]

Password Managers A password manager is a program responsible for saving all your passwords. You could have a single password and use it for everything, but if an attacker gets a hold of your password on just one service, they would have access to all of your accounts. Different services may have different requirements for passwords, too. To mitigate these issues, it’s recommended to use a password manager, and a unique password for each service. There are many options available, however, pass is one of the simplest ones. ...

3 min · 522 words · TrudeEH

Python

Python3 Documentation number: Replace with a number. *object: Any number of objects. [, ndigits]: Anything between [] is optional. Run Python Code Python is an interpreted language. It is not compiled like C. python hello.py Skipping the compiling step makes the language easier to use but at the cost of performance. Print Print information on the console. print("hello, world") answer = "Some Text" print(f"Your answer is: {answer}") # formatted string (any type) print("Your answer is: " + answer) # answer must be string print("Your answer is:", answer) # answer can be any type print("Same line", end="") print("!" * 4) # "!!!! # '' and "" do the same. Input Prompt the user for information. ...

15 min · 2996 words · TrudeEH

SSH

SSH is a protocol for accessing a terminal remotely. For SSH to work, the remote machine needs to have an OpenSSH instance running and listening for connections, and port 22 must be allowed through any VPNs or firewalls between the client and host machines. An SSH client is also needed, be it any UNIX system (using the ssh command), or a Windows server using a client such as PuTTY. OpenSSH Client Connect to a Remote Server Connect Using a Password ssh <user>@<ip> > <password> ssh root@192.168.1.133 > Ctrl+D # Disconnect After connecting to a server for the first time, the fingerprint of that server is stored in the ~/.ssh/known-hosts file. ...

3 min · 490 words · TrudeEH

Terminal Multiplexer [TMUX]

Overview tmux is a multiplexer that, among other things, is able to: Preserve a terminal session if it is closed or lost. Access an old session from a new terminal window. Connect to a remote session and save its state once disconnected. Split the terminal into multiple tabs and panes. Components Sessions (Only one tmux session can be used at a time. Similar to workspaces.) Windows (A session contains windows. These behave like tabs in other programs.) Panes (A split in the window, each with its own terminal instance.) ...

3 min · 610 words · TrudeEH