Fedora :: Make A Simple Startup Script
Apr 27, 2010
make a start up script so that it executes this command: cat /proc/acpi/battery/BAT1/state I managed to execute it writing command to .bashrc, but every time I open terminal it starts like this:
[Code].....
I need this command on start up, so that my battery meter starts working properly. For some reason, if the command is not activated, gnome battery meter is showing that battery is charging even if I am not on AC power. If there is any other way to fix this without making script I would be glad to hear.
View 4 Replies
ADVERTISEMENT
Mar 24, 2011
trying to make a startup script that executes a simple php script at boot. The stipulation is that it must be run after fstab is processed because it requires access to a volume that fstab mounts. As it is, it doesn't seem to be running properly at startup, and I suspect that it is simply running before the volume is mounted. The script does not need root access. If I run it once I login, it works fine.
Also, is there a way to determine the output of a startup script?I am have configured a bash script called module.sh that cd's to the scripts directory (in the external volume) and then executes the script. I didn't forget the ampersand after the php invocation. I used update-rc.d module.sh defaults to configure it.
View 1 Replies
View Related
Sep 21, 2009
I try to play a simple movie in avi format. The codec is called AC-3. I tried several tutorials, now i stuck with a "local file conflict between packages" when i run the auto install with movie player. I try now VLC Player ... With VLC it works! Open from the Administrator panel - Add or Remove Software than search for VLC and tick the main stuff and install.
View 14 Replies
View Related
Apr 10, 2011
How would i make ubuntu just execute this
Code:
deluged -p 10002 -c ~/delugebig/ at startup? Just print it as if i myself would print it in the termial.
View 5 Replies
View Related
Jul 30, 2010
All of a sudden, the startup (time from GRUB to Login Screen) has been quite slow. I recently installed a LAMP server. I've tried disabling httpd and mysql but it didn't seem to have any effect. I've attached my dmesg output below.
View 7 Replies
View Related
Nov 21, 2010
I made a simple proxy using netcat and it works great, the idea is to make the server and client communicate through two named pipes, file1, file2.
$ mknod file1 p
$ mknod file2 p
$ nc -l -p 12345 0<file1 1>file2 &
$ nc 192.168.2.118 80 1>file1 0<file2 &
The problem Im facing is that I cant seem to intercept the data going between the client and the server. I want to be able to have the data coming to the server in a variable, manipulate it and send it to the client, and the other way, have the data coming to the client in a variable, manipulate it and send it to the server.
Im running on an embedded device where tee, awk and many other commands are absent. how can I redirect the data to a variable, manipulate it and pass it to the other side, that is the question.
View 6 Replies
View Related
Jun 6, 2010
I am trying to make a simple vector test program, but i can't compile it. Here is the code:
Code:
import java.util.*;
class Vec {
public static void main(String args [ ]) {
[Code]....
View 2 Replies
View Related
Apr 3, 2011
How to made a simple website in linux using bash scripting.
View 3 Replies
View Related
Feb 24, 2011
I'm trying to make an extremely simple script named 'findm' in my /usr/local/bin that looks like this:
Code:
#!/bin/bash
find -mindepth 1 -iname '*$1*'
As you can see, I want to be able to run 'findm some_argument' while in a shell in any directory. The problem I'm having is that this script only works when I'm in my top most home directory. Any directory lower than that and the script returns no results.
View 2 Replies
View Related
Feb 21, 2010
First off, I'm completely new to bash scripting so forgive me if I make any egregious errors. I'm trying to make pop-up reminders for the simple calendar program when. This is what I have so far:
Code:
#!/bin/bash
# set the time format for when
#current="$(date +%I:%M %p)"
current="$(date +%-l%p)"
today=~/.when/today
[Code]....
When I run the script, gxmessage pops up and displays the correct information, but it does so for each line in "~/.when/today" that contains a time that matches the current system time (which would be three pop-ups at 10PM, according to the example). I want it to display the information only once. How can this be accomplished? Is a while loop even the right job for this?
View 8 Replies
View Related
Jul 5, 2011
I would like to unzip a simple PHP code files, to have a online PHP contact / phone book. Simply, slow, and not database oriented over complicated setups into settings. I have a PHP / web provider (free), not apache. WITHOUT SQL (like before it may exists) something like this [URL]
View 14 Replies
View Related
Oct 7, 2010
i'm a college student studying pc programing, and i was given today a special work and i have to program using miranda... which i've never used it >.< can anyone give me a hand to where to download, how to compile, and a simple tutorial for making a simple program or something?
View 3 Replies
View Related
Mar 16, 2011
I am trying to make an application server that would contain simple ones like edit, openoffice, gimp, so on and so forth. I know how to access these using ssh but what I want is that the application runs on that server as it already does, but to open local files and save them locally.
View 7 Replies
View Related
Sep 4, 2010
How do I make something start on boot? I remember there being a command.. nano something, can anyone tell me?
View 3 Replies
View Related
May 8, 2011
I edited some file in /etc and it stopped loading, but after upgrading to natty it loads again. I'm already starting X manually from /etc/event.d/tty7, but the X started from gdm is the one I see on the screen. I don't have a keyboard, so I can't switch to the console with the right X after startup. Is the only option to deinstall gdm, or is there a way to make it not start?
View 2 Replies
View Related
Jul 30, 2010
I am using Ubuntu as my os.I have read that we can change the startup message.So i go to etc directory as root, and found file called "motd" and try to open it.But it says "The Link "motd" is Broken. Move it to Trash?"This link cannot be used, because its target "/var/run/motd" doesn't exist.So how can i make startup message.why i couldnt open that file
View 1 Replies
View Related
Feb 21, 2011
I have a dedicated server which runs a game server. On that dedi, I had Debian installed, and I wanted to have graphical access to it so I installed Gnome and nxserver. I want the game server to run automatically when the server boots up and have it appear in a console window when I connect to nxserver. So I added it in the Startup list by going in System > Administration > Session.
My problem is that the program doesn't start when the system boots up, but only when I connect to nxserver. So I assume it is something like gnome not starting up or opening a session until I open one remotely or something such.
But is there anyway to have that game server start in a console window when the system starts up? I tried using init.d but the problem is that it doesn't open any window, and I need to interact with the server through the console. What can I do?
View 5 Replies
View Related
Mar 17, 2011
I am trying to make a file run at startup (e.g. runlevel 5). Here is what I done;
Copied file to /etc/init.d/rc5.d with these permissions:
-rwx------ 1 root root 274 Mar 17 08:33 noip2.sh
Contents of this file is:
Code:
#! /bin/sh
# . /etc/rc.d/init.d/functions # uncomment/modify for your killproc
case "$1" in
start)
echo "Starting noip2."
[Code]....
And the file this is supposed to run is in /usr/local/bin/noip2 with the permissions as:
-rwxr-xr-x 1 root root 80431 Mar 17 08:16 noip2
However, this didn't worked for me. What can I do?
Edit: I can run shell file by invoking it with terminal. So there is no problem with the file
View 9 Replies
View Related
Jun 22, 2010
I want to run /home/myuser/go.py How do I make that run in the background, everytime my linux machine boots up?
View 3 Replies
View Related
May 3, 2010
I run Ubuntu 10.04. For some reason, MySQL won't start on startup. How do I make it run on startup? I installed it by installing LAMP using tasksel and did everything according to: [URL]. Also, I have another problem: When I try to start/stop/restart mysql in the terminal, the terminal will not give me any prompts after entering the command. E.g., after entering "sudo service mysql start", nothing will happen. Even after waiting for 30min, nothing happens.
View 9 Replies
View Related
Sep 17, 2010
I would like to put my ubuntu system (the one on my partition) in a usb drive, so that way I can take it everywhere I go. The reason for this is because all of the programs I have and the configuration I currently have in my ubuntu (I should say "macbuntu"). That is:
burg boot loader (I probably don't need this one!)
x system plymouth theme || also windows 7 original plymouth theme
mac4lin 1.0 aqua GTK theme and emerald theme
mac ultimate icon theme
mac4lin 1.0 cursor theme (working even with compiz)
gnome global menu
compiz packagers ppawith all the extra stuff
telepathy ppa for empathy, having all the extra stuff working
also win2-7-pack_v-9.1
And lots more stuff!
I don't want my personal documents though (text docs, music, videos, pics 'maybe few pics'), just configuration files and programs. Can this even be possible?...
View 2 Replies
View Related
May 21, 2010
i try to make wget download automatic in startup in ubuntu
View 8 Replies
View Related
Sep 12, 2010
I know usually, on other systems, skype automatically starts. But not on my Ubuntu. How to make it to start?
View 3 Replies
View Related
Oct 1, 2010
I have enjoyed setting up a live USB stick to boot Ubuntu from and it works very well but I can't make my settings persistent. The option to do that in Startup Disk Creator is greyed out, the Stored in Reserved Extra Space is just not available.
View 2 Replies
View Related
Mar 14, 2011
I have Ubuntu 10.04 LTS installed on my HP Compaq Presario CQ60. Unfortunately the screen is busted & I'm using an external LCD. It boots directly onto the LCD, but the resolution is 800x600 by default, the only other option is 640x480. I'm assuming its using the VESA drivers for the graphics. I've managed to temporarily fix the resolution to 1024x768 by running the following in terminal for every session:
[code]...
I've added a document to /etc/init.d so that it may be loaded on startup, but it does not seem to work.
View 9 Replies
View Related
Jun 5, 2011
I have recently installed Lubuntu 11.04 on an old system. the problem is that it hangs at startup when tries to "Starting Bluetooth". I have searched through this forum and the web and it seems that the problem has something to do with my TV Card. But I can't remove the card because it is a part of my Graphic Card which is an "ATI Radeon 8500DV All In Wonder". I can start the machine with Lubuntu Live CD, and so I thought that maybe I can change a value in a file from installed Lubuntu through Live session that makes the Bluetooth Service disabled at startup.
View 3 Replies
View Related
Jul 17, 2011
I tried to make script startup when booting but no response
This steps that i did, i made it in my pc and work but in another pc can't work
That i did in details
I don't know why can't see this script as start when booting
View 4 Replies
View Related
Aug 27, 2010
I'm trying to execute script (java,php) on startup....before this we set it in /etc/inittab and it works find, but lately i found that the php script not startup as usual after we do yum update( although java script still run normally). code...
Another thing i want to ask is, if i have more scripts to run at startup, what should i do becoz there is limited terminal that i can use.
Someone told me that i can:
1)-put the script in /etc/init.d such that i can add it with chkconfig and run as service (not sure how to do this in details also)
2)-add a script in /etc/rc.local (not sure how?write what script)
View 6 Replies
View Related
Aug 31, 2010
I have mounted a shared folder in Ubuntu in VirtualBox, but I have to remount everytime I restart. how do I make this command run (for mounting) on startup or make it permanent?
View 2 Replies
View Related
Feb 27, 2011
So lately I've been wanting to mess around with lightweight window managers. So installed both awesome and scrotwm from synaptic. Apparently these window managers need a startup script in order boot some applications on startup.
I've tried a few, but everytime I change the file *desktop, these desktop environments disappear from the options on GDM.
View 3 Replies
View Related