2024 m. vasario 18 d., sekmadienis

Kelionės

Pažintinės kelionės:

https://airguru.lt/

Pasaulio temperatūros.

https://zoom.earth

 

 

Skrydžių bilietai:

https://www.skyscanner.net/

2024 m. vasario 14 d., trečiadienis

Odoo17 notes

Odoo


Ctr + K  -    
Search in Odoo

How to install odoo:

https://tecadmin.net/how-to-install-odoo-17-on-ubuntu/
 

Odoo linux package 

sudo apt install odoo

https://nightly.odoo.com/17.0/nightly/deb/

Add-ons location:

 
/usr/lib/python3/dist-packages/odoo/addons/

Filestore location:

$ sudo ls -la /var/lib/odoo/.local/share/Odoo
drwx------ 3 odoo odoo  addons
drwxr-xr-x 3 odoo odoo  filestore
drwx------ 5 odoo odoo sessions

$ cat /etc/passwd | grep odoo
odoo:x:111:122::/var/lib/odoo:/usr/sbin/nologin

Changing file ownership:

sudo chown -R odoo:odoo /data


Installing Odoo-pdf
------
Depends on libssl1.1 but it is not installable

echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list

sudo apt-get update
sudo apt-get install libssl1.1


dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb

apt --fix-broken install



Connecting to posgress:

sudo -u postgres psql # Running command as user
sudo su - postgres     # Changing user


\l - list of databases
\du - list of users

how to change postgress password:
ALTER USER "postgres" WITH PASSWORD 'newpass';

pg_hba file:

sudo nano /etc/postgresql/16/main/pg_hba.conf


How to fix Error:

psycopg2.OperationalError: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: Peer authentication failed for user "odoo"

 This error occurs when the PostgreSQL database is unable to establish a connection with the Odoo user due to incorrect or missing authentication configurations. To resolve this issue, follow these steps:

1. Open the `pg_hba.conf` file in a text editor using sudo privileges:

```bash
sudo nano /etc/postgresql/{your-version}/main/pg_hba.conf
```

Replace `{your-version}` with your installed PostgreSQL version (e.g., 13).

2. Locate the following line, which should be near the end of the file:

```sql
local   all             postgres                                peer
```

Add an entry similar to the one above but for the odoo user and specify trust as the method:

```sql
# TYPE  DATABASE        USER            ADDRESS                 METHOD
local   all             odoo              md5
host    all             odoo          0.0.0.0/0               md5
host    all             odoo          ::/0                     md5
```

This configuration allows connections from any address (IPv4 & IPv6) and enforces password-based MD5 encryption. Save and close the file after editing.

3. Restart the PostgreSQL service to apply changes:

```bash
sudo systemctl restart postgresql
```

4. Now you need to set a secure password for the 'odoo' user. Access the PostgreSQL shell by running:

```bash
sudo -u postgres psql
```

5. Execute the following command inside the PostgreSQL shell to change the password for the odoo user:

```sql
\password odoo
```

Enter a new strong password twice when prompted. Then exit the PostgreSQL shell by typing:

```
\q
```

6. Update your Odoo configuration file with the correct credentials. Edit the `odoo.conf` file located at `/etc/odoo/` or `/etc/odoo-server.conf`, depending upon your installation:

```bash
sudo nano /etc/odoo/odoo.conf
```

7. Ensure that the following lines are present in the configuration file with the appropriate values replaced:

```ini
[options]
...
db_user = odoo
db_password = <new_password>
```

Save and close the file.

8. Finally, restart the Odoo service so it can connect with the updated settings:

sudo systemctl restart odoo

or
```bash
sudo systemctl restart odoo-server
```

Now try accessing Odoo again; it should successfully connect to the PostgreSQL database using the provided credentials.



Owl

https://odoo.github.io/owl/playground/

 

2024 m. vasario 13 d., antradienis

Go3

Pagalba: https://go3.lt/lt/contact

 

TV3 Group yra Baltijos regione pirmaujanti žiniasklaidos kompanija, siūlanti įvairias televizijos, radijo, interneto ir OTT platformų paslaugas bei prekės ženklus, įsigyta 2017 m. tarptautinės turto valdymo įmonės Providence Equity Partners, ir nuolat tobulinanti savo paslaugas bei plėtojanti naujas iniciatyvas siekdama patenkinti įvairių auditorijų poreikius.

2015 - Launch of news and entertainment portal tv3.lt in Lithuania

2003 - Power Hit Radio in Lithuania 

TV3 ištakos: https://tv3group.eu/about/our-story/


2024 m. vasario 11 d., sekmadienis

2024 m. vasario 6 d., antradienis

AI - Learning

(RAG) Retrieval-Augmented Generation 

Data source(eg. Web) <- LLM (talks to)

LLM challenges:

  1. No source
  2. Out of date 

MoE - Micture of Experts. 

2023 m. gruodžio 13 d., trečiadienis

Oculus VR Quest 3

Installing rookie sideloader

Unfortunately it only works on windows, guide for linux:

Loading rookie sideloader on Linux:

If someone still needs this to work in Linux, just set up a Windows virtual machine(I used Virtualbox) open Rookie, click activate Wireless ADB, then No for manual config, put in the IP of the Quest. That worked for me. Network Adapter has to be configured as bridged, not NAT.

Edit: turned out it only works if you first connect in linux to sidenoder with cable, then activate wireless there.


Debugging mode not showing after multiple connect attempts:

Debugging mode troubleshooting


Using adb with meta quest

https://developer.oculus.com/documentation/native/android/ts-adb/

2023 m. gruodžio 3 d., sekmadienis