script

Search

You can find the results of your search below.

Back-up Server Old Setup
63 Hits, Last modified:
l mount point to be unmounted ++++Possible mount script| <code bash> #!/bin/bash #input 1 is the propose... ed, exit with error fi fi </code> ++++ Created script to mount backup1 ''sudo bash ~/Myscripts/mount_backup1.sh'' to run ++++''sudo vim ~/Myscripts/mount_backup1.sh''| <code bash> #!/bin/bash #Script
Rsync
34 Hits, Last modified:
sudo rsync %%--%%dry-run -avz -u %%--%%delete ~/Myscripts/ /home/shared/Myscripts'' ''sudo rsync x %%--%%dry-run -avz -u /home/shared/temp/ baumkp@192.168.1.10::... ====My web page copy bash batch==== ''sudo vim Myscripts/rsync_shared.sh'' or to run ''sudo bash Myscripts/rsync_shared.sh'' #Note this is a local only script a
BASH Customisation
24 Hits, Last modified:
sh_aliases configure configuration bashrc command script .bashrc history sudo visudo dimmer ps kill nightm... startbasic='dcup2 $(cat /home/$BA_USERNAME/docker/scripts/cloudserver/basic-services.txt)' alias stopbasic='dcstop2 $(cat /home/$BA_USERNAME/docker/scripts/cloudserver/basic-services.txt)' alias stopmedia='dcstop2 $(cat /home/$BA_USERNAME/docker/scripts/cloudserver/media-services.txt)' alias startmedi
NUT (Network UPS Tools) Setup
20 Hits, Last modified:
this time, including early conversion to systemd scripts. I notice the Techno Tim [[https://docs.technot... /shutdown -h +0" NOTIFYCMD /home/baumkp/Myscripts/nut-notify.sh POLLFREQ 5 POLLFRE... ode> <code> upssched.conf CMDSCRIPT /bin/upssched-cmd # default </code> Ensure owner... configuration is still based upon similar systemd scripts and configuration.** The Ubuntu 16.04 NUT scri
IPMI CLI Tools
16 Hits, Last modified:
ally just has the password in it. =====IPMI BASH Scripts===== ====IPMI Start Script==== This script is used to start-up a remote BMC computer via ipmitool. The script performs some basic error checking a reporting, o
Commonly used commands and scripts
13 Hits, Last modified:
ctl journalctl}} ======Commonly used commands and scripts====== =====dmesg==== ''sudo dmesg'' lists the O... ===== |<38em 28% 36% 12% 12% 12%>| ^ package ^ description ^ mail server ^ nextcloud ^ wiki ^ | ph... to be executed 0 0 1 * * /home/shared/Myscripts/rotatelog.sh /var/log/UPSLog.Log%Rotate NUT UPS ... 15,20,25,30,35,40,45,50,55 * * * * /home/shared/Myscripts/UPSScan.sh 2>/dev/null #Runs Nut scan and logs f
samba
8 Hits, Last modified:
UP # server string is the equivalent of the NT Description field server string = %h server (Samba, Debia... ik.tu-muenchen.de> for # sending the correct chat script for the passwd program in Debian Sarge). passw... fect if 'domain logons' is set # It specifies the script to run during logon. The script must be stored # in the [netlogon] share # NOTE: Must be store in 'DOS' f
SSH Notes
7 Hits, Last modified:
ome predefined Linux distribution text ====Login Scripts==== ====Debian==== *''ls -la /etc/update-motd.d/'' to see the scripts that are run after the MOTD is displayed. The Debian script is very simple: <code bash> #!/bin/sh uname -snrvm </code> ====Ubuntu==== Ubuntu has multiple scripts some that I like and some that I do not like.
logrotate
5 Hits, Last modified:
e are a number of ways to rotate logs. -Using a script and cron (or systemd.timer) -Using ''logrotate'' ====Logrotate using script==== edit the sudo crontab ''sudo crontab -e'': <... and to be executed # 0 0 1 * * /home/shared/Myscripts/rotatelog.sh /var/log/UPS/UPSLog.Log #Rotate NUT UPS log file </code> where ''/home/shared/Myscripts/rotatelog.sh'' is: <code>#!/bin/bash logfile=$1
Conky
4 Hits, Last modified:
ion: ${tab 50}$color${execi 99999 lsb_release --description | awk '{ print $2" "$3 }'} ${color0}CPU Type: ... Distribution: $color${execi 99999 lsb_release --description | awk '{ print $2" "$3 }'} ${color0}CPU Type: ... ion: ${tab 50}$color${execi 99999 lsb_release --description | awk '{ print $2" "$3 }'} ${color0}CPU Type: ... Distribution: $color${execi 99999 lsb_release --description | awk '{ print $2" "$3 }'} ${color0}CPU Type:
IPMI Console Setup
3 Hits, Last modified:
l my servers are running Ubuntu. The following description is for Ubuntu terminal serial redirection. The... follows ''sudo vim /etc/default/grub'': <code JavaScript [enable_line_numbers="true"]> # If you change thi... ased upon BMC IPMI so the client software setup description is also not relevant.) The BMC IPMI client set
VIM Editor
3 Hits, Last modified:
fold | =====Vim Resource File===== Using Vim's scripting language (and a great deal of insight and tool... des.com/posts/2013/using-syntastic-jshint-for-javascript-syntax-checking-on-vim/|Using Syntastic+JSHint for Javascript syntax checking on Vim]] ---- ======neovim====
tmux
2 Hits, Last modified:
itution * Hyperlinks, with configurable actions Scriptable:\\ * Control from scripts or the shell *Extend with kittens using the Python language *Use star
Set Up and Ubuntu APT Cache
1 Hits, Last modified:
er-NG" in Ubuntu 16.04 Server]], provide a good description of how to setup. It is reasonably straight for
Calibre Server
1 Hits, Last modified:
ver.service'' : <code>## startup service [Unit] Description=calibre content server After=network.target [
Manjaro Setup Notes
1 Hits, Last modified: