Ubuntu :: Start Python Script At Boot?

Jan 17, 2010

I am trying to get a python script to start when the pc is booted. I'm running ubuntu server without a GUI... just CLI.

I have a python script called /home/username/bin/dropbox.py that runs perfectly if I do:

Code:
sudo python /home/username/bin/dropbox.py start

All I want to do is invoke the command I wrote up there when the pc boots up without any user logging in.

I added the above command just like that in rc.local but that didn't work. I tried creating a bash file, where in the bash file I did:

Code:
#!/bin/bash
cd /home/username/bin/
./dropbox.py start

and then added the bash file to rc.local, but that didn't work (I made sure the bash file was executable).

View 5 Replies


ADVERTISEMENT

Ubuntu :: Python Based Programs Fail To Start?

Oct 30, 2010

since it started i cannot launch software-center, vlc, emesene... they all stopped working... i checked the logs of synaptic to see if i removed a python package and i didn't. i tried selecting all python packages for reinstall, and it didn't help! i really don't want to reinstall ubuntu.

View 9 Replies View Related

Debian :: Can't Start Python GTK Applications

Oct 27, 2015

I use Terminator as my terminal and in the last couple of months, I need to either run

LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libfreetype.so.6 /usr/bin/terminator
or
symbolic link /usr/local/lib/libfreetype.so.6 to the above file

In order to have the application run without the error message: You need to install the python bindings for gobject, gtk and pango to run Terminator.

I have been using the symlink method for the most part, but when I run an apt upgrade, often the /usr/local/lib/libfreetype.so.6 symblink changes to point to /usr/local/lib/libfreetype.so.6.5.0 and I have to manually re-link.

I have tried reinstalling gobject, gtk and pango packages for python but nothing has worked.

View 6 Replies View Related

Debian Multimedia :: Miro Won't Start - Generates Python Error

Jul 6, 2015

Miro worked well with Wheezy. When I upgraded to Jessie Miro started generating a python error as such:

Code: Select all~$ miro
using /usr/bin/miro.real
Traceback (most recent call last):
  File "/usr/bin/miro.real", line 183, in <module>
    from miro import startfrontend
  File "/usr/lib/pymodules/python2.7/miro/startfrontend.py", line 53, in <module>

[Code] ....

I have been searching for a few weeks trying to find an answer to no avail. I tried three different kernels, renaming ~/.miro, checked all dependencies. I reported it as a bug which sat there for a few days and disappeared.

View 14 Replies View Related

Programming :: Make Python Programs Run Without Entering The Command Python?

Mar 22, 2009

I want to be able to do

sudo ./program.py

instead of always having to do

sudo python program.py

What do I need to change?

View 5 Replies View Related

Programming :: Python - Get Text File Data Into An Array On Python?

Nov 30, 2009

I've already used line split stuff to transform my data into something like this in a text file:

Code:

['1', '1', '3', '20.7505207']
['2', '1', '3', '23.0488319']
['3', '1', '3', '-1.5768747']
['4', '1', '3', '-26.4772491']

[code]....

How can I get this on a python program so I can manipulate it as an array?

View 3 Replies View Related

General :: Get Apt-get To Install Python Packages For A Different Version Of Python?

Oct 27, 2010

in ubuntu 10.10, I have installed python 2.7. I would like to use apt-get to install packages to this version of python but I haven't been able to figure out howThings I have tried without success:changing the symlink at /usr/bin/python to point to /usr/bin/python2.7 - even after doing this apt-get still installs stuff to python2.6.Set up python2.7 as the primary alternative using update-alternatives - doesn't work

View 3 Replies View Related

Software :: Python 3 Want Situation For Python 2 And Become Stop?

Jul 17, 2010

Python 3 want situation for python 2?Python 2 become stop?

View 1 Replies View Related

CentOS 5 :: Yum - Python-devel / Python Dependency

Jan 7, 2011

yum dependency problem please? I am running Centos 5.5. I need to install python-devel, but when I do so I get:

[Code]....

View 2 Replies View Related

Programming :: After USB Boot - Detect Which Device The Ramfs Was Loaded From - Bash Or Python

Sep 22, 2010

How one could determine (for use in a Bash or Python script) which device (eg /dev/sda1, /dev/hda1... etc) a ramfs was loaded from when booting from a USB drive.

I have a RIPLinux/Tinycore live USB disk that automatically needs to run a script that is stored on the same USB drive but not part of the RIPLinux/Tinycore image. (Please note that I do not want to put this script into the RIPLinux image.) I therefore would like to remix the RIPLinux/Tinycore ISO to automatically run this script once it has started up. After RIP linux has booted I would like to automatically mount the USB drive that RIPLinux/Tinycore was booted from. I need help detecting which device this is.

View 3 Replies View Related

Programming :: Python 2.x - Represent The Same In Python 3.x

Mar 4, 2010

I have a function definition in a Python 2.x script which take a tuple as one of its arguments, but 2to3 has no answers nor any of my searching on how to represent the same in Python 3.x

Code:

def blah(self, (string1, string2))

View 4 Replies View Related

CentOS 5 :: Upgrade Python-2.4.3 To Python-2.5?

Mar 30, 2011

How can I upgrade python-2.4.3 to python-2.5?

View 1 Replies View Related

Ubuntu :: GRUB Boot Menu At The Start Like Any Other Dual-boot System?

Jan 28, 2011

I've installed Ubuntu on my new desktop alongside Windows 7 (each OS is on a separate drive), I seem to have run into a small problem. Let me start with what I did:

- Unplugged 1TB drive from the PSU, BIOS was not seeing my formatted (and thus empty) 500GB drive and I couldn't put it into the boot order at all with the 1TB turned on.

- Loaded up the boot CD and was able to install Ubuntu 10.1 on my 500GB drive.

- Did a bit of configuring, shut my PC off and plugged my 1TB (with Windows 7) drive back in. I tried to see if I could now see my Ubuntu drive in BIOS but nothing is there - just the Windows drive is in the list of available drives to boot from (along with DVD-ROM and USB).

This is where I've run into my problem. What I want is to have a nice GRUB boot menu at the start like any other dual-boot system but just have the two operating systems on separate drives altogether.I did it this way because I was having issues with the advanced partition menu on the boot CD so just went ahead and followed the KISS method by unplugging the Windows drive.

I was told by a friend that if I put my Ubuntu drive into the first position in my boot order and the Windows drive in the second, then I could boot into Ubuntu and run a GRUB update command (he told me to google it) and that would create the necessary GRUB that had the entries for Windows 7 and Ubuntu.Both operating systems are 64-bit, I imagine that might make a difference in whatever help you guys can offer me. I love the hell out of both OS's and want to be able to use them interchangeably.

View 5 Replies View Related

OpenSUSE Install :: Boot From USB Connected External Hard Take Long Time From Loading INITRD Image To Start Boot Process?

Jul 18, 2011

I have installed "open-SUSE 11.4" on a "500GB Free Agent External Hard Drive". I didn't have any problem in booting since last week that I booted it from my laptop. Also I did it before several times from then when I try to boot it e.g. from an "Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz" PC the time between loading INITRD and starting boot sequence messages lasts nearly 30 minutes!(i didn't actually measure it but it take a long time in the same order). after starting boot sequence which is showed on monitor everything looks normal. e.g copy of files would be done by speeds between 2MB/s to 30 MB/s depending on the targets.I used to use the external hard derive to boot from different laptops and PC's from start but I didn't have such a problem anytime.

View 1 Replies View Related

Ubuntu :: Python Interactive Session: "help()", Then "modules" Freezes Python?

Jan 12, 2011

This problem has to do with Python's interactive help (To get to the interactive help, just type help() at any interactive session). I like to browse all my installed Python modules, to see if I can find something that would be useful for my hobby programming projects. However, recently, typing modules (which is the command to list all installed modules) freezes the interactive session.

View 1 Replies View Related

Fedora :: Using Python 2.5 With Python 2.6 With F12?

Nov 30, 2009

Fedora 12 officially uses Python 2.6, good. But the Google AppEngine still goes by Python 2.5 and is showing import errors while i try to start the SDK. Here is the stack trace.

[URL]

View 3 Replies View Related

Ubuntu :: 9.04 - MPD Start Up At Boot

Jun 2, 2010

Running ubuntu 9.04 and have mpd installed and running good. I just cant seem to get it to start at boot. I want it to run on a headless system so don't want to have to login to start it. I have successfully done this on another system but I cannot remember how I did it and cant seem to find.

View 7 Replies View Related

Ubuntu :: GDM Does Not Start At Boot

Oct 15, 2010

So for the last few days gdm ans not started on boot up. tty7 is a blank screen and I'm automatically put in tty1. There I can log in and run gdm manually.

It has a started automatically a few times with out me doing any changes, but most of the times not. So far I haven't found out what the cause is but I've found some similar (the same?) problems:

[URL]

I'm running 10.04 64-bit if it matters.

View 5 Replies View Related

Ubuntu :: Get Screenlets To Boot On Start-up?

Jan 21, 2010

does anyone know how I can get my screenlets to boot on start-up? Couldn't find out how through google and I can't find an option on the screenlet or the screenlet manager that sets them to automatically start on start up.

View 4 Replies View Related

Ubuntu :: Squid Does Not Start After Boot

May 19, 2010

After upgrade to 10.04 squid does not start automatically after boot.

Starting it manually via: sudo start squid works fine.

View 2 Replies View Related

Ubuntu :: How To Start Boot Cd In 640x480

May 19, 2010

My monitor only supports 640x480 resolution, so how can I start Ubuntu's live CD at this resolution?

View 1 Replies View Related

Ubuntu :: Start Programs At Boot?

Sep 3, 2010

I have a VPS with Ubuntu 10.04 and acces to it via putty. Besides postgres database there should be running two java program which I wrote. It works fine from command line. But I need them to start automatically at boot time.

View 5 Replies View Related

Ubuntu :: Dual Boot - Can't Start Xp

Dec 20, 2010

I installed Ubuntu on my netbook alonside xp. The only problem is that when I start my computer, the boot menu only pops up for a split second and I cannot select "run windows xp". This is preventing me from usintg both OS'.

View 2 Replies View Related

Ubuntu :: Hang Before Boot Start?

Jan 9, 2011

My machine is running in Pentium(R) 4 CPU 1.7Ghz, Nvidia legacy Riva tnt/tnt2 and a 512mb ram. I have a Network adapter, Realtek RTL8139 Family PCI Fast Ethernet NIC. I have installed Ubuntu in my Window Xp, and used the ACPI workaround to install ubuntu on my PC. Now that I have installed Ubuntu, when I try to boot ubuntu, it always hang before it start to boot.

View 5 Replies View Related

Ubuntu :: Grub Does Not Start During Boot?

Jan 24, 2011

A friend of mine installed ubuntu 10.10 alongside with Windows XP. During the installation he manually edited partitions. Now, the grub loader does not start, and in order to start ubuntu he has to use live cd to choose "boot from first hard drive" in the menu. Windows XP is missing from the boot options.

See the output of "fdisk -l" below (he has two identical hard drives). It looks like a big mess. Any idea where to start fixing this?

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x05c605c5

[Code]...

View 6 Replies View Related

Ubuntu :: Dual-Boot - Esn't Ask Me About What To Start

May 28, 2011

i installed Ubuntu on another partition from windows 7. but before doing that i remember formating 100MB partition i think was called Boot "something" thinking that i created this partition from my previous failures for installing Ubuntu, now every time i restart the computer; i doesn't ask me about what to start! it starts Ubuntu immediately! "i even remember before installing Ubuntu; i couldn't start windows!"

View 3 Replies View Related

Ubuntu :: How To Stop KVM Start At Boot

Mar 10, 2010

Host - ubuntu 9.10 64bit
Virtualizer - KVM

I need to stop KVM starting at boot. I added following 2 lines at the bottom of /etc/modprobe.d/blacklist.conf
Code: blacklist kvm
blacklist kvm-amd Reboot PC
It doesn't work.

$ lsmod | grep kvm Code: kvm_amd 41556 0
kvm 190648 1 kvm_amd
What further command I have to run in order to activate the new blacklist.conf ?

View 2 Replies View Related

Fedora Servers :: Mysql At Boot Time In 10 / Get Mysql To Start At Boot?

Jul 28, 2009

I am trying to get mysql to start at boot without any success.

The mysqld scripts works fine when run from the command line, but it does not work when i use the links created by chkconfig. I checked the boot.log and found that mysql starts but then it stops or gets shutdown. This is the log message:

Starting mysqld daemon with databases from /data/mysql [ OK ]
Starting cups: [ OK ]
STOPPING server from pid file /var/run/mysqld/mysqld.pid
starting DenyHosts: /usr/bin/denyhosts.py --daemon --config=/usr/share/denyho
sts/denyhosts.cfg
090727 04:35:47 mysqld ended

The same init script works fine in Ubuntu.

View 2 Replies View Related

Ubuntu Installation :: Several Services Don't Start At Boot?

Jan 29, 2010

I'm having some strange problems in my system (Ubuntu 9.10 32 bits). Several services (Cups, MySQL, VirtualBox kernel driver, etc) aren't starting during boot time. It's possible start them manually (e.g. /etc/init.d/cups start). The other problem is that my virtual terminals (ctrl + alt + f[1-6]) aren't starting with the system too

View 9 Replies View Related

Ubuntu :: Standard Services Do Not Start At Boot?

Feb 17, 2010

I've been running Ubuntu 9.10 since November '09, and since a month or so I'm having boot problems. Gnome starts, but some core services such as ssh and dnsmasq (that have started on boot somewhere in time), don't start anymore. Neither does rc.local fire, so I basically have to startup these things by hand.

Also, I cannot get into the console anymore by using ctrl+alt+f*, because it gives a message like: Starting ntpd or starting libgcrypt 1.4.4, or something in that fashion.

My belief is that something is holding the boot procedure in a waiting state before services such as ssh get to start, but I can't seem to find anything in the log files.

View 3 Replies View Related







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