Ubuntu :: Comand Works In Terminal But Not In Shell Script / Fix It?

Apr 7, 2011

If i type command

Code:
export ROOT=$(pwd)
directly into a terminal i can see my current directory as a value of enviromental variable ROOT. I can check it with printenv command.

Same command does nothing when executed from a script. Why?

View 1 Replies


ADVERTISEMENT

General :: Script Works In Shell But Will Not Autostart

Jun 3, 2010

I have this extremely simple script called startmyth:

Code:
#!/bin/bash
sleep 10
export DISPLAY=:0.1
exec /usr/bin/mythfrontend &
when I execute it as ./startmyth, it works fine. But when added to Gnome's startup applications (System > Preferences > Startup Applications), Mythtv does not start! What gives?

View 3 Replies View Related

Ubuntu :: Gnome PPP And KPPP Only Works From Terminal?

Feb 22, 2010

I just installed 9.10 and this is my first time using Ubuntu. I was using Kubuntu before and used KPPP with my Verizon USB720 wireless card. It's the type that gets internet access through the cell towers.I installed KPPP but when I try to start it I get this error:

Quote:

Could not launch KPPP
Failed to execute child process (permission denied)

I tried Gnome PPP and it would open but not connect. This is what is in my log files"

Quote:

--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.

[code]....

After doing much searching and reading I figured out to open Gnome PPP from the terminal with sudo. When I do that it works fine. Also KPPP opens that way although I haven't tried it to see if it connects. Although this works it's not a very convenient way to connect. How can I get it to work without doing this?

View 2 Replies View Related

Ubuntu Networking :: Tor Executed From Terminal Works But Not From GUI

Apr 1, 2011

I am using Tor 0.2.1.30 with Polipo and Vidalia 0.1.15, Ubuntu 10.04. Running tor on terminal works fine, but vidalia gets stuck at 85% The message log, as I understand it, shows it getting stuck at finding the right bridges, but the terminal tor is able to connect fine... ##This is what the vidalia log looks like. The log shows me trying it two times. Apr 02 01:32:56.698 [Notice] Tor v0.2.1.30. This is experimental software. Do not rely on it for strong anonymity. (Running on Linux i686)

Apr 02 01:32:56.699 [Notice] Initialized libevent version 1.4.13-stable using method epoll. Good.
Apr 02 01:32:56.699 [Notice] Opening Socks listener on 127.0.0.1:9050
Apr 02 01:32:56.699 [Notice] Opening Control listener on 127.0.0.1:9051
Apr 02 01:32:56.699 [Notice] Parsing GEOIP file.
Apr 02 01:53:08.204 [Notice] Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
[Code]....

View 1 Replies View Related

Ubuntu :: Libreoffice Works From Menu But Not From Terminal

Jun 23, 2011

From my terminal : >> libreoffice -writer gives :

But if I run it from the menu (applications->office->libreoffice writer) or with sudo it works fine. so something's happening with the permissions, I goes, but I don't quite understand what's wrong. I've tried deleting .libreoffice but this doesn't help. I'm using libreoffice3.3.2 and Ubuntu 11.04.

View 8 Replies View Related

Ubuntu :: Comand Line Boot Option With Grub 2?

Apr 22, 2011

I am starting to learn about the nuts and bolts of Linux and I wanted to have an option in my Grub boot loader to boot up without x window or any services just a log in so I can test changing config files and experience a system that isn't bogged down by all the things that come along with them.

View 2 Replies View Related

Ubuntu Networking :: USB Wireless Works With NM But Not With Terminal Config

Oct 6, 2010

I recently purchased a Netgear WG111v2 802.11g wireless usb adapter for use with an ARM embedded device (loaded with the ARM port of ubuntu). It uses the rtl8187 driver and, when attached to my laptop, connects perfectly through NetworkManager. Unfortunately, I am not working with any ui on my embedded device so I won't have that luxury and must connect via the terminal. Unfortunately, I'm not able to connect this way on either my laptop or the embedded device (they both CAN pick up surrounding AP's through iwlist scan though). I'm able to set the ssid through

Code: sudo iwlist wlan0 essid "woot" and my access point is temporarily open (no wep/wpa). When I bring the device up using

Code: sudo ifconfig wlan0 up the light on the adapter starts blinking but I'm still not able to connect. iwconfig wlan0 outputs:
[Code]...

View 1 Replies View Related

Ubuntu :: Command Works From Terminal But Not From Keyboard Shortcut

Feb 2, 2011

I would like to make a keyboard shortcut to execute the following command:

Code: /usr/bin/xdotool key XF86MonBrightnessDown The command, when run from a terminal, works perfectly. However, when run via a keyboard shortcut, the command fails to execute. how I can execute my command with a keyboard shortcut. I am running Ubuntu 10.10 Netbook Edition with Unity-2d.

View 3 Replies View Related

General :: Comand Not Found Error?

Jul 18, 2011

While following this guide https://help.ubuntu.com/community/Wi...Driver/bcm43xx to get my wireless to work, I get anerror that says that the directory does not exist.The command is tar xfvj broadcom-wl-4.150.10.5.tar.bz2hird post has a screenshot as an attachment. The tar file is on my Desktop.

View 14 Replies View Related

Server :: Putty Ssh Works But Ssh From Terminal Does Not?

Apr 27, 2010

So when I try to connect to my ubuntu server with ssh like thisX@dell-desktop:~$ ssh servername -P 1934X@servername's password: Permission denied, please try again.but when I use putty (yes with the same port number and the same settings)it works fine. This didn't start happening until my friend did a reinstall on the server, he didn't have a clue as to why it would do this.

View 6 Replies View Related

General :: Secure Shell/terminal For Ubuntu?

Jul 22, 2010

There are a couple commands I want to run in a terminal that require me to provide my password. I really don't want those commands ending up in any kind of history or anywhere else where they could be seen by someone after the command was run. Are there any shells/terminals for Ubuntu that I could use (or options to bash/zsh/etc) that would give me a secure environment where I don't have to worry about my history being kept?

View 3 Replies View Related

Ubuntu :: Running Shell Script From Terminal?

Feb 14, 2011

I have a shell script that I want to be able to run from the terminal just by typing "topcat", regardless of where I am or what user I'm under. How would I go about changing the bash configuration files (if I have to) in order for that to work, for me and for the other users on the computer (I have root access)? As it stands right now, I have to type "/bin/topcat/./topcat" in order for it to execute

View 3 Replies View Related

Ubuntu :: Gnome-terminal Not A Login Shell / Why Is So?

Mar 3, 2011

I've seen lots of posts all over the Internet that advise users to check the "Run command as a login shell" checkbox in GNOME Terminal under Edit->Profile Preferences->Title and Command.

This makes gnome-terminal run bash/csh/tcsh/ksh as a login shell, which it does not do by default. In turn, running gnome-terminal as a login shell sources the system and user login scripts. This sets up things like colored ls etc.

It seems like gnome-terminal should be a login shell by default. Why isn't it? I've never seen a good explanation of why gnome-terminal isn't a login shell. The "Run command as a login shell" checkbox must be unchecked by default for some good reason, right?

View 1 Replies View Related

Fedora :: Root Login Works At Shell - Auth Error When Running Admin Tools

Jan 25, 2011

I login as normal user. I can 'su root' fine - password authenticates. However, If I try to run System->Administration->Users/Groups, when it asks for root password, it is rejected. When I run updater, it reports failure to authenticate, but doesn't even ask for root password beforehand. Is there a cached password someplace?

View 7 Replies View Related

Software :: Fedora - Every Yum Install Comand Gives Dependancy Error

Sep 25, 2010

I was trying to convert a video from avi to mpeg2 using ffmpeg, but I encountered an error saying , unable to load filters, in reply to this issue, I read, I would need to have a complete mplayer setup on my system.

So i tried yum update mplayer but it gave me a dependency error regarding some vlc libs, so i tried to update vlc but still the same problem. I removed them, thinking of a reinstall, but it gives me the same errors on trying their fresh installs.

Then I thought of updating gnome by yum update @gnome-desktop, so what ever I try to install or update from the terminal gives me this error:

Quote:

View 3 Replies View Related

Software :: Run Test.jsp File In Comand Line Interface?

Jul 4, 2011

using tomcat6 server os is fedora9 i need to run test.jsp file every 20 minits i assigned the cron job */20 * * * * wget http://<my host>/containfolder/recurring.jsp but, its take long time so i need to run test.jsp file in linux command prompt, Is it possible to run JSP in linux command prompt?. If there is yes mean, plz tell how we can do that.

View 3 Replies View Related

General :: Bash Script Works In Terminal But Not In Cron?

Feb 17, 2011

I'm really running into a wall trying to figure this out. I have a Bash script and narrowed down the one command that doesn't seem to work via cron and it's my pgp decrypting line. Works fine if I run the command via terminal but if I run it via cron it doesn't output anything.crontab -e shows the cronjob and it runs, creates the log file with no output. Is there maybe something I need to run as well? Permissions look set, unless the cron is running as a different user(was under the assumption if it showed up under crontab while logged into that user, then it would run as that user.

View 14 Replies View Related

Software :: Su - From VNC Session Doesn't Work But Works Ok When At The Terminal

Nov 18, 2009

When I connect to my workstation via Real VNC Viewer 4 to Xvnc running on the workstation, and running "su -" I get authentication failure as follows:

So, effectively I cannot su when connected via VNC.

But if I'm at my workstation, I can su just fine:

Nov 18 16:24:30 localhost su: pam_unix(su-l:session): session opened for user root by xyz(uid=500)

Interestingly enough, I cannot su to my own userid over vnc, i.e. su xyz

In /var/log/secure I get:

I suspect it has something to do with PAM, but cannot figure it out.

View 2 Replies View Related

Ubuntu :: Shell Terminal - Dollar Sign Missing?

Apr 14, 2011

I am trying to use Ubuntu terminal to execute unix commands. However, the dollar sign that usually appears in shell terminal is missing. Please see the attached screenshot image showing the terminal without the dollar sign. I cannot run any unix commands like cd, ls-l. Please advise how I could fix this problem.

View 3 Replies View Related

Ubuntu :: Determine When Shell Is Being Run In An Emulated / Virtual Terminal?

Apr 17, 2011

In a shell script. And use that in a condition.
Something like:

Code:
if(pts) echo "emulated"
if(tty) echo "virtual"

View 3 Replies View Related

General :: Terminal / Shell Colours To Use?

Aug 24, 2010

Green on black = general shell
red on black = shelling in as root to a server
gold on black = media, irc

what colours do you use?

View 2 Replies View Related

General :: Can't Set Terminal To Regular Shell?

Jan 14, 2011

i am running slackware and i cant set my terminal to regular shell. when i open up a terminal i see something like bash4.1 instead of hostname and nickname how can i change this. i use more than one terminal so id liek to make this change for all terminals

View 5 Replies View Related

Fedora :: Install The Nvidia Drivers And Use Telinit3 On The Comand Line?

Oct 14, 2009

I was trying to install the nvidia drivers and used telinit3 on the comand line to stop the XServer but now I'm stuck in the command line. How do I get back to the graphical part?

I tried using telinit 5 but its just starting anacron and doesnt seem 2 do much

View 1 Replies View Related

Ubuntu :: 'set' Command In Terminal Has Shell Scripts Embedded Inside?

May 3, 2010

I just installed Ubuntu 10.04 for some development. I was trying to set some environment variables are noticed that when I hit 'set' inside a terminal (to dump environment vars) I get the usual first few variables but then I see a whole lot of script code ....

Code:

WINDOWID=23068675
XAUTHORITY=/var/run/gdm/auth-for-sid-5IDovs/database
XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg
XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/

[code]....

I've installed a lot of tools (NetBeans, Ruby, Java, build-essentials etc) but essentially I installed Ubuntu today - so it shouldn't have rotted out this quickly. is this hijacking of environment vars to embed script code intentional with Ubuntu 10.04?

View 1 Replies View Related

OpenSUSE :: Gnome Terminal: How To Get The Bash Shell

Mar 17, 2010

i've finally got a NIX environment...yipee! Installed opensuse 11.2 in a dual boot with windoze with no problem whatsoever. unfortunately, my NIX skills are sadly dated or maybe things have changed or both. in any case, i have a rather trivial problem that i have not been able to figure out.

i go to gnome terminal to get to the bash shell, no problem except when i do things like cat, less and so on. the commands do what they do then when done the last line output is "some text" and "(END)" - at the completion of the command it does not return to the bash shell. i've tried ctrl-everything, enter, escape, actually all keystrokes i can think of to get back to the bash shell...no luck. man and docs have not been helpful or i simply missed the answer (i'm a little saturated at this point).the only thing i've been able to do to solve my dilema is close the terminal an start a new instance, not elegant but works.

View 8 Replies View Related

General :: Differences Between Shell , Console & Terminal?

Jan 9, 2011

What are the differences between shell , console & terminal?

This probably sounds like a stupid question but I'm having a lot of trouble clearly differentiating between a shell (such as Bourne or bash) and the Terminal application in GNOME. I realise that both are completely different but I can't seem to find a clear answer written in text. Could anyone clearly distinguish between both?

View 4 Replies View Related

General :: Disable Color In Shell / Terminal

Apr 6, 2011

I want to disable all color in my shell. Not ls, not nano, not vi, nothing.

View 3 Replies View Related

General :: What Are The Differences Between Shell , Console & Terminal

Jul 23, 2011

I have come across the use of the term terminal, virtual terminals/consoles, real-text terminals but do not understand what terminal refers to. Does it refer to the screen that is in-front of me whilst I post this question or does it refer to something specific?EDITI came across a similar post at What are the differences between shell , console & terminal? and it seems to be similar to the one I posted although am still confused about the use of the sentence Decades ago, this was a physical device consisting of little more than a monitor and keyboard. What does this device look like and how is different to a monitor?

View 2 Replies View Related

General :: Windows - Differences Between Shell , Console & Terminal?

May 24, 2010

Thats it! I'm confused with the terminology.

What is the difference between shell , console & terminal?

View 3 Replies View Related

General :: Copy / Paste Output From Shell (not Terminal)?

Jul 15, 2010

I often have issues starting my window manager--xfce. My computer misbehaves in one of 3 ways, one of which is to fail to open X, but generate several screens of info. I want to paste that info to this site, but since I'm in the shell, not the terminal (please correct my vocabulary if it's wrong here), I don't know how to copy and paste the output, since right-clicking doesn't give me a menu. Even if I could copy I'm not sure the information would be accessible in X. Are there any other options?

View 13 Replies View Related







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