Category Archives: Linux

Linux Privacy distros

Linux kodachi https://www.digi77.com/linux-kodachi/ Subgraph OS https://subgraph.com/ Tails https://tails.boum.org/ Whonix https://www.whonix.org/ Tens

Posted in Linux | Leave a comment

CentOS hard disk and raid monitoring (supernas)

Run to determinate the raid hardware lspci | grep -i raid or /sbin/lspci /sbin/lspci -n

Posted in CentOS, Linux | Leave a comment

Ubuntu release server update

Ubuntu Servers (Recommended) If you installed from 14.04 or 12.04 originally you will need to remove LTS upgrade restrictions. Replace Prompt=lts with Prompt=normal: sudo pico /etc/update-manager/release-upgrades Install update-manager-core if it is not already installed: sudo apt-get install update-manager-core Launch the … Continue reading

Posted in Linux | Leave a comment

Linux filesystem

tree -C -L 1 / / ├── bin ├── boot ├── dev ├── disksafe ├── etc ├── home ├── lib ├── lib64 ├── lost+found ├── media ├── mnt ├── opt ├── proc ├── root ├── sbin ├── selinux ├── srv … Continue reading

Posted in Linux | Leave a comment

Recovery Mode Centos

fdisk -l fsck or e2fsck =>resultat de fdisk -l fsck -nf /dev/sda1 n -> dry-run: will not do any change (just checking) f -> force : sometimes it says clean but you can force a new check grub-install /dev/xvda, b, … Continue reading

Posted in Linux | Leave a comment

SSH login alerts

Create file login-notify.sh and put it under /etc/ssh inside of the file put the following code : #!/bin/sh # Change these two lines: sender=”sender-address@example.com” recepient=”notify-address@example.org” if [ “$PAM_TYPE” != “close_session” ]; then host=”`hostname`” subject=”SSH Login: $PAM_USER from $PAM_RHOST on $host” … Continue reading

Posted in Linux | Leave a comment

iptables scripts and examples

# Modify this file accordingly for your specific requirement. # 1. Delete all existing rules iptables -F # 2. Set default chain policies iptables -P INPUT DROP iptables -P FORWARD DROP iptables -P OUTPUT DROP # 3. Block a specific … Continue reading

Posted in Firewall, Linux | Leave a comment

Rsync examples

Useful command line synchronisation tool >> rsync -avzh –progress root@192.168.0.100:/remote/folder/site /local/folder/ >> rsync -avzh –progress local/folder root@192.168.0.100:/remote/folder/site/ over rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1505) [receiver=3.0.6] check the ssh key changed on the remote … Continue reading

Posted in Linux | Leave a comment

Customize your shell and create your own bin and aliases commands

vi .bash_profile #Add Personal “bin” to the PATH Variable export PATH=$PATH:/Users/user/bin #Create & Use Aliases alias ll=’ls -lhaG’ export PS1=”\u@\h\w> ” export WMSJAVA_HOME=”/Library/WowzaStreamingEngine-4.6.0/java”

Posted in Linux | Leave a comment

Basic SysAdmin linux commands part 1

#1: top => Process Activity Command The top provides a real-time process activity. It displays by default the most CPU consuming tasks runnning and it refreshs every 3 seconds. There are some interactive commands very interesting d: Delay time can be … Continue reading

Posted in Linux | Leave a comment