Ubuntu :: Running Scripts At Start-up?
Mar 3, 2010
I'm afraid I'm having quite a bit of problems with getting some processes to run at start-up. There are two problems I'm having - the first is that my wireless won't work at startup until I go into terminal and use 'sudo modprobe b43', and the second is that I want to automatically mount a hard-drive partition. So far, I've tried two approaches.
The first is to create a shell file, wifi-fix.sh, containing the following text:
Code:
#! /bin/bash
modprobe b43
mount -t ntfs-3g /dev/sda7 /media/Documents -o force
This was put into /etc/init.d, and I used 'chmod +x wifi-fix.sh' to change the attributes. Then (if memory serves - it's been quite a while since I tried this method) I used the command 'update-rc.d wifi-fix.sh defaults'.
That didn't work, so I tried adding the last two lines of the above code into /etc/init.d/rc.local.
View 5 Replies
ADVERTISEMENT
Feb 26, 2011
I'm currently running SUSE 11.1 and trying to start Amavis so I can use Kmail. I have just run the latest updates via Yast. I'm getting the following when I try to start Amavis: /etc/init.d/amavis start returned 7 (program is not running):
View 1 Replies
View Related
May 16, 2010
I recently (yesterday) did a clean install of 9.1 (karmic koala) on my system. After having struggled with various video driver issues with my 7800GT and getting the proprietary nvidia drivers installed, everything seemed to be working fine. Today I ran some updates and now when the system boots, it crashes down to a text login prompt.
when I try to run startx from the command prompt, I get:
Code:
FATAL: Module nvidia not found.
(EE) NVIDIA: Failed to load the Nvidia kernel module. Please check your
(EE) NVIDIA: system's kernel log for additional error messages.
(EE) Failed to load module "nvidia" (module-specific error,0)
[Code].....
View 1 Replies
View Related
Apr 24, 2011
I was looking for a way to send email to the outside world and installed mutt, and noticed that when my pc starts port :25 smtp is up, so I figured that I could send email to the outside, after a few seconds it shuts down.... what could that be? and do I need to install a full flesh mail server in order to send outbound email?
View 6 Replies
View Related
Apr 29, 2011
I upgraded to NN I am running Nvidia 270 driver The driver works. As you can see, it is running classic. At login I select ubuntu not classic
View 7 Replies
View Related
May 14, 2011
I am relatively new to linux but i need to run a command in the terminal so i can prevent wireless power save from happening every time i switch to battery power. I dont really want to go into the terminal every time i switch to battery mode so i want to be able to launch this command upon start up:
Code:
sudo iwconfig wlan0 power off
View 2 Replies
View Related
Mar 16, 2010
The hd starts running on it's own and I check the log files and find this:
Code:
Mar 16 21:28:47 ubuntu kernel: [16953.273544] VFS: busy inodes on changed media or resized disk sr1
Mar 16 21:28:47 ubuntu kernel: [16953.293541] Buffer I/O error on device sr1, logical block 26827
Mar 16 21:28:47 ubuntu kernel: [16953.293550] Buffer I/O error on device sr1, logical block 26828
Mar 16 21:28:47 ubuntu kernel: [16953.293619] Buffer I/O error on device sr1, logical block 26827
Mar 16 21:28:47 ubuntu kernel: [16953.293623] Buffer I/O error on device sr1, logical block 26828
Mar 16 21:28:47 ubuntu kernel: [16953.293645] SQUASHFS error: sb_bread failed reading block 0xcb75
Mar 16 21:28:47 ubuntu kernel: [16953.293649] SQUASHFS error: Unable to read fragment cache block [32d1bc4] .....
Mar 16 21:30:47 ubuntu kernel: [17073.066145] Core dump to |/usr/share/apport/apport pipe failed
View 4 Replies
View Related
Jun 12, 2011
I'm running Ubuntu 10.04 LTS and I have installed openssh.I need to find a way to configure it so that it never start up when I boot into my computer. The reason is: I haven't had the time yet to learn how to set it up and configure it correctly. Until that time comes I don't want it to run at all.Every single time I boot into the system and I have to do that first before I can even do what I really need to on the computer. It's annoying.Does anyone know the best and least complicated way to just make it not run at all until I'm ready to set it up properly?Also how to check what is running on my system after I boot up so I can double check, after making the changes, that it worked right.
View 9 Replies
View Related
Jan 11, 2010
I have ubuntu 9.10, and installed the latest lampp with default options. Apache/Mysql/Proftpd would start and stop fine. I then did:
...which I got from here...[url] Although I'm pretty sure I was never prompted for the mySQL password. At any rate, now mySQL will not start (Apache and ProFTP are OK). Where can I start debugging this? Where is the conf file for mySQL?
View 1 Replies
View Related
Apr 26, 2010
Since /etc/rc2.d/S19mysql does not exists anymore, and then init.d/mysql uses /sbin/start, I am unable to use mysql server anymore: me@mycomputer~#start mysql [ret] ...... for hours this command never returns so that ^C aborts...
me@mycomputer~#ps axw |grep mysql ( no results, no mysql!!! ) me@mycomputer~#stop mysql [ret] no returns either!!! This upstart [start|stop] thing seems a total failure for mysql!!!
View 9 Replies
View Related
Oct 3, 2010
i configured the build-essential(for c compilation). and I am unable to get the output.This is what i do.(check the image) Since i wanted to copy the output from one of the tty's I tried GPM service. But i dont know how to copy it. Some says click the middle mouse button and it will copy but when i do some code start running on the console. no copy paste. How can i run JAVA programs.
View 9 Replies
View Related
Apr 16, 2010
I know I have to count how many instances are running: ps x | grep apache2 | wc -l result if it's running: 2, or else: 1 I also know there is a command called test that I could use to perform the verification, but I don't know how to use test with wc
View 3 Replies
View Related
Jun 26, 2010
I have been experimenting with KDEs Remote Desktop connection facility and now every time I start the computer a dialog box opens called 'Invitation - Desktop Sharing'. How do I stop this program running on start-up?
View 1 Replies
View Related
Nov 2, 2009
Can you run an application automatically when you load linux? In this case it would be VMPlayer?
View 4 Replies
View Related
Oct 18, 2010
When I open a terminal and start the 'top' command to view the running processes, in the summary view I get 4 users. I guess that in addition to my account the root runs in the background but who are the other 2??
View 1 Replies
View Related
May 19, 2010
I want to start servers which are running on my pc with one shell script.
what I wrote is.
#!bin/sh
cd /home/HUNT/server1
gnome-terminal
sh script/server start_with_output
[Code].....
Result I got is:
A new terminal opened with current directory as /home/HUNT/server1 and server started running.
What I didn't get: second terminal and second server were not running.
View 6 Replies
View Related
May 26, 2010
after executing the commands
1. ./startup.sh
2. tail -f ../logs/catalina.out
the following error comes on the terminal
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1245)
[code]....
View 5 Replies
View Related
Aug 25, 2010
I configure my apache and can run http://localhost. There "I see it works!" but if I try to stop apache I get message that httpd is not started. I run
apachectl start - ok
but when I run apachectl stop it says "httpd (no pid file) not running"
I need to stop apache, because this is my dev machine and I want to start apache only when I make changes to my site. I am with slackware13.
View 4 Replies
View Related
Jul 23, 2011
<edit>never mind dump the ;'s and it all works fine</edit> I'm trying to write a bash script that will check if XMBC is running if it is then do nothing else start it then do some other things.This is the start
Code:
#!/bin/bash
DISPLAY=:0.0
[code]....
View 2 Replies
View Related
Feb 11, 2016
I have just installed debian-live-8.3.0-i386-lxde on my old hp530 32-bit laptop
Everything went well but every time I start my laptop I get following message which lasts for approx 1m 20s ...
Code: Select allLoading, please wait...
fsck from util-linux 2.25.2
fsck error 2 (No such file or directory) while executing fsck.ext4 for /dev/sda1
fsck exited with status code 8
[ 13.941532] systemd-fsck[145]: DEBIAN8: clean,140919/640848 files, 978992/2560942 blocks
[ ***]A start job is running for LSB: Raise network interfaces. (1min 20s / no limit)
with the 3 asterisks above moving back and forth.
... then it boots OK into operating system. so apart from the delay everything is working ok.
View 14 Replies
View Related
Jun 10, 2011
Last time I installed the ATI graphics driver on my PC, it was'nt working fine so I uninstalled that driver. I restarted the PC after uninstalling the driver but then, when PC boots and start running the services the screen just hangs and I don't get into the desktop.
I tried to run the xfs service using service xfs restart and also gdm service using service gdm restart, but in both the cases it shows that Unrecognized Service. So, I think it means that the package for xfs and gdm service is not available in my PC. Is that so?
I tried to get into the desktop by running startx but it gave the following error :-
Fatal Server Error: no screen found
consult the fedora project support at [URL] for help.
check the log file at "/var/log/Xorg.0.log" for additional information.
giving up
xinit: connection refused (errno 111): unable to connect to X server
xinit: no such process (errno 3): server error.
View 1 Replies
View Related
Feb 7, 2010
I am using Sphinx search on my webserver and it quits after a certain amount of time leaving my search page broken.Here is a bash script that I want to run every 10mins via cron:
Code:
#!/bin/bash
if pgrep searchd | grep "[0-9]"
[code]...
View 24 Replies
View Related
Mar 7, 2010
I installed LAMPP a couple of weeks ago and was working fine. Today when I try to start lampp, it will only start MySql and ProFTPD. It says "XAMPP: Another web server daemon is already running." How can I find out where this other server is located and stop it?
View 2 Replies
View Related
Jan 12, 2011
I am setting up a CentOS server that has no screen connected, and only has 2 Tesla cards. I have created a minimal xorg.conf and xinitrc file that doesn't load mouse or keyboard, and only creates two screens, one for each card at 320x200x24 bit. This is so I don't waste VRAM on a framebuffer I can't see.
I modified the xinitrc to just load tdm and nothing else as GNOME is a RAM hog. I am then using this setup to render stuff offscreen using OpenGL into FBOs which I read back to CPU and process. Currently for development I just run startx& when I login. I now want to know how to set x server to start automatically at boot. The CentOS docs say that it will try to load the GNOME login manager. The thing is that I don't want a login manager as it is useless as I login remotely via SSH.So:
1 - how to enable automatic x server in CentOS (im used to Ubuntu so not sure how to do this on Red Hat variants)
2 - leave x server running without starting login manager
View 8 Replies
View Related
Jul 17, 2010
I have been given Toshiba Tecra S11 with windows 7 running on it to install Ubuntu 10.04. Toshiba has a bunch of utilities running on the machine set up as dev/sda1, dev/sda, dev/sda3 and dev/sda4. I do not know where to start because of these existing partitions.
View 2 Replies
View Related
Feb 21, 2011
I recently dist-upgraded from Debian 5 to 6 (squeeze). Since then, the xclock I run from my window manager's start script isn't displaying correctly (it displays only a "0"). The thing is, if I run the same command in my start script in my terminal, it works just fine, as it has always done...
I use this rather "old" X applications because I like my programs simple/not buggy/fast, and it's resulting a rather annoying problem (being that apparently nobody else has it...).
All other programs in my start script (gnome-terminal, emacs, xmodmap, etc) are working with no problems whatsoever.
My window manager: sawfish
Command to run xclock in my start script:
Code:
xclock -digital -brief -geometry -0+0
Attached picture:
Top: xclock initialized by start script
Bottom: xclock initialized by terminal
View 2 Replies
View Related
May 21, 2009
I'm trying to get CUPS running on a Gentoo install. When I try to start it it complains about libgnutls.so.13 not existing. I googled it and updated gnutls to the latest version and tried a sym-link to libgnutls.so.26.11.5, all to no avail.
View 2 Replies
View Related
Apr 25, 2011
i want to write a script that will start or stop the GUI respectively. This is what I have so far...
[Code]....
I know the second line is completely wrong, but thats where I'm trying to go. How do I write a "if the GUI is running then..." command?
View 2 Replies
View Related
Jan 15, 2010
I went from 32bit Ubuntu 9.10 to 64 bit 9.10 So, originally I had 3x1500 gig hds in RAID 5 (mdadm) worked fine. Now I installed Ubuntu 64 bit, but when I go ti Disk Utility, it sees the previous RAID array but says: Not running, not enough components to start. ALl the hard drives show themself Can you not do 32bit to 64bit or something...?
View 1 Replies
View Related
Jun 12, 2010
The desktop search has stopped working in Gnome.I get a message that says 'Search Service not running' with a button that says 'Start Search Service'.When I click the button nothing happens
View 1 Replies
View Related