OpenSUSE Install :: Executing Command At Boot?
Apr 7, 2010
im searching for this answer now a pretty long time and i know that many similar questions where asked and i all looked themIm trying to run a the command "vncserver" on our opensuse11.2 server when its booted.many posts here endet in "put a sh script into your /kde4/Autostart" but that didtn help for me because the server runs without a screen and normally nobody is logged in. When i logged in that worked fine.i also tried to add the command "vncserver" to "/etc/init.d/boot.local " but that didnt work too. i think its to early executed to work.i also tried to activate the service to start up at boot with chkconfig vncserver start but the service vncserver is "unknown". when i type vncserver into the console after logging in everything is alright.you see i really tried a lot and searched a long time at google and in this forum but nothing worked
View 4 Replies
ADVERTISEMENT
Dec 31, 2009
I was running openSUSE 10.3 using yast2-firstboot and everything worked perfectly. I have since upgraded to 11.2 and after a post on this forum I was able to get yast2-firstboot to run. The control file was moved to touch /var/lib/YaST2/reconfig_system instead of touch /etc/reconfig_system. All is well there and firstboot does run. I have a script that basically sets up the hostname, IP addresses, etc on the machines. This worked in 10.3 but in 11.2 it doesn't execute. I can manually run the script which I have defined in the /etc/sysconfig/firstboot file. The SCRIPT_DIR="/usr/share/firstboot/scripts" I noticed a new entry this file labeled - # Action that should be done after the firstboot sequence finishes.
FIRSTBOOT_FINISH_ACTION="" Should I place my script here? I read the doc and you can use reboot but need my script to run first. To I just put the name of the script or the entire path to the script if that is the place to put it. On a side note. Does anyone know where the default FIRSTBOOT_FINISH_FILE="" is located? I want to use that as a template but change and add a few lines to this. I just can't locate it anywhere on the system.
View 3 Replies
View Related
Nov 4, 2010
Out of curiosity and stupidity, I configured 2 extended partitions to LVM in gparted. Now, I can't boot into X window, and there's only GRUB command line during boot.
View 5 Replies
View Related
Feb 24, 2010
I am running SUSE 10.2 under z/VM 540 and have java working fine. I also have IBM EKM software running fine(if I execuute the script manually).I am trying to start this software automatically following the boot process. I have tried creating a member /etc/init.d/after.local but it does not seem to know where java is./etc/init.d/after.local: line 2: java: command not found"" After I login to any user I can get java -version to work, so my classpath is good.
LINUXEKM:/ # java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pxz64dev-20091106a (SR11 ))
[code]....
View 2 Replies
View Related
Mar 22, 2011
I just burned the iso of openSUSe 11.4 onto a dvd, and I make it through all of the installation. At the end it reboots the computer and starts in the kernel/command line or whatever you call it. I think it's kernel. Anyway, it asks for my username and password and then it says like "have fun.." () or something and then just has like my directory or whatever waiting for commands. Is there some command to start up the OS?
View 9 Replies
View Related
Aug 6, 2010
I have a some c source code files that i have to copy to linux machine from a windows machine over a network. This source code folder has to be copied into a particular directory structure in the linux system at the other end. After copying the file into the appropriate folder in the linux server i have to instruct the linux machine to make(using the make file that is there with the c files) this source code from the windows machine. Does anyone have any idea in regard to how this can be implemented?? i am trying to have a gui client that has the above mentioned options(copying and inserting the c files into the appropriate directory and then for making the files and getting the executable.)
View 3 Replies
View Related
Aug 24, 2010
what we are trying to do is, to let the customer click a button in the web browser, and then the web server to call a shell script to do the work. The output from the stdout && stderr of the script should be displayed in the web browser once finished or timeout, along with the exit code of the script.
The shell script is however not on the web server, but on another app server. So to call this script from the web server as the identity 'tomcat':
Code:
$ sh appuser@app-server:$appbin/app-script
The .ssh/id_rsa.pub thing is done, and we have no problem doing this in the command line so far.
Our loaded ex-colleage has left us the webpages (jsp) with code like these:
Code:
<%@ include file="jsp_functions.jsp" %>
<%
String cmd = "sh $appbin/app-script";
ExecResult r = new ExecResult();
[Code].....
View 6 Replies
View Related
Dec 17, 2010
I tried to execute a shell command by M-! cmd RET but it did not work.M-! does not turn up in the microbuffer no matter how many times I press Alt+!.But if I go to Tools menu and select Shell Command... option then it writes M-! to the microbuffer and everything works fine.What is the problem here?
View 2 Replies
View Related
Mar 31, 2010
I want to fix my dns if I issue command service named restart it just wont execute the command all it say is connection refused error from rc.d just cannot figure out what the problem is my server is ruining on red hat Linux 9 which is also my proxy server.
View 6 Replies
View Related
May 27, 2011
I'm trying to run an application from the command prompt. I've set the path in .bashrc. My executable file and all other files needed by it are saved in the same directory as the path. When I enter the executable name to run it, I get an error message saying that the command is not found.
View 14 Replies
View Related
Oct 5, 2010
If I type this manually on the command line, it works
Quote:
ssh -Y user@machine 'firefox &'
I ssh into the remote machine as the named user and pop an instance of firefox from that machine back to my own. If I put the same thing into a shell script though, it fails.
Quote:
#!/bin/bash
ssh -Y user@machine 'firefox &'
I'm just left sitting at a command line on the remote machine. Why does the script fail and how can I make it work?
View 4 Replies
View Related
Jul 8, 2011
I need to execute an external command with Python from Web. I know there is subprocess module that executes external programs but I'm trying to execute a command registered for the execution of a program. In this case when I execute my file in the shell everything is Ok, but from the Web it doesn't work.
View 1 Replies
View Related
Aug 20, 2010
I have the following command:ssh $USER@$HOST "ls /ops/pkg/ec/`grep "PKRTS" /ops/pkg/ec | awk '{print $1}'`* > /tmp/tmp_file"What the above SHOULD do..is, ssh to the host then execute the command.The command should first execute the grep and awk between the back ticks, and generate a file name, then ls using that filename* and write that data to a temp file.However, it executes the grep and awk before even SSH'ing and the command that goes to the server is simply an "ls /ops/pkg/ec/* > /tmp/tmp_file" since the grep and awk return nothing on the local machine.
View 1 Replies
View Related
Feb 11, 2010
I wrote a shell script and tried to execute it in separate terminal using command 'gnome-terminal -e <script>'. When executing first time, it went fine.From second time, I am getting error 'There is error creating child process for this terminal' repeatedly.
View 5 Replies
View Related
Nov 16, 2010
I have a php file that I need to execute via a cronjob. This file should be run by the www-data user as its a file in my /var/www/project folder. When I run this file under root (php -f cron.php) everything works perfectly, but I want it to run under the www-data to be safe. Before I run it vai crontab I tried it via command line as the www-data user and I receive errors:
Fatal Error: Allowed memory size of 8388608 bytes expired (tried to allocate 232 bytes).
But when I run it as the root user I get no errors and everything works correctly. The file cron.php is used to process automated tasks in my CRM. So I don't really want to have the root user running a crontab every few minutes for this.
Must the www-data user be given more permissions? I am using Ubuntu 6.06LTS
PHP - 5.1.2
Apache - 2.0.55
MySQL - 5.0.22
View 4 Replies
View Related
Mar 28, 2011
I was just curious if cron had to be enabled before use. i have a crontab, and the cron daemon is running, but the command isn't executing...
View 9 Replies
View Related
Jul 30, 2011
I want to execute a awk command, which reads from txt files and sums the numbers from the first column for those listed only inside a <init> block -- The awk command is like
Code:
awk '/</?init>/{x = !x}x{a++}x && a > 2{sum+=$1}END{printf"%E" "
", sum}
So, I want to execute it inside a perl script, and execute the awk command for the infile which is also defined outside awk loop, ie doing something like
Code:
foreach $infile (@ARGV) {
$gzin = gzopen($infile, "r") || die ("Couldn't open file $infile
");
# No. events and cross-section from current file
[code]....
View 1 Replies
View Related
Jun 14, 2011
When i try to execute scp command:
scp -r /localhostdirectory username@remotehostservername:/remotehostdirectory
I get the following error
0509-036 Cannot load program /usr//bin/ssh because of the following errors:
0509-150 Dependent module /homepath/server/bin/libcrypto.a(libcrypto.so.0.9.8) could not be loaded.
0509-153 File /homepath/server/bin/libcrypto.a is not an archive or
the file could not be read properly.
0509-026 System error: Cannot run a file that does not have a valid format.
View 6 Replies
View Related
Nov 13, 2009
I use a Dell inspiron 1525, with windows 7 and fedora 8 in dual boot. Ihave broadcom 4310 wireless card to use.. how ever i could not activate my wireless.. so i guess this the right place where i can get a solution to the problem. After installing the ndsiwrapper by yum, i tried to execute the command ndiswrapper -i bcmw15.inf This returns with an error couldn't open bcmw15.inf: No such file or directory at /usr/sbin/ndiswrapper line 219.
View 1 Replies
View Related
Aug 23, 2010
I m using Redhat Linux 5......I am trying to install Nero 4 DVD Writer s/w...It is an exe file ...
I have given permission like this:
Then i execute the file like this:
Its showing error like this:
View 9 Replies
View Related
Aug 3, 2011
I tried to install ndiswrapper , but its showing error,while executing make command
make[1]: Leaving directory `/usr/src/linux-source-2.6.35.8'
make: *** [LINUX] Error 2
View 2 Replies
View Related
Feb 12, 2011
I'm trying to execute the following command within a bash script:
Code:
tac /var/log/system.log | head -1
The script I wrote is:
[code]...
View 1 Replies
View Related
Jul 5, 2010
using ubuntu-10.04/gnome
i have my printer and localhost startup written in rc.local but it does not execute on boot/reboot
that is the report i could make (yet learning about how to use linux)
Code:
r@r-desktop:~$ ls /etc/rc.local -l
-rwxr-xr-x 1 root root 540 2010-07-05 14:26 /etc/rc.local
r@r-desktop:~$ cat /etc/rc.local
#!/bin/sh -e
[Code].....
View 4 Replies
View Related
Apr 22, 2011
Execute a script as a non-root user at boot time. The script lives in /home/sbrown/scripts and has the executable bits set. If I run the script locally in the shell it behaves as normal, but will not at boot time It's a very simple 2 line script:
#!/bin/bash
# Starts IRSSI in a screen session
sudo -u sbrown screen -S irssi irssi
Here's WHAT DOESN'T work:
I put this in /etc/rc.local: sudo -u sbrown /home/sbrown/scripts/irssi_exec I also tried just copying the script to /etc/init.d/ and chowning it to root then ran update-rc.d irssi_exec defaults and rebooted. Still not working. This is on a Debian Squeeze box... what am I missing? Surely it should be simpler than this
View 3 Replies
View Related
May 12, 2011
I'm booting Gentoo off of a usb-stick. This has been working previously but now when I try to boot my stick it gets as far as executing the initramfs init script then restarts.The last two lines of my initramfs/init are:
Code:
echo "finished initramfs."
exec switch_root /new-root /sbin/init
[code]...
View 1 Replies
View Related
Oct 26, 2010
Hey everybody, it seems I did something kinda stupid. So I tried right clicking on a folder and going to "Open With..." then under "Other Application..." I then selected custom command and typed in "eclipse." I thought I would just be able to open the folder as a project, but now it seems it's screwed up all of my folders. Now every time I try to open a folder in the GUI, Eclipse executes. I can still go through folders, delete files, etc. through the terminal, but I'd like to have GUI access as well. Does anyone know how to "undo" this custom command so Eclipse no longer executes?
View 1 Replies
View Related
May 4, 2011
I'm working with Linux 2.6.23 on an embedded device and am receiving the following error executing the reboot command.
View 2 Replies
View Related
Nov 23, 2010
I've compiled a program on ubuntu with python(make python) but the problem comes when I try to use it and exactly after the command line "from libpy import *", the message that appears is such
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "libpy/knit.py", line 28, in <module>
import _knit
ImportError: libpy/_knit.so: undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE
View 1 Replies
View Related
Nov 11, 2010
I'm developing a Servlet which when it gets a request, it has to execute a command. I've tried in Windows and it works fine, but when I "install" my web app in Linux, if I try to execute the commands I get permission error.
An example of one command I'm trying to execute is: Runtime.getRuntime.exec("rm file_name"); -> This commands outputs that I don't have permissions.
If I add "su" before the command, how do I add the password?
View 4 Replies
View Related
Jul 26, 2010
I use tcsh. When I execute by hand a command that is in my path...located in say "~/bin/myscript"....the command executes without an issue. I don't need to use the absolute path "~/bin/myscript", I can simply type the command "myscript" since the path "~/bin" is in my .tcshrc file. When I execute the same command from a script, I get a "command not found" error. A similar issue is when I use the absolute command, but a library necessary the programs' execution is defined within my .tcshrc file. I'll get a library not found error.
View 5 Replies
View Related