To setup a new environment:
$ cd ~
$ git clone "git://github.com/zanbaldwin/dotfiles.git" "~/.dotfiles"
$ ~/.dotfiles/install.sh
sudo apt install dconf-tools
dconf write /org/gnome/desktop/input-sources/xkb-options "['caps:swapescape']"
Alternatively, you can use the dconf-editor
GUI once DConf tools are installed.
Use
caps:escape
instead if you want to just set Caps Lock to Escape instead of swapping the functionality of the keys.
Change the screenshot save directory using either dconf-editor
or one of the following commands:
gsettings set org.gnome.gnome-screenshot auto-save-directory "/home/${USER}/Pictures/Screenshots"
dconf write /org/gnome/gnome-screenshot/auto-save-directory "/home/${USER}/Pictures/Screenshots"
This will not change the behaviour of the PrtScr button:
- Go to Settings > Keyboard Shortcuts.
- Disable the keyboard shortcut for the current PrtScr action (Save a screenshot to Pictures).
- Add a new keyboard shortcut for PrtScr with the command
gnome-screenshot
. - Optionall, do the same for Save a screenshot of an area to Pictures with
gnome-screenshot -a
. - Optionall, do the same for Save a screenshot of an window to Pictures with
gnome-screenshot -wb
.
For problems with nVidia drivers:
nomodeset
instructs the kernel to load the video/graphics drivers after the X display server is started. Disabling the graphics driver at boot time removes the conflict; after login / display server start, the graphics card is loaded again.
- During GRUB, edit the target entry and add
nomodeset
at the end of the list of parameters forlinux
. - Save and exit, booting with the modified config.
- Proceed with installation as usual.
- Install nVidia drivers as soon as possible:
- Software & Updates → Additional Drivers
- Alternatively, disable graphics drivers permanently (not recommended):
sudo nano /etc/default/grub
- Add
nomodeset
toGRUB_CMDLINE_LINUX_DEFAULT
sudo update-grub
Using PulseAudio control, list the audio devices registered and set your chosen one as the default.
# List all audio output devices registered with system
pactl list short sinks
# Set an ID from the list as the default (eg, "alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink")
pactl set-default-sink "${CHOSEN_SINK_ID}"
# List all audio input devices registered with system
pactl list short sources
# Set an ID from the list as the default (eg, "alsa_input.usb-Blue_Microphones_Yeti_X_2102SG013BE8_888-000316110306-00.analog-stereo")
pactl set-default-source "${CHOSEN_SOURCE_ID}"
SystemD automatically runs a stub DNS server on port 53. To disable this:
- Set
DNSStubListener
tono
in/etc/systemd/resolved.conf
- Symbolically link this config file to
/run/systemd/resolve/resolv.conf
:sudo ln -s /run/systemd/resolve/resolv.conf /etc/systemd/resolved.conf