Yay

Så er jeg igen igen begyndt på et grundforløb på Silkeborg Tekniske Skole. Denne gang 30 uger som elektriker, hvilke nok skal blive sjovt. Pt. Sidder jeg og roder med relæ-styringer, som lidt er som at lege med lego :)

Posted in Random | Tagged | Leave a comment

.Xdefaults

For this to work you also need : terminus-font and xcursor-vanilla-dmz-aa


urxvt*font:        xft:Terminus
urxvt*boldFont:        xft:Terminus
urxvt*italicFont:    xft:Terminus
urxvt*bolditalicFont:    xft:Terminus
urxvt*scrollBar:    false
urxvt*internalBorder:    6

urxvt*background:    #000000
#urxvt*depth: 32
#urxvt*background:     rgba:0000/0000/0000/eeee
#urxvt*background:    #090909
urxvt*foreground:    #DDDDDD

xterm*geometry:         107×33

! terminal colors
————————————————————

! tangoesque scheme
*background: #111111
*foreground: #babdb6
! Black (not tango) + DarkGrey
*color0:  #000000
*color8:  #555753
! DarkRed + Red
*color1:  #ff6565
*color9:  #ff8d8d
! DarkGreen + Green
*color2:  #93d44f
*color10: #c8e7a8
! DarkYellow + Yellow
*color3:  #eab93d
*color11: #ffc123
! DarkBlue + Blue
*color4:  #204a87
*color12: #3465a4
! DarkMangenta + Mangenta
*color5:  #ce5c00
*color13: #f57900
!DarkCyan + Cyan (both not tango)
*color6:  #89b6e2
*color14: #46a4ff
! LightGrey + White
*color7:  #cccccc
*color15: #ffffff

! Xcursor
——————————————————————–

Xcursor.theme: Vanilla-DMZ-AA
Xcursor.size:  22

! Xft settings
—————————————————————

Xft.dpi:        96
Xft.antialias:  true
Xft.rgba:       rgb
Xft.hinting:    true
Xft.hintstyle:  hintslight! Xft settings
—————————————————————

Xft.dpi:        96
Xft.antialias:  true
Xft.rgba:       rgb
Xft.hinting:    true
Xft.hintstyle:  hintslight

urxvt*perl-ext-common:    default,matcher
urxvt*urlLauncher:      /usr/bin/firefox
urxvt*matcher.button:    1
urxvt*cursorBlink:      true
urxvt*termName:         rxvt
urxvt*saveLines:    2000

URxvt.scrollBar: false
URxvt.skipBuiltinGlyphs: true

!## teh transparency stuff
URxvt.inheritPixmap: true
URxvt.tintColor: white
URxvt.shading: 40!

Posted in Arch Linux, Debian, Linux | Tagged , , | Leave a comment

Arch Linux w/ OpenBox

  1. Boot CD & type “km” for keyboard layout, and /arch/setup to start the installer.
  2. Source: core-local (only if you have the core iso, else core-remote)
  3. Pick nano as your editor unless you know vi
  4. Clock: UTC (localtime if you have a windoze partition)
  5. Auto Prepare HDD (if you plan to use entire disk)
  6. Select grub as your bootloader (it’s pretty robust)
  7. Select base, sudo (netcfg & wireless_tools if you use wireless :D) & install them. (type pacman -S base-devel if later you want the extras)
  8. Configure system
    -rc.conf

    -check timezone
    -change myhost to your desired cpu name (ex: sasoria)

    -/etc/modprobe.d/modprobe.conf: add the following lines to disable beep

    blacklist snd_pcsp

    blacklist pcspkr

    -/etc/hosts: be sure to see your hostname
    -/etc/locale.gen: uncomment your locale
    -/etc/pacman.d/mirrorlist: uncomment for your country & some extra close mirrors (e.g., Canada & US in case a mirror is down :D)
    -Set your root passwd & click Done

  9. Install Bootloader (check menu.lst & see if all cool) & select your main HD & Reboot
  10. Login as root & ping www.google.com to check your network (for wifi network here’s what to do: # ifcfg wlan0 up,# iwlist wlan0 scan,# iwconfig wlan0 essid “MyEssid” key s:asciikey, # dhcpcd wlan0)
  11. pacman -Syu & reboot if there was a kernel upgrade
  12. useradd -m -G users,audio,video,wheel,storage,optical,power,network,log -s /bin/bash yourusername (add “lp” to the options if you use a printer)
  13. passwd yourusername
  14. pacman -S alsa-firmware alsa-utils alsa-oss-alsaconf (detect snd card)
    -run alsamixer as normal user (su – yourusername) to adjust vol(m to unmute)
    -save settings by going back root & run alsactl store
  15. type nano /etc/rc.conf to add dbus & alsa: DAEMONS=(dbus … @alsa)
  16. pacman -S xorg-server xorg-xinit xorg-utils xorg-server-utils & pacman -S xf86-video-your_video_card (note: to know your video chipset type:lspci | grep VGA)
  17. type nvidia-xconfig (if you have a nvidia card), else
    Xorg -configure & # cp /root/xorg.conf.new /etc/X11/xorg.conf
  18. pacman -S openbox obconf obmenu lxappearance consolekit
  19. Once openbox is installed, move menu.xml & rc.xml to ~/.config/openbox/ in your home directory:
    # su – yourusername
    $ mkdir -p ~/.config/openbox/
    $ cp /etc/xdg/openbox/rc.xml ~/.config/openbox
    $ cp /etc/xdg/openbox/menu.xml ~/.config/openbox
  20. edit your ~/.xinitrc and add the following:
    exec ck-launch-session dbus-launch openbox-session
  21. YOU’RE DONE. Reboot, login with your user & type startx to access your empty desktop and customize your archbox to your tastes

This guide is shamelessly taken from http://willensky.blogspot.com/

Posted in Arch Linux, How to, Linux | Tagged , | Leave a comment

Debian Wheezy, with Awesome WM

Hello,

I know there are tons and tons of guides and howtos out there, how to do this, but i will anyway show you “my way” of doing to.

I suspect you to know how to work in a console, and now to be afraid of using an editor, such as vi, vim, or nano. Plus common sense :-)

Right, first you go to debian.org and click Getting Debian at the top of the page. I asume you are going to use a usb stick for the installation, so click Here for 32bit or Here for 64 bit. Click the netboot link, and download the “mini.iso” (16mb of size). When its dowloaded, “write” it to your usb stick. I do it like this :

dd if=/path/to/download/mini.iso of=/dev/sdX bs=4M; sync

(where X is fx sdb, sdc etc) and remember you can only use dd as root!

If you are using Windows, get the win32imager (which is dd for Windows) Here.

Reboot your PC, hit F-”whatever” for bootscreen so you can pick the usb key (its F11 on my PC)

 

I strongly assume you have installed Debian before, because if not… This guide is not ment for you. I suggest you head over to debian.org and read the Installation guide first, and come back here when you have done so :)

Follow the Installer and do the harddisk partitioning (keep a note on what harddisk you chose, some systems like my own, have the usb key as /dev/sda), set the root password, create a user, and so on, and when it comes to what to install, don’t and i repeat DO NOT install any graphical enviroment, we’ll take care of that later :)

When it comes to “install bootloader” Say no, and type in /dev/sdb or what the name of the harddisk was when you did the partitioning, the usb key on my system is ALWAYS /dev/sda. When the bootloader is installed, hit continue and the system will reboot.

Login as root. The first thing we’ll do is to upgrade your Debian from Squeeze(stable) to Wheezy(testing). To do so, enter this:

nano -w /etc/apt/sources.list

Then you need your sources.list to look like this :

###### Debian Main Repos
deb http://ftp.dk.debian.org/debian/ wheezy main contrib non-free

###### Debian Update Repos
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb http://ftp.dk.debian.org/debian/ wheezy-proposed-updates main contrib non-free

#### Debian Multimedia – http://www.debianmultimedia.org/
deb http://www.debian-multimedia.org testing main non-free

Save and exit (Control + X if using nao) and type :

apt-get update

Notice the error

Then do :

apt-get install debian-multimedia-keyring

Then again do :

apt-get update

And then

apt-get dist-upgrade

After about 10-15 min depending on your netspeed, and how fast the upgrade is going (CPU and RAM is a factor here) you will reboot into the new kernel, and we will continue.

Login as root.

And do this :

apt-get install xfce4 xfce4-goodies

(yes i know i said awesom wm, but i use xfce as a backend for mixers, icons and so on)

After xfce is installed, we install awesome and a login manager (i chose slim in this case)

Do this :

apt-get install awesome slim

If you dont care or dont use other keymap than us, you are done here, and can reboot, and when slim pops up, hit F1 a few times, till you see “awesome”, enter username and password for your own user, not the root password.

If you dont use us keymap, do as i (i’m from denmark and i need my funky letters æ ø å)

nano -w ~/.xinitrc

and i have this in my .xinitrc

xset s off
xset -dpms
setxkbmap dk
exec awesome

The xset stuff turns off screenblanking and powersaving, if you want the screen to go black every 5 or 10 min, remove it from the file :)

I know this guide isnt a “complete” guide, but this is how i do it after a reinstall, and it has worked well so far. I didnt suggest what icontheme you can use, nor did i suggest any awesome theme, i leave that to you, and as for how to use awesome, as you pretty much has no icons nor a menu, i leave that to you too. If i feel the need for this, and i get asked too much, i WILL add it to this guide.

Until then, take care out there, and be nice to each other :)

Posted in Debian, How to, Linux | Tagged , , | Leave a comment

Just……

20111211-160652.jpg

Posted in Random | Leave a comment

pacman -Syu

Hi and welcome to my new and very geeky looking website :)

Posted in Random | Leave a comment