cmd as Adminixtrator
1 2 3 4 |
VirtualBox: PS C:\WINDOWS\system32> bcdedit /set hypervisorlaunchtype off Docker: PS C:\WINDOWS\system32> bcdedit /set hypervisorlaunchtype auto |
cmd as Adminixtrator
1 2 3 4 |
VirtualBox: PS C:\WINDOWS\system32> bcdedit /set hypervisorlaunchtype off Docker: PS C:\WINDOWS\system32> bcdedit /set hypervisorlaunchtype auto |
Проблема: rootles podman + elasticsearch
ERROR: completed handshake with ... but followup connection failed. handshake failed. unexpected remote node...
Решение:
1 2 3 |
network.publish_host: 10.0.0.2 #local host ip network.bind_host: 10.0.2.100 #container local ip http.host: 0.0.0.0 #all ips |
1 2 |
$ complete -p podman complete -o default -F __start_podman podman |
nano ~/.bash_completion
or
nano ~/.bashrc
1 2 3 |
alias p='podman' _completion_loader podman complete -o default -F __start_podman p |
Задача: Прокинуть общую директорию на виртуалку ubuntu-server
Задача: Авторизоваться с Active Directory пользаками на Amazon-Linux-инстансах Continue reading "[AWS] AD авторизация Linux"
Задача: сбросить пароль администратора WINDOWS, добавить пользователя в группу администраторов Continue reading "[WIN] SAM file"
Ошибка:
1 2 3 4 5 |
Windows is hibernated, refused to mount. Failed to mount '/dev/sda2': Операция не позволена The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option. |
Решение:
1 |
sudo mount -t ntfs-3g -o remove_hiberfile /dev/sda2 /mnt |
Ошибка:
1 2 3 4 5 6 |
The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sdb5': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option. |
Решение:
1 |
sudo ntfsfix /dev/sda3 |
Отключение режима гибернации в винде
1 |
powercfg /h off |
https://oguzhaninan.github.io/Stacer-Web/
https://github.com/oguzhaninan/Stacer
1 2 3 |
sudo add-apt-repository ppa:oguzhaninan/stacer sudo apt-get update sudo apt-get install stacer |
Continue reading "[Linux] Stacer — Linux System Optimizer & Monitoring"
1 2 3 4 |
inxi CPU: Single Core AMD FX-8350 (-UP-) speed: 4013 MHz Kernel: 4.18.0-10-generic x86_64 Up: 6m Mem: 452.1/985.3 MiB (45.9%) Storage: 8.99 GiB (51.8% used) Procs: 149 Shell: bash 4.4.19 inxi: 3.0.24 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
inxi -F System: Host: georgy-VirtualBox Kernel: 4.18.0-10-generic x86_64 bits: 64 Desktop: Xfce 4.13.2 Distro: Ubuntu 18.10 (Cosmic Cuttlefish) Machine: Type: Virtualbox System: innotek product: VirtualBox v: 1.2 serial: <root required> Mobo: Oracle model: VirtualBox v: 1.2 serial: <root required> BIOS: innotek v: VirtualBox date: 12/01/2006 CPU: Topology: Single Core model: AMD FX-8350 bits: 64 type: UP L2 cache: 2048 KiB Speed: 4013 MHz min/max: N/A Core speed (MHz): 1: 4013 Graphics: Device-1: VMware SVGA II Adapter driver: vmwgfx v: 2.14.1.0 Display: x11 server: X.Org 1.20.1 driver: vmware unloaded: fbdev,modesetting,vesa resolution: 800x600~60Hz OpenGL: renderer: llvmpipe (LLVM 7.0 128 bits) v: 3.3 Mesa 18.2.2 Audio: Device-1: Intel 82801AA AC97 Audio driver: snd_intel8x0 Sound Server: ALSA v: k4.18.0-10-generic Network: Device-1: Intel 82540EM Gigabit Ethernet driver: e1000 IF: enp0s3 state: up speed: 1000 Mbps duplex: full mac: 08:00:27:4c:24:f2 Device-2: Intel 82371AB/EB/MB PIIX4 ACPI type: network bridge driver: piix4_smbus Drives: Local Storage: total: 8.99 GiB used: 4.65 GiB (51.8%) ID-1: /dev/sda vendor: VirtualBox model: VBOX HARDDISK size: 8.99 GiB Partition: ID-1: / size: 8.78 GiB used: 4.65 GiB (53.0%) fs: ext4 dev: /dev/sda1 Sensors: Message: No sensors data was found. Is sensors configured? Info: Processes: 147 Uptime: 6m Memory: 985.3 MiB used: 422.5 MiB (42.9%) Shell: bash inxi: 3.0.24 |
vi /home/xbian/.smbcredentials
1 2 |
username=your_win_name password=your_password |
chmod 600 /home/xbian/.smbcredentials
sudo vi /etc/fstab
1 |
//192.168.111.11/films /mnt/films cifs credentials=/home/xbian/.smbcredentials,uid=xbian 0 0 |
sudo mount -a