rsync --bwlimit=1000 /path/to/source /path/to/dest/
https://www.cyberciti.biz/faq/how-to-set-keep-rsync-from-using-all-your-bandwidth-on-linux-unix/
aptitude install dnsutils
Problem
E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
Rozwiązanie
apt-get --allow-releaseinfo-change update
aptitude install make libmodule-install-perl dmidecode libxml-simple-perl libcompress-zlib-perl libnet-ip-perl libwww-perl libdigest-md5-perl libdata-uuid-perl libcrypt-ssleay-perl libnet-snmp-perl libproc-pid-file-perl libproc-daemon-perl net-tools libsys-syslog-perl pciutils smartmontools read-edid nmap libnet-netmask-perl
wget http://path.to.ocsagent/Ocsinventory-Unix-Agent-2.8.1.tar.gz
tar -xvzf Ocsinventory-Unix-Agent-2.8.1.tar.gz
cd Ocsinventory-Unix-Agent-2.8.1
perl Makefile.PL make make install
Where do you want to write the configuration file? /etc/ocsinventory Specify log file path you want to use? /var/log/ocs_agent.log Do you want disable SSL CA verification configuration option (not recommended) ? [y] Do you want to set CA certificate chain file path ? [n]
1. Packages
apt-get update
apt-get install aptitude sudo vim mc nmap screen make cmake gcc make apache2 libapache2-mod-perl2 libapache-dbi-perl libapache-db-perl libapache2-mod-php mariadb-server mariadb-client software-properties-common php7.3 libapache2-mod-php7.3 php7.3-common php7.3-sqlite3 php7.3-mysql php7.3-gmp php7.3-curl php7.3-mbstring php7.3-gd php7.3-cli php7.3-xml php7.3-zip php7.3-soap php7.3-json php-pclzip git curl perl libxml-simple-perl libcompress-zlib-perl libdbi-perl libdbd-mysql-perl libnet-ip-perl libsoap-lite-perl libio-compress-perl libapache-dbi-perl libapache2-mod-perl2 libapache2-mod-perl2-dev
2. Mysql
sudo mysql_secure_installation
sudo mysql -u root -p
Zobacz całość
http://ftp.br.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-bnx2_20190114-2_all.deb
mkdir /mnt/usb mount /dev/sdb /mnt/usb cp /mnt/usb/firmware-bnx2_20190114-2_all.deb /root/ cd /root PATH=/usr/bin dpkg -i firmware-bnx2_20190114-2_all.deb
vim /etc/apt/sources.list
deb http://deb.debian.org/debian/ buster main deb-src http://deb.debian.org/debian/ buster main
https://debian.pkgs.org/10/debian-nonfree-arm64/firmware-bnx2_20190114-2_all.deb.html
sudo vim /etc/apt/sources.list
deb http://us.archive.ubuntu.com/ubuntu xenial main universe
sudp apt-get update sudp apt-get install mc
Źródło: https://linuxporady.pl/ubuntu-16-04-live-cd-i-instalacja-mc-midnight-commander/
Email delivery error: SSL_connect returned=1 errno=0 state=error: wrong version number
vim config/configuration.yml
comment line "tls: true"
...
email_delivery:
delivery_method: :smtp
smtp_settings:
#tls: true
enable_starttls_auto: true
... Migracja: old.domena.pl -> new.domena.pl
1. Zrobić zrzut bazy z old.domena.pl
mysqldump -p --user=username database_name > zrzut_bazy.sql
2. Zainstalować aktualną wersję redmine na new.domena.pl
Zobacz całość
Settings -> Account -> Add account -> Serach [username] -> Select the roles of the accounts [Administrator] -> Done
vim /etc/security/acronisagent.conf
[username]
Źródło: https://forum.acronis.com/forum/acronis-backup-125/linux-management-server-only-root-can-log
1. Install SVN packages
sudo apt-get install apache2 subversion libapache2-mod-svn libsvn-dev
sudo a2enmod dav sudo a2enmod dav_svn
Zobacz całość
root@testwww:/var/www# aptitude update Hit http://deb.debian.org/debian buster InRelease Get: 1 http://deb.debian.org/debian buster-updates InRelease [51,9 kB] Err http://security.debian.org/debian-security buster/updates InRelease Cannot initiate the connection to debian.map.fastlydns.net:80 (2a04:4e42:62::644). - connect (101: Network is unreachable) Could not connect to debian.map.fastlydns.net:80 (199.232.138.132), connection timed out Cannot initiate the connection to security.debian.org:80 (2a04:4e42:200::644). - connect (101: Network is unreachable) Cannot initiate the connection to security.debian.org:80 (2a04:4e42:400::644). - connect (101: Network is unreachable) Cannot initiate the connection to security.debian.org:80 (2a04:4e42::644). - connect (101: Network is unreachable) Cannot initiate the connection to security.debian.org:80 (2a04:4e42:600::644). - connect (101: Network is unreachable) Could not connect to security.debian.org:80 (151.101.66.132), connection timed out Could not connect to security.debian.org:80 (151.101.194.132), connection timed out Could not connect to security.debian.org:80 (151.101.130.132), connection timed out Could not connect to security.debian.org:80 (151.101.2.132), connection timed out Fetched 51,9 kB in 1min 1s (846 B/s) W: Failed to fetch http://security.debian.org/debian-security/dists/buster/updates/InRelease: Cannot initiate the connection to debian.map.fastlydns.net:80 (2a04:4e42:62::644). - connect (101: Network is unreachable) Could not connect to debian.map.fastlydns.net:80 (199.232.138.132), connection timed out Cannot initiate the connection to security.debian.org:80 (2a04:4e42:200::644). - connect (101: Network is unreachable) Cannot initiate the connection to security.debian.org:80 (2a04:4e42:400::644). - connect (101: Network is unreachable) Cannot initiate the connection to security.debian.org:80 (2a04:4e42::644). - connect (101: Network is unreachable) Cannot initiate the connection to security.debian.org:80 (2a04:4e42:600::644). - connect (101: Network is unreachable) Could not connect to security.debian.org:80 (151.101.66.132), connection timed out Could not connect to security.debian.org:80 (151.101.194.132), connection timed out Could not connect to security.debian.org:80 (151.101.130.132), connection timed out Could not connect to security.debian.org:80 (151.101.2.132), connection timed out W: Some index files failed to download. They have been ignored, or old ones used instead.
Rozwiązanie
chmod o+r /etc/resolv.conf
net rpc -S 192.168.1.100 -U [username]%[password] shutdown -t 1 -f
Źródło: https://stackoverflow.com/questions/9936986/shutdown-windows-machine-from-linux-terminal
vim /etc/netplan/01-netcfg.yaml
network:
version: 2
renderer: networkd
ethernets:
ens3:
dhcp4: no
addresses:
- 192.168.121.199/24
gateway4: 192.168.121.1
nameservers:
addresses: [8.8.8.8, 1.1.1.1]
sudo netplan apply
źródło: https://linuxize.com/post/how-to-configure-static-ip-address-on-ubuntu-18-04/
apt-get update apt-get install software-properties-common apt-add-repository 'deb http://security.debian.org/debian-security stretch/updates main' apt-get update apt-get install openjdk-8-jdk
apt-get update apt-get install aptitude vim nmap mc screen screenfetch dfc sudo unzip rsync rpm gcc make
sudo visudo
username ALL=NOPASSWD:ALL
sudo dpkg-reconfigure locales
Install Java 8
https://blog.cssoft.pl/post/java-8-install-od-debian-10
wget -c https://download.acronis.com/AcronisCyberProtect15/Release/AcronisCyberProtect_15_64-bit.x86_64
chmod +x AcronisCyberProtect_15_64-bit.x86_64 ./AcronisCyberProtect_15_64-bit.x86_64
After instalation use your root credentials to login to admin panel
http://10.20.30.40:9877
Install agent
Linux:
wget -c https://download.acronis.com/AcronisCyberProtect15/Release/AcronisCyberProtect_15_64-bit.x86_64
chmod +x AcronisCyberProtect_15_64-bit.x86_64 ./AcronisCyberProtect_15_64-bit.x86_64
Windows:
https://download.acronis.com/AcronisCyberProtect15/Release/AcronisCyberProtect_15_64-bit.exe
1. Instalacja podstawowych paczek i konfiguracja
apt-get update apt-get install aptitude vim nmap mc screen screenfetch dfc sudo unzip rsync net-tools xvfb cifs-utils libqtwebkit4 ldap-utils libsasl2-modules-gssapi-mit winbind snmp samba odbcinst libodbc1 dpkg-dev
sudo visudo
username ALL=NOPASSWD:ALL
sudo dpkg-reconfigure locales
Zobacz całość
1. Dodaj repo mysql do APT
aptitude update aptitude install gnupg wget https://dev.mysql.com/get/mysql-apt-config_0.8.16-1_all.deb #wget https://dev.mysql.com/get/mysql-apt-config_0.8.13-1_all.deb #dpkg -i mysql-apt-config_0.8.16-1_all.deb dpkg -i mysql-apt-config* aptitude update
2. Zainstaluj MySQL Server
#aptitude install mysql-community-server aptitude install mysql-server
"Use Legacy Authentication Method"
3. Uruchom usługę
systemctl status mysql.service
4. Ustaw hasło roota do mysql
mysql_secure_installation
5. Sprawdzamy info o mysql-server
mysqladmin -u root -p version
https://www.digitalocean.com/community/tutorials/how-to-install-the-latest-mysql-on-debian-10
#https://serverspace.io/support/help/how-to-install-mysql-on-debian-10/
dnf remove libreswan
dnf remove strongswan
dnf install strongswan
systemctl stop xl2tpd.service
https://ask.fedoraproject.org/t/cannot-connect-to-vpn/5602/34
nm-applet
albo
aptitude install plasma-nm plasma-nm
https://askubuntu.com/questions/963847/missing-network-settings-in-kde