Debian Notes

No longer updated; please use this link

dpkg --get-selections
Show installed packages	

dpkg --get-selections | grep mouse
dpkg -S xserver-xorg-input-kbd
Show installed packages with mouse in name

dpkg -L xserver-xorg-input-mouse
Show locations of files within a package

sudo dpkg-reconfigure slim
Reconfigure a package

apt-cache search xserver-xorg-input-kbd
aptitude search xserver-xorg-input-kbd
Search repository for package by name and description 

apt-cache search --names-only xorg
Search packages querying in the name only

apt-cache show xserver-xorg-input-mouse
apt-cache showpkg xserver-xorg-input-mouse
Show detailed information about a package

apt-get install dwb 
Install a package

adduser hippiechick sudo
Add a user to the sudo group
User must logout and login to take effect

lspci -v | grep VGA
Show type of video card system has

vim /usr/share/gdm/dconf/10-desktop-base-settings
File to set background image if using gdm

vim /usr/share/gdm/dconf/10-desktop-base-settings
Remove background picture

vim /etc/gdm3/greeter.gsettings
File to change the login screen for gdm3

dpkg-reconfigure gdm3
Reload gdm3 configuration on logout/reboot

Location of alternatives. Don't cat these they
are binaries. Just use them to see what options
you can throw at update alternatives.

update-alternatives --display x-window-manager
Shows the symlinks for the default and alternative
window managers

update-alternatives --config x-window-manager
Shows alternatives and give choice of which to use

update-alternatives --config x-www-browser
Set which browser to use as default

update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/bin/dwb 100
Add dwb to x-www-browser list and set it's priority to 100

Slim notes to keep in mind
This file determines the default display manager
Would be for gdm3
Sets slim as the default display manager
qingy - is another choice

Contain the settings for gdm3
This line will instructs whether gdm3 should
respect the default, if set to false, it
can run at same time as another.


i3 as default window manager with slim
sudo update-alternatives --install /usr/bin/x-window-manager x-window-manager /usr/bin/i3 200
Set i3 to have a higher priority than it did before.
Slim is reading gnome-session as the default, when
logging in. I want it to be i3.

Even if this file has i3 as the first option under
sessions. Slim still defaulting to gnome.

Now create or edit and add:
exec i3

Slim's default is now i3!

The culprit seems to be this file:
# If there is still nothing to use for a startup program, try the system
 # default session manager, window manager, and terminal emulator.
 if [ -z "$STARTUP" ]; then
   if [ -x /usr/bin/x-session-manager ]; then
   elif [ -x /usr/bin/x-window-manager ]; then
   elif [ -x /usr/bin/x-terminal-emulator ]; then

So two other options may be to try to set:
As i3. I don't know what will happpen.
Or to change these lines, so that it reads

Of course if you ever stop using i3 these will
need to be changed back, especially if change to 

Not sure which of the three is best, but right
now I'm using .xsession = exec i3

Ok I removed .xsession and swapped the if statements
around and it still works.

ps -aux | wc -l
Shows 130 process running this way.

Changing 50x11-common_determine-startup
back to the original way and putting
~/.xsession back
ps -aux | wc -l
128 processes

So take you pick. The .xsession way seems to be
the easier one to alter if future changes occur.
Might even be able to use it to jump to bspwm
and not have to change all the other debian
config crap. Not gonna try setting i3 to
x-session-manager, already have to fixes.

I do have i3 first in:
sessions    i3,gnome-session
If that makes a difference.

And I was rebooting for these to take effect.
Not sure if there is a way to reload on the fly.