Ubuntu :: Startup Bash Script Behavior?

Feb 19, 2010

I have script that is called from a startup init script before login. It has some different behavior than if it ran from a login script. It doesn't allow to have input characters deleted on a line and doesn't allow for the break command. It's part of Live CD, I'm going to make publicly available, so I want to boot straight to into the script.

View 1 Replies


ADVERTISEMENT

General :: Want "xcopy /a" Behavior From Bash Or Similar?

Jul 1, 2011

As I recall in the days of DOS and routine use of command.com,the xcopy command had an option -- I think it was "/a".When xcopy processed a file, it would alter the state of the archive attribute such that multiple runs of the same command would catch whatever was missed by the previous run. A common use was to fill diskettes and similar small storage media.xcopy a group of files === rats, media fullxcopy catches more files === repeat ad libxcopy eventually catches the last remaining files

View 7 Replies View Related

Ubuntu :: Add Startup Application Through Bash?

Jun 19, 2010

I am trying to write a bast script, and I need the script to add something to the startup applications, so that it runs when the user logs in.

View 2 Replies View Related

Ubuntu :: Cancel The Startup Bash Script?

Jan 8, 2011

I made a mistake on my home server. I installed the eXist xml db, and wrote a bash script so that it would start up when the machine boots up. But now, the server just hangs before the system asks for a user logon, so I can't ssh into the machine, and when I have the monitor and keyboard hooked up to it, it's not letting me logon or cancel the script. Anyway to kill the current running process and get to the logon, so I can delete that bash script?

View 1 Replies View Related

Ubuntu :: 'Minimal BASH-Like Line Editing Is Supported' At Startup?

Aug 22, 2010

So I turn on my PC this morning, and it comes up with this telling me to use 'TAB' to see a bunch of options I can use, not knowing any idea on how to use them properly I type in 'boot', it returns with 'error: no kernel' and then I type 'exit', it just reboots.

I've scanned endless posts on the forum trying to find the most useful replies and tried to use 'find /grub/stage2' and 'find boot/grub/stage2' and it says 'find is not a command' so that failed. I then tried to find out the partition my installation is in, which is hd0,1 so I tried using 'setup (hd0,1) which returned with 'setup is not a command'. I even tried 'boot (hd0,1) but it returned with the first error 'error: no kernel'. Luckily, when I installed Ubuntu I dual-booted it with Windows so I'm still able to use the Internet but I would love Ubuntu back and I had a lot of important files on it. So does anyone know how to solve this?

By the way, the way I installed Ubuntu was through Windows using 'wibu', it's worked absolutely fine ever since this morning. Oh and I'm using Ubuntu 10.04 (Loopy Lynx or whatever it's called ;p)(Also, for more information this screen appears after I choose 'Ubuntu' from the Windows bootloader, it doesn't even get to the Ubuntu bootloader it just goes straight to that screen)

[Code]...

View 3 Replies View Related

General :: Run A Bash Command Automatically On Startup?

May 13, 2011

I was wondering how to run a bash command automatically on startup. on start-up have "alsamixer" or "start-network" executed from terminal.

View 3 Replies View Related

Slackware :: Bash / Opera Open At Startup

Feb 22, 2011

I've been messing around with Slackware 13.1 and I screwed something up. I was trying to get Wicd to start automatically at startup so I found a chmod... line of code online and copy/pasted it on my command line. Now whenever I boot the computer, when I get to the KDE desktop, the BASH window opens, Opera opens and I get a bunch of Wicd error windows. How can I fix this?

View 14 Replies View Related

General :: Bash - Where And How Are Custom Startup Commands Configured

Jan 11, 2011

I'd like to add custom startup commands (for example starting a process, registering to a registration server, downloading a configuration file) to the Linux startup process. Those commands should be triggered on startup only. What is the standard/appropriate way to do this?

EDIT: Is /etc/profile the right place to trigger such things?

EDIT2: I'm using Ubuntu.

View 4 Replies View Related

Software :: Rc.local - Wont Run My Bash-script At Startup

Jan 10, 2011

I have some problems with rc.local. It wont execute a scipt of mine at startup.

The script itself works and if I run rc.local manually it works too...

The script to run:

Doesn't seem to be a lynx-issue. I've tried with hard coded text as message too...

The script lies under / and have chmod 777.

Running CentOS 5.5 (if you didn't get it, this script is for sending the external IP-adress to my email att startup. If a thief is stupid enough to start it connected to internet)

View 12 Replies View Related

Programming :: C++ Behavior Different On Win/ubuntu?

Jun 9, 2011

So i have this simple c++ program, which has an array of ints and a pointer to it. Then i have to change one element in the array. Problem is that on ubuntu(netbeans) it works the first time i change the element, then for the other times there is no change in the array after leaving the function.

First i thought it was a bug, but i tried the code on win(visual studio) and it worked like it should.

I don't understand what the problem is? Im not using any platform specific function(that i know of )?

View 12 Replies View Related

Ubuntu :: Different NTFS Volume Behavior In 10.04?

May 17, 2010

Ubuntu 64 bit is installed on the hard disk with two partitions: one for Ubuntu, another is NTFS partition called Shared. Before upgrading to 10.04 Shared volume was available. To mount it, it was necessary to enter the password.After upgrading to 10.04, I see two volumes: Shared and Shared_. Places menu contains Shared item. When I click it, it opens without password, and shows /media/Shared_, with correct contents. Original Shared volume appears in the media directory:

Code:

root@alex-64:/media# ls -l
total 12
lrwxrwxrwx 1 root root 6 2010-04-21 19:49 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 2010-04-21 19:49 cdrom0
drwx------ 2 root root 4096 2010-05-09 08:25 Shared
drwx------ 1 alex alex 4096 2010-05-17 08:56 Shared_

Shared volume is empty. Can this be fixed? It is OK to work with Shared_ volume?

View 3 Replies View Related

Ubuntu :: Odd Behavior In Lucid After Boot?

Jun 3, 2010

I upgraded to Lucid from Karmic a few weeks ago. The upgrade went fine. Then I decided to move my exit, maximize, and minimize buttons to the right side. I used Ubuntu Tweak to do this. Since that time I have very odd behavior after I boot Lucid.The booted system comes up with an X for a cursor. There are no exit, maximize, and minimize buttons on my window bar. Finally, I can open a terminal, but cannot type anything in it.Sometimes I can get things back to normal by using Ubuntu Tweak to move the buttons to the left or right (depending on where they were before the boot). Sometimes I have to open System>Preferences>Appearance> and change Visual Effects from None to Normal or vice versa.I have tried metacity --replace (after getting the terminal window to allow me to type in data), but after I reboot, things are back the way they were. I have an Nvidia GeForce 7300 LE on board graphics card, and I am using the Nvidia current version driver. When things are working correctly, System Monitor shows a compiz process running but not a metacity process. Is this correct?

View 8 Replies View Related

Ubuntu Installation :: 11.04 Tried - Very Odd Screen Behavior?

Apr 12, 2011

I just tried uprgading from 10.10 on my daughter's pc to 11.04(beta) as we wanted to find out about Unity et al. I thought the upgrade went well but on reboot when the desktop comes up, it's all funky in behavior - mouse is jump, arrows don't reliably work the menus - odd background images show up in graphic blocks. Do you think I can salvage this, or should I am I stuck reloading back to 10.10?

View 1 Replies View Related

Ubuntu :: Screensaver/power Saver Odd Behavior?

Apr 2, 2010

I have a screensaver set to run after 10 minutes and then the screen is set to turn off after 30 minutes, but it seems that it never consistently stays off (after the 30 minutes), and very often turns back on and runs the screensaver instead. It seems to be in an endless cycle without me doing anything to wake it. Is there any way to fix this? It's killing my power usage. Karmic, core2duo, nvidia 7600GT gfx cards using latest nvidia drivers (but also happened on 190, and I think 185)

View 2 Replies View Related

Ubuntu :: Odd Behavior From Update Manager - DeVeDe?

Apr 10, 2010

I have been having a frustrating issue with Ubuntu 9.04 on both my laptop and desktop machines for several days now. An Icon shows in the panel telling me there was a problem with updating. Attempts to update hangs on waiting for headers @ 99% but ultimately times out. I have not been able to update successfully for some time. Add to this the fact that DeVeDe will not respond. Trying to run DeVeDe from the Applications menu does nothing, running the program from the command line does nothing. Attempts to uninstall return this warning:

Code:

dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
devede

Attempts to start Synaptic return this:

Code:

E: The package devede needs to be reinstalled, but I can't find an archive for it.
E: Internal error opening cache (1). Please report.

View 1 Replies View Related

Ubuntu :: Emulate Win + Left And Win + Right Windows 7 Behavior

Oct 11, 2010

These are 2 cool shortcuts in Windows 7:

[Windows+Left] - Dock window to the left side
[Windows+Right] - Dock window to the right side

When you press Windows + left arrow the active window occupies 50% of the screen (on the left), and when you press Windows + right arrow the active window occupies 50% of the screen on the right. I have tried to set this up with gnome on Ubuntu but have't managed it so far. I am sure this can be setup in gnome. How can it be done? In summary this splits two windows on the screen so one window occupies 50% of screen on left and the other on the right, how can this be setup and executed pronto on ubuntu?

View 7 Replies View Related

Ubuntu :: Change Behavior Of XF86AudioLowerVolume And XF86AudioRaiseVolume

Nov 18, 2010

I recently installed a new ubuntu system (10.10) as media center. I am running Gnome and xbmc on it. Until here, everything perfect!

I bought one of those cheapass media center keyboards with multimediakeys. Except for one, they all work out of the box.

My problem: When i press the volume down key, gnome lowers the volume of my mediacenter. This might be good for most users, but i have a surround receiver/amplifier (Denon AVR3310) that should handle the sound.

In fact, i am looking for this: When i press the volume up/down key, instead of changing the volume of my mediacenter, gnome should execute a script i wrote. This script sends commands to my receiver (using the serial port or the network connection) to lower/raise the volume.

Small additional question: I would like to get the one button that doesn't work yet to work. I have a 'mc' (mediacenter) button on my keyboard. I would like to make this launch xbmc. When running 'xev', i don't see any output when i press the button.

View 4 Replies View Related

Ubuntu :: XSANE Different Behavior And Resizing Of Output?

Feb 18, 2011

I have used XSANE for scanning for several years, and it has recently been giving me trouble. It resizes when I copy, and it resizes when I scan into a multipage pdf. It's not drastic, an 8.5 x 11 page gets shrunk down to about 7.5 x 10. I've installed the Gnome scanning utility to get by, but the resolution just isn't as great. I went into Synaptic and marked all the XSane packages for reinstallation and reinstalled them. However, my contrast / gamma settings remained the same, and, as you might guess, whatever is shrinking my output remained the same also.

View 1 Replies View Related

Ubuntu :: Window Behavior Changes When Adding Third Monitor

Feb 26, 2011

When I run my dual monitors with twinview on an NVidia GeForce 8400GS when I maximize a window it does it as you would expect (on one monitor) and when a pop up comes out of an application or when I bring up Synapse it appears in the center of my monitor. However, when I add a third monitor as a separate X window, the behavior of the windows on my dual screens becomes very different. It maximizes across both monitors, and Synapse opens with the center between the two monitors.Any thoughts on how to fix this or why it would change?

View 2 Replies View Related

Ubuntu :: Unity - Odd Behavior When Switching Windows

May 24, 2011

I have an odd behavior where the Unity shell looks incorrect when switching windows with 3D cover-flow like behavior. I created a video to demonstrate:

[URL]

When I run unity_support_test, all appears well:

$ /usr/lib/nux/unity_support_test -p
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon HD 3200 Graphics

[code]....

View 3 Replies View Related

Ubuntu :: Overriding Default Behavior In Unity?

Jun 14, 2011

I constantly work on several workspaces, and whenever I open an internet browser or anything, I'd like a new instance of the program to open. The default behavior takes me to the workspace that currently has an open browser, and this page is usually already very crowded. Can I override this default behavior on Unity?

View 3 Replies View Related

Ubuntu :: Nautilus And USB Drive Weird Behavior

Jul 14, 2011

I am running Ubuntu 11.04 (Natty) with Gnome Classic (no effects) desktop. I have an external USB drive on which I have cloned my sda drive that contains my Ubuntu partition and an XP partition. Both of these partitions mount automatically. For some reason, Nautilus opens randomly on its own for each of these partitions. When this happens, two copies of Nautilus open; one for each of the partitions. I have not been able to discern any pattern for when nautilus opens. This actually began to happen in Maverick shortly before I upgraded to Natty. Any ideas on what the cause is and how I can stop this from happening?

View 4 Replies View Related

Ubuntu / Apple :: Overriding Rm's Default Behavior

Jul 16, 2011

Within the last few weeks, I've been beginning to familiarize myself with Terminal. I know within the syntax, you can add options such as -i or -v.When I enter the command rm, I want Terminal to automatically go interactive (which would be the -i option) without me having to add it to the command. Meaning, I'd rather type rm Test.doc than having to include -i like this rm -i Test.doc. This way, whenever I execute the rm command, I won't have to worry about adding the -i option because I know that Terminal will automatically ask me if I want to delete the file or not before I do.

View 5 Replies View Related

General :: /etc/rc.local Behavior Different In Ubuntu Vs. Debian?

Apr 26, 2011

A rather obscure problem, clearly our understanding here is challenged! On ubuntu (10.04 & earlier) we boot our apps under a user account from /etc/rc.local which runs under root. First the boot script installs drivers and does rooty things, then we launch the executable under the "myaccount" account:

su myaccount -c startPrg.bash (Inside is the actual /mybin/myprg &; )and the program is left running (our goal of course) BUT in debian (lenny) the exit from su terminates its child, which also seems right.

Now confused..

1) How can we spin off a child from /etc/rc.local that executes under a user account, but is not terminated when the su exits?

2) Why does the script act differently on ubuntu vs. debian?

View 1 Replies View Related

Fedora :: Where Did 'Window Behavior' Go

Nov 27, 2009

There used to be an option within the Preferences section in Gnome for 'Window Behaviour' where you could change the behaviour of windows such as roll up on double click instead of maximize and that sort of stuff.I can't seem to find it on F12 and can't find anything else that allows me to adjust those types of behaviours.

View 2 Replies View Related

Ubuntu :: Revert Notification Area To Pre-lucid Behavior?

May 4, 2010

Is it possible to revert the notification area to pre-lucid behavior? I'm not sure what the point of removing the right-click functionality was(or if it's a bug), but it's pretty horrific.

On the off-chance this is a bug, I will elaborate. Right-clicking on Kopete brings up the 'remove from panel' menu, and left-clicking on Kopete brings up what used to be seen with a right-click.

View 1 Replies View Related

Ubuntu / Apple :: F-keys Changing Behavior With Every Update?

Jun 21, 2010

I'm using ubuntu 10.04 on mbp 5.1 and change of FN/F behavior after _EVERY_ kernel update is getting really ridiculous.On update "a", I gey F-keys without FN; after upgrade to kernel "b", I get media keys by default, then again F,...I _really_ don't want to change pommed.conf after every reset (and re-reset it)

View 2 Replies View Related

Ubuntu :: Change Behavior Of Power / Login Icon?

Nov 17, 2010

I've been running Ubuntu 10.10 for four days now and love it. Is there a way to change the default behavior of the power/logoff icon on the taskbar?(not on Ubuntu now and forget what the bar is called) Instead of asking me what I want to do (power down,restart, log off, etc) I would like it to power down the PC.

View 7 Replies View Related

Ubuntu :: Osmos Videogame And A Curious Shortcut Behavior

Jan 7, 2011

I bought the Osmos game from the recent Humble Indie Bundle and I have placed the folder in /usr/games. I haven't installed it, the folder is executable as-is, but I have placed it in that address in order to be coherent with common game installations. I have created a shortcut of the executable file and placed it in the desktop.

If the game is executed through the shortcut it looks like the first screenshot, if it is executed through the original executable it looks like the second one (it works correctly). It also works correctly if the shortcut is in the same folder as the executable. This happens both with the 32 and 64 bits executables. I have a Radeon HD3870X2 and the open drivers in an Ubuntu 10.10 64 bits.

View 2 Replies View Related

Ubuntu :: Chromium Middle Click Behavior Changed?

Jan 26, 2011

I'm using chromium browser on a 9.10 desktop pc. I was trying out opera browser 11 for a while and when i switched back to chromium something strange happened. When i press middle click instead of pasting the selection like it used to, it starts page scroll (like windows). I use the daily builds ppa, and i also tried it on my netbook and a virtual machine running 10.04 and 10.10 but there were no changes there. I prefer the default behavior (middle click to paste selection) but i can't find any options for this.

View 2 Replies View Related







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