Learning Vim

March 13, 2010 at 7:56 am (commands, programming, tips, vim)

So I’ve heard all kinds of good things about Vim or Vi as a text editor/syntax highlight for coding. I’ve looked online for a few tutorials, but really couldn’t find much. I also tried using $ man vim and still didn’t find too much useful information. I did however stumble across vim’s built-in tutorial.

$ vimtutorial

It basically walks you through learning various commands. I also suggest opening a blank terminal next to vimtutorial since it has you use one part way through the tutorial.

If anyone has any suggestions for other nice tutorials for learning Vim, let me know.

Permalink 1 Comment

‘Embedded’ Terminal on Desktop

March 11, 2010 at 8:03 pm (commands, linux, terminal, tips)

My desktop with a terminal built in.
So I’ve been dinking around quite a bit with my desktop again and stumbled upon a juicy tip. I’m always trying to find ways of simplifying my life and this made it even easier. Since I ran into Tilda tossing up a ton of GTK errors, I’ve been looking for a drop down/always present terminal that wouldn’t show up in the system tray. I’ve seen a majority of people using Rxvt-unicode and heard it’s quite customizable. So digging around on the Openbox Wiki, I came across some tips about a transparent terminal. I had to modify it a bit since it wasn’t working properly, but the above screenshot is what it looks like. Notice no terminal in my bar 🙂

To achieve this, here is what I did. I installed Rxvt-Unicode in pacman.
$ sudo pacman -S rxvt-unicode.

I then added this to my ~/.Xdefaults file:

URxvt.transparent:true
URxvt.scrollBar:false
URxvt.borderLess:true
URxvt.cursorColor:white
URxvt.foreground:white

If you currently don’t have a .Xdefaults file, just simply create one in your home folder. Then I added the following to my ~/.config/openbox/rc.xml file:

<application name="urxvt">
<decor>no</decor>
<focus>yes</focus>
<position>
<x>20</x>
<y>20</y>
</position>
<layer>below</layer>
<desktop>all</desktop>
<skip_taskbar>yes</skip_taskbar>
</application>

Then the last thing I did was adding urxvt to the ~/.config/openbox/autostart.sh file. Simply add:

# Urxvt Terminal on Desktop
urxvt &

You should be good to go after that. On a side note, those settings work for a dark/black wallpaper like I’m using. To adjust it for a light colored wallpaper, simply change the foreground to black and the cursor to black in the .Xdefaults file. You can also adjust the size and font as well as quite a few other things. If you’re interested check out these 2 pages:

Rxvt-Unicode
Rxvt-Unicode Preferences in Xdefaults

Permalink 2 Comments

Torrent Client Change

March 11, 2010 at 10:29 am (arch, AUR, install, linux, packages, packer)

So, I ran into a problem earlier today. Deluge torrent client completely stopped working on me. I kept getting numerous python errors from it:

File "/usr/bin/deluge", line 8, in <module>
    load_entry_point('deluge==1.2.1', 'console_scripts', 'deluge')()
  File "/usr/lib/python2.6/site-packages/deluge/main.py", line 121, in start_ui
    UI(options, args, options.args)
  File "/usr/lib/python2.6/site-packages/deluge/ui/ui.py", line 127, in __init__
    from deluge.ui.gtkui.gtkui import GtkUI
  File "/usr/lib/python2.6/site-packages/deluge/ui/gtkui/__init__.py", line 1, in <module>
    from gtkui import start
  File "/usr/lib/python2.6/site-packages/deluge/ui/gtkui/gtkui.py", line 41, in <module>
    reactor = gtk2reactor.install()
AttributeError: 'module' object has no attribute 'install'

I’m not sure what exactly happened, but it just decided to stop working properly. I even tried reinstalling it by issuing a $ sudo pacman -S deluge and still didn’t work. I’ve always liked Deluge as a torrent client, yet I always tend to have problems with it. So today seemed like it would be a good chance to try an alternate torrent client.

I’ve seen Transmission on other Linux distros as a standard for a torrent client and I’ve never had problems with it, so I figured I’ve give it a shot again. I also figured I would try to look for something light weight as well, seeing as how I’ve been going for a fairly minimal install.  Seeing as how Deluge didn’t really fit into that category, I uninstalled it. Wow…what a major chunk of space I saved. Uninstalling it using $ sudo pacman -Rs deluge. It removed about 120 megabytes of space.

Transmission:
resolving dependencies...
looking for inter-conflicts...

Targets (1): transmission-gtk-1.91-1

Total Download Size:    0.84 MB
Total Installed Size:   2.37 MB

Yeah…major difference. So far, so good. It’s been fairly fast with _no_ errors that I can tell. I found Transmission from the AUR.

Permalink 3 Comments

Minor Errors in Xorg

March 9, 2010 at 3:47 pm (arch, linux, packages)

So the other day, I was tinkering with my computer and noticed when I logged out, I had several errors showing up. They didn’t show physically, but tty1 showed a slew of error messages. I kept getting something along the lines of:

> > Warning:          Warning:          Duplicate shape name ""
Duplicate shape name ""
> >                                     Using last definition
Using last definition
> > Warning:          Warning:          Duplicate shape name ""
Duplicate shape name ""
> >                                     Using last definition
Using last definition
> > Warning:          Warning:          Duplicate shape name ""
Duplicate shape name ""
> >                                     Using last definition
Using last definition
> > Warning:          Warning:          Multiple doodads named ""
Multiple doodads named ""
> >                                     Using first definition
Using first definition
Errors from xkbcomp are not fatal to the X server
Errors from xkbcomp are not fatal to the X server

This repeated a bit and I also had Tilda tossing up GTK error messages. Nothing that was fatal, but was annoying and I wanted my machine free from errors. I did a bit of searching and came what was causing the above errors. Apparently, xnumlock was the culprit and from I gathered was creating a keyboard map that didn’t exist. Not sure fully, but I ended up just deleting it out of my autostart.sh file (not a perfect solution, I know). That fixed those errors.

As much as I liked tilda, the GTK error messages were annoying and completely taking over my tty1. I just decided to uninstall it and remove it from the autostart.sh file as well. Both errors are gone, and everything is smooth again. I’ll have to keep an eye out for something similar to Tilda.

Permalink Leave a Comment

Compiling Packages – A Quick Tip

March 1, 2010 at 7:56 pm (Uncategorized)

Just a really quick tip. I kept running into packages not compiling. I tried a few times, hoping that it would work properly, but I kept getting this error:

no acceptable C compiler found in $PATH

To avoid this error, install a C compiler (I thought I had one). Simply install these few files and it will make yaourt/packer go MUCH smoother:

$ sudo pacman -S make fakeroot gcc automake autoconf

Permalink Leave a Comment

« Previous page · Next page »