Ubuntu :: Startup Script Not Executing?
Oct 26, 2010
Code:
ryan@TehLaptop:~$ uname -a
Linux TehLaptop 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:36:48 UTC 2010 i686 GNU/Linux
ryan@TehLaptop:~$ lsb_release -a
[Code].....
I have it in my system -> preferences -> startup applications as the command "/etc/init.d/fixkeys" however it is not being executed at startup (I have to manually run the script every time I login). If I manually run it, it works perfectly. I have tried moving it to a directory in my home folder but that did not solve anything.
View 9 Replies
ADVERTISEMENT
Apr 17, 2010
I created a script, named mount_share.sh (in /etc/init.d), to mount the shared VirtBox dir at boot so I don't have to do it manually every time I load the VM. The script contains the following:
#!/bin/sh
sudo mount -t vboxsf -o uid=1000 osx_shared /home/rob/ubuntu_shared
I made it executable:
sudo chmod +x mount_share.sh
Then I assigned it to run at startup:
sudo update-rc.d mount_share.sh start 51 S .
I'm thinking it may be either:
1) A pathing problem to the ubuntu_shared dir but, if I run "ls -al" from inside /etc/init.d, it does find the ubunt_shared dir
2) Trying to run as sudo from inside the script. But, since all startup scripts run as the root user, I shouldn't even need the "sudo" in there which I have tried to no avail.
View 1 Replies
View Related
Sep 1, 2011
I am a xfce user. I have a list of wallpapers and I wanted to change them every 5 minutes Initially I was using a simple command in crontab entry to change it, Quote: */5 * * * * xfdesktop --reload it was working but it would crash xfdesktop process after few changes and the screen would be all grey. To solve this issues I wrote a simple script which would check if xfdesktop is alive and if yes it would call xfdesktop --reload else start xfdesktop I called this script idesktop & its path is ~/.bin/idesktop
[Code]....
View 8 Replies
View Related
Oct 26, 2010
I successfully installed and validate ns-allinone-2.34 network simulator on ubuntu-9.10. I then tried to run simple tcl code and ended up on the following error. I couldn't move ahead from there. What should I do to make 'nam(version 1.14)' work on my ubuntu 9.10?
ns: finish: couldn't execute "nam": no such file or directory
while executing
"exec nam out.nam &"
(procedure "finish" line 7)
invoked from within
"finish"
Here is the code I tried to run (for reference):
#Create a simulator object
set ns [new Simulator]
#Define different colors for data flows (for NAM)
$ns color 1 Blue
$ns color 2 Red
#Open the NAM trace file
set nf [open out.nam w]
$ns namtrace-all $nf
#Define a 'finish' procedure
proc finish {} {
global ns nf
$ns flush-trace
#Close the NAM trace file
close $nf
#Execute NAM on the trace file
exec nam out.nam &
exit 0
} .....
By the way I googled and got some suggestions like: adding 'nam' directory to environment. I did this as follow but it didn't work. I added:
export PATH=$PATH:/home/elias/ns-allinone-2.34/nam-1.14
to /etc/profile (>sudo gedit /etc/profile)
View 1 Replies
View Related
Jan 14, 2010
Is [URL]... down? I try to add the repository:
sudo add-apt-repository ppaorg-edgers/ppa
and I get this error:
[code]...
View 5 Replies
View Related
May 11, 2010
I cannot seem to find what I need to in either these forums, Ubuntu help, or various Man pages.Issue:When I insert a CD it automounts correctly, but I cannot Use the "Open with Wine" option (even after configuring wine to recognize the executable) due to a "trust" issue within Ubuntu. I have learned that this "trust" is simply the executable bit, but I obviously cannot change that bit on a read only medium. he software requires the CD at both install and run time, so I cannot use a separately mounted ISO.Somewhere there must be a setting where I can turn off the "require trust flag" which I assume must exist.
View 5 Replies
View Related
May 20, 2010
I just closed my terminal after checkin out byobu . Now when i click terminal , nothing happens . how can i get back my terminal ???
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
Sep 4, 2010
After downloading any program thats in ubuntu or uses wine to run before i can run it i've got to allow it to execute, is there a workaround for this? Im using 10.04 ubuntu desktop
View 1 Replies
View Related
Apr 22, 2011
On the `Install Properties` Menu , I am not allowed to check the: Allow executing file as program...
View 2 Replies
View Related
Apr 30, 2011
I installed wine in the new Ubuntu 11, but when i right click and go open with wine it says that its not marked as executable! then i went right click and properties and under the permissions i clicked "Allow executing file" but it keeps unchecking!
View 9 Replies
View Related
Aug 6, 2011
Is there any way to map a shell script to run when you press a certain set of keys? For instance, I may want to execute the following by pressing CTRL+ALT+R (if that key combination is not already taken)
Code:
compiz --replace --loose-binding ccp
Or perhaps I want to open the System Monitor by pressing CTRL+ALT+DEL (a la Windows)
View 2 Replies
View Related
Apr 30, 2010
I upgraded karmic to lynx today and I'm stuck with some weird behaviour with one of my virtual hosts. The virtual hosts under /var/www/site work but my virtual host for DAVICAL which points to /usr/share/davical/htdocs/ doesn't.
Navigation to any html pages works but php files just show up blank!
Has there been a configuration change in lynx for virtual hosts outside of /var/www?
View 6 Replies
View Related
Jun 5, 2010
so sorry about this seemingly silly cron question. I know a lot are asked, and are usually just environment related.Anyway, I wrote a very simple PHP script to mount my external drive to a specific location as soon as it's switched on.The script works great when run.What's strange, is that it runs in cron and generates a log file, but for someone reason doesn't mount the drive when cron runs itI added in the full path to EVERYTHING in the script, and I'm calling it with the full path from crontab, but it doesn't mount my drive when run from cron.I've tried running the individual commands on the cmd, and it all works.
View 9 Replies
View Related
Dec 15, 2010
when I try executing a file in WINE that was a C++ and was compiled into a .exe I get:
Code:
fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.VC90.CRT" (9.0.21022.8)
err:module:import_dll Library MSVCP90.dll (which is needed by L"Z:\home\server\ms\MCServer.exe") not found
[code]...
View 5 Replies
View Related
Mar 1, 2011
if I executed a Windows Virus in the program "Wine" in Ubuntu.
View 9 Replies
View Related
Jun 7, 2011
I m using ubuntu 10.04. I have install flightgear Scenery designer(fgsd) and it executed successfully, but during working on it I selected any option of it and fgsd crashed. After that it is not getting execute. Throwing following error on console. buffer overflow detected ***: fgsd terminated
View 1 Replies
View Related
Jul 20, 2011
We've run into an interesting issue in our environment:
If user joe1 has an executable that is NFS mounted, owned by him and permissions are set such:
--x--x--x a.out
he can't run it:
./a.out: Permission denied.
if he moves it to the local machine, say /tmp, it works fine with the same permissions.
joe can execute the file if he changes the permissions to r-x--x--x
this behavior seems to exist on the 11.04 clients, but not the 10.04 clients.
View 1 Replies
View Related
Feb 5, 2010
I made a small script to passwordless login to server with sshgnome-terminal --command "ssh myserver"I can login but i want to execute a command, lets say a "ls".So when i doubleclick the script it should login (which works) and gives me a listing (ls) on that server.gnome-terminal --command "ssh myserver" ---> and then execute ls on that server.
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
Feb 18, 2010
I am trying to get a start up script to work, I have a file /etc/init.d/blah (with 755 permissions) with the contents [URL]. I have run "update-rc.d -f blah defaults". But when I reboot the script is not executing.
View 1 Replies
View Related
Jul 21, 2010
I am trying to create a script that reads a list of url's from a text file and then executes the same script for each line. This is what I am looking for:
elinks -dump $(url's in file, one by one) | grep "reply" > jobs.txt
View 6 Replies
View Related
Sep 29, 2010
I have a script which copies(scp) .war file to tomcat's webapps and the .war file extracts creating a folder under webapps directory on a ubuntu system. My next line of the script is restarting the tomcat which is executed immediately before the .war is extracted and this causing problem with
Is it possible so that it waits for few seconds/minutes before it executes the next line of the script. The script is of normal ubuntu commands.
View 2 Replies
View Related
Oct 23, 2010
Yesterday,I upgraded to ubuntu 10.10
then when i try to mark allow executing file as program it unmarks itself although i used it on ubuntu 10.4
View 9 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
May 20, 2011
I've been trying to install Natty (64) over the last couple of weeks and am having problems that I've never had with any distribution before. At the end of each install, I get the following error:
Code:
Executing 'grub-install /dev/sda' failed
It then gives me the option of installing grub somewhere else, which I don't want, but it doesn't work anyway, or leaving without a boot loader, which isn't really desirable.
At first I thought it might be something to do with my previously complicated quad-boot partition layout, so I simplified that to a fairly regular Windows and Ubuntu only, but no luck.
Grub also fails when attempting to upgrade 10.10.
I've tried restoring Grub2 using chroot amongst other things which doesn't work.
View 1 Replies
View Related
Mar 3, 2011
Why is the timer not executing?
Code: #include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <signal.h>
#include <time.h>
#include <pthread.h>
void func(union sigval sv)
[Code]....
View 1 Replies
View Related
Jan 24, 2010
I have a dual boot Dell Studio laptop with Windows (VISTA) and Ubuntu (9.0.4) installed on it. I have recently installed Ubuntu to make it a dual boot. Before that I was using LiveUSB Ubuntu image for six months (without any problems).
During the installation of Ubuntu, I created a Linux partition of 2GB for Ubuntu installation (assuming that it was running successfully on my 2GB USB drive). All of my other work (e.g. documents/programming projects etc.) are stored on the Windows partition (which is loaded during the boot time automatically). The problem is that I get a "permission denied" error while running any executable file on the Windows partition. But if I copy the same executable on the Linux partition, everything works perfect. Am I missing something here?
I have verified that the executable have necessary execute permissions.
View 4 Replies
View Related
Jan 3, 2011
Ok so I've searched for a solution to this problem everywhere and couldn't seem to find any, so I decided to post here.Recently I came across a new modified version of Ubuntu which was made for pentesters, called "blackbuntu".Now I know everything is the same as linux, except a little tweaked. So, I am trying to setup my bootable USB drive, and get this error (I chose Try an unlisted OS -- Then picked New Syslinux).And I keep getting this error:^
View 9 Replies
View Related