Ubuntu :: Check If Connected Then Launch App?

Apr 16, 2011

Well, i have some applications that i use everyday so i add them to the startup applications, but they require Internet, otherwise the configuration is lost. I'll like a command that first check if i'm connected to Internet and if i am, launch the app. If not, don't do nothing.

This is a problem because for some reason everytime i turn on my laptop the wireless adapter doesn't turn on automatically (it always did when i was running windows).

View 4 Replies


ADVERTISEMENT

Ubuntu :: Launch A Script When A Display Is Connected?

Aug 8, 2010

I am currently thinking about buying a new computer; it is supposed to be a server kind of thing, at least most of the time. So basic HTTP, SQL I want it to run all day 24/7... but after looking for a good PC I got a idea... since any new PC supports HD Video and all I thought why not add something like Boxee to my little server... but then I thought it don't have to run Boxee all the time and the graphical user interface only needs to run when Boxee wants to run or dont I not need the XServer to run and display Boxee? Anyways Boxee should only lunch when a Display aka HD TV is connected and also turned on.

So my question is that even possible? To lunch a script if a TV is turned on and than start the XServer and Boxee (or some other Media Browser) with it or if not is there a workaround like some key combination or signal (power button on a remote control) that can lunch that script? And is there a script that will do this?

View 5 Replies View Related

General :: How To Check If LAN Is Connected

Feb 25, 2011

I want to write a script and put it in /etc/rc.local so that
if lan is connected then
rfkill block all
else
nmcli con up id 'Network id' --nowait
How should I write the if part and how should I check for "lan is connected" ?

View 1 Replies View Related

Ubuntu Multimedia :: Check If Display Device Is Connected?

Feb 10, 2010

I am trying to write a script to turn my HTPC off automatically and turn it back on again at a specified interval.

I've got the turn on off bit sorted using /sys/class/rtc/rtc0/wakealarm but I want the script to not turn the machine off if say something is downloading, I am currently watching something etc and i dont think I will have any trouble with that.

But what I would really like to be able to do is tell if my TV is currently on. I dont think anything x11 related would work here and this may not even be possible. Does Ubuntu "know" if it's display device is powered on or not? if so can I interrogate this somehow?

View 5 Replies View Related

Ubuntu :: Check Via Terminal If External Monitor Is Connected?

Apr 20, 2010

Ive been wondering about an alternative method for checking to see if an external monitor is connected.
Currently I am using:

Code:
#!/bin/bash
EXTERN=VGA1
if $(xrandr --prop |grep -q "$EXTERN connected");then
echo -e "$(echo $EXTERN | tr -d [0-9]) is e[1;32mconnectede[0m"
else

[Code].....

So, what I am asking is, is there a way to ignore/over-ride compiz's texture size check, a different way to query xrandr, or is there a completely different method I can go about checking if an external monitor is connected?

View 3 Replies View Related

General :: Does Not Recognize - No Scanners Detected - Please Check Your Scanner Is Connected And Powered On

Aug 11, 2010

I have HP Scanjet 3770. UBUNTU 10.04 installed on my desktop. HPLIP also installed. This scanjet working well in Windows Xp but in ubuntu SimpleScan does not recognize it.

It shows:- No scanners detected Please check your scanner is connected and powered on.

I Also visited [url] & found as below-

ScanJet 3770 Unsupported. While an external binary-only backend exists, it works only on Linux i386. Therefore the scanner is unsupported on other platforms.

View 2 Replies View Related

CentOS 5 Networking :: Which Command Can Check If Network Card Is Connected With Media

Nov 26, 2009

Suppose that it is not convenient to go behind a machine to have a look.So I want to use a command to show whether the cable is plugged into network card. (Media connected or not)Can ifconfig do this? Or another one?

View 2 Replies View Related

Server :: Check A User Connected From Server Using Internet Or Where He Visited?

Nov 12, 2010

I'm using a linux server where nat server is running. Local user are connected from this server. So is there in tool that i can check that local user getting internet? or how can i check that a user connected from linux server using internet or where he visited?

View 1 Replies View Related

Debian :: Canon Printer - Lp0 - "Printer Not Connected -- Check Your Connection"

Jul 31, 2011

I have a canon printer which was working so far. After my latest upgrade its giving errors saying "Printer not connected -- Check your connection" Fortunately I had a backup of my root before the upgrade and one difference I see is that on the new system theres no /dev/usb/lp0 which there is on the old one. So how do I make it? Or should I use the /dev/lp0? Note they are different:

[Code].....

So (naturally) when I tried to make a softlink from /dev/usb/lp0 to /dev/lp0 it did not work.

View 10 Replies View Related

Debian :: Migration Check List - To Check - Prepare Or Reconfigure

Feb 3, 2010

I am new to Debian but not Linux-based systems. I have been experimenting a lot with Debian Lenny/Squeeze. I am growing more comfortable each day with the Debian design. Yet there remain many unexplored areas. I am creating a migration check list. Things to check, prepare, or reconfigure when moving from one Linux-based system to Debian.

I have a good computer background and my current check list probably is fairly good. Yet I would appreciate input and opinions from experienced Debian users of things to watch in such a migration. Login defs, passwd/group files, different directory locations, keymaps, services and daemons, etc. I am not too concerned with the desktop as I plan to stick with KDE 3.5 for a while and I can basically move those settings across.

View 4 Replies View Related

Programming :: Check Menu & Check List In Utility Dialog?

Aug 19, 2010

I want to put check menu & check list in utility dialog.i dont know how i do this

View 1 Replies View Related

OpenSUSE Network :: Connected To Internet And Also Connected Pcs Might Want To Use Internet?

Aug 21, 2010

I want to set a up a network of inter connected pcs, for example on pc A linux is installed.now pcs B, C , D, etc should connect to A and do there work, for example A want to do C/C++, development, whereas B wants to do some PERL development or whatever, this is just an example, 2 different pc users might do same work also, and the connecting pcs may have Windows or linux or bsd.OSes now what h/w or s/w is required and what steps are required to set up this network, main pc would be connected to internet and also connected pcs might want to use internet also..have installed opensuse edulife , and use this as PC A for testing.. and I use bridged dsl Broadband connection to connect to internet , by the username and password provided by the ISP, in windows its easy to setup this connection, however not able to do on linux,

View 9 Replies View Related

Ubuntu :: 11.04 Launch Bar And Top Bar Gone?

Apr 28, 2011

I have been using ubuntu since 10.04 version and configure with compiz to activate the corners, cube, etc. No problems with that. When I upgraded to 11.04 these things were not working but honestly I did not care that much and was just playing with compiz, so I was playing with an option in compiz about the size of the icons in the new 11.04 launch bar, just when I clicked it my top bar and launch bar are gone and not coming back after rebooting many times. BTW I already uninstalled compiz via terminal and the same problem is happening, maybe important for you to know (alt+f2 or other shortcuts not working except for ctr+alt+t)

View 9 Replies View Related

Ubuntu :: Not Able To Launch .jar

Jun 29, 2011

i run xubuntu 10.04 and for the past 2 hours i was trying to launch a .jar file and finnaly when i installed java properly this happened:

Code:
sasha@sasha-laptop:~$ java -jar '/home/sasha/Desktop/Minecraft stuff/minecraft.jar'
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
at java.awt.Toolkit.getDefaultToolkit(libgcj.so.10)
at javax.swing.plaf.basic.BasicLookAndFeel.initialize(libgcj.so.10)

[Code]....

View 1 Replies View Related

Ubuntu :: Tomboy Does Not Launch?

Jan 6, 2010

I am attempting to use tomboy and it does not launch giving me the following:
Code:
~$ tomboy

(/usr/lib/tomboy/Tomboy.exe:3602): GLib-WARNING **: g_set_prgname() called multiple times
(/usr/lib/tomboy/Tomboy.exe:3602): GLib-WARNING **: g_set_prgname() called multiple times [INFO]: Initializing Mono.Addins

[Code]...

installing all the packages again without comment or error, but the problem persists with exactly the same error as above.

View 3 Replies View Related

Ubuntu :: 9.10 Fails To Launch?

Feb 27, 2010

I installed it yesterday. It worked well. I was able to log into windows without any trouble and restart into Ubuntu without a hitch.

This morning I launched Ubuntu as usual vi GRUB. I was asked to install about 135 upgrade files, which went withou an apparent challenges. I then went through the restart and noticed that there was an extra two choices in GRUB, but I just left it to launch Ubuntu automatically. Which it did.

I then messed about with the appearance settings. Noticed a some more updates were waiting which included 49 files. I went through the updating process and restart.
GRUB worked well, and I was soon loggin in with username and password.

The Ubuntu Screen became visible with the flashing horizontal line and about 3 seconds later everything froze. I waited for several minutes - I timed them - but still no progress - everything remained frozen.

I switched off the machine completely, as I knew of no other way to get out of this situation. I rebooted and when GrUB launched I booted into windows 7 with absolutely no problems.

I used restart in windows and then allowed GRUB to boot into Ubuntu. Once more I was able to log in but soon after the Ubuntu Screen appeared and the horizontal line flashed for a few seconds, everything froze. This time I waited five minutes before switching off the machine by disconnecting at the mains.

I am now using windwos 7 to make contact

View 4 Replies View Related

Ubuntu :: Can't Launch .sh From Icon

Jun 18, 2010

I am running Kubuntu 10.04 and i want to make some icons on the desktop to launch various telnet sessions. So i make a .sh using vi test.sh and then put in telnet 180.9.x.xx and save and quit. Then i chmod 777 it to make it executable and then moved it to my Desktop folder. But when i double click or right click and open with konsole nothing happens. I know it is probably something stupid which i have overlooked but when i have done this in Ubuntu in the past it has worked.

View 7 Replies View Related

Ubuntu :: Can't Get Osx To Launch With Grub2

Aug 29, 2010

I have an acer aspire one. I had iPC osx86 10.5.6 installed on it. then I installed ubuntu 10.04.1 and now i cant get OSX to start up. OSx shows up in grub but when i select it i just get a blank screen.

View 2 Replies View Related

Ubuntu :: Sigil Won't Launch / Fix This?

Nov 21, 2010

I downloaded the current version of Sigil 64bit from Google Code https://code.google.com/p/sigil/ and it is just not working. Whenever I try to launch it the screen appears for less than a second and then vanishes. Does anybody know how to fix this?

View 5 Replies View Related

Ubuntu :: Launch Apps In Gui From Other Tty?

Mar 24, 2011

[URL]theres a thread asking to issue commands to one tty from another, i'd like to know, if there's a way this can be done without screen, and so that you could issue commands to the gui, from other tty.

View 1 Replies View Related

Ubuntu :: Autohide The Launch Bar In UNR 10.10?

Mar 30, 2011

Is there a way to autohide the launch bar in UNR 10.10? I thought there was a way in the older versions.

View 3 Replies View Related

Ubuntu :: Launch App At Sleep?

Jul 7, 2011

how to tell to the linux system, that when it will switch to the sleep mode, system launch a specific code (in python).

So two solution possible?

1) set a specific config file witch inform system to launch a python.py code. ?

2) config my own screensaver witch execute app when system call it. ?

In the two case, I don't find informations on the web.

View 1 Replies View Related

Ubuntu :: Ssh To A Box And Launch A Programme

Jul 19, 2011

Is that possible to ssh to a box and launch a programme, say firefox, have the session disconnet when not using it and then you can reconnect to the same session again?

View 2 Replies View Related

Ubuntu :: Getting A Script To Launch On Login?

Mar 14, 2010

i've been looking for an answer to this for a few days now before i decided to post. i have a simple script that works perfectly if launched manually from an xterm window. the script has been already been chmod +x.

i have my account set to autologin to an xterm session. i have symlinks in rc2.d and the script itself in init.d. i can't find any clear explanation of where i need to put my script to it launches itself right after my account logs into an xterm session. i can ./script after my xterm session starts and everything works fine but i just cannot find where to put it so it launches after my acct auto logins.

View 4 Replies View Related

Ubuntu :: Apps Slow To Launch?

Mar 15, 2010

I did a install of 9.10 on a Lenovo T61p a few weeks back. The install went seamlessly and everything was running along just fine, then suddenly, I'm having the problem that every time I go to launch a new window, it takes 30 - 40 seconds for the window to launch. Once the window is launched, performance seems normal, with one exception. When I go to launch Nautilus from the "Home Folder" menu under "Places", it takes 30 - 40 seconds to launch the window, then another 10 -15 seconds for the folder items to appear. If I click to descend into a folder, it takes 10 - 15 seconds for the folder contents to appear. This stuff was all instantaneous.

View 2 Replies View Related

Ubuntu :: Flash In Firefox And Launch WoW

Mar 29, 2010

I made an error by downloading and installing a new version of firefox. I do not manage any more to install the flash! I would also play World of warcraft but I have a little problem. I know it is not precise. But my english teacher would we make a discussion of anything in English, for 30 minutes. Thus it would be cool if anybody can contact me on <snip.> We could discuss about these problems with skype.

View 7 Replies View Related

Ubuntu :: Mldonkey-server Could Not Launch?

May 21, 2010

I found my mldonkey-server curiously could not launch after rebooting To confirm my suspicion, after the following command:

Code:
root@Mldonkey:~# /etc/init.d/mldonkey-server start
Starting MLDonkey: mlnet.
I run
Code:
root@Mldonkey:~# telnet localhost 4000
Trying ::1...
Trying 127.0.0.1...

[Code]...

View 7 Replies View Related

Ubuntu :: GDesklets Won't Launch And Disappears

May 25, 2010

Since I upgraded to 10.04, I went to launch gDesklets, and it will not launch. I looks like it wants to, spinning cursor and bar down in the task bar panel, but then it disappears.

View 5 Replies View Related

Ubuntu Installation :: How To Launch Program?

Jun 10, 2010

The program is called the GNU C++ Compiler. I tried typing it in the terminal and pressing tab, but got nothing. How do I launch the program?

View 6 Replies View Related

Ubuntu :: System Will Not Launch AllTray

Jun 16, 2010

I'm having an issue with a startup script that I wrote. I'm using Alltray to dock Thunderbird to my panel next to the clock.I put this script in /etc/network/if-up.d because I want it to automatically launch Thunderbird in docked mode as soon as my computer connects to the Internet. I can manually run this script just fine, but the system will not launch AllTray

I already chmodded the file, so it has permission to be executed. But for some reason it will not launch. I know that the system is actually running the script because I had it echo "Hello World" to a text file on the desktop. But it won't run any programs.

View 5 Replies View Related







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