LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-15-2004, 02:43 AM   #1
htm
Member
 
Registered: Mar 2004
Posts: 162

Rep: Reputation: 30
how to disable GNOME on Linux?


I am using my Linux as a server, so I decide to stripe off GNOME,
I cannot do it graphically using add/remove appailcations, since
the load is already too heavy; when I did: rpm -e gdm.*.*, I got
a symbolic error, and the remving process hangs?

I am wondering if there is a way on

1. Completely remove gdm package

or

2. Do not invoke GNOME when the system boots? (keep in the
command shell mode)


Thx,
HTM
 
Old 08-15-2004, 02:51 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
edit /etc/inittab to change the default runlevel to 3.
go to terminal as root and run
telinit 3
 
Old 08-15-2004, 01:53 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
or just take out or rename with a begining "_"
the Sxxgdm link in the runlevel folder you are currently using. xx is the start order number
ckeck /etc/inittab for default run level
/etc/rc.d/init.d/rcx.d where x is your run level
 
Old 08-15-2004, 02:13 PM   #4
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
what disto are u using
someone told me in slackware, init level 2 brings u to terminal at startup
so pl. confirm this

regards
gaurav
 
Old 08-15-2004, 09:34 PM   #5
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
in most distros, runlevel 2 is command prompt without networking.
 
Old 08-15-2004, 11:03 PM   #6
htm
Member
 
Registered: Mar 2004
Posts: 162

Original Poster
Rep: Reputation: 30
Folks,

It works, thx

One more question, how to get my new applcation
invoked every time the system reboots?

Thx a lot,
HTM
 
Old 08-16-2004, 01:31 PM   #7
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
u can put a script in
/etc/rc.d/init.d
of ur program it will run up each time ur suystem starts up
for a example script lookout for one there
regards
gaurav
 
Old 08-16-2004, 09:07 PM   #8
htm
Member
 
Registered: Mar 2004
Posts: 162

Original Poster
Rep: Reputation: 30
non root user issues

Per your suggestion, I made my own start/stop/restart script for my application,
however, my application requires to be executed in non-root user mode, how can I switch
to my_user_name mode, put su my_user_name in the script, seems does not work;
also my application has an option, shall I put it in $prog or invoke $prog with -option

Thx,
HTM
 
Old 08-17-2004, 08:02 AM   #9
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
Re: non root user issues

Quote:
Originally posted by htm
Per your suggestion, I made my own start/stop/restart script for my application,
however, my application requires to be executed in non-root user mode


Thx,
HTM
what is the problem i f ur applications wants to be xecuted in non root user mode
don't they get xecuted

regards
gaurav
 
Old 08-17-2004, 08:35 PM   #10
htm
Member
 
Registered: Mar 2004
Posts: 162

Original Poster
Rep: Reputation: 30
my problem

the start/stop/restart script is by default executed in root mode, and my application requires
to be executed in a non-root mode? how to do it? BTW how to incorporate an option?

Thx.
HTM
 
Old 08-18-2004, 04:57 AM   #11
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi

i haven't used this in a script but when i run
# su - gaurav

i am at the shell for gaurav

do try the above
regards
gaurav
 
Old 08-19-2004, 04:48 AM   #12
htm
Member
 
Registered: Mar 2004
Posts: 162

Original Poster
Rep: Reputation: 30
how to automate the su task

I mean hwo to automate in a start/stop script?

Thx,
HTM
 
Old 08-19-2004, 09:56 AM   #13
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi
have u tried the coomand above

i think u can execute commands in the script

more on this i will get u in a day or two

regards
gaurav
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to disable gnome-keyring? fannymites Linux - Software 19 12-12-2012 08:40 AM
Fedora Core 4 - disable gnome theycallmepj Linux - General 7 11-04-2005 09:36 PM
Disable F1 in Gnome? tvmaly Linux - General 0 04-20-2005 03:02 PM
Disable Gnome? cmoloney Linux - General 2 06-03-2003 03:13 AM
Disable Start-here in gnome???? Satriani Linux - Newbie 2 05-29-2003 05:17 PM


All times are GMT -5. The time now is 11:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration