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 09-24-2004, 10:14 AM   #1
oscarp
LQ Newbie
 
Registered: Sep 2004
Posts: 11

Rep: Reputation: 0
Which to use?


I work as a computer tech for an eye care company. We want our workstations to boot to an rdp session. We want to use linux so there are no licensing issues to deal with. I am curious as to which linux os will do this for me, boot to the rdp session.
 
Old 09-24-2004, 10:33 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there

rdp works on many linux .
mandrake,redhat,fedora

also u can try out a setup of LTSP
ltsp.org
and k21ltsp.org

this is a terminal server /client setup

regards
 
Old 09-24-2004, 11:18 AM   #3
oscarp
LQ Newbie
 
Registered: Sep 2004
Posts: 11

Original Poster
Rep: Reputation: 0
well is there a way to add something to the startup like you can in windows
 
Old 09-24-2004, 12:44 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
Quote:
Originally posted by oscarp
well is there a way to add something to the startup like you can in windows
hi

could not get to what u r referrring to

regards
 
Old 09-24-2004, 01:08 PM   #5
oscarp
LQ Newbie
 
Registered: Sep 2004
Posts: 11

Original Poster
Rep: Reputation: 0
In Windows XP you can add programs to the startup so that when windows first boots up the program starts automatically. Can this be done in Mandrake? And where do I do it?
 
Old 09-24-2004, 01:15 PM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there

do u want o start program like other services??

for that u can make a script and put it in /etc/rc.d/init.d
and make it executable,so that it starts at start up

now u can also lookupto different scripts given there so that to make ur own script,which are very easy down there

regards
 
Old 09-28-2004, 08:31 AM   #7
oscarp
LQ Newbie
 
Registered: Sep 2004
Posts: 11

Original Poster
Rep: Reputation: 0
ok I have looked through most of the scripts. But I am not real sure as to what I am looking for. Or what I do once I have found it. Can you suggest a good place to start?
 
Old 09-28-2004, 02:13 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Some distros eg RH, have a specific place to add your own progs at startup:
/etc/rc.local
Just add a call to your script to the end of that file if your distro supports it, eg:

nohup myscript.sh &
 
Old 09-28-2004, 02:26 PM   #9
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there

i am posting u the script i wrote for my program

-------------------------

#!/bin/sh
#
# autologoff This shell script takes care of starting and stopping
# the autologoff demon.
#
# chkconfig: 345 90 25
# description: autologoff is a daemon used for managing clients logged in to the terminal server

#/usr/bin/checkutmpd --- used to check newly logged in users in server from the utmp file
#/usr/bin/checkuserd --- created a new one for each user logged in
#/usr/bin/changetime --- command line utility used for changing the check time set to check users


# Source function library.
. /etc/rc.d/init.d/functions


[ -x /usr/bin/checkutmpd ] || exit 0
[ -x /usr/bin/checkuserd ] || exit 0
[ -x /usr/bin/changetime ] || exit 0


start() {
# Start daemon.
if [ -n "`/sbin/pidof checkutmpd`" ]; then
echo -n $"autologgoff: already running"
echo
return 1
fi
echo -n $"Starting autologoff daemon: "
daemon checkutmpd
echo
}

stop() {
# Stop daemons.
echo -n $"Shutting autologoff daemon: "
killproc checkutmpd
echo
}

rhstatus() {

status checkutmpd

}

restart() {
stop
# wait a couple of seconds for the userman to finish closing down
sleep 2
start
}



# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
rhstatus
;;
restart)
restart
*)
echo $"Usage: $0 {start|stop|status|restart}"
exit 1
esac

exit $?


----------------------------

this starts my program "checkutmpd" at boot time


put this script in /etc/rc.d/init.d
and run

chkconfig name of script on

this will make it to start at boot time

regards
 
  


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




All times are GMT -5. The time now is 10:10 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