LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-26-2004, 07:09 PM   #1
arkamir
Member
 
Registered: Nov 2003
Location: Califroni
Distribution: Fedora
Posts: 51

Rep: Reputation: 15
Starting programs on logon/syncing time/ PATH


I have acouple of questions. :-) How would I start emacs and a terminal on login?? I heard you have to edit something like .xinitrc?? but I'm not sure. Last time I tried editing one of those files whenever I loged on it froze so I had to login as root and delete it. the second question is how do I sync my hosts time on boot. The last one is how do I change my PATH so I dont have to do PATH = $PATH... everytime I login. I want to add /sbin permentely to my PATH.


thanks a lot
Conrad
 
Old 01-27-2004, 12:10 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Depends on how you start X ...

From a graphical login-manager ~/.xsession
will be evaluated, if you login from a console,
and type startx, ~/.xinitrc will be used.

You can use any of the files in /etc/X11/xinit
as a template for your own needs ...

Just add anything you want to be run at
login before the exec-call for the window-
manager...

As for the path: a normal user shouldn't really
need /sbin in his path ... but to make it permanent
anyway edit /etc/profile ... or make a ~/.bashrc or
~/.bash_login file that sets it if it's only for one
user ...

And as for the time: sync to WHAT?
You could use ntpdate your.closest.timeserver
from rc.local it internet-time is what you're after.


Cheers,
Tink
 
Old 01-27-2004, 12:44 AM   #3
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: CentOS 5.5, Ubuntu 10.04, Linux Mint 11 gnome 64 bit
Posts: 336

Rep: Reputation: 36
Tinkster is right:
Quote:
As for the path: a normal user shouldn't really
need /sbin in his path ...
Even if you have sbin on your path I don't think you will be able to execute those
<root> programs. It's better to use sbin for when you are logged in as root.

Last edited by alar; 01-27-2004 at 12:46 AM.
 
Old 01-28-2004, 06:47 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally posted by alar
Tinkster is right:

Even if you have sbin on your path I don't think you will be able to execute those
<root> programs. It's better to use sbin for when you are logged in as root.
:)
Depends ... :}

ifconfig, for example, will allow a "normal" user to run
it, but restrict the operations performed.


Cheers,
Tink
 
  


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
syncing my zaurus sl5500 to mandrake 10.1 pc for the first time jmill_1 Linux - Laptop and Netbook 2 10-24-2005 01:01 AM
path/env var avail in KDE after logon? hyllplan Debian 5 05-11-2005 08:50 AM
smb.conf (logon path / problems with profiles)) geodo Linux - Newbie 0 12-02-2004 08:40 AM
time syncing with time server turbo_acura Linux - Networking 2 10-24-2004 03:38 PM
no signal when starting xorg for the 1st time (but the second time works fine) bungalowbill Linux - Software 0 06-04-2004 10:56 AM


All times are GMT -5. The time now is 02:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration