General :: Auto Run Commands At Boot?
Jan 14, 2010I am a newbie using Redhat Linux Enterprise 5.0. I am trying to figure out how to autorun these commands at boot. cd ixpio./ixpio.inst
View 6 RepliesI am a newbie using Redhat Linux Enterprise 5.0. I am trying to figure out how to autorun these commands at boot. cd ixpio./ixpio.inst
View 6 Repliesis there a way to setup a file to click that will auto activate commands?example, i want to load a program on wine and jump straight to it. but the program is in "program files" and "fallout tactics" so to load in terminal i have to use $ cd ~/.wine/dosdeviecs/c:/Program Files/Interplay/Fallout Tactics/
$ wine BOS.exe -wgand i want to find a way to activate BOS.exe with -wg either by a launcher or by the "configure wine" options but i dont know what -w or -g associate with?
I've got an annoying problem that 'man' and some other commands do not auto-complete (via TAB). e.g. typing: man rsyn (TAB, TAB, TAB, etc) will not auto-complete to 'man rsync' however, if i 'sudo -s' & then try the above, 'man' auto-completes everytime. (Directories always auto-complete successfully) My ~/.bashrc contains:
Code:
# enable bash completion in interactive shells
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
[code]....
I just started learning how to manipulate Linux (Debian Lenny) about a month ago with the intention of ditching Windows eventually and learning to configure serversn the process. But, I still need Windows for certain things. I downloaded and installed VirtualBox (I know, VMWare is better, but I didn't know that at the time and don't want to go through the process all over again) and got Windows XP working with a tap interface and bridge interface to get the guest OS to talk to the home OS and connect to the Internet.
My only problem is that the tap interface and bridge interface disappear when I reboot and then I have to issue the commands to set them up all over again. I know there is a way to write a script to run on boot to create them and bring them up, but my whole technical career has been with CLI-based stuff, not scripting. I'd like to eventually learn it, but I'm a learn-by-doing type. Basically I need the following commandsto be implemented at startup:
sudo tunctl -t tap1 -u allen
sudo brctl addbr br0
sudo ifconfig eth0 0.0.0.0 promisc
[code]...
I downloaded rhel 5.5 CD 1 iso to my PC, and used it as a virtual CD-ROM to kickstart HP DL380 G4.Here is my questions:
1. how can I cut and paste boot commands (very long strings) from my PC to iLO remote console?
2. is there anyway I can get "boot prompt" by ssh to iLo's IP?
3. after kickstart, I want to eject the virtual CD-ROM / media, I have tried the following method in the kickstart profile, but all failed, after reboot, it still boot from the virtual CD-ROM. So how can I reject the virtual CD-ROM for rhel 5.5 kickstart?
I wanted to know how can I make fsck automatically fix HDD errors when it needs to check HDD during boot up and do not ask user for it . I found some of fsck related scripts in /etc/init/ and /etc/init.d/ but I don't know what to do with them.
View 7 Replies View RelatedDoes anyone know if there's a way to make nano support auto-complete and auto-bracket closing?
View 1 Replies View RelatedI code primarily in jQuery/JavaScript, and I'm looking for a text editor for Linux that has auto-indent and auto-outdent (seems to be tough to find that). Any suggestions? I've checked Gedit, Cream, vim, Bluefish.None of them seem to have this feature.
View 2 Replies View RelatedI've gotten hold of 3 old pc's that I've installed with Jaunty & use Loki as a quick and dirty render farm manager.
I've got one display between them and so i can check that each one works on its own as a 'grunt' of the 'master' (my main pc).
To get the grunt to work I have to log in to a cli (to save on ram), start nm-applet (the only way the wireless cards work at mo) & start Loki in grunt mode. All whilst connected to a display.
I'd like to learn how to script all this so I can simply switch the pc's on without needing to use a display. Do i need a boot script and how does that work?
How do I set them to auto log in to command prompt?
I'm trying to follow a few commands that have been recommended to to get my system to boot again .
The following are the commands:
Code:
Then modify the first command I gave you to read:
Code:
All other commands should work:
Code:
At the end, you should also run the following commands:
Code:
And here is the terminal readout from the first few commands:
Code:
Am I right that at this point I should issue the " -f " command or should I issue the -f at the end of the last command?
When I try to run programs from root terminal I get the error
Code: Select allQDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
No protocol specified
kate: cannot connect to X server :0
I found a solution: I do
Code: Select allxhost SI:localuser:root
but I have to do it after each reboot. I tried to put this command in rc.local but it did'nt work. How to do this auto?
this string of commands pops up when i try to boot up linux in any mode.fsck from util-linux-ng 2.16/dev/sda5:clean, 207703/1966080 files, 1500210/7859793 blocks (check in 2 mounts)i have no idea about computer stuff so
View 2 Replies View Relatedhow can I use one command to search through boot scripts for commands (that are being used in the script). Preferably using grep.
View 1 Replies View RelatedI have a server in which I'm trying to install Debian into. There's no BIOS, only EFI boot. The vendor locked it down so there's no way to see it or get into it.
The Wheezy 7.8 netinst CD has EFI boot parameters and works on everything I throw it in, except this one server. Booting it up, the code doesn't see the EFI and boots into normal mode, negating every chance to install it (dozens upon dozens of failed installs).
During boot, I press the [TAB] at the Debian Linux installer menu and get the load parameters (/install.amd/vmlinuz vga=788 etc). What parameter can I add to this line to get it to run in UEFI mode so we can install it?
I have openSUSE 11.2 and boot using GRUB. I was looking on start-up options for 11.2 and saw where it said
splash=silent
and
quiet showopts
I was wondering what they meant?
I want to turn off CPU throttling, and I notice how each time opensuse boots up, it imposes it.
I would like to know where it does this. I suspect - but actually I don't really know - if it's the HAL daemon that does this. Could be.
In any case, rather than have to key it in each time, I put the relevant commands (cpufreq-set) in boot.local. No effect.
I suspect boot.local might not be the best place for such a heavy duty command like this one.
Are there any there places I could put it so that it executes automatically?
I am new to Debian and I have been trying to find a way to auto login to a users account upon Debian booting. Is there a way to auto login to the root account upon a Debian boot? Is it possible to do this with GNOME installed as well as Minimal?
View 1 Replies View RelatedI have installed opensuse 11.3 .But I do not know how to boot system auto.
View 3 Replies View RelatedI originally had Ubuntu 9.10 desktop. Then I resised the partitio with the ubuntu moblin installer and installed ubuntu moblin remix(which is an interesting little distro!), but now, when I turn it on, it auto highlghts the moblin partition with (boot in 5, 4,3...). I know this is not a bug, it's just a pain.
Does anybody know how I can highlight anther entry?
I have a 500 GB ext4 formatted HHD which i have to manualy mount when ubuntu starts. I have read much on the topic but am still unsure what i should add to fstabmy output when entering "sudo fdisk -l" is
"Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
[code]....
I'm a new user of Linux & I have recently written an application using Glade and GTK for a touch screen interface using Debian V5. The software is now complete and working so the simple bit (i thought) would be to get the software to load when the touchscreen is switched on. I have made a link to the software executable using the system/prefs/sessions option but the software seems to load on startup without the user interface. Looking at the system manager the software does seem to be running but it seems to be in the background. If i load the programme manually the GUI works.
View 1 Replies View RelatedI am having a strange issue with my xserver. I do have nvidia graphics. My system is Debian Squeeze with limited packages from Sid to fix issues when needed. Currently I don't think that there are any installed from Sid that have not since been updated through testing. It also contains one package from Lenny that does not exist in Testing for some reason, ogle the dvd player.
After an update the other week my gui failed to come up. That is not that unusual with nvidida. So I reinstalled the driver and all seemed to be fine until the next reboot some days later which failed. I reinstalled the driver again and all seemed fine.
The machine did not come out of hibernate cleanly some days later and upon reboot no gui
I have tried the whole group of driver packages out of sid, testing, stable. All are afflicted with the same problem. When the box drops back to the login if I login and issue from root '/etc/init.d/kdm stop' then '/etc/init.d/kdm start' the gui comes up just fine. It also seams to launch much faster than it has for some time.
A friend has questioned if kdm is starting to early in the launch process. I think he may be on to something. But looking at the files in /etc/rc*.d does not seem to indicate to me that is the case. kdm has the launch number 5.
The machine has been converted to the, what is it, multi-process launch thingy, quite some time ago now, like a year maybe? These are what is in the sequence from kdm on
Code:
The install is amd-64 using the standard debian kernel.
I need to run to terminal commands at boot to get my wireless card working, the included drivers with ubuntu dosen't work for my card so I compiled my own broadcom drivers. I am on 9.10 ubuntu. I need these commands ran at boot in order for my wireless to work.
#sudo modprobe lib80211
#sudo insmod wl.ko
I have done these commands as per the readme included with the source files.
# load driver as described above
# cp wl.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless
# depmod -a
i did try to look for an open post for this, i found other items, but not exactly what i was looking for. i am not that o-fay with linux so you will have to bare with me.
firstly my disto.
Version: 2.30.2
Distributor: Debian
[code]....
How do you set PulseAudio to auto-start during boot? Just upgraded ALSA versions, but pulse audio does not appear to be starting at boot time and I have no sound. RT-Kernel-33
View 1 Replies View RelatedDoes anybody know how to have partitions (not removable media) auto-mounted at boot?It would be great so I do not have to click them for first use.By the way, may it be pre-configured in ubuntu to do that for everyone?
View 1 Replies View RelatedI am running 11.04 and have a netgear USB wireless NIC. When I am logged in I can connect to the wireless network through the USB adapter without any problems.I wish to use the machine as a part time home server and so have installed samba, LAMP etc however when I start the machine the NIC is not activated until I have logged in.
In the past I have done this but only ever over a wired ethernet connection, never wireless? Can some one please point me in the right direction?
I didn't change anything; it just stopped working on boot. I've changed permissions according to messages from log files. No good.I now get messages saying "unable to open display ' '." If I set the display (I've done this several ways, the messages say "unable to open display ':0'."
Systemd is taking control of everything basic, with almost no documentation and no configuration tools at all: rationalization by lunatics.You can make a script to run commands on boot using systemd on Jessie by creating two files: the script, in any location a file in /etc/systemd/system that runs that script..My script is called james-boot.service, placed in my /home/james/.bin directory.
#! /bin/sh
# this is run by /etc/systemd/system/james-boot.service
# Enable with sudo systemctl enable james-boot.service
# Check with sudo systemctl status james-boot.service
# If it says the service is loaded, it's OK -- inactive only means it's done running.
[code]....
This file must have ownership root.root, with (apparently) permissions 664 (rw-rw-r--).After creating, enable with sudo systemctl enable james-boot. service.Check with sudo systemctl status james-boot.service. If it says the service is loaded, it's OK -- "inactive" only means it's done running.
I'm trying to run ubuntu 11.04 (64-bit) on my hp pavilion tx2100ed but it won't boot. After the grub bootscreen it goes black and doesn't react to Ctrl-Alt F1 ..F4.
Also booting the recovery mode doesn't work
To be able to start the installer I had to use xforcevesa.
Does any one know what this can be and how to solve it?
can i force x to start in vesa mode using grub commands?
I am using Deluge on my Debian server, for a simple auto start at boot I us the following lines in the /etc/rc.localsudo -u User delugedsudo -u User deluge-webDeluge is running after boot but i wane check if its running with User account and not as root.So I did a ps -aux | grep deluge and notice a line that root is trying to run the command sudo -U User deluge-web (i think its trying).
User 1735 1.5 1.0 187680 21604 ? Sl 16:30 0:04 /usr/bin/python /usr/bin/deluged
root 1736 0.0 0.0 20924 1168 ? S 16:30 0:00 sudo -u User deluge-web
User 1737 1.5 1.1 70400 24084 ? S 16:30 0:04 /usr/bin/python /usr/bin/deluge-web
The question is what does this mean? can i leave it running, is it better to kill it if so how to prevent that it happen on start-up.