Příspěvky

Instalace Prestashop na Ubuntu 22.04

Obrázek
Instalace Apache http serveru sudo apt install apache2 Files  apache2.conf The main Apache2 configuration file. Contains settings that are global to Apache2. Note: Historically, the main Apache2 configuration file was httpd.conf, named after the “httpd” daemon. In other distributions (or older versions of Ubuntu), the file might be present. In modern releases of Ubuntu, all configuration options have been moved to apache2.conf and the below referenced directories and httpd.conf no longer exists.  envvars File where Apache2 environment variables are set.  magic Instructions for determining MIME type based on the first few bytes of a file.  ports.conf Houses the directives that determine which TCP ports Apache2 is listening on. Povolit mod_rewrite modul sudo a2enmod rewrite sudo systemctl restart apache2.service Nastavit SSL Připravit certifikát openssl req –new –newkey rsa:2048 –nodes –keyout <server-name>.key –out <server-name>.csr op...

Přihlášení do Drupal 10

Po odhlášení v custom theme v Drupal, pokud není ve stránce odkaz na login. Nutno použít následující url: http:// /user/login Pak se ukáže formulář pro vyplnění jména a hesla.

How to display a size of subdirectories on Linux?

sudo du -h --max-depth=1

Fitnesse and DbFit

DbFit for Data Preparation and Testing in Fitnesse The test automation using Fitnesse is huge popular for integration testing. It is highly demanded to populate the relational database by test data and during the tests. The Fitnesse often checks the data in application tables also.   I use the quite handy tool DbFit ( DbFit: Test-driven database development ) that extends the Fitnesse with simple and readable fixtures to deal with relational databases. It contains a set of commands that you usually use against the databases - Query, Insert, Execute, Execute procedure, Execute DDL. It allows to control the transactions usin Commit or Rollbak. The DbFit rollback the data after the test by default. I've trouble to connect to Oracle 12 using the latest stable DbFit version 3.2.0, because this version of DbFit does not support the newest Oracle Jdbc Drivers. The DbFit cannot initialize the JDBC driver: dbfit.OracleTest java.lang.Error: java.lang.reflect.InvocationTargetException a...

SVN: Klientské připojení, které vyžaduje klientský SSL certifikát

Windows Soubor servers v adresáři %AppData%\Subversion   Linux  Soubor  servers  v adresáři ~\.subversion  V tomto souboru nastavit soubor s klientským certifikátem a heslem pro přístup k souboru: ...  [groups]  mujvnserver = *.mujsvnserver.cz  [mujsvnserer]  ssl-client-cert-file = /absolute/path/to/clientcert.p12 ssl-client-cert-password=pristupov_heslo_p12 ...

Oracle VirtualBox - Zvětšení diskového prostoru na Ubuntu

Obrázek
 Jak zvětšit diskový prostor, pokud jsme při vytváření Ubuntu image špatně odhadli velikost diskového prostoru? 1- Vypněte image 2- Ve virtual boxu odpojte disk od image, v nastavení image zvolte Úložiště a na disku pravým tlačítkem myši vyberte volbu Odebrat připojení. 3- ”c:\Program Files\Oracle\VirtualBox\VBoxManage.exe” modifymedium <název souboru s virt. diskem .vdi> –resize 20000 4- V nastavení image připojte instalační iso soubor Ubuntu 5- Nastartuje image a ihned při startu stiskněte F12 (na notepadu jsem musel použít Fn+F12) 6- Zvolte volbu Try Ubuntu 7-   Spusťte GParted Pattern Editor 8- Zvětšete nejprve prostor pro partition na disku 9- Pak zvětšete vlastní partition s filesystémem 10 - Potvrďte a po provedení zkontrolujte výsledek 11- Proveďte restart image

Windows Remote Desktop authentication from Windows 10

Obrázek
If you want to authenticate to remote machine via Windows Remote Desktop from Windows do NOT use just username. Use a different user account and the long form of username including the remote hostname: remoteComputerName\user.