Diemension9

  • News
  • Linux
  • Fuckipred
  • Tiny gems
  • Htc Hero
  • Downloads
  • bsd – the last one standing

    been fiddling around with freebsd and openbsd for a while (mainly on the mac mini as both laptops have been tied up at school/work) and after reading about kernel.org’s skynet mirror i made the full move. This means there will be no more updates regarding linux software/installation/drivers/kernel.
    my main project at the moment, an rtorrent-xmlrpc-wrapper-lib together with a simple gtk-frontend and a ssl-only webbserver serving only rtorrent-info, compiles nicely on freebsd – which ended up being my bsd of choice for the mini. the lib is still in early pre-alpha but can send requests and receive the responses by itself (this means you do not need to install any software, i.e webserver to run a frontend). Hopefully ill get some more work done on it during the summer.
    Had a couple of beers now so this might have been a bit rambling but i hope you get the gist of it..

    // sluggo

    update: just realized im still administrating some debian-based servers at work.. so there might come some vague posts about that.

    Posted

    2011-05-21 #

    Filed under

    Linux, News

    Tags

    arch linux, bsd, freebsd, front end, frontend, linux, openbsd, rtorrent, xmlrpc

    no comments

  • Arch linux single, pure efi boot on the macbook air3,1/3,2

    Status
    11-04-17: haven’t found any time to update anything. school and work is still getting in the way, have literally been at the uni every day since last update.
    11-03-02: Tiny typos and some other stuff. the upcoming three weeks are insane so probably won’t be any updates during that time.
    11-02-26: woha.. long time no see! did a reinstallation today with the new archboot and updated the packages- and kernel-section. will update the link to the new archboot later.
    11-01-31: ran into another site which i remembered visiting while getting the mba to work.. so thats another reference!
    11-01-29: The grub2-efi pkg has been moved to the official testing repo, again Keshav (skodabenz) provided the updated info. Also added the reference Debian on the MacBookAir3,1, it really was a good reference while installing.. dunno why i forgot it!
    11-01-28: added a link to the grub2 article in archwiki, thank you Keshav (skodabenz) for the info (see comment). sorry bout the delay, school and work getting in the way again.
    11-01-17: just remembered that you might need to sudo the dd in os x.
    11-01-16: Added new (empty) section regarding hotkeys and one (with a quick pointer, not done) for offline installs.
    11-01-15: Updated the empty sections with some pointers, far from a full guide yet tho.. but haven’t got more time than this right now.
    11-01-11: First couple of sections published.

     

    TOC

    > Work in progress, disclaimer, etc etc
    > Hardware needed
    > Software needed
    > Preparations for offline installation
    > USB preparation
    > Archbooting
    > Preparing the drive
    > Installing packages
    > Installing the mba3 kernel
    > Installing grub2
    > Blessing your installation
    > Post installation
    > The nvidia drivers
    > Hotkeys
    > References

     

    Work in progress, disclaimer, etc etc
    This guide is far from done, still missing a bunch of sections and is not very well written.. and as always, if your macbook air should burst into flames, grow legs and go on a murderous rampage or just plainly slap you in the face – stop using guides you find on the internet!
    also, <enter> or <tab> means the keys “enter” or “tab”..
    enjoy!

     

    Hardware needed

    > Macbook air 3,1 or 3,2 (duh!)
    > usb-to-ethernet adapter (unless you’re doing an offline install)
    > mac os x usb stick (the one that comes with the mba)
    > two usb sticks > 512mb (or one and an external cd-drive)

     

    Software needed

    > Archboot 2010.12
    > rEFIt iso
    If installing without internet connection
    > mba3 kernel binaries
    > grub2 (from skodabenz repo)
    > hfsprogs (which requires the libbsd package)
    > pommed

     

    Preparations for offline installation
    All you really have to do is download the packages (including the source and patches for pommed, not just the aur tarball) and store them somewhere..

     

    USB preparation
    Start by booting into mac os x, download archboot and refit and unpack the latter (which for me got done automatically).
    Now plug in your first usb stick (if you only got the one and a cd-drive use the usb here) and fire up the terminal (Applications >> Utilities >> Terminal). First of you need to unmount the volume by typing

    diskutil umount /Volumes/your-usb-stick

    where your-usb-stick is the name of your usb-stick. when the volume is unmounted you navigate to the folder with the refit-iso which should be called rEFIt-0.14.cdr (the version may vary). if you downloaded it to your home folder you’re already there, otherwise it’s prolly just to

    cd Downloads

    Now it’s time to write the image to the disk but to make sure you write it to the right one you can run

    diskutil info /dev/disk1

    alotta info will be listed, there will be a “Vendor”-line which should help you figure out whether it’s the right one, if it’s not just try /dev/disk2,3… til you find the right one (i’ll continue using disk1 here so if that’s not right for you don’t copy the commands!). write the iso to your usb with

    dd if=rEFIt-0.14.cdr of=/dev/disk1

    if you get an error regarding permissions just slap in a sudo:

    sudo dd if=rEFIt-0.14.cdr of=/dev/disk1

    after you’re done unmount the disk completely by

    diskutil unmountDisk /dev/disk1

    and unplug the usb.
    Now do the same with your second usb and the archboot iso (plug in, unmount volume, dd if=archlinux-2010.12-1-archboot.iso of=/dev/disk1, unmount disk), if you only got one usb burn the iso to a cd.

     

    Archbooting
    Plugin both usb sticks (i’ll just stick to the sticks from now on, it’s basically the same if you use a cd), reboot and hold down the option-key (left alt-key, third from the left). You will be presented with a nice graphical menu where you can choose between rEFIt and Mac OS X, select rEFIt. In the next menu, before you go ahead and boot from your usb, step down and select “about rEFIt” (the one in the middle of the smaller icons), in the screen that follows you will see a line which says either

    Screen Output:  UGA Draw (EFI 1.10), 1440 x 900

    or

    Screen Output:  Graphics Output (UEFI), 1440 x 900

    if it’s the first one remember to add the lines

    set debug=video
    insmod efi_gop

    to your grub.cfg later on, if it’s the second one

    set debug=fb
    insmod efi_uga

    should be used.. whats grub.cfg? you ask (unless you’re familiar with grub2 =), don’t you worry your sweet little head, we’ll get to that!
    Now, go back and boot from your smokin hot archboot usb!
    When presented with the Archboot-menu step down to the first x86_64-kernel (not the lts-one!), press <tab> and add the argument reboot=pci to the kernel argument list (feel free to add any kernel args you please, but reboot=pci you gotta have), if you’re on a non-US keyboard the =-sign is located on the first key left of the backspace. Hit enter and the booting will commence!

     

    Preparing the drive
    When you’re all booted up, unplug the rEFIt-disk and plugin your usb-to-ethernet adapter. Hit enter to get into the installation menu, here you can setup your keyboard and to get your network going you can go down to “3 Select Source”, choose “FTP/HTTP” and “Set up Network”. When that’s done return to the main menu and select “Exit Install”.. were gonna do this by hand! you’re now all alone on the ever so scary command line! but fear not little one, i shall guide you through this.. start gdisk by entering the command

    gdisk /dev/sda

    We use gdisk, as opposed to fdisk since we want to have a gpt and not mbr. if you’re interested in the differences see the references section.
    if you want some kinda clue of what you’re doing hit “?”<enter> (without the quotes) and read through the different commands, otherwise just go ahead and do as i tell you, minion!
    This is the moment of truth, here you will erase all your data from the drive! if you’re ready to do this hit “o”<enter> (without the quotes), this will erase your current partition-scheme. After that hit “n”<enter><enter><enter>+100MiB<enter>af00<enter> (without the quotes) this will, if i remember the number of <enter>s correctly create a (ridiculously big, but im really not sure how big grub2 can get) Apple HFS/HFS+ partition at the beginning of your drive..
    if you’re an experienced user you can now go ahead and partition your drive as you please, i will however assume that your using a boot partition (here it’ll be formatted with ext2).
    Here is the setup i use

    Number  Size      Code  Name
    1       64 MiB    AF00  Apple HFS/HFS+
    2       100 MiB   0700  Boot
    3       4 GiB     8200  Linux Swap
    4       11 GiB    0700  Root
    5       98 GiB    0700  Home

    You should be able to create a similar layout, use “n” to create new partitions, select the default partition numbers and start sectors, when asked for “Last sector” enter +SizeKiB/MiB/GiB and the “Hex code”s are the ones listed above under Code.
    If you want to change the partition’s name use the command “c”<enter>. It’s wise to first print out the layout (“p”<enter>), that way you dont have to remember the partition numbers.
    when you’re happy with your layout, verify it with “v”<enter> (without the quotes). unless you’ve made some funky layout you’ll probably be fine. to write it to disk use “w”<enter>.. if the writing is successful you’ll be back on the command line.

     

    Installing packages
    Start the setup again by

    /arch/setup

    Step down to alternative number 2 Prepare Hard Drive and press <enter>. In the new menu you select the 4:th alternative, Set Filesystem Mountpoints. Here you’ll have your newly created partitions, all you have to do is to press ok and the select your swap-partition, root and others. If you’re using the same layout as me then swap is /dev/sda3, root is /dev/sda4, after that you’re asked to select any additional partitions; start by selecting /dev/sda2 and enter the mountpoint /boot (I used the filesystem ext4 for boot, root and home without any extra parameters). Then do the same for /dev/sda5 but with the mountpoint /home (labels are practical, use them), skip the hfs+-partition – well get to that later. When you’re done, select DONE, look over your mount-options and if theyr all ok then proceed. What kind of device name scheme you want is completely up to you, i use UUIDs.
    When you’re done with this return to the main menu and proceed by selecting source, this you’ll have to manage on your own!
    Now you select the packages you want, i went for “base”, “base-devel” and nothing else. When you’re done selecting packages just continue by installing them.. After that configure your system (if you’re on a non-english system remember to set up your /etc/rc.conf and /etc/locale.gen).
    So far this part has been pretty standard but now it’s time to enter the darkness again, so when you’re done configuring your system dont install any bootloader but exit..

     

    Installing the mba3 kernel
    To install the kernel into your new system you first have to chroot into it, but before we do that we have to make some preparations. First of we mount our “real” /dev onto our new one:

    mount --bind /dev /tmp/install/dev

    other than that we also need a sysfs and a proc:

    mount -t proc /tmp/install/proc
    mount -t sysfs /tmp/install/sys

    now were ready to start messing about so we chroot in:

    chroot /tmp/install

    The first thing you need to do if you’re installing with an internet connection is to set it up,

    dhcpcd -d eth0

    (The -d is for debug, gives a more verbose output). if you’re not, just install your kernel and continue. When you’re connected download and install the kernel and the headers by issuing the following commands

    wget -O kernel26-mba3-2.6.37-1-x86_64.pkg.tar.xz http://www.dm9.se/?dl_id=11
    wget -O kernel26-mba3-headers-2.6.37-1-x86_64.pkg.tar.xz http://www.dm9.se/?dl_id=12
    pacman -U kernel26-mba3-2.6.37-1-x86_64.pkg.tar.xz
    pacman -U kernel26-mba3-headers-2.6.37-1-x86_64.pkg.tar.xz

    If you trust the internet, here embodied by me, blindly you can now uninstall the old kernel.. or you can keep it until you’re done installing!

     

    Installing grub2
    this is not done yet, but here’s what you gotta do:
    install hfsprog and mkfs.hfsplus /dev/sda1, mkdir /efi and mount it there then mkdir /efi/EFI. install grub2-efi-x86_64 then follow the instructions on the GRUB2 page page on the wiki (see “Bootloader Installation for UEFI systems”)..

     

    Blessing your installation
    This is pretty much a one step procedure but i’ll cover it better later (as with the other ones):
    plugin your mac os x usb stick and reboot into os x. start the terminal and

    bless --folder=/Volumes/something --file=/Volumes/something/EFI/grub2/grub.efi --setBoot

    (see how i stole that from TestingOnMacbook) where something is the name of your volume.
    ya done!

     

    Post installation
    Set up the necessary symbolic links to masquerade the mba3-kernel as a regular one.. not a great way to do it but i didn’t think of it until now.

     

    The nvidia drivers
    still haven’t got this done..

     

    Hotkeys
    Just started messing around with pommed..

     

    References

    > Testing grub2 on macbook
    > skodabenz repo (grub2) (the grub2 pkgs have been moved to the official testing repo and this one is no longer available)
    > archwiki UEFI
    > archwiki GPT
    > archwiki Grub2
    > MacBook Air 3,2 thread on the ubuntu-forum
    > Debian on the MacBookAir3,1
    > Pure EFI Linux Boot on Macbooks
    > pommed (hotkeys)

     

    // sluggo

    Posted

    2011-01-11 #

    Filed under

    Linux, News

    Tags

    2.6.37, arch linux, bios, efi, gpt, guide, install, kernel, macbook air 3, mba3

    6 comments

  • kernel 2.6.37-mba3 (ARCH version)

    ok, heres the first working aur-pkg that builds and installs properly on my mba3,2, its based on the official kernel 2.6.37 package from arch linux testing repo. i fudged up and lost the binary package when messing around with the boot partitions so ill have to upload that when ive had time to recompile it.. it looks like crap since i havent fixed the kernel26-headers nor kernel26-docs parts (thats why i havent uploaded it to the aur yet).
    the patches that are applied are the official arch linux patch(set), mba-alsa, mba-applesmc, mba-backlight, mba-bcm5974-touchpad, mba-efi, mba-hid (see earlier post for more info on these patches)..

    kernel26-mba3:     kernel26-mba3.tar.gz (40.7 KiB, 492 downloads)

    update:
    just a note, since kernel26-headers is not installed with this package (yet) you cannot compile any kernel modules (read broadcom-driver) but the new and improved kernel brcm-driver works just fine with the mba3 wl-card! all you have to do is

    sudo modprobe brcm80211

    and/or add it to the modules section in rc.conf (doesnt work with udev yet).

    update:
    updated the package and now it builds the kernel headers as well.

    // sluggo

    Posted

    2011-01-09 #

    Filed under

    Linux, News

    Tags

    2.6.37, arch linux, aur, brcm80211, broadcom, kernel, kernel-headers, linux, macbook air 3, mba

    no comments

  • time for another year

    merry christmas, happy new year and so forth (if you take offence because you dont celebrate christmas or your new year is in feb, then suck it up. these holidays have nothing to do with religion, that jesus guy was born sometime during the summer, he probably looked more like usama bin ladin than that guy hanging on the crosses and christmas itself has at least three deadly sins incorporated in its traditions)!
    been kicking and screaming for a while now trying to get linux to boot without bios-emulation on my new macbook air.. patching all kinds of kernels with the most obscure patches (including my own) but the best i can get is still a login without a usable keyboard.. if anyone has any idea whatsoever id be more than glad to hear it!

    // sluggo

    Posted

    2010-12-28 #

    Filed under

    Linux, News

    Tags

    2, arch linux, macbook air 3

    no comments

  • getting bankid to work on Arch Linux x86_64

    thought id share how i got bankid (nexus personal) to work on my Arch64-box.. all credits go to zoledian and his guide on the arch forum. pretty much all you have to do is follow his guide, but since some of the packages are outdated i thought id make a note. ill assume you have yaourt installed in this guide and you really should, nspluginwrapper comes with about a bunch of lib32-dependencies!
    First off, install lib32-libidn, lib32-libpng12, nspluginwrapper-debian (the nspluginwrapper aur is outdated and didnt work when i tried to install it) and zip:

    yaourt -Sy lib32-libidn lib32-libpng12 nspluginwrapper-debian
    pacman -S zip

    create the folder /usr/lib/xulrunner-addons/plugins

    sudo mkdir -p /usr/lib/xulrunner-addons/plugins

    download LinuxPersonal.tgz from https://install.bankid.com/. Unpack and install it:

    tar -xvf LinuxPersonal.tgz
    cd personal-<your.version>
    sudo ./install.<your.version>.sh i

    now nspluginwrap it

    nspluginwrapper -i /usr/lib/xulrunner-addons/plugins/libplugins.so

    and that should be it! you can try it out on https://test.bankid.com/.
    I for some reason could not create a new bankid using opera on handelsbanken (it complained about my version) and had to use firefox.. but all the other stuff works just great in both opera and ff.
    if you need to troubleshoot it you can do so by adding the following to ~/.personal/config/Personal.cfg

    [Diagnostics]
    Trace=/directory-you-want-the-log-in

    and if it all goes to hell you run

    sudo ./install.<your.version>.sh u

    to uninstall!

    // sluggo

    Posted

    2010-08-15 #

    Filed under

    Linux, News

    Tags

    arch linux, arch64, bankid, handelsbanken, nexus, nexus personal, x86_64

    no comments

  • tilp on arch linux

    since my ti-83 broke down i had to get me a new one, ended up buying a ti-84 plus.
    unfortunately texas instruments havnt released any linux version of TI connect, however theres a open source alternative in tilp.

    it took some tinkering to get it up and running though, heres how i did it (running arch linux k:2.6.31)
    first i downloaded the libs and configured with the flag –prefix=/usr

    wget http://www.ticalc.org/pub/unix/tilibs.tar.gz
    # unpack and run
    ./configure --prefix=/usr
    make
    sudo make install
    # in the following order: libticables, libticonv, libtifiles, libticalcs

    then i configured tilp with –without-kde –prefix=/usr

    wget http://www.ticalc.org/pub/unix/tilp.tar.gz
    # unpack and run
    ./configure --without-kde --prefix=/usr
    # obviously you should remove the --without-kde part if you're running kde..
    make
    sudo make install

    lastly i had to create a udev-rule to set up the usb-permissions..

     sudo touch /etc/udev/rules.d/51-ti84.rules
    sudo echo 'SYSFS{idVendor}=="0451", SYSFS{idProduct}=="e003", MODE="666"' > /etc/udev/rules.d/51-ti84.rules
    

    note that the libs depend on glib2, libusb, zlib and tilp on libglade.

    edit 2010-06-05:
    a guy asked if this works for any ti calc, and it should (as long as tilp supports them!), all you have to change is the (hexadecimal) digits of idProduct in the last part. just connect your calc and run

    lsusb

    to find out the id of your calc version (its the four digits following the : next to ID).

    // sluggo

    Posted

    2009-12-23 #

    Filed under

    Linux, Tiny Gems

    Tags

    arch linux, calculator, texas instruments, ti-83, TI-84 Plus, tilibs, tilp

    no comments

  • fuckipred v0.2.14b

    NOTE! a few users have been experiencing some problems with fuckipred and newer versions of aircrack-ng than 1.0_rc3! you should therefor only use fuckipred with the rc3 release, or wait for the next version of fuckipred which will use the current version of aircrack-ng.

    second beta release! added ieee8021 network stack support.. also fixed up the arch-package, it now takes care of all the aircrack-ng compiling for you. for full info please see the changelog!

    please do report any bugs to sluggo@dm9.se!
    (still) missing feats:
    * save crack result
    * connect to cracked/saved network
    * advanced settings
    aircrack-ng >= 1.0-rc3 still has to be compiled with unstable=true to build wesside-ng.

    update 09-06-28:
    well even though i was drunk this time as well i think this deb should work.. just as the arch version it downloads, compiles, and installs aircrack-ng as needed. this means you dont have to do anything by yourself, just start, list networks and crack!

    arch linux aur:    http://aur.archlinux.org/packages.php?ID=26732
    deb package:     fuckipred_0.2.14b-1_i386.deb (23.0 KiB, 2,324 downloads)
    rpm package:    n/a
    src:     fuckipred-0.2.14b.tar.gz (30.4 KiB, 1,847 downloads)

    // sluggo

    Posted

    2009-06-21 #

    Filed under

    fuckipred, News

    Tags

    aircrack-ng, arch linux, aur, crack, deb, debian, fedora, front end, fuckipred, mint, new version, News, one click crack, rpm, ubuntu, unstable=true, wep, wesside-ng

    no comments

  • aircrack-compiler-installer-script-thingy

    NOTE! this script is not needed if you’re using arch linux or a debian derivate (eg. ubuntu or mint), the latest packages will do it all for you.

    first responses to the beta are in and the most common one was the question how to compile aircrack-ng with the unstable=true option. in the next version therell be a button for this (downloading-compiling-installing) but until then i wrote tiny shell script with pretty much no error-checking!
    instructions:
    download the script into a folder and open a terminal there, then type..
    if you’re using debian (or ubuntu, mint …):

    sudo apt-get install build-essential sqlite3 libsqlite3-dev
    sudo apt-get install openssl-dev # (if this fails use libssl-dev instead of openssl-dev)
    chmod +x aircrack-installer.sh
    ./aircrack-installer.sh

    most other distros:

    chmod +x aircrack-installer.sh
    ./aircrack-installer.sh

    openssl and sqlite3 will, if not already installed, be downloaded and installed by the script. for some reason it failed on my friends machine running xubuntu 8.something (i dont currently have a debian based testing environment).

    script:     aircrack-installer.sh (2.0 KiB, 1,339 downloads)

    09-06-02 update:
    fixed a bug in the script and added wesside-ng check, thank you Musen for trying it out on ubuntu!

    09-06-21 update:
    arch users dont need this script, the new aur pkgbuild takes care of everything..

    // sluggo

    Posted

    2009-06-01 #

    Filed under

    fuckipred

    Tags

    aircrack-ng, arch linux, compile, debian, fuck ipred, fuckipred, mint, openssl, sqlite3, ubuntu, unstable=true

    no comments

  • The fuckipred project

    fuckipred – Front-end Using aircraCK-ng to Intelligently Penetrate Retardedly Encrypted Domains

    What is this?

    Simply put fuckipred is a point-and-click wep cracker. You install, start, select a network, click “crack” and wait. Thats all there is to it!
    Actually the program itself is just a frontend to a couple of other tools, mainly wesside-ng from the aircrack-ng suite, thats the prog who does the actual cracking.

    History

    Since the ipred-law was put into action here in sweden i figured id contact the authorities pointing out how easy it is to hijack someones wireless network and use it to download whatever it is one wants to download, using the aircrack-ng suite and thus rendering the law not only useless but a infringement on peoples privacy. But since the thought of typing something into a terminal (even if its just “wesside-ng -i mon0″) seems way too daunting to alotta people i decided on writing a front-end to it.

    Installing

    If you are using Debian or any of its derivates eg. (K/X/Flux/…)Ubuntu, Mint, etc all you have to do is download the deb package and double-click it!
    For arch linux users (like me) theres a aur-package, heres a guide on how to install AURs.
    Im also working (well, at least every now and then) on a rpm package, but for now other users have to download the source tarball and compile it, for further info please refer to the readme and aircrack-install-script.

    Quick usage how to

    Install and start fuckipred, if your using a laptop make sure you wifi is switched on.
    Click on the refresh-symbol in the essid-column in the network list.
    Select a (preferably the first one from the top) network in black text.
    Click on the “make with the cracking”-button.
    Wait for the network key to turn up in the key-field and the “All done!” message in the Log window.
    Select and copy the key, then use your network manager to connect to the network with it!

    Screenshots

    Its commin.. for now youll have to make due with the last alpha screen, its pretty much the same!
    if anyone got a nice screen and want to share it here, please feel free to send over!

    About the project

    its pretty slow going as im kinda swamped with other stuff right now..

    Download

    Please take the time to read the release announcement

    info:    release announcement, readme, changelog
    arch linux aur:    http://aur.archlinux.org/packages.php?ID=26732
    deb package:     fuckipred_0.2.14b-1_i386.deb (23.0 KiB, 2,324 downloads)
    rpm package:    n/a
    src:     fuckipred-0.2.14b.tar.gz (30.4 KiB, 1,847 downloads)

    // sluggo

    Posted

    2009-05-11 #

    Filed under

    fuckipred

    Tags

    aircrack-ng, arch linux, aur, crack, deb, dhcpcd, front end, fuck ipred, fuckipred, gtk, how to, ipred, iwconfig, one click crack, rpm, ubuntu, unstable=true, usage, wep, wesside-ng, wifi, wireless, wlan

    no comments

Top