Results 1 to 5 of 5
Hello to everyone ! I'm new to Linux world and I've chosen Arch Linux as my first distro. After several days of fight, I could finally make my wireless modem, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-01-2011 #1Just Joined!
- Join Date
- Jan 2011
- Posts
- 6
[SOLVED] Openbox: Terminal not working
Hello to everyone
! I'm new to Linux world and I've chosen Arch Linux as my first distro. After several days of fight, I could finally make my wireless modem, my video card and my audio card work (and I'm freaking proud of it xD). Also, I've installed Openbox, but I have the following problem with the terminal (which is xterm, by default):
Everytime I launch Openbox the terminal gets opened (labeled as "login") and if I close it Openbox gets closed. This is weird as when I installed it in VirtualBox this didn't happen (I haven't seen this on any YouTube video either). Also, there is no response when I enter a command in it (the only thing that seems to do is to give some information about the active programs -for example: "Conky: window type - desktop"). This happens when I open Openbox as the root user as well as a normal user.
I want to mention that I've searched for this issue a lot, so this is my last plan (I don't really like to abuse of forums help). I hope someone can give me a hand with this issue. Thanks in advance!
Happy new year
!
Note: I'm not an English native speaker, so excuse me for the mistakes :P
- 01-02-2011 #2
How are you starting openbox?
EDIT: If you're using .xinitrc post the contents here.
- 01-02-2011 #3Just Joined!
- Join Date
- Jan 2011
- Posts
- 6
.xinitrc
Thanks for the quick reply reed9! I'm starting Openbox by entering the following command:
Also, I can use:Code:xinit openbox
But I don't know what's the difference between both.Code:xinit openbox-session
The content of my .xinitrc is:
I found this file in the /etc/X11/xinit directory, notice that its name does not start with a dot (that means that it's not hidden, right?).Code:#!/bin/sh userresources=$HOME/.Xresources usermodmap=$HOME/.Xmodmap sysresources=/etc/X11/xinit/.Xresources sysmodmap=/etc/X11/xinit/.Xmodmap # merge in defaults and keymaps if [ -f $sysresources ]; then xrdb -merge $sysresources fi if [ -f $sysmodmap ]; then xmodmap $sysmodmap fi if [ -f "$userresources" ]; then xrdb -merge "$userresources" fi if [ -f "$usermodmap" ]; then xmodmap "$usermodmap" fi # start some nice programs if [ -d /etc/X11/xinit/xinitrc.d ] ; then for f in /etc/X11/xinit/xinitrc.d/*.sh ; do [ -x "$f" ] && . "$f" done unset f fi twm & xclock -geometry 50x50-1+1 & xterm -geometry 80x50+494+51 & xterm -geometry 80x20+494-0 & exec xterm -geometry 80x66+0+0 -name login
- 01-02-2011 #4
By default, xinit will run the following unless told otherwise
When starting a WM with xinit, the full path is required, ieCode:xterm -geometry +1+1 login -display :0
Without the full path, xinit ignores what follows and runs the default xinitrc script (or with no xinitrc the above mentioned default). In your case that xinitrc ends withCode:xinit /usr/bin/openbox
Which is the xterm you're seeing.Code:exec xterm -geometry 80x66+0+0 -name login
When the xinit script quits, X will end, hence when you close the xterm window, you exit the GUI.
You'll want to override the default with your own settings.
If it doesn't exist, create a file in your home directory, .xinitrc and use that as your start script
(The ck session and dbus part assume you may want to run dbus aware applications, and be able to do things like automount external drives.)Code:echo "exec ck-launch-session dbus-launch openbox-session" >> ~/.xinitrc
Start your session with
openbox-session v. openbox runs the script ~/.config/openbox/autostart.sh or /etc/xdg/openbox/autostart.sh at start, so if you have programs you want to start along with openbox, they can go there.Code:startx
https://wiki.archlinux.org/index.php/Openbox
- 01-04-2011 #5Just Joined!
- Join Date
- Jan 2011
- Posts
- 6
Thanks!
Hey reed9! Forgive my delay in replying, that worked perfectly

Thanks a lot for your time, your explanation was very clear!
Cheers




