Debian :: Startup Script As Root?

Sep 5, 2010

I need to run a few simple commands at the startup of my computer. (need to run as root if possible without needing to enter login's infos)

Basicly, the commands are about the same line, so i'll just post one: screen -S Name1 -L -d -m php -f /root/mainloop.php config.php

View 3 Replies


ADVERTISEMENT

General :: Run Command As Root On Startup?

May 14, 2011

As I tried to explain on the title, what i need is to run this command "NetworkManager --no-daemon" as root every time I start my arch+gnome so that the nm-applet would show on the panel.I need to know a way to do this automaticaly each time I start my pc

View 6 Replies View Related

General :: Which Are Root's Startup Files

Sep 21, 2010

I was going through a server hardening manual.t some interval it was mentioned that there should not be any alias for commands defined in roots startup files .

View 1 Replies View Related

General :: Running A Script At Startup As Root?

Apr 14, 2010

Is there a way I can run 'completely' one of my script when ubuntu's desktop appears no matter if root , administrator, desktop user or an unprivileged user logged in?

What does the script do? The script mounts a partition, looks for a file in that partition and finally on the basis of that file a decision of copying a partition to another partition is made. That copying is done via

[Code]...

View 5 Replies View Related

Ubuntu :: Failure To Mount Root Device On Startup

Jan 14, 2010

Recently installed some minor software, some games and Ubuntu Tweak, I am not sure if that's what caused this issue or not. I shutdown after the installations, then when I tried to start back up the small, white ubuntu logo appears just like it normally does, then it just goes to a black screen. I turned off the computer and restarted in (Recovery Mode). It goes about its thing then it says it is waiting for root file system, then after about 30 seconds it says "Gave up waiting for Root File System" how to fix this without reinstalling?

View 2 Replies View Related

Ubuntu Servers :: Running Script As Root On Startup?

Jul 29, 2010

I am trying to run my script at startup but it doesn't run the script as root. Do I need to add my root username and password in the script, or somewhere else?

View 1 Replies View Related

Ubuntu :: Root Script At Startup For Power Management

Apr 25, 2011

I'm trying to enable a few of the powertop suggestions at boot. My plan had been to put the changes in /etc/rc.local, but it appears possible that some of the changes are happening too early in the boot process to take effect. Specifically

echo 1 > /sys/devices/system/cpu/sched_mc_power_savings and cd /sys/devices; find . -name link_power_management_policy -print0|xargs --null -n 1 -I{} -t bash -c "echo "min_power" > "{}""

both work if run with sudo permissions after I've logged in. where to put these such that they'll take effect on boot? Or can I put a sleep in the rc.local?

View 4 Replies View Related

Red Hat / Fedora :: Running A Script As Root On System Startup?

Apr 29, 2009

There is a script that I want to run as root when the machine boots up(which starts the Redhat Certificate System services). The problem I have is if I put this on rc.local it wont run because I havent logged in as root. Is there a way that I can run this without logging in as root at the machine startup?

View 5 Replies View Related

General :: Running Shell Program On Startup As Root In Terminal

Aug 4, 2010

I am running Linux Mint 9..I play xbox live and run it through my laptops wireless network connection so i dont have to pay 100 dollars for the usb wireless adapter for the xbox. In windows 7 this is easy to configure so that when i turn my laptop on and then xbox it automatically connects.

View 10 Replies View Related

CentOS 5 :: Make Tomcat Startup At Boot As Non Root User?

May 4, 2009

Can anyone tell me how to make this script,( located in /etc/init.d/tomcat ) startup at boot time under the tomcat user and not the root user?

#!/bin/bash
# tomcatStartup Script for Tomcat
# chkconfig: 2345 20 80
# description: Tomcat Server basic start/shutdown script
# processname: tomcat
# pidfile: /var/run/tomcat.pid

[Code]...

View 5 Replies View Related

Debian :: Root Access And Desktop Disabled \ Couldn't Open The Root Terminal?

Feb 19, 2011

I was using the latest stable release of Debian, dual-booted alongside Windows Vista, with the GNOME desktop, installed via netinst, trying to build and install a library that I knew and trusted, when suddenly I couldn't open the Root Terminal. I clicked the link (in Applications->Accessories (I think, whatever the top one is)->Root Terminal), and in the taskbar I saw an item that said "Starting Root Terminal". A few seconds later, that went away, but the terminal still wasn't open. I tried the regular user terminal, to see the same thing happen. Unsure of what was happening, I tried restarting my computer, since that's always the first step you should take in computer problems.

When I restarted, GNOME wouldn't start. The screen would flash a bit for a few seconds, then a dialog box would appear over a background of static that said "The greeter application is crashing. Attempting another one...".t would then go back to the DOS-style kernel, wait a second, and then the same thing would happen. After several of that, I would get a blue screen which said something to the effect of "It has been detected that the desktop environment has crashed six times in the past 30 seconds.

Waiting two minutes before trying again." When it did that, I tried logging in as root to assess the problem. I gave it the correct password, but it said that it was an incorrect login. After several tries (to ensure I didn't mistype the password), I logged in as myself. Same problem. I tried the su command, with the correct password, and it said it couldn't authorise it.

After a lengthy conversation with a friend of mine who was very good with computers, he basically summarised that he had no clue, but that his best guess would be a virus. Upon running the Linux installer, I found the Repair option. Not being particularly familiar with Linux, I used it simply to backup my important files onto a flash drive. I then tried running the Install option, in an attempt to simply write over my existing Linux and make it new again. The installer, however, consistently froze up when trying to start the partitioner, on the "Checking disks..." stage. I figured it was a problem with my partition. In my naivete, I simply used the Windows tools to clear that partition... It destroyed GRUB too, so I couldn't run any OS. I figured my computer was pretty well screwed, and at that point just decided to bring it into the shop and have them completely wipe it.

my computer was backed up onto an external hard driven I brought it back, I reinstalled Windows. Upon restart, it said that it was still looking for GRUB, which made no sense to me. After messing around with it a bit, I decided to just reinstall Linux too. To my lack of surprise, that fixed the problem. Both OS' now ran just fine. The first thing I did on Debian was to install the Clam Anti-Virus, which I understood to be one of the best Linux anti-viruses. However, within about 10 hours, got the same problem as originally. I wasn't doing any of the same things, and between the lack of consistency in activities and the fact that I had an anti-virus running,figured it wasn't a virus. Not knowing what to do, I just left it and have been using Windows since.

View 8 Replies View Related

Debian :: Root Login Without Setting Root Password

May 14, 2015

I edited fstab to automatically mount my windows data partition on boot, but I screwed it up by not specifying the file system type, however that is not the problem, I was able to fix that easily. The problem was that when it failed to mount the partition, Debian automatically entered root and I guess that is to be expected in order for me to fix it, but I never configured a root password and it just gave me full root access without asking any password, not even my user password. I though that was strange so I set the root password and sure thing it asked me for the root password this time without automatically logging into root....

I then tried to lock the root account to see if it will ask me for a password or not, it did but of course I wasn't able to login as root because it was locked now and I was left with no way to access the system. I had to fix fstab from a live cd so that I can login normally as the user....

I didn't know what to search for or if that is the expected behavior if you don't set root password during installation, but it just seemed a bit strange to automatically enter root when you specifically disable root login during installation...

View 1 Replies View Related

General :: Grub - Boot From Usb / During Startup System Complains About No Root Bein Found On /dev/sdb1?

Jun 2, 2011

I have installed a new Linux distro (just to test it) on my usb memory stick, and I'm trying to run it. I don't know if what I did is correct so far, anyways here's what I have:

Grub on sda (internal hard disk)
sdb with no boot loader (memory stick)

In grub I've been doing:
root (hd1,0)
kernel /kernel-genkernel-x86_64-2.6.37-sabayon root=/dev/sdb1 vga=normal
initrd /initramfs-genkernel-x86_64-2.6.37-sabayon
boot

This seems to work (as opposed to when I forgot the root= parameter, which almost destroyed my linux on sda1 ), but during startup the system complains about no root bein found on /dev/sdb1. I also tried (hd1,0), but it didn't change much.

I'm sure I can boot an OS from usb on my computer, so doesn anyone know what I'm doing wrong?

View 4 Replies View Related

Debian Multimedia :: 'Startup Disk Creator' For Debian Squeeze?

Jun 14, 2011

Found this 'Startup Disk Creator' in Ubuntu,it is useful,how we get it install in Debian Squeeze? There's a Unetbootin for Debian,but it pull in lots of qt stuff,I don't like it.

View 2 Replies View Related

Debian :: Can't Change Permissions For The HDD Without Login On Root And Root Login Are Not Allowed?

Jun 16, 2010

How to enable Root login...i cant copy or move something on the HDD...I have administrator rights and password for root but i cant change permissions for the HDD without login on root and root login are not allowed .

View 10 Replies View Related

Debian :: Install Debian Root Into Software Raid Partitions Sda2 And Sdb1?

Mar 2, 2011

I got two harddisks, sda and sdb. Is it possible to install Debian root into software raid partitions sda2 and sdb1 leaving all other partitions 'normal' (not-raid)? do partitions sda2 and sdb1 need to be exact same size and position?

View 4 Replies View Related

Debian :: Auto Login As Root In Debian Lenny?

Oct 2, 2009

is there a way to auto login as root? login in window preferences won't allow me to select rootPS before anyone starts on the me bad, I'm a programmer using it on a closed embedded system, and need to link to others software, and need to be root

View 6 Replies View Related

Debian :: Delete A File On Every Startup?

May 20, 2010

I would like to delete some files stored in the personal directory, say .adobe, .macromedia, .xsession-errors, on every start-up or shutting down. I can do it with cron but I would like to learn different (simpler) options. The thing is, I haven't been able to input the proper terms in a search engine. Note that these files must exist in their default location during the session. This is, I don't want to make them links to /dev/null or move them to /tmp.

View 8 Replies View Related

Debian :: Bashrc Execution On Startup

Aug 11, 2015

I'm not sure if this is a Debian-specific question or a KDE question.

FYI:
uname -a
Linux DESKTOP 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) i686 GNU/Linux

(Running KDE).

Question:
Upon logging in (typically, for the first time each day) I would like to see a console window/shell or a simple terminal-emulator/shell automatically open up.

The reason is: In order to get my .bashrc to execute I have to log-in, then bring up an xterm or some other terminal-emulator.

Background: My .bashrc has a once-per-day routine/section that will set up my desktop to look the way I want it on my initial log-in (primarily with my Java applications up/running and displayed and waiting for me).

Then, later on that day whenever I bring up new bash shells, my .bashrc is executed but that once-per-day routine/section is no longer executed.

View 5 Replies View Related

Debian :: 8.1 - Xmodmap Script On Startup

Oct 22, 2015

I recently installed Debian 8.1 on an old (2008 maybe?) macbook. I would like to use the right hand side apple/command key as a right click. I've been using xmodmap commands in the terminal, but I'd like to write a shell script to do it automatically on boot or on login.

I've tried init.d, I've tried crontab, I've tried rc.local.

The xmodmap commands I am calling are Code: Select allxmodmap -e "keycode 134 = Pointer_Button3" and then Code: Select allxkbset m

my shell script is as follows
/usr/keymap
Code: Select all#!/bin/bash
xmodmap -e "keycode 134 = Pointer_Button3"
xkbset m

I've modified keymap to be executable, just typing /usr/keymap into the terminal will map the keys correctly. I've tried with and without the .sh suffix. I've tried adding sh before the file path in crontab. I've also tried adding sleep 20 inside the shell script as well as inside crontab joining the two commands with &&

View 4 Replies View Related

Debian :: Kdenlive Crash On Startup

Feb 7, 2016

I have jessie and i have installed kdenlive 0.9.10-2, and it crashes at startup. I try to get a debug trace:

(gdb) run
Starting program: /usr/bin/kdenlive
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
__strcmp_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S:29
29../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: No existe el fichero o el directorio.
(gdb) bt
[CODE]

View 2 Replies View Related

Debian :: Service At Boot / Startup

Mar 1, 2016

I wanna know why the services ssh & mpd don't run at system boot / startup ?

I am under Debian Jessie 8 Stable , my uniques repos are : main contrib non-free

I don't use extra repositories.

i try installing , and rebooting , and dont work , after I try

First i stop and disable it :
Code: Select allsudo systemctl stop ssh.service ; sudo systemctl disable ssh.service ;
sudo systemctl stop sshd.socket ; sudo systemctl disable sshd.stop

# This dont make anything :
Code: Select allsudo systemctl stop mpd.service ; sudo systemctl stop mpd.service

[Code] ....

View 4 Replies View Related

Debian Configuration :: Run Bridge At Startup

Apr 25, 2016

I have got a debian (v3.16.7-ckt25-2) for server (without X). There is a br0 bridge connected to eth0 network device. It works fine when I start it manually by

Code: Select all# ifup br0 but I cannot start automatically at startup.

there was a missing line in /etc/network/interfaces:Code: Select allauto br0

View 1 Replies View Related

Debian Multimedia :: KDE Crashes On Startup

Mar 28, 2016

I am new to debian. I run debian on a laptop with nvidia geforce chip 740 m (optimus), it has been working great until today when i turned it on , the start screen did not show up and it went straight to terminal mode. Starting the kdm service manually does not do anything.

View 6 Replies View Related

Debian :: Get GUI From Startup Login With Lenny?

Apr 14, 2010

I tried running a racing game I downloaded yeterday and the screen just went black and started flashing on and off occasionally for a minute. I rebooted the system and after an error free boot it asked for my login. My problem is that I login fine but only get a terminal prompt and no regular GUI screen...

View 2 Replies View Related

Debian :: Add 'sudo-ed' Command On Startup?

Sep 21, 2010

what is the easiest way to add single command to startup? (has to be run as root)

View 1 Replies View Related

Debian :: Cannot Connect To Internet On Startup

Jan 11, 2011

I'm setting up my first home server. I'm running Debian Squeeze and I can't get my machine to connect to the internet on boot.The only way I've been able to is by logging in and running the following commands in exactly this order:

Code:

sudo dhclient
sudo ifdown wlan1
sudo ifup wlan1

My /etc/network/interfaces looks like this

Code:

auto lo
iface lo inet loopback
auto wlan1

[code]...

I should clarify that by not able to connect I mean that I see the DHCP discover attempts but it fails after a few attempts and says "no DHCPOFFERS recieved" So I tried putting the above commands into a script and invoking that script in /etc/init.d/rc.local and I can see that it runs but I have the same problem. I need to be able to reboot my machine as I'll be administering it remotely.

View 8 Replies View Related

Debian :: How To Turn Off Services That Run At Startup?

Dec 30, 2009

so, where is the file determinaing what services start?I need to turn off freshclam, clamav-milter, and rsync...how do I do that from console or can I just edit a .conf somewhere?

View 7 Replies View Related

Debian :: Send Mail On Startup?

Jan 3, 2011

I am trying to send a log file mail on startup of debian system but nometter what I do it does not work.
I tried to create an init.d script or adding to rc.local but none works. Odd thing is only the email part is non-functional the rest of the script works as it should so there is no problem. I also give the full path to the command but no results.

cat /var/log/god_of_the_logs.log | mail -s "blah blah" xxx@xxx.com"

I can send emails by running the same command as a user or root but as a startup script it just does not work.

View 2 Replies View Related

Debian :: Startup Window Not Clear / What To Do?

Sep 20, 2010

Debian 60 (squeeze, testing) 64-bit

The window for selecting kernels at startup is NOT clear. Please advise how to fix it.

View 13 Replies View Related







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