My Ubuntu tweaks: Difference between revisions
Jump to navigation
Jump to search
Tag: Reverted |
|||
| Line 94: | Line 94: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
sudo aptitude install texlive-base texlive-bibtex-extra texlive-binaries texlive-fonts-extra texlive-fonts-extra-links texlive-fonts-recommended texlive-lang-german texlive-lang-greek texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-pictures texlive-plain-generic texlive-science | sudo aptitude install texlive-base texlive-bibtex-extra texlive-binaries texlive-fonts-extra texlive-fonts-extra-links texlive-fonts-recommended texlive-lang-german texlive-lang-greek texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-pictures texlive-plain-generic texlive-science | ||
</syntaxhighlight> | |||
= Virtualbox Autostart = | |||
Follow the steps described here: | |||
* https://blogging.dragon.org.uk/start-stop-virtualbox-with-systemd/ | |||
First disable the Oracle vboxautostart-service and remove its config folder: | |||
<syntaxhighlight lang="bash"> | |||
sudo systemctl disable vboxautostart-service | |||
sudo rm -rf /etc/vbox | |||
</syntaxhighlight> | |||
Append vboxusers group to your list of existing groups: | |||
<syntaxhighlight lang="bash"> | |||
groups | |||
sudo usermod -a -G vboxusers <user> | |||
</syntaxhighlight> | |||
Create a new service: | |||
<syntaxhighlight lang="bash"> | |||
sudo nano /etc/systemd/system/<vm_autostart_name.service> | |||
</syntaxhighlight> | |||
And add the following content for the new service to start a virtualbox machine: | |||
<syntaxhighlight lang="bash"> | |||
[Unit] | |||
Description=<vm name> | |||
After=network.target vboxdrv.service | |||
Before=runlevel2.target shutdown.target | |||
[Service] | |||
User=<user to run the vm> | |||
Group=vboxusers | |||
Type=forking | |||
Restart=no | |||
TimeoutSec=5min | |||
IgnoreSIGPIPE=no | |||
KillMode=process | |||
GuessMainPID=no | |||
RemainAfterExit=yes | |||
ExecStart=/usr/bin/VBoxManage startvm <vm_name> --type headless | |||
ExecStop=/usr/bin/VBoxManage controlvm >vm_name> acpipowerbutton | |||
[Install] | |||
WantedBy=multi-user.target | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 10:04, 13 December 2021
Packages for all boxes
sudo apt install aptitude
sudo aptitude install net-tools avahi-daemon avahi-autoipd
Packages for dev boxes
must haves
sudo aptitude install openssh-server konsole yakuake htop
- Add yakuake to "startup applications" - guckst Du
bits and pieces
sudo aptitude install kate konqueror
Various dev Tools
sudo aptitude install git subversion build-essential make minicom
- to be able to use minicom and serial ports, add your username to the dailout group:
sudo adduser <the dev user> dialout
Arrange workspaces in a two dimensional grid with workspace thumbnails.
- https://askubuntu.com/questions/1232919/how-do-i-get-grid-workspaces-in-ubuntu-20-04
- https://extensions.gnome.org/extension/1485/workspace-matrix/
Enable workspaces on all monitors:
gsettings set org.gnome.mutter workspaces-only-on-primary false
Packages for server boxes
tbd
General tweaks
Shell/Bash
Add the following mappings to /etc/inputrc for a very convinient history search:
# mappings for "page up" and "page down" to search the history
"\e[5~": history-search-backward
"\e[6~": history-search-forward
Öpfelbuech / mac book tweaks
Enable direct Function Key F1..F12
sudo bash -c "echo 2 > /sys/module/hid_apple/parameters/fnmode"
or add the following line to /etc/modprobe.d/hid_apple.conf
options hid_apple fnmode=2
and run:
sudo update-initramfs -u
reboot your system - be happy! ;-)
WLAN
Download bcmwl-kernel-source package from https://packages.ubuntu.com/groovy/amd64/bcmwl-kernel-source/download and (re)-install it (info source):
sudo apt remove --purge bcmwl-kernel-source
wget http://de.archive.ubuntu.com/ubuntu/pool/restricted/b/bcmwl/bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu7_amd64.deb
sudo dpkg -i bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu7_amd64.deb
have fun with Tex/Latex
A few nice latex packages (tbd.):
sudo aptitude install texlive-base texlive-bibtex-extra texlive-binaries texlive-fonts-extra texlive-fonts-extra-links texlive-fonts-recommended texlive-lang-german texlive-lang-greek texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-pictures texlive-plain-generic texlive-science
Virtualbox Autostart
Follow the steps described here:
First disable the Oracle vboxautostart-service and remove its config folder:
sudo systemctl disable vboxautostart-service
sudo rm -rf /etc/vbox
Append vboxusers group to your list of existing groups:
groups
sudo usermod -a -G vboxusers <user>
Create a new service:
sudo nano /etc/systemd/system/<vm_autostart_name.service>
And add the following content for the new service to start a virtualbox machine:
[Unit]
Description=<vm name>
After=network.target vboxdrv.service
Before=runlevel2.target shutdown.target
[Service]
User=<user to run the vm>
Group=vboxusers
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
ExecStart=/usr/bin/VBoxManage startvm <vm_name> --type headless
ExecStop=/usr/bin/VBoxManage controlvm >vm_name> acpipowerbutton
[Install]
WantedBy=multi-user.target