Home IT Tips
Post
Cancel

IT Tips

Spacemacs

1
2
SPC w F # make-frame
SPC w o # other-frame

Install Program Locally without sudo Permission

You need to compile these from source. It should just be a matter of

1
2
3
4
apt-get source PACKAGE # Or download the sourcecode release from github
./configure --prefix=$HOME
make
make install

Conda

1
2
conda create -n envname python=3.9.7 ipython
conda acitvate envname

PDFGREP

1
2
3
pdfgrep -in "pattern" *.pdf
# -i, --ignore-case
# -n, --page-number

The binary would then be located in ~/bin.

WSL Install Problem

  • wsl –install (double slash), then restart Windows.
  • Sometimes Ubuntu can’t be installed. It stucked at “Installing, this may take a few minutes”.
  • Just hit ctrl+c to stop it.
  • Try to open Ubuntu to see if it is successful.
  • If not, use wsl -l to check if Ubuntu is installed or not.
  • If it is not installed, uninstall Ubuntu in the Start Menu, then use wsl --install -d Ubuntu reinstall.

Spacemacs Problem

Source Code Pro

Use this-link to install Source Code Pro Font for Spacemacs.

WSL GUI Blurry

Use this-link to fix WSL GUI Blurry.

  • It is okay to just change high DPI settings on the XLaunch shortcut.
  • I don’t need to change the variables like GDK_SCALE etc.

To launch the server at start, put config.xlaunch in Startup folder.

test

This post is licensed under CC BY 4.0 by the author.