This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://bugs.launchpad.net/mos/+bug/1475019 | |
| Denis Puchkin (dpuchkin) wrote on 2016-04-20: #6 | |
| Hi | |
| The cause of these apparmor messages is misconfigured ntp apparmor profile, | |
| but there is nothing terrible | |
| Apparmor banned only messages (like ntp successfully started and listen on socket ) | |
| to rsyslog through /dev/log, this happened because NTP is running in the | |
| network namespase and apparmor has some issues with that. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| On Ubuntu, apparmor will sometimes prevent libvirt from working. | |
| /usr/sbin/libvirtd: error while loading shared libraries: | |
| libvirt-admin.so.0: cannot open shared object file: Permission denied | |
| If you are seeing the libvirt container fail with the error above, disable the libvirt profile. | |
| sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.libvirtd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server | |
| If you are not planning to enable anonymous (guest) access to shares | |
| or you need to get things working again without using REGEDIT on Windows | |
| remove the map to guest parameter or set it to Never (default) | |
| map to guest = never | |
| you also need to ensure each share has a user | |
| add users to smb like this: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IF THE DEVICE CONTAINS A VALID MD SUPERBLOCK, THE BLOCK IS OVERWRITTEN WITH ZEROS: | |
| # mdadm --zero-superblock /dev/sdc /dev/sdd | |
| CREATE RAID1 USING /DEV/SDC1 AND /DEV/SDD1 | |
| # mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdc1 /dev/sdd1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://raspberrypi.stackexchange.com/questions/4474/tightvnc-copy-paste-between-local-os-and-raspberry-pi#4475 | |
| First install autocutsel (sudo apt-get install autocutsel) | |
| Then open your /home/pi/.vnc/xstartup (nano /home/pi/.vnc/xstartup) and put autocutsel -fork on it like this: | |
| #!/bin/sh | |
| xrdb $HOME/.Xresources | |
| xsetroot -solid grey | |
| autocutsel -fork |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Ubuntu 16.04 LTS | |
| To install the LTS branch of LXD, run: | |
| apt install lxd lxd-client | |
| To install the feature branch of LXD, run: | |
| apt install -t xenial-backports lxd lxd-client |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://stackoverflow.com/questions/14914715/express-js-no-such-file-or-directory#14914716 | |
| There are two package in Ubuntu that have similar names, node and nodejs. | |
| node does this, | |
| Description-en: Amateur Packet Radio Node program. The node program accepts TCP/IP and packet radio network connections and presents users with an interface that allows them to make gateway connections to remote hosts using a variety of amateur radio protocols. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DISM tool | |
| https://support.microsoft.com/en-us/kb/947821 | |
| # DISM.exe /Online /Cleanup-image /Restorehealth | |
| System File Checker (SFC) Scan: | |
| https://support.microsoft.com/en-us/kb/929833 | |
| # sfc /scannow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # convert large.jpg -resize 150x -gravity center -extent 200x175 output.jpg | |
| // scales large.jpg so the width is 150px (height is calculated) | |
| // move resized image to center of a canvas that is 200x175px in size | |
| // save the new image as output.jpg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Create test user: | |
| useradd test | |
| passwd test | |
| usermod -G www-data test | |
| usermod -d /usr/share/nginx/html test | |
| chown test:www-data /usr/share/nginx/html | |
| Additions to sshd_config: |