LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-24-2022, 03:32 PM   #1
Data10
LQ Newbie
 
Registered: Feb 2022
Posts: 5

Rep: Reputation: 0
Adding a command to run at start-up


Hi all - I'm getting to know Linux and need some help. I have jumped straight in at the deep-end and have been using Clear Linux. I really like it as it's very quick, I've also installed and have been using VMware Workstation Pro. But I have an issue I seem to have come across. If I reboot and try to start a guest in VMware it throws up a vmmon error. So I then run this command in terminal and it starts the relevant services sudo /etc/init.d/vmware start, I can then start my guest. The problem is I must do this every time I boot. Is there an area in Linux that I can add this line of text, so it starts automatically in the background?

I'd appreciate all your help.

Thanks in advance.

Last edited by Data10; 02-24-2022 at 03:38 PM.
 
Old 02-24-2022, 04:31 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

I just checked, and it seems that Clear Linux uses systemd. So to enable the service to automatically start you should be able to do:
Code:
sudo systemctl enable vmware.service
Evo2.

P.S. This assumes that /etc/init.d/vmware file contains an init info block (or a vmware.service file is installed).

Last edited by evo2; 02-24-2022 at 04:40 PM. Reason: P.S.
 
Old 02-25-2022, 10:06 AM   #3
Data10
LQ Newbie
 
Registered: Feb 2022
Posts: 5

Original Poster
Rep: Reputation: 0
Hi thanks for coming back, I get this message when I try and run it…..

Failed to enable unit: Unit file VMware.service does not exist.
 
Old 02-25-2022, 10:50 AM   #4
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,174

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
Linux is case sensitive, so use vmware.service, not VMware.service.
 
Old 02-25-2022, 02:01 PM   #5
Data10
LQ Newbie
 
Registered: Feb 2022
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the advice but that still didn't work, it's just the same error message.
 
Old 02-25-2022, 05:27 PM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

it seems that you will either need to install vmware.service file or modify the /etc/init.d/vmware script to add a proper INIT INFO section.

To decide which is the better option (or if there is a better way), I think it would be best if you tell us how you installed vmware. Please provide a url to whatever instructions were followed.

Evo2.
 
Old 02-26-2022, 04:26 AM   #7
Data10
LQ Newbie
 
Registered: Feb 2022
Posts: 5

Original Poster
Rep: Reputation: 0
Hi - So I used this guide https://docs.01.org/clearlinux/lates...0will%20launch. I also installed the Kernel Modules too, the lts bundle.
 
Old 02-26-2022, 12:02 PM   #8
Data10
LQ Newbie
 
Registered: Feb 2022
Posts: 5

Original Poster
Rep: Reputation: 0
Sorted!! Did the below....

Autoload VMware Kernel Modules

sudo mkdir /etc/modules-load.d
sudo gedit /etc/modules-load.d/vmware.conf

vmw_vmci
vmmon
vmnet

sudo clr-boot-manager update

modprobe -a vmw_vmci vmmon vmnet

reboot


Thanks for everyone's responses, it's really appreciated.

Last edited by Data10; 02-26-2022 at 03:23 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
Making a .run file run for a printer driver run? natslo26 Linux - Newbie 3 04-05-2015 09:17 AM
Bash script for adding users is running but not adding users Gren Programming 2 04-27-2012 03:53 AM
adding run command to Avant Navigation Bar and to Gnome Main Menu metallica1973 Linux - General 4 03-04-2010 02:58 PM
LXer: See distros. See distros run. Run, distros, run. LXer Syndicated Linux News 0 06-13-2006 01:24 AM
Adding more SWAP after adding memory marc1978 Linux - General 6 03-19-2006 07:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:58 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
Open Source Consulting | Domain Registration