Skip to content

Instantly share code, notes, and snippets.

@pce
Last active December 14, 2015 03:28
Show Gist options
  • Select an option

  • Save pce/5020691 to your computer and use it in GitHub Desktop.

Select an option

Save pce/5020691 to your computer and use it in GitHub Desktop.
my awesome debian

Create a bootable USB Stick to install debian

In the Example is /dev/sdb the unmounted usb stick.

$ dd if=debian-testing-i386-netinst.iso of=/dev/sdb
516096+0 records in
516096+0 records out
264241152 bytes (264 MB) copied, 92.3948 s, 2.9 MB/s

After dd' the debian image is ready to boot. Install no Desktop Enviroment and Webserver etc.

Install a lighweight WM

After the debian installation, you should get a prompt. "apt-get" packages as root or get root privileges with sudo su.

$ apt-get install xorg lightdm alsa-base awesome

the VIM Editor/IDE

$ apt-get remove --purge vim.tiny
$ apt-get install vim 

Helpful Vim PlugIn's:

  • vundle
  • NERDTree

awesome WM with a network-manger

Install network-manager, an Applet for wireless and virtual private networks.

$ apt-get install network-manager network-manager-gnome network-manager-vpnc vpnc

Setup Instructions ( https://awesome.naquadah.org/wiki/Nm-applet#nm-applet_.3E.3D_0.9.4.1-1 )

Create a Script run_once under /usr/local/bin

$ vim /usr/local/bin/run_once

#!/bin/bash
pgrep $@ > /dev/null || ($@ &)

make it executable $ chmod +x /usr/local/bin/run_once and append the spawn of the networkmanager applet to rc.lua. $ vim /etc/xdg/awesome/rc.lua

awful.util.spawn_with_shell("/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1")
awful.util.spawn_with_shell("run_once nm-applet")

awesome themes

Fetch a copy of the montecarlo-font (https://aur.archlinux.org/packages/montecarlo-font/) and install MonteCarloBold.pcf, MonteCarloMedium.pcf to /usr/share/fonts. Copy /etc/xdg/awesome/rc.lua to ~/.config/awesome/rc.lua, install themes and add beautiful.init(awful.util.getdir("config") .. "/themes/bamboo/theme.lua") to rc.lua and adjust bambbo/theme.lua: theme.font = "MonteCarlo 8", background etc.

the mozilla firefox browser

Download a firefox bz2 archive for Linux. $ w3m www.mozilla.org/downloads/en-US/all/

Unpack the archive $ tar xvfb firefox*.bz2

Create a Startscript in /usr/local/bin/firefox, and register a menuitem. $ vim /etc/xdg/awesome/rc.lua

browsermenu = {
  { "&firefox", "firefox" }
}

..._menu.Debian },
 {"browser", browsermenu},
 {"open terminal", terminal}, 
...

http://awesome.naquadah.org/wiki/Awful.menu

the z-shell

$ apt-get install zsh

Create a ~/.zshrc and update Changes with source ~/.zshrc

Example:

# options
setopt NO_BEEP

setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_SPACE
setopt INC_APPEND_HISTORY
setopt EXTENDED_HISTORY

SAVEHIST=9000
HISTSIZE=9000
HISTFILE=~/.zsh_history


# alias
# duh - disk usage humanreadable, source 'inataysia' reddit
alias duh='du -sk * | sort -n | while read size fname; do for unit in k M G T P E Z Y; do if [ $size -lt 1024 ]; then echo -e "${size}${unit}\t${fname}"; break; fi; size=$((size/1024)); done; done'
# ...

Make zsh the default Shell with chsh:

chsh and enter /bin/zsh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment