https://vissie.com/wiki_new/api.php?action=feedcontributions&user=Vissie&feedformat=atomThe World according to Vissie - User contributions [en]2024-03-29T06:42:43ZUser contributionsMediaWiki 1.32.0https://vissie.com/wiki_new/index.php?title=Dns_old&diff=26628Dns old2021-06-11T10:37:01Z<p>Vissie: Vissie moved page Dns to Dns old: Moving to new site</p>
<hr />
<div>=Setup=<br />
https://fedoramagazine.org/dnsmasq-provide-dns-dhcp-services/<br />
<br />
sudo apt-get install dnsmasq resolvconf<br />
<br />
Edit /etc/dnsmasq.conf<br />
domain-needed<br />
bogus-priv<br />
strict-order <br />
<br />
no-resolv<br />
interface=en01<br />
listen-address=127.0.0.1,192.168.1.2<br />
<br />
# Open DNS<br />
server=208.67.222.222<br />
server=208.67.220.220<br />
<br />
# Set static IPs of other PCs and the Router.<br />
#dhcp-host=10:1f:41:d1:11:1c,iptime,192.168.0.1,infinite # Router<br />
dhcp-host=b2:27:2b:c2:52:c2,aname,192.168.1.97,720m<br />
dhcp-host=b2:27:3b:b3:83:63,anotername,192.168.1.96,720m<br />
dhcp-host=14:43:74:45:46:54,server,192.168.1.95,720m<br />
<br />
dhcp-range=192.168.1.100,192.168.1.200,24h<br />
dhcp-option=option:router,192.168.1.1<br />
dhcp-authoritative<br />
dhcp-leasefile=/var/lib/dnsmasq/dnsmasq.leases<br />
<br />
=DNS Only=<br />
https://medium.com/myatus/poor-mans-device-discovery-dns-492a95ea8c8b<br />
<br />
I use dnsmasq now only for dns, not dhcp. I use this "trick" to keep my mac's and IPs the same.<br />
<br />
run<br />
sudo arp-scan -l -m /usr/share/arp-scan/mac-vendor.txt<br />
see IPs and MACs. Want to keep a record of that, do:<br />
sudo vim /usr/share/arp-scan/mac-vendor.txt<br />
<br />
## Vissie's adresses<br />
# pls copy past this line as you NEED the tab....<br />
10AA4B06550D linksys<br />
80A11CA6D1 tflow<br />
<br />
sudo systemctl restart dnsmasq.service</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Dns&diff=26629Dns2021-06-11T10:37:01Z<p>Vissie: Vissie moved page Dns to Dns old: Moving to new site</p>
<hr />
<div>#REDIRECT [[Dns old]]</div>Vissiehttps://vissie.com/wiki_new/index.php?title=ToBeDeleted&diff=26625ToBeDeleted2021-06-11T10:30:54Z<p>Vissie: </p>
<hr />
<div>All items that I am moving over to the new site</div>Vissiehttps://vissie.com/wiki_new/index.php?title=ToBeDeleted&diff=26624ToBeDeleted2021-06-11T10:30:41Z<p>Vissie: Created page with "All item sthat I am moving over to the new site"</p>
<hr />
<div>All item sthat I am moving over to the new site</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Dns_old&diff=26622Dns old2021-04-20T12:58:13Z<p>Vissie: /* DNS Only */</p>
<hr />
<div>=Setup=<br />
https://fedoramagazine.org/dnsmasq-provide-dns-dhcp-services/<br />
<br />
sudo apt-get install dnsmasq resolvconf<br />
<br />
Edit /etc/dnsmasq.conf<br />
domain-needed<br />
bogus-priv<br />
strict-order <br />
<br />
no-resolv<br />
interface=en01<br />
listen-address=127.0.0.1,192.168.1.2<br />
<br />
# Open DNS<br />
server=208.67.222.222<br />
server=208.67.220.220<br />
<br />
# Set static IPs of other PCs and the Router.<br />
#dhcp-host=10:1f:41:d1:11:1c,iptime,192.168.0.1,infinite # Router<br />
dhcp-host=b2:27:2b:c2:52:c2,aname,192.168.1.97,720m<br />
dhcp-host=b2:27:3b:b3:83:63,anotername,192.168.1.96,720m<br />
dhcp-host=14:43:74:45:46:54,server,192.168.1.95,720m<br />
<br />
dhcp-range=192.168.1.100,192.168.1.200,24h<br />
dhcp-option=option:router,192.168.1.1<br />
dhcp-authoritative<br />
dhcp-leasefile=/var/lib/dnsmasq/dnsmasq.leases<br />
<br />
=DNS Only=<br />
https://medium.com/myatus/poor-mans-device-discovery-dns-492a95ea8c8b<br />
<br />
I use dnsmasq now only for dns, not dhcp. I use this "trick" to keep my mac's and IPs the same.<br />
<br />
run<br />
sudo arp-scan -l -m /usr/share/arp-scan/mac-vendor.txt<br />
see IPs and MACs. Want to keep a record of that, do:<br />
sudo vim /usr/share/arp-scan/mac-vendor.txt<br />
<br />
## Vissie's adresses<br />
# pls copy past this line as you NEED the tab....<br />
10AA4B06550D linksys<br />
80A11CA6D1 tflow<br />
<br />
sudo systemctl restart dnsmasq.service</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Dns_old&diff=26621Dns old2021-04-20T12:58:04Z<p>Vissie: /* DNS Only */</p>
<hr />
<div>=Setup=<br />
https://fedoramagazine.org/dnsmasq-provide-dns-dhcp-services/<br />
<br />
sudo apt-get install dnsmasq resolvconf<br />
<br />
Edit /etc/dnsmasq.conf<br />
domain-needed<br />
bogus-priv<br />
strict-order <br />
<br />
no-resolv<br />
interface=en01<br />
listen-address=127.0.0.1,192.168.1.2<br />
<br />
# Open DNS<br />
server=208.67.222.222<br />
server=208.67.220.220<br />
<br />
# Set static IPs of other PCs and the Router.<br />
#dhcp-host=10:1f:41:d1:11:1c,iptime,192.168.0.1,infinite # Router<br />
dhcp-host=b2:27:2b:c2:52:c2,aname,192.168.1.97,720m<br />
dhcp-host=b2:27:3b:b3:83:63,anotername,192.168.1.96,720m<br />
dhcp-host=14:43:74:45:46:54,server,192.168.1.95,720m<br />
<br />
dhcp-range=192.168.1.100,192.168.1.200,24h<br />
dhcp-option=option:router,192.168.1.1<br />
dhcp-authoritative<br />
dhcp-leasefile=/var/lib/dnsmasq/dnsmasq.leases<br />
<br />
=DNS Only=<br />
https://medium.com/myatus/poor-mans-device-discovery-dns-492a95ea8c8b<br />
<br />
I use dnsmasq now only for dns, not dhcp. I use this "trick" to keep my mac's and IPs the same.<br />
<br />
run<br />
sudo arp-scan -l -m /usr/share/arp-scan/mac-vendor.txt<br />
see IPs and MACs. Want to keep a record of that, do:<br />
sudo vim /usr/share/arp-scan/mac-vendor.txt<br />
<br />
## Vissie's adresses<br />
# pls copy past this line as you NEED the tab....<br />
10AA4B06550D linksys<br />
80A11CA6D1 tflow<br />
sudo systemctl restart dnsmasq.service</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Dns_old&diff=26620Dns old2021-04-20T12:57:36Z<p>Vissie: /* DNS Only */</p>
<hr />
<div>=Setup=<br />
https://fedoramagazine.org/dnsmasq-provide-dns-dhcp-services/<br />
<br />
sudo apt-get install dnsmasq resolvconf<br />
<br />
Edit /etc/dnsmasq.conf<br />
domain-needed<br />
bogus-priv<br />
strict-order <br />
<br />
no-resolv<br />
interface=en01<br />
listen-address=127.0.0.1,192.168.1.2<br />
<br />
# Open DNS<br />
server=208.67.222.222<br />
server=208.67.220.220<br />
<br />
# Set static IPs of other PCs and the Router.<br />
#dhcp-host=10:1f:41:d1:11:1c,iptime,192.168.0.1,infinite # Router<br />
dhcp-host=b2:27:2b:c2:52:c2,aname,192.168.1.97,720m<br />
dhcp-host=b2:27:3b:b3:83:63,anotername,192.168.1.96,720m<br />
dhcp-host=14:43:74:45:46:54,server,192.168.1.95,720m<br />
<br />
dhcp-range=192.168.1.100,192.168.1.200,24h<br />
dhcp-option=option:router,192.168.1.1<br />
dhcp-authoritative<br />
dhcp-leasefile=/var/lib/dnsmasq/dnsmasq.leases<br />
<br />
=DNS Only=<br />
https://medium.com/myatus/poor-mans-device-discovery-dns-492a95ea8c8b<br />
<br />
I use dnsmasq now only for dns, not dhcp. I use this "trick" to keep my mac's and IPs the same.<br />
<br />
run<br />
sudo arp-scan -l -m /usr/share/arp-scan/mac-vendor.txt<br />
see IPs and MACs. Want to keep a record of that, do:<br />
sudo vim /usr/share/arp-scan/mac-vendor.txt<br />
<br />
## Vissie's adresses<br />
# pls copy past this line as you NEED the tab....<br />
10AA4B06550D linksys<br />
80A11CA6D1 tflow<br />
ss</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Dns_old&diff=26619Dns old2021-04-20T12:57:29Z<p>Vissie: /* DNS Only */</p>
<hr />
<div>=Setup=<br />
https://fedoramagazine.org/dnsmasq-provide-dns-dhcp-services/<br />
<br />
sudo apt-get install dnsmasq resolvconf<br />
<br />
Edit /etc/dnsmasq.conf<br />
domain-needed<br />
bogus-priv<br />
strict-order <br />
<br />
no-resolv<br />
interface=en01<br />
listen-address=127.0.0.1,192.168.1.2<br />
<br />
# Open DNS<br />
server=208.67.222.222<br />
server=208.67.220.220<br />
<br />
# Set static IPs of other PCs and the Router.<br />
#dhcp-host=10:1f:41:d1:11:1c,iptime,192.168.0.1,infinite # Router<br />
dhcp-host=b2:27:2b:c2:52:c2,aname,192.168.1.97,720m<br />
dhcp-host=b2:27:3b:b3:83:63,anotername,192.168.1.96,720m<br />
dhcp-host=14:43:74:45:46:54,server,192.168.1.95,720m<br />
<br />
dhcp-range=192.168.1.100,192.168.1.200,24h<br />
dhcp-option=option:router,192.168.1.1<br />
dhcp-authoritative<br />
dhcp-leasefile=/var/lib/dnsmasq/dnsmasq.leases<br />
<br />
=DNS Only=<br />
https://medium.com/myatus/poor-mans-device-discovery-dns-492a95ea8c8b<br />
<br />
I use dnsmasq now only for dns, not dhcp. I use this "trick" to keep my mac's and IPs the same.<br />
<br />
run<br />
sudo arp-scan -l -m /usr/share/arp-scan/mac-vendor.txt<br />
see IPs and MACs. Want to keep a record of that, do:<br />
sudo vim /usr/share/arp-scan/mac-vendor.txt<br />
<br />
## Vissie's adresses<br />
# pls copy past this line as you NEED the tab....<br />
10AA4B06550D linksys<br />
80A11CA6D1 tflow</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Dns_old&diff=26618Dns old2021-04-20T12:56:25Z<p>Vissie: /* DNS Only */</p>
<hr />
<div>=Setup=<br />
https://fedoramagazine.org/dnsmasq-provide-dns-dhcp-services/<br />
<br />
sudo apt-get install dnsmasq resolvconf<br />
<br />
Edit /etc/dnsmasq.conf<br />
domain-needed<br />
bogus-priv<br />
strict-order <br />
<br />
no-resolv<br />
interface=en01<br />
listen-address=127.0.0.1,192.168.1.2<br />
<br />
# Open DNS<br />
server=208.67.222.222<br />
server=208.67.220.220<br />
<br />
# Set static IPs of other PCs and the Router.<br />
#dhcp-host=10:1f:41:d1:11:1c,iptime,192.168.0.1,infinite # Router<br />
dhcp-host=b2:27:2b:c2:52:c2,aname,192.168.1.97,720m<br />
dhcp-host=b2:27:3b:b3:83:63,anotername,192.168.1.96,720m<br />
dhcp-host=14:43:74:45:46:54,server,192.168.1.95,720m<br />
<br />
dhcp-range=192.168.1.100,192.168.1.200,24h<br />
dhcp-option=option:router,192.168.1.1<br />
dhcp-authoritative<br />
dhcp-leasefile=/var/lib/dnsmasq/dnsmasq.leases<br />
<br />
=DNS Only=<br />
https://medium.com/myatus/poor-mans-device-discovery-dns-492a95ea8c8b<br />
<br />
I use dnsmasq now only for dns, not dhcp. I use this "trick" to keep my mac's and IPs the same.<br />
<br />
run<br />
sudo arp-scan -l -m /usr/share/arp-scan/mac-vendor.txt<br />
see IPs and MACs. Want to keep a record of that, do:<br />
sudo vim /usr/share/arp-scan/mac-vendor.txt<br />
<br />
## Vissie's adresses<br />
# pls copy past this line as you NEED the tab....<br />
10AA4B06550D linksys<br />
80A11CA6D1 tflow</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Dns_old&diff=26617Dns old2021-04-20T12:56:02Z<p>Vissie: /* DNS Only */</p>
<hr />
<div>=Setup=<br />
https://fedoramagazine.org/dnsmasq-provide-dns-dhcp-services/<br />
<br />
sudo apt-get install dnsmasq resolvconf<br />
<br />
Edit /etc/dnsmasq.conf<br />
domain-needed<br />
bogus-priv<br />
strict-order <br />
<br />
no-resolv<br />
interface=en01<br />
listen-address=127.0.0.1,192.168.1.2<br />
<br />
# Open DNS<br />
server=208.67.222.222<br />
server=208.67.220.220<br />
<br />
# Set static IPs of other PCs and the Router.<br />
#dhcp-host=10:1f:41:d1:11:1c,iptime,192.168.0.1,infinite # Router<br />
dhcp-host=b2:27:2b:c2:52:c2,aname,192.168.1.97,720m<br />
dhcp-host=b2:27:3b:b3:83:63,anotername,192.168.1.96,720m<br />
dhcp-host=14:43:74:45:46:54,server,192.168.1.95,720m<br />
<br />
dhcp-range=192.168.1.100,192.168.1.200,24h<br />
dhcp-option=option:router,192.168.1.1<br />
dhcp-authoritative<br />
dhcp-leasefile=/var/lib/dnsmasq/dnsmasq.leases<br />
<br />
=DNS Only=<br />
https://medium.com/myatus/poor-mans-device-discovery-dns-492a95ea8c8b<br />
<br />
I use dnsmasq now only for dns, not dhcp. I use this "trick" to keep my mac's and IPs the same.<br />
<br />
run<br />
sudo arp-scan -l -m /usr/share/arp-scan/mac-vendor.txt<br />
see IPs and MACs. Want to keep a record of that, do:<br />
sudo vim /usr/share/arp-scan/mac-vendor.txt</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Dns_old&diff=26616Dns old2021-04-20T12:49:09Z<p>Vissie: </p>
<hr />
<div>=Setup=<br />
https://fedoramagazine.org/dnsmasq-provide-dns-dhcp-services/<br />
<br />
sudo apt-get install dnsmasq resolvconf<br />
<br />
Edit /etc/dnsmasq.conf<br />
domain-needed<br />
bogus-priv<br />
strict-order <br />
<br />
no-resolv<br />
interface=en01<br />
listen-address=127.0.0.1,192.168.1.2<br />
<br />
# Open DNS<br />
server=208.67.222.222<br />
server=208.67.220.220<br />
<br />
# Set static IPs of other PCs and the Router.<br />
#dhcp-host=10:1f:41:d1:11:1c,iptime,192.168.0.1,infinite # Router<br />
dhcp-host=b2:27:2b:c2:52:c2,aname,192.168.1.97,720m<br />
dhcp-host=b2:27:3b:b3:83:63,anotername,192.168.1.96,720m<br />
dhcp-host=14:43:74:45:46:54,server,192.168.1.95,720m<br />
<br />
dhcp-range=192.168.1.100,192.168.1.200,24h<br />
dhcp-option=option:router,192.168.1.1<br />
dhcp-authoritative<br />
dhcp-leasefile=/var/lib/dnsmasq/dnsmasq.leases<br />
<br />
=DNS Only=</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Fritzing&diff=26615Fritzing2021-04-06T05:17:12Z<p>Vissie: /* Extra Components */</p>
<hr />
<div>=Install=<br />
apt install fritzing fritzing-parts<br />
<br />
=Extra Components=<br />
==Relay==<br />
https://github.com/rwaldron/fritzing-components<br />
<br />
==esp8266 NodeMCU LoLin==<br />
https://forum.fritzing.org/t/esp8266-nodemcu-lolin/6386</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Fritzing&diff=26614Fritzing2021-04-02T06:14:43Z<p>Vissie: </p>
<hr />
<div>=Install=<br />
apt install fritzing fritzing-parts<br />
<br />
=Extra Components=<br />
==Relay==<br />
https://github.com/rwaldron/fritzing-components</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Fritzing&diff=26613Fritzing2021-04-02T06:14:24Z<p>Vissie: </p>
<hr />
<div>=Install=<br />
apt install <br />
<br />
=Extra Components=<br />
==Relay==<br />
https://github.com/rwaldron/fritzing-components</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Fritzing&diff=26612Fritzing2021-04-02T06:14:10Z<p>Vissie: </p>
<hr />
<div>=Install=<br />
123456<br />
<br />
=Extra Components=<br />
==Relay==<br />
https://github.com/rwaldron/fritzing-components</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Fritzing&diff=26611Fritzing2021-04-02T06:14:00Z<p>Vissie: </p>
<hr />
<div>=Install=<br />
123<br />
<br />
=Extra Components=<br />
==Relay==<br />
https://github.com/rwaldron/fritzing-components</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Fritzing&diff=26610Fritzing2021-04-02T06:13:32Z<p>Vissie: </p>
<hr />
<div>=Install=<br />
<br />
<br />
=Extra Components=<br />
==Relay==<br />
https://github.com/rwaldron/fritzing-components</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Fritzing&diff=26609Fritzing2021-04-02T06:12:11Z<p>Vissie: </p>
<hr />
<div>=Install=<br />
<br />
=Extra Components=<br />
==Relay==<br />
https://github.com/rwaldron/fritzing-components</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Fritzing&diff=26608Fritzing2021-04-02T06:11:48Z<p>Vissie: </p>
<hr />
<div>=Install=<br />
<br />
=Extra Components=<br />
==Relay==</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Fritzing&diff=26607Fritzing2021-04-02T06:11:31Z<p>Vissie: </p>
<hr />
<div>=Extra Components=<br />
==Relay==</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Fritzing&diff=26606Fritzing2021-04-02T06:10:28Z<p>Vissie: Created page with "cc"</p>
<hr />
<div>cc</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Enter_into_my_wiki&diff=26605Enter into my wiki2021-04-02T06:02:44Z<p>Vissie: /* Applications */</p>
<hr />
<div>Consult the [http://meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.<br />
<br />
= Linux Tips and Shortcuts =<br />
== Installing Gentoo ==<br />
# [[Vissie's Gentoo Setup]]<br />
# [[Cron]]<br />
# [[Complete log setup]]<br />
== Boot ==<br />
# [[Boot up/start options]]<br />
# [[Color Boot]] <br />
# [[Speedup boot times]] <br />
# Boot from USB with ISO<br />
## [http://help.ubuntu.com/7.04/installation-guide/i386/boot-usb-files.html Boot from USB using ISO file]<br />
## [http://www.pendrivelinux.com/2007/09/28/usb-ubuntu-710-gutsy-gibbon-install/ USB Ubuntu 7.10 Gutsy Gibbon install]<br />
== Kernel ==<br />
# [[Kernel Config]]<br />
== Hardware ==<br />
# [[USE flags on Gentoo]]<br />
# [[CCACHE]]<br />
# [[DISTCC]]<br />
# [[Fdisk and HDDs]] <br />
# [[Sound]]<br />
# [[SD card]]<br />
# [[CD/CD writer/DVD]]<br />
# [[Power management]]<br />
# [[Bluetooth]]<br />
# [[Webcam]]<br />
# [[Mouse]]<br />
# Network<br />
## [[Network setup (incl. wireless)]]<br />
## [[Simple Network Troubleshooting]]<br />
## [[Configure A Fully Qualified Domain Name (DNS)]]<br />
## [[OpenLDAP Installation On Ubuntu]]<br />
# [[System Monitoring]]<br />
# [[Printing and printers]]<br />
== Xorg ==<br />
# [[HAL]]<br />
# [[xorg-x11]]<br />
# [[Some xorg.conf tips]]<br />
# [[Compiz Fusion]]<br />
# [[ATI Setup in Linux]]<br />
# [[X Defaults]]<br />
== Desktops ==<br />
# [[Fluxbox]]<br />
# [[LXDE]]<br />
# [[xfce4]]<br />
== Graphical Login Manager ==<br />
# [[Entrance]]<br />
# fast<br />
# [[gdm]]<br />
== Server/Router config ==<br />
# [[Debian router config]]<br />
# [[Proxy/Replicator]]<br />
# [[Firewall]]<br />
# [http://www.gentoo-wiki.info/HOWTO_Create_a_Gentoo_Client_Infrastructure Create a Gentoo setup boot cd]<br />
# [[Automated script for Gentoo instalation]]<br />
# [[Apache2]]<br />
# [[Keep a daily log of ADSL traffic]]<br />
# [[hostapd]]<br />
## [[lvm]]<br />
# [[nfs]]<br />
## [[svn]]<br />
<br />
== Internet ==<br />
# [[Vodafone 3G setup]]<br />
# [[iBurst]]<br />
[[Live CD creation]]<br />
[[Maintenance]] <br />
== Applications ==<br />
# [[2D/3D]]<br />
# [[aMule]]<br />
# [[Arduino Notes]]<br />
# [[apt]]<br />
# [[Android Studio]]<br />
# [[Archives]]<br />
# [[Auto Mount]]<br />
# [[Auto start at boot]]<br />
# [[autofs]]<br />
# [[awk]]<br />
# [[QR bar Code]]<br />
# [[beets]]<br />
# [[berryboot]]<br />
# [[Blender]]<br />
# [[BlissOS]]<br />
# [[brave browser]]<br />
# [[cd/cdr/cdrw]]<br />
# [[cdu]]<br />
# [[certbot]]<br />
# [[chown]]<br />
# [[chrome]]<br />
# [[chromium]]<br />
# [[codec]]<br />
# [[conky]]<br />
# [[cron]]<br />
# [[Date]]<br />
# [[dd]]<br />
# [[deepspeech]]<br />
# [[Deluge]]<br />
# [[dns]]<br />
# [[Docker]]<br />
# [[Drive security]]<br />
# [[DropBox]]<br />
# [[DVD creation]]<br />
# [[DVD rip]]<br />
# [[EMail clients]]<br />
# [[emerge]]<br />
# [[evolution]]<br />
# [[feh]]<br />
# [[ffmpeg]]<br />
# [[FileBot]]<br />
# File Mangers<br />
## [[Ranger]]<br />
## [[Thunar]]<br />
# [[FireFox]]<br />
# [[Fritzing]]<br />
# [[Gaining better performance via swappiness]]<br />
# [[grc]]<br />
# [[gimp]]<br />
# [[Git]]<br />
# [[Grep]]<br />
# [[Grub2]]video surveillance<br />
# [[GNUmp3D]]<br />
# [[goLang]]<br />
# [[GPS]]<br />
# [[Guacamole]]<br />
# Home automation<br />
## [[Mister House]]<br />
## [[Text to speech]]<br />
# [[hostname]]<br />
# [[iperf]]<br />
# [[Imagemagick]]<br />
# [[Insight3D]]<br />
# [[Install MythTV]]<br />
# [[Introduction Detection]]<br />
# [[IPV6]]<br />
# [[Java]]<br />
# [[kenel]]<br />
# [[Keyboard]]<br />
# [[Kodi]]<br />
# [[KVM]]<br />
# [[LibreCAD]]<br />
# [[lightdm]]<br />
# [[lizardfs]]<br />
# [[Logitech Media Server]]<br />
# [[mail]]<br />
# [[MagicLantern]]<br />
# [[MagicMirror]]<br />
# [[MakeMKV]]<br />
# [[Man pages]]<br />
# [[MediaWiki]]<br />
# [[Midnight Commander]]<br />
# [[mkvtoolnix]]<br />
# [[MPD]]<br />
# [[Mobile phones]]<br />
# [[Mopidy]]<br />
# [[Mount (ISO, NTFS and cifs)]]<br />
# [[Music Players]]<br />
# [[MySQL]]<br />
# [[ncdu]]<br />
# [[Netdata]]<br />
# [[netstat]]<br />
# [[NextCloud]]<br />
# [[nodeJS]]<br />
# [[Nginx]]<br />
# [[Ngrok]]<br />
# [[nvidia]]<br />
# [[Office]]<br />
# [[OpenBox]]<br />
# [[OpenVPN]]<br />
# [[pentaho]]<br />
# [[PDF(view and edit)]]<br />
# [[Plex]]<br />
# [[Power management Generic]]<br />
# Printers<br />
## [[Cannon Pixma MP280]] <br />
# [[Proxmox]]<br />
# [[ppa on Debian]]<br />
# [[Pushover]]<br />
# [[PyCharm]]<br />
# [[Python]]<br />
# [[rainloop]]<br />
# [[Rar/unRar]]<br />
# [[rclone]]<br />
# Remote Access<br />
## [[Remote Access Ubuntu using Firefox with TightVNC]]<br />
## [[Web file sharing using python]]<br />
## [[Files sharing with ssh]]<br />
## [[xrandr (re-size windows) ]]<br />
# [[Remotes controls and multimedia (IVTV)]]<br />
# [[rhasspy]]<br />
# [[rSync]]<br />
# [[samba]]<br />
# [[screen]]<br />
# [[sed, Linux text editor]]<br />
# [[Setting the time]]<br />
# [[Shell in a Box]]<br />
# [[shinobi]]<br />
# [[smartmontools]]<br />
# [[sources.list]]<br />
# [[ssh]]<br />
# [[SyncE with Windows CE 5]]<br />
# [[Syncthing]]<br />
# [[systemctl]]<br />
# [[SuncThing]]<br />
# [[sudo]]<br />
# [[tahoe-lafs]]<br />
# [[TeamViewer]]<br />
# [[Telegram]]<br />
# [[TensorFlow]]<br />
# [[Terminal]]<br />
# [[Themes]]<br />
# [[tmux]]<br />
# [http://www.comptechdoc.org/os/linux/usersguide/linux_ugsamba.html Samba guide]<br />
# [[Vim]]<br />
# [[Visual SFM]]<br />
# [[VoIP]]<br />
# [[Volume label]]<br />
# [[IM]]<br />
# [[Images]]<br />
# Video Surveillance<br />
## [[zoneminder]]<br />
# [[Virtual Box]]<br />
# [[vnc]]<br />
## [[USB]]<br />
## [[Seamless MS Windows in Linux]]<br />
# [[FTP]]<br />
# [[Bash scripting]]<br />
# Music<br />
## [[iPod]]<br />
## [[Nice MP3 Organizers]]<br />
# Downloading<br />
## [[rtorrent]]<br />
## [[mldonkey]]<br />
# [[Terminal Server / Remote Desktop Client Shortcut Keys]]<br />
# [http://www.unixica.com/unixica/2007/11/how_to_update_navigation_links.html How to update navigation links in MediaWiki]<br />
# [[http://www.cgsecurity.org/wiki/Damaged_Hard_Disk Damaged Hard Disk - ddrescue]]<br />
# [http://www.killersites.com/webDesignersHandbook/ascii_page2.htm ASCII tables ]<br />
# [http://ubuntuforums.org/showthread.php?t=171203 Minimum Linux install]<br />
# [http://www.certforums.co.uk/forums/archive/index.php?t-20798.html Minimum install with VM]<br />
# [http://www.softerblue.com/?p=15 Gentoo install inside VirtualBox]<br />
# [[Linux and Education]]<br />
# [[udev]]<br />
# [[Upgrade]]<br />
# [[UPS]]<br />
# [[Wine]]<br />
# [[WhatsApp]]<br />
# [[X2Go]]<br />
# [[xpra]]<br />
# [[zabbix]]<br />
# [[zfs]]<br />
<br />
== Other Stuff ==<br />
# [[Acer Aspire one A110]]<br />
# [[Arch Linux]]<br />
# [[Android]]<br />
# [[CentOS]]<br />
# [[Google Play Music]]<br />
# [[Installing IBM T21]]<br />
# [[Linux on HTC-Hermes]]<br />
# [[Live Kiosk stuff]]<br />
# [[Mobile Wiki]]<br />
# [[Nokia N95 8GB]]<br />
# [[Nokia N95 8G]]<br />
# [http://www.techthrob.com/tech/linux_virtualization.php fun stuff]<br />
# [http://www.pramnos.com/story69-2390.html wow]<br />
<br />
== Apple Mac stuff ==<br />
# [[Printing]]<br />
== Windows stuff (sorry, but I have too..) ==<br />
# [[Windows Genuine Advantage (WGA)]]<br />
<br />
== Some Raspberry Pi Notes ==<br />
# Some nice weekend tasks<br />
## [[Build a digital clock]]<br />
## [[Generic i2c screen]]<br />
## [[GPIO]]<br />
## [[OSMC]]<br />
## [[camera]]<br />
<br />
== Some CubieTruck Pi Notes ==<br />
# [[Compile Android]]<br />
# [[CubieTruck, AKA Cubie 3]]<br />
# [[CubieTruck Plus, AKA Cubie 5]]<br />
<br />
== Some oDroid Pi Notes ==<br />
# Android<br />
## [[Boot logo's and animations]]<br />
## [[Fastboot]]<br />
## [[gapps]]<br />
# [[Shopping list]]<br />
# [[Volumio]]<br />
<br />
== Code snippits ==<br />
# [[regex]]<br />
# [[VBScript]]<br />
# [[Microsoft PowerShell]]<br />
# [[Web Development]]<br />
# Debian<br />
## [[runBootup.sh]]<br />
== Special hardware debian setups ==<br />
#[[Canon PIXMA MP280]]<br />
# [[Dell Latitude E6400]]<br />
# [[Dell Latitude D630]]<br />
# [[Dell Optiplex 3060]]<br />
# [[Debian minimal]]<br />
# [[Nvidia GT1070]]<br />
<br />
= Raspberry Pi section =<br />
# [[network]]<br />
## [[oled]]<br />
## [[PoE HAT (B)]]<br />
== other ==<br />
# [[AliExpress]]<br />
# [[E.T systems DC blue digital]]<br />
<br />
== [[My keyboard shortcuts]] ==<br />
<br />
== [[Some Hardware notes]] ==<br />
<br />
= Android apps =<br />
# [[tasker]]<br />
# [[vissie phone setup]]<br />
# [[python and termux]]<br />
<br />
= ESXi =<br />
== VMware Tools ==<br />
apt-get install open-vm-tools open-vm-tools-desktop<br />
<br />
== Oracle VirtualBox ==<br />
sudo apt install build-essential dkms linux-headers-$(uname -r)<br />
<br />
Mount the CD, cd to it. run:<br />
sudo sh ./VBoxLinuxAdditions.run<br />
<br />
== Resizing discs ==<br />
If you get boot delays with a message:<br />
'Gave up waiting for suspend/resume device'<br />
<br />
sudo update-initramfs -u<br />
<br />
== Add a shared HDD==<br />
https://theitbros.com/share-disk-between-vms-on-vmware-esxi/</div>Vissiehttps://vissie.com/wiki_new/index.php?title=PoE_HAT_(B)&diff=26604PoE HAT (B)2021-03-11T09:46:58Z<p>Vissie: Created page with "https://www.waveshare.com/wiki/PoE_HAT_(B)"</p>
<hr />
<div>https://www.waveshare.com/wiki/PoE_HAT_(B)</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Enter_into_my_wiki&diff=26603Enter into my wiki2021-03-11T08:34:37Z<p>Vissie: /* Raspberry Pi section */</p>
<hr />
<div>Consult the [http://meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.<br />
<br />
= Linux Tips and Shortcuts =<br />
== Installing Gentoo ==<br />
# [[Vissie's Gentoo Setup]]<br />
# [[Cron]]<br />
# [[Complete log setup]]<br />
== Boot ==<br />
# [[Boot up/start options]]<br />
# [[Color Boot]] <br />
# [[Speedup boot times]] <br />
# Boot from USB with ISO<br />
## [http://help.ubuntu.com/7.04/installation-guide/i386/boot-usb-files.html Boot from USB using ISO file]<br />
## [http://www.pendrivelinux.com/2007/09/28/usb-ubuntu-710-gutsy-gibbon-install/ USB Ubuntu 7.10 Gutsy Gibbon install]<br />
== Kernel ==<br />
# [[Kernel Config]]<br />
== Hardware ==<br />
# [[USE flags on Gentoo]]<br />
# [[CCACHE]]<br />
# [[DISTCC]]<br />
# [[Fdisk and HDDs]] <br />
# [[Sound]]<br />
# [[SD card]]<br />
# [[CD/CD writer/DVD]]<br />
# [[Power management]]<br />
# [[Bluetooth]]<br />
# [[Webcam]]<br />
# [[Mouse]]<br />
# Network<br />
## [[Network setup (incl. wireless)]]<br />
## [[Simple Network Troubleshooting]]<br />
## [[Configure A Fully Qualified Domain Name (DNS)]]<br />
## [[OpenLDAP Installation On Ubuntu]]<br />
# [[System Monitoring]]<br />
# [[Printing and printers]]<br />
== Xorg ==<br />
# [[HAL]]<br />
# [[xorg-x11]]<br />
# [[Some xorg.conf tips]]<br />
# [[Compiz Fusion]]<br />
# [[ATI Setup in Linux]]<br />
# [[X Defaults]]<br />
== Desktops ==<br />
# [[Fluxbox]]<br />
# [[LXDE]]<br />
# [[xfce4]]<br />
== Graphical Login Manager ==<br />
# [[Entrance]]<br />
# fast<br />
# [[gdm]]<br />
== Server/Router config ==<br />
# [[Debian router config]]<br />
# [[Proxy/Replicator]]<br />
# [[Firewall]]<br />
# [http://www.gentoo-wiki.info/HOWTO_Create_a_Gentoo_Client_Infrastructure Create a Gentoo setup boot cd]<br />
# [[Automated script for Gentoo instalation]]<br />
# [[Apache2]]<br />
# [[Keep a daily log of ADSL traffic]]<br />
# [[hostapd]]<br />
## [[lvm]]<br />
# [[nfs]]<br />
## [[svn]]<br />
<br />
== Internet ==<br />
# [[Vodafone 3G setup]]<br />
# [[iBurst]]<br />
[[Live CD creation]]<br />
[[Maintenance]] <br />
== Applications ==<br />
# [[2D/3D]]<br />
# [[aMule]]<br />
# [[Arduino Notes]]<br />
# [[apt]]<br />
# [[Android Studio]]<br />
# [[Archives]]<br />
# [[Auto Mount]]<br />
# [[Auto start at boot]]<br />
# [[autofs]]<br />
# [[awk]]<br />
# [[QR bar Code]]<br />
# [[beets]]<br />
# [[berryboot]]<br />
# [[Blender]]<br />
# [[BlissOS]]<br />
# [[brave browser]]<br />
# [[cd/cdr/cdrw]]<br />
# [[cdu]]<br />
# [[certbot]]<br />
# [[chown]]<br />
# [[chrome]]<br />
# [[chromium]]<br />
# [[codec]]<br />
# [[conky]]<br />
# [[cron]]<br />
# [[Date]]<br />
# [[dd]]<br />
# [[deepspeech]]<br />
# [[Deluge]]<br />
# [[dns]]<br />
# [[Docker]]<br />
# [[Drive security]]<br />
# [[DropBox]]<br />
# [[DVD creation]]<br />
# [[DVD rip]]<br />
# [[EMail clients]]<br />
# [[emerge]]<br />
# [[evolution]]<br />
# [[feh]]<br />
# [[ffmpeg]]<br />
# [[FileBot]]<br />
# File Mangers<br />
## [[Ranger]]<br />
## [[Thunar]]<br />
# [[FireFox]]<br />
# [[Gaining better performance via swappiness]]<br />
# [[grc]]<br />
# [[gimp]]<br />
# [[Git]]<br />
# [[Grep]]<br />
# [[Grub2]]video surveillance<br />
# [[GNUmp3D]]<br />
# [[goLang]]<br />
# [[GPS]]<br />
# [[Guacamole]]<br />
# Home automation<br />
## [[Mister House]]<br />
## [[Text to speech]]<br />
# [[hostname]]<br />
# [[iperf]]<br />
# [[Imagemagick]]<br />
# [[Insight3D]]<br />
# [[Install MythTV]]<br />
# [[Introduction Detection]]<br />
# [[IPV6]]<br />
# [[Java]]<br />
# [[kenel]]<br />
# [[Keyboard]]<br />
# [[Kodi]]<br />
# [[KVM]]<br />
# [[LibreCAD]]<br />
# [[lightdm]]<br />
# [[lizardfs]]<br />
# [[Logitech Media Server]]<br />
# [[mail]]<br />
# [[MagicLantern]]<br />
# [[MagicMirror]]<br />
# [[MakeMKV]]<br />
# [[Man pages]]<br />
# [[MediaWiki]]<br />
# [[Midnight Commander]]<br />
# [[mkvtoolnix]]<br />
# [[MPD]]<br />
# [[Mobile phones]]<br />
# [[Mopidy]]<br />
# [[Mount (ISO, NTFS and cifs)]]<br />
# [[Music Players]]<br />
# [[MySQL]]<br />
# [[ncdu]]<br />
# [[Netdata]]<br />
# [[netstat]]<br />
# [[NextCloud]]<br />
# [[nodeJS]]<br />
# [[Nginx]]<br />
# [[Ngrok]]<br />
# [[nvidia]]<br />
# [[Office]]<br />
# [[OpenBox]]<br />
# [[OpenVPN]]<br />
# [[pentaho]]<br />
# [[PDF(view and edit)]]<br />
# [[Plex]]<br />
# [[Power management Generic]]<br />
# Printers<br />
## [[Cannon Pixma MP280]] <br />
# [[Proxmox]]<br />
# [[ppa on Debian]]<br />
# [[Pushover]]<br />
# [[PyCharm]]<br />
# [[Python]]<br />
# [[rainloop]]<br />
# [[Rar/unRar]]<br />
# [[rclone]]<br />
# Remote Access<br />
## [[Remote Access Ubuntu using Firefox with TightVNC]]<br />
## [[Web file sharing using python]]<br />
## [[Files sharing with ssh]]<br />
## [[xrandr (re-size windows) ]]<br />
# [[Remotes controls and multimedia (IVTV)]]<br />
# [[rhasspy]]<br />
# [[rSync]]<br />
# [[samba]]<br />
# [[screen]]<br />
# [[sed, Linux text editor]]<br />
# [[Setting the time]]<br />
# [[Shell in a Box]]<br />
# [[shinobi]]<br />
# [[smartmontools]]<br />
# [[sources.list]]<br />
# [[ssh]]<br />
# [[SyncE with Windows CE 5]]<br />
# [[Syncthing]]<br />
# [[systemctl]]<br />
# [[SuncThing]]<br />
# [[sudo]]<br />
# [[tahoe-lafs]]<br />
# [[TeamViewer]]<br />
# [[Telegram]]<br />
# [[TensorFlow]]<br />
# [[Terminal]]<br />
# [[Themes]]<br />
# [[tmux]]<br />
# [http://www.comptechdoc.org/os/linux/usersguide/linux_ugsamba.html Samba guide]<br />
# [[Vim]]<br />
# [[Visual SFM]]<br />
# [[VoIP]]<br />
# [[Volume label]]<br />
# [[IM]]<br />
# [[Images]]<br />
# Video Surveillance<br />
## [[zoneminder]]<br />
# [[Virtual Box]]<br />
# [[vnc]]<br />
## [[USB]]<br />
## [[Seamless MS Windows in Linux]]<br />
# [[FTP]]<br />
# [[Bash scripting]]<br />
# Music<br />
## [[iPod]]<br />
## [[Nice MP3 Organizers]]<br />
# Downloading<br />
## [[rtorrent]]<br />
## [[mldonkey]]<br />
# [[Terminal Server / Remote Desktop Client Shortcut Keys]]<br />
# [http://www.unixica.com/unixica/2007/11/how_to_update_navigation_links.html How to update navigation links in MediaWiki]<br />
# [[http://www.cgsecurity.org/wiki/Damaged_Hard_Disk Damaged Hard Disk - ddrescue]]<br />
# [http://www.killersites.com/webDesignersHandbook/ascii_page2.htm ASCII tables ]<br />
# [http://ubuntuforums.org/showthread.php?t=171203 Minimum Linux install]<br />
# [http://www.certforums.co.uk/forums/archive/index.php?t-20798.html Minimum install with VM]<br />
# [http://www.softerblue.com/?p=15 Gentoo install inside VirtualBox]<br />
# [[Linux and Education]]<br />
# [[udev]]<br />
# [[Upgrade]]<br />
# [[UPS]]<br />
# [[Wine]]<br />
# [[WhatsApp]]<br />
# [[X2Go]]<br />
# [[xpra]]<br />
# [[zabbix]]<br />
# [[zfs]]<br />
<br />
== Other Stuff ==<br />
# [[Acer Aspire one A110]]<br />
# [[Arch Linux]]<br />
# [[Android]]<br />
# [[CentOS]]<br />
# [[Google Play Music]]<br />
# [[Installing IBM T21]]<br />
# [[Linux on HTC-Hermes]]<br />
# [[Live Kiosk stuff]]<br />
# [[Mobile Wiki]]<br />
# [[Nokia N95 8GB]]<br />
# [[Nokia N95 8G]]<br />
# [http://www.techthrob.com/tech/linux_virtualization.php fun stuff]<br />
# [http://www.pramnos.com/story69-2390.html wow]<br />
<br />
== Apple Mac stuff ==<br />
# [[Printing]]<br />
== Windows stuff (sorry, but I have too..) ==<br />
# [[Windows Genuine Advantage (WGA)]]<br />
<br />
== Some Raspberry Pi Notes ==<br />
# Some nice weekend tasks<br />
## [[Build a digital clock]]<br />
## [[Generic i2c screen]]<br />
## [[GPIO]]<br />
## [[OSMC]]<br />
## [[camera]]<br />
<br />
== Some CubieTruck Pi Notes ==<br />
# [[Compile Android]]<br />
# [[CubieTruck, AKA Cubie 3]]<br />
# [[CubieTruck Plus, AKA Cubie 5]]<br />
<br />
== Some oDroid Pi Notes ==<br />
# Android<br />
## [[Boot logo's and animations]]<br />
## [[Fastboot]]<br />
## [[gapps]]<br />
# [[Shopping list]]<br />
# [[Volumio]]<br />
<br />
== Code snippits ==<br />
# [[regex]]<br />
# [[VBScript]]<br />
# [[Microsoft PowerShell]]<br />
# [[Web Development]]<br />
# Debian<br />
## [[runBootup.sh]]<br />
== Special hardware debian setups ==<br />
#[[Canon PIXMA MP280]]<br />
# [[Dell Latitude E6400]]<br />
# [[Dell Latitude D630]]<br />
# [[Dell Optiplex 3060]]<br />
# [[Debian minimal]]<br />
# [[Nvidia GT1070]]<br />
<br />
= Raspberry Pi section =<br />
# [[network]]<br />
## [[oled]]<br />
## [[PoE HAT (B)]]<br />
== other ==<br />
# [[AliExpress]]<br />
# [[E.T systems DC blue digital]]<br />
<br />
== [[My keyboard shortcuts]] ==<br />
<br />
== [[Some Hardware notes]] ==<br />
<br />
= Android apps =<br />
# [[tasker]]<br />
# [[vissie phone setup]]<br />
# [[python and termux]]<br />
<br />
= ESXi =<br />
== VMware Tools ==<br />
apt-get install open-vm-tools open-vm-tools-desktop<br />
<br />
== Oracle VirtualBox ==<br />
sudo apt install build-essential dkms linux-headers-$(uname -r)<br />
<br />
Mount the CD, cd to it. run:<br />
sudo sh ./VBoxLinuxAdditions.run<br />
<br />
== Resizing discs ==<br />
If you get boot delays with a message:<br />
'Gave up waiting for suspend/resume device'<br />
<br />
sudo update-initramfs -u<br />
<br />
== Add a shared HDD==<br />
https://theitbros.com/share-disk-between-vms-on-vmware-esxi/</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Camera&diff=26602Camera2021-03-09T14:17:47Z<p>Vissie: /* Some Usefull commans */</p>
<hr />
<div>=Pi Camara=<br />
==Install==<br />
Enabling the camera<br />
<br />
Open the raspi-config tool from the Terminal:<br />
sudo raspi-config<br />
Select {{Key|Interfacing Options}} then {{Key|Camera}} and hit {{Key|Enter}}. Choose {{Key|Yes}} then {{Key|ok}}. Go to {{Key|Finish}} and you'll be prompted to reboot<br />
<br />
==setup device==<br />
v4l2-ctl --set-fmt-video=width=800,height=600<br />
v4l2-ctl --set-fmt-video=width=1920,height=1080<br />
<br />
Too much purple? Try this:<br />
sudo vcdbg set awb_mode 0<br />
<br />
==video streaming==<br />
===VLC fast===<br />
ls -l /dev/video0<br />
crw-rw---- 1 root {{File|video}} 81, 6 Oct 19 11:04 /dev/video0<br />
sudo adduser username {{File|video}}<br />
<br />
cvlc v4l2:///dev/video0:width=640:height=480:fps=20 --sout="#transcode{vcodec=mp4v}:rtp{sdp=rtsp://:8554/}" :demux=h264<br />
<br />
==== MJPG Streaming====<br />
v4l2-ctl --set-fmt-video=width=2592,height=1944,pixelformat=5<br />
v4l2-ctl -c compression_quality=100,sharpness=30<br />
v4l2-ctl -p 10<br />
<br />
cvlc --no-audio \<br />
v4l2:///dev/video0 \<br />
--v4l2-width 1920 \<br />
--v4l2-height 1080 \<br />
--v4l2-chroma MJPG \<br />
--v4l2-hflip 1 \<br />
--v4l2-vflip 1 \<br />
--sout '#rtp{sdp=rtsp://:8554/}' \<br />
-I dummy<br />
====HTTP H.264 Streaming====<br />
v4l2-ctl --set-fmt-video=width=2592,height=1944,pixelformat=4<br />
v4l2-ctl -c sharpness=30,compression_quality=100,video_bitrate_mode=1,video_bitrate=25000000<br />
<br />
cvlc --no-audio \<br />
v4l2:///dev/video0 \<br />
--v4l2-width 1920 \<br />
--v4l2-height 1080 \<br />
--v4l2-chroma h264 \<br />
--v4l2-fps 30 \<br />
--v4l2-hflip 1 \<br />
--v4l2-vflip 1 \<br />
--sout '#standard{access=http,mux=ts,dst=:8554/}' \<br />
-I dummy<br />
====Password protection====<br />
To set up username and password authentication in a RTSP stream, you need to use the --sout-rtsp-user and --sout-rtsp-pwd.<br />
<br />
The final command should be:<br />
cvlc rtsp://ipcamlogin:ipcampassword@ipcamIP:554/play1.sdp --sout <br />
'#transcode{acodec=mp4a,ab=128,channels=2,samplerate=8000}:rtp{sdp=rtsp://rpiIP:8080/test.sdp}' --sout-ffmpeg-strict -2 --sout-avcodec-strict -2 --sout-rtsp-user username --sout-rtsp-pwd password<br />
cvlc --no-audio \<br />
v4l2:///dev/video0 \<br />
--v4l2-width 1920 \<br />
--v4l2-height 1080 \<br />
--v4l2-chroma h264 \<br />
--v4l2-fps 30 \<br />
--v4l2-hflip 1 \<br />
--v4l2-vflip 1 \<br />
--sout '#standard{access=http,mux=ts,dst=:8554/}' \<br />
--sout-rtsp-user username \<br />
--sout-rtsp-pwd password \<br />
-I dummy<br />
<br />
===raspivid slow===<br />
sudo raspivid -o - -t 0 -w 600 -h 400 -fps 20 -n | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264<br />
<br />
==test local camera==<br />
sudo apt-get install qv4l2<br />
qv4l2<br />
sudo apt-get install qv4l2<br />
<br />
=USB Camara=<br />
==setup==<br />
You can actually install vlc without support for X.<br />
sudo apt install vlc-nox<br />
or<br />
sudo apt install vlc-bin<br />
<br />
For now I will try motion. Setup looks big at 700M, but lets see if it works. <br />
https://pimylifeup.com/raspberry-pi-webcam-server/<br />
<br />
==Some Usefull commans==<br />
sudo v4l2-ctl -d /dev/video0 --list-framesizes=YUYV<br />
sudo v4l2-ctl --list-devices<br />
<br />
Seems to auto set the camera, nice command to run. <br />
v4l2-compliance</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Oled&diff=26601Oled2021-03-09T10:09:23Z<p>Vissie: Created page with " https://luma-oled.readthedocs.io/en/latest/troubleshooting.html https://luma-oled.readthedocs.io/en/latest/python-usage.html"</p>
<hr />
<div> https://luma-oled.readthedocs.io/en/latest/troubleshooting.html<br />
<br />
https://luma-oled.readthedocs.io/en/latest/python-usage.html</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Enter_into_my_wiki&diff=26600Enter into my wiki2021-03-09T10:08:48Z<p>Vissie: /* Raspberry Pi section */</p>
<hr />
<div>Consult the [http://meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.<br />
<br />
= Linux Tips and Shortcuts =<br />
== Installing Gentoo ==<br />
# [[Vissie's Gentoo Setup]]<br />
# [[Cron]]<br />
# [[Complete log setup]]<br />
== Boot ==<br />
# [[Boot up/start options]]<br />
# [[Color Boot]] <br />
# [[Speedup boot times]] <br />
# Boot from USB with ISO<br />
## [http://help.ubuntu.com/7.04/installation-guide/i386/boot-usb-files.html Boot from USB using ISO file]<br />
## [http://www.pendrivelinux.com/2007/09/28/usb-ubuntu-710-gutsy-gibbon-install/ USB Ubuntu 7.10 Gutsy Gibbon install]<br />
== Kernel ==<br />
# [[Kernel Config]]<br />
== Hardware ==<br />
# [[USE flags on Gentoo]]<br />
# [[CCACHE]]<br />
# [[DISTCC]]<br />
# [[Fdisk and HDDs]] <br />
# [[Sound]]<br />
# [[SD card]]<br />
# [[CD/CD writer/DVD]]<br />
# [[Power management]]<br />
# [[Bluetooth]]<br />
# [[Webcam]]<br />
# [[Mouse]]<br />
# Network<br />
## [[Network setup (incl. wireless)]]<br />
## [[Simple Network Troubleshooting]]<br />
## [[Configure A Fully Qualified Domain Name (DNS)]]<br />
## [[OpenLDAP Installation On Ubuntu]]<br />
# [[System Monitoring]]<br />
# [[Printing and printers]]<br />
== Xorg ==<br />
# [[HAL]]<br />
# [[xorg-x11]]<br />
# [[Some xorg.conf tips]]<br />
# [[Compiz Fusion]]<br />
# [[ATI Setup in Linux]]<br />
# [[X Defaults]]<br />
== Desktops ==<br />
# [[Fluxbox]]<br />
# [[LXDE]]<br />
# [[xfce4]]<br />
== Graphical Login Manager ==<br />
# [[Entrance]]<br />
# fast<br />
# [[gdm]]<br />
== Server/Router config ==<br />
# [[Debian router config]]<br />
# [[Proxy/Replicator]]<br />
# [[Firewall]]<br />
# [http://www.gentoo-wiki.info/HOWTO_Create_a_Gentoo_Client_Infrastructure Create a Gentoo setup boot cd]<br />
# [[Automated script for Gentoo instalation]]<br />
# [[Apache2]]<br />
# [[Keep a daily log of ADSL traffic]]<br />
# [[hostapd]]<br />
## [[lvm]]<br />
# [[nfs]]<br />
## [[svn]]<br />
<br />
== Internet ==<br />
# [[Vodafone 3G setup]]<br />
# [[iBurst]]<br />
[[Live CD creation]]<br />
[[Maintenance]] <br />
== Applications ==<br />
# [[2D/3D]]<br />
# [[aMule]]<br />
# [[Arduino Notes]]<br />
# [[apt]]<br />
# [[Android Studio]]<br />
# [[Archives]]<br />
# [[Auto Mount]]<br />
# [[Auto start at boot]]<br />
# [[autofs]]<br />
# [[awk]]<br />
# [[QR bar Code]]<br />
# [[beets]]<br />
# [[berryboot]]<br />
# [[Blender]]<br />
# [[BlissOS]]<br />
# [[brave browser]]<br />
# [[cd/cdr/cdrw]]<br />
# [[cdu]]<br />
# [[certbot]]<br />
# [[chown]]<br />
# [[chrome]]<br />
# [[chromium]]<br />
# [[codec]]<br />
# [[conky]]<br />
# [[cron]]<br />
# [[Date]]<br />
# [[dd]]<br />
# [[deepspeech]]<br />
# [[Deluge]]<br />
# [[dns]]<br />
# [[Docker]]<br />
# [[Drive security]]<br />
# [[DropBox]]<br />
# [[DVD creation]]<br />
# [[DVD rip]]<br />
# [[EMail clients]]<br />
# [[emerge]]<br />
# [[evolution]]<br />
# [[feh]]<br />
# [[ffmpeg]]<br />
# [[FileBot]]<br />
# File Mangers<br />
## [[Ranger]]<br />
## [[Thunar]]<br />
# [[FireFox]]<br />
# [[Gaining better performance via swappiness]]<br />
# [[grc]]<br />
# [[gimp]]<br />
# [[Git]]<br />
# [[Grep]]<br />
# [[Grub2]]video surveillance<br />
# [[GNUmp3D]]<br />
# [[goLang]]<br />
# [[GPS]]<br />
# [[Guacamole]]<br />
# Home automation<br />
## [[Mister House]]<br />
## [[Text to speech]]<br />
# [[hostname]]<br />
# [[iperf]]<br />
# [[Imagemagick]]<br />
# [[Insight3D]]<br />
# [[Install MythTV]]<br />
# [[Introduction Detection]]<br />
# [[IPV6]]<br />
# [[Java]]<br />
# [[kenel]]<br />
# [[Keyboard]]<br />
# [[Kodi]]<br />
# [[KVM]]<br />
# [[LibreCAD]]<br />
# [[lightdm]]<br />
# [[lizardfs]]<br />
# [[Logitech Media Server]]<br />
# [[mail]]<br />
# [[MagicLantern]]<br />
# [[MagicMirror]]<br />
# [[MakeMKV]]<br />
# [[Man pages]]<br />
# [[MediaWiki]]<br />
# [[Midnight Commander]]<br />
# [[mkvtoolnix]]<br />
# [[MPD]]<br />
# [[Mobile phones]]<br />
# [[Mopidy]]<br />
# [[Mount (ISO, NTFS and cifs)]]<br />
# [[Music Players]]<br />
# [[MySQL]]<br />
# [[ncdu]]<br />
# [[Netdata]]<br />
# [[netstat]]<br />
# [[NextCloud]]<br />
# [[nodeJS]]<br />
# [[Nginx]]<br />
# [[Ngrok]]<br />
# [[nvidia]]<br />
# [[Office]]<br />
# [[OpenBox]]<br />
# [[OpenVPN]]<br />
# [[pentaho]]<br />
# [[PDF(view and edit)]]<br />
# [[Plex]]<br />
# [[Power management Generic]]<br />
# Printers<br />
## [[Cannon Pixma MP280]] <br />
# [[Proxmox]]<br />
# [[ppa on Debian]]<br />
# [[Pushover]]<br />
# [[PyCharm]]<br />
# [[Python]]<br />
# [[rainloop]]<br />
# [[Rar/unRar]]<br />
# [[rclone]]<br />
# Remote Access<br />
## [[Remote Access Ubuntu using Firefox with TightVNC]]<br />
## [[Web file sharing using python]]<br />
## [[Files sharing with ssh]]<br />
## [[xrandr (re-size windows) ]]<br />
# [[Remotes controls and multimedia (IVTV)]]<br />
# [[rhasspy]]<br />
# [[rSync]]<br />
# [[samba]]<br />
# [[screen]]<br />
# [[sed, Linux text editor]]<br />
# [[Setting the time]]<br />
# [[Shell in a Box]]<br />
# [[shinobi]]<br />
# [[smartmontools]]<br />
# [[sources.list]]<br />
# [[ssh]]<br />
# [[SyncE with Windows CE 5]]<br />
# [[Syncthing]]<br />
# [[systemctl]]<br />
# [[SuncThing]]<br />
# [[sudo]]<br />
# [[tahoe-lafs]]<br />
# [[TeamViewer]]<br />
# [[Telegram]]<br />
# [[TensorFlow]]<br />
# [[Terminal]]<br />
# [[Themes]]<br />
# [[tmux]]<br />
# [http://www.comptechdoc.org/os/linux/usersguide/linux_ugsamba.html Samba guide]<br />
# [[Vim]]<br />
# [[Visual SFM]]<br />
# [[VoIP]]<br />
# [[Volume label]]<br />
# [[IM]]<br />
# [[Images]]<br />
# Video Surveillance<br />
## [[zoneminder]]<br />
# [[Virtual Box]]<br />
# [[vnc]]<br />
## [[USB]]<br />
## [[Seamless MS Windows in Linux]]<br />
# [[FTP]]<br />
# [[Bash scripting]]<br />
# Music<br />
## [[iPod]]<br />
## [[Nice MP3 Organizers]]<br />
# Downloading<br />
## [[rtorrent]]<br />
## [[mldonkey]]<br />
# [[Terminal Server / Remote Desktop Client Shortcut Keys]]<br />
# [http://www.unixica.com/unixica/2007/11/how_to_update_navigation_links.html How to update navigation links in MediaWiki]<br />
# [[http://www.cgsecurity.org/wiki/Damaged_Hard_Disk Damaged Hard Disk - ddrescue]]<br />
# [http://www.killersites.com/webDesignersHandbook/ascii_page2.htm ASCII tables ]<br />
# [http://ubuntuforums.org/showthread.php?t=171203 Minimum Linux install]<br />
# [http://www.certforums.co.uk/forums/archive/index.php?t-20798.html Minimum install with VM]<br />
# [http://www.softerblue.com/?p=15 Gentoo install inside VirtualBox]<br />
# [[Linux and Education]]<br />
# [[udev]]<br />
# [[Upgrade]]<br />
# [[UPS]]<br />
# [[Wine]]<br />
# [[WhatsApp]]<br />
# [[X2Go]]<br />
# [[xpra]]<br />
# [[zabbix]]<br />
# [[zfs]]<br />
<br />
== Other Stuff ==<br />
# [[Acer Aspire one A110]]<br />
# [[Arch Linux]]<br />
# [[Android]]<br />
# [[CentOS]]<br />
# [[Google Play Music]]<br />
# [[Installing IBM T21]]<br />
# [[Linux on HTC-Hermes]]<br />
# [[Live Kiosk stuff]]<br />
# [[Mobile Wiki]]<br />
# [[Nokia N95 8GB]]<br />
# [[Nokia N95 8G]]<br />
# [http://www.techthrob.com/tech/linux_virtualization.php fun stuff]<br />
# [http://www.pramnos.com/story69-2390.html wow]<br />
<br />
== Apple Mac stuff ==<br />
# [[Printing]]<br />
== Windows stuff (sorry, but I have too..) ==<br />
# [[Windows Genuine Advantage (WGA)]]<br />
<br />
== Some Raspberry Pi Notes ==<br />
# Some nice weekend tasks<br />
## [[Build a digital clock]]<br />
## [[Generic i2c screen]]<br />
## [[GPIO]]<br />
## [[OSMC]]<br />
## [[camera]]<br />
<br />
== Some CubieTruck Pi Notes ==<br />
# [[Compile Android]]<br />
# [[CubieTruck, AKA Cubie 3]]<br />
# [[CubieTruck Plus, AKA Cubie 5]]<br />
<br />
== Some oDroid Pi Notes ==<br />
# Android<br />
## [[Boot logo's and animations]]<br />
## [[Fastboot]]<br />
## [[gapps]]<br />
# [[Shopping list]]<br />
# [[Volumio]]<br />
<br />
== Code snippits ==<br />
# [[regex]]<br />
# [[VBScript]]<br />
# [[Microsoft PowerShell]]<br />
# [[Web Development]]<br />
# Debian<br />
## [[runBootup.sh]]<br />
== Special hardware debian setups ==<br />
#[[Canon PIXMA MP280]]<br />
# [[Dell Latitude E6400]]<br />
# [[Dell Latitude D630]]<br />
# [[Dell Optiplex 3060]]<br />
# [[Debian minimal]]<br />
# [[Nvidia GT1070]]<br />
<br />
= Raspberry Pi section =<br />
# [[network]]<br />
## [[oled]]<br />
<br />
== other ==<br />
# [[AliExpress]]<br />
# [[E.T systems DC blue digital]]<br />
<br />
== [[My keyboard shortcuts]] ==<br />
<br />
== [[Some Hardware notes]] ==<br />
<br />
= Android apps =<br />
# [[tasker]]<br />
# [[vissie phone setup]]<br />
# [[python and termux]]<br />
<br />
= ESXi =<br />
== VMware Tools ==<br />
apt-get install open-vm-tools open-vm-tools-desktop<br />
<br />
== Oracle VirtualBox ==<br />
sudo apt install build-essential dkms linux-headers-$(uname -r)<br />
<br />
Mount the CD, cd to it. run:<br />
sudo sh ./VBoxLinuxAdditions.run<br />
<br />
== Resizing discs ==<br />
If you get boot delays with a message:<br />
'Gave up waiting for suspend/resume device'<br />
<br />
sudo update-initramfs -u<br />
<br />
== Add a shared HDD==<br />
https://theitbros.com/share-disk-between-vms-on-vmware-esxi/</div>Vissiehttps://vissie.com/wiki_new/index.php?title=OpenBox&diff=26599OpenBox2021-03-03T07:14:50Z<p>Vissie: /* Keyboard shortcuts */</p>
<hr />
<div>= My OpenBox notes =<br />
apt-get install xorg openbox dbus-x11 terminator feh imagemagick<br />
apt-get install ranger atool<br />
visudo<br />
Four key files form the basis of the openbox configuration, each serving a unique role. They are: rc.xml, menu.xml, autostart, and environment. To start configuring Openbox, it will first be necessary to create a local Openbox profile (i.e for your specific user account) based on them. This can be done by copying them from the global /etc/xdg/openbox profile (applicable to any and all users) as a template:<br />
cp -R /etc/xdg/openbox ~/.config<br />
<br />
= Display Manager / locker =<br />
apt-get install lightdm light-locker<br />
{{Source|/etc/lightdm/lightdm-gtk-greeter.config|<source lang=bash><br />
...<br />
[greeter]<br />
background=/usr/share/backgrounds/someime.svg<br />
theme-name=DeLorean-Dark-3.16-Alt<br />
...<br />
</source> }}<br />
I had to imagemagick convert my background image from jpg to svg<br />
<br />
If you have a dual screen and your greeter did not pick that up, you can force it with a script. Here is my script:<br />
{{Source|/usr/bin/dualmon.sh|<source lang=bash><br />
#!/bin/bash<br />
xrandr --addmode DVI-1 1440x900<br />
xrandr --auto --output DVI-1 --mode 1440x900 --left-of DVI-0 --primary<br />
xrandr --auto --output DVI-0 --mode 1680x1050 --right-of DVI-1<br />
</source> }}<br />
And then you call that from your greeter config file. In Debian the section is missing.<br />
{{Source|/etc/lightdm/lightdm.conf|<source lang=bash><br />
...<br />
[Seat:*]<br />
display-setup-script = /usr/bin/dualmon.sh<br />
session-setup-script = /usr/bin/dualmon.sh<br />
...<br />
</source> }}<br />
<br />
In old Debian it used to be in: {{file|/etc/lightdm/lightdm-gtk-greeter.conf}}<br />
and under [SeatDefaults]<br />
<br />
== Changing your avatar ==<br />
<br />
If you want to change your avatar, do the following.<br />
sudo apt-get install accountsservice<br />
My<br />
{{Source|/etc/lightdm/lightdm.conf|<source lang=bash><br />
...<br />
greeter-hide-users=false<br />
...<br />
</source> }}<br />
<br />
{{Source|/usr/share/lightdm/lightdm.conf.d/01_debian.conf|<source lang=bash><br />
...<br />
greeter-hide-users=false<br />
...<br />
</source> }}<br />
Then run mugshot for the rest! :-) <br />
<br />
If you wanted light-locker to wait a minute before locking the screen after it has blanked out, your configuration would have to look like this:<br />
{{Source|/etc/xdg/autostart/light-locker.desktop|<source lang=bash><br />
...<br />
Exec=light-locker --lock-after-screensaver 60<br />
...<br />
</source> }}<br />
<br />
Are you sure light-locker is running? Is it enabled? Test with:<br />
light-locker-command &<br />
<br />
light-locker-command --lock<br />
light-locker-command -l<br />
<br />
Have you already checked the output of "strace light-locker-command --lock"?<br />
<br />
== For a nice background ==<br />
apt-get install feh<br />
feh --bg-fill /my/file.jpg<br />
Then add one of these lines to your autorun config file<br />
# restore last image<br />
sh ~/.fehbg &<br />
# cycle through a directory of images<br />
feh --bg-scale "$(find ~/Images/Backgrounds -type f |sort -R |tail -1)" "$(find ~/Images/Backgrounds/ -type f |sort -R |tail -1)"<br />
<br />
{{Source|~.config/openbox/autostart|<source lang=bash><br />
...<br />
sh ~/.fehbg &<br />
...<br />
</source> }}<br />
<br />
== File run command ==<br />
apt-get install gmrun <br />
<br />
{{Source|/etc/gmrunrc|<source lang=bash><br />
...<br />
TabTimeout = 900<br />
...<br />
</source> }}<br />
<br />
on Arch Linux:<br />
{{Source|/usr/share/gmrun/gmrunrc|<source lang=bash><br />
...<br />
# Set window geometry (except height)<br />
Width = 400<br />
Top = 400<br />
Left = 60<br />
...<br />
</source> }}<br />
<br />
<br />
== Screen capture ==<br />
sudo apt-get install xfce4-screenshooter xfce4-clipman<br />
<br />
Not sure if I should add this to my auto start file?<br />
xfce4-screenshooter --fullscreen --clipboard<br />
xfce4-screenshooter --region --clipboard<br />
<br />
== Image Viewer ==<br />
GPicView<br />
Geeqie<br />
<br />
== Keyboard shortcuts ==<br />
{{Source|~/.config/openbox/rc.xml|<source lang=bash><br />
<keybind key="W-c"> <action name="Execute"><command>terminator</command></action></keybind><br />
<keybind key="W-r"> <action name="Execute"><command>gmrun</command></action></keybind><br />
<br />
<br />
<keybind key="C-S-z"><action name="Execute"><command>xfce4-screenshooter</command></action></keybind> <br />
<br />
<keybind key="C-A-l"> <action name="Execute"><command>xscreensaver-command -lock</command></action></keybind><br />
<keybind key="W-l"> <action name="Execute"><command>sh -c "sleep 0.25; xset dpms force off"</command></action></keybind><br />
<br />
### This worked for me in Arch ###<br />
<keybind key="W-l"> <action name="Execute"><command>dm-tool lock</command></action></keybind><br />
<br />
<keybind key="W-Prior"> <action name="Execute"><execute>amixer sset Master 1000+</execute></action></keybind><br />
<keybind key="W-Next"> <action name="Execute"><execute>amixer sset Master 1000-</execute></action></keybind><br />
<keybind key="W-Delete"> <action name="Execute"><execute>amixer sset Master toggle</execute></action></keybind><br />
<br />
<keybind key="W-Prior"> <action name="Execute"><execute>pactl set-sink-volume 0 -- +1%</execute></action></keybind><br />
<keybind key="W-Next"> <action name="Execute"><execute>pactl set-sink-volume 0 -- -1%</execute></action></keybind><br />
<br />
<placement><br />
<policy>Smart</policy><br />
<!-- 'Smart' or 'UnderMouse' --><br />
<center>yes</center><br />
<!-- whether to place windows in the center of the free area found or<br />
the top left corner --><br />
<monitor>Primary</monitor><br />
<!-- with Smart placement on a multi-monitor system, try to place new windows<br />
on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where<br />
the active window is, 'Primary' - only on the primary monitor --><br />
<primaryMonitor>1</primaryMonitor><br />
<!-- The monitor where Openbox should place popup dialogs such as the<br />
focus cycling popup, or the desktop switch popup. It can be an index<br />
from 1, specifying a particular monitor. Or it can be one of the<br />
following: 'Mouse' - where the mouse is, or<br />
'Active' - where the active window is --><br />
</placement><br />
<br />
<margins><br />
<top>0</top><br />
<bottom>30</bottom> <br />
<left>0</left><br />
<right>0</right><br />
</margins><br />
<br />
</source> }}<br />
openbox --reconfigure<br />
Intuitively, to have dialogs showed on the monitor on the right you have to replace 1 with 2 in the <primaryMonitor> tag. Choose Mouse if you want dialogs following your mouse or (my ultimate choice) Active, that shows dialogs on the monitor where the active window is.<br />
Brilliant<br />
<br />
To see what a key is called, ru<br />
xev<br />
<br />
KeyRelease event, serial 48, synthetic NO, window 0x5400001,<br />
root 0x2c5, subw 0x0, time 1748286402, (-645,70), root:(2061,911),<br />
state 0x10, keycode 117 (keysym 0xff56, Next), same_screen YES,<br />
XLookupString gives 0 bytes: <br />
XFilterEvent returns: False<br />
Here I hit the Page-Down key, see the word "Next"?<br />
<br />
== Dual screen ==<br />
First, type xrandr in a terminal. This will display the detected monitors and their resolution.<br />
<br />
Now, you can enter a command to adjust the resolution and layout of your displays: <br />
xrandr --auto --output VGA-1 --mode 1440x900 --right-of LVDS-1<br />
<br />
That command is for the external monitor I usually have to the right of my laptop. VGA-1 is the external monitor and LVDS-1 is my laptop's built in monitor. This command tells xrandr to arrange the external monitor to the right and set the resolution to 1440x900.<br />
<br />
I then use this command: <br />
xrandr --auto --output LVDS-1 --mode 1280x800 --left-of VGA-1 <br />
to set the resolution of my internal display. I usually add these two commands to openbox's autostart script (/etc/xdg/openbox/autostart) so that Xrandr sets my displays properly when openbox starts up.<br />
<br />
== Screen brightness ==<br />
sudo su -c 'echo 10 > /sys/class/backlight/acpi_video0/brightness'<br />
xrandr --output LVDS-1 --brightness 0.9<br />
<br />
== Look at his apps: ==<br />
http://yuri-rage.github.io/geekery/2014/06/05/rolling-with-arch/<br />
http://melp.nl/2011/01/10-must-have-key-and-mouse-binding-configs-in-openbox/<br />
<br />
When you start Openbox, you will notice that your Gtk applications use the default (‘ugly’) grey theme and icons and the default font. There are several ways in which you can change the Gtk themes in Openbox:<br />
<br />
== gtk2 Theme change == <br />
LXappearance, Gtk-theme-switch and Gtk-chtheme are three small applications that enable you to change the Gtk themes and fonts. Of these three, LXappearance has the most options<br />
apt-get install lxappearance<br />
<br />
== panel ==<br />
Look at tint2<br />
apt-get install tint2<br />
<br />
Network Manager applet. A must<br />
sudo apt-get install network-manager<br />
sudo apt-get install network-manager-gnome<br />
Enabling Interface Management<br />
<br />
<br />
http://www.intellamech.com/RaspberryPi-projects/rpi_nmcli.html<br />
If you want NetworkManager to handle interfaces that are enabled in /etc/network/interfaces:<br />
<br />
Set managed=true in /etc/NetworkManager/NetworkManager.conf.<br />
/etc/init.d/network-manager restart<br />
<br />
Normally, a right-click desktop menu will automatically be generated for you on installation.<br />
If, however, your desktop menu is not being auto-generated with DebianMenu, you will have to install the menu package:<br />
apt-get install menu<br />
<br />
== auto login ==<br />
<br />
{{Source|/etc/lightdm/lightdm.conf|<source lang=bash><br />
...<br />
[Seat:*]<br />
...<br />
autologin-user=username<br />
autologin-user-timeout=0<br />
pam-service=lightdm-autologin<br />
...<br />
</source> }}<br />
<br />
= Autorun =<br />
My autorun has grown. Lets keep tack of it<br />
{{Source|~/.config/openbox/autorun<br />
|<source lang=bash><br />
xrandr --addmode DVI-1 1440x900<br />
xrandr --auto --output DVI-1 --mode 1440x900 --left-of DVI-0 --primary<br />
xrandr --auto --output DVI-0 --mode 1680x1050 --right-of DVI-1<br />
# sh ~/.fehbg &<br />
feh --bg-scale "$(find ~/Pictures/background/ -type f |sort -R |tail -1)" "$(find ~/Pictures/background/ -type f |sort -R |tail -1)" &<br />
tint2 &<br />
xscreensaver-command -exit &<br />
xscreensaver -no-splash &<br />
xset +dpms &<br />
xset dpms 600 1200 1800 &<br />
conky & <br />
</source> }}<br />
<br />
= obmenu-generator =<br />
Install dependencies:<br />
sudo apt-get install build-essential cpanminus git<br />
Install the generator:<br />
git clone git://github.com/trizen/obmenu-generator<br />
sudo cp obmenu-generator/obmenu-generator /usr/bin<br />
mkdir ~/.config/obmenu-generator/<br />
sudo cp -r obmenu-generator/schema.pl ~/.config/obmenu-generator/<br />
sudo cpanm Linux::DesktopFiles<br />
sudo cpanm Data::Dump<br />
sudo chmod +x /usr/bin/obmenu-generator<br />
Run the generator.<br />
obmenu-generator -p -i<br />
<br />
= Sound mixer =<br />
sudo apt-get install pnmixer<br />
<br />
= Power management =<br />
sudo apt-get install xfce4-power-manager<br />
If you having issues, maybe try xautolock:<br />
xautolock -time 10 -locker fuzzy_lock -notify 20 -notifier 'xset dpms force off' &<br />
xautolock -time 15 -locker "systemctl suspend" &<br />
<br />
= File Managers =<br />
If you have to do a file manager, look at<br />
<br />
pcmanfm is a fast and lightweight file manager with network and trash support, it also ends up having some bonus functionality that will be very useful. <br />
In order to have pcmanfm manage the desktop, it should be started in desktop mode in the “autostart” file.<br />
pcmanfm --desktop &<br />
<br />
thunar<br />
<br />
= Trash and Drive Management =<br />
<br />
In order to use many of the functions that are in file managers it is necessary to have a a few additional programs. gvfs gives you the ability to mount volumes and have trash control. It is not mandatory to have, but it allows on demand mounting to be done completely within the file manager, as opposed to having to drop down to the command line.<br />
<br />
udevil for USB drive management.<br />
<br />
= Compositor =<br />
A compositor is an optional component of an open box setup, it can give a few niceties that such as transparency, and fading by buffering the input off screen before displaying it. Openbox does not have a built-in compositor but there are a few good options that work nicely with it. The one I’ve been using, and have been quite happy with is Compton.<br />
<br />
Run Compton in the background with shadows.<br />
<br />
compton -b -c &<br />
<br />
compton --config "~/.config/compton.conf"<br />
<br />
= xfdeskop =<br />
Sometimes I have issues that my right click menu does not have icons. Try this:<br />
pacaur -S xfce4-settings<br />
<br />
= volume =<br />
pacaur -S volumeicon<br />
volumeicon & (set left click actions)<br />
<br />
= Date time =<br />
<syntaxhighlight lang="html"><br />
%a %d %b <b>%R</b><br />
</syntaxhighlight><br />
<br />
<syntaxhighlight lang="html"><br />
<span color="#33FF33">%a %m-%B %d%n%I:%M %p</span><br />
</syntaxhighlight><br />
<br />
<syntaxhighlight lang="html"><br />
%a %d %b <span color="#00FF00"><b>%R</b></span><br />
</syntaxhighlight><br />
<br />
=Monitoring=<br />
==bpytop==<br />
http://packages.azlux.fr/<br />
<br />
=Network=<br />
==VPN==<br />
Work VPN with Meraki.<br />
https://community.meraki.com/t5/Security-SD-WAN/Guide-Client-VPN-on-Linux-Debian/td-p/72315#<br />
<br />
network-manager-l2tp network-manager-l2tp-gnome<br />
<br />
Enable IP forwarding. Edit /etc/sysctl.conf and set:<br />
net.ipv4.ip_forward = 1<br />
<br />
=Workspaces= <br />
Is there a way to set the number of rows for desktop workspaces without using the xfce-panel applet "Workspace Switcher"?<br />
xprop -root -f _NET_NUMBER_OF_DESKTOPS 32c -set _NET_NUMBER_OF_DESKTOPS 6</div>Vissiehttps://vissie.com/wiki_new/index.php?title=E.T_systems_DC_blue_digital&diff=26598E.T systems DC blue digital2021-02-15T05:25:25Z<p>Vissie: </p>
<hr />
<div>My garage door motor<br />
https://www.niceforyou.com/sites/default/files/upload/manuals/dc_blue_digital_installer_feb_15_002.pdf<br />
<br />
=Programming a remote=<br />
(Hold the remote transmitters +/-500mm away from the receiver antenna when programming).<br />
# Begin by selecting a button on the remote transmitter,<br />
# Start transmitting (FIRST) by pressing and holding the remote transmitter button required,<br />
# Short the middle receiver pin to the BT receiver pin,<br />
# LEARN LED will flash confirmation.<br />
# LED Flashes Meaning:<br />
## x 1 Successful – The first remote code programmed into the receiver memory. Master remote control<br />
## x 2 Successful – There is still memory available.<br />
## Multiple rapid flashes Unsuccessful – The receiver memory is full<br />
## No flashes - Unsuccessful. Either a non ETBLUE remote transmitter is being used or there is another remote transmitter active on 433.92MHz and it is blocking the signal.<br />
<br />
[[Image:https://vissie.com/data/Remote_Program_1.png|Board]]</div>Vissiehttps://vissie.com/wiki_new/index.php?title=E.T_systems_DC_blue_digital&diff=26597E.T systems DC blue digital2021-02-15T05:21:04Z<p>Vissie: </p>
<hr />
<div>My garage door motor<br />
https://www.niceforyou.com/sites/default/files/upload/manuals/dc_blue_digital_installer_feb_15_002.pdf<br />
<br />
=Programming a remote=<br />
(Hold the remote transmitters +/-500mm away from the receiver antenna when programming).<br />
# Begin by selecting a button on the remote transmitter,<br />
# Start transmitting (FIRST) by pressing and holding the remote transmitter button required,<br />
# Short the middle receiver pin to the BT receiver pin,<br />
# LEARN LED will flash confirmation.<br />
# LED Flashes Meaning:<br />
## x 1 Successful – The first remote code programmed into the receiver memory. Master remote control<br />
## x 2 Successful – There is still memory available.<br />
## Multiple rapid flashes Unsuccessful – The receiver memory is full<br />
## No flashes - Unsuccessful. Either a non ETBLUE remote transmitter is being used or there is another remote transmitter active on 433.92MHz and it is blocking the signal.<br />
[[File:Http://vissie.com/data/Remote Program 1.png|frame|Board]]</div>Vissiehttps://vissie.com/wiki_new/index.php?title=E.T_systems_DC_blue_digital&diff=26596E.T systems DC blue digital2021-02-15T04:52:08Z<p>Vissie: Created page with "My garage door motor https://www.niceforyou.com/sites/default/files/upload/manuals/dc_blue_digital_installer_feb_15_002.pdf =Programming a remote= (Hold the remote transmitt..."</p>
<hr />
<div>My garage door motor<br />
https://www.niceforyou.com/sites/default/files/upload/manuals/dc_blue_digital_installer_feb_15_002.pdf<br />
<br />
=Programming a remote=<br />
(Hold the remote transmitters +/-500mm away from the receiver antenna when programming).<br />
# Begin by selecting a button on the remote transmitter,<br />
# Start transmitting (FIRST) by pressing and holding the remote transmitter button required,<br />
# Short the middle receiver pin to the BT receiver pin,<br />
# LEARN LED will flash confirmation.<br />
# LED Flashes Meaning:<br />
## x 1 Successful – The first remote code programmed into the receiver memory. Master remote control<br />
## x 2 Successful – There is still memory available.<br />
## Multiple rapid flashes Unsuccessful – The receiver memory is full<br />
## No flashes - Unsuccessful. Either a non ETBLUE remote transmitter is being used or there is another remote transmitter active on 433.92MHz and it is blocking the signal.</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Enter_into_my_wiki&diff=26595Enter into my wiki2021-02-15T04:44:46Z<p>Vissie: /* other */</p>
<hr />
<div>Consult the [http://meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.<br />
<br />
= Linux Tips and Shortcuts =<br />
== Installing Gentoo ==<br />
# [[Vissie's Gentoo Setup]]<br />
# [[Cron]]<br />
# [[Complete log setup]]<br />
== Boot ==<br />
# [[Boot up/start options]]<br />
# [[Color Boot]] <br />
# [[Speedup boot times]] <br />
# Boot from USB with ISO<br />
## [http://help.ubuntu.com/7.04/installation-guide/i386/boot-usb-files.html Boot from USB using ISO file]<br />
## [http://www.pendrivelinux.com/2007/09/28/usb-ubuntu-710-gutsy-gibbon-install/ USB Ubuntu 7.10 Gutsy Gibbon install]<br />
== Kernel ==<br />
# [[Kernel Config]]<br />
== Hardware ==<br />
# [[USE flags on Gentoo]]<br />
# [[CCACHE]]<br />
# [[DISTCC]]<br />
# [[Fdisk and HDDs]] <br />
# [[Sound]]<br />
# [[SD card]]<br />
# [[CD/CD writer/DVD]]<br />
# [[Power management]]<br />
# [[Bluetooth]]<br />
# [[Webcam]]<br />
# [[Mouse]]<br />
# Network<br />
## [[Network setup (incl. wireless)]]<br />
## [[Simple Network Troubleshooting]]<br />
## [[Configure A Fully Qualified Domain Name (DNS)]]<br />
## [[OpenLDAP Installation On Ubuntu]]<br />
# [[System Monitoring]]<br />
# [[Printing and printers]]<br />
== Xorg ==<br />
# [[HAL]]<br />
# [[xorg-x11]]<br />
# [[Some xorg.conf tips]]<br />
# [[Compiz Fusion]]<br />
# [[ATI Setup in Linux]]<br />
# [[X Defaults]]<br />
== Desktops ==<br />
# [[Fluxbox]]<br />
# [[LXDE]]<br />
# [[xfce4]]<br />
== Graphical Login Manager ==<br />
# [[Entrance]]<br />
# fast<br />
# [[gdm]]<br />
== Server/Router config ==<br />
# [[Debian router config]]<br />
# [[Proxy/Replicator]]<br />
# [[Firewall]]<br />
# [http://www.gentoo-wiki.info/HOWTO_Create_a_Gentoo_Client_Infrastructure Create a Gentoo setup boot cd]<br />
# [[Automated script for Gentoo instalation]]<br />
# [[Apache2]]<br />
# [[Keep a daily log of ADSL traffic]]<br />
# [[hostapd]]<br />
## [[lvm]]<br />
# [[nfs]]<br />
## [[svn]]<br />
<br />
== Internet ==<br />
# [[Vodafone 3G setup]]<br />
# [[iBurst]]<br />
[[Live CD creation]]<br />
[[Maintenance]] <br />
== Applications ==<br />
# [[2D/3D]]<br />
# [[aMule]]<br />
# [[Arduino Notes]]<br />
# [[apt]]<br />
# [[Android Studio]]<br />
# [[Archives]]<br />
# [[Auto Mount]]<br />
# [[Auto start at boot]]<br />
# [[autofs]]<br />
# [[awk]]<br />
# [[QR bar Code]]<br />
# [[beets]]<br />
# [[berryboot]]<br />
# [[Blender]]<br />
# [[BlissOS]]<br />
# [[brave browser]]<br />
# [[cd/cdr/cdrw]]<br />
# [[cdu]]<br />
# [[certbot]]<br />
# [[chown]]<br />
# [[chrome]]<br />
# [[chromium]]<br />
# [[codec]]<br />
# [[conky]]<br />
# [[cron]]<br />
# [[Date]]<br />
# [[dd]]<br />
# [[deepspeech]]<br />
# [[Deluge]]<br />
# [[dns]]<br />
# [[Docker]]<br />
# [[Drive security]]<br />
# [[DropBox]]<br />
# [[DVD creation]]<br />
# [[DVD rip]]<br />
# [[EMail clients]]<br />
# [[emerge]]<br />
# [[evolution]]<br />
# [[feh]]<br />
# [[ffmpeg]]<br />
# [[FileBot]]<br />
# File Mangers<br />
## [[Ranger]]<br />
## [[Thunar]]<br />
# [[FireFox]]<br />
# [[Gaining better performance via swappiness]]<br />
# [[grc]]<br />
# [[gimp]]<br />
# [[Git]]<br />
# [[Grep]]<br />
# [[Grub2]]video surveillance<br />
# [[GNUmp3D]]<br />
# [[goLang]]<br />
# [[GPS]]<br />
# [[Guacamole]]<br />
# Home automation<br />
## [[Mister House]]<br />
## [[Text to speech]]<br />
# [[hostname]]<br />
# [[iperf]]<br />
# [[Imagemagick]]<br />
# [[Insight3D]]<br />
# [[Install MythTV]]<br />
# [[Introduction Detection]]<br />
# [[IPV6]]<br />
# [[Java]]<br />
# [[kenel]]<br />
# [[Keyboard]]<br />
# [[Kodi]]<br />
# [[KVM]]<br />
# [[LibreCAD]]<br />
# [[lightdm]]<br />
# [[lizardfs]]<br />
# [[Logitech Media Server]]<br />
# [[mail]]<br />
# [[MagicLantern]]<br />
# [[MagicMirror]]<br />
# [[MakeMKV]]<br />
# [[Man pages]]<br />
# [[MediaWiki]]<br />
# [[Midnight Commander]]<br />
# [[mkvtoolnix]]<br />
# [[MPD]]<br />
# [[Mobile phones]]<br />
# [[Mopidy]]<br />
# [[Mount (ISO, NTFS and cifs)]]<br />
# [[Music Players]]<br />
# [[MySQL]]<br />
# [[ncdu]]<br />
# [[Netdata]]<br />
# [[netstat]]<br />
# [[NextCloud]]<br />
# [[nodeJS]]<br />
# [[Nginx]]<br />
# [[Ngrok]]<br />
# [[nvidia]]<br />
# [[Office]]<br />
# [[OpenBox]]<br />
# [[OpenVPN]]<br />
# [[pentaho]]<br />
# [[PDF(view and edit)]]<br />
# [[Plex]]<br />
# [[Power management Generic]]<br />
# Printers<br />
## [[Cannon Pixma MP280]] <br />
# [[Proxmox]]<br />
# [[ppa on Debian]]<br />
# [[Pushover]]<br />
# [[PyCharm]]<br />
# [[Python]]<br />
# [[rainloop]]<br />
# [[Rar/unRar]]<br />
# [[rclone]]<br />
# Remote Access<br />
## [[Remote Access Ubuntu using Firefox with TightVNC]]<br />
## [[Web file sharing using python]]<br />
## [[Files sharing with ssh]]<br />
## [[xrandr (re-size windows) ]]<br />
# [[Remotes controls and multimedia (IVTV)]]<br />
# [[rhasspy]]<br />
# [[rSync]]<br />
# [[samba]]<br />
# [[screen]]<br />
# [[sed, Linux text editor]]<br />
# [[Setting the time]]<br />
# [[Shell in a Box]]<br />
# [[shinobi]]<br />
# [[smartmontools]]<br />
# [[sources.list]]<br />
# [[ssh]]<br />
# [[SyncE with Windows CE 5]]<br />
# [[Syncthing]]<br />
# [[systemctl]]<br />
# [[SuncThing]]<br />
# [[sudo]]<br />
# [[tahoe-lafs]]<br />
# [[TeamViewer]]<br />
# [[Telegram]]<br />
# [[TensorFlow]]<br />
# [[Terminal]]<br />
# [[Themes]]<br />
# [[tmux]]<br />
# [http://www.comptechdoc.org/os/linux/usersguide/linux_ugsamba.html Samba guide]<br />
# [[Vim]]<br />
# [[Visual SFM]]<br />
# [[VoIP]]<br />
# [[Volume label]]<br />
# [[IM]]<br />
# [[Images]]<br />
# Video Surveillance<br />
## [[zoneminder]]<br />
# [[Virtual Box]]<br />
# [[vnc]]<br />
## [[USB]]<br />
## [[Seamless MS Windows in Linux]]<br />
# [[FTP]]<br />
# [[Bash scripting]]<br />
# Music<br />
## [[iPod]]<br />
## [[Nice MP3 Organizers]]<br />
# Downloading<br />
## [[rtorrent]]<br />
## [[mldonkey]]<br />
# [[Terminal Server / Remote Desktop Client Shortcut Keys]]<br />
# [http://www.unixica.com/unixica/2007/11/how_to_update_navigation_links.html How to update navigation links in MediaWiki]<br />
# [[http://www.cgsecurity.org/wiki/Damaged_Hard_Disk Damaged Hard Disk - ddrescue]]<br />
# [http://www.killersites.com/webDesignersHandbook/ascii_page2.htm ASCII tables ]<br />
# [http://ubuntuforums.org/showthread.php?t=171203 Minimum Linux install]<br />
# [http://www.certforums.co.uk/forums/archive/index.php?t-20798.html Minimum install with VM]<br />
# [http://www.softerblue.com/?p=15 Gentoo install inside VirtualBox]<br />
# [[Linux and Education]]<br />
# [[udev]]<br />
# [[Upgrade]]<br />
# [[UPS]]<br />
# [[Wine]]<br />
# [[WhatsApp]]<br />
# [[X2Go]]<br />
# [[xpra]]<br />
# [[zabbix]]<br />
# [[zfs]]<br />
<br />
== Other Stuff ==<br />
# [[Acer Aspire one A110]]<br />
# [[Arch Linux]]<br />
# [[Android]]<br />
# [[CentOS]]<br />
# [[Google Play Music]]<br />
# [[Installing IBM T21]]<br />
# [[Linux on HTC-Hermes]]<br />
# [[Live Kiosk stuff]]<br />
# [[Mobile Wiki]]<br />
# [[Nokia N95 8GB]]<br />
# [[Nokia N95 8G]]<br />
# [http://www.techthrob.com/tech/linux_virtualization.php fun stuff]<br />
# [http://www.pramnos.com/story69-2390.html wow]<br />
<br />
== Apple Mac stuff ==<br />
# [[Printing]]<br />
== Windows stuff (sorry, but I have too..) ==<br />
# [[Windows Genuine Advantage (WGA)]]<br />
<br />
== Some Raspberry Pi Notes ==<br />
# Some nice weekend tasks<br />
## [[Build a digital clock]]<br />
## [[Generic i2c screen]]<br />
## [[GPIO]]<br />
## [[OSMC]]<br />
## [[camera]]<br />
<br />
== Some CubieTruck Pi Notes ==<br />
# [[Compile Android]]<br />
# [[CubieTruck, AKA Cubie 3]]<br />
# [[CubieTruck Plus, AKA Cubie 5]]<br />
<br />
== Some oDroid Pi Notes ==<br />
# Android<br />
## [[Boot logo's and animations]]<br />
## [[Fastboot]]<br />
## [[gapps]]<br />
# [[Shopping list]]<br />
# [[Volumio]]<br />
<br />
== Code snippits ==<br />
# [[regex]]<br />
# [[VBScript]]<br />
# [[Microsoft PowerShell]]<br />
# [[Web Development]]<br />
# Debian<br />
## [[runBootup.sh]]<br />
== Special hardware debian setups ==<br />
#[[Canon PIXMA MP280]]<br />
# [[Dell Latitude E6400]]<br />
# [[Dell Latitude D630]]<br />
# [[Dell Optiplex 3060]]<br />
# [[Debian minimal]]<br />
# [[Nvidia GT1070]]<br />
<br />
= Raspberry Pi section =<br />
# [[network]]<br />
<br />
== other ==<br />
# [[AliExpress]]<br />
# [[E.T systems DC blue digital]]<br />
<br />
== [[My keyboard shortcuts]] ==<br />
<br />
== [[Some Hardware notes]] ==<br />
<br />
= Android apps =<br />
# [[tasker]]<br />
# [[vissie phone setup]]<br />
# [[python and termux]]<br />
<br />
= ESXi =<br />
== VMware Tools ==<br />
apt-get install open-vm-tools open-vm-tools-desktop<br />
<br />
== Oracle VirtualBox ==<br />
sudo apt install build-essential dkms linux-headers-$(uname -r)<br />
<br />
Mount the CD, cd to it. run:<br />
sudo sh ./VBoxLinuxAdditions.run<br />
<br />
== Resizing discs ==<br />
If you get boot delays with a message:<br />
'Gave up waiting for suspend/resume device'<br />
<br />
sudo update-initramfs -u<br />
<br />
== Add a shared HDD==<br />
https://theitbros.com/share-disk-between-vms-on-vmware-esxi/</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Evolution&diff=26594Evolution2021-02-03T05:50:43Z<p>Vissie: /* Setup */</p>
<hr />
<div>=Install=<br />
sudo apt-get update<br />
sudo apt-get install evolution<br />
<br />
On debian Buster the evolution-ews package is only available on buster-backports.<br />
<br />
Add buster-backports to your /etc/apt/sources.list<br />
deb http://ftp.de.debian.org/debian buster-backports main <br />
<br />
sudo apt update<br />
sudo apt install -t buster-backports evolution-ews<br />
<br />
=Setup=<br />
==Custome colors==<br />
https://stackoverflow.com/questions/44171006/gtk-3-0-evolution-css-theme-gtk-css<br />
<br />
Create file in directory {{File|~/.config/gtk-3.0/gtk.css}}<br />
<br />
<syntaxhighlight lang="css"><br />
MessageList,* {<br />
-MessageList-new-mail-bg-color: SteelBlue; #2c5900<br />
}<br />
</syntaxhighlight><br />
save changes made to gtk.css file and restart evolution mail client<br />
<br />
==signature dashes==<br />
You can disable the signature dashes altogether and, if you want:<br />
sudo apt install dconf-cli<br />
dconf write /org/gnome/evolution/mail/composer-no-signature-delim true<br />
<br />
==Start of week==<br />
Edit > Preferences > Calendar and Tasks > week starts on "Sunday"<br />
<br />
=Work around=<br />
I sometimes get no data that flows. I get a message that Evolution is offline. This helps/works for me:<br />
evolution --force-online</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Arduino_Notes&diff=26593Arduino Notes2021-01-22T04:52:17Z<p>Vissie: /* INSTALL THIRD-PARTY BOARD SUPPORT */</p>
<hr />
<div>=Install=<br />
==Arduino-Cli==<br />
https://peppe8o.com/connecting-raspberry-pi-zero-w-to-arduino-only-via-terminal/<br />
<br />
Create a directory where user executables will be stored:<br />
sudo mkdir -p /local/bin<br />
<br />
add this directory to user $PATH variables (so that you can execute arduino-cli without typing full path):<br />
sudo vim /etc/bash.bashrc<br />
add the following line to the end of file:<br />
export PATH="/local/bin:$PATH"<br />
logout/login to make it running. Now install arduino-cli with default script. Note the BINDIR variable telling the script to use our <br />
sudo su<br />
cd /local/bin/<br />
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/local/bin sh<br />
exit<br />
<br />
Now create the default configuration file (suggested from arduino-cli man page to avoid a lot of typing when issuing each command):<br />
arduino-cli config init<br />
Before installing our board, we need to update the local cache of available platforms and libraries:<br />
arduino-cli core update-index<br />
Connect Elegoo Uno/Arduino board to your Raspberry PI using the miniUSB-to-USB cable. You should be able now to list your board:<br />
arduino-cli board list<br />
Port Type Board Name FQBN Core<br />
/dev/ttyACM0 Serial Port (USB) Arduino Uno arduino:avr:uno arduino:avr<br />
/dev/ttyAMA0 Serial Port Unknown<br />
If you can see only Unknown port, a Raspberry PI reboot could help in refreshing hardware recognition. <br />
<br />
In not, search to find the source for your bloard:<br />
arduino-cli core search nano<br />
<br />
ID Version Name <br />
arduino:avr 1.8.3 Arduino AVR Boards <br />
arduino:mbed 1.1.6 Arduino nRF528x Boards (Mbed OS) <br />
arduino:megaavr 1.8.6 Arduino megaAVR Boards <br />
arduino:samd 1.8.8 Arduino SAMD Boards (32-bits ARM Cortex-M0+)<br />
<br />
I installed the following too:<br />
arduino-cli core install arduino:megaavr<br />
arduino-cli core install arduino:samd<br />
<br />
In the end, that did not help at all!<br />
<br />
List all installed boards:<br />
arduino-cli board listall<br />
<br />
My output shows that I have an Arduino Uno based board, with FQBN (fully qualified board names) set to “arduino:avr:uno”.<br />
<br />
Install your board:<br />
arduino-cli core install arduino:avr<br />
Verify that installed board is properly running:<br />
<br />
arduino-cli core list<br />
<br />
ID Installed Latest Name<br />
arduino:avr 1.8.2 1.8.2 Arduino AVR Boards<br />
<br />
==INSTALL THIRD-PARTY BOARD SUPPORT==<br />
To add third-party boards like the ESP8266, Seeed Studio, or Adafruit boards you need to add additional board manager URLs. To do this, you need to create a YAML file named arduino-cli.yaml. This file should go in your current working directory.<br />
<br />
Here is an example arduino-cli.yaml that includes additional board URLs for:<br />
<br />
ESP8266 boards<br />
Adafruit boards<br />
Seeed Studio boards<br />
NOTE: Make sure it is .yaml and not .yml!!!<br />
<br />
cd /local/bin/<br />
<br />
# arduino-cli.yaml<br />
board_manager:<br />
additional_urls:<br />
- http://arduino.esp8266.com/stable/package_esp8266com_index.json<br />
- https://adafruit.github.io/arduino-board-index/package_adafruit_index.json<br />
- https://raw.githubusercontent.com/Seeed-Studio/Seeed_Platform/master/package_seeeduino_boards_index.json<br />
After creating the YAML file, you will need to update the index again:<br />
<br />
arduino-cli core update-index<br />
You should see output like this:<br />
<br />
Updating index: package_index.json downloaded<br />
Updating index: package_index.json downloaded<br />
Updating index: package_esp8266com_index.json downloaded<br />
Updating index: package_adafruit_index.json downloaded<br />
Updating index: package_seeeduino_boards_index.json downloaded<br />
After you update the index,<br />
<br />
Then you can search for boards like the ESP8266 or Adafruit boards:<br />
<br />
arduino-cli core search esp8266<br />
arduino-cli core search adafruit<br />
arduino-cli core search seeed<br />
Let's say you want to install support for ESP8266 boards, Adafruit AVR boards, and Adafruit SAMD boards. You can install those with:<br />
<br />
arduino-cli core install adafruit:avr adafruit:samd<br />
arduino-cli core install esp8266:esp8266<br />
arduino-cli core install Seeeduino:avr Seeeduino:samd<br />
After installing the support, you can view the list of boards that you have support installed for with:<br />
<br />
arduino-cli board listall<br />
<br />
==Test Your Installation==<br />
Create Your First Sketch<br />
To create a new sketch, simply type:<br />
arduino-cli sketch new MyFirstSketch <br />
<br />
This will create a “MyFirstSketch” directory inside pi user home folder, containing “MyFirstSketch.ino” file inside. <br />
<br />
Edit sketch content with common board LED control sketch (same as BLINK example):<br />
<br />
vim MyFirstSketch/MyFirstSketch.ino<br />
and modify like following:<br />
<br />
void setup() {<br />
pinMode(LED_BUILTIN, OUTPUT);<br />
}<br />
void loop() {<br />
digitalWrite(LED_BUILTIN, HIGH);<br />
delay(4000);<br />
digitalWrite(LED_BUILTIN, LOW);<br />
delay(1000);<br />
}<br />
Before uploading our skecth, we need to compile it (the very first time, compile may take a few seconds) using your fqbn:<br />
arduino-cli compile --fqbn arduino:avr:uno MyFirstSketch<br />
arduino-cli compile --fqbn arduino:avr:nano MyFirstSketch<br />
arduino-cli compile --fqbn arduino:avr:nano:cpu=atmega328old MyFirstSketch [worked in the end!]<br />
<br />
Sketch uses 932 bytes (3%) of program storage space. Maximum is 30720 bytes.<br />
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.<br />
<br />
Upload the sketch using your phisical port and fqbn:<br />
arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:avr:uno MyFirstSketch<br />
arduino-cli upload -p /dev/ttyUSB0 --fqbn arduino:avr:nano MyFirstSketch<br />
arduino-cli upload -p /dev/ttyUSB0 --fqbn arduino:avr:nano:cpu=atmega328old MyFirstSketch -t -v [worked in the end!]<br />
<br />
In the above commands you will see:<br />
-t ..this checks if everything wen well after uploading<br />
-v ..this means 'verbose', and will result in much more details being spewed out onto your screen about the progress of the upload.<br />
<br />
I had Permission denied. I added myself to the correct group:<br />
ls -l /dev/ttyUSB0 <br />
<br />
crw-rw---- 1 root dialout 188, 0 Aug 27 14:37 /dev/ttyUSB0<br />
<br />
sudo adduser username dialout<br />
<br />
This way you should see your Arduino board reprogramming itself and executing the sketch (4 seconds built-in LED on, 1 second off).<br />
<br />
Tips To Simplify Command<br />
Typing fqbn and port every time can be really boring. An help comes from linux alias command. The following line will associate “acompile” with arduino-cli compile and its full parameters. The second line will make the same work but with the update command:<br />
alias acompile="arduino-cli compile --fqbn arduino:avr:uno"<br />
alias aupload="arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:avr:uno"<br />
Now you can complile and upload sketches simply by typing:<br />
acompile MyFirstSketch/<br />
aupload MyFirstSketch/<br />
or with combined command:<br />
acompile MyFirstSketch/ && aupload MyFirstSketch/<br />
<br />
==Libraries==<br />
First update your library index with:<br />
arduino-cli lib update-index<br />
Then search for a library, like neopixel:<br />
arduino-cli lib search neopixel<br />
Install the library by its name, for example "Adafruit NeoPixel":<br />
arduino-cli lib install "Adafruit NeoPixel"<br />
Confirm it is installed with:<br />
arduino-cli lib list<br />
<br />
Libraries are installed in your Documents\Arduino\libraries\ directory by default. Core libraries are stored in a different location. In Windows they are in an Arduino directory in the AppData\Local directory of your user's home.<br />
/home/user/Arduino/libraries/Firmata/examples/StandardFirmata/StandardFirmata.ino<br />
<br />
To uninstall a library, use the name of the folder in the libraries directory, which might be different from the install name. For example, to uninstall "Adafruit Zero DMA Library" you must use<br />
arduino-cli lib uninstall "Adafruit_NeoPixel"<br />
<br />
=pyFirmata=<br />
https://realpython.com/arduino-python/<br />
<br />
A nice way to communicate with a Arduino that is permanently connected. I'll give it a go for now and see.<br />
<br />
=LED and Rotary Encoder=<br />
Rotary Encoder:<br />
https://www.circuitsathome.com/mcu/reading-rotary-encoder-on-arduino <br />
<br />
Button:<br />
http://playground.arduino.cc/Code/HoldButton</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Arduino_Notes&diff=26592Arduino Notes2021-01-22T04:50:54Z<p>Vissie: /* INSTALL THIRD-PARTY BOARD SUPPORT */</p>
<hr />
<div>=Install=<br />
==Arduino-Cli==<br />
https://peppe8o.com/connecting-raspberry-pi-zero-w-to-arduino-only-via-terminal/<br />
<br />
Create a directory where user executables will be stored:<br />
sudo mkdir -p /local/bin<br />
<br />
add this directory to user $PATH variables (so that you can execute arduino-cli without typing full path):<br />
sudo vim /etc/bash.bashrc<br />
add the following line to the end of file:<br />
export PATH="/local/bin:$PATH"<br />
logout/login to make it running. Now install arduino-cli with default script. Note the BINDIR variable telling the script to use our <br />
sudo su<br />
cd /local/bin/<br />
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/local/bin sh<br />
exit<br />
<br />
Now create the default configuration file (suggested from arduino-cli man page to avoid a lot of typing when issuing each command):<br />
arduino-cli config init<br />
Before installing our board, we need to update the local cache of available platforms and libraries:<br />
arduino-cli core update-index<br />
Connect Elegoo Uno/Arduino board to your Raspberry PI using the miniUSB-to-USB cable. You should be able now to list your board:<br />
arduino-cli board list<br />
Port Type Board Name FQBN Core<br />
/dev/ttyACM0 Serial Port (USB) Arduino Uno arduino:avr:uno arduino:avr<br />
/dev/ttyAMA0 Serial Port Unknown<br />
If you can see only Unknown port, a Raspberry PI reboot could help in refreshing hardware recognition. <br />
<br />
In not, search to find the source for your bloard:<br />
arduino-cli core search nano<br />
<br />
ID Version Name <br />
arduino:avr 1.8.3 Arduino AVR Boards <br />
arduino:mbed 1.1.6 Arduino nRF528x Boards (Mbed OS) <br />
arduino:megaavr 1.8.6 Arduino megaAVR Boards <br />
arduino:samd 1.8.8 Arduino SAMD Boards (32-bits ARM Cortex-M0+)<br />
<br />
I installed the following too:<br />
arduino-cli core install arduino:megaavr<br />
arduino-cli core install arduino:samd<br />
<br />
In the end, that did not help at all!<br />
<br />
List all installed boards:<br />
arduino-cli board listall<br />
<br />
My output shows that I have an Arduino Uno based board, with FQBN (fully qualified board names) set to “arduino:avr:uno”.<br />
<br />
Install your board:<br />
arduino-cli core install arduino:avr<br />
Verify that installed board is properly running:<br />
<br />
arduino-cli core list<br />
<br />
ID Installed Latest Name<br />
arduino:avr 1.8.2 1.8.2 Arduino AVR Boards<br />
<br />
==INSTALL THIRD-PARTY BOARD SUPPORT==<br />
To add third-party boards like the ESP8266, Seeed Studio, or Adafruit boards you need to add additional board manager URLs. To do this, you need to create a YAML file named arduino-cli.yaml. This file should go in your current working directory.<br />
<br />
Here is an example arduino-cli.yaml that includes additional board URLs for:<br />
<br />
ESP8266 boards<br />
Adafruit boards<br />
Seeed Studio boards<br />
NOTE: Make sure it is .yaml and not .yml!!!<br />
<br />
cd /local/bin/<br />
<br />
# arduino-cli.yaml<br />
board_manager:<br />
additional_urls:<br />
- http://arduino.esp8266.com/stable/package_esp8266com_index.json<br />
- https://adafruit.github.io/arduino-board-index/package_adafruit_index.json<br />
- https://raw.githubusercontent.com/Seeed-Studio/Seeed_Platform/master/package_seeeduino_boards_index.json<br />
After creating the YAML file, you will need to update the index again:<br />
<br />
arduino-cli core update-index<br />
You should see output like this:<br />
<br />
Updating index: package_index.json downloaded<br />
Updating index: package_index.json downloaded<br />
Updating index: package_esp8266com_index.json downloaded<br />
Updating index: package_adafruit_index.json downloaded<br />
Updating index: package_seeeduino_boards_index.json downloaded<br />
After you update the index,<br />
<br />
Then you can search for boards like the ESP8266 or Adafruit boards:<br />
<br />
arduino-cli core search esp8266<br />
arduino-cli core search adafruit<br />
arduino-cli core search seeed<br />
Let's say you want to install support for ESP8266 boards, Adafruit AVR boards, and Adafruit SAMD boards. You can install those with:<br />
<br />
arduino-cli core install adafruit:avr adafruit:samd<br />
arduino-cli core install esp8266:esp8266<br />
arduino-cli core install Seeeduino:avr Seeeduino:samd<br />
After installing the support, you can view the list of boards that you have support installed for with:<br />
<br />
arduino-cli board listall<br />
<br />
==Test Your Installation==<br />
Create Your First Sketch<br />
To create a new sketch, simply type:<br />
arduino-cli sketch new MyFirstSketch <br />
<br />
This will create a “MyFirstSketch” directory inside pi user home folder, containing “MyFirstSketch.ino” file inside. <br />
<br />
Edit sketch content with common board LED control sketch (same as BLINK example):<br />
<br />
vim MyFirstSketch/MyFirstSketch.ino<br />
and modify like following:<br />
<br />
void setup() {<br />
pinMode(LED_BUILTIN, OUTPUT);<br />
}<br />
void loop() {<br />
digitalWrite(LED_BUILTIN, HIGH);<br />
delay(4000);<br />
digitalWrite(LED_BUILTIN, LOW);<br />
delay(1000);<br />
}<br />
Before uploading our skecth, we need to compile it (the very first time, compile may take a few seconds) using your fqbn:<br />
arduino-cli compile --fqbn arduino:avr:uno MyFirstSketch<br />
arduino-cli compile --fqbn arduino:avr:nano MyFirstSketch<br />
arduino-cli compile --fqbn arduino:avr:nano:cpu=atmega328old MyFirstSketch [worked in the end!]<br />
<br />
Sketch uses 932 bytes (3%) of program storage space. Maximum is 30720 bytes.<br />
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.<br />
<br />
Upload the sketch using your phisical port and fqbn:<br />
arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:avr:uno MyFirstSketch<br />
arduino-cli upload -p /dev/ttyUSB0 --fqbn arduino:avr:nano MyFirstSketch<br />
arduino-cli upload -p /dev/ttyUSB0 --fqbn arduino:avr:nano:cpu=atmega328old MyFirstSketch -t -v [worked in the end!]<br />
<br />
In the above commands you will see:<br />
-t ..this checks if everything wen well after uploading<br />
-v ..this means 'verbose', and will result in much more details being spewed out onto your screen about the progress of the upload.<br />
<br />
I had Permission denied. I added myself to the correct group:<br />
ls -l /dev/ttyUSB0 <br />
<br />
crw-rw---- 1 root dialout 188, 0 Aug 27 14:37 /dev/ttyUSB0<br />
<br />
sudo adduser username dialout<br />
<br />
This way you should see your Arduino board reprogramming itself and executing the sketch (4 seconds built-in LED on, 1 second off).<br />
<br />
Tips To Simplify Command<br />
Typing fqbn and port every time can be really boring. An help comes from linux alias command. The following line will associate “acompile” with arduino-cli compile and its full parameters. The second line will make the same work but with the update command:<br />
alias acompile="arduino-cli compile --fqbn arduino:avr:uno"<br />
alias aupload="arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:avr:uno"<br />
Now you can complile and upload sketches simply by typing:<br />
acompile MyFirstSketch/<br />
aupload MyFirstSketch/<br />
or with combined command:<br />
acompile MyFirstSketch/ && aupload MyFirstSketch/<br />
<br />
==Libraries==<br />
First update your library index with:<br />
arduino-cli lib update-index<br />
Then search for a library, like neopixel:<br />
arduino-cli lib search neopixel<br />
Install the library by its name, for example "Adafruit NeoPixel":<br />
arduino-cli lib install "Adafruit NeoPixel"<br />
Confirm it is installed with:<br />
arduino-cli lib list<br />
<br />
Libraries are installed in your Documents\Arduino\libraries\ directory by default. Core libraries are stored in a different location. In Windows they are in an Arduino directory in the AppData\Local directory of your user's home.<br />
/home/user/Arduino/libraries/Firmata/examples/StandardFirmata/StandardFirmata.ino<br />
<br />
To uninstall a library, use the name of the folder in the libraries directory, which might be different from the install name. For example, to uninstall "Adafruit Zero DMA Library" you must use<br />
arduino-cli lib uninstall "Adafruit_NeoPixel"<br />
<br />
=pyFirmata=<br />
https://realpython.com/arduino-python/<br />
<br />
A nice way to communicate with a Arduino that is permanently connected. I'll give it a go for now and see.<br />
<br />
=LED and Rotary Encoder=<br />
Rotary Encoder:<br />
https://www.circuitsathome.com/mcu/reading-rotary-encoder-on-arduino <br />
<br />
Button:<br />
http://playground.arduino.cc/Code/HoldButton</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Arduino_Notes&diff=26591Arduino Notes2021-01-18T20:50:43Z<p>Vissie: /* Arduino-Cli */</p>
<hr />
<div>=Install=<br />
==Arduino-Cli==<br />
https://peppe8o.com/connecting-raspberry-pi-zero-w-to-arduino-only-via-terminal/<br />
<br />
Create a directory where user executables will be stored:<br />
sudo mkdir -p /local/bin<br />
<br />
add this directory to user $PATH variables (so that you can execute arduino-cli without typing full path):<br />
sudo vim /etc/bash.bashrc<br />
add the following line to the end of file:<br />
export PATH="/local/bin:$PATH"<br />
logout/login to make it running. Now install arduino-cli with default script. Note the BINDIR variable telling the script to use our <br />
sudo su<br />
cd /local/bin/<br />
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/local/bin sh<br />
exit<br />
<br />
Now create the default configuration file (suggested from arduino-cli man page to avoid a lot of typing when issuing each command):<br />
arduino-cli config init<br />
Before installing our board, we need to update the local cache of available platforms and libraries:<br />
arduino-cli core update-index<br />
Connect Elegoo Uno/Arduino board to your Raspberry PI using the miniUSB-to-USB cable. You should be able now to list your board:<br />
arduino-cli board list<br />
Port Type Board Name FQBN Core<br />
/dev/ttyACM0 Serial Port (USB) Arduino Uno arduino:avr:uno arduino:avr<br />
/dev/ttyAMA0 Serial Port Unknown<br />
If you can see only Unknown port, a Raspberry PI reboot could help in refreshing hardware recognition. <br />
<br />
In not, search to find the source for your bloard:<br />
arduino-cli core search nano<br />
<br />
ID Version Name <br />
arduino:avr 1.8.3 Arduino AVR Boards <br />
arduino:mbed 1.1.6 Arduino nRF528x Boards (Mbed OS) <br />
arduino:megaavr 1.8.6 Arduino megaAVR Boards <br />
arduino:samd 1.8.8 Arduino SAMD Boards (32-bits ARM Cortex-M0+)<br />
<br />
I installed the following too:<br />
arduino-cli core install arduino:megaavr<br />
arduino-cli core install arduino:samd<br />
<br />
In the end, that did not help at all!<br />
<br />
List all installed boards:<br />
arduino-cli board listall<br />
<br />
My output shows that I have an Arduino Uno based board, with FQBN (fully qualified board names) set to “arduino:avr:uno”.<br />
<br />
Install your board:<br />
arduino-cli core install arduino:avr<br />
Verify that installed board is properly running:<br />
<br />
arduino-cli core list<br />
<br />
ID Installed Latest Name<br />
arduino:avr 1.8.2 1.8.2 Arduino AVR Boards<br />
<br />
==INSTALL THIRD-PARTY BOARD SUPPORT==<br />
To add third-party boards like the ESP8266, Seeed Studio, or Adafruit boards you need to add additional board manager URLs. To do this, you need to create a YAML file named arduino-cli.yaml. This file should go in your current working directory.<br />
<br />
Here is an example arduino-cli.yaml that includes additional board URLs for:<br />
<br />
ESP8266 boards<br />
Adafruit boards<br />
Seeed Studio boards<br />
NOTE: Make sure it is .yaml and not .yml!!!<br />
<br />
# arduino-cli.yaml<br />
board_manager:<br />
additional_urls:<br />
- http://arduino.esp8266.com/stable/package_esp8266com_index.json<br />
- https://adafruit.github.io/arduino-board-index/package_adafruit_index.json<br />
- https://raw.githubusercontent.com/Seeed-Studio/Seeed_Platform/master/package_seeeduino_boards_index.json<br />
After creating the YAML file, you will need to update the index again:<br />
<br />
arduino-cli core update-index<br />
You should see output like this:<br />
<br />
Updating index: package_index.json downloaded<br />
Updating index: package_index.json downloaded<br />
Updating index: package_esp8266com_index.json downloaded<br />
Updating index: package_adafruit_index.json downloaded<br />
Updating index: package_seeeduino_boards_index.json downloaded<br />
After you update the index,<br />
<br />
Then you can search for boards like the ESP8266 or Adafruit boards:<br />
<br />
arduino-cli core search esp8266<br />
arduino-cli core search adafruit<br />
arduino-cli core search seeed<br />
Let's say you want to install support for ESP8266 boards, Adafruit AVR boards, and Adafruit SAMD boards. You can install those with:<br />
<br />
arduino-cli core install adafruit:avr adafruit:samd<br />
arduino-cli core install esp8266:esp8266<br />
arduino-cli core install Seeeduino:avr Seeeduino:samd<br />
After installing the support, you can view the list of boards that you have support installed for with:<br />
<br />
arduino-cli board listall<br />
<br />
==Test Your Installation==<br />
Create Your First Sketch<br />
To create a new sketch, simply type:<br />
arduino-cli sketch new MyFirstSketch <br />
<br />
This will create a “MyFirstSketch” directory inside pi user home folder, containing “MyFirstSketch.ino” file inside. <br />
<br />
Edit sketch content with common board LED control sketch (same as BLINK example):<br />
<br />
vim MyFirstSketch/MyFirstSketch.ino<br />
and modify like following:<br />
<br />
void setup() {<br />
pinMode(LED_BUILTIN, OUTPUT);<br />
}<br />
void loop() {<br />
digitalWrite(LED_BUILTIN, HIGH);<br />
delay(4000);<br />
digitalWrite(LED_BUILTIN, LOW);<br />
delay(1000);<br />
}<br />
Before uploading our skecth, we need to compile it (the very first time, compile may take a few seconds) using your fqbn:<br />
arduino-cli compile --fqbn arduino:avr:uno MyFirstSketch<br />
arduino-cli compile --fqbn arduino:avr:nano MyFirstSketch<br />
arduino-cli compile --fqbn arduino:avr:nano:cpu=atmega328old MyFirstSketch [worked in the end!]<br />
<br />
Sketch uses 932 bytes (3%) of program storage space. Maximum is 30720 bytes.<br />
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.<br />
<br />
Upload the sketch using your phisical port and fqbn:<br />
arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:avr:uno MyFirstSketch<br />
arduino-cli upload -p /dev/ttyUSB0 --fqbn arduino:avr:nano MyFirstSketch<br />
arduino-cli upload -p /dev/ttyUSB0 --fqbn arduino:avr:nano:cpu=atmega328old MyFirstSketch -t -v [worked in the end!]<br />
<br />
In the above commands you will see:<br />
-t ..this checks if everything wen well after uploading<br />
-v ..this means 'verbose', and will result in much more details being spewed out onto your screen about the progress of the upload.<br />
<br />
I had Permission denied. I added myself to the correct group:<br />
ls -l /dev/ttyUSB0 <br />
<br />
crw-rw---- 1 root dialout 188, 0 Aug 27 14:37 /dev/ttyUSB0<br />
<br />
sudo adduser username dialout<br />
<br />
This way you should see your Arduino board reprogramming itself and executing the sketch (4 seconds built-in LED on, 1 second off).<br />
<br />
Tips To Simplify Command<br />
Typing fqbn and port every time can be really boring. An help comes from linux alias command. The following line will associate “acompile” with arduino-cli compile and its full parameters. The second line will make the same work but with the update command:<br />
alias acompile="arduino-cli compile --fqbn arduino:avr:uno"<br />
alias aupload="arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:avr:uno"<br />
Now you can complile and upload sketches simply by typing:<br />
acompile MyFirstSketch/<br />
aupload MyFirstSketch/<br />
or with combined command:<br />
acompile MyFirstSketch/ && aupload MyFirstSketch/<br />
<br />
==Libraries==<br />
First update your library index with:<br />
arduino-cli lib update-index<br />
Then search for a library, like neopixel:<br />
arduino-cli lib search neopixel<br />
Install the library by its name, for example "Adafruit NeoPixel":<br />
arduino-cli lib install "Adafruit NeoPixel"<br />
Confirm it is installed with:<br />
arduino-cli lib list<br />
<br />
Libraries are installed in your Documents\Arduino\libraries\ directory by default. Core libraries are stored in a different location. In Windows they are in an Arduino directory in the AppData\Local directory of your user's home.<br />
/home/user/Arduino/libraries/Firmata/examples/StandardFirmata/StandardFirmata.ino<br />
<br />
To uninstall a library, use the name of the folder in the libraries directory, which might be different from the install name. For example, to uninstall "Adafruit Zero DMA Library" you must use<br />
arduino-cli lib uninstall "Adafruit_NeoPixel"<br />
<br />
=pyFirmata=<br />
https://realpython.com/arduino-python/<br />
<br />
A nice way to communicate with a Arduino that is permanently connected. I'll give it a go for now and see.<br />
<br />
=LED and Rotary Encoder=<br />
Rotary Encoder:<br />
https://www.circuitsathome.com/mcu/reading-rotary-encoder-on-arduino <br />
<br />
Button:<br />
http://playground.arduino.cc/Code/HoldButton</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Arduino_Notes&diff=26590Arduino Notes2021-01-18T20:34:29Z<p>Vissie: /* Arduino-Cli */</p>
<hr />
<div>=Install=<br />
==Arduino-Cli==<br />
https://peppe8o.com/connecting-raspberry-pi-zero-w-to-arduino-only-via-terminal/<br />
<br />
Create a directory where user executables will be stored:<br />
sudo mkdir -p /local/bin<br />
<br />
add this directory to user $PATH variables (so that you can execute arduino-cli without typing full path):<br />
sudo vim /etc/bash.bashrc<br />
add the following line to the end of file:<br />
export PATH="/local/bin:$PATH"<br />
logout/login to make it running. Now install arduino-cli with default script. Note the BINDIR variable telling the script to use our <br />
sudo su<br />
cd /local/bin/<br />
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/local/bin sh<br />
exit<br />
<br />
Now create the default configuration file (suggested from arduino-cli man page to avoid a lot of typing when issuing each command):<br />
arduino-cli config init<br />
Before installing our board, we need to update the local cache of available platforms and libraries:<br />
arduino-cli core update-index<br />
Connect Elegoo Uno/Arduino board to your Raspberry PI using the miniUSB-to-USB cable. You should be able now to list your board:<br />
arduino-cli board list<br />
Port Type Board Name FQBN Core<br />
/dev/ttyACM0 Serial Port (USB) Arduino Uno arduino:avr:uno arduino:avr<br />
/dev/ttyAMA0 Serial Port Unknown<br />
If you can see only Unknown port, a Raspberry PI reboot could help in refreshing hardware recognition. <br />
<br />
In not, search to find the source for your bloard:<br />
arduino-cli core search nano<br />
<br />
ID Version Name <br />
arduino:avr 1.8.3 Arduino AVR Boards <br />
arduino:mbed 1.1.6 Arduino nRF528x Boards (Mbed OS) <br />
arduino:megaavr 1.8.6 Arduino megaAVR Boards <br />
arduino:samd 1.8.8 Arduino SAMD Boards (32-bits ARM Cortex-M0+)<br />
<br />
I installed the following too:<br />
arduino-cli core install arduino:megaavr<br />
arduino-cli core install arduino:samd<br />
<br />
In the end, that did not help at all!<br />
<br />
List all installed boards:<br />
arduino-cli board listall<br />
<br />
My output shows that I have an Arduino Uno based board, with FQBN (fully qualified board names) set to “arduino:avr:uno”.<br />
<br />
Install your board:<br />
arduino-cli core install arduino:avr<br />
Verify that installed board is properly running:<br />
<br />
arduino-cli core list<br />
<br />
ID Installed Latest Name<br />
arduino:avr 1.8.2 1.8.2 Arduino AVR Boards<br />
<br />
==Test Your Installation==<br />
Create Your First Sketch<br />
To create a new sketch, simply type:<br />
arduino-cli sketch new MyFirstSketch <br />
<br />
This will create a “MyFirstSketch” directory inside pi user home folder, containing “MyFirstSketch.ino” file inside. <br />
<br />
Edit sketch content with common board LED control sketch (same as BLINK example):<br />
<br />
vim MyFirstSketch/MyFirstSketch.ino<br />
and modify like following:<br />
<br />
void setup() {<br />
pinMode(LED_BUILTIN, OUTPUT);<br />
}<br />
void loop() {<br />
digitalWrite(LED_BUILTIN, HIGH);<br />
delay(4000);<br />
digitalWrite(LED_BUILTIN, LOW);<br />
delay(1000);<br />
}<br />
Before uploading our skecth, we need to compile it (the very first time, compile may take a few seconds) using your fqbn:<br />
arduino-cli compile --fqbn arduino:avr:uno MyFirstSketch<br />
arduino-cli compile --fqbn arduino:avr:nano MyFirstSketch<br />
arduino-cli compile --fqbn arduino:avr:nano:cpu=atmega328old MyFirstSketch [worked in the end!]<br />
<br />
Sketch uses 932 bytes (3%) of program storage space. Maximum is 30720 bytes.<br />
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.<br />
<br />
Upload the sketch using your phisical port and fqbn:<br />
arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:avr:uno MyFirstSketch<br />
arduino-cli upload -p /dev/ttyUSB0 --fqbn arduino:avr:nano MyFirstSketch<br />
arduino-cli upload -p /dev/ttyUSB0 --fqbn arduino:avr:nano:cpu=atmega328old MyFirstSketch -t -v [worked in the end!]<br />
<br />
In the above commands you will see:<br />
-t ..this checks if everything wen well after uploading<br />
-v ..this means 'verbose', and will result in much more details being spewed out onto your screen about the progress of the upload.<br />
<br />
I had Permission denied. I added myself to the correct group:<br />
ls -l /dev/ttyUSB0 <br />
<br />
crw-rw---- 1 root dialout 188, 0 Aug 27 14:37 /dev/ttyUSB0<br />
<br />
sudo adduser username dialout<br />
<br />
This way you should see your Arduino board reprogramming itself and executing the sketch (4 seconds built-in LED on, 1 second off).<br />
<br />
Tips To Simplify Command<br />
Typing fqbn and port every time can be really boring. An help comes from linux alias command. The following line will associate “acompile” with arduino-cli compile and its full parameters. The second line will make the same work but with the update command:<br />
alias acompile="arduino-cli compile --fqbn arduino:avr:uno"<br />
alias aupload="arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:avr:uno"<br />
Now you can complile and upload sketches simply by typing:<br />
acompile MyFirstSketch/<br />
aupload MyFirstSketch/<br />
or with combined command:<br />
acompile MyFirstSketch/ && aupload MyFirstSketch/<br />
<br />
==Libraries==<br />
First update your library index with:<br />
arduino-cli lib update-index<br />
Then search for a library, like neopixel:<br />
arduino-cli lib search neopixel<br />
Install the library by its name, for example "Adafruit NeoPixel":<br />
arduino-cli lib install "Adafruit NeoPixel"<br />
Confirm it is installed with:<br />
arduino-cli lib list<br />
<br />
Libraries are installed in your Documents\Arduino\libraries\ directory by default. Core libraries are stored in a different location. In Windows they are in an Arduino directory in the AppData\Local directory of your user's home.<br />
/home/user/Arduino/libraries/Firmata/examples/StandardFirmata/StandardFirmata.ino<br />
<br />
To uninstall a library, use the name of the folder in the libraries directory, which might be different from the install name. For example, to uninstall "Adafruit Zero DMA Library" you must use<br />
arduino-cli lib uninstall "Adafruit_NeoPixel"<br />
<br />
=pyFirmata=<br />
https://realpython.com/arduino-python/<br />
<br />
A nice way to communicate with a Arduino that is permanently connected. I'll give it a go for now and see.<br />
<br />
=LED and Rotary Encoder=<br />
Rotary Encoder:<br />
https://www.circuitsathome.com/mcu/reading-rotary-encoder-on-arduino <br />
<br />
Button:<br />
http://playground.arduino.cc/Code/HoldButton</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Pentaho&diff=26589Pentaho2021-01-17T05:22:30Z<p>Vissie: Created page with "=Install="</p>
<hr />
<div>=Install=</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Enter_into_my_wiki&diff=26588Enter into my wiki2021-01-14T08:51:24Z<p>Vissie: /* Applications */</p>
<hr />
<div>Consult the [http://meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.<br />
<br />
= Linux Tips and Shortcuts =<br />
== Installing Gentoo ==<br />
# [[Vissie's Gentoo Setup]]<br />
# [[Cron]]<br />
# [[Complete log setup]]<br />
== Boot ==<br />
# [[Boot up/start options]]<br />
# [[Color Boot]] <br />
# [[Speedup boot times]] <br />
# Boot from USB with ISO<br />
## [http://help.ubuntu.com/7.04/installation-guide/i386/boot-usb-files.html Boot from USB using ISO file]<br />
## [http://www.pendrivelinux.com/2007/09/28/usb-ubuntu-710-gutsy-gibbon-install/ USB Ubuntu 7.10 Gutsy Gibbon install]<br />
== Kernel ==<br />
# [[Kernel Config]]<br />
== Hardware ==<br />
# [[USE flags on Gentoo]]<br />
# [[CCACHE]]<br />
# [[DISTCC]]<br />
# [[Fdisk and HDDs]] <br />
# [[Sound]]<br />
# [[SD card]]<br />
# [[CD/CD writer/DVD]]<br />
# [[Power management]]<br />
# [[Bluetooth]]<br />
# [[Webcam]]<br />
# [[Mouse]]<br />
# Network<br />
## [[Network setup (incl. wireless)]]<br />
## [[Simple Network Troubleshooting]]<br />
## [[Configure A Fully Qualified Domain Name (DNS)]]<br />
## [[OpenLDAP Installation On Ubuntu]]<br />
# [[System Monitoring]]<br />
# [[Printing and printers]]<br />
== Xorg ==<br />
# [[HAL]]<br />
# [[xorg-x11]]<br />
# [[Some xorg.conf tips]]<br />
# [[Compiz Fusion]]<br />
# [[ATI Setup in Linux]]<br />
# [[X Defaults]]<br />
== Desktops ==<br />
# [[Fluxbox]]<br />
# [[LXDE]]<br />
# [[xfce4]]<br />
== Graphical Login Manager ==<br />
# [[Entrance]]<br />
# fast<br />
# [[gdm]]<br />
== Server/Router config ==<br />
# [[Debian router config]]<br />
# [[Proxy/Replicator]]<br />
# [[Firewall]]<br />
# [http://www.gentoo-wiki.info/HOWTO_Create_a_Gentoo_Client_Infrastructure Create a Gentoo setup boot cd]<br />
# [[Automated script for Gentoo instalation]]<br />
# [[Apache2]]<br />
# [[Keep a daily log of ADSL traffic]]<br />
# [[hostapd]]<br />
## [[lvm]]<br />
# [[nfs]]<br />
## [[svn]]<br />
<br />
== Internet ==<br />
# [[Vodafone 3G setup]]<br />
# [[iBurst]]<br />
[[Live CD creation]]<br />
[[Maintenance]] <br />
== Applications ==<br />
# [[2D/3D]]<br />
# [[aMule]]<br />
# [[Arduino Notes]]<br />
# [[apt]]<br />
# [[Android Studio]]<br />
# [[Archives]]<br />
# [[Auto Mount]]<br />
# [[Auto start at boot]]<br />
# [[autofs]]<br />
# [[awk]]<br />
# [[QR bar Code]]<br />
# [[beets]]<br />
# [[berryboot]]<br />
# [[Blender]]<br />
# [[BlissOS]]<br />
# [[brave browser]]<br />
# [[cd/cdr/cdrw]]<br />
# [[cdu]]<br />
# [[certbot]]<br />
# [[chown]]<br />
# [[chrome]]<br />
# [[chromium]]<br />
# [[codec]]<br />
# [[conky]]<br />
# [[cron]]<br />
# [[Date]]<br />
# [[dd]]<br />
# [[deepspeech]]<br />
# [[Deluge]]<br />
# [[dns]]<br />
# [[Docker]]<br />
# [[Drive security]]<br />
# [[DropBox]]<br />
# [[DVD creation]]<br />
# [[DVD rip]]<br />
# [[EMail clients]]<br />
# [[emerge]]<br />
# [[evolution]]<br />
# [[feh]]<br />
# [[ffmpeg]]<br />
# [[FileBot]]<br />
# File Mangers<br />
## [[Ranger]]<br />
## [[Thunar]]<br />
# [[FireFox]]<br />
# [[Gaining better performance via swappiness]]<br />
# [[grc]]<br />
# [[gimp]]<br />
# [[Git]]<br />
# [[Grep]]<br />
# [[Grub2]]video surveillance<br />
# [[GNUmp3D]]<br />
# [[goLang]]<br />
# [[GPS]]<br />
# [[Guacamole]]<br />
# Home automation<br />
## [[Mister House]]<br />
## [[Text to speech]]<br />
# [[hostname]]<br />
# [[iperf]]<br />
# [[Imagemagick]]<br />
# [[Insight3D]]<br />
# [[Install MythTV]]<br />
# [[Introduction Detection]]<br />
# [[IPV6]]<br />
# [[Java]]<br />
# [[kenel]]<br />
# [[Keyboard]]<br />
# [[Kodi]]<br />
# [[KVM]]<br />
# [[LibreCAD]]<br />
# [[lightdm]]<br />
# [[lizardfs]]<br />
# [[Logitech Media Server]]<br />
# [[mail]]<br />
# [[MagicLantern]]<br />
# [[MagicMirror]]<br />
# [[MakeMKV]]<br />
# [[Man pages]]<br />
# [[MediaWiki]]<br />
# [[Midnight Commander]]<br />
# [[mkvtoolnix]]<br />
# [[MPD]]<br />
# [[Mobile phones]]<br />
# [[Mopidy]]<br />
# [[Mount (ISO, NTFS and cifs)]]<br />
# [[Music Players]]<br />
# [[MySQL]]<br />
# [[ncdu]]<br />
# [[Netdata]]<br />
# [[netstat]]<br />
# [[NextCloud]]<br />
# [[nodeJS]]<br />
# [[Nginx]]<br />
# [[Ngrok]]<br />
# [[nvidia]]<br />
# [[Office]]<br />
# [[OpenBox]]<br />
# [[OpenVPN]]<br />
# [[pentaho]]<br />
# [[PDF(view and edit)]]<br />
# [[Plex]]<br />
# [[Power management Generic]]<br />
# Printers<br />
## [[Cannon Pixma MP280]] <br />
# [[Proxmox]]<br />
# [[ppa on Debian]]<br />
# [[Pushover]]<br />
# [[PyCharm]]<br />
# [[Python]]<br />
# [[rainloop]]<br />
# [[Rar/unRar]]<br />
# [[rclone]]<br />
# Remote Access<br />
## [[Remote Access Ubuntu using Firefox with TightVNC]]<br />
## [[Web file sharing using python]]<br />
## [[Files sharing with ssh]]<br />
## [[xrandr (re-size windows) ]]<br />
# [[Remotes controls and multimedia (IVTV)]]<br />
# [[rhasspy]]<br />
# [[rSync]]<br />
# [[samba]]<br />
# [[screen]]<br />
# [[sed, Linux text editor]]<br />
# [[Setting the time]]<br />
# [[Shell in a Box]]<br />
# [[shinobi]]<br />
# [[smartmontools]]<br />
# [[sources.list]]<br />
# [[ssh]]<br />
# [[SyncE with Windows CE 5]]<br />
# [[Syncthing]]<br />
# [[systemctl]]<br />
# [[SuncThing]]<br />
# [[sudo]]<br />
# [[tahoe-lafs]]<br />
# [[TeamViewer]]<br />
# [[Telegram]]<br />
# [[TensorFlow]]<br />
# [[Terminal]]<br />
# [[Themes]]<br />
# [[tmux]]<br />
# [http://www.comptechdoc.org/os/linux/usersguide/linux_ugsamba.html Samba guide]<br />
# [[Vim]]<br />
# [[Visual SFM]]<br />
# [[VoIP]]<br />
# [[Volume label]]<br />
# [[IM]]<br />
# [[Images]]<br />
# Video Surveillance<br />
## [[zoneminder]]<br />
# [[Virtual Box]]<br />
# [[vnc]]<br />
## [[USB]]<br />
## [[Seamless MS Windows in Linux]]<br />
# [[FTP]]<br />
# [[Bash scripting]]<br />
# Music<br />
## [[iPod]]<br />
## [[Nice MP3 Organizers]]<br />
# Downloading<br />
## [[rtorrent]]<br />
## [[mldonkey]]<br />
# [[Terminal Server / Remote Desktop Client Shortcut Keys]]<br />
# [http://www.unixica.com/unixica/2007/11/how_to_update_navigation_links.html How to update navigation links in MediaWiki]<br />
# [[http://www.cgsecurity.org/wiki/Damaged_Hard_Disk Damaged Hard Disk - ddrescue]]<br />
# [http://www.killersites.com/webDesignersHandbook/ascii_page2.htm ASCII tables ]<br />
# [http://ubuntuforums.org/showthread.php?t=171203 Minimum Linux install]<br />
# [http://www.certforums.co.uk/forums/archive/index.php?t-20798.html Minimum install with VM]<br />
# [http://www.softerblue.com/?p=15 Gentoo install inside VirtualBox]<br />
# [[Linux and Education]]<br />
# [[udev]]<br />
# [[Upgrade]]<br />
# [[UPS]]<br />
# [[Wine]]<br />
# [[WhatsApp]]<br />
# [[X2Go]]<br />
# [[xpra]]<br />
# [[zabbix]]<br />
# [[zfs]]<br />
<br />
== Other Stuff ==<br />
# [[Acer Aspire one A110]]<br />
# [[Arch Linux]]<br />
# [[Android]]<br />
# [[CentOS]]<br />
# [[Google Play Music]]<br />
# [[Installing IBM T21]]<br />
# [[Linux on HTC-Hermes]]<br />
# [[Live Kiosk stuff]]<br />
# [[Mobile Wiki]]<br />
# [[Nokia N95 8GB]]<br />
# [[Nokia N95 8G]]<br />
# [http://www.techthrob.com/tech/linux_virtualization.php fun stuff]<br />
# [http://www.pramnos.com/story69-2390.html wow]<br />
<br />
== Apple Mac stuff ==<br />
# [[Printing]]<br />
== Windows stuff (sorry, but I have too..) ==<br />
# [[Windows Genuine Advantage (WGA)]]<br />
<br />
== Some Raspberry Pi Notes ==<br />
# Some nice weekend tasks<br />
## [[Build a digital clock]]<br />
## [[Generic i2c screen]]<br />
## [[GPIO]]<br />
## [[OSMC]]<br />
## [[camera]]<br />
<br />
== Some CubieTruck Pi Notes ==<br />
# [[Compile Android]]<br />
# [[CubieTruck, AKA Cubie 3]]<br />
# [[CubieTruck Plus, AKA Cubie 5]]<br />
<br />
== Some oDroid Pi Notes ==<br />
# Android<br />
## [[Boot logo's and animations]]<br />
## [[Fastboot]]<br />
## [[gapps]]<br />
# [[Shopping list]]<br />
# [[Volumio]]<br />
<br />
== Code snippits ==<br />
# [[regex]]<br />
# [[VBScript]]<br />
# [[Microsoft PowerShell]]<br />
# [[Web Development]]<br />
# Debian<br />
## [[runBootup.sh]]<br />
== Special hardware debian setups ==<br />
#[[Canon PIXMA MP280]]<br />
# [[Dell Latitude E6400]]<br />
# [[Dell Latitude D630]]<br />
# [[Dell Optiplex 3060]]<br />
# [[Debian minimal]]<br />
# [[Nvidia GT1070]]<br />
<br />
= Raspberry Pi section =<br />
# [[network]]<br />
<br />
== other ==<br />
# [[AliExpress]]<br />
<br />
== [[My keyboard shortcuts]] ==<br />
<br />
== [[Some Hardware notes]] ==<br />
<br />
= Android apps =<br />
# [[tasker]]<br />
# [[vissie phone setup]]<br />
# [[python and termux]]<br />
<br />
= ESXi =<br />
== VMware Tools ==<br />
apt-get install open-vm-tools open-vm-tools-desktop<br />
<br />
== Oracle VirtualBox ==<br />
sudo apt install build-essential dkms linux-headers-$(uname -r)<br />
<br />
Mount the CD, cd to it. run:<br />
sudo sh ./VBoxLinuxAdditions.run<br />
<br />
== Resizing discs ==<br />
If you get boot delays with a message:<br />
'Gave up waiting for suspend/resume device'<br />
<br />
sudo update-initramfs -u<br />
<br />
== Add a shared HDD==<br />
https://theitbros.com/share-disk-between-vms-on-vmware-esxi/</div>Vissiehttps://vissie.com/wiki_new/index.php?title=MySQL&diff=26587MySQL2021-01-14T07:50:53Z<p>Vissie: /* Connect from outside localhost */</p>
<hr />
<div>=Install=<br />
https://www.digitalocean.com/community/tutorials/how-to-install-the-latest-mysql-on-debian-10<br />
<br />
sudo apt install mariadb-server<br />
sudo mysql_secure_installation<br />
sudo mysql -u root -p<br />
<br />
=Security=<br />
Host 'xxx.xx.xxx.xxx' is not allowed to connect to this MySQL server<br />
http://stackoverflow.com/questions/1559955/host-xxx-xx-xxx-xxx-is-not-allowed-to-connect-to-this-mysql-server <br />
<br />
Just perform the following steps:<br />
1) Connect to mysql<br />
mysql -uroot -p<br />
2) Create user<br />
CREATE USER 'user'@'%' IDENTIFIED BY 'password';<br />
3) Grant permissions<br />
GRANT ALL PRIVILEGES ON \*.\* TO 'user'@'%' WITH GRANT OPTION;<br />
4) Flush priviledges<br />
FLUSH PRIVILEGES;<br />
<br />
=Connect from outside localhost=<br />
# For maria-db<br />
sudo vim /etc/mysql/mariadb.conf.d/50-server.cnf <br />
# For mysql<br />
sudo vim /etc/my.cnf<br />
<br />
[mysqld]<br />
bind-address = 0.0.0.0<br />
<br />
sudo systemctl restart mariadb.service<br />
<br />
=Importing from csv=<br />
# For maria-db<br />
sudo vim /etc/mysql/mariadb.conf.d/50-server.cnf <br />
# For mysql<br />
sudo vim /etc/my.cnf<br />
<br />
[mysqld]<br />
secure-file-priv=/mysqlfiles<br />
<br />
sudo mkdir /mysqlfiles<br />
sudo chown -R mysql:mysql /mysqlfiles/<br />
<br />
sudo systemctl restart mysql.service <br />
sudo systemctl restart mariadb.service <br />
<br />
=code snipps=<br />
==clear and update tables from csv==<br />
A nice "easy" script to clear and update tables from csv.<br />
<br />
TRUNCATE TABLE lookups.cbot_months;<br />
LOAD DATA LOCAL INFILE 'C:/Data/MySQL/Lookups/cBOT_months.csv'<br />
INTO TABLE lookups.cbot_months<br />
FIELDS TERMINATED BY ',' ENCLOSED BY '"' lines terminated by '\r\n'<br />
IGNORE 1 LINES;<br />
<br />
==Select rows from a table that are not in another==<br />
<br />
You need to do the subselect based on a column name.<br />
For example, if you had an id field common to both tables, you could do:<br />
SELECT * FROM Table1 WHERE id NOT IN (SELECT id FROM Table2)<br />
<br />
Using AND, OR, and NOT together<br />
<br />
You can combine the three logical operators in a compound condition. Your DBMS uses SQL’s precedence rules to determine which operators to evaluate first. Precedence is covered in “Determining the Order of Evaluation” in Chapter 5, but for now you need know only that when you use multiple logical operators in a compound condition, NOT is evaluated first, then AND, and finally OR. You can override this order with parentheses: Everything in parentheses is evaluated first. When parenthesized conditions are nested, the innermost condition is evaluated first. Under the default precedence rules, the condition x AND NOT y OR z is equivalent to (x AND (NOT y)) OR z. It’s wise to use parentheses, rather than rely on the default evaluation order, to make the evaluation order clear.<br />
<br />
==MySQL count occurrences greater than 2, find duplicate lines/entries==<br />
<br />
SELECT count(DOC_NUMBER), DOC_NUMBER as count <br />
FROM jde_dw.ap_invoice_list<br />
GROUP BY DOC_NUMBER<br />
HAVING count >= 2;<br />
<br />
And now how to delete them!<br />
CREATE TABLE web_apps.localpnl_exposure_history AS SELECT * FROM web_apps.localpnl_exposure_history_back LIMIT 0;<br />
SELECT * FROM web_apps.localpnl_exposure_history_back;<br />
SELECT * FROM web_apps.localpnl_exposure_history;<br />
ALTER TABLE web_apps.localpnl_exposure_history_back ADD PRIMARY KEY (JDCS,Exposure_Date(20));<br />
<br />
==create a new temporary table with same structure==<br />
An alternative way would be to create a new temporary table with same structure.<br />
CREATE TABLE temp_table AS SELECT * FROM original_table LIMIT 0<br />
Then create the primary key in the table.<br />
ALTER TABLE temp_table ADD PRIMARY KEY (primary-key-field)<br />
Finally copy all records from the original table while ignoring the duplicate records.<br />
INSERT IGNORE INTO temp_table AS SELECT * FROM original_table<br />
Now you can delete the original table and rename the new table.<br />
DROP TABLE original_table<br />
RENAME TABLE temp_table TO original_table<br />
<br />
<br />
CAST a string into a number while removing/replacing commas<br />
SELECT SUM(replace( ifnull( Sell_Qty, 0 ), ',', '' )) FROM mbs_dw.futures_cbot;<br />
<br />
=mysqldump=<br />
==backup==<br />
mysqldump -u [uname] -p[pass] db_name > db_backup.sql<br />
mysqldump db_name > db_backup.sql<br />
<br />
==restore==<br />
C:\> mysql -u root -p<br />
mysql> create database mydb;<br />
mysql> use mydb;<br />
mysql> source db_backup.dump;</div>Vissiehttps://vissie.com/wiki_new/index.php?title=MySQL&diff=26586MySQL2021-01-14T07:30:00Z<p>Vissie: /* Install */</p>
<hr />
<div>=Install=<br />
https://www.digitalocean.com/community/tutorials/how-to-install-the-latest-mysql-on-debian-10<br />
<br />
sudo apt install mariadb-server<br />
sudo mysql_secure_installation<br />
sudo mysql -u root -p<br />
<br />
=Security=<br />
Host 'xxx.xx.xxx.xxx' is not allowed to connect to this MySQL server<br />
http://stackoverflow.com/questions/1559955/host-xxx-xx-xxx-xxx-is-not-allowed-to-connect-to-this-mysql-server <br />
<br />
Just perform the following steps:<br />
1) Connect to mysql<br />
mysql -uroot -p<br />
2) Create user<br />
CREATE USER 'user'@'%' IDENTIFIED BY 'password';<br />
3) Grant permissions<br />
GRANT ALL PRIVILEGES ON \*.\* TO 'user'@'%' WITH GRANT OPTION;<br />
4) Flush priviledges<br />
FLUSH PRIVILEGES;<br />
<br />
=Connect from outside localhost=<br />
# For maria-db<br />
sudo vim /etc/mysql/mariadb.conf.d/50-server.cnf <br />
# For mysql<br />
sudo vim /etc/my.cnf<br />
<br />
[mysqld]<br />
bind-address = 0.0.0.0<br />
<br />
=Importing from csv=<br />
# For maria-db<br />
sudo vim /etc/mysql/mariadb.conf.d/50-server.cnf <br />
# For mysql<br />
sudo vim /etc/my.cnf<br />
<br />
[mysqld]<br />
secure-file-priv=/mysqlfiles<br />
<br />
sudo mkdir /mysqlfiles<br />
sudo chown -R mysql:mysql /mysqlfiles/<br />
<br />
sudo systemctl restart mysql.service <br />
sudo systemctl restart mariadb.service <br />
<br />
=code snipps=<br />
==clear and update tables from csv==<br />
A nice "easy" script to clear and update tables from csv.<br />
<br />
TRUNCATE TABLE lookups.cbot_months;<br />
LOAD DATA LOCAL INFILE 'C:/Data/MySQL/Lookups/cBOT_months.csv'<br />
INTO TABLE lookups.cbot_months<br />
FIELDS TERMINATED BY ',' ENCLOSED BY '"' lines terminated by '\r\n'<br />
IGNORE 1 LINES;<br />
<br />
==Select rows from a table that are not in another==<br />
<br />
You need to do the subselect based on a column name.<br />
For example, if you had an id field common to both tables, you could do:<br />
SELECT * FROM Table1 WHERE id NOT IN (SELECT id FROM Table2)<br />
<br />
Using AND, OR, and NOT together<br />
<br />
You can combine the three logical operators in a compound condition. Your DBMS uses SQL’s precedence rules to determine which operators to evaluate first. Precedence is covered in “Determining the Order of Evaluation” in Chapter 5, but for now you need know only that when you use multiple logical operators in a compound condition, NOT is evaluated first, then AND, and finally OR. You can override this order with parentheses: Everything in parentheses is evaluated first. When parenthesized conditions are nested, the innermost condition is evaluated first. Under the default precedence rules, the condition x AND NOT y OR z is equivalent to (x AND (NOT y)) OR z. It’s wise to use parentheses, rather than rely on the default evaluation order, to make the evaluation order clear.<br />
<br />
==MySQL count occurrences greater than 2, find duplicate lines/entries==<br />
<br />
SELECT count(DOC_NUMBER), DOC_NUMBER as count <br />
FROM jde_dw.ap_invoice_list<br />
GROUP BY DOC_NUMBER<br />
HAVING count >= 2;<br />
<br />
And now how to delete them!<br />
CREATE TABLE web_apps.localpnl_exposure_history AS SELECT * FROM web_apps.localpnl_exposure_history_back LIMIT 0;<br />
SELECT * FROM web_apps.localpnl_exposure_history_back;<br />
SELECT * FROM web_apps.localpnl_exposure_history;<br />
ALTER TABLE web_apps.localpnl_exposure_history_back ADD PRIMARY KEY (JDCS,Exposure_Date(20));<br />
<br />
==create a new temporary table with same structure==<br />
An alternative way would be to create a new temporary table with same structure.<br />
CREATE TABLE temp_table AS SELECT * FROM original_table LIMIT 0<br />
Then create the primary key in the table.<br />
ALTER TABLE temp_table ADD PRIMARY KEY (primary-key-field)<br />
Finally copy all records from the original table while ignoring the duplicate records.<br />
INSERT IGNORE INTO temp_table AS SELECT * FROM original_table<br />
Now you can delete the original table and rename the new table.<br />
DROP TABLE original_table<br />
RENAME TABLE temp_table TO original_table<br />
<br />
<br />
CAST a string into a number while removing/replacing commas<br />
SELECT SUM(replace( ifnull( Sell_Qty, 0 ), ',', '' )) FROM mbs_dw.futures_cbot;<br />
<br />
=mysqldump=<br />
==backup==<br />
mysqldump -u [uname] -p[pass] db_name > db_backup.sql<br />
mysqldump db_name > db_backup.sql<br />
<br />
==restore==<br />
C:\> mysql -u root -p<br />
mysql> create database mydb;<br />
mysql> use mydb;<br />
mysql> source db_backup.dump;</div>Vissiehttps://vissie.com/wiki_new/index.php?title=MySQL&diff=26585MySQL2021-01-14T07:20:43Z<p>Vissie: </p>
<hr />
<div>=Install=<br />
https://www.digitalocean.com/community/tutorials/how-to-install-the-latest-mysql-on-debian-10<br />
<br />
sudo apt install <br />
<br />
=Security=<br />
Host 'xxx.xx.xxx.xxx' is not allowed to connect to this MySQL server<br />
http://stackoverflow.com/questions/1559955/host-xxx-xx-xxx-xxx-is-not-allowed-to-connect-to-this-mysql-server <br />
<br />
Just perform the following steps:<br />
1) Connect to mysql<br />
mysql -uroot -p<br />
2) Create user<br />
CREATE USER 'user'@'%' IDENTIFIED BY 'password';<br />
3) Grant permissions<br />
GRANT ALL PRIVILEGES ON \*.\* TO 'user'@'%' WITH GRANT OPTION;<br />
4) Flush priviledges<br />
FLUSH PRIVILEGES;<br />
<br />
=Connect from outside localhost=<br />
# For maria-db<br />
sudo vim /etc/mysql/mariadb.conf.d/50-server.cnf <br />
# For mysql<br />
sudo vim /etc/my.cnf<br />
<br />
[mysqld]<br />
bind-address = 0.0.0.0<br />
<br />
=Importing from csv=<br />
# For maria-db<br />
sudo vim /etc/mysql/mariadb.conf.d/50-server.cnf <br />
# For mysql<br />
sudo vim /etc/my.cnf<br />
<br />
[mysqld]<br />
secure-file-priv=/mysqlfiles<br />
<br />
sudo mkdir /mysqlfiles<br />
sudo chown -R mysql:mysql /mysqlfiles/<br />
<br />
sudo systemctl restart mysql.service <br />
sudo systemctl restart mariadb.service <br />
<br />
=code snipps=<br />
==clear and update tables from csv==<br />
A nice "easy" script to clear and update tables from csv.<br />
<br />
TRUNCATE TABLE lookups.cbot_months;<br />
LOAD DATA LOCAL INFILE 'C:/Data/MySQL/Lookups/cBOT_months.csv'<br />
INTO TABLE lookups.cbot_months<br />
FIELDS TERMINATED BY ',' ENCLOSED BY '"' lines terminated by '\r\n'<br />
IGNORE 1 LINES;<br />
<br />
==Select rows from a table that are not in another==<br />
<br />
You need to do the subselect based on a column name.<br />
For example, if you had an id field common to both tables, you could do:<br />
SELECT * FROM Table1 WHERE id NOT IN (SELECT id FROM Table2)<br />
<br />
Using AND, OR, and NOT together<br />
<br />
You can combine the three logical operators in a compound condition. Your DBMS uses SQL’s precedence rules to determine which operators to evaluate first. Precedence is covered in “Determining the Order of Evaluation” in Chapter 5, but for now you need know only that when you use multiple logical operators in a compound condition, NOT is evaluated first, then AND, and finally OR. You can override this order with parentheses: Everything in parentheses is evaluated first. When parenthesized conditions are nested, the innermost condition is evaluated first. Under the default precedence rules, the condition x AND NOT y OR z is equivalent to (x AND (NOT y)) OR z. It’s wise to use parentheses, rather than rely on the default evaluation order, to make the evaluation order clear.<br />
<br />
==MySQL count occurrences greater than 2, find duplicate lines/entries==<br />
<br />
SELECT count(DOC_NUMBER), DOC_NUMBER as count <br />
FROM jde_dw.ap_invoice_list<br />
GROUP BY DOC_NUMBER<br />
HAVING count >= 2;<br />
<br />
And now how to delete them!<br />
CREATE TABLE web_apps.localpnl_exposure_history AS SELECT * FROM web_apps.localpnl_exposure_history_back LIMIT 0;<br />
SELECT * FROM web_apps.localpnl_exposure_history_back;<br />
SELECT * FROM web_apps.localpnl_exposure_history;<br />
ALTER TABLE web_apps.localpnl_exposure_history_back ADD PRIMARY KEY (JDCS,Exposure_Date(20));<br />
<br />
==create a new temporary table with same structure==<br />
An alternative way would be to create a new temporary table with same structure.<br />
CREATE TABLE temp_table AS SELECT * FROM original_table LIMIT 0<br />
Then create the primary key in the table.<br />
ALTER TABLE temp_table ADD PRIMARY KEY (primary-key-field)<br />
Finally copy all records from the original table while ignoring the duplicate records.<br />
INSERT IGNORE INTO temp_table AS SELECT * FROM original_table<br />
Now you can delete the original table and rename the new table.<br />
DROP TABLE original_table<br />
RENAME TABLE temp_table TO original_table<br />
<br />
<br />
CAST a string into a number while removing/replacing commas<br />
SELECT SUM(replace( ifnull( Sell_Qty, 0 ), ',', '' )) FROM mbs_dw.futures_cbot;<br />
<br />
=mysqldump=<br />
==backup==<br />
mysqldump -u [uname] -p[pass] db_name > db_backup.sql<br />
mysqldump db_name > db_backup.sql<br />
<br />
==restore==<br />
C:\> mysql -u root -p<br />
mysql> create database mydb;<br />
mysql> use mydb;<br />
mysql> source db_backup.dump;</div>Vissiehttps://vissie.com/wiki_new/index.php?title=KVM&diff=26584KVM2021-01-14T07:03:20Z<p>Vissie: /* Working with domains */</p>
<hr />
<div>=Install on Debian=<br />
At some point I will have to re-write this how-to. I used this as a base:<br />
https://linuxhint.com/install_kvm_debian_10/<br />
<br />
Old:<br />
https://linuxhint.com/install_kvm_debian_10/<br />
Some network advanced stuff:<br />
https://www.linuxtechi.com/install-configure-kvm-debian-10-buster/<br />
<br />
sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils<br />
sudo systemctl status libvirtd.service<br />
sudo virsh net-list --all<br />
sudo modprobe vhost_net<br />
<br />
As we can see in above output, default network is inactive so to make it active and auto-restart across the reboot by running the following commands,<br />
sudo virsh net-start default<br />
sudo virsh net-autostart default<br />
<br />
If you want to offload the mechanism of “virtio-net” and want to improve the performance of KVM VMs then add “vhost_net” kernel module on your system using the beneath command,<br />
sudo modprobe vhost_net<br />
echo "vhost_net" | sudo tee -a /etc/modules<br />
lsmod | grep vhost<br />
<br />
vhost_net 24576 0<br />
vhost 49152 1 vhost_net<br />
tap 28672 1 vhost_net<br />
tun 49152 2 vhost_net<br />
<br />
Note: If you want a normal user to use virsh commands then add that user to libvirt and libvirt-qemu group using the following commands<br />
sudo adduser pkumar libvirt<br />
sudo adduser pkumar libvirt-qemu<br />
<br />
To refresh or reload group membership run the followings,<br />
newgrp libvirt<br />
newgrp libvirt-qemu<br />
<br />
=Allow ping in host=<br />
sudo groupadd unpriv_ping<br />
sudo usermod --append --groups unpriv_ping vissie<br />
getent group unpriv_ping | cut -f 3 -d :<br />
#111<br />
sudo vim /etc/sysctl.conf<br />
...<br />
net.ipv4.ping_group_range = 1003 1003<br />
<br />
...<br />
sysctl -p<br />
<br />
or<br />
<br />
sudo sysctl -w net.ipv4.ping_group_range='0 2147483647'<br />
<br />
=Create HDDs=<br />
# create a file "disk_image" with format qcow2 and 40GB of max space<br />
qemu-img create -f qcow2 disk_image.img 40G<br />
<br />
=Running a VM=<br />
sudo qemu-system-x86_64 -vga qxl -enable-kvm -m 2048 -smp 2 -cpu host -soundhw es1370 -device virtio-mouse-pci -device virtio-keyboard-pci -serial mon:stdio -boot menu=on -net nic -net user,hostfwd=tcp::5555-:22 -hda ./kvmdeb.img<br />
<br />
=Port Forward=<br />
QEMU can forward ports from the host to the guest to enable e.g. connecting from the host to an SSH server running on the guest.<br />
<br />
For example, to bind port 10022 on the host with port 22 (SSH) on the guest, start QEMU with a command like:<br />
qemu-system-x86_64 disk_image -nic user,hostfwd=tcp::10022-:22<br />
<br />
=SPICE=<br />
https://www.linux-kvm.org/page/SPICE<br />
<br />
sudo apt install spice-client-gtk<br />
<br />
You wanted copy and paste between host and guest right? ;)<br />
<br />
We need to add a virtio-serial device to the guest, and open a port for the spice vdagent. We also need to install the spice vdagent in guest. Be sure the agent is running (and for future, started automatically).<br />
<br />
First the guest side, since the guest is running.<br />
sudo apt install xserver-xorg-video-qxl spice-vdagent qemu-guest-agent<br />
sudo systemctl start spice-vdagent<br />
sudo systemctl enable spice-vdagent<br />
<br />
<br />
spicy -h 127.0.0.1 -p 5900<br />
<br />
=VNC=<br />
sudo apt install tigervnc-viewer<br />
<br />
sudo qemu-system-x86_64 -vga qxl -enable-kvm -m 2048 -smp 2 -cpu host -soundhw es1370 -device virtio-mouse-pci -device virtio-keyboard-pci -serial mon:stdio -boot menu=on -net nic -net user,hostfwd=tcp::5555-:22 -hda ./kvmdeb.img -vnc 127.0.0.1:0<br />
<br />
sudo netstat -npl | grep qemu<br />
vncviewer 127.0.0.1:0<br />
<br />
=Some commands=<br />
==Working with domains==<br />
virsh list --all<br />
virsh start server01<br />
virsh vncdisplay server01<br />
remote-viewer spice://localhost:5900<br />
virt-manager<br />
sudo virsh edit debiantesting<br />
<br />
==List all supported os-variants==<br />
apt-get install libosinfo-bin<br />
osinfo-query os<br />
<br />
==Start a install==<br />
sudo virt-install --name kvmdeb \<br />
--os-type linux \<br />
--os-variant debian10 \<br />
--ram 2048 \<br />
--disk /kvm/disk/kvmdeb.img,device=disk,bus=virtio,size=20,format=qcow2 \<br />
--graphics vnc,listen=0.0.0.0 \<br />
--noautoconsole \<br />
--hvm \<br />
--cdrom /kvm/iso/debian-10.5.0-amd64-netinst.iso \<br />
--boot cdrom,hd<br />
<br />
==Stop a running domain==<br />
virsh managedsave kvmdeb --verbose<br />
<br />
<br />
=GUI=<br />
Try the GUI stuff some time....<br />
<br />
==virt-manager==<br />
virt-manager <br />
<br />
==Spice==<br />
sudo apt install virt-viewer</div>Vissiehttps://vissie.com/wiki_new/index.php?title=KVM&diff=26583KVM2021-01-13T12:59:42Z<p>Vissie: /* Install on Debian */</p>
<hr />
<div>=Install on Debian=<br />
At some point I will have to re-write this how-to. I used this as a base:<br />
https://linuxhint.com/install_kvm_debian_10/<br />
<br />
Old:<br />
https://linuxhint.com/install_kvm_debian_10/<br />
Some network advanced stuff:<br />
https://www.linuxtechi.com/install-configure-kvm-debian-10-buster/<br />
<br />
sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils<br />
sudo systemctl status libvirtd.service<br />
sudo virsh net-list --all<br />
sudo modprobe vhost_net<br />
<br />
As we can see in above output, default network is inactive so to make it active and auto-restart across the reboot by running the following commands,<br />
sudo virsh net-start default<br />
sudo virsh net-autostart default<br />
<br />
If you want to offload the mechanism of “virtio-net” and want to improve the performance of KVM VMs then add “vhost_net” kernel module on your system using the beneath command,<br />
sudo modprobe vhost_net<br />
echo "vhost_net" | sudo tee -a /etc/modules<br />
lsmod | grep vhost<br />
<br />
vhost_net 24576 0<br />
vhost 49152 1 vhost_net<br />
tap 28672 1 vhost_net<br />
tun 49152 2 vhost_net<br />
<br />
Note: If you want a normal user to use virsh commands then add that user to libvirt and libvirt-qemu group using the following commands<br />
sudo adduser pkumar libvirt<br />
sudo adduser pkumar libvirt-qemu<br />
<br />
To refresh or reload group membership run the followings,<br />
newgrp libvirt<br />
newgrp libvirt-qemu<br />
<br />
=Allow ping in host=<br />
sudo groupadd unpriv_ping<br />
sudo usermod --append --groups unpriv_ping vissie<br />
getent group unpriv_ping | cut -f 3 -d :<br />
#111<br />
sudo vim /etc/sysctl.conf<br />
...<br />
net.ipv4.ping_group_range = 1003 1003<br />
<br />
...<br />
sysctl -p<br />
<br />
or<br />
<br />
sudo sysctl -w net.ipv4.ping_group_range='0 2147483647'<br />
<br />
=Create HDDs=<br />
# create a file "disk_image" with format qcow2 and 40GB of max space<br />
qemu-img create -f qcow2 disk_image.img 40G<br />
<br />
=Running a VM=<br />
sudo qemu-system-x86_64 -vga qxl -enable-kvm -m 2048 -smp 2 -cpu host -soundhw es1370 -device virtio-mouse-pci -device virtio-keyboard-pci -serial mon:stdio -boot menu=on -net nic -net user,hostfwd=tcp::5555-:22 -hda ./kvmdeb.img<br />
<br />
=Port Forward=<br />
QEMU can forward ports from the host to the guest to enable e.g. connecting from the host to an SSH server running on the guest.<br />
<br />
For example, to bind port 10022 on the host with port 22 (SSH) on the guest, start QEMU with a command like:<br />
qemu-system-x86_64 disk_image -nic user,hostfwd=tcp::10022-:22<br />
<br />
=SPICE=<br />
https://www.linux-kvm.org/page/SPICE<br />
<br />
sudo apt install spice-client-gtk<br />
<br />
You wanted copy and paste between host and guest right? ;)<br />
<br />
We need to add a virtio-serial device to the guest, and open a port for the spice vdagent. We also need to install the spice vdagent in guest. Be sure the agent is running (and for future, started automatically).<br />
<br />
First the guest side, since the guest is running.<br />
sudo apt install xserver-xorg-video-qxl spice-vdagent qemu-guest-agent<br />
sudo systemctl start spice-vdagent<br />
sudo systemctl enable spice-vdagent<br />
<br />
<br />
spicy -h 127.0.0.1 -p 5900<br />
<br />
=VNC=<br />
sudo apt install tigervnc-viewer<br />
<br />
sudo qemu-system-x86_64 -vga qxl -enable-kvm -m 2048 -smp 2 -cpu host -soundhw es1370 -device virtio-mouse-pci -device virtio-keyboard-pci -serial mon:stdio -boot menu=on -net nic -net user,hostfwd=tcp::5555-:22 -hda ./kvmdeb.img -vnc 127.0.0.1:0<br />
<br />
sudo netstat -npl | grep qemu<br />
vncviewer 127.0.0.1:0<br />
<br />
=Some commands=<br />
==Working with domains==<br />
virsh list --all<br />
virsh start server01<br />
virsh vncdisplay server01<br />
<br />
==List all supported os-variants==<br />
apt-get install libosinfo-bin<br />
osinfo-query os<br />
<br />
==Start a install==<br />
sudo virt-install --name kvmdeb \<br />
--os-type linux \<br />
--os-variant debian10 \<br />
--ram 2048 \<br />
--disk /kvm/disk/kvmdeb.img,device=disk,bus=virtio,size=20,format=qcow2 \<br />
--graphics vnc,listen=0.0.0.0 \<br />
--noautoconsole \<br />
--hvm \<br />
--cdrom /kvm/iso/debian-10.5.0-amd64-netinst.iso \<br />
--boot cdrom,hd<br />
<br />
==Stop a running domain==<br />
virsh managedsave kvmdeb --verbose<br />
<br />
<br />
=GUI=<br />
Try the GUI stuff some time....<br />
<br />
==virt-manager==<br />
virt-manager <br />
<br />
==Spice==<br />
sudo apt install virt-viewer</div>Vissiehttps://vissie.com/wiki_new/index.php?title=Mail&diff=26582Mail2021-01-12T20:34:43Z<p>Vissie: /* exim */</p>
<hr />
<div>= Setup sending mail from Debian =<br />
<br />
== exim ==<br />
<br />
Generally, the Debian Exim 4 packages are configured through debconf. The install prompts for questions during package installation, and your initial Exim configuration is created from your answers. You can repeat the configuration process at any time by invoking:<br />
sudo apt-get install exim4<br />
sudo dpkg-reconfigure exim4-config<br />
<br />
For me to use my internet email server I used these settings:<br />
<br />
Choose "internet site; mail send and received directly using SMTP "<br />
Set to "domain.com" for "System mail name:". (look in /etc/hosts)<br />
Set to "127.0.0.1; ::1" for "IP-addresses to listen on for incoming SMTP connections" to refuse external connections.<br />
Leave as empty for "Other destinations for which mail is accepted:".<br />
Leave as empty for "Machines to relay mail for:".<br />
<br />
The authentication information for the external SMTP service is stored in /etc/exim4/passwd.client. Run<br />
<br />
vim /etc/exim4/passwd.client<br />
<br />
*.google.com:SMTPAccountName@gmail.com:y0uRpaSsw0RD<br />
or<br />
mail.yourdreamhostdomain.com:user@yourdreamhostdomain.com:S0m3S3cur3P4ssW0rd<br />
<br />
For aliases edit /etc/aliases<br />
root: mail.domain.com<br />
<br />
To test<br />
echo "this is a test" | mail -s "from comandline" someone@somewhere.com [This only is you have postfix installed... ]<br />
or<br />
echo "This is my body" | mailx -a "From: Foo Bar <from@me.com>" -s "My sybject" "me@me.com"<br />
<br />
== postfix ==<br />
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-debian-9<br />
<br />
= Things to check if you have issues =<br />
== Log ==<br />
Do look at what is happening in the log. Trust me, you want to know.<br />
tail -f /var/log/exim4/mainlog<br />
If you having issues, lets say that your emails is not going out. It could be that messages is stuck. It could also happen (like with me) that Exim has locked your IP thus no messages will go out. Clean the que!<br />
Remove all messages from the db<br />
rm /var/spool/exim4/db/*<br />
<br />
<br />
If you get "Mailing to remote domains not supported": This is because Exim is by default configured to only send mail locally. You need to allow Exim to send email to other servers. However do not allow Exim to relay email as this will allow spammers to use your server to send email.<br />
sudo dpkg-reconfigure exim4-config<br />
<br />
== Unfreeze messages in Exim queue ==<br />
To process all **frozen** messages in the Exim queue use this command:<br />
mailq | grep frozen | awk '{print $3}' | xargs exim -v -M</div>Vissiehttps://vissie.com/wiki_new/index.php?title=KVM&diff=26581KVM2021-01-12T14:47:36Z<p>Vissie: /* SPICE */</p>
<hr />
<div>=Install on Debian=<br />
https://linuxhint.com/install_kvm_debian_10/<br />
Some network advanced stuff:<br />
https://www.linuxtechi.com/install-configure-kvm-debian-10-buster/<br />
<br />
sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils<br />
sudo systemctl status libvirtd.service<br />
sudo virsh net-list --all<br />
sudo modprobe vhost_net<br />
<br />
As we can see in above output, default network is inactive so to make it active and auto-restart across the reboot by running the following commands,<br />
sudo virsh net-start default<br />
sudo virsh net-autostart default<br />
<br />
If you want to offload the mechanism of “virtio-net” and want to improve the performance of KVM VMs then add “vhost_net” kernel module on your system using the beneath command,<br />
sudo modprobe vhost_net<br />
echo "vhost_net" | sudo tee -a /etc/modules<br />
lsmod | grep vhost<br />
<br />
vhost_net 24576 0<br />
vhost 49152 1 vhost_net<br />
tap 28672 1 vhost_net<br />
tun 49152 2 vhost_net<br />
<br />
Note: If you want a normal user to use virsh commands then add that user to libvirt and libvirt-qemu group using the following commands<br />
sudo adduser pkumar libvirt<br />
sudo adduser pkumar libvirt-qemu<br />
<br />
To refresh or reload group membership run the followings,<br />
newgrp libvirt<br />
newgrp libvirt-qemu<br />
<br />
=Allow ping in host=<br />
sudo groupadd unpriv_ping<br />
sudo usermod --append --groups unpriv_ping vissie<br />
getent group unpriv_ping | cut -f 3 -d :<br />
#111<br />
sudo vim /etc/sysctl.conf<br />
...<br />
net.ipv4.ping_group_range = 1003 1003<br />
<br />
...<br />
sysctl -p<br />
<br />
or<br />
<br />
sudo sysctl -w net.ipv4.ping_group_range='0 2147483647'<br />
<br />
=Create HDDs=<br />
# create a file "disk_image" with format qcow2 and 40GB of max space<br />
qemu-img create -f qcow2 disk_image.img 40G<br />
<br />
=Running a VM=<br />
sudo qemu-system-x86_64 -vga qxl -enable-kvm -m 2048 -smp 2 -cpu host -soundhw es1370 -device virtio-mouse-pci -device virtio-keyboard-pci -serial mon:stdio -boot menu=on -net nic -net user,hostfwd=tcp::5555-:22 -hda ./kvmdeb.img<br />
<br />
=Port Forward=<br />
QEMU can forward ports from the host to the guest to enable e.g. connecting from the host to an SSH server running on the guest.<br />
<br />
For example, to bind port 10022 on the host with port 22 (SSH) on the guest, start QEMU with a command like:<br />
qemu-system-x86_64 disk_image -nic user,hostfwd=tcp::10022-:22<br />
<br />
=SPICE=<br />
https://www.linux-kvm.org/page/SPICE<br />
<br />
sudo apt install spice-client-gtk<br />
<br />
You wanted copy and paste between host and guest right? ;)<br />
<br />
We need to add a virtio-serial device to the guest, and open a port for the spice vdagent. We also need to install the spice vdagent in guest. Be sure the agent is running (and for future, started automatically).<br />
<br />
First the guest side, since the guest is running.<br />
sudo apt install xserver-xorg-video-qxl spice-vdagent qemu-guest-agent<br />
sudo systemctl start spice-vdagent<br />
sudo systemctl enable spice-vdagent<br />
<br />
<br />
spicy -h 127.0.0.1 -p 5900<br />
<br />
=VNC=<br />
sudo apt install tigervnc-viewer<br />
<br />
sudo qemu-system-x86_64 -vga qxl -enable-kvm -m 2048 -smp 2 -cpu host -soundhw es1370 -device virtio-mouse-pci -device virtio-keyboard-pci -serial mon:stdio -boot menu=on -net nic -net user,hostfwd=tcp::5555-:22 -hda ./kvmdeb.img -vnc 127.0.0.1:0<br />
<br />
sudo netstat -npl | grep qemu<br />
vncviewer 127.0.0.1:0<br />
<br />
=Some commands=<br />
==Working with domains==<br />
virsh list --all<br />
virsh start server01<br />
virsh vncdisplay server01<br />
<br />
==List all supported os-variants==<br />
apt-get install libosinfo-bin<br />
osinfo-query os<br />
<br />
==Start a install==<br />
sudo virt-install --name kvmdeb \<br />
--os-type linux \<br />
--os-variant debian10 \<br />
--ram 2048 \<br />
--disk /kvm/disk/kvmdeb.img,device=disk,bus=virtio,size=20,format=qcow2 \<br />
--graphics vnc,listen=0.0.0.0 \<br />
--noautoconsole \<br />
--hvm \<br />
--cdrom /kvm/iso/debian-10.5.0-amd64-netinst.iso \<br />
--boot cdrom,hd<br />
<br />
==Stop a running domain==<br />
virsh managedsave kvmdeb --verbose<br />
<br />
<br />
=GUI=<br />
Try the GUI stuff some time....<br />
<br />
==virt-manager==<br />
virt-manager <br />
<br />
==Spice==<br />
sudo apt install virt-viewer</div>Vissiehttps://vissie.com/wiki_new/index.php?title=KVM&diff=26580KVM2021-01-08T11:52:01Z<p>Vissie: /* SPICE */</p>
<hr />
<div>=Install on Debian=<br />
https://linuxhint.com/install_kvm_debian_10/<br />
Some network advanced stuff:<br />
https://www.linuxtechi.com/install-configure-kvm-debian-10-buster/<br />
<br />
sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils<br />
sudo systemctl status libvirtd.service<br />
sudo virsh net-list --all<br />
sudo modprobe vhost_net<br />
<br />
As we can see in above output, default network is inactive so to make it active and auto-restart across the reboot by running the following commands,<br />
sudo virsh net-start default<br />
sudo virsh net-autostart default<br />
<br />
If you want to offload the mechanism of “virtio-net” and want to improve the performance of KVM VMs then add “vhost_net” kernel module on your system using the beneath command,<br />
sudo modprobe vhost_net<br />
echo "vhost_net" | sudo tee -a /etc/modules<br />
lsmod | grep vhost<br />
<br />
vhost_net 24576 0<br />
vhost 49152 1 vhost_net<br />
tap 28672 1 vhost_net<br />
tun 49152 2 vhost_net<br />
<br />
Note: If you want a normal user to use virsh commands then add that user to libvirt and libvirt-qemu group using the following commands<br />
sudo adduser pkumar libvirt<br />
sudo adduser pkumar libvirt-qemu<br />
<br />
To refresh or reload group membership run the followings,<br />
newgrp libvirt<br />
newgrp libvirt-qemu<br />
<br />
=Allow ping in host=<br />
sudo groupadd unpriv_ping<br />
sudo usermod --append --groups unpriv_ping vissie<br />
getent group unpriv_ping | cut -f 3 -d :<br />
#111<br />
sudo vim /etc/sysctl.conf<br />
...<br />
net.ipv4.ping_group_range = 1003 1003<br />
<br />
...<br />
sysctl -p<br />
<br />
or<br />
<br />
sudo sysctl -w net.ipv4.ping_group_range='0 2147483647'<br />
<br />
=Create HDDs=<br />
# create a file "disk_image" with format qcow2 and 40GB of max space<br />
qemu-img create -f qcow2 disk_image.img 40G<br />
<br />
=Running a VM=<br />
sudo qemu-system-x86_64 -vga qxl -enable-kvm -m 2048 -smp 2 -cpu host -soundhw es1370 -device virtio-mouse-pci -device virtio-keyboard-pci -serial mon:stdio -boot menu=on -net nic -net user,hostfwd=tcp::5555-:22 -hda ./kvmdeb.img<br />
<br />
=Port Forward=<br />
QEMU can forward ports from the host to the guest to enable e.g. connecting from the host to an SSH server running on the guest.<br />
<br />
For example, to bind port 10022 on the host with port 22 (SSH) on the guest, start QEMU with a command like:<br />
qemu-system-x86_64 disk_image -nic user,hostfwd=tcp::10022-:22<br />
<br />
=SPICE=<br />
https://www.linux-kvm.org/page/SPICE<br />
<br />
sudo apt install spice-client-gtk<br />
<br />
spicy -h 127.0.0.1 -p 5900<br />
<br />
=VNC=<br />
sudo apt install tigervnc-viewer<br />
<br />
sudo qemu-system-x86_64 -vga qxl -enable-kvm -m 2048 -smp 2 -cpu host -soundhw es1370 -device virtio-mouse-pci -device virtio-keyboard-pci -serial mon:stdio -boot menu=on -net nic -net user,hostfwd=tcp::5555-:22 -hda ./kvmdeb.img -vnc 127.0.0.1:0<br />
<br />
sudo netstat -npl | grep qemu<br />
vncviewer 127.0.0.1:0<br />
<br />
=Some commands=<br />
==Working with domains==<br />
virsh list --all<br />
virsh start server01<br />
virsh vncdisplay server01<br />
<br />
==List all supported os-variants==<br />
apt-get install libosinfo-bin<br />
osinfo-query os<br />
<br />
==Start a install==<br />
sudo virt-install --name kvmdeb \<br />
--os-type linux \<br />
--os-variant debian10 \<br />
--ram 2048 \<br />
--disk /kvm/disk/kvmdeb.img,device=disk,bus=virtio,size=20,format=qcow2 \<br />
--graphics vnc,listen=0.0.0.0 \<br />
--noautoconsole \<br />
--hvm \<br />
--cdrom /kvm/iso/debian-10.5.0-amd64-netinst.iso \<br />
--boot cdrom,hd<br />
<br />
==Stop a running domain==<br />
virsh managedsave kvmdeb --verbose<br />
<br />
<br />
=GUI=<br />
Try the GUI stuff some time....<br />
<br />
==virt-manager==<br />
virt-manager <br />
<br />
==Spice==<br />
sudo apt install virt-viewer</div>Vissiehttps://vissie.com/wiki_new/index.php?title=KVM&diff=26579KVM2021-01-08T11:41:17Z<p>Vissie: </p>
<hr />
<div>=Install on Debian=<br />
https://linuxhint.com/install_kvm_debian_10/<br />
Some network advanced stuff:<br />
https://www.linuxtechi.com/install-configure-kvm-debian-10-buster/<br />
<br />
sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils<br />
sudo systemctl status libvirtd.service<br />
sudo virsh net-list --all<br />
sudo modprobe vhost_net<br />
<br />
As we can see in above output, default network is inactive so to make it active and auto-restart across the reboot by running the following commands,<br />
sudo virsh net-start default<br />
sudo virsh net-autostart default<br />
<br />
If you want to offload the mechanism of “virtio-net” and want to improve the performance of KVM VMs then add “vhost_net” kernel module on your system using the beneath command,<br />
sudo modprobe vhost_net<br />
echo "vhost_net" | sudo tee -a /etc/modules<br />
lsmod | grep vhost<br />
<br />
vhost_net 24576 0<br />
vhost 49152 1 vhost_net<br />
tap 28672 1 vhost_net<br />
tun 49152 2 vhost_net<br />
<br />
Note: If you want a normal user to use virsh commands then add that user to libvirt and libvirt-qemu group using the following commands<br />
sudo adduser pkumar libvirt<br />
sudo adduser pkumar libvirt-qemu<br />
<br />
To refresh or reload group membership run the followings,<br />
newgrp libvirt<br />
newgrp libvirt-qemu<br />
<br />
=Allow ping in host=<br />
sudo groupadd unpriv_ping<br />
sudo usermod --append --groups unpriv_ping vissie<br />
getent group unpriv_ping | cut -f 3 -d :<br />
#111<br />
sudo vim /etc/sysctl.conf<br />
...<br />
net.ipv4.ping_group_range = 1003 1003<br />
<br />
...<br />
sysctl -p<br />
<br />
or<br />
<br />
sudo sysctl -w net.ipv4.ping_group_range='0 2147483647'<br />
<br />
=Create HDDs=<br />
# create a file "disk_image" with format qcow2 and 40GB of max space<br />
qemu-img create -f qcow2 disk_image.img 40G<br />
<br />
=Running a VM=<br />
sudo qemu-system-x86_64 -vga qxl -enable-kvm -m 2048 -smp 2 -cpu host -soundhw es1370 -device virtio-mouse-pci -device virtio-keyboard-pci -serial mon:stdio -boot menu=on -net nic -net user,hostfwd=tcp::5555-:22 -hda ./kvmdeb.img<br />
<br />
=Port Forward=<br />
QEMU can forward ports from the host to the guest to enable e.g. connecting from the host to an SSH server running on the guest.<br />
<br />
For example, to bind port 10022 on the host with port 22 (SSH) on the guest, start QEMU with a command like:<br />
qemu-system-x86_64 disk_image -nic user,hostfwd=tcp::10022-:22<br />
<br />
=SPICE=<br />
sudo apt install spice-client-gtk<br />
=VNC=<br />
sudo apt install tigervnc-viewer<br />
<br />
sudo qemu-system-x86_64 -vga qxl -enable-kvm -m 2048 -smp 2 -cpu host -soundhw es1370 -device virtio-mouse-pci -device virtio-keyboard-pci -serial mon:stdio -boot menu=on -net nic -net user,hostfwd=tcp::5555-:22 -hda ./kvmdeb.img -vnc 127.0.0.1:0<br />
<br />
sudo netstat -npl | grep qemu<br />
vncviewer 127.0.0.1:0<br />
<br />
=Some commands=<br />
==Working with domains==<br />
virsh list --all<br />
virsh start server01<br />
virsh vncdisplay server01<br />
<br />
==List all supported os-variants==<br />
apt-get install libosinfo-bin<br />
osinfo-query os<br />
<br />
==Start a install==<br />
sudo virt-install --name kvmdeb \<br />
--os-type linux \<br />
--os-variant debian10 \<br />
--ram 2048 \<br />
--disk /kvm/disk/kvmdeb.img,device=disk,bus=virtio,size=20,format=qcow2 \<br />
--graphics vnc,listen=0.0.0.0 \<br />
--noautoconsole \<br />
--hvm \<br />
--cdrom /kvm/iso/debian-10.5.0-amd64-netinst.iso \<br />
--boot cdrom,hd<br />
<br />
==Stop a running domain==<br />
virsh managedsave kvmdeb --verbose<br />
<br />
<br />
=GUI=<br />
Try the GUI stuff some time....<br />
<br />
==virt-manager==<br />
virt-manager <br />
<br />
==Spice==<br />
sudo apt install virt-viewer</div>Vissiehttps://vissie.com/wiki_new/index.php?title=KVM&diff=26578KVM2021-01-08T06:40:59Z<p>Vissie: /* Create HDDs */</p>
<hr />
<div>=Install on Debian=<br />
https://linuxhint.com/install_kvm_debian_10/<br />
Some network advanced stuff:<br />
https://www.linuxtechi.com/install-configure-kvm-debian-10-buster/<br />
<br />
sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils<br />
sudo systemctl status libvirtd.service<br />
sudo virsh net-list --all<br />
sudo modprobe vhost_net<br />
<br />
As we can see in above output, default network is inactive so to make it active and auto-restart across the reboot by running the following commands,<br />
sudo virsh net-start default<br />
sudo virsh net-autostart default<br />
<br />
If you want to offload the mechanism of “virtio-net” and want to improve the performance of KVM VMs then add “vhost_net” kernel module on your system using the beneath command,<br />
sudo modprobe vhost_net<br />
echo "vhost_net" | sudo tee -a /etc/modules<br />
lsmod | grep vhost<br />
<br />
vhost_net 24576 0<br />
vhost 49152 1 vhost_net<br />
tap 28672 1 vhost_net<br />
tun 49152 2 vhost_net<br />
<br />
Note: If you want a normal user to use virsh commands then add that user to libvirt and libvirt-qemu group using the following commands<br />
sudo adduser pkumar libvirt<br />
sudo adduser pkumar libvirt-qemu<br />
<br />
To refresh or reload group membership run the followings,<br />
newgrp libvirt<br />
newgrp libvirt-qemu<br />
<br />
=Allow ping in host=<br />
sudo groupadd unpriv_ping<br />
sudo usermod --append --groups unpriv_ping vissie<br />
getent group unpriv_ping | cut -f 3 -d :<br />
#111<br />
sudo vim /etc/sysctl.conf<br />
...<br />
net.ipv4.ping_group_range = 1003 1003<br />
<br />
...<br />
sysctl -p<br />
<br />
or<br />
<br />
sudo sysctl -w net.ipv4.ping_group_range='0 2147483647'<br />
<br />
=Create HDDs=<br />
# create a file "disk_image" with format qcow2 and 40GB of max space<br />
qemu-img create -f qcow2 disk_image.img 40G<br />
<br />
=Running a VM=<br />
sudo qemu-system-x86_64 -vga qxl -enable-kvm -m 2048 -smp 2 -cpu host -soundhw es1370 -device virtio-mouse-pci -device virtio-keyboard-pci -serial mon:stdio -boot menu=on -net nic -net user,hostfwd=tcp::5555-:22 -hda ./kvmdeb.img<br />
<br />
=Port Forward=<br />
QEMU can forward ports from the host to the guest to enable e.g. connecting from the host to an SSH server running on the guest.<br />
<br />
For example, to bind port 10022 on the host with port 22 (SSH) on the guest, start QEMU with a command like:<br />
qemu-system-x86_64 disk_image -nic user,hostfwd=tcp::10022-:22<br />
<br />
=VNC=<br />
sudo apt install tigervnc-viewer<br />
<br />
sudo qemu-system-x86_64 -vga qxl -enable-kvm -m 2048 -smp 2 -cpu host -soundhw es1370 -device virtio-mouse-pci -device virtio-keyboard-pci -serial mon:stdio -boot menu=on -net nic -net user,hostfwd=tcp::5555-:22 -hda ./kvmdeb.img -vnc 127.0.0.1:0<br />
<br />
sudo netstat -npl | grep qemu<br />
vncviewer 127.0.0.1:0<br />
<br />
=Some commands=<br />
==Working with domains==<br />
virsh list --all<br />
virsh start server01<br />
virsh vncdisplay server01<br />
<br />
==List all supported os-variants==<br />
apt-get install libosinfo-bin<br />
osinfo-query os<br />
<br />
==Start a install==<br />
sudo virt-install --name kvmdeb \<br />
--os-type linux \<br />
--os-variant debian10 \<br />
--ram 2048 \<br />
--disk /kvm/disk/kvmdeb.img,device=disk,bus=virtio,size=20,format=qcow2 \<br />
--graphics vnc,listen=0.0.0.0 \<br />
--noautoconsole \<br />
--hvm \<br />
--cdrom /kvm/iso/debian-10.5.0-amd64-netinst.iso \<br />
--boot cdrom,hd<br />
<br />
==Stop a running domain==<br />
virsh managedsave kvmdeb --verbose<br />
<br />
<br />
=GUI=<br />
Try the GUI stuff some time....<br />
<br />
==virt-manager==<br />
virt-manager <br />
<br />
==Spice==<br />
sudo apt install virt-viewer</div>Vissiehttps://vissie.com/wiki_new/index.php?title=KVM&diff=26577KVM2021-01-08T06:25:24Z<p>Vissie: /* Install on Debian */</p>
<hr />
<div>=Install on Debian=<br />
https://linuxhint.com/install_kvm_debian_10/<br />
Some network advanced stuff:<br />
https://www.linuxtechi.com/install-configure-kvm-debian-10-buster/<br />
<br />
sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils<br />
sudo systemctl status libvirtd.service<br />
sudo virsh net-list --all<br />
sudo modprobe vhost_net<br />
<br />
As we can see in above output, default network is inactive so to make it active and auto-restart across the reboot by running the following commands,<br />
sudo virsh net-start default<br />
sudo virsh net-autostart default<br />
<br />
If you want to offload the mechanism of “virtio-net” and want to improve the performance of KVM VMs then add “vhost_net” kernel module on your system using the beneath command,<br />
sudo modprobe vhost_net<br />
echo "vhost_net" | sudo tee -a /etc/modules<br />
lsmod | grep vhost<br />
<br />
vhost_net 24576 0<br />
vhost 49152 1 vhost_net<br />
tap 28672 1 vhost_net<br />
tun 49152 2 vhost_net<br />
<br />
Note: If you want a normal user to use virsh commands then add that user to libvirt and libvirt-qemu group using the following commands<br />
sudo adduser pkumar libvirt<br />
sudo adduser pkumar libvirt-qemu<br />
<br />
To refresh or reload group membership run the followings,<br />
newgrp libvirt<br />
newgrp libvirt-qemu<br />
<br />
=Allow ping in host=<br />
sudo groupadd unpriv_ping<br />
sudo usermod --append --groups unpriv_ping vissie<br />
getent group unpriv_ping | cut -f 3 -d :<br />
#111<br />
sudo vim /etc/sysctl.conf<br />
...<br />
net.ipv4.ping_group_range = 1003 1003<br />
<br />
...<br />
sysctl -p<br />
<br />
or<br />
<br />
sudo sysctl -w net.ipv4.ping_group_range='0 2147483647'<br />
<br />
=Create HDDs=<br />
# create a file "disk_image" with format qcow2 and 40GB of max space<br />
qemu-img create -f qcow2 disk_image 40G<br />
<br />
=Running a VM=<br />
sudo qemu-system-x86_64 -vga qxl -enable-kvm -m 2048 -smp 2 -cpu host -soundhw es1370 -device virtio-mouse-pci -device virtio-keyboard-pci -serial mon:stdio -boot menu=on -net nic -net user,hostfwd=tcp::5555-:22 -hda ./kvmdeb.img<br />
<br />
=Port Forward=<br />
QEMU can forward ports from the host to the guest to enable e.g. connecting from the host to an SSH server running on the guest.<br />
<br />
For example, to bind port 10022 on the host with port 22 (SSH) on the guest, start QEMU with a command like:<br />
qemu-system-x86_64 disk_image -nic user,hostfwd=tcp::10022-:22<br />
<br />
=VNC=<br />
sudo apt install tigervnc-viewer<br />
<br />
sudo qemu-system-x86_64 -vga qxl -enable-kvm -m 2048 -smp 2 -cpu host -soundhw es1370 -device virtio-mouse-pci -device virtio-keyboard-pci -serial mon:stdio -boot menu=on -net nic -net user,hostfwd=tcp::5555-:22 -hda ./kvmdeb.img -vnc 127.0.0.1:0<br />
<br />
sudo netstat -npl | grep qemu<br />
vncviewer 127.0.0.1:0<br />
<br />
=Some commands=<br />
==Working with domains==<br />
virsh list --all<br />
virsh start server01<br />
virsh vncdisplay server01<br />
<br />
==List all supported os-variants==<br />
apt-get install libosinfo-bin<br />
osinfo-query os<br />
<br />
==Start a install==<br />
sudo virt-install --name kvmdeb \<br />
--os-type linux \<br />
--os-variant debian10 \<br />
--ram 2048 \<br />
--disk /kvm/disk/kvmdeb.img,device=disk,bus=virtio,size=20,format=qcow2 \<br />
--graphics vnc,listen=0.0.0.0 \<br />
--noautoconsole \<br />
--hvm \<br />
--cdrom /kvm/iso/debian-10.5.0-amd64-netinst.iso \<br />
--boot cdrom,hd<br />
<br />
==Stop a running domain==<br />
virsh managedsave kvmdeb --verbose<br />
<br />
<br />
=GUI=<br />
Try the GUI stuff some time....<br />
<br />
==virt-manager==<br />
virt-manager <br />
<br />
==Spice==<br />
sudo apt install virt-viewer</div>Vissie