Site Tools


onny:notizen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
onny:notizen [2022/08/16 17:45] 10.25.0.100onny:notizen [2022/10/04 11:51] – [nixos] 10.25.40.1
Line 1407: Line 1407:
 <code> <code>
   src = "/home/onny/projects/linux-wifi-hotspot";   src = "/home/onny/projects/linux-wifi-hotspot";
-  dontUnpack = true; +  #dontUnpack = true;
-  +
   unpackPhase = ''cp -r --no-preserve=mode $src/* .'';   unpackPhase = ''cp -r --no-preserve=mode $src/* .'';
 </code> </code>
Line 1872: Line 1871:
 fatlabel /dev/sdb1 "mystick" fatlabel /dev/sdb1 "mystick"
 </code> </code>
 +
 +grow ext4 partition live
 +<code bash>
 +$ growpart /dev/sda 2
 +$ resize2fs /dev/sda2
 +</code>
 +
 resize extX partition resize extX partition
 +
 <code bash> <code bash>
 sfdisk -l /dev/sdb sfdisk -l /dev/sdb
Line 2142: Line 2149:
 # download kernel and stuff from here http://dl-cdn.alpinelinux.org/alpine/edge/releases/armv7/netboot/ # download kernel and stuff from here http://dl-cdn.alpinelinux.org/alpine/edge/releases/armv7/netboot/
 qemu-system-arm -M virt -m 512M -cpu cortex-a15 -kernel vmlinuz-lts -initrd initramfs-lts -append "console=ttyAMA0 ip=dhcp alpine_repo=http://dl-cdn.alpinelinux.org/alpine/edge/main/" -nographic qemu-system-arm -M virt -m 512M -cpu cortex-a15 -kernel vmlinuz-lts -initrd initramfs-lts -append "console=ttyAMA0 ip=dhcp alpine_repo=http://dl-cdn.alpinelinux.org/alpine/edge/main/" -nographic
 +</code>
 +
 +===== postgresql =====
 +
 +dump database
 +<code>
 +pg_dump -U gitlab gitlabhq_production > /tmp/gitlab.pgsql
 +</code>
 +
 +dump all
 +<code>
 +pg_dumpall > /tmp/dump_file_name.tar
 +</code>
 +
 +import database
 +<code>
 +psql# CREATE DATABASE gitlabhq_production;
 +psql -U gitlab gitlabhq_production < gitlab.pgsql
 +</code>
 +
 +===== mysql =====
 +
 +Dump database
 +<code bash>
 +mysqldump -u root -p Tutorials > tut_backup.sql
 +</code>
 +
 +Backup everything
 +<code bash>
 +mysqldump -u root -p --all-databases > alldb.sql
 +# in case of nextcloud
 +mysqldump -u root -p --all-databases --default-character-set=utf8mb4 > alldb.sql
 +</code>
 +
 +Import database
 +<code>
 +mysql> CREATE DATABASE wordpress;
 +sudo mysql -u root wordpress < wordpress.sql
 +</code>
 +
 +Setup
 +<code bash>
 +systemctl stop mysqld
 +mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
 +systemctl start mysqld
 +mysql_secure_installation
 </code> </code>
onny/notizen.txt · Last modified: 2024/05/22 12:10 by 10.250.0.1