Ubuntu :: Running A Script Before Login?
Aug 20, 2010I have a script and want to run it before user login. how can I place a script in startup process?
View 14 RepliesI have a script and want to run it before user login. how can I place a script in startup process?
View 14 RepliesI 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 ?
I have been trying to figure out how to automatically run terminal commands on login. For example, I want to run Firefox on login. When I run 'firefox' in terminal, it opens. This is what I tried:I went to System > Preference > Startup Applications and clicked on 'Add'. I gave it a name, typed 'firefox' into the command field and left the comment blank and added it to the list, making sure that the box was checked.
View 1 Replies View RelatedUnity is not running when i log in, instead i am presented with the same 10.10 desktop: Applications, places, and system. I upgraded from the CD, because my internet connection is slow and it would take forever with the update manager. If it is important, i used the new upgrade option on the CD. my hardware is as follows:
pentium 4 cpu 3 GHZ
nvidia geforce 4 mx 4000
2 GB of ram
when I tried to boot into my PC yesterday, it would run through the normal loading process until it got to the login screen. There it loaded the splash screen,but the login box never comes up. I have rebooted several times, tried recovery, and run several reconfigure gdm options I have seen on the forums. Nothing seems to work.
I have restarted gdm, it goes back to the same screen again. If I startx, I was able to get to a desktop with several things missing, and unable to go into anything that required sudo permission. Also, the shutdown and restart optons were grayed out in the menu.
I would like to be able to use compizconfig-settings-manager to set some custom settings for compiz, and then have compiz be the window manager that runs when I log in. The trouble is that I cannot seem to find a good way to have compiz run at log in. I can add "compiz --replace" to my startup programs list, but this loads metacity and then replacing it with compiz and seem to add a bit to the startup time (not to mention it seems to be slightly unreliable).
Further, I tried this: Uninstalled compizconfig-settings manager. In appearance preferences, set visual effects to normal. Everything seems to work fine until I log in again, at which point no window manager runs. Setting visual effects to none makes metacity load.
Since upgrading to 10.04 (from 9.10) 2 days ago, I have been getting an error message whenever I log in. It tells me that 'Power manager is still running' and gives me options of 'logout anyway' or 'cancel' (I'm writing this from memory, so may have got the wording slightly wrong). Clicking 'logout anyway', then continues with the login process, with no further problems (as an aside, I am running a desktop, so I'm not sure that Power Manager has much to do anyway.
View 9 Replies View RelatedHow can I have it so a script can run as soon as a user logs on with gdm?
View 3 Replies View RelatedIs 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 RelatedI have SSH running on a computer I use as a server at home and login to it for my own purposes but am needing to share access to this server with someone else, and I'd like to do it in a way so that when they sign in all they see is the contents of one folder and nothing outside of it. So I'd like them to have full access to this folder and do anything they want with it, but not be able to browse outside of it at all via something like WinSCP (they're using Windows). I'm thinking I need to create a new account for them to sign in with but beyond that I'm not sure what I need to do. The only other special thing is that the folder I'd like them to be presented with is actually on an external hard drive. We're going to be doing a lot of online music collaboration and I need to give him lots of free space to drop files and the internal hard drive doesn't have a lot to spare right now.
View 6 Replies View RelatedI want to run a command on startup (Via startup applications) that has to wait for another program to run first.I don't seem to be able to use sleep to delay the command as it is stored in a .desktop file.How do I make it run later, preferably without having to create a script just for this one command.Also, how do I make the system start with compiz? Change "/desktop/gnome/session/required_components/windowmanager" ? Or do it the clean way by (Somehow) configuring gnome to use compiz?
View 3 Replies View RelatedLinux version 2.6.18-194.el5 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Tue Mar 16 21:52:43 EDT 2010Am using VWware ESX to host this guest operating system. When it clears post, the screen goes to the red background you typically see right before the login prompt comes up... but it never does. If the machine made it on the wire I can putty to it, but through deploying these, the machine isn't always on the wire and I need to be able to use VMware's viewer to gain access to it
View 2 Replies View RelatedI added the following line in /etc/sudoers file
<username> ALL=(ALL) NOPASSWD:ALL
after adding this if I run any command it is not asking for the password. Now I need to shutdown the remote machine with sudoers user.
I'm logging in as a user at run level 3.I have my .bash_profile in my home directory
Code:
if [ -f ~/.bashrc ]; then
source ~/.bashrc
[code]....
My FC12 laptop won't boot. During the attempted boot, after blue/white progress bars finish displaying on the bottom of screen, nothing more seems to happen. The screen isn't totally blank in that I seem to have a text cursor and keyboard input is displayed. But, no prompt, no login prompt, X isn't running, etc. If I hit ESCduring boot, it displays the boot messages and the boot sequence stops after "Starting atd". I'm not sure if it's related, but I had previously experimented with creating a new xorg.conf file by running "Xorg -configure' and was testing the new file with "X -?? /etc/x11/xorg.conf.new" (I forget what the -?? option was). I assumed that this would not overwrite the /etc/x11/xorg.conf file and that if I ran into problems, that the original xorg.conf would be in place. how I can get this miserable thing to boot?
View 4 Replies View RelatedI built a 11.04 server system in vmware workstation a few days ago, set it up for something and now I have a strange problem. It boots without problem. I can login via ssh, the services run and everything is OK from the outside. But on the console there's just a fast blinking cursor on the screen, no login or anything to that affect. Just blank and a blinking cursor.
View 7 Replies View RelatedI need to run a script (which requires root privileges) on login per-user only. I want this to runtomatically so I'll add an appropriate line to .profile.A couple of questions:1 The easiest way I can think of to run the script as root is to setuid, but I know there are security concerns. Is there a better way
View 6 Replies View RelatedI 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 View RelatedI am setting up a CentOS server that has no screen connected, and only has 2 Tesla cards. I have created a minimal xorg.conf and xinitrc file that doesn't load mouse or keyboard, and only creates two screens, one for each card at 320x200x24 bit. This is so I don't waste VRAM on a framebuffer I can't see.
I modified the xinitrc to just load tdm and nothing else as GNOME is a RAM hog. I am then using this setup to render stuff offscreen using OpenGL into FBOs which I read back to CPU and process. Currently for development I just run startx& when I login. I now want to know how to set x server to start automatically at boot. The CentOS docs say that it will try to load the GNOME login manager. The thing is that I don't want a login manager as it is useless as I login remotely via SSH.So:
1 - how to enable automatic x server in CentOS (im used to Ubuntu so not sure how to do this on Red Hat variants)
2 - leave x server running without starting login manager
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 RelatedI've just upgraded (finally) to 10.04 desktop, and when I boot, I get a login screen, which is quite usual, but once I log in, the machine drops to terminal, instead of the usual GUI. I've tried running startx, but I get this error message. Fatal server error: Server is already active for display 0 If this server is no longer running, remove /tmp/.X0-lock and start again.
View 1 Replies View RelatedHi. I have Ubuntu 10.04, nm-applet is running in the background, my battery icon and sound icon are showing but my network icon has been missing for the past 2 days. It was working fine before but now it's not. How can I fix this issue if I don't have an ethernet cord? Is there a way to roll back the recent updates or do I need to reinstall my network manager?
I've tried restarting the system and I've tried killing nm-applet and reloading it using Alt F2. I get some Debug error.
When I try to run nm-applet --sm-disable
It says an instance is already running and then gives me a warning.
I tried removing "iface eth0 inet dhcp" from /etc/network/interfaces and then tried restarting by "sudo /etc/initi.d/networking restart"
It says:
What can I do to connect to the internet? I have a flash stick if its possible to download a .deb package on this mac and transfer it over to my other laptop to fix the problem. If its possible.
I can't figure out why but my processor is running at 100% on all four cores, and the fan is running at max speed. All I did was double click an a.out file created by g++, and it is running at full speed now.
[IMG]file:///tmp/moz-screenshot.png[/IMG][IMG]file:///tmp/moz-screenshot-1.png[/IMG]
After "yum install emacs" & "yum install emacs-ess", I was able to install emacs on my X86_64 running Fedora 10.
If I run one session of emacs everything works fine.
Once I start a second session and try to resize or move the emacs window, the system stops responding.
I presume there is something in the JWM window manager - or Puppy Linux Lupu 5.01 itself that is conflicting with the normal loading of GMPLAYER....
I would like to know how to troubleshoot, and fix this problem if possible (even a workaround would be great).
Sometimes I connect to my Debian box from another computer (using SSH on Cygwin or Linux), and once ina while I want to run some console apps. And sometimes some of these apps might complain about "another intance, Error: an instance of newsbeuter is already running (PID: 2496)". Is there a work around for this issue at all(without killing the original instance") ? The reason I do not want to kill the app because there might be 2 users connected to the same machine that might be using the same app.
View 1 Replies View RelatedIs suid disabled from running all home made bash scripts or just from running them as root or:
Who would know for sure.
I googled several combinations of Mandriva Linux how-to suid disabled setUID etc... so far all I found was "many distributions are disabling suid for security reasons" nothing specific.
We are running IPmonitor to monitor the disk usage on our Linux servers. It does not seem to coincide with what is reported when running df -h. For example on a Red Hat 5.3 server - our IPmonitor shows that 85% is used on the /usr partition, however when I do a df -h on the server it shows that 91% is used. Why there would be a discrepancy? IPmonitor uses SNMP.
View 5 Replies View RelatedI have used Ubuntu since 7-4; I now have 10.4. However, in the last week I have been taken to the login screen three times. This could be potentially calamitous. Ctrl+Alt +Backspace have by default been disable since 9-4. There is no way I am pressing atl+Prtscr +K. I wonder if there is a new zap command in 10.4, and if so, how to disable it. I have never found the need to go back back to the login window. I am generally using the command line when doing this.
View 1 Replies View RelatedI just finished installing 10.10 on my pc. the problem is that i cant login to the desktop i enter the password, the login sound plays and im stuck looking at the wallpaper. nothing else. i tried logging in safe mode and it worked. how can i get it to work normally?
pc specs:
Pentium 4 2.6 ghz
512mb ram
ati radeon 9600 graphics card
And i installed it using wubi.