My Ubuntu tweaks: Difference between revisions

From chriesibaum wiki
Jump to navigation Jump to search
Tag: Reverted
Tag: Reverted
Line 144: Line 144:
[Install]
[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target
</syntaxhighlight>


Reload systemd daemon:
<syntaxhighlight lang="bash">
sudo systemctl daemon-reload
</syntaxhighlight>
Enable the new service:
<syntaxhighlight lang="bash">
sudo systemctl enable <vm_autostart_name>
</syntaxhighlight>
Finally, test the service:
<syntaxhighlight lang="bash">
sudo systemctl start <vm_autostart_name>
sudo systemctl stop <vm_autostart_name>
sudo systemctl status <vm_autostart_name>
</syntaxhighlight>
</syntaxhighlight>

Revision as of 10:05, 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.

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


Reload systemd daemon:

sudo systemctl daemon-reload


Enable the new service:

sudo systemctl enable <vm_autostart_name>


Finally, test the service:

sudo systemctl start <vm_autostart_name>
sudo systemctl stop <vm_autostart_name>
sudo systemctl status <vm_autostart_name>