неделя, 16 юни 2024 г.

How to enable hibernate on Manjaro

 To enable hibernate:

1. >sudo nano /etc/mkinitcpio.conf 

Add "resume" at the end of HOOKS=()

HOOKS=(base udev autodetect kms modconf block keyboard keymap consolefont plymouth filesystems fsck resume)
 

2.  sudo mkinitcpio -P #careful with this as if you get wrong mkinitcpio.conf it can ruin your system, it did for mine and I had to chroot it

3. In case you don't have swap entry in your fstab (but you have it otherwise) add it with:

>sudo blkid

Copy the #id from the line saying swap

>sudo nano /etc/fstab

add:

UUID=#id none swap defaults 0 0

where #id is the uuid from blkid

4.  >sudo nano /etc/default/grub

add at the end of GRUB_CMDLINE_LINUX_DEFAULT the resume=UUID=#id

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash udev.log_priority=3 resume=UUID=#id"

(make sure that #id in blkid, fstab and grub is the same!)

5. >sudo update-grub

And now it seems that hibernate is working. Yay.

петък, 7 юни 2024 г.

How to recover system after it crashes during update

Today was a crazy day. I wanted to update the system to see if the new ollama is available and in the middle of the update, I got kernel panic and everything froze. Upon restart, Manjaro 6.89 said kernel doesn't exist and Manjaro 6.77 was starting only in terminal with alt+f2 with no wifi. It was a disaster. 

First, I found that internet from the phone trough usb works, but that didn't help as it would download the packages and then complain about the wrong PGP signature.

Here's a list of the problems I had:

1) my konsole was giving me the errors in Bulgarian, which showed up like white squares making them unreadable. 

I fixed that by changing:

>localectl set-locale LANG=en_US.UTF-8

and then I commented >#bg_BG.UTF-8 UTF-8

in

sudo nano /etc/locale.gen

and now I have a line: LANG=en_US.UTF-8

in sudo nano /etc/locale.conf

2)  I tried installing the kernel without dependencies (as I was convinced that would solve the problem)

>pacman -Sdd linux68 

and that did something random (it installed the files but when I tried to launch it, it couldn't find my hard at all).

3) I did all kinds of attempts to solve the problem with the wrong PGP signature

>bash <(curl -s "https://notabug.org/megavolt/random-scripts/raw/master/fix-gpg-pacman.sh")

the line above was the recommended method, it did something but the problem remained. 

Also this code:

sudo pacman-mirrors -c Global 

sudo cp /etc/pacman.conf /etc/pacman.conf.backup

sudo sed --in-place --regexp-extended 's/^(SigLevel).+$/\1 = Never/g' /etc/pacman.conf

sudo pacman -Syyuu

was supposed to remove the PGP check at all. It might have worked because by then I realised the problem was that pacman was giving an error "package already exist". 

So I made a live usb, backed up the whole home partition (just in case), then I did:

sudo blkid

mount /dev/nvme0n1p6 /mnt

mount -t proc proc /mnt/proc; mount --rbind /sys /mnt/sys; mount --rbind /dev /mnt/dev

pacman --root=/mnt --cachedir=/mnt/var/cache/pacman/pkg -Syu --overwrite "*"

pacman --root=/mnt --cachedir=/mnt/var/cache/pacman/pkg -Syu --overwrite linux68 #not needed but just in case

pacman --root=/mnt --cachedir=/mnt/var/cache/pacman/pkg -Syu  #also just in case

That surprisingly solved all the drama. And my whole day is gone. 

Finally when I restarted into my now working 6.67 linux, I did

>sudo mwid -i linux68

and it found both my Windows and my other kernels and now I had also grub. Yay.

сряда, 28 февруари 2024 г.

From 0 to working scientific python with pypolychord

This is a brand new Lenovo laptop I got as a backup because my dear Asus got broken. So I got this smaller and weaker but still cute laptop. So I wanted to make this post just to list the quickest install from 0 to a working python file. 

Install python and jupyter

1. pacman -S python3

2. pacman -S jupyter-notebook

Install miniconda3 (instructions here)

3. mkdir -p ~/miniconda3

4. cd ~/miniconda3                                                                                                                                                                                                        
5. wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh

6. bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3

7. ~/miniconda3/bin/conda init bash
 

Then install the packages I need. I'm pretty sure I have an exported file from this environment with the packages but this is the absolute minimum of stuff. 

8.
conda create --name myenv
conda install -n myenv pip
conda install ipykernel
python3 -m ipykernel install --user --name=myenv
pacman -S gcc
pip install wheel
sudo pacman -S make
sudo pacman -S gcc-fortran

(optional conda install libgcc - no idea if this helped)

sudo pacman -S gcc-libs

pip install numpy
pip install git+https://github.com/PolyChord/PolyChordLite@master
conda install matplotlib
pip install getdist

I was getting a persistent error with libstdc++.so.6 (see here for other suggestions), here's what I did (after I installed gcc-libs and gcc-fortran)

sudo find / -name "libstdc++.so*"
conda install -c anaconda libstdcxx-ng
conda update libstdcxx-ng
ls ~/miniconda3/envs/myenv/bin/../lib
cp /usr/lib/libstdc++.so.6.0.32 ~/miniconda3/envs/myenv/bin/../lib 

And then manually removing libstdc++.so.6.0.21 and libstdc++.so.6.0.29

The problem with mpi4py:

I was getting a kernel crash from inside polychord, that I know it's related to mpi4py. So I had to install it. When trying to pip install it, I woul get this error:

"The Open MPI wrapper compiler was unable to find the specified compiler
     x86_64-conda_cos6-linux-gnu-cc in your PATH.
      
     Note that this compiler was either specified at configure time or in
     one of several possible environment variables.
     --------------------------------------------------------------------------
     failure.
     removing: _configtest.c _configtest.o
     error: Cannot compile MPI programs. Check your configuration!!!"

Solving it took a long time and 3 gpts!
 >sudo pacman -S openmpi

>yay -S mpicc
 >yay -S mpich

>echo $PATH
>conda list #look for openmpi - I had it, but obviously not working well enough

x86_64-conda_cos6-linux-gnu-cc

which gcc
/usr/bin/gcc

which mpicc
~/miniconda3/envs/BAO/bin/mpicc
export MPICC=~/miniconda3/envs/BAO/bin/mpicc

>pip install mpi4py #longer output but still and error

The Open MPI wrapper compiler was unable to find the specified compiler
      x86_64-conda_cos6-linux-gnu-cc in your PATH.
      
      Note that this compiler was either specified at configure time or in
      one of several possible environment variables.
      --------------------------------------------------------------------------
      failure.
      removing: _configtest.c _configtest.o
      error: Cannot compile MPI programs. Check your configuration!!!

>which x86_64-conda_cos6-linux-gnu-cc
/i didn't have it anywhere/
>conda install x86_64-conda_cos6-linux-gnu-cc
ls ~/miniconda3/envs/BAO/bin #look for x86_64-conda_cos6-linux-gnu-cc - I have x86_64-conda-linux-gnu-cc
>export PATH=~/miniconda3/envs/BAO/bin:$PATH
>pip install mpi4py #nope, same error as above
>conda install -c conda-forge openmpi
>conda install -c conda-forge openmpi --force-reinstall
>pip install mpi4py #yay!!! 

It finally worked. As you can imagine, a lot of steps, it took a while to figure it out. But now polychord is working and all is fine. 


Edit (03.08.2024):

Assuming the system is already up and running with gcc, g++, mpi, mpich, openmpi, I just reinstalled the environment super quick with python 3.12

conda create --name BAOn  

conda activate BAOn

conda install pip

conda install ipykernel

python3 -m ipykernel install --user --name=BAOn

which pip #to confirm you're working within the environment 

pip install wheel  

pip install pillow 

pip install numpy==1.26 --force #to confirm it's not using the outside numpy   

conda install matplotlib

pip install openmpi  #note here on my computer conda install openmpi makes the calculation speed 3 times slower, so either do pip install openmpi or conda install mpich

which mpicc #to confirm the mpicc refers to the env  

pip install mpi4py --force #use force in case you have an old library
 

# see https://stackoverflow.com/questions/61003570/cannot-install-mpi4py-using-conda-and-specify-pre-installed-mpicc-path  

pip install git+https://github.com/PolyChord/PolyChordLite@master #this didn't work for me

#this below did work:

git clone https://github.com/PolyChord/PolyChordLite.git
cd PolyChordLite
make
pip install .

conda install jupyter
pip install emcee --force
pip install getdist
pip install anesthetic
 

Also, to useful commands (which I still haven't tried but I will in the future):

conda env export > BAOn.yml

conda env create -f BAOn.yml

 

понеделник, 19 февруари 2024 г.

Install Maple on a new Manjaro computer

 1. Install ld-lsb (the name of Linux Standard Base package in Manjaro)

2. Download Maple Network Tools from here

3. chmod +X NetworkToolsLinuxX64Installer.run and then run it to install the Network Tools

3. Install Maple and Activate. 

Without the Network Tools, Maple won't activate and will give you FLEXnet error with the license. Apart from that, everything installed flawlessly. No machine name complaints.

понеделник, 4 декември 2023 г.

Debug kde panic related to appimagelauncherd

I had several kernel panics or kde panics, hard to tell. My first suspicion was that I had a problem with my SSD, so I wanted to run smartctl to check it out:

>sudo smartctl -t short /dev/nvme0 

To see the results:  

>sudo  smartctl -l selftest /dev/nvme0

To see full summary of disk usage:

>sudo  smartctl -x /dev/nvme0

Then I had to check out the logs from journalctl for the X and the kernel.  

>journalctl -xb 

>journalctl -xe

(with -k you can see kernel drama from the previous boot (see manual)

>journalctl -kb

Then I checked dmesg 

>dmesg|grep error

Also the state of the sensors (they were ok) 

>sensors

The systemctl log for failed processes:

>systemctl --user --failed

And finally, by suggestion of a forum, the core dumps.

>coredumpctl list

I saw a problem with the following service (appimagelauncherd) that was spamming my core dumps with tons of errors and at some point it seemed that the space for dumps ended and the computer crashed. Basically I got 1000 variations of the following error all over the logs:


"
traps: appimagelaunche[1232] general protection fault ip:7f2d012ca394 sp:7ffc8910b128 error:0 in libstdc++.so.6.0.32[7f2d0129c000+137000]"

I tried to stop it the right way as above, but it gave me errors. 

>systemctl --user status appimagelauncherd.service
>systemctl --user disable --now appimagelauncherd.service
>systemctl --user status appimagelauncherd.service

In the end, I got annoyed and I removed it in the most brutal way:

cd /usr/lib/systemd/user/

sudo mv appimagelauncherd.service ~/scripts
cd ~/.config/systemd/user/default.target.wants/
sudo mv appimagelauncherd.service ~/scripts

Note, this thing has also settings: AppImageLauncherSettings (where you can click that it stops relaunching after you kill it, but I didn't do it at the time), so maybe that could have stopped it without manually removing the service but I discovered it afterwards. Right now the computer has been working for 5 days and it works ok. I don't know if this solved my problem, but for now at least it doesn't crash every 5 minutes.

P.S. Another error I saw in dmesg and tried to fx is about the bt_coex_acitve, so I did the following (but I'm not srue the driver for the wifi accepted it (link)):

sudo modprobe -r iwlmvm
sudo modprobe iwlmvm bt_coex_active=N

Another error I was getting was:

"kwin_core: XCB error: 152 (BadDamage), sequence: 10052, resource id: 16910493, major code: 143 (DAMAGE), minor code: 3 (Subtract)"

which according to Manjaro forum can be removed with editing "~/.bash_profile" to include:

# suppress QT logging
QT_LOGGING_RULES='*=false'
export QT_LOGGING_RULES

Finaly, I was getting an error from Akonadi

akonadiserver[1706]: org.kde.pim.akonadiserver: arguments: ("--defaults-file=~/.local/share/akonadi/mysql.conf", "- -datadir=~/.local/share/akonadi/db_data/", "--socket=/run/user/1000/akonadi/mysql.socket", "--pid-file=/run/user/ 1000/akonadi/mysql.pid")

and I did as advised in Manjaro forum:

mv ~/.local/share/akonadi/db_data/ibdata1 ~/.local/share/akonadi/db_data/ibdata1.old
akonadictl start
It took a while to restart akonadictl but it finished. 

Also to limit the space that journalctl takes:

journalctl --vacuum-time=2weeks

вторник, 21 ноември 2023 г.

Activate and update a missing conda environment

I use conda to manage my python packages and libraries because otherwise, system updates break everything way too often. Recently, I had two problems with it:

1. After one of the system updates, conda got messed up and I copied the files from my backup. So the names of the conda environments disappeared.

1. To fix the names if you installed your environments in a new directory, you can use:

$conda config --show envs_dirs

this shows where your default directories are and then to add another path, use (link):

$conda config --append envs_dirs /home/<user>/anaconda3/envs

or if you want to keep your default dir (which I didn't care about):
$conda config --prepend envs_dirs /home/<user>/anaconda3/envs)
This at least added my old environments to the environment.txt

You can list the path to all environments -

$conda env list

And then, if you activate with either

$conda activate NAMEENV

or, if the short name is not available, you can do it with the full path:

$conda activate /home/user/anaconda3/envs/NAMEENV
 

Other imporant files and command:

$cat  /home/denijane/.condarc

$conda info

$conda info -e

2. I was getting a problem in jupyter with one of my packages
libstdc++.so.6: version `GLIBCXX_3.4.32' not found
This was solved by:

$conda activate /home/user/anaconda3/envs/NAMEENV

$conda update --all

which updated all the packages and fixed their broken dependencies. I tried with "conda install libgcc" but conda wouldn't install it.

I also tried to modify the PATH

$export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/your/path/to/conda/env/lib 

because I thought the file is there but it cannot find it, ut again, but this didn't work and in the end I had to do the "update --all"

четвъртък, 28 септември 2023 г.

sudo not acceptimg my password

It happened after I had to kill plasma and kwin because everything froze over an external wifi adapter. I found the answer here:

systemctl status systemd-homed

If it says something other than active, use

systemctl start systemd-homed

to start it again. After that I had my password working again.

събота, 2 септември 2023 г.

Error unmounting /dev/sda: target is busy

 My ssd had wouldn't unmount for unknown reasons, since everything that was using it was closed I was very surprised and annoyed. The error it would give me when I tried to unmount it in console was:

umount /run/media/user/ssd
Error unmounting block device 8:0: GDBus.Error:org.freedesktop.UDisks2.Error.DeviceBusy: Error unmounting /dev/sda: target is busy

So I had to do (following this):

 sudo lsof /dev/sda

That gave me the process that was "using" the hard. It was xdg-docum for a movie that was not playing or anything but apparently, the hard drive thought it was. So after I killed the process I could normally unmount it from Dolphin.

понеделник, 21 август 2023 г.

How to find lost hard disk space

 1. Instal ncdu

sudo pacman -S ncdu

2. Clear caches:

yay -Sc

pip cache purge
 

3. Install Filelight

It shows very nicely where is your lost disk space. Mine is obviously in The Witcher 3 and Skyrim. Oh well.

петък, 9 юни 2023 г.

How to create liveusb from terminal

1.  Download the iso (https://linuxmint.com/download.php)

2. Optional, check the sha256 sums. 

3. Plug in your usb. In my case, I had to delete the partitions, but I didn't create a new partition. Confirm the path to your usb with $df  - mine was at /dev/sda

4.  sudo dd bs=4M if=/home/user/linuxmint-21.1-cinnamon-64bit.iso of=/dev/sda status=progress oflag=sync

5. Voila

четвъртък, 9 февруари 2023 г.

How to install nvidia-dkms on Manjaro

I just installed manjaro-xandmod to test if my laptop will continue to freeze. It just got way too annoying having these freezes every 2 days since I like to keep my laptop working non-stop for months. And since I couldn't figure what freezes exactly, I decided to return to xanmod with which I had good memories. So anyway, I installed xanmod from aur (from Pamac where I have aur added) and then tried to install nvidia-dkms. It complained that it's in conflict with nvidia610 and wouldn't remove it. This is the line that solved the problem:

sudo pacman -S --needed nvidia-dkms nvidia-utils lib32-nvidia-utils


 

сряда, 18 януари 2023 г.

How to make Chrome open magnet links qith qBittorrent

Chrome was opening my magnet files with Stremio which didn't work at all. So I wanted to convince it to open them with my torrent client qBittorent. What I did is that I edited:

/home/denijane/.config/mimeapps.list

adding the line:

x-scheme-handler/magnet=org.qbittorrent.qBittorrent.desktop

I saved it and restarted Chrome and voila! 

Useful konsole commands:

xdg-mime query default x-scheme-handler/magnet

and

gio mime x-scheme-handler/magnet

and also the .desktop files seem to reside in  /usr/share/applications/

Also you can try to update the database with "update-desktop-database" but in my case it didn't seem to work, but closing and opening Chrome did.

вторник, 27 декември 2022 г.

Conda wouldn't install sundials and scikits.odes

I wanted to install a new integrator for my dear python, since scipi odeint was running crappy on my equations.  I tried to install scikits, but I kept on running into errors:

"ImportError: No module named 'scikits'"

Then after trying to install it, I got:

"Conda package install [Errno 13] Permission denied"

and then after upgrading pip:

"fatal error: sundials/sundials_types.h: No such file or directory"

First, I tried to manually install sundials from https://github.com/certik/sundials which I did with configure, make and make install, but the error in conda persisted. Then I did "export SUNDIALS_INST=/usr/local/include/sundials/" but conda didn't like it. After some digging, I've found it's better to install sundials with pip. So I first had to remove my manual installation:

sudo rm -R /usr/local/include/sundials  

unset SUNDIALS_INST=/usr/local/include/sundials/
 

Then I decided to clean up conda a bit:

conda clean -a -y 

Then I upgraded pip:

pip3 install --user --upgrade pip #that didn't work so:

sudo pacman -S pip
conda install pip 

Then I installed sundials:

pip3 install --user Sundials

sudo pacman -S sundials #that worked
 

Then installed just in case scikit-learn:

sudo pacman -S python-scikit-learn
 

To install it from pacman:

sudo pacman -S sundials

conda -c install conda-forge sundials

conda install -c conda-forge cython  

conda install -c conda-forge scikits.odes #see here for the explanation

sudo conda install -c conda-forge scikits.odes #this took super long because it verified dependencies

pip3 install --user scikits.odes #this one did it
And now, it's installed and loadable.
(see also https://github.com/bmcage/odes/issues/43)

вторник, 20 декември 2022 г.

Nvidia on Manjaro

Short note on Nvidia drivers, following this guide:

Apparently in Manjaro, you have to install it with

$ sudo mhwd -a pci nonfree 0300

But this won't give you nvidia-smi. To get it, you need to also install the driver from Pacman: 

sudo pacman -S lib32-nvidia-utils
sudo pacman -S nvidia-utils
sudo pacman -S linux60-nvidia

Then if you're lucky, it may work and you can switch to it with:

$optimus-manager --switch nvidia

If you're feeling naughty and you want to use another kernel, like xanmod, you do the same, but with nvidia-dkms and you have to install also linux-headers before.

Useful commands (source):

lshw -C display

glxinfo -B

xrandr --listproviders  

петък, 16 декември 2022 г.

How to remove old kernel entry in GRUB (non-funcitonal one)

   This is what I did to remove an old, non-functional kernel from my GRUB. I don't know how it even got there on the first place, because I had another, working xanmod entry. 

In any case, please proceed with caution when doing it. 

    ls /boot/vml*
  sudo mv /boot/vmlinuz-manjaro-xanmod ~
  ls /boot/vml*
  sudo grub-mkconfig -o /boot/grub/grub.cfg



четвъртък, 15 декември 2022 г.

The cursed "Intel Wi-Fi 6 AX200 "

So this are my notes on the cursed wifi adapter "Intel Wi-Fi 6 AX200 ".  It has the interesting tendency  to disappear and then you have to reboot for it to reappear. But sometimes it will again disappear just minutes after restart. So a really really naughty adapter. I spent a lot of time searching for a solution, here is what I found.

 The errors:

Error sending STATISTICS_CMD: time out after 2000ms.
[23658.567163] iwlwifi 0000:03:00.0: Current CMD queue read_ptr 56 write_ptr 57

or 

Direct firmware load for iwlwifi ucode failed with error -2

or 

iwlwifi 0000:03:00.0: Error, can not clear persistence bit

There are two parts of the problem that I detected so far.

1) Power management for optimus-manager. That's a tricky one because it appears if it's not configured correctly, at some point the wifi adapter shuts down. 

So this is my config file:

$cat /etc/optimus-manager/optimus-manager.conf
[amd]
dynamic_power_management=fine
DRI=3
driver=modesetting
tearfree=

[intel]
dynamic_power_management=fine
DRI=3
accel=
driver=modesetting
modeset=yes
tearfree=

[nvidia]
dynamic_power_management=fine
DPI=96
PAT=yes
allow_external_gpus=no
ignore_abi=no
modeset=yes
options=overclocking

[optimus]
dynamic_power_management=fine
auto_logout=yes
pci_power_control=no
pci_remove=no
pci_reset=no
startup_auto_battery_mode=integrated
startup_auto_extpower_mode=hybrid #nvidia
startup_mode=hybrid #nvidia
switching=none

2) The more important problem appears to be the wifi firmware. For unknown to humanity reasons, the kernel doesn't install the correct firmware but 20 others. This page expains how to reinstall it.

So  first see the exact adapter you have, unless you haven't.  In Manjaro:

$inxi -N

or 

$lshw -c net 

Then you can check the firmware version with:

$modinfo iwlwifi|grep 7260

Download the wifi driver from the official Intel website.  Extract it somewhere (new_driver). Then:
$ls /usr/lib/firmware | grep -i pnvm
$mv *.pnvm ~/wifi/old
$mv *.ucode ~/wifi/old
$cd new_driver
sudo cp iwlwifi-*.ucode /lib/firmware/

Then reboot.

 3) Aside from this, there is a number of other things to do to try to improve the life of your adapter. I'm listing them below, I don't know which help and which don't I just did everything.

$sudo iw reg set BG #where BG is the code of YOUR country
$sudo nano /etc/modprobe.d/iwlwifi.conf
>
options iwlwifi 11n_disable=1
options iwlwifi 11n_disable=8
optwion iwlwifi wd_disable=1
ctrl+o
$sudo iw wlan0 set power_save off #this didn't work for me
$sudo iw wlp3s0 set power_save off
$sudo nano /etc/modprobe.d/wifi.conf 

options iwlmvm power_scheme=1
options iwlwifi swcrypto=0 bt_coex_active=0 power_save=0 11n_disable=1 

ctrl+o

$sudo nano /etc/modprobe.d/iwlmvm.conf: 

>

options iwlmvm power_scheme=1

Key websites if you want to dig in:

https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi

https://itslinuxfoss.com/install-intel-wifi-6-ax200-driver/
https://www.intel.com/content/www/us/en/support/articles/000005511/wireless.html.

Also see this: https://bbs.archlinux.org/viewtopic.php?id=243671

But here after modeprobing the device was not visible in ifconfig and I could not try to "up" it. (also, ifconfig now is " ip a" )

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1848921

https://bbs.archlinux.org/viewtopic.php?id=243671

https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi

https://askubuntu.com/questions/1205996/iwlwifi-causing-system-hangs-on-ubuntu-19-10

https://launchpad.net/ubuntu/+source/linux-firmware/1.143.1

https://askubuntu.com/questions/616119/unstable-wireless-with-intel-7260-iwlwifi-after-upgrade-to-15-04


вторник, 13 декември 2022 г.

How to remove service from systemctl

 I had a weird service that was dumping errors like crazy in my logs visible with:

journalctl -b-1 -p4 --no-pager

So to remove it, first I found it's still running with (see this page for details):

 systemctl --type=service

then I followed these instructions and did:

systemctl stop [servicename]
systemctl disable [servicename]
rm /etc/systemd/system/[servicename]
rm /etc/systemd/system/[servicename] # and symlinks that might be related
rm /usr/lib/systemd/system/[servicename] 
rm /usr/lib/systemd/system/[servicename] # and symlinks that might be related
systemctl daemon-reload
systemctl reset-failed
 

where I basically did just the first "rm" part and the last 2 commands since the service wasn't active.


сряда, 30 ноември 2022 г.

How to install Zoom virtual background on Linux

1. Install newest version of Zoom (link

2. Install unity-tweak-tool (I'm not sure if this is really necessairy but it started working after I installe it) 

3. Install Zoom Media plugin (link), I clicked on Citrix and Ubuntu because this is for my Mint laptop. I'll try tomorrow also on the Manjaro one. 

4, Find your ZoomMedia.ini in /etc/zoomvdi (Note, this appears after you install 3.)

5. Edit it to turn SMARTVB=0 to SMARTVB=1

To change the background, right click on the screen of the Zoom linux client, because of course, there's no simply Option to do it otherwise. But it works. Even if it took me 1 hour to figure it out.

сряда, 12 октомври 2022 г.

How to kill a zombi plasmashell

 I had a case of plasmashell turning into a zombi. This is what I did to solve it:

The correct way to restart plasmashell is trough:   "plasmashell --replace &"

However, the old plasmashell was a zombi for some reason so I had to first kill it with:
 

 523  sudo killall plasmashell
 
524  sudo kill {pid of the proces}
 525  ps aux | grep plasmashell
 526  cat /proc/{pid of the process}/status
 527  sudo kill {pid} 
 531  ps o ppid {pid}
 533  ps aux | grep -w Z   #shows zombi processes
 535  ps o ppid {pid}
 536  sudo kill -1 {pid}  
 539  grep plasma*
# 540  killall plasmashell && kstart5 plasmashell& #this seems to be the old way to do it

Then Alt+F2 and
plasmashell --replace &

Also see this link.

понеделник, 12 септември 2022 г.

How to install polychord with conda

 That was a long battle, but it seems now all is fine. I'm using Manjaro, since Sabayon has no longer installation images with new kernels and Mocaccino is still not ready. But it seems Arch and Gentoo are not sooo different. Anyway, back to python. So this was an epic fight including downgrading binutils (of course) and installing pretty much any gfortran package out there. Here's some of what I did:

conda create --name MyEnv
conda activate MyEnv
conda install -n MyEnv pip
cd anaconda3/bin
source activate MyEnv
pip install https://github.com/PolyChord/PolyChordLite/archive/master.zip
conda install -c anaconda ipykernel
python3 -m ipykernel install --user --name=MyEnv
pip install emcee
pip install pil
pip install matplotlib
pip install arviz
pip install getdist

Alternative installation without conda:

pip install notebook

#jupyter notebook #to start it

conda deactivate

conda config --set auto_activate_base false #to deactivate conda permanently

pip install https://github.com/PolyChord/PolyChordLite/archive/master.zip

pip install build (or anything that is missing)

also don't forget to install gcc and gcc++ as they are critical for the successful installation. 

 

Below is what is currently installed in this conda env. I have no idea what I have in the base conda and in pip in general as I pretty much installed anything:

conda list --explicit
# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: linux-64
@EXPLICIT
https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2
https://conda.anaconda.org/anaconda/linux-64/ca-certificates-2020.10.14-0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.35.1-hea4e1c9_2.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-ng-9.3.0-h6de172a_19.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/tzdata-2021a-he74cb21_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libgomp-9.3.0-h2828fa1_19.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-1_gnu.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libgcc-ng-9.3.0-h2828fa1_19.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libffi-3.3-h58526e2_2.tar.bz2
https://conda.anaconda.org/anaconda/linux-64/libsodium-1.0.18-h7b6447c_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.2-h58526e2_4.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/openssl-1.1.1k-h7f98852_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/xz-5.2.5-h516909a_1.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/zlib-1.2.11-h516909a_1010.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/readline-8.1-h46c0cb4_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.10-h21135ba_1.tar.bz2
https://conda.anaconda.org/anaconda/linux-64/zeromq-4.3.3-he6710b0_3.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/sqlite-3.35.5-h74cdb3f_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/python-3.9.2-hffdb5ce_0_cpython.tar.bz2
https://conda.anaconda.org/anaconda/noarch/backcall-0.2.0-py_0.tar.bz2
https://conda.anaconda.org/anaconda/noarch/decorator-4.4.2-py_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/ipython_genutils-0.2.0-py_1.tar.bz2
https://conda.anaconda.org/anaconda/noarch/parso-0.8.0-py_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/pickleshare-0.7.5-py_1003.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/ptyprocess-0.7.0-pyhd3deb0d_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/python_abi-3.9-1_cp39.tar.bz2
https://conda.anaconda.org/anaconda/noarch/six-1.15.0-py_0.tar.bz2
https://conda.anaconda.org/anaconda/noarch/wcwidth-0.2.5-py_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/wheel-0.36.2-pyhd3deb0d_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/certifi-2020.12.5-py39hf3d152e_1.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/jedi-0.18.0-py39hf3d152e_2.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/pexpect-4.8.0-pyh9f0ad1d_2.tar.bz2
https://conda.anaconda.org/anaconda/noarch/python-dateutil-2.8.1-py_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/pyzmq-22.0.3-py39hea8fd45_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/tornado-6.1-py39h3811e60_1.tar.bz2
https://conda.anaconda.org/anaconda/noarch/traitlets-5.0.5-py_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/jupyter_core-4.7.1-py39hf3d152e_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/matplotlib-inline-0.1.2-pyhd8ed1ab_2.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/setuptools-49.6.0-py39hf3d152e_3.tar.bz2
https://conda.anaconda.org/anaconda/noarch/jupyter_client-6.1.7-py_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/pip-21.1.1-pyhd8ed1ab_0.tar.bz2
https://conda.anaconda.org/anaconda/noarch/pygments-2.7.1-py_0.tar.bz2
https://conda.anaconda.org/anaconda/noarch/prompt-toolkit-3.0.8-py_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/ipython-7.23.1-py39hef51801_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/ipykernel-5.5.4-py39hef51801_0.tar.bz2

P.S. I was getting two types of errors: " ImportError: No module named 'commands ..." (this was related to installing os_sys which in the end, I don't think I need at all.  

The other error was "wheel error" which the new enviornment solved automatically. And the third one was that "f77: No such file or directo'ry", also some mix-up between the gfortran I had installed and the default name of the



In Ubuntu:

4  pip3 install pypolychord
  485  pip3 install getdist
  486  python3 -m pip install --upgrade pip
  487  pip3 install pil
  488  pip3 install pillow
  489  pip3 install --user pillow
  490  pip3 install getdist
  491  pip3 install statistics
  492  pip3 install sympi
  493  pip3 install sympy
  494  pip3 install os