LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-23-2005, 04:29 PM   #1
newbie007007
Member
 
Registered: Dec 2004
Location: India
Distribution: Fedora
Posts: 36

Rep: Reputation: 15
/etc/rc.local


Hi,

This is my /etc/rc.local file.

Code:
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
konsole

I added the line "konsole" so that everytime system boots , Konsole gets opened.
But I am not getting it.
Can someone tell me where is the problem???

Thank you.
 
Old 05-23-2005, 04:52 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
You are not setting the DISPLAY environment variable. You can have more than one X server session on a computer, and the DISPLAY variable says which one to use. Assuming you only have one X server, you want to set DISPLAY to :0.0

Another problem is that you're running konsole in the foreground. While this isn't a problem as such, it will stop anything that you might put in the boot scripts after konsole from running until konsole has finished. Put an ampusand (&) after the command to run it in the background.

Thirdly, you're running konsole from the start-up scripts as root, on start-up. This is a bad idea; anyone can just start up your machine and have a root console to log in as. You probably want to create a ~/.Xsession file and put konsole in that, along with you window-manager command (like startkde). But that may take more effort to get it working; the alternative is to use su or sudo instead:

Code:
sudo username -c 'konsole' &
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup local machine to allow lan machines to retrieve its local user mail. Brian1 Linux - Networking 3 03-30-2006 05:04 AM
Local webserver -- How to deny all client install their local web server--Please help b:z Linux - Networking 13 04-16-2005 07:11 PM
Regarding rc.local subaruwrx Linux - Newbie 11 10-11-2004 08:04 AM
where's my rc.local TheChicken Linux - Newbie 4 04-05-2004 01:38 PM
Cannot resolve local addresses on local network danielgrenyer Linux - Networking 6 01-14-2004 11:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:58 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration