Dual Ubuntu with win11
Table of Contents
This is the dual ubuntu set up progress1
refer to Dual Ubuntu 22.04 If you have a new SSD, and prepare to use entire SSD as the Ubuntu disk, you can start from 三、安装Ubuntu及分区.
Version info
This is the tutorial about how to dual ubuntu with windows 11 on different harewares. version information: windows 11 24H2 Ubuntu 22.04 LTS
Preparation
- a 8 GB usb at least
- a new SSD
My Disk Split
my disk is 1 TB
swap: 32 GB/: 100 GBefi: 1GB
Automatically Mount other disks of windows in the Ubuntu
sudo fdisk -l sudo blkid
find your disk name, then find the UUID
sudo vim /etc/fstab
finally,
UUID=<UUID> <mount point> <type> <options> <dump> <pass> # the windows C was on /dev/nvme0n1p3 UUID=<UUID> /winc ntfs defaults 0 2
Others
Internet
The Internet vpn
https://github.com/clash-verge-rev/clash-verge-rev cd dir sudo apt install ./file.deb
campus internet
There is no official guide to connect the campus Internet in the Sun Yat-sen University on the Unbuntu. So I create this blog. Following is the correct setting.
- Security: WPA & WPA2 Enterprise
- Authentication: PEAP
- Check the
No CA certificate is requiredoption. - Inner authentication: GTC
then others keep dufault.
System
change the grub theme
gnome-look.org/browse?cat=109&ord=latest I choose this one https://www.gnome-look.org/p/1280604
sudo chmod a+x install.sh sudo ./Install.sh
change the keybinding
sudo vim /etc/default/keyboard
here is change the left control with the capslock.
# KEYBOARD CONFIGURATION FILE # Consult the keyboard(5) manual page. XKBMODEL="pc105" XKBLAYOUT="us" XKBVARIANT="" XKBOPTIONS="ctrl:swapcaps" BACKSPACE="guess"
ubuntu pro
go to the ubuntu pro website, register the account, then copy the token
sudo pro attach <token> pro status sudo apt update && sudo apt upgrade
if your computer will keep running for a long time. you can sudo pro enable livepatch
change to ppi to 125%
sudo apt install gnome-tweaks in the tweaks Fonts/Size/Scaling Factor
Docker bar
sudo apt install gnome-shell-extension-manager
then remove the dock
in the setting Ubuntu desktop/ Dock/Auto-hide the dock
auto-cpufreq
git clone https://github.com/AdnanHodzic/auto-cpufreq.git
cd auto-cpufreq && sudo ./auto-cpufreq-installer
then open the auto-cpufreq, click the install.
install zsh
sudo apt install curl sudo apt install git sudo apt install neovim
sudo apt install zsh chsh -s /bin/zsh sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions vim ~/.zshrc
Add zsh-syntax-highlighting zsh-autosuggestions z in the plugins=(git)
Fix hp 1020 printer didn't work in the Ubuntu 24.04
- Problem
As for me, the ubuntu could recognize the hp 1020, but no matter how much times I send tasks to the printer, it never run actually.
- Solution
sudo hp-plgin
Follow the hints.
- Some errors
Here I encountered some problems.
Downloading firmware to device hp:/usb/HP_LaserJet_1020?serial=JL3AW5S... Traceback (most recent call last): File "/usr/bin/hp-plugin", line 409, in <module> if d.downloadFirmware(): ^^^^^^^^^^^^^^^^^^^^ File "/usr/share/hplip/base/device.py", line 2672, in downloadFirmware log.debug("%s bytes downloaded." % utils.commafy(bytes_written)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/hplip/base/utils.py", line 476, in commafy return locale.format("%s", val, grouping=True) ^^^^^^^^^^^^^ AttributeError: module 'locale' has no attribute 'format'. Did you mean: '_format'? ~ 25s base py
I do following. edit
/usr/share/hplip/base/utils.py, foundcommafyfunction:return locale.format("%s", val, grouping=True)
change to:
return locale.format_string("%s", val, grouping=True)
Finally, rerun
sudo hp-plugin, no errors.
doom emacs
sudo apt update sudo apt install cmake libtool sudo apt install build-essential cmake libncurses-dev libssl-dev
go here to find the newest .deb https://github.com/BurntSushi/ripgrep/releases
wget ... sudo dpkg -i .deb
the same https://github.com/sharkdp/fd/releases
sudo apt install shellcheck sudo apt install pandoc # 安装编译工具和基础依赖 sudo apt install -y build-essential git autoconf texinfo # 安装图形界面和功能依赖 sudo apt install -y libgtk-3-dev libgnutls28-dev libtiff5-dev libgif-dev libjpeg-dev libpng-dev libxpm-dev libncurses-dev libxml2-dev libjansson-dev libtree-sitter-dev gcc --version sudo apt install libgccjit-<yours>-dev ./configure \ --prefix=/usr/local \ --with-native-compilation \ --with-tree-sitter \ --with-x-toolkit=gtk3 \ --with-json
https://ftp.gnu.org/gnu/emacs/emacs-29.4.tar.xz
tar -xf <file> cd <folder> # 使用所有 CPU 核心加速编译 make -j$(nproc) sudo make install emacs --version # 检查安装路径(应显示 /usr/local/bin/emacs) which emacs git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.config/emacs ~/.config/emacs/bin/doom install
Accomplish this by adding this to your .bashrc or .zshrc file:
export PATH~=~"$HOME/.config/emacs/bin:$PATH"
doom upgrade doom sync
Execute M-x nerd-icons-install-fonts from within Doom Emacs
change the web browers
download the google chrome and the install with apt. now you can uninstall the firefox. add the vimium c to chrome
sudo apt update && sudo apt upgrade -y sudo apt install google-chrome-stable -y
Software
Local Send
sudo apt install gir1.2-appindicator3-0.1 gir1.2-ayatanaappindicator3-0.1
anki
sudo apt install libxcb-xinerama0 libxcb-cursor0 libnss3
tar xaf Downloads/anki-2XXX-linux-qt6.tar.zst
cd anki-2XXX-linux-qt6
sudo ./install.sh
mpv
sudo apt install mpv
miniconda
alt space
https://albertlauncher.github.io/
here to install
change the Settings/Keyboard/Keyboard shortcuts
I use alt+space as the hotkey.
flatpak
sudo apt install gnome-software https://flatpak.org/setup/Ubuntu sudo snap remove snap-store
latex
https://ctan.javinator9889.com/systems/texlive/tlnet/ dowload the unx.tar.gz tar -xzvf … cd sudo ./in
export MANPATH="/usr/local/texlive/2024/texmf-dist/doc/man:$MANPATH" export INFOPATH="/usr/local/texlive/2024/texmf-dist/doc/info:$INFOPATH" export PATH="/usr/local/texlive/2024/bin/x86_64-linux:$PATH"
ssh key
ssh-keygen -t ed25519 -C "kazurezheng@gmail.com" eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_ed25519
syncthing
add zotero
hugo
Install rime on Ubuntu 24.04
SCHEDULED:
create shortcut of application in the Ubuntu
App Fleet
A workspace manager https://github.com/omegaui/app_fleet