Autor: Peter Kilian
windows for linux admins use ls & dir
echo dir %1 > %systemroot%\system32\ls.bat One command give you the posibility to use ls in the future instead of dir inside windows useful for linux admins runas /user:administrator cmd > %systemroot%\system32\sudo.bat give you the possibility to start the admin shell with the sudo command
Install Java 8 or Java 9 on Debian
add the oracle ppa echo „deb https://ppa.launchpad.net/webupd8team/java/ubuntu xenial main“ | tee /etc/apt/sources.list.d/webupd8team-java.list echo „deb-src https://ppa.launchpad.net/webupd8team/java/ubuntu xenial main“ | tee -a /etc/apt/sources.list.d/webupd8team-java.list apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv-keys EEA14886 apt-get update Java 8 echo oracle-java8-installer shared/accepted-oracle-licence-v1-1 boolean true | sudo /usr/bin/debconf-set-selections apt-get install oracle-java8-installer sudo apt-get install oracle-java8-set-default Java 9 echo oracle-java9-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections weiterlesen…
Archive unter Linux (tar, gz, bz2, zip, xz)
unpack (x = extract, f = file, v = verbose) tar xf archive.tar tar xf archive.tar.xz tar xfvz archive.tar.gz tar xfvj archiv.tar.bz2 unzip archiv.zip bunzip2 file.bz2 tar Dateien/Ordner in ein Archiv packen: tar cfv archiv.tar inhalt1 inhalt2 inhalt3 (c = create) Komprimierte Archive erstellen: tar cfzv archiv.tar inhalt1 inhalt2 inhalt3 (z = komprimieren) Inhalt eines weiterlesen…
Robocopy backup Synchronise from Directorys with Robocopy
Oft will man seine Dateien sichern, und es kommt zwischen drin zu Fehlermeldung wie Dateipfad zu lang, man kann sich jetzt teure Backup tools holen oder man nutzt das Microsoft Bordmittel Robocopy welches zudem auf jedem Windows Rechner vorhanden ist. Anleitung Blau: Befehle zum Kopieren Rot: Elemente, die individuell ersetz werden müssen. (Den Dateipfad weiterlesen…
SCP File Copy Server 2 Server
scp -r /var/www root@example.com:/var/www
Setup MySQL
MySQL Installation sudo apt-get -y install mysql-server mysql-client be sure to be root install mysql server + client Secure the mysql Installation sudo mysql_secure_installation Enter password for user root: <– Enter the MySQL root password Press y|Y for Yes, any other key for No: <– Press y if you want this function or press Enter otherwise. Using existing password weiterlesen…
Ubuntu MySQL 5.7 fix after Ubuntu Upgrade
There are bugs with MySQL after Ubuntu Upgrade. (4 new server installations) Bring it to work in just one line of code: sudo mv /etc/mysql/my.cnf /etc/mysql/my.cnf.bak && sudo rm -r /etc/mysql/mysql.conf.d/ && sudo mv /etc/mysql/debian.cnf /etc/mysql/debian.cnf.bak && sudo apt purge mysql-server mysql-server-5.7 mysql-server-core-5.7 && sudo apt install mysql-server sudo ln -s /etc/mysql/mysql.conf.d /etc/mysql/conf.d && sudo service mysql weiterlesen…
Special Thanks to
Thanks for the Invitation to become a part of your Team to develop myself and learn SAP as part of your Team. https://mindsquare.de Thank you Mark Zuckerberg that you Provide us the Platform to stay in Contact with each other. https://www.facebook.com/ Special Thanks to: thanks for the Tensorflow project what help us understand weiterlesen…
remove old kernel’s to increase free diskinodes
less diskinodes? clean up your server by removing old kernels check the ammound of old kernel versions # rpm -q kernel (example output) kernel-2.3.32-642.12.1.el6.x86_64 kernel-2.4.32-643.35.9.el6.x86_64 kernel-2.5.32-644.28.3.el6.x86_64 kernel-2.6.32-647.81.5.el6.x86_64 yum install yum-utils package-cleanup –oldkernels –count=2