sudo

Search

You can find the results of your search below.

Linux Block Device Notes
9 Hits, Last modified:
''lsblk -f'' or ''blkid'' to list the UUIDs *''sudo blkid'' will list data blocks ---- ====parted===... a number of partition tools for Linux CLI.== *''sudo parted -l'' - to see all available partition information *''sudo parted /dev/sda'' - to partition the specific dri... 1'' to remove partition 1 ---- ====Format==== ''sudo mkfs.ext4 /dev/sda1'' - to format the drive ----
VIM Editor
2 Hits, Last modified:
cheatsheet}} ======VIM Editor====== When using ''sudo vim'' consider ''sudo -E''. The ''-E'' flag to retain the user environment variables for vim. =====VIM
Manjaro Setup Notes
14 Hits, Last modified:
adjusted my server configuration file to suit, ''sudo vim ~/.config/conky/conky.conf'' ++++conky.conf| ... “failed to synchronize any databases” errors=== ''sudo rm /var/lib/pacman/db.lck''\\ This command remove... g. ===Some other pacman commands to consider=== ''sudo pacman-mirrors -g && sudo pacman -Syy'' or ''sudo pacman-mirrors -f && sudo pacman -Syyu''\\ This comma
snapraid
5 Hits, Last modified:
estic]]. The main snapraid commands I use are: ''sudo snapraid sync'' to sync the files that have chang... last sync. I usually do this weekly, manually. ''sudo snapraid scrub'' to check the parity of the array... les first. I usually do this weekly, manually. ''sudo snapraid status'' to check the status of the array. I usually do this weekly, manually. ''sudo snapraid touch'' to add sub-second time granulari
BASH Customisation
113 Hits, Last modified:
nfiguration bashrc command script .bashrc history sudo visudo dimmer ps kill nightmode xrandr tar archiv... - All docker commands start with "d" alias dstop='sudo docker stop $(docker ps -a -q)' alias dstopall='sudo docker stop $(sudo docker ps -aq)' alias drm='sudo docker rm $(docker ps -a -q)' alias dprunevol='sudo
Webmin
2 Hits, Last modified:
ot https). To do this from the CLI as follows: ''sudo vim /etc/webmin/miniserv.conf'', change ''SSL=1''... e and exit, then restart webmin to take affect, ''sudo systemctl restart webmin'' I tried to reverse pr
systemd Stuff
8 Hits, Last modified:
journalctl'' manual page for journalctl\\ Edit ''sudo vim /etc/systemd/journald.conf'' make variable ''... g files are available from previous boots.\\ \\ ''sudo systemctl force-reload systemd-journald'' to reload journald or restart instead ''sudo journalctl -u systemd-journald'' to check status ... f journal.\\ \\ some useful flag and inputs: *''sudo journalctl -b'' to see current boot journal only
SSH Notes
4 Hits, Last modified:
= Message of the Day ====Login Messages==== *''sudo vim /etc/issue.net'' Displays a message before the user begins login, I do not use this. *''sudo vim /etc/ssh/sshd_config'' ensure the following o... et'' (you can actually used any path/file) *''sudo systemctl reload sshd'' needs to be performed aft... configuration file to activate the changes. *''sudo vim /etc/motd'' Displays the banner text after lo
Rsync
63 Hits, Last modified:
on a computer instance To install rsync daemon ''sudo apt install rsync'' ''sudo vim /etc/rsyncd.conf'' <file> # create new # any name you like [all] # des... p # secrets file = /etc/rsyncd.secrets </file> ''sudo vim /etc/rsyncd.secrets'' <file>username:userpassword</file> ''sudo systemctl status rsync.service'' [status, start
NFS
13 Hits, Last modified:
erver statistics ---- =====NFS Server===== *''sudo apt install nfs-kernel-server'' to install *Create share directories on host ''sudo mkdir -p /export/storage'' (-p also creates higher level directories if necessary.) ''sudo vim /etc/exports'' - edit the exports file as req... orm /export/storage using mergerfs. Adjust the ''sudo vim /etc/fstab'' file to allow for boot setup of
apt package management
7 Hits, Last modified:
===apt package management===== I recently had a ''sudo apt upgrade'' error along the lines of: <code>mar... - Backup the databases (not described here) - ''sudo dpkg -P mariadb-server'' to remove just the old p... kage that was confusing apt package manager - ''sudo apt --fix-broken install'' to fix the broken package - ''sudo apt autoremove'' to remove the old packages - '
logrotate
5 Hits, Last modified:
otate'' ====Logrotate using script==== edit the sudo crontab ''sudo crontab -e'': <code> Example of job definition: # .---------------- minute (0 - 59) # | ... newlogfile </code> Remember to make executable (''sudo chmod +x /home/shared/Myscripts/rotatelog.sh'') ... ogrotate==== -Install logrotate - debian: ''sudo apt install logrotate'' - Arch: ''sudo pacman
Commonly used commands and scripts
20 Hits, Last modified:
used commands and scripts====== =====dmesg==== ''sudo dmesg'' lists the OS boot messages between grub a... ol) *List current Systemd operating units: ''sudo systemctl list-units | grep %%'*'%%''. Change or ... ment as required. *Check the boot journal: ''sudo journalctl -xe'' *To check running process with... pen'' *To change time zone from command line: ''sudo dpkg-reconfigure tzdata''. *Networkd -> systemd
IPMI Console Setup
13 Hits, Last modified:
as the password in it. I usually store in file ''sudo vim /etc/ipmi'' and set to root only read/write ''sudo chown root:root /etc/ipmi'' and ''sudo chmod 600 /etc/ipmi'' =====Linux Console Redirection Setup===... ed my grub boot loader configuration as follows ''sudo vim /etc/default/grub'': <code JavaScript [enable
IPMI CLI Tools
9 Hits, Last modified:
status'' * List available chassis commands:''sudo ipmitool -I open chassis'' * List chassis pol... . * Retrieving ILOM IP address with ipmitool: ''sudo ipmitool lan print'' * Retrieving Sensor Data: ''sudo ipmitool sdr'' or to include alarm thresholds: ''sudo ipmitool sensor '' * Get Hardware Information:
SWAP Files
3 Hits, Last modified:
Back-up Server Old Setup
38 Hits, Last modified:
Time Date Related Setup
4 Hits, Last modified:
NUT (Network UPS Tools) Setup
21 Hits, Last modified:
Fail2Ban
6 Hits, Last modified:
samba
4 Hits, Last modified:
Conky
1 Hits, Last modified:
Calibre Server
9 Hits, Last modified:
Set Up and Ubuntu APT Cache
10 Hits, Last modified: