Teljes szöveg:
- monitorozas
- owing are few ps command examples. Use -u option to display the process that belongs to a specific username. When you have multiple usern... rom top. Once you’ve located a process that needs to be killed, press “k” which will ask for the process id, and signal to send. If you have the privilege to kill that part... plays the memory map of a given process. You need to pass the pid as an argument to the pmap command. The following example displays... d process info will not be shown, you would have to be root to see it all.) tcp 1 0 dev-db:ssh
- drbd
- m reading the documentation It should be possible to add a second host to the setup, by adding this to the config file. <code python> on myhost.mydomai... copy of my data. Note you would probably not want to automount the drbd partition on boot so I have set my system not to automount and to do no fsck's So I now have this in my fstab for /home <code fstab> /dev/drbd0 ... efaults,noauto,usrquota,grpquota 0 0 </code> and to mount it on my primary machine, I do <code bash>
- read @tudasbazis:linux:bash
- om the file descriptor fd supplied as an argument to the -u option, and the first word is assigned to the first name, the second word to the second name, and so on, with leftover words and their intervening separators assigned to the last name. If there are fewer words read fro... ned empty values. The characters in IFS are used to split the line into words using the same rules th
- bandwidthd
- h_cutoff 1024 #Put interface in promiscuous mode to score to traffic #that may not be routing through the host... roblems #filter "ip" #Draw Graphs - This default to true to graph the traffic bandwidthd is recording #Usually set this to false if you only want cdf output or #you are usi... will use very little #ram and cpu if this is set to false. #graph true #Set META REFRESH for static
- bash
- it when a command fails. * Then add ''|| true'' to commands that you allow to fail. * Use ''set -o nounset'' (a.k.a. ''set -u'') to exit when your script tries to use undeclared variables. * Use ''set -o xtrace'' (a.k.a ''set -x'') to trace what gets executed. Useful for debugging. * Use ''set -o pipefail'' in scripts to catch ''mysqldump'' fails in e.g. ''mysqldump |gz
- lvm
- fdisk -lu </code> - Once installed, run pvscan to scan all disks for physical volume. this to make sure your LVM harddisk is detected by Ubuntu... [1.94 GB] inherit </code> - Mount the partition to any directory you want, usually to /mnt<code bash> sudo mount /dev/VolGroup00/LogVol... - rc=$? - if [ $rc = 5 ]; then - echo "Unable to find LVM volume $DM_VG_NAME/$DM_LV_NAME" - fi + ... e hasn't shown up yet, give it a little while + # to deal with LVM on removable devices (inspired from
- ldap
- <blockquote> **6.2. Authentication using LDAP** To access the LDAP service, the LDAP client first must authenticate itself to the service. That is, it must tell the LDAP serve... the server can decide what the client is allowed to see and do. If the client authenticates successfully to the LDAP server, then when the server subsequentl... ient, it will check whether the client is allowed to perform the request. This process is called acces... ecause the password can be read from the network. To avoid exposing the password in this way, you can
- ntopng
- uns in the background # without connection to a specific terminal. To use ntop other than as a casual monitoring # ... e that you can specify -i multiple times in order to instruct ntopng to create multi‐ # ple interfaces. # --inter... considered local. This parameter allows the user to define additional # networks and subnetwor... dered remote. If not specified the default is set to 192.168.1.0/24. # # Commas separate mult
- hdparm
- ger chunks and wait until the chunk is big enough to be written to disk.\\ Current web browsers like Chrome write re... can be thus regarded as distracting by the user. To circumvent this issue, you can switch the drive to the lowest degree of power management (next value... s the flush interval when dirty pages are written to disk. <note tip>Note that all these commands are... each time you reboot. Therefore, it might be wise to restore the personal settings upon boot. An appro
- ssh
- nt and edit /etc/security/access.conf if you need to set complex # access limits that are hard to express in sshd_config. account required pam_access... ######################## # All lines from here up to the end are building a more complex example. ####... ############### # # User "root" should be allowed to get access via cron .. tty5 tty6. + : root : cron
- openswan @tudasbazis:linux:vpn
- This guide provides information that can be used to configure OpenSwan to support IPsec VPN client connectivity. The Shrew ... . For example after establishing a vpn connection to our company network, we are able to access the fileserver on ''192.168.0.15''. We use... of view. The big advantage of using ssl-certs is to be able to revoke them (declare them as invalid) if a user l... Subject </code> And ''s:ident-client-data'' have to be: <code bash> openssl x509 -in raodwarriorCert.
- grub
- DEFAULT="" GRUB_CMDLINE_LINUX="text" # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch... XMODE=640x480 # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux GRUB_DISABLE_LINUX_UUID=true # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true" # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440
- iptables
- igitalmalaya.net/2011/10/04/iptables-what-happens-to-packets/ {{:tudasbazis:linux:netfilter-packet-fl... .20/32 -i ppp0 -p tcp -m tcp --dport 25 -j DNAT --to-destination 192.168.1.242:25 -A PREROUTING -d 86... 20/32 -i ppp0 -p tcp -m tcp --dport 587 -j DNAT --to-destination 192.168.1.242:587 -A PREROUTING -d 8... 20/32 -i ppp0 -p tcp -m tcp --dport 465 -j DNAT --to-destination 192.168.1.242:465 -A PREROUTING -d 8
- zfs
- * https://serverfault.com/questions/855895/how-to-set-the-number-of-snapshots-zfs-auto-snapshot-sho... tás ===== * https://icesquare.com/wordpress/how-to-improve-zfs-performance ===== Cache ===== * h... src, the following command transfers the snapshot to the dataset hierarchy at dst on the target system... ommand is interrupted, type the following command to resume the interrupted transfer. ssh 'target-mach
- samba
- ection ''smb ports = 139''. This will cause Samba to not listen on port 445 and will permit include functionality to function as it did with Samba 2.x. | ^ ''%M'' | ... | the NetBIOS name of the server. This allows you to change your config based on what the client calls
