Kerya techblog

Most Read Posts

  • Gentoo mail (postfix + postfixadmin + dovecot + amavisd-new + roundcube)
  • Zabbix - no such instance currently exists at this oid
  • LVM cant Boot - ALERT /dev/mapper/ubuntu--vg-root does not exist DROPPING to Shell -
  • liquidsoap-1.1.1 gentoo install
  • Laravel manual user register
  • Gentoo: php 5.6.0 + pecl-memcached 2.2.0 install script
  • Zabbix APC Smart UPS monitoring on FreeBSD with snmp
  • Squid 3.4 debian 7 install script
  • Подключение Foxgate S6224-S2 Ubuntu minicom
  • Abills
  • exim+dovecot+postfixadmin+clamav+spamassassin on FreeBSD
  • Openmeetings 2.1.1 Ubuntu 12.04.2 installation
  • libtool version mismatch pecl gentoo
  • Securing NTP
  • FreeBSD 9 ossec setup errors fix
  • fix for - corrupted record for package (pkgdep line without argument), ignoring
  • Mikrotik no-ip ddns update script
  • Скопировать права mysql gentoo
  • snmpd less verbose log FreeBSD (Connection from UDP messages)
  • mysql backup scripts
  1. Вы здесь:  
  2. Home
  • Home
  • Все статьи

Virtualbox staff

Подробности
Автор: Kirill

 

# vboxmanage storageattach $VM --storagectl SATA --port 1 --device 0 --type dvddrive --medium /root/xubuntu-14.04.4-desktop-amd64.iso

# vboxmanage storageattach master-pool-agent-1 --storagectl SATA --port 1 --device 0 --medium emptydrive

 https://stackoverflow.com/questions/50772789/how-to-fix-an-error-resize-medium-operation-for-this-format-is-not-implemented?rq=1

# VBoxManage clonehd "source.vmdk" "cloned.vdi" --format vdi
# VBoxManage modifyhd "cloned.vdi" --resize 60200

 

https://www.serverwatch.com/server-tutorials/using-a-physical-hard-drive-with-a-virtualbox-vm.html

Перенос Ubuntu с MBR на GPT

Подробности
Автор: Kirill

Возникла необходимость переноса системы на SSD, с таблицей GPT и корнем на LVM.

Разметка :

1. Раздел под загрузчик (ESP) - 300Mb. Это с запасом, для загрузчика одной систему 100 - с головой.

2. Раздел /boot - 3Gb. Это с запасом, для нескольких версий ядра будет достаточно 512-1024М.

3. Раздел LVM - всё остальное пространство.

Монтируем свежесозданные разделы, чрутимся:

 

Копируем файлы с исходной системы на новый диск.

Для загрузки будет использоваться grub-efi, grub-pc удаляем.

Mysql dump grants (аналог pt-show-grants)

Подробности
Автор: Kirill
#!/bin/sh
for U in `mysql -e "SELECT DISTINCT CONCAT(\"'\", user, \"'\",\"@\", \"'\", host, \"'\") FROM mysql.user;" | grep -v 'CONCAT('`; do echo "## grants for $U ##" ; mysql -e "show grants for $U" | grep -v "Grants for " | awk '{print $0";"}' ; done

 

Оптимизация изображений (pagespeed)

Подробности
Автор: Kirill

# cd <images_folder_orig>

# for IMAGE in $(find . -regextype posix-extended -regex '.*\.(jpg|jpeg|png)'); do jpegtran -copy none -progressive $IMAGE > ./optimized/$IMAGE ; done

# cd .. ; mv  <images_folder_orig> <images_folder_orig>.backup ; ln -s optimized/ <images_folder_orig>

  1. Compilation/installation scripts (apache, php, etc.)
  2. Mysqldump one table via ssh and gzip

Страница 11 из 18

  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15

Search

Older Posts

  • modsecurity for nginx compilation scripts for freebsd (28)
  • Greenbone Vulnerability Manager (GVM) hacks (163)
  • elasticsearch cluster red status fix due to high watermark (107)
  • ubuntu arrow keys misbehaviour fix (117)
  • icinga IIS monitoring powershell error Get-WmiObject : Invalid namespace "root\WebAdministration" (147)
  • Make user superadmin in zabbix (138)
  • dnf Error: unknown option (148)
  • unpack pfx certificate (used for apache or nginx) (168)
  • mysql audit plugin build script (340)
  • mysql dump one row (131)
  • redmine 5 docker-compose (242)
  • gitlab runner dind docker-compose (190)
  • AWS S3 IAM policy to limit to single sub folder (195)
  • logrotate hints (263)
  • bash script to clean files to required percentage (369)

Login Form

  • Забыли пароль?
  • Забыли логин?
  • Регистрация