Software :: Running An Interactive (python) Script In Tty1 Before Login?

Apr 22, 2011

I would like to run an interactive python script in tty1 on startup. This script requires user input outputs relevant data.I also need this script to be run as root as it accesses USB devices (and has to detach kernel drivers).It is an infinite-loop script, so I also want to be able to ctrl+alt+F to tty2 to actually login if needed

View 1 Replies


ADVERTISEMENT

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

Ubuntu :: 10.10 (Tty1) Console Login Prompt At Boot

Nov 20, 2010

I installed Ubuntu 10.10 on my 32gb flash drive. Just one large partition for the OS and about a gig for swap. Worked fine. Booted to USB on two computers and a laptop at home. Fine. Figured I'd try it on a work pc for the sake of testing a random computer. Well I stick the drive in, boot up, select usb from the boot menu and bam Ubuntu starts loading. I look away, it's cool ubuntu's loading. Well I turn back and it's a black screen. It's "<username>@whatever login:" or something close.

I use the username and password I created during installation and what I used to login to the computer like fifty million times while booted into Ubuntu. Well, invalid login. The first time I installed this OS on this drive I updated it through the update manager and rebooted. Next thing I know I type in my username and password, hit enter, and bam black screen, some stuff, then im asked to login again. Now after this next iteration I am faced with yet another faulty login screen. What is up with this OS?

View 3 Replies View Related

Ubuntu Installation :: Tty1-6 No Login Promote After Recovering Grub?

Mar 7, 2010

I installed windows 7 and recover grub from the karmic livecd successfully. Now I can access all the OS in my machine. The only weird issue that I have is that there's no login promote in tty1-6 any more. When I switch to tty1-6, I can only see a flashing underline promote. But I can input anything in tty1-6. How to get tty1-6 back?

View 4 Replies View Related

Ubuntu :: Tty1 Login On Boot After Changing Etc/X11/xorg.conf?

Jan 12, 2011

So I'm trying to get two fingered scrolling on my Ubuntu 10.10 netbook. According to advice fromhttp://ubuntuforums.org/showthread.php?t=516798I created an xorg.conf file in etc/X11 and put Option "VertTwoFingerScroll" "1"Option "HorizTwoFingerScroll" "1"in the file. I restarted my computer, and now it comes up withUbuntu 10.10 [Computer name] tty1[Computer name] login:Not only has this not happened before, I have no idea what to put for my username and password.

View 3 Replies View Related

Ubuntu :: Run Interactive Script After Login

Jan 26, 2011

I need to run a script that prompts the user for some input and takes action based on that input. It must run at the end of the login process, after the desktop is displayed.I tried putting it in ~/.bash_login, but it didn't run. Do I need to tell /etc/profile to run ~/.bash_login? I thought it looked for it & ran it if it was found.

A related question would be - Can I make it so the terminal session that is running the script be the only thing that the user can do? In other words, they can't click on anything on the desktop or in the panels and have it run until after they respond to the input request.

View 1 Replies View Related

Ubuntu Installation :: NVidia 8600GT - Start In (Tty1) Login Console Mode

Dec 17, 2010

I tried most methods suggested on many sites to install drivers
## through the additional driver panel only
## through the Nvidia.run file I downloaded
## through the terminal using apt-get

All failed to start ubuntu gui it takes me to the console login and I noticed it says "saned disabled" edit /etc/..something. This problem made me install ubuntu again three times and every time I activate the driver then install the driver Nvidia.run or through apt-get and both leads to a black screen tty1 login. So what to do now I installed and removed many things and I won't reinstall ubuntu again. Also I typed compiz and this came on:

root@ubuntu:/home/sherbieny# compiz
Xlib: extension "GLX" missing on display ":1.0".
compiz (core) - Fatal: Root visual is not a GL visual
compiz (core) - Error: Failed to manage screen: 0
compiz (core) - Fatal: No manageable screens found on display :1.0
Launching fallback window manager. I want to install properly so that I can start normally and enable the extra visual effects and the custom effects. Please elaborate the steps clearly

New Info:
When I enter nvidia-settings : server X opens and says
You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run 'nvidia-xconfig' as root), and restart the X server. When I enter nvidia-xconfig as root and restart nothing happens and when I enter:
nvidia-detector it says none
and when I enter: nvidia-smi

Error: API mismatch: the NVIDIA kernel module has version 260.19.21, but this NVIDIA driver component has version 260.19.29. Please make sure that the kernel module and all NVIDIA driver components have the same version.
Failed to allocate an RM client
Could not allocate resources!
root@ubuntu:/home/sherbieny# apt-get update kernel
E: The update command takes no arguments

A new and very exciting error everyone now also the windows 7 that I have besides linux has also crashed and cannot open the login window. I don't know whats happening all I know is that few hours ago I logged in to windows normally now I cannot login to either one of them and the funny part is: I'm working on my thesis on this computer and I cannot work anymore and I'm supposed to meet with the professor on monday.

View 1 Replies View Related

General :: Assigning A User A Non-interactive Login?

Apr 16, 2010

I am trying to assign a user account on RHEL5 Server a non-interactive login but I am not sure if this is the correct command: useradd useraccount -s /sbin/nologinAfter I issue this command, I try to log in with this account and it says the "Administrator has disabled this account" when I enter the password. Does any one know if the command above is correct?

View 2 Replies View Related

Slackware :: Difference Between Login And Interactive Shells

Apr 22, 2010

I am having trouble distinguishing between login and interactive shells as they relate to terminals. I understand that a login shell is what is started when you login, and an interactive shell is used by scripts and such. I also get that terminals will use an interactive shell by default. What I don't understand is why interactive shells have no prompt by default. Is their a way to get an interactive shell to inherit the normal PS1 prompt? Is it considered bad to do this? Would it be better to have terminals start login shells, and if so why or why not?

View 7 Replies View Related

Ubuntu :: Use Sudo Without A Password For Non Interactive Login Using Plink ?

Jun 2, 2010

Before you say you shouldn't do that bla bla bla. I know why i shouldn't.

However i have a problem with running sudo commands from a non interactive command line script run using plink.

The automated script needs to use chown and give the current user ownership of some files and folders created by another user.

I can't use things like sudo -s etc as it requires that i enter a password.

I have setup public key authorization in order to login. Do i have to give the root user a password and log in as that. I would prefer not doing this but if that is the only solution i guess i'll have too.

View 4 Replies View Related

SUSE :: SLES 11 - Turn Off Keyboard Interactive Login

Mar 16, 2010

I just build a couple production SLES 11 machines and I'm using an ssh client to connect. However the ssh client forces me to use keyboard interactive login. How can I turn this off so I can use the normal username / password?

View 1 Replies View Related

General :: How Can Interactive Login Environment Be Duplicated In Cron

May 24, 2010

My execution environment is Linux steamboy 2.6.31-21-generic-pae #59-Ubuntu SMP.If I log in and run a program, the program works properly. The program is a shell script, which executes an environment file, so that path and library settings point correctly.If I have cron run the same program as the same user who logged in, one of the libraries cannot be found. I have sourced .bashrc and the same environment setting file, even though .bashrc executes the same environment file . /home/amr/bin/informix_env.sh

View 1 Replies View Related

Programming :: BASH Shell Differences: Login Or Interactive

Feb 18, 2011

Intuitively I think that the Login Shell and the Interactive Shell are the same applications but have access to different environmental variables.It this true? Why is there more than one type of shell anyways? You can change users with the interactive shell, why not log on with it to?

View 10 Replies View Related

Ubuntu :: What Version Of Python You Are Running

Jul 7, 2010

I need to know what version of python I am running. I am running ubuntu 10.04 and am going to be downloading wxpython but need to know what version of python I am running.In php there is a built in command phpinfo() that tells you everything you need to know about your installation of php, does python have something like this?Also, learned of python 2.7 today, I am currently learning python and am wondering if i should go ahead and upgrade or wait??

View 3 Replies View Related

Software :: Running Mysql-python Interface?

Nov 30, 2010

I just took a class on sql, unfortunately, it was Windows-centric, which means I have to figure out how to do stuff in Redhat by myself. By installing mysql via yum and then running pirut, I find there is an interface type program called MySQL-python-1.2.1-1.x86_64 so I installed it but I'll be danged if I can find any information on how to actually run the thing. What is the command to start MySQL-python-1.2.1-1.x86_64?

View 6 Replies View Related

Programming :: Python: List Running Audio Processes?

Jul 19, 2010

I am trying to get a list of running processes using audio (using gstreamer), just like in gnome-volume-control, under applications, but have so far been unsuccessful in finding anything in either the gtk or gstreamer library, anyone out there who can point me in the right direction?

View 1 Replies View Related

Programming :: Python: Determine If Running In 32 Or 64bit Mode?

Jun 23, 2011

How can I programmatically determine if my python script is being run with a 32 or 64 bit interpreter? Better yet, is there a one-liner I can run that will print out the word size of the current python session?

View 6 Replies View Related

CentOS 5 :: Yum Python New Thread.error When Mysqld Is Running

Mar 13, 2009

I installed mysqld with yum then yum quit working with this error:http://yum.baseurl.org/ticket/70 when mysqld is stopped yum works again. what does a running instance of mysqld have in common with a python yum package manager?

rpm -qa rpm* python* yum* mysql* | sort
mysql-5.0.45-7.el5
mysql-devel-5.0.45-7.el5
mysql-server-5.0.45-7.el5

[Code]...

View 3 Replies View Related

Programming :: How To Turn Non-interactive Shell Into Interactive Shell?

Feb 4, 2011

I have a situation where I am in a non-interactive shell. I have tried from within my non-interative shell to spawn an interactive shell but my output still does not goto me. Isn't there a way I can somehow go into /proc or somwhere and make the output my /dev/tty1? Or some way else to remedy this?The situation arises because I drop from my restricted shell environment (a sort of CLI interface), into the actual Linux shell. I cannot change the code of the CLI environment I am just faced with being in the linux shell environment and its non-interactive. Its very annoying to have to put > /dev/tty1 after every command I type.

Not to mention it seems damn near impossible to get pagers like more and less to work properly when your in a non-interactive shell.

View 2 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

Slackware :: Cannot Go To Tty1-6 From KDE

Mar 29, 2010

I have a problem logout from KDE that is both when I hit logout KDE button or "CTRL ALT F(1-6)", I get blank screen. Looks like my machine cannot redirect me back to the starting terminal.

Also in .xinitrc file I have the following line:

Code:
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
whereas .Xresource doesn't exist in that location. Is this related to my problem?

View 14 Replies View Related

Ubuntu :: Running An App Without Login?

Apr 21, 2010

I have a ubuntu 9.10 machine which is left 24/76, as my "download server". I have Vuze/Azureus installed, which I control mainly through the HTML UI, so rarely log into the machine.

Currently, when the machine restarts (not often) I have to log in via NeatX, and run Vuze. I then disconnect, and use the HTML UI.

Is it possible to set Vuze to run automatically, on startup, without the neeed to log in ? If I did this, where exactly would it be running ? As what user ? And what would happen if I then logged in, and ran it in a session ?

View 2 Replies View Related

Ubuntu :: Using Tty1 - Possible To Do More Than One Thing

Jun 18, 2010

I'm using tty1. Lets say I am listening to music there can't I do another thing at the same time read or writing to files or plus can the default login take me there instead of tty8.

View 1 Replies View Related

Ubuntu :: How To Change Tty1 Look

Nov 14, 2010

I am remastering Ubuntu 10.04 and would like to know if I can change the look and feel of tty1. Instead of having simple text based look can I add background image or customized the entire look of it?Just like with OpenSuse or currently I am using BackTrack. [see the attached images].Also does any aware how to keep permanent changes in Kmenu. I need to add my own menus; Kemuedit does provide you that option by not sure how to make that persistent or how can I replicate those changes on my live CD which I am remastering.

View 1 Replies View Related

Debian :: Running A Script On Login?

Jun 7, 2011

How can I have it so a script can run as soon as a user logs on with gdm?

View 3 Replies View Related

OpenSUSE :: Ktorrent - Running It Without Login?

Sep 6, 2010

Is it possible to run ktorrent from a command-line, or more to the point:from a cron job I like ktorrent, it does it job well. But it bugs me that I have to log inand remain so, just to run an app who's interface is not even required mostof the time.Unfortunately, my provider imposes a montly volume. Nice big volume, but notimposible to run it dry. On the other hand, they count nightly traffic atonly half to actual volume.So I'd like to be able to start ktorrent at a certain time after midnight,and interrupt it at dawn. Or maybe just shutdown the machine at dawn.

View 2 Replies View Related







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