Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Sunday, March 25, 2012

LightDM: Switch user from the command line

Say you're on Ubuntu 11.10 or later, or any other distribution that uses LightDM. What would you do to go back to the greeter window where you can choose another user without logging out? In most other shells, there is a graphical option for it. In StumpWM you can use the dm-tool utility:
dm-tool switch-to-greeter

Sunday, March 11, 2012

Multiple X servers and Firefox problems

As I've said before, running StumpWM on Ubuntu using a new .desktop file in /usr/share/xsessions/ did not turn out a very pleasant experience. This article however gave me another idea. How about running a separate X server? I decided to give it a shot.

I simply created a .xinitrc file in my home directory and in it I put this: exec stumpwm. After that, I switched to a tty by pressing Ctrl-Alt-F1 and ran startx -- :1. Then I pressed Ctrl-Alt-F8 to switch to the new X screen. It actually worked! I quickly copied my configuration from my laptop and restarted StumpWM. Everything seemed to be working, until I tried to start Firefox.

Firefox simply gave me an error message saying that another instance of Firfox was already running. I searched about this on the Internet and learned that I can run Firefox in a new profile and with the -no-remote option to stop it from connecting to the already running instance. In order to create a new profile, you can run firefox --ProfileManager. Then to start Firefox with the new profile and as a new instance you can run firefox -no-remote -P profilename.

Long story short, it didn't work as I thought it should. The first time I ran it, Firefox started correctly. But whenever I ran one of the other commands to open a new tab or anything, it just gave me an error saying another instance is running but is not responding. I finally found out that if I drop the -no-remote option (while retaining -P) it will work as expected.

The question for me now is, should I stick with my plan of building on Debian, or should I stick with Ubuntu? I still get doses of unstability on Ubuntu while Debian remains rock solid. Also, keeping Ubuntu around might tempt me to go to Unity whenever I ran into difficulties instead of trying to find a workaround and learn something in the process. I'm gonna need to think about this.

Saturday, March 10, 2012

The Host System

I tried using StumpWM on the same Ubuntu (Precise Beta) installation I'm using right now. I created a new xsession for it and tried logging in. I wasn't impressed. The graphics is for some reason garbled and I encountered several crashes.

I decided using Debian stable instead. I installed Squeeze on my laptop, then installed SBCL and the libraries I needed (cl-clx and cl-ppcre) and then I finally downloaded and built StumpWM, created the session file and logged into it. Now this is much better!

Debian stable is a bit outdated, so I added the backports repositories and upgraded Firefox (well, Iceweasel actually). I also installed Mouseless Browsing plug-in for Firefox. I quite like it. It does, every now and then, make a website less pretty than it usually is, but otherwise it makes the web experience a lot better for the folks who don't like taking their hands off the damn keyboard!

Another thing I really need is Emacs. I've been using Emacs 24 for quite some time. I use the packages from Emacs Snapshot. I then transferred a copy of Emacs Prelude from my desktop together with my own customizations. I'm ready to set off now.

Better Console Font (in Arch)

In order to use Terminus as my console (tty) font, I simply installed the package terminus-font with pacman (includes both console and X11 ...