Praleisti ir pereiti prie pagrindinio turinio

Pranešimai

Rodomi įrašai nuo Rugsėjo, 2018

MySQL password resset (Ubuntu server 18.04)

1. Stop MySQL: $ sudo service mysql stop  2. Make MySQL service directory:  $ sudo mkdir /var/run/mysqld  3. Give MySQL user permission to write to the service directory:  $ sudo chown mysql: /var/run/mysqld  4. Start MySQL manually, without permission checks or networking:  $ sudo mysqld_safe --skip-grant-tables --skip-networking &  5.  Log in without a password.  $ mysql -u root mysql  6. Update the password for the root user.
 mysql> UPDATE mysql.user SET authentication_string=PASSWORD('YOURNEWPASSWORD') WHERE User='root';
 mysql> EXIT; 
7. Turn off MySQL:  $ sudo service mysql restart

AEON wallet install

1. On Debian/Ubuntu libgtest-dev only includes sources and headers. You must build the library binary manually.  $ sudo apt-get install libgtest-dev 
 $ cd /usr/src/gtest   $ sudo cmake .   $ sudo make   $ sudo mv libg* /usr/lib/ 
2. Install necessary dependencies: $ sudo apt update && sudo apt install build-essential cmake git libpcsclite-dev pkg-config libboost-all-dev libssl-dev libzmq3-dev libunbound-dev libsodium-dev libminiupnpc-dev libunwind8-dev liblzma-dev libreadline6-dev libldns-dev libexpat1-dev doxygen graphviz libpcsclite-dev 
3. Clone recursively to pull-in needed sub-module:
$ git clone --recursive https://github.com/aeonix/aeon
4. Build: $ cd aeon   $ make 
P.S. on Linux Mint 19 getting error in 40% :
In function ‘bool cryptonote::construct_miner_tx(size_t, size_t, uint64_t, size_t, uint64_t, const cryptonote::account_public_address&, cryptonote::transaction&, const blobdata&, size_t, uint8_t)’:
cc1plus: error: ‘void* __builtin_memset(void*, int, long u…

Automatinis disko prijungimas (automount) linux aplinkoje

1. Sukuriame direktoriją prie kurios bus prijungtas diskas:
mkdir /media/hdd

1. Sukuriame fstab failo atsargine kopija:
sudo cp /etc/fstab /etc/fstab.old

2. Surandam disko UUID kuri norime automatiškai prijungti:
sudo blkid
3. Sukuriame fstab faile disko prijungimo taisyklę:sudo nano /etc/fstab
UUID=<uuid> <direktorija> <failusistema> defaults 0 0 P.S. galima naudoti sekančią komandą, kad sužinoti disko pavadinimą, failų sistemos tipą ir UUID: lsblk -o NAME,FSTYPE,UUID
Po kompiuterio perkrovimo, jei fstab faile nepadarėte klaidų nurodytoje prijungimo direktorijoje matysite prijungto disko turini.