how to open a file automatically at startup in centos /redhat.I want to open open some pictures automatically when my red hat boots everytime
I am running a headless Linux 17 media/NAS server. I have setup and tested the plexconnect script and it works. My only issue is that I can't figure out how to get the script to automatically run on startup. I tried using the GUI, but it doesn't seem to work.
To get it to work, I have to open terminal and navigate to the directory:
/usr/local/lib/PlexConnect/
Then run: sudo ./PlexConnect.py
The window has to remain open in order to keep running (which isn't an issue as it's headless). I'd just like to not have to login and start it each time the power goes out, or is rebooted.
I tried editing the crontab file and adding the following variations with no luck:
@reboot python /usr/local/lib/PlexConnect/PlexConnect.py
@reboot /usr/local/lib/PlexConnect/PlexConnect.py
Neither has worked. Does anyone know what I'm doing wrong?
Thanks!
I got KeePass2 for passwords and Linux Mint 17.1 won't open KeePass2's .kdbx file. I Googled around and there was some software that said it would open it but I was concerned that they might be scammy (because it's a password protector).
What's a safe way to open the file?
from the desk top i open documents file , i have multiple folders but no information Clearly what iam see is the background. how do i fix this perhaps i have deleted some thing wwhich has created the problem .
OPENING A FILE i receive multiple notification from OKULAR SAYING CANNOT OPEN FILE AND QUOTES FILES WHICH HAD BEEN DELETED .
ANY SUGGESTION ON HOW I CAN FIX THE DEFECTS .
I have a Centos 7 server which setup by previous system administrator , when this server startup , it will start some service eg. apache , mysql etc, but I could not find the startup script at /etc/rc.local /etc/rc.d/rc.local or /etc/rc.d/init.d , would advise which path will be the startup script keep ?
Thanks
I have a number of CentOS 7 VMs and there is only one that won't automatically connect to the wired network.
Thru the gui (Gnome 3.8.4), I found the checkbox to automatically connect it, however I would like to know what file to modify in the future for my learning experience.
I was not able to find the file to modify. I looked under /etc/sysconfig/network-scripts.
thanks
Is there a way to elevate privileges in GUI?
For example, when trying to open a file that requires root to view, unlike Windows, where I would be presented with a prompt asking for admin username/password, Linux would just say that I need to be root to open.
When I bring up Linux Ubuntu I would like to get a login prompt and choose as whom to log in. Then I would like to say startX or something like that and to get into X-windows. As I am in X-windows I would like to, do a right mouse click or something and chose “open a new terminal” or something. I used to do that all back over decade ago. Then I haven’t used Linux for over a decade. Now I got a box with Ubuntu, but …
When I bring it up I automatically get logged in as “Owner” and I get into interface that limits what I can do. Specfically, I don’t see how to become a different user, how to get into command line mode, how to run X-windows and open multiple terminal windows. And I would like to decide myself when to invoke some fancy GUI interface, instead of being forced into it..
I found one way to do some of what I want: ctl-alt-functionkey. But when I log in and do startX from there the right mouse click does not give me “open new terminal” option.
Could somebody help me out? Thank you very much in advance.
Roman
Hi all,
In my work, I'd like to spawn separate kernel threads (tasks) to execute syscall asynchronously. Specifically, a user thread issues a syscall, goes into kernel, save the syscall number and arguments somewhere in the kernel address space, but does not execute the syscall. A kernel thread which is different from the user thread, will fetch the syscall number and arguments to execute the syscall on behalf of the user thread.
But for file operations such as read, the kernel thread is not aware of the open files of the user threads. For example, if the user thread opens a file and get a file descriptor, then it issue a read() syscall. The kernel thread cannot execute the read() on behalf of the user thread by just using the file descriptor. Thus I need some way to allow the kernel thread share the open files information with the user thread, such that the kernel thread will have the context of the open file to execute read(). I tried to pass the files_struct of the user thread's task_struct to the kernel thread, but it didn't help, read() returns a EFAULT error.
Can anyone give me some suggestions on how to make a kernel thread share the open files with a user thread? Or more straightforward how to execute the read() syscall in the example above in kernel thread? Thank you very much!
--Louis
I am running xubuntu 11.10, fully updated, on an Acer 250 netbook (1GB ram, 1.8 GHz clock, single core Atom processor, if you can believe it). Runs pretty well, I think. So much so that I have decided to migrate from Windows to Linux.
My first question to the forum is this: I have set the Thunar file explorer to show hidden files. However, hidden files still don't show up on various File Open or Browse... dialogs.
How can I set up xfce or xubuntu to always display .hiddenfiles in Open... or Browse... dialogs?
Problem comes up when I want to edit some .config file or run the alacarte Main Menu editor and have to specify some long path to an executable in a hidden directory (as in wine). I have to enter the file name manually, which gets to be a problem for my thumb-fingered typing.
I have CentOS 7 64 bit. I have installed open-vm-tools on it.
I have installed vmplayer using
Code:
./VMware-Player-6.0.1-1379776.x86_64.bundle
Now when I try to open vmplayer on it, it does not load 'Virtual Network Device'
and shows error in terminal
Code:
Failed to build vmnet. Failed to execute the build command.
When I check status of vmware, it shows
Code:
Module vmnet not loaded
If I try to run
Code:
vmware-modconfig --console --install-all
It gives me following error.
Code:
make: Leaving directory `/tmp/modconfig-2NfFeS/vmnet-only'
Unable to install all modules.
I am not able to open VMplayer, please help me to open it.
Thanks
--Kind Regards
Sam