My various dot files to avoid wasting time on install.
- Install git and xclip, create an ssh for git and add it to GitHub:
sudo apt install -y git xclip
ssh-keygen -t rsa -b 4096 -C "thibault.vatter@gmail.com" -N "" -f ~/.ssh/id_rsa
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
xclip -sel clip < ~/.ssh/id_rsa.pub # -> add on github.com
- Clone the repo:
git clone https://github.com/tvatter/dot-files.git
cd ~/dot-files
- Update the line for the latest RStudio and ubuntu version (for cmake) and run the install script:
chmod +x install.sh
./install.sh
Alternatively, a minimal version, without the theme and graphical applications (e.g., for use on a server), can be installed via:
chmod +x install_minimal.sh
./install_minimal.sh
In this case, the theme for the gnome terminal can be further installed using:
git clone https://github.com/Anthony25/gnome-terminal-colors-solarized.git
cd gnome-terminal-colors-solarized; ./install.sh -s dark --install-dircolors; cd ..; rm -rf gnome-terminal-colors-solarized
- Enable rootless Docker by running
dockerd-rootless-setuptool.sh install
- Make zsh the default shell (need to log out and log back in):
chsh -s $(which zsh)
Note that this step sometimes requires sudo
.
- Update make command in Renviron (either
/etc/R/Renviron
or/usr/lib/R/etc/Renviron
, seeR.home()
) to compile on multiple cores:
MAKE=${MAKE-'make -j 8'}
- Install the bitwarden brave extension and log into it
- Complete dropbox install
dropbox start
- Add dropbox as a startup application
- In the "name" field, type
Dropbox
. - In the "command" field, type
/home/{your-username}/.dropbox-dist/dropboxd
.
- In the "name" field, type
- Add terminal as startup application
- Change the theme:
- In
Tweaks
, set the materia or arc theme as well as Jetbrains font
- In
- Update font in the
gnome-terminal
:- Go to
Edit/preferences/profiles/custom font
- Use
JetBrainsMono-Regular
- Go to
- Deactivate bluetooth. If
/etc/rc.local
already exists, simply addrfkill block bluetooth
before the line starting withexit 0
. 18.04+ users who don't naturally have a/etc/rc.local
need to create one and make it executable.
sudo install -b -m 755 /dev/stdin /etc/rc.local << EOF
#!/bin/sh
rfkill block bluetooth
exit 0
EOF
- Install
powertop
, run the calibration and then letpowertop
take measures for a while on battery.
sudo apt install powertop
sudo powertop --calibrate --htlm
sudo powertop --htlm
- You can then verify that
powertop
has enough measurements by runningsudo powertop --auto-tune
. If it runs without issue, you can then add auto-tune as a service.
cat << EOF | sudo tee /etc/systemd/system/powertop.service
[Unit]
Description=PowerTOP auto tune
[Service]
Type=idle
Environment="TERM=dumb"
ExecStart=/usr/sbin/powertop --auto-tune
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable powertop.service
- Install and run
tlp
.
sudo apt install tlp
sudo systemctl status tlp
sudo tlp start
sudo tlp-stat -s
- Follow this suggestion is the battery is drained too fast even when the lid is closed.
- On the host machine:
- Install the required X11 packages by doing
sudo apt install x11-apps
- Configure X11 forwarding
sudo cat /etc/ssh/sshd_config |grep -i X11Forwarding
should return something likeX11Forwarding yes
If not, then edit/etc/ssh/sshd_config
accordingly and restart viasudo service ssh restart
.
- Install the required X11 packages by doing
- On the local machine:
- Add
"terminal.integrated.env.linux": {"DISPLAY":"localhost:10.0"}
insettings.json
- Connect to the host machine via ssh using
-X
in a local terminal (OUTSIDE VSCODE!!!). This will always be needed, see this issue. - In vscode:
- Add the host as a new ssh host using microsoft's extension (
ms-vscode-remote.remote-ssh
). - Make sure that
ForwardX11 yes
is added to~/.ssh/config
(or location of ssh's config) for this host. This can be done e.g. withms-vscode-remote.remote-ssh-edit
. - Connect to the host
- Add the host as a new ssh host using microsoft's extension (
- Add