Skip to content

Commit

Permalink
Install util-linux-extra
Browse files Browse the repository at this point in the history
  • Loading branch information
wizawu committed Jun 26, 2024
1 parent 9408f6e commit b5cfa70
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 29 deletions.
7 changes: 0 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ clean:
install:
ansible-playbook -b -e user=wizawu -v install.yml


swap:
echo 60 >> /proc/sys/vm/swappiness
dd if=/dev/zero of=/swap bs=4M count=1024
chmod 600 /swap && mkswap /swap
swapon /swap && swapon -s

cron:
ansible-playbook cron.yml

Expand Down
14 changes: 1 addition & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
### Install


```bash
# edit /etc/network/interfaces
auto lo
Expand All @@ -11,7 +10,7 @@ iface wlan0 inet dhcp

# run as root
ifup wlan0
echo "deb http://mirrors.aliyun.com/ubuntu noble main restricted universe multiverse" > /etc/apt/sources.list
echo "deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble main restricted universe multiverse" > /etc/apt/sources.list
apt-get update
apt-get install git make ansible openssh-client openssh-server sudo
echo > /etc/apt/sources.list
Expand All @@ -31,17 +30,6 @@ update-grub
systemctl set-default multi-user.target
```

### Fix Intel Iris Xe graphics

```bash
# change the following line in /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="splash quiet nomodeset"
# to
GRUB_CMDLINE_LINUX_DEFAULT="splash quiet i915.enable_psr=0"

update-grub
```

### Enable more cpufreq governors (than powersave and performance)

```bash
Expand Down
Binary file removed bin/axel
Binary file not shown.
1 change: 1 addition & 0 deletions dotfiles/config/Code/User/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"C_Cpp.default.cppStandard": "gnu++20",
"[css]": {
"editor.detectIndentation": true,
"editor.insertSpaces": true,
Expand Down
1 change: 1 addition & 0 deletions install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
- systemd-sysv
- tlp
- tlp-rdw
- util-linux-extra
- wpasupplicant

- name: check built-in tools
Expand Down
2 changes: 1 addition & 1 deletion tasks/command.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
- name: install cli tools
apt:
name:
# FIXME hwclock
- ack-grep
- apt-file
- autossh
Expand Down Expand Up @@ -53,6 +52,7 @@
path: /usr/bin/{{item}}
state: absent
with_items:
- git-abort
- git-alias
- git-archive-file
- git-authors
Expand Down
21 changes: 13 additions & 8 deletions tasks/desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,6 @@
- xserver-xorg-input-synaptics
- xtrlock

- name: uninstall packages
apt:
state: absent
name:
- xdg-desktop-portal-gtk
- xdg-desktop-portal-wlr

- name: install input method
apt:
name:
Expand All @@ -64,7 +57,19 @@
apt:
install_recommends: true
name:
- cinnamon
- cinnamon-session
- cinnamon-control-center
- nautilus
- network-manager-gnome

- name: uninstall packages
apt:
state: absent
name:
- xdg-desktop-portal-gtk
- xdg-desktop-portal-wlr

- name: remove cinnamon-screensaver, nemo-desktop
shell: |
mv /usr/bin/cinnamon-screensaver /usr/bin/.cinnamon-screensaver
mv /usr/bin/nemo-desktop /usr/bin/.nemo-desktop

0 comments on commit b5cfa70

Please sign in to comment.