‘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

Advertisements

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

The TOP command

February 27, 2010 at 3:57 pm (commands, linux, terminal, tips)

So I found a nice little command the other day called ‘top’. Essentially what it does is show the top processes in your system in the terminal.  It’s simply run by issuing the following command:

$ top

A neat little thing about it though, is that it also shows the process ID. Which can then be ‘killed’. So for instance, I’ve got a program that’s misbehaving. I simply run top and find it’s process ID (pid…or to the far left). I can then run a command to kill it.

$ kill pid xxxx

Where xxxx is replaced by the actual number. So for instance if I want to kill Chromium, I simply run $ kill pid 8925.

There are also various hot keys that can be pressed while in top:

a or w- Sorts the processes in various modes. Cycles through all four windows.
k – Kills a command by entering it’s process ID. Easier than using $ kill pid xxxx.
q – Quits the program.
t – Turns on/off the summary information.
z – Turns on/off color.
A – Yes it’s ‘a’ that capitalized. It sorts your processes a bit differently and allows for an easier view of memory hogs.

Permalink 2 Comments

Force Removal of Trash

February 24, 2010 at 11:28 pm (commands, linux, sudo, terminal, trash)

Alright, I’ve got a quick tip. I recently (as in like 10 minutes ago) ran into a few files that had characters in another language that wouldn’t delete from the trash bin. I tried to run dolphin in root access but it still wouldn’t go. I found this command that forced a deletion of trash regardless of filename:

$ sudo rm -fr /home/USERNAME/.local/share/Trash/files/

Simply change the USERNAME to your own and it should force a deletion of all the files from the trash. Then simply try to “empty” the trash and they should disappear from the trash bin entirely. I believe that’s the newest command for where the trash bin is located, otherwise you could try:

$ sudo rm -fr /home/USERNAME/.Trash

Again, I believe that’s an outdated command, but just in case the first command didn’t work, you could always try that depending on if the operating system you’re using. It’s just a general Linux command.

Permalink Leave a Comment

Next page »