Skip to content

Instantly share code, notes, and snippets.

## Create a gist
- Goto gist.github.com, create an account of login.
- Click on the Plus Sign in the upper right to create a gist file.
- Name the gist.
- Click the green button on the bottom of the gist box, but at the downward arrow.
- Select create a public gist. The click on the green button reading Create a public gist.
- Once the file is created, just copy the url in the browser web address area.
- Paste in the file into the forum post box.
@ctsdownloads
ctsdownloads / unpack-commands.txt
Created February 10, 2023 00:13
unpack-commands.txt
## Just Ctrl A to copy and paste the everything here into a terminal, press enter. Yes, even this comment.
cd wi-fi-fixer/ && chmod +x wifi-fixer-bash-script.sh && sh wifi-fixer-bash-script.sh
@ctsdownloads
ctsdownloads / wifi-fixer-downloader
Last active February 9, 2023 23:50
wifi-fixer-downloader
# Just copy the code below, drop it into the terminal of a computer with Internet.
# https://github.com/ctsdownloads/wi-fi-fixer/blob/main/README.md
sudo apt-get install git -y > /dev/null && git clone https://github.com/ctsdownloads/wi-fi-fixer.git && cd wi-fi-fixer && chmod +x wifi-fixer-bash-script.sh && wget https://gist.githubusercontent.com/ctsdownloads/41188544c0b47fb1ed87abddff065245/raw/52dceae3c33093ad51e2898a3bcc092122d9ebc5/unpack-commands.txt -P ~/wi-fi-fixer && echo -e "\033[1;33mEnter your wifi SSID, then press Enter: \033[0m" && read ssid && [ -f wifi-fixer-bash-script.sh ] && sed -i "s/assigned_wap=.*/assigned_wap="$ssid"/" wifi-fixer-bash-script.sh && cd ~/ && tar -czvf wi-fi-fixer.tar.gz wi-fi-fixer/* > /dev/null && sleep 2 && rm -rf wi-fi-fixer && echo -e "- \033[1;33mYour wi-fi-fixer is packed and ready to be copied to a flash drive.\033[0m \n
- Copy wi-fi-fixer.tar.gz located in your /home/$USER directory to a USB flash drive. \n
- On the laptop without Wi-Fi, plugin your USB flash driv
@ctsdownloads
ctsdownloads / 11th gen - Ubuntu 22.10 Installation on the Framework Completing Setup
Last active March 17, 2023 22:12
11th gen - Ubuntu 22.10 Installation on the Framework Completing Setup
# This is for 11th Gen ONLY.
# Copy the entire text block below, paste into the terminal, press enter and type your
user's password as prompted.
# This will:
# - Update your Ubuntu install's packages.
# - Workaround needed to get the best suspend battery life for SSD power drain.
# - Enable improved fractional scaling support for Ubuntu's GNOME environment using Wayland.
@ctsdownloads
ctsdownloads / 12th gen - Ubuntu 22.10 Installation on the Framework Completing Setup
Last active April 26, 2023 14:45
12th gen - Ubuntu 22.10 Installation on the Framework Completing Setup
# This is for 12th Gen ONLY.
# Copy the entire text block below, paste into the terminal, press enter and type your
user's password as prompted.
# This will:
# - Update your Ubuntu install's packages.
# - Workaround needed to get the best suspend battery life for SSD power drain.
# - Disable the ALS sensor so that your brightness keys work.
@ctsdownloads
ctsdownloads / 11th gen - Ubuntu 22.04 LTS Installation on the Framework Completing Setup
Last active April 5, 2023 23:37
11th gen - Ubuntu 22.04 LTS Installation on the Framework Completing Setup
# This is for 11th Gen ONLY.
# Copy the entire text block below, paste into the terminal, press enter and type your
user's password as prompted.
# This will:
# - Update your Ubuntu install's packages.
# - Install the recommended OEM kernel.
# - Workaround needed to get the best suspend battery life for SSD power drain.
@ctsdownloads
ctsdownloads / 12th gen - Ubuntu 22.04 LTS Installation on the Framework Completing Setup
Last active April 5, 2023 23:40
12th gen - Ubuntu 22.04 LTS Installation on the Framework Completing Setup
# This is for 12th Gen ONLY.
# Copy the entire text block below, paste into the terminal, press enter and type your
user's password as prompted.
# This will:
# - Update your Ubuntu install's packages.
# - Install the recommended OEM kernel. Now recommending a new OEM kernel.
# - Workaround needed to get the best suspend battery life for SSD power drain.
@ctsdownloads
ctsdownloads / pipewire.md
Created January 18, 2023 23:11 — forked from shakthizen/pipewire.md
Enable PipeWire on Ubuntu 22.04

Enable PipeWire on Ubuntu 22.04

This guide is only for original Ubuntu out-of-the-box packages. If you have added a custom PPA like pipewire-debian, you might get into conflicts.

Ubuntu 22.04 has PipeWire partially installed and enabled as it's used by browsers (WebRTC) for recoding the screeen under Wayland. We can enable remaining parts and use PipeWire for audio and Bluetooth instead of PulseAudio.

Starting from WirePlumber version 0.4.8 automatic Bluetooth profile switching (e.g. switching from A2DP to HSP/HFP when an application needs microphone access) is supported. Jammy (22.04) repos provide exactly version 0.4.8. So, we're good.

Based on Debian Wiki, but simplified for Ubuntu 22.04.

@ctsdownloads
ctsdownloads / pipewire.md
Created January 18, 2023 23:11 — forked from shakthizen/pipewire.md
Enable PipeWire on Ubuntu 22.04

Enable PipeWire on Ubuntu 22.04

This guide is only for original Ubuntu out-of-the-box packages. If you have added a custom PPA like pipewire-debian, you might get into conflicts.

Ubuntu 22.04 has PipeWire partially installed and enabled as it's used by browsers (WebRTC) for recoding the screeen under Wayland. We can enable remaining parts and use PipeWire for audio and Bluetooth instead of PulseAudio.

Starting from WirePlumber version 0.4.8 automatic Bluetooth profile switching (e.g. switching from A2DP to HSP/HFP when an application needs microphone access) is supported. Jammy (22.04) repos provide exactly version 0.4.8. So, we're good.

Based on Debian Wiki, but simplified for Ubuntu 22.04.

@ctsdownloads
ctsdownloads / Ubuntu 22.10 Completing Setup
Created January 5, 2023 00:56
Ubuntu 22.10 Completing Setup
# Make sure to update your packages to get the latest kernel
sudo apt update && sudo apt upgrade -y
# To enable headset mic input, edit /etc/modprobe.d/alsa-base.conf
echo "options snd-hda-intel model=dell-headset-multi" | sudo tee -a /etc/modprobe.d/alsa-base.conf
# On some SSDs (e.g. SN750 with older firmware), there is a workaround to improve suspend battery life