rm -f /var/lib/rpm/__db*
db_verify /var/lib/rpm/Packages
rpm --rebuilddb
yum clean all
poniedziałek, 10 kwietnia 2017
piątek, 7 kwietnia 2017
Ubuntu: GRUB Error 17 / OVH
root (hd0,0)
setup (hd0)
kernel /boot/vmlinuz-XXXX root=/dev/vda1
initrd /boot/initrd.img-XXX
boot
setup (hd0)
kernel /boot/vmlinuz-XXXX root=/dev/vda1
initrd /boot/initrd.img-XXX
boot
środa, 29 marca 2017
OVH KVM resize root parition Centos 7 XFS
lsblk
parted
select /dev/sdb
unit s
print
rm 1
mkpart
Partition type? primary
File system type? xfs
Start? 2048s
End? 100%
print
set 1 boot on
quit
mount /dev/sdb1 /mnt
xfs_growfs -d /mnt
parted
select /dev/sdb
unit s
rm 1
mkpart
Partition type? primary
File system type? xfs
Start? 2048s
End? 100%
set 1 boot on
quit
mount /dev/sdb1 /mnt
xfs_growfs -d /mnt
poniedziałek, 27 marca 2017
sentora / zpanel change e-mail quota
mysql;
use sentora_postfix;
update mailbox set quota = 3000 where username like "email@domain.com";
use sentora_postfix;
update mailbox set quota = 3000 where username like "email@domain.com";
piątek, 10 marca 2017
atop cheat sheet
Cron
58 23 * * * killall atop
05 0 * * * rm -f /var/log/atop.log
07 0 * * * atop -w /var/log/atop.log 5
To read the log:
# atop -r /var/log/atop.log
Press t to move forward to the next 5 seconds, and press shift+t to move backwards.
To read only a certain time range from the log (b for beginning, e for end):
# atop -r atop.log -b 10:00 -e 11:00
To change the view:
g - Show generic output (default)
m - Show memory related output
s - Show scheduling characteristics
c - Show the command line of the process
58 23 * * * killall atop
05 0 * * * rm -f /var/log/atop.log
07 0 * * * atop -w /var/log/atop.log 5
To read the log:
# atop -r /var/log/atop.log
Press t to move forward to the next 5 seconds, and press shift+t to move backwards.
To read only a certain time range from the log (b for beginning, e for end):
# atop -r atop.log -b 10:00 -e 11:00
To change the view:
g - Show generic output (default)
m - Show memory related output
s - Show scheduling characteristics
c - Show the command line of the process
poniedziałek, 20 lutego 2017
niedziela, 19 lutego 2017
poniedziałek, 13 lutego 2017
wtorek, 7 lutego 2017
openssh ciphers
Ciphers aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes128-ctr
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-ripemd160
KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-ripemd160
KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1
piątek, 3 lutego 2017
Subskrybuj:
Posty (Atom)