#id ... genau ein Html element
.classname ... alle elemente mit dieser klasse
Beispiele:
h1 { color:red}
h2,h3 { color:blue}
.myClass {color:orange}
#myId {color:yellow}
meine Sys/Db admin & Developper Notitzen - wer Rechtschreibfehler findet darf sie behalten ... my Sys/Db Admin and developper notes - I don't care about typos
sfdisk -l
lsblk -f
cat /proc/partitions
lshw -class disk -short
df -h
du -h
| task | VisualStudio | Eclipse | |
|---|---|---|---|
| go to definition | F12 | F3 | |
| last location | CRT - | CRT Q | |
| task | c# | java | |
|---|---|---|---|
| override | override | @Override | |
| Datum | DateTime | Date | |
# 1024x768 59.92 Hz (CVT 0.79M3) hsync: 47.82 kHz; pclk: 63.50 MHz Modeline "1024x768_60.00" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
xrandr --newmode "1024x768_60.00" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync xrandr --addmode DVI-0 "1024x768_60.00" xrandr --output DVI-0 --mode "1024x768_60.00"
| <html> | |
| <head> | |
| <meta name="viewport" content="width=device-width" /> | |
| <title>Schalter</title> | |
| </head> | |
| GPIO 23 schalten: | |
| <form method="get" action="pool.php"> | |
| <input type="submit" value="Licht ein" name="Lichtein"> | |
| <input type="submit" value="Licht aus" name="Lichtaus"> | |
| </form> | |
| <?php | |
| $modeon18 = exec("gpio mode 23 out"); | |
| if(isset($_GET["Lichtein"])){ | |
| $val = exec("gpio write 23 1"); | |
| echo "Licht an"; | |
| } | |
| else if(isset($_GET["Lichtaus"])){ | |
| $val = exec("gpio write 23 0"); | |
| echo "Licht aus"; | |
| } | |
| echo "<hr/>"; | |
| $val = exec("gpio read 23"); | |
| echo " gpio23 = $val "; | |
| echo " <hr />" | |
| ?> | |
| </body> | |
| </html> |
define('FS_METHOD','direct');
chown www-data:www-data wordpress -R
Apache, php installieren und testen:sudo apt install apache2 php libapache2-mod-php -y
sudo service apache2 restart
cd /var/www/html/ create index.php:
<?php echo "hello world"; ?> <?php echo date('Y-m-d H:i:s'); ?> <?php phpinfo(); ?>
mysql installieren
sudo apt install mysql-server php-mysqlphpmyadmin -ysudo wget http://wordpress.org/latest.tar.gz sudo tar xzf latest.tar.gz=> test localhost/wordpress Directory sollte etwas anzeigensudo chown -R www-data: .sudo mysql_secure_installation
Datenbank anlegensudo mysql -uroot -pcreate database wordpress;GRANT ALL PRIVILEGES ON wordpress.* TO 'root'@'localhost' IDENTIFIED BY 'PASSWORD';FLUSH PRIVILEGES;Exit the MariaDB database management tool with Ctrl + D.
Wordpress installieren
initial Seite wordpress aufrufen und db daten eingeben