Keeping Arch Clean

March 24, 2010 at 3:18 pm (arch, bash, commands, terminal, tips)

So I’ve been digging around on the Arch forums and came across a little script to run. It will show you what you’ve installed explicitly to help keep your system clean and free from miscellaneous packages. Simply save the following script to a blank text document (no file extension needed):

#!/bin/bash
pacman -Qei | awk '/^Name/ { name=$3 } /^Groups/ { if ( $3 != "base" && $3 != "base-devel" ) { print name } }' > exp_pkglist

Then simply run the file with this command:
$ bash FILE_NAME_HERE.

It will export all your explicitly installed packages (excluding base and base-devel) to a text file which you can then go through and $ sudo pacman -Rs PACKAGE_NAME_HERE. That should help keep your system clean.

Permalink Leave a Comment

Bashrun

March 19, 2010 at 6:45 pm (arch, commands, install, tips)

Bashrun in progress

So, I’ve been getting used to using the terminal/command line a lot more since moving to Arch. In the process, I’ve been trying to run programs from the terminal. I find it to be much quicker than looking for it in the menu and getting used to that helps me troubleshoot my friends computer much easier. The problem I’ve been running into with running a program from the terminal, is that you can’t close that terminal or the program will close as well. I stumbled across a solution to that problem.

It’s called Bashrun and can be installed from the main repos: $ sudo pacman -S bashrun. Be sure to also install the optional file it suggests. It will give bashrun more functionality. What it does essentially is pop up a little box in which you can run your programs/commands from. It will then hide in the background (it’s a very small process).

Simply run $ bashrun and a small box will appear, then type in a program/command and hit enter. It will then hide and the command/program will run. Very useful. Here are some basic commands for the program:

$ bashrun –hide #Will hide bashrun
$ bashrun –show #Will show bashrun
$ bashrun –restart #Restarts bashrun
$ bashrun –su (cmd) #Run the command as root [note: don’t add the parenthesis]

Edit: Apparently xdotool breaks bashrun in the last 2 release. The devs for xdotool are working on fixing the problem of bashrun not closing once run, as well as –toggle not working properly

Permalink 1 Comment

My Minor Rant.

March 14, 2010 at 11:43 am (arch, friend)

I just wanted to rant for a bit since I’ve been playing Final Fantasy XIII the last couple days, and haven’t spent too much time messing around with my desktop. Anyways, so a couple of weeks ago, I figured it would be a good idea to switch my friend to Arch Linux from Ubuntu. The transition made sense as he kept asking for “the newest version of linux” and he was _slightly_ higher in tech knowledge then most people. I decided a rolling release might be a better fit for him. I went ahead and installed it on his computer as well as putting KDE on there and told him the few basic commands he would need to know to update his system as well as installing a package.

Unfortunately, I didn’t install all the applications he needed, so I spent a solid half an hour trying to walk him through installing an application over the phone. Of course with my luck, the packages weren’t compiling for some reason, and I still can’t figure out why one isn’t compiling. After a bit, we finally got the program he needed working.  You start to bang your head against a wall when I get asked questions like this: “It says ‘Proceed with installation? y/n’…what should I do?” I decided I would head over to his house the other day and see if I could walk him through a few more steps and see if I could just install everything he needed so I wouldn’t have to walk him through another half an hour or so just to install another program.

I arrived at his house and decided to install a few programs and update his system. I know his internet connection is fairly slow (150 Kbps download and wireless to boot) so downloading packages might take a while.  I turned on his computer and noticed he had about 6 panels at the top of his screen as well as a missing task manager. I had set up the panel bar at the bottom how he liked it BEFORE I left his computer at his house a few weeks ago. Everything was in disarray. I ended up deleting all 6 unwanted panels at the top of the screen as well as adjusting his bottom panel bar. I made sure to lock it again.

I went ahead and tried to install a few programs, I immediately noticed how laggy and slow his computer was with KDE. His computer isn’t slow by any means, but it’s not fast either (AMD Athlon 3000+ I belive, 512MB’s of ram, Nvidia 8600 GT). I simply had Amarok and Konsole open as well as his wireless loaded in the backgroud. Even with Amarok shut, it was still incredibly slow. Using packer took forever to load and download.

I decided I might try to see if his computer needed to be updated. Lo and behold, 500+ megabytes of files needed to be updated. Ugh…

I’ve been trying to convince him to switch to a lighter alternative which would drastically speed up his computer as well as cut down on the size of his updates. Something along the lines of XFCE or something. He didn’t seem to mind the sluggishness of KDE and is still fascinated by the beauty of it. I did suggest I should try to walk him through an Arch install after he gets used to the feel of Arch. That way he would understand his system much better and should be well enough on his own. He’s moderately tech savvy, but still has a fairly low understanding of computers.  I essentially told him to mess with and possibly break your desktop to get a feel for it. Afterwards we could do a full reinstall of Arch.

So, any suggestions on an alternative desktop that’s pretty and fast, or any tips on speeding up KDE? It’s unbearable to work on his computer. I have debated on putting an openbox install to boot into when I have to work over there.

Permalink 1 Comment

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

Next page »