Skip to content

calzateu/My_Arch_Linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 

Repository files navigation

My_Arch_Linux

Scrolling

Section "InputClass"
        Identifier "mytouchpad"
        Driver "libinput"
        MatchIsTouchpad "on"
        Option "NaturalScrolling" "true"
        Option "Tapping" "on"
EndSection

Pinch to zoom

Wifi

sudo vim /etc/modprobe.d/iwlwifi.conf

Then add:

options iwlwifi 11n_disable=1 swcrypto=1

Vim

Then see following file to know the categories:

vim /usr/share/vim/vim82/colors/tools/check_colors.vim

And add this code to /usr/share/vim/vim82/colors/elflord.vim. It for the color of column

hi ColorColumn ctermbg=lightgreen guibg=lightgreen

Then, add this code to /usr/share/vim/vim82/colors/elflord.vim. It for unnecessary white spaces

...
hi WhiteSpaces ctermbg=red guibg=red
...
hi link ExtraWhitespace WhiteSpaces

Pacman

https://stackoverflow.com/questions/27681785/fixing-target-not-found-in-pacman-maybe-mirrorlist-of-pacman-conf

MySQL

Second solution:

Specify Java version

Solved GRUB problem

Make a directory in /boot called efi.

mkdir /boot/efi

Mount EFI disk to /boot/efi

mount /dev/nvme0n1p1 /boot/efi

Then configure grub

grub-install --target=x86_64-efi --efi-directory=/boot/efi/ --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg

Now everything is ready with grub. Umount live USB and restart :D

Sources:

Flutter

I have google-chrome-stable, so I did the following

sudo cp /usr/bin/google-chrome-stable /usr/bin/google-chrome

Source:

Last installation:

Dart SDK

It usually happens with projects that were created in other machines. To fix this on Android Studio 3.1.3:

  1. File-> Settings (ctrl+alt+s)
  2. Languages and Frameworks -> Dart
  3. Check "Enable Dart support for the project..."
  4. In "Dart SDK path" click in "..." and navigate to flutter SDK directory. Under that directory you'll find "bin/cache/dart-sdk". This is the dart sdk path you should use.
  5. Click "Apply"
  6. Close the project and open it again (sometimes you need this step, sometimes doesn't)

Source:

WoeUSB not formating the USB disk

Remove udiskie -t & from ~.xprofile

Change BASH Shell Color of Shell Prompt

Alacritty problem

R

Installing RStudio

In this page I found the method to install RStudio https://bbs.archlinux.org/viewtopic.php?id=225057:

Code:

wget https://aur.archlinux.org/cgit/aur.git/snapshot/rstudio-desktop.tar.gz
tar xfvz rstudio-desktop.tar.gz
cd rstudio-desktop
makepkg -si

Install other packages that aren't in pacman repositories

wget "Binary Package url"

Example:

wget https://aur.andontie.net/x86_64/rstudio-desktop-bin-2021.09.2.382-1-x86_64.pkg.tar.zst

Download tar.gz of packages from ArchLinux

  • In package options select Download snapshot.

Remove cache of old applications from wine

rm -f ~/.config/menus/applications-merged/wine*
rm -rf ~/.local/share/applications/wine
rm -f ~/.local/share/desktop-directories/wine*
rm -f ~/.local/share/icons/????_*.{xpm,png}
rm -f ~/.local/share/icons/*-x-wine-*.{xpm,png} }}}

Search text inside of files

grep -rni "palabra" .

Change words in multiple files

En el siguiente ejemplo, usaremos sed para reemplazar todas las ocurrencias de la palabra «mongo» por la palabra «aurelio» en todos los archivos que tengan la extensión .txt y que se encuentren en la carpeta /home/usuario/micarpeta/.

find /home/usuario/micarpeta/ -name '*.txt' -exec sed -i "s/mongo/aurelio/g" {} \;

Me di cuenta que es mejor poner el .txt entre comillas, sino find saca errores raros.

Ref: https://blog.desdelinux.net/como-encontrar-y-reemplazar-texto-en-varios-archivos-desde-el-terminal/

ranger colorscheme of editor text

I changed to use vim for noevim with this: https://unix.stackexchange.com/questions/367452/how-to-change-the-default-text-editor-in-ranger

Solving problems with Matlab and Simulink

https://la.mathworks.com/matlabcentral/answers/364551-why-is-matlab-unable-to-run-the-matlabwindow-application-on-linux

Error writing the file failed to close the package enlace cruzado entre dispositivos no permitido simulink

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

Removing sensitive data from GitHub

https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository

ssh: connect to host github.com port 22: Connection timed out' error

https://gist.github.com/Tamal/1cc77f88ef3e900aeae65f0e5e504794

Problem with some programs after updating Python (ranger, etc)

Problem with Kernel in Jupyter notebook

Problem in Chrome and some other applications when entering in full screen mode (xmonad)

Problem when dialog (popup) window open over another dialog window. The last one spawn behind the first

Zsh

I used the following command to map Shift+Tab with autocompletion in zsh:

bindkey '^[[Z' autosuggest-accept

NeoVim

Codeium in Neovim

There wasn't integration of Codeium with Coc, so I used Plug

Jupyter Notebooks in Nvim

I use vim-jukit:

yay is broken after update

Change HDMI and screens automatically

Failed to load python3 host

Then, I installed the last thing with the following command:

sudo pacman -S python-lsp-server

Anaconda y miniconda

Here I found how to install miniconda:

And here a good way to manage Anaconda in Arch:

If I want to remove Anaconda, I can read the following discussion:

I had Conda command not found, so I ran the command conda init

And finally, as I don't want to activate the base environment by default, here is how can I achieve this:

About

Solutions to common problems within Arch Linux.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published