LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 11-05-2005, 09:12 PM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 48
Auto-launching a file in Linux(Debian) on booting


Hi,

I have a pdf file(kind of a readme file) which I would like to launch it automatically as soon my linux boots into GNOME(Debian Linux) so that the user can read that file. I have placed the file under Root directory.

How can I achieve this?

thanks
 
Old 11-05-2005, 10:58 PM   #2
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
Would modifying your user's xinitrc work?

$ if [ ! -f ~/.xinitrc ]; then echo -e "# invoke global Xinit script\n. /etc/X11/xinit/xinitrc &" > ~/.xinitrc; fi && echo "xpdf somefile.pdf &" >> ~/.xinitrc

You might want somefile.pdf somewhere other than /root/
 
Old 11-06-2005, 03:25 PM   #3
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
Thanks. I will try that. But I just noticed that my ~/.xinitrc file does not exist? Is this something serious? Also, I believe that .xinitrc file is for launching GNOME by having a line in it like exec gnome-session. But in case which file is launching my GNOME session? I have ibnstalled gdm also. Does th at mean that config files of gdm are taking care of it? If it is, where can I find that file.?

Thanks
 
Old 11-06-2005, 07:46 PM   #4
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
Executing the line above will create ~/.xinitrc if it doesn't exist.
Have a look at the file once it's created and see if it works.
 
  


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
Launching file browser as root lazymanc Debian 9 05-20-2005 04:22 AM
GRUB Auto-booting rwescoat Linux - Software 2 10-02-2004 07:52 PM
question about auto booting agassi999 Linux - General 0 10-08-2002 11:02 PM
problem booting via boot.ini and linux.bin file onlyhuman9 Linux - General 5 09-18-2002 08:32 AM
auto: auto file not found error rissi_kapoor Linux - General 0 08-15-2001 09:34 PM


All times are GMT -5. The time now is 04:33 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration