LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   start lisa daemon (https://www.linuxquestions.org/questions/slackware-14/start-lisa-daemon-171284/)

jsmarshall85 04-17-2004 09:36 AM

start lisa daemon
 
where do i add lisa to get it to run on login or startup? i can see my xp machines shares with samba by making a shortcut to smb://xpmachine. but the lan browser in konqueror needs lisa. where do i put it to start it and whats the difference?

thanks

manuelkuhs 04-17-2004 09:58 AM

Hey, I run SuSE9.0, so it might be different for you; here's how I do it:

I open YAST, and go into the Runlevel Editor (come to think of it, maybe other distros have a Runlevel Editor). Then I switch to Expert Mode, and scroll along to the LISa daemon, then I set it to run for runlevel 5, which causes it to automatically be started everytime runlevel 5 is initiated (which is the GUI). You can also start it straight away.

Hope it helps,
Manuel

jsmarshall85 04-17-2004 10:13 AM

thanks for your reply. i did ind somehting like that, but i think it is kde specific, called SysV-init editor. i started it but wasnt sure of what to do, so i didnt make any changes, but i think you are right, i some how need to add lisa somewhere in a startup script file, but not sure which one or what line to add. on slackware we have a /etc/rc.d folder and in there is a file called rc.4 which i think is for runlevel 4 (slackware uses 4 everyone else from what i have seen uses 5), but there is no daemon line or anything like that

the search continues!

by the way i love your taglines there, very funny stuff!

BlankFrank 04-18-2004 07:12 AM

yeah - I'm looking for some help with this too.

basically from what I've found SysV-Init doesn't work because Slack uses bsd style files rather that SysV (correct me if i'm wrong)

I also found someone saying to add

#To start the lisa Daemon
if [ -x /opt/kde/bin/lisa]; then
-x /opt/kde/bin/lisa &
fi

to the rc.local file. but this doesn't seem to work for me either. plus the command 'service lisa start' doesn't work either - don't know if that is a slack thing or user error.

Any suggestions?

jsmarshall85 04-18-2004 04:07 PM

i ran that sysV-init thing and it hosed up my kdm. irebooted and had all kinds of users in the list to login, not just mine and root, but other system type accounts. and if i picked one and tried to login, it opened a command line only and i couldnt type anything. switched to tty6 and got a console logon and changed to runlevel 3 and can get in that way. i just changed the logon manager settings and will reboot to see if it takes affect (runlevel 4)
startingt he lisa daemon will have to wait :scratch:

tobyl 04-18-2004 04:58 PM

I dont use this lisa, but there seems to be some setup stuff in KDE/control centre/Internet & Network/Local Network Browsing. Under lan/rlan tab - check availability.
Guess you've been there already...

jsmarshall85 04-18-2004 05:00 PM

well, whatever the sysV-init tool did hosed up kdm. runlevel 3 and using startx works fine but if i change to runlevel4 and login (even after resetting the login manager) i get nothing but a command line box but cannot type

for loading lisa, i think he file to add those lines is the /etc/rc.d/rc.inet2 file, but i havent tried it yet, it might be one of the other ones in there, but i think it is that one. one of them say this is where you load network daemons, at least on slackware

jsmarshall85 04-18-2004 10:26 PM

tobyl, thanks for your reply, didnt see it earlier.

i am running kde 3.2.1 and i konqueror there is a lan browser link that complains about lisa not runningg. i am running samba and browse my etwork that way. i make a shortcut to smb://desktop and i can see my XP shares that way, but to do it in konqueror you need lisa running. on other distros (archlinux for instance) you can add lisa to the daemons line of the rc.conf file, butt i cant seem to find anything similar in slackware.

those settings in the control center are for the lan rowser but i think you need lisa running even for those. i will double check though and let you know wat i find out.

thanks again everyone.

BlankFrank 04-19-2004 03:08 AM

Yeah the control centre settings allow you to configure Lisa but not to start it (strangely enough)

Everything else about Slack I like so far - but it seems to make this unnecessarily difficult.

tobyl 04-19-2004 12:25 PM

First I did this:

root@********:~# /opt/kde/bin/lisa --help

This is the LAN Information Server LISa 0.2.3
It is free software according the GNU General Public License
Copyright (c) 2000-2003 by Alexander Neundorf
email: neundorf@kde.org

-v, --version prints out a short version info
-u, --unix deprecated
-k, --kde1 deprecated
-K, --kde2 deprecated
lisa now looks always first for $(HOME)/.lisarc, then for /etc/lisarc
-c, --config=FILE read this and no other configuration file
-q, --quiet start quiet without the greeting message
-p, --port PORTNR start the server on this portnumber
if you use this LISa won't be able to
cooperate with other LISa's in the network
-h, --help you are currently reading it ;-)

so far so good...so I ran it from the command line, and it worked.

next I looked at your script:

#To start the lisa Daemon
if [ -x /opt/kde/bin/lisa]; then
-x /opt/kde/bin/lisa &
fi

note the positioning of the square brackets :-(

this is my version:

#To start the lisa Daemon
if [ -x /opt/kde/bin/lisa ]; then
/opt/kde/bin/lisa
fi

I think this is network stuff so I put it at the bottom of /etc/rc.d/rc.inet2

reboot - hey! it works...

Also I noticed that there is a 'Guided Lisa setup' button in the Lisa Daemon tab of Control centre, that may be worth doing too :-)

slightly smug tobyl...


oh, there maybe security implications with this app, and firewall settings may be important
too?


All times are GMT -5. The time now is 06:52 AM.