linux

Linux Releases

RHEL | Ubuntu | Debian

Install

from existing: https://www.debian.org/releases/stretch/amd64/apds03.html.en

Download

Debian

https://www.debian.org/CD/live/

Ubuntu

http://ftp.sjtu.edu.cn/ubuntu-cd/

http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/installer-amd64/current/images/netboot/mini.iso ( Mirror only http://us.archive.ubuntu.com/ , need proxy, local DNS not working )

Debug: Console 4 or /var/log/syslog

Mirrors

  • https://debgen.github.io/

  • https://mirrors.tuna.tsinghua.edu.cn/help/debian/

    apt install netselect-apt && netselect-apt -c china --nonfree mv /etc/apt/sources.list /etc/apt/sources.list.ori && mv sources.list /etc/apt/

Bash

https://www.gnu.org/software/bash/manual/bash.html

https://git.savannah.gnu.org/cgit/bash.git/

tmux

Init

Level
Desc

0

Halt the system.

1

Single-user mode (for special administration).

2

Local Multiuser with Networking but without network service (like NFS)

3

Full Multiuser with Networking

4

Not Used

5

Full Multiuser with Networking and X Windows(GUI)

6

Reboot.

login & non-login shells

https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html

supervisord

http://supervisord.org/running.html

Exit code

http://tldp.org/LDP/abs/html/exitcodes.html

Syslog Message Severities

https://tools.ietf.org/html/rfc5424#section-6.2.1

Signals

kill

top

Glances - A top/htop alternative - Python

https://github.com/nicolargo/glances

User & Permission

add user to group

rename

password

sudoers

chown

Package Management

Redhat

Free RHEL: https://developers.redhat.com/articles/no-cost-rhel-faq/

Ubuntu

Main - Canonical-supported free and open-source software. Universe - Community-maintained free and open-source software. Restricted - Proprietary drivers for devices. Multiverse - Software restricted by copyright or legal issues.

Debian

→ experimental → unstable(Sid) → testing → stable Unstable - repository where new & untested packages are introduced. Testing - repository with packages from unstable, if no bug are found within 10 days.

main consists of DFSG-compliant packages, which do not rely on software outside this area to operate. These are the only packages considered part of the Debian distribution. contrib packages contain DFSG-compliant software, but have dependencies not in main (possibly packaged for Debian in non-free). non-free contains software that does not comply with the DFSG.

experimental

dpkg

To install .deb manually, visit linux/kernel page.

apt

ssh server

Grub

fix: https://www.supergrubdisk.org/category/download/

grub-customizer

boot .iso

https://netboot.xyz/docs/booting/grub

boot repair

https://sourceforge.net/p/boot-repair-cd/home/Home/ apt install linux-image-* # if vmlinuz & initrd.img missing

ubuntu

Serial

https://help.ubuntu.com/community/SerialConsoleHowto

client

Benchmark

http://www.brendangregg.com/Perf/linux_benchmarking_tools.png

sshd

mobaxterm login failed: No supported authentication methods

ssh redirect

web

wget

curl

files

String replace: http://unix.stackexchange.com/questions/112023/how-can-i-replace-a-string-in-a-files

find

grep

compress/uncompress

rsync

history without line numbers

hostname

font

SELinux

Dropbox

~/.dropbox-dist/dropboxd dropboxd will create a ~/Dropbox folder and start synchronizing it after this step! unlink: https://www.dropbox.com/account#security

Ubuntu snap

run without root

Proxy

JAVA_HOME

I18N & I10N

Chrome

AD

https://wiki.samba.org/index.php/Setting_up_Samba_as_an_NT4_PDC_(Quick_Start)

cache diagnostics

https://hoytech.com/vmtouch/

WOL

Tools - Online

http://explainshell.com/

CPU

check_cpu_core_mapping

https://www.ibm.com/support/knowledgecenter/en/SSQPD3_2.6.0/com.ibm.wllm.doc/mappingcpustocore.html same physical/core ID =》 simultaneous multi threads (SMTs) / HT

USB Persistence

https://docs.kali.org/downloading/kali-linux-live-usb-persistence http://antix.mepis.org/index.php?title=Using_liveusb_with_persistence

kali

x86/M1/Live/VM/WSL/etc: https://www.kali.org/get-kali Docker: https://hub.docker.com/u/kalilinux/

ssh

Since 2022.1: https://www.kali.org/docs/general-use/ssh-configuration/

  • kali-tweaks -> Hardening -> Strong Security (the default) and Wide Compatibility

    ls -l /etc/ssh/ssh_host_* systemctl disable regenerate-ssh-host-keys.service

tools

https://www.kali.org/tools/ screenshots/cheat sheet: https://www.comparitech.com/net-admin/kali-linux-cheat-sheet/#Kali_Linux_tools

Video

https://askubuntu.com/questions/28033/how-to-check-the-information-of-current-installed-video-drivers

OpenCL

installable client driver loader (ICD Loader) may expose multiple separate vendor installable client drivers (Vendor ICDs) for OpenCL.

zFCP

device driver that supplements the Linux SCSI stack.

Diagram

diskless

https://help.ubuntu.com/community/DisklessUbuntuHowto

https://drbl.org/

http://web.mst.edu/~vojtat/pegasus/administration.htm based on Scientific Linux 7 / CentOS 7 / Red Hat Enterprise Linux 7

Last updated

Was this helpful?