Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Post Login Scripts/prog


  • Please log in to reply

#1
comanighttrain

comanighttrain

    Member

  • Member
  • PipPipPip
  • 553 posts
Hwy guys, does anyone know how i would make linux automatically execute scripts or programs upon a user logging in?

I want to do this so a user doesnt have to hit startx every time they boot.

thanks
dave
  • 0

Advertisements


#2
thenotch

thenotch

    Member

  • Retired Staff
  • 668 posts

Hwy guys, does anyone know how i would make linux automatically execute scripts or programs upon a user logging in?

I want to do this so a user doesnt have to hit startx every time they boot.

thanks
dave

View Post



You say you don't want them to have to type in "startx" so I am assuming you want the GUI (KDE, GNOME, etc) to load upon reboot?

If so, you need to edit your /etc/inittab file and change the runlevel:3 to runlevel:5. That will initiate the GUI interface.
  • 0

#3
comanighttrain

comanighttrain

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 553 posts
thanks man, except its booting with gnome as opposed to the default which is KDE (???).

Anyhow, i still need to know how to run other scripts and stuff post login?
  • 0

#4
Scooped

Scooped

    Member

  • Member
  • PipPip
  • 86 posts
Well that's a bit distro specific, which distribution are you using?

To change the default window manager on slackware:

xwmconfig

And startup scripts in slackware go in /etc/rc.d/

You can place your own commands in /etc/rc.d/rc.local
  • 0

#5
comanighttrain

comanighttrain

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 553 posts
yup, its slacky, thanks man, ill try that.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP