Skip to content

Instantly share code, notes, and snippets.

@nikitasius
Last active March 2, 2022 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikitasius/65bd68084ef67cc912b7d8c24bc2a1c6 to your computer and use it in GitHub Desktop.
Save nikitasius/65bd68084ef67cc912b7d8c24bc2a1c6 to your computer and use it in GitHub Desktop.
well well well debian 11

resolv.conf

echo "supersede domain-name-servers 127.0.0.1;" >> /etc/dhcp/dhclient.conf

rc.local

cat <<EOF >/etc/rc.local
chmod +x /etc/rc.local
systemctl daemon-reload
systemctl start rc-local
systemctl status rc-local
#!/bin/sh -e
# 
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
###
# chmod +x /etc/rc.local
# systemctl start rc-local
# systemctl status rc-local
###

exit 0

vim & xfce 0~ 1~

printf "\e[?2004l"

vim & RMB

sed -i 's/set mouse=a/set mouse=r/g' /usr/share/vim/vim82/defaults.vim
  • vim81 - debian 10
  • vim80 - debian 9

eth0 is back

/etc/default/grub
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
grub-mkconfig -o /boot/grub/grub.cfg

disable IPv6

sysctl -w net.ipv6.conf.ens4.disable_ipv6=1

swap off

swapoff -a
sed -i '/swap/d' /etc/fstab

quotas

  • aptitude install quota
  • /etc/fstab add grpquota option to partition
  • modprobe quota_v2
  • echo 'quota_v2' >> /etc/modules
  • quotacheck -avugm
  • quotaon -avug

run scripts in thunar

  • xfconf-query --channel thunar --property /misc-exec-shell-scripts-by-default --create --type bool --set true
  • (from bbs.archlinux.org)

use JDK

:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment