Programming :: Start Up Script To Execute AFTER Desktop Loads
Oct 22, 2010
I need one, cause I know this is "So easy, a cave-man could do it" (and I can't) yikes.
I need a start up script to execute AFTER my desktop loads. It's for display resolution. I've added the same script in 3 places, and all will execute, but not until I do it manually. It's being over-written by another function...
1 script in /etc/gdm/Init/Default (as per Wiki page, which has a syntax error I found yesterday):
Quote:
#!/bin/sh
# Stolen from the debian kdm setup, aren't I sneaky
# Plus a lot of fun stuff added
# -George
[Code]....
Can I create a run level 7, like rc7.d, that will execute after the desktop loads (and everything else)? I symlinked the second script to level 5 rd5.d, and it didn't go through. I haven't tried level 6.
View 10 Replies
ADVERTISEMENT
Dec 17, 2010
Can i make a .desktop file taht it executes autostart.sh script or any other script?
like xmonad.desktop od dwm.desktop?so that when gdm or any other gui login manager loads autostart apps in xmonad?
View 4 Replies
View Related
Jul 23, 2010
I just installed conky. What is the best way to get it to start when X loads? I am using KDE.
View 3 Replies
View Related
Jun 12, 2011
Every time i start Ubuntu, Firefox loads as soon as i log in. I've checked the list of start-up applications and it's not there, the option to automatically remember open applications is unchecked in both startup application settings and Ubuntu tweak. Is there some other place that has this setting or any setting that would cause Firefox to load on boot? Is there a setting in Firefox I'm missing?Basically how do i stop this from happening?
View 8 Replies
View Related
Mar 13, 2010
Ubuntu One wont start first time , it loads in the taskbar but never comes up.
View 9 Replies
View Related
Mar 31, 2011
If I do try to start a PXE Installation, the PXE Bootsystem loads the kernel, and
I guess it trys to start to load the initrd, but then it froze, i need to reset the computer. On the TFTP Server (aftp) I see that it trys to resend the initrd files and runs into a time out.
Ive the problem on 2 maschines, both with the same Motherboard (ASUS M4N78).
And the PXEinstallation of OpenSuSE 11.3 works fine, without any problems.
View 1 Replies
View Related
Aug 15, 2011
I have a problem with 'Starting File Manager' completeley filling my taskbar on startup.There could be 100 of them for all I know, as the taskbar ends up dividing into tiny slices for each.How do I find out what is causing this? Is there a log file I can check or some way to repair ubuntu off the Live CD?Recently installed some updates. Last night tried reinstalling Nautilus and Gnome (did that with commands from Ctrl Alt F1 ) but that has not helped.I'm running Ubuntu 10.04 LTS (64bit)Dell Inspiron 530I'm no Ubuntu / Linux expert, but I can try to find any info / logs required
View 1 Replies
View Related
Sep 4, 2010
So I have used ubuntu for about 2 years now, and this has never been an issue. Basically my trackpad(touchpad) on my laptop stops working when the wallpaper and other gui aspects load. The mouse works in windows and works in ubuntu for a few seconds while the screen is still black and gui is loading. So I know ubuntu does know it exists.
This problem occured after watching a movie and ubuntu froze up. Also while watching the movie I had the trackpad disabled, which might have something to do with my problem. (I have a hpdv6500 which has a button on the trackpad to disable it. I did no software tricks or hacks to do it). After resetting my computer the problem existed and persists every time I turn it on and off. So does anyone have any experience with such a problem or maybe how to reset the settings of the mouse?
View 3 Replies
View Related
Sep 10, 2010
The screen will show a blinking cursor for a few seconds. The keyboard works and a signal is found for the speakers. Then the 'Ubuntu' loading screen will show but at this point the screen would freeze and the keyboard will cease to function. At this point I have to reboot from the on/off switch. It can take several attempts before the desktop will load, or if I'm lucky, it'll load up first time. I've had this problem since 9.10. I'm not quite sure why it's taken me this long to attempt to sort it out.
View 6 Replies
View Related
Sep 4, 2009
Just recently installed fedora 11 64-bit on my laptop. Everything was fine until today. Everytime I boot up, it crashes right after the desktop loads. Everything is loaded except the area where the running programs are on the taskbar is just one big white block. And a bubble popup says "New SELinux security alert. AVC denial." but everything is frozen. Can't move the cursor or use keyboard. and nothing is happening on the screen. Completly frozen. Anybody have any ideas on what is wrong and how to fix it?
View 3 Replies
View Related
Apr 28, 2010
the Desktop background image, icons all load when i log in then fade out leaving me with a plain background, no image, no desktop icons and none of the keyboard shortcuts work,
View 2 Replies
View Related
May 16, 2011
i have a server program which accept multiple client connection and am using polling. like every 2 secs it will look to client whether any data is received after it binded. i have used setitimer but there is runtime error i got.. the server accept all client connection but doesn't execute any msg which client sent.
#include<stdio.h>
#include<stdlib.h>
#include<sys/socket.h>
#include<sys/types.h>
#include<netdb.h>
#include<unistd.h>
#include<pthread.h>
#include<string.h>
[Code]....
View 1 Replies
View Related
Mar 10, 2010
I had some command lines that I want to execute them with the server goes up. how can I do that?
View 2 Replies
View Related
May 4, 2010
how can I execute pppoe-start on Slackware during startup or reboot? What is the proper way? Should I add a script on rc.d directory?
View 2 Replies
View Related
Sep 30, 2010
I was attempting to setup Oracle 11g on my system using these steps: [URL] had to stop and shut down after the third "segment" of commands:
Quote:
root@luan-laptop:~# cd /bin
root@luan-laptop:/bin# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2010-20-04 21:33 /bin/sh -> dash
[code]....
View 2 Replies
View Related
Sep 27, 2010
I've just installed subversion.I need to create a script /etc/init.d/svnserve that will start at boot time.I want to use start-stop-daemon --start so I can track my process and eventually kill it using start-stop-daemon --stop.My problem is that I can't get it to work and the documentation shows no exemple.
I've replaced $DAEMON by the whole line: svnserve -d -R -r $REPO_ROOT and got -d is not an option.I'm not quite sure what to do at that point. If someone has some experience with start-stop-daemon it would be great.
View 2 Replies
View Related
Jul 26, 2010
I mount folders on the networked computers with this one line
sshfs stanathostname: HomeBase - sorry, can't use the url in my first post
How can I make this into a clickable icon and put it somewhere on the desktop or in the panel or somewhere?
It works from a terminal, and fuse.sh script I put it in works from a terminal, too, and it's executable, but none of my attempts to create a new "basic link to a file or directory" or a new "link to application" from KDE plasma panel had produced any result. At best I get a new terminal window with fuse.sh title that never closes.
Ok, sometimes it tells me that my "HomeBase" does not exist, which isn't true, of course, but I guess it doesn't exist in relation to the file executing the script.
HomeBase is a directory in a home folder, the link or command file is placed in Desktop, I think.
What I really want is a clickable icon and a script that would not only do the sshfs connection but also produce some kind of status message somewhere, like "initializing", "working" and "done, your remote folders are available in your "HomeBase" directory".
Could all of that be done in bash? When I look at bash tutorials I see lots of trivial stuff about variables and conditionals that I think is more or less common to any programming language, and I worked with php and javascript extensively.
But lets get the basic's first - how to integrate the sshfs line into the GUI environment in OpenSuse 11.3 KDE?
View 5 Replies
View Related
Dec 26, 2010
I have problem starting clamd. It's unable to execute setgroups()
/etc/group , /etc/password files are world readable
Here is output after starting clamd:
sudo clamd
ERROR: setgroups() failed.
Here is strace clamd output:
...
open("/etc/passwd", O_RDONLY|0x80000 /* O_??? */) = 3
fcntl64(3, F_GETFD) = 0x1 (flags FD_CLOEXEC)
_llseek(3, 0, [0], SEEK_CUR) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=1616, ...}) = 0
mmap2(NULL, 1616, PROT_READ, MAP_SHARED, 3, 0) = 0xb7f6d000
_llseek(3, 1616, [1616], SEEK_SET) = 0
munmap(0xb7f6d000, 1616) = 0
close(3) = 0
setgroups32(1, [120]) = -1 EPERM (Operation not permitted)
write(2, "ERROR: setgroups() failed.
", 27ERROR: setgroups() failed.) = 27
exit_group(1) = ?
Process 29002 detached
ls -al /etc/group:
-rw-r--r-- 1 root root 1013 2010-03-19 11:38 /etc/group
ls -al /etc/passwd:
-rw-r--r-- 1 root root 1616 2010-03-05 12:39 /etc/passwd
/etc/passwd:
clamav:x:108:120::/var/lib/clamav:/bin/false
/etc/group:
clamav:x:120:
View 2 Replies
View Related
Oct 27, 2010
I installed Ubuntu 10.10 64-bit, downloaded Adobe reader '.bin', from the terminal
It extracted and asked me for a installation location, to which i put [~]
It then finished the installation.
But when i click on the icon in the start menu or on desktop it fails to start, when i also click on a .pdf document it also fails to start!
View 2 Replies
View Related
Apr 8, 2010
I'm trying to setup a webcam surveillance system. Zoneminder didn't work for me regardless of how I tried configuring it, so I gave up and have now settled on a more primitive solution. I've currently got 6 cams and looping streamer (webcam screen grabber) I can grab a picture from each camera with about a 1 second interval. The previous picture is overwritten and using javascript to reload the image continuously in a browser I get the desired "movie" effect I'm after. The problem however is that as soon as I start using streamer on more than two cameras at once I run into this little snag:
Quote:
libv4l2: error turning on stream: No space left on device
ioctl: VIDIOC_STREAMON(int=1): No space left on device
I've been searching around and it seems I need to increase my shared memory. I've done that (tried many different values and "solutions") but the problem remains the same.
My setup is as follows.
1.php (refreshes updated grab from camera 1 every second in the browser)
2.php (refreshes updated grab from camera 2 every second in the browser)
3.php (refreshes updated grab from camera 3 every second in the browser)
etc
etc.
Is it possible to use something like php exec to execute the command that starts 'streamer' that grabs the image from the specific webcam (/dev/video1 for 1.php and so forth) when 1.php is opened in the browser. Is this even possible, or am I just dreaming?
View 2 Replies
View Related
May 28, 2010
I am using this cool gnome applet for desktop wallpaper management.
[URL]
but needs following input on this one
how can i create a simple right click menu entry on desktop so that i can rotate wall papers by clicking on that entry.
I am using GNOME and nautilus.
even a wall paper rotation shortcut key might help me at this movement,
at this point the only option i find is through right click on the icon placed in panel and then selecting next photo.
View 1 Replies
View Related
Jul 4, 2010
Have recently tried to start ubuntu with kubuntu-desktop, but as I reboot my computer kubuntu only shows the terminal after the login and I cant get my desktop back.
View 1 Replies
View Related
Apr 1, 2010
My Dell poweredge server running CentOS 5.4 and booting kernel-2.6.18-164.15.1.el5. All boot processes seem okay and the graphical screens for CentOS operate, but just before the desktop loads the screen goes blank and the arrow/cursor is being circled by small spheres. This remains indefinitely. While the arrow is being circled, here are the results of 'getinfo.sh device'
Quote:==================== BEGIN uname -rmi ====================
2.6.18-164.15.1.el5 i686 i386
==================== END uname -rmi ====================
[code]....
View 9 Replies
View Related
Jun 12, 2010
I am using Ubuntu 10.04 LTS. Two days ago I updated using update manager. After that I can not boot Ubuntu. When I trying to boot system showing message " Ubuntu is running in low-graphics mode Your screen, graphics card and input device settings could not be detected correctly. You will need to configure these yourself" But I can not configure it.I can not boot to 'recovery mode' also
/var/log/boot.log
Code:
fsck from util-linux-ng 2.17.2
/dev/sda6: clean, 304282/1680960 files, 2964945/6723194 blocks
init: Failed to spawn ufw pre-start process: unable to execute: No such file or directory
[code]....
Now I am using Live CD.
View 3 Replies
View Related
May 23, 2011
Is there, by chance, a fancy name to describe code that must be in a program but will never be executed? In one of my (Haskell) programs, I have some error-handling code that must be in the program to keep the compiler happy (due to the type checking). However I know that, due to the logical structure of the program, it is impossible for the code to be evaluated. I am curious if there is a technical name given to code that must exist but cannot be executed.
View 6 Replies
View Related
Aug 2, 2010
I've been able to get the right output that I need from sed, but how can I execute the string that sed actually outputs?
View 3 Replies
View Related
Jun 2, 2010
If I put
Code:
$r = exec('whoami');
echo $r;
into my php script, it works fine. However, if I put
Code:
$r = exec('myX11application');
echo $r;
it doesn't (to be precise, the script still works, but myX11application is not executed). Of course, scripts are run by user "apache", who doesn't have access to X11 server and doesn't even have DISPLAY variable defined.I installed virtual framebuffer Xvfb, created a small bash script:
Code:
Xvfb :2
export DISPLAY=:2
myX11application
and called it with exec from php, but it still doesn't run since it looks like Xvfb can't start if the normal X server is running (I need that for development purposes). The reported error from Xvfb is
Code:
(EE) config/hal: NewInputDeviceRequest failed (2)
Is there a solution to have php running your X11 applications with normal X server running?
View 6 Replies
View Related
Feb 11, 2011
I'm trying to compile a simple script for a ar71xx (bleeding edge /from snapshots) Openwrt router.I have previously compiled scripts for Kamikaze 8.09. I just copied the gcc file inside the SDK dir and used it without problems.
View 4 Replies
View Related
Apr 23, 2011
I'm doing a program and I want it to execute some code during n seconds. For example e put a command in the shell like this 'ls % 10' and the program should run the command ls for 10 seconds.I'm trying something like this:
Code:
pid = fork();
if(pid == 0) {
[code]....
View 2 Replies
View Related
Jan 13, 2011
I am executing a run command in a script after that i need to copy files into a directory which are the inputs for the run,on run a new shell is created and the remaining commands in the script does not execute,wot should i do to execute the remaining commands in the script??
View 2 Replies
View Related