You are not logged in.

#1 2009-03-03 21:18:06

Troels
Member
From: Denmark
Registered: 2009-03-01
Posts: 16

Startx command not found

My first post at the Arch forum.

My first imression with Arch is that it is generally a stable and well done distro.

What irritates me, is that I am trying to configure Arch to start X without a login manager like GDM (it is too heavy). But when I type "startx" in tty1 is says "command not found". Which package do I need to be able to use startx and .bashrc instead of gdm?

Last edited by Troels (2009-03-03 21:18:24)

Offline

#2 2009-03-03 21:19:38

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Startx command not found

Troels wrote:

My first post at the Arch forum.

Welcome ! smile

Troels wrote:

My first imression with Arch is that it is generally a stable and well done distro.

Yes it is !!!

Troels wrote:

What irritates me, is that I am trying to configure Arch to start X without a login manager like GDM (it is too heavy). But when I type "startx" in tty1 is says "command not found". Which package do I need to be able to use startx and .bashrc instead of gdm?

Have you installed X yet ? Arch is a barebones CLI only OS. You have to choose to install X and then a window manager of your choice.

if you haven't done this already, you need to start by reading up on the Beginners Guide in the Wiki.

Last edited by Inxsible (2009-03-03 21:21:06)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2009-03-03 21:20:27

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,472
Website

Re: Startx command not found

startx is part of the xorg-xinit package.  Have you installed xorg? http://wiki.archlinux.org/index.php/Xorg

Offline

#4 2009-03-03 21:20:46

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Startx command not found

Welcome!

startx is owned by xorg-xinit.

--EDIT--

Beaten by Allan!

Offline

#5 2009-03-03 21:21:48

djnm
Member
From: USA
Registered: 2008-12-21
Posts: 78

Re: Startx command not found

Have you installed and configured X according to the wiki? http://wiki.archlinux.org/index.php/Beg … _Install_X

And you want a .xinitrc , not a .bashrc.

EDIT: Ah! Foiled again!

Last edited by djnm (2009-03-03 21:22:13)


br0tat0chip in #archlinux and on freenode

Offline

#6 2009-03-03 21:41:23

Troels
Member
From: Denmark
Registered: 2009-03-01
Posts: 16

Re: Startx command not found

Geeze you guys are fast man!

Actually, I am writing from my Gnome box now, gdm works fine, and I have also configured xorg properly. Compiz is also running.

That xorg-xinit package seemed to do the trick. Actually, I edited the file  /etc/X11/xinit/xinitrc before I installed xorg-xinit so therefore it could not be installed due to the file already existing in the file system. But then I removed the file, and I could now install the package.

bash-3.2# pacman -S xorg-xinit
resolving dependencies...
looking for inter-conflicts...

Targets (2): xorg-xauth-1.0.3-1  xorg-xinit-1.1.1-1  

Total Download Size:    0,00 MB
Total Installed Size:   0,11 MB

Proceed with installation? [Y/n] 
checking package integrity...
(2/2) checking for file conflicts                   [#####################] 100%
error: could not prepare transaction
error: failed to commit transaction (conflicting files)
xorg-xinit: /etc/X11/xinit/xinitrc exists in filesystem
Errors occurred, no packages were upgraded.
bash-3.2# rm -rf /etc/X11/xinit/xinitrc
bash-3.2# pacman -S xorg-xinit
resolving dependencies...
looking for inter-conflicts...

Targets (2): xorg-xauth-1.0.3-1  xorg-xinit-1.1.1-1  

Total Download Size:    0,00 MB
Total Installed Size:   0,11 MB

Proceed with installation? [Y/n] 
checking package integrity...
(2/2) checking for file conflicts                   [#####################] 100%
(1/2) installing xorg-xauth                         [#####################] 100%
(2/2) installing xorg-xinit                         [#####################] 100%
bash-3.2# startx 
xauth:  creating new authority file /root/.serverauth.27669

Last edited by Troels (2009-03-03 21:41:49)

Offline

#7 2009-03-03 21:56:31

Troels
Member
From: Denmark
Registered: 2009-03-01
Posts: 16

Re: Startx command not found

I have now configured it properly.

Why am I not allowed to adjust the cpu frequency anymore and how do I get priviledges to run nm-applet?

Offline

#8 2009-03-03 22:00:20

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,472
Website

Re: Startx command not found

gdm starts a consolekit session.  This wiki page might help: http://wiki.archlinux.org/index.php/Networkmanager_0.7

Edit:
e.g. my ~/.xinitrc  starts XFCE like

exec ck-launch-session startxfce4

Offline

#9 2009-03-03 22:06:49

Troels
Member
From: Denmark
Registered: 2009-03-01
Posts: 16

Re: Startx command not found

Allan wrote:

gdm starts a consolekit session.  This wiki page might help: http://wiki.archlinux.org/index.php/Networkmanager_0.7

Edit:
e.g. my ~/.xinitrc  starts XFCE like

exec ck-launch-session startxfce4

Thanks Allan I'll try to look there.

What I did, was that I edited /etc/inittab to this

c1:2345:respawn:/bin/login -f arch tty1 </dev/tty1 >/dev/tty1 2>&1

Which means that my user "arch" automatically will log in. When I log in, .bash_profile is executed which holds

if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/vc/1 ]]; then
  startx
  logout
fi

as said in the Arch wiki. in .xinitrc "exec gnome-session" is so that my computer will automatically boot into Gnome without any login manager.

EDIT: Your trick worked (of course) Allan!

Last edited by Troels (2009-03-03 22:11:20)

Offline

#10 2009-03-03 22:08:41

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,472
Website

Re: Startx command not found

Looks fine to me.

Troels wrote:

in .xinitrc "exec gnome-session"

Just making that "exec ck-launch-session gnome-seesion" and all your permissions should be good.

Offline

#11 2011-05-01 22:21:42

rigved
Member
From: Mumbai, India
Registered: 2011-05-01
Posts: 1

Re: Startx command not found

Hi everyone!

I had the same problem and installing xorg-xinit solved it for me. Thanks!

I was installing using the tutorial of thisweekinlinux and I thought that when I install the whole xorg group, it should also have installed xorg-xinit by default. Guess it did not but not a problem now.

Last edited by rigved (2011-05-01 22:22:19)

Offline

#12 2011-05-02 00:43:20

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: Startx command not found

Troels wrote:

Why am I not allowed to adjust the cpu frequency anymore and how do I get priviledges to run nm-applet?

Are you loading the cpufreq modules and using the cpufrequtils package?


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#13 2011-05-02 03:47:15

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,196

Re: Startx command not found

Closed.  This thread is old.  Please see the Forum Etiquette on Necro-Bumping.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB