General :: Startup Script On Ubuntu That Only Runs Properly When Ran Manually?

May 10, 2011

I'm trying to run a script on session start, so I added it to System -> Preferences -> Startup Applications.The script does run, but some of the commands inside don't appear to run at all. If after startup I open a terminal and run the script manually, it runs fine!

#!/bin/bash
if [ "$DISPLAY" == ":0.0" ]; then
tmux new -s Phys ;

[code]....

View 1 Replies


ADVERTISEMENT

Ubuntu :: Suspend And Hibernate Don't Work Properly - Forced To Manually Reboot

Mar 18, 2010

When I put my computer running Ubuntu 9.10 into suspend or hibernate the screen goes black with a little flashing underscore in the corner and when I try to bring the computer out of suspend or hibernate nothing happens and I am forced to manually reboot.

View 1 Replies View Related

Ubuntu :: Sshd Starts Manually But Not At Startup?

Dec 27, 2010

Not sure if this belongs here or in the upgrade forum but since the upgrade went OK I figured I would post this here. I come from a RedHat background and am not too familiar with the Ubuntu/Debian way of dealing with service startup so this may be simple. I was running 10.04 LTS on a Sony Vaio and did a distribution upgrade to 10.10. When running 10.04 LTS the sshd daemon started on boot and I was able to ssh into the PC. Now that did the update I can start the daemon using the command "sudo /etc/init.d/ssh start" but it doesn't start when the systems boots.

I even tried creating the entries in the /etc/rc.#.d directories like this:
/etc/rc0.d/K20ssh -> ../init.d/ssh
/etc/rc1.d/K20ssh -> ../init.d/ssh

[code]....

View 5 Replies View Related

OpenSUSE Install :: 11.2 W/ KDE 4.3 [i586]: Editing The Startup Script Manually?

May 15, 2010

I'd just installed a *nix antivirus called Avrira Antivir (from downloaded script & installation files), but it completely froze my system when I tried to start it, and the system freezes at the login screen; which is probably because I selected the option of running it automatically upon startup...So here's the deal: I know that I can run a live Linux usb to mount my current fs, then edit the file(s) that load the Avira processes on startup, but I don't know what these files are, much less which directories they are in!

View 8 Replies View Related

Ubuntu :: Launcher For Quake That Essentially Runs A Shell Scripts That Runs Quakespasm With Certain Options?

Oct 13, 2010

I have a launcher for Quake that essentially runs a shell scripts that runs quakespasm with certain options. Is there a way to add it to AWN?

View 6 Replies View Related

Ubuntu Installation :: 11.04 Startup And Shutdown Screens Do Not Display Properly

May 2, 2011

The startup and shutdown displays are a series of vertical black and white lines, and the text displayed on them appears as more or less white blobs. Otherwise, the displays when 11.04 is running are fine, but this startup looks so naff it would be nice to change it so that the diplays can be read. I would hate to demonstrate Ubuntu to someone and have to explain such a display.

View 7 Replies View Related

Networking :: Detect If Eth0 Has Been Enabled Properly On Startup?

Mar 16, 2011

building a box with no other interface than tcp/ip. now in case something goes wrong when changing the /etc/network/interfaces via ftp and when rebooting the system cannot bring the interface up I would like to be able to detect it and replace the interfaces file with a default one stored on the system.

View 1 Replies View Related

Software :: Samba Refuses To Start On Startup - But Will Start Manually

Apr 14, 2009

I just moved my / from sda1 to an ide drive, hde1. i dont see how this could have caused any of these issues, but it did.

First my network card failed to start. i added a line in my rc.local file (where i put all of my additional programs, etc i want to start):/etc/rc.d/rc.inet1

The above now starts my network card with my static ip configured. dhcpcd also worked but i wanted this static.

Now samba will not start. i have the following line in my rc.local: /etc/rc.d/init.d/samba start

This used to work just fine. at first i thought that samba may be trying to start before my network card gets an ip, but the line is *after* the network startup line. just to make sure, i made an additional script called startsamba which contained a sleep 60 followed by samba start, to delay the startup of samba even further.

The message samba reports is very vague, something like failed - core dumped. most of the core dump log is garbage characters, but here is the beginning which seems like it might contain some info:

Code:

ERROR: Can't log to stdout (-S) unless daemon is in foreground (-F) or interactive (-i) after the system starts, i can drop to a console and type "/etc/rc.d/init.d/samba start" and the service starts just fine. i've also tried starting samba manually with "smbd -d" which also produces the core dump when started from rc.local, but not when started from a console after startup.

View 8 Replies View Related

SUSE :: Unable To Boot Properly - System Is Unable To Read Startup Information From Hard Drive

Jan 19, 2011

I am running the latest suse release downloaded directly from their website. I ran the installation after buring the dvd and everything seemed to be working fine. after the installation i ran updates and used it for a little bit. When i shut it down that night and went to restart it I got an error that stated the OS wasnt there. I then went through the installation and everything and it retained the information from the installation before (web history etc.) but for some reason every time I reboot or shut it down the system is not able to read the startup information from the hard drive and will not come on without me re installing it.

View 9 Replies View Related

General :: Ubuntu Runs At 50-60% CPU?

Jul 16, 2010

I installed Ubuntu Hardy Heron about six months ago, and it has gradually slowed down, and CPU utilization has crept up to the 50-60% range. The DEV folder contains a large number of similar files - TTY0 through TTYZF or PTYA0 through PTYZF. I suspect that something is not configured right, but, I don't know where to look.

I connect to the internet through a G4 Wireless Transceiver connected to my ethernet port on an IBM Think Center 8187.

View 6 Replies View Related

General :: Ubuntu 10.10 Runs Only In Safe Mode Session

Mar 28, 2011

I tried to install Ubuntu in my P3 computer so i can play with it, everything works fine but not after i reboot it. Now i got the user and password window on the desktop and drop-down-list of sessions, language, keyboard, date & Time and Shutdown button at the bottom.

Drop-down-list session:
Recovery Console
Ubuntu Desktop Edition
Ubuntu Desktop Edition (Safe Mode)
User Defined Session

With these 4 options, the third one which is the safe mode is the only option I was able to get through. Others are just desktop without toolbar or anything, right click with folder option are working though. Recovery console is just the CLI window but I don't know anything about Linux commands.

View 7 Replies View Related

General :: Cron Job Runs Every 30 Secs?

Jul 24, 2011

The problem is I need the php program to send member email confirmation which contains a confirm link. Run every min may still make the member wait. So I like to make it to run every 20 or 30 secs.

I don't want to put the code to send email on my sign up page as that's no good.

But I don't want to put a sleep 30 sec on my php script and going on loop. If it failed in the middle then it may wait abit to start.

What can be done to achieve my goal and what's the best way?

Making a php script to run as a daemon process? Is that possible and okay?

View 9 Replies View Related

General :: Name Of Memory Filesystem Runs In?

Feb 7, 2011

Once I deleted a log file and recreated it. After I did so the new log file was not being written to. I was told that it is because the file I deleted is still running and being used in memory. What is the memory portion called(such as user space) that the filesystem run in?

View 5 Replies View Related

General :: Grep The .img, But When Do It Runs Out Of Memory?

Feb 22, 2010

I am attempting to recover a deleted text file. I used dd to make an image of the sectors on the hard drive which contained the data. Now, since I am not getting good results with foremost, and know all of the lines I'm looking for contain "Style", I want to grep the .img, but when I do it runs out of memory. I have tried the grep option -D, set to skip, and tried adding a 3GB swap to account for the 2.7G image. It still "exhausts" it's memory, and it seems to happen really quick now.this is the output of ulimit -a

Code:
root: $ ulimit -a
core file size (blocks, -c) 0

[code]....

View 12 Replies View Related

General :: Why Is Vim Not Remembering Position In File Between Runs?

Dec 3, 2010

I'm using vim 7.2.330 on 64 bit ubuntu 10.04, sometime in the last week every time I reopen a file it places the cursor at the top of the file. I can see in ~/.viminfo where it's saving the last position used, but it doesn't seem to be honoring it.

View 1 Replies View Related

General :: Diary Program That Runs In The Terminal?

May 1, 2011

Is there a diary program for Linux that runs in the terminal?

View 1 Replies View Related

General :: Sudo Su Runs Without Password Prompt?

May 25, 2011

So here's the problem. We've got the /etc/sudoers file set up so that users can run commands from /bin like "cat" or "mkdir" without entering a password. The problem is that the "su" command is also in /bin, so if they enter "sudo su", it gives them root access without a password. Here's the /etc/sudoers file:

Defaults targetpw
%users ALL=(ALL) ALL
root ALL=(ALL) ALL
support ALL=(ALL) NOPASSWD: /sbin/, /bin/, /opt/, /etc/init.d/, /elo/
support ALL=(ALL) NOPASSWD: /usr/bin/mysql

Is there a way I can deny /bin/su while still allowing the rest of the /bin commands?

View 1 Replies View Related

General :: How Come No Other Distro Runs Andriod Applications

Dec 27, 2009

I found this Is the Success of Google's Android a Threat to Free Software? (thanks to linuxtoday.com) and in the end it says

Quote:

Worse, if efforts to enable Android apps to run on distros like Ubuntu succeed, then we may see closed-source software being used on the free software stack there, too. Ironically, Android's success could harm not just open source's chances in the world of mobile phones, but even on the desktop.

I don't see how this is a threat too Linux but that's not why I'm here. I've never understood why some say that Linux is too fragmented for developing games and other applications. I mean Savage 2 comes in one Linux(.bin file) version and it runs on most of the distributions. What is the difference between all the package formats (like .rpm and .dpkg). Why won't a application run on all systems with the Linux kernel on it? Can someone with more computer and Linux knowledge please explain this to me?

View 5 Replies View Related

General :: To Spawn A Task That Runs For Hours?

Nov 2, 2010

I have been doing this for quite sometime now, yet lately I wonder if this is what everybody does...I have a task that will run for hours. In order to not to interrupt that task when I logoff for the day, I issued the command:

Code:
at now 'sh ~/a-long-task'
Is this what everybody else does?

View 2 Replies View Related

General :: AWK Runs In Command Line But Not In Script?

Mar 3, 2011

I am trying to execute an awk script which is called by a shell script. The result is that it always responds with << ^ invalid char ' ' in expression >>

As I do not have command line access, I use a php script as go-around.

On the command line,

Code:
awk --version
gives the following output:
Code:
Command: awk --version
GNU Awk 3.1.3

[Code].....

View 4 Replies View Related

General :: Burning From SimplyMEPIS As It Runs Live?

Apr 11, 2010

I'm able to access my USB-drive (from which I'm running MEPIS right now) and my C-drive which has all my Windowsy stuff on it.I tried putting the (bad burn of a) CD-R into the drive and it was also recognized, but when I put a blank DVD-RW into the drive, nothing happens, and when I try to create a device-link, it tells me that medium does not exist

View 6 Replies View Related

General :: Setup A Cronjob It Only Runs If Logged In?

May 6, 2010

I wrote this little script and it runs very well, however when I setup a cronjob it only runs if I am logged in. I would like to have this script running even when I am not logged in. At the moment it runs but only when I am logged in. I logged as denis and in terminal (su root) and edited crontab as shown below, what do I need to change or setup to have this script run when no-one is logged in the computer. I run Fedora 12 (64 bit)

backup script:

cd /home/denis/Documents
tar -czvPf /home/denis/Backups/docsbackups_$(date +%Y%b%d_%HH%MM).tar.gz /home/denis/Documents
# above line will produce file with name in this format "docsbackups_date&time.tar.gz" in the /home/denis/Backups folder

[Code].....

View 4 Replies View Related

General :: X Runs Fine, But Three Fatal Errors?

Feb 10, 2011

I just installed Arch (x86_64). I am trying to setup Xorg. I have not installed a DE or WM yet, I just want to make sure Xorg is 100% first.

I had to edit the xorg.conf myself to direct it to my Intel graphics driver, but now it seems to work perfectly.

Except after exiting X, my terminal reads:

Code:
xinit: connection to X server lost

waiting for X server to shut down xterm: fatal IO error 11 (Resource temporarily unavailable) or KillClient on X server ":0"
XIO: fatal IO error 4 (Interrupted system call) on X server ":0"
after 1011 requests (1011 known processed) with 3 events remaining.
xterm: fatal IO error 104 (Connection reset by peer) or KillClient on X server ":0"
I'm pretty new to Linux and have no idea what this means! But I'm assuming it's not normal, because it says 'error'.

View 3 Replies View Related

General :: Enough Memory - GIMP Slideshow Runs Very Slowly

Jan 2, 2010

Just wiped Windows on a Dell Inspiron 8000 and installed Ubuntu. Most things going well but ran GIMP today and noticed the dissolve very slow. Think I might need more memory? I typed $ free -m and got this:

total used free shared buffers cached
Mem: 497 483 14 0 15 215
-/+ buffers/cache: 251 245
Swap: 839 43 796

I take this to mean I have 500MB of memory but most of it is used up on something? Does this explain why opening new windows incurs a lag of a few seconds and my GIMP slideshow runs very slowly? I was a pretty good Windows user but know very little about Linux.

View 8 Replies View Related

General :: Lastest Apache Server That Runs On Red Hat Enterprise 5.4

Jun 9, 2011

I have a box that is Rec Hat Linux 5.4 with Apache server 2.2.3 . I'm told there are multiple vulnerabilities in Apache httpd, that version 2.2.16 or later is better. However, I did a package update this week and 2.2.3 is where I sit. Is there a newer version that will run or a patch for 2.2.3? Upgrading Red Hat is not an option.

View 3 Replies View Related

General :: Use For A Web Interface That Runs Bash Scripts In Bckgrnd?

Jun 7, 2010

I have a set of bash scripts which I need to execute through a web-interface. So that they can be executed remotely, once the web-interface is hosted on a server. Since this is the first time I am trying something like this, I am not sure what language or technology to use for such work. From my knowledge PHP could be a good fit. But not really sure.

View 1 Replies View Related

General :: Start Debian It Runs Fine Until It Gets To The DHCP Part?

Feb 9, 2010

Whenever I start debian it runs fine until it gets to the DHCP part.It completley stops and spends like three minutes with stuff like

Code:
DHCP Request on port 57 interval 4
DHCP Request on port 57 interval 14

[code]....

View 3 Replies View Related

General :: Rsync Runs Back Up But Process Is Already Running The Same Backup

Sep 15, 2010

I have cronjob that uses rsync to back up to a remote directory every hour. how do I set this rsync up so that if initial process is running already, it prevents running same rsync command and checks again in next hour until the process is finished/terminated?

View 5 Replies View Related

General :: Set DNS Manually On KDE?

Feb 2, 2010

The Network Manager on KDE gets DNS configuration from DHCP and sets it automatically, but I would like to use the Google Public DNS. If I overwrite /etc/resolv.conf with nameserver 8.8.8.8 it still resolves names with the old DNS (probably cached in memory) and, of course, even if it worked, it would be annoying having to do that every time I connect to a network.

I've noticed the Network Manager lets you specify a fixed DNS with the rest being taken from DHCP, but that's on a per network basis, and I would like to set it once for whichever network I connect to (if you're on the go with a laptop that becomes an issue).

View 1 Replies View Related

General :: Manually Starting Tomcat On Ubuntu?

Dec 9, 2010

I have installed tomcat6 on Ubuntu. It starts it automatically at the startup. I do not want it to start automatically, I want to start it manually because I use same 8080 port for different servers. If tomcat is already started on 8080, it becomes problem.

How do I stop Ubuntu from not starting tomcat automatically at startup.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved