LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-07-2017, 05:29 PM   #46
bifferos
Member
 
Registered: Jul 2009
Posts: 401

Original Poster
Rep: Reputation: 149Reputation: 149

Quote:
Originally Posted by Darth Vader View Post
So, at the end of day, what is your problem?
Actually no problem, I only just realised the virtual desktop in NX does persist after you disconnect, which is what I wanted. I will try this for a while and see how the reliability is.

thanks,
Biff.
 
Old 12-07-2017, 05:35 PM   #47
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Yeah, you can connect and disconnect to a session via NX, as you like. And it is incredible useful this feature.

I used in the past this feature as a "quick&dirty" hack to launch some GUI applications in a remote computer, then leave them to work. Kind of "screen" for X!

I talk about a kind of server soft for Internet Radio. Was with GUI even the Linux variant.

Last edited by Darth Vader; 12-07-2017 at 05:40 PM.
 
Old 12-07-2017, 06:13 PM   #48
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
@bifferos

I looked in the RPM variant of NX6, for the structure. I do not think it can be packaged to Slackware, because we do not have a "pre-install" script, which they use heavily.

Practically, a Slackware package, like you know, has only a "post-install" script. The RPM or DEB use also another types of scripts.

I.e. "pre-install", "post-install", "pre-uninstall", "post-uninstall", "pre-upgrade", "post-upgrade"

Basically, what they do in the RPM?

They ship in "etc/NX/server/packages" those tarballs, like in the generic version, then use "pre-install" and "post-install" to handle them, and looks like other script domains are similar.

The real problem is you to invent a way to execute a "pre-install" script within a Slackware package, then you can pack that NX release as you like, inspired by their RPM variant.

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

OK, maybe it could be packaged, if you assume the installed files to be really out of the package scope.

Looks like the nxserver script from /usr/NX folder, could be used as I said initially, as be called by install/doinst.sh

So, practically, your package should have the following structure:

usr/NX/etc/localhost/*
usr/NX/etc/packages/*.tar.gz
usr/NX/nxserver

then in the install/doinst.sh just call the usr/NX/nxserver --install slackware which will execute the real installation.

BUT, all the files which will be installed by that command are out of the package scope, just like GLIBC files from /lib(64), then you cannot remove them in other way than manually. And that's in fact, all of the real installed files, as the installer clean its room.

The good news is that looks like an upgrade will still work, even I do not know what sense will make in this case to install it two times, as we do.

Last edited by Darth Vader; 12-07-2017 at 06:51 PM.
 
Old 12-07-2017, 08:24 PM   #49
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Darth Vader View Post
I looked in the RPM variant of NX6, for the structure. I do not think it can be packaged to Slackware, because we do not have a "pre-install" script, which they use heavily.
Isn't a SlackBuild basically a pre-install script? You do whatever tweaking to the files/folders before it is packaged up, then the doinst.sh handles any post-install instructions...
 
Old 12-07-2017, 08:31 PM   #50
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by bassmadrigal View Post
Isn't a SlackBuild basically a pre-install script? You do whatever tweaking to the files/folders before it is packaged up, then the doinst.sh handles any post-install instructions...
Well, the "pre-install" script, at least on RPM (or DEB), have the advantage that it is run in an alive system, then can do a series of checks or behavior changes, according with the real situation.

For example, to switch to "upgrade mode" if particular files are detected. OR to refuse installation, if specific conditions are not meet.

------------------
Practical example: stopping the Apache service before installing an Apache extension or upgrading Apache.

Another practical example: the upgrading of a up and running MySQL server can have dramatic effects on the associated databases (read: all data is gone, Jim! WTF?)

IF the "pre-install" script stops the MySQL service before doing the upgrade, the safety of data is ensured in the databases.

------------------
I know, you will say: but, but a true admin should stop the services first.

True, but WHAT IF the admin forget that, or being habituated with other distros, he suppose that the process is automated?

Could be also multiple admins on that particular server, and the one who execute the upgrade use(d) Slackware only occasionally.

Combine that with automated tools like slackpkg or slapt-get, and you obtain a walking-bomb, waiting to explode.

------------------
BUT, what I really miss, is a "post-uninstall" or "post-remove" script, to do cleanups after removal.

For example, in the discussed NX case, practically all installed files could be removed this way, via an "post-uninstall" script.

------------------
At the end of day, you can look in the RPM variant of NX, to see what scripts use. 130K has its pre-install, for example ...

Last edited by Darth Vader; 12-07-2017 at 10:31 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set up a headless VNC on Slackware andrixnet Slackware 8 02-07-2017 08:06 AM
slackware 14.1 access to VirtualBox headless guest BenCollver Slackware 2 05-11-2014 10:45 AM
LXer: Mindfire Solutions sponsors its people to OSI Days 2010 LXer Syndicated Linux News 0 09-23-2010 01:00 PM
fresh install on headless server with Slackware linuxhippy Linux - Server 5 11-03-2007 02:54 PM
Trying to install slackware without monitor or keyboard (headless) icebox17 Slackware - Installation 1 03-31-2007 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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