Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

dycw/dotfiles-zzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

My dotfiles, powered by dotbot.

Installation

  1. Run the installer:

    1. Mac:

      url=https://raw.githubusercontent.com/dycw/dotfiles/master/installer/curl-entrypoint.sh &&
        bash <(curl -fsLS --proto '=https' --tlsv1.2 "$url")
    2. Ubuntu:

      sudo apt -y install curl &&
        url=https://raw.githubusercontent.com/dycw/dotfiles/master/installer/curl-entrypoint.sh &&
        bash <(curl -fsLS --proto '=https' --tlsv1.2 "$url")
  2. Mount any drives if necessary (https://bit.ly/3Llpgi2):

    1. List the disk partitions:

      > sudo fdisk -l
      
      ...
      Disk /dev/sdb: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
      Disk model: Samsung SSD 860
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disklabel type: gpt
      Disk identifier: 5623EA77-3F36-4FED-BC1D-4BA8FE591A05
      
      Device   Start        End    Sectors   Size Type
      /dev/sdb1 2048 1953523711 1953521664 931.5G Linux filesystem
      ...

      Take note of the partition, /dev/sdb1 in this case.

    2. Create a mount point:

      > sudo mkdir /data
    3. Add your disk to /etc/fstab:

      > sudo vim /etc/fstab

      The result should be:

      ...
      /dev/sdb1    /data    ext4    defaults    0    0
    4. Mount your disk:

      > sudo mount /data
    5. If there is a Structure needs cleaning error, then (https://bit.ly/3L29UO2):

      > sudo fsck.ext -y /dev/sdb1

AMD PC

Nvidia graphics

Source.

  1. Install the drivers:

    sudo ubuntu-drivers autoinstall
    sudo reboot

Sleep/suspend crash/freeze

Source.

  1. Select lightdm as the default display manager:

    sudo apt install -y lightdm
  2. Try the fix; reboot into the GRUB menu and change the Linux boot command:

    - linux /boot/vmlinuz-5.15.0-33-generic root=UUID=0078fc53-b302-4373-a300-ede04a2e826d ro quiet splash $vt_handoff
    + linux /boot/vmlinuz-5.15.0-33-generic root=UUID=0078fc53-b302-4373-a300-ede04a2e826d ro quiet splash  amd_iommu=off $vt_handoff

    Press Ctrl + x to boot.

    If you do not see the GRUB menu, hold down the Shift key or set GRUB_TIMEOUT_STYLE=menu in /etc/default/grub as per here.

  3. Make the fix permanent; edit /etc/default/grub:

    - GRB_CMDLINE_LINUX_DEFAULT="quiet splash"
    + GRB_CMDLINE_LINUX_DEFAULT="quiet splash amd_iommu=off"

    and then:

    sudo update-grub