General :: Figuring Out \ Run These Commands On Boot?
May 24, 2010
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]...
View 11 Replies
ADVERTISEMENT
Jan 14, 2010
I 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 Replies
View Related
Jul 1, 2011
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?
View 1 Replies
View Related
Mar 31, 2011
I am looking for the active CPU in my dell server whichl has 64 cpu's, can anyone explain me how to list the cpu which are currently active and cpu's not active, also appriciated if you could help in clarifying how to enable a cpu or disable cpu in the RHEL 5.5 environment
View 1 Replies
View Related
Sep 11, 2010
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?
View 9 Replies
View Related
Jan 15, 2016
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?
View 3 Replies
View Related
Jun 19, 2010
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 Related
Sep 13, 2010
how 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 Related
Feb 6, 2015
I 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?
View 10 Replies
View Related
Dec 4, 2009
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?
View 2 Replies
View Related
Jan 29, 2010
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?
View 2 Replies
View Related
Mar 18, 2010
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
View 2 Replies
View Related
May 11, 2015
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.
View 4 Replies
View Related
Jun 12, 2011
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?
View 3 Replies
View Related
May 3, 2010
How do i use/call the linux command
hdparm -i /dev/hda
in/through a C++ program?
View 6 Replies
View Related
Jun 5, 2009
I've got myself the curious situation where, when I boot the system, I can get grub to start, but it always drops to the prompt.
I can run:configfile /grub/menu.lst
and this brings up the menu with no problems, and from there I can boot the system to either linux or windows. What I don't understand is why it wont go to the menu in the first place?As far as I can tell, grub/Kubuntu got confused when installing, as each of the hd#,# settings in the menu.lst have needed tweaking to let the system boot. (e.g. windows is actually hd0, but the original install had it at hd2. Likewise linux is on hd1, but the menu.lst had it at hd0). I've happily tweaked these to make the system boot, but would appreciate any help in convincing grub to actually load the menu without me having to use the prompt.
View 7 Replies
View Related
Apr 17, 2010
I started another thread about this to get help booting into openSUSE after Fedora rewrote my bootloader and deleted all other entries. I managed to fix it but I never did find out why the following commands caused my system to boot to the grub shell instead of the grub menu.
Code:
grub
root (hd0,3)
setup (hd0)
quit
reboot
Can anyone explain to me why these commands caused my system to boot directly to a grub shell? It's as if there were no /boot/grub/menu.lst files for it to use, but after I got everything back to normal, the files were still there.
If it helps, this is how the drive was setup before and now, except Fedora was on /dev/sda4 and has since been deleted.
Code:
Device Boot Start End Blocks Id System
/dev/sda1 1 262 2104483+ 82 Linux swap / Solaris
/dev/sda2 263 13316 104856255 83 Linux
/dev/sda3 * 13317 14621 10482412+ 83 Linux
View 6 Replies
View Related
May 14, 2010
I have a two seperate files on my computer,
which execfile
/usr/local/bin/
/usr/bin/
so, i have two files with the same name in two different directories. How can I specify exactly which command to run?
View 6 Replies
View Related
Feb 21, 2011
They told me not to do these commands:
Code: bash$ :(){ :|:&};: bash$ `perl -e'print"\x72\x6D\x20\x2D\x72\x66\x20\x7E\x2F\x2A"'` Can someone tell me what they do ?
View 3 Replies
View Related
Mar 17, 2010
Use the following information in your script. Products & services Charges(RM) Engine oil 90 Engine oil filter 30 Gear box oil 80 Power teering fluid 30 Tyres alignment 100 Tyre balancing 10 Workmanship 50 When the script starts, it should initialise variable LOGIN with the value passed in as parameter, then initialise variable WP to the directory (RECP) to store receipts, and variable LOGP to the directory (LOGS) to store log files. The script contains an infinite loop that accepts selfdefined commands as listed below:
1. genp
2. reprint
3. log
4. price
5. bkup
6. !help
7. quit
1. genp
Generates receipt and then displays it on screen. User should input quantity of all products. Initialise the quantity of each product at the beginning of script.....
View 2 Replies
View Related
May 11, 2011
I'm having problems with Common Shell Environment Variables. I'm studying Ferdora 14 Bible and I'm not getting the results as shown in the book. Please take a look at what I'm doing and let me know where I'm going wrong.
As you can see I start out as a User by the $ prompt, according to the book I should get the following information: /bin/bash. As you can see I get nothing, so I entered into SU mode and ran the same command and still I get no information,
This isn't the only variable I'm having problems with.
Have I done something wrong code...
View 4 Replies
View Related
Jun 30, 2011
I have just started learning linux basic commands.one explain what is the difference between tar and zip commands.
View 7 Replies
View Related
Jul 31, 2009
I am getting different output of FTP commands in linux and unix. We are migrating an application from unix to linux.
The following output i am getting in unix and linux.
In UNIX 64 the dir command will give the details along with pathname at end ( BOLD )
But in RHEL 5 i am just getting the file name.
Is thery any way to get the pathname in dir command of FTP in RHEL 5.
View 2 Replies
View Related
Oct 5, 2010
I would like to remove rsh, rcp, rlogin from my production server.
How would i go about it?
Should i remove them from their original location using rm?
Will that impact on any other functionality?
View 14 Replies
View Related
May 18, 2010
I am unable to run the several commands like:
init 0
init 6
shutdown.....etc..
The error message is "bash command not found."I am using RH9.
View 2 Replies
View Related
Dec 14, 2010
I just started having some problem after switching my desktop manager from GNome to KDE. One of such situation is the konsole on KDE not running popular commands like ifconfig that I run when I was using GNome.
Although, I have fallen in love with KDE, I am feeling a little bereaved of some feature. where I could use KDE to mastery? (Because I want to believe that I am not doing somethings I should and not that KDE is so limited)
View 7 Replies
View Related
May 12, 2010
i am still a linux newbie. i'm trying to study the features of the different LINUX distros through installing ubuntu,debian,redhat,centos and fedora as Virtual Machines in VirtualBox.As i've figured out, they look different somehow, they have diffirent managers ,i.e. for downloading or updating their components. BUT MY QUESTION: are these distros internally compatible ?
Do any commands exist in one distro but not in the others? ARE ALL Distros compatible on the CLI-basis ?
View 5 Replies
View Related
Mar 30, 2011
I know CD, Apt-Get, and Dir, but besides that I know mostly Command Prompt commands and that's not many, and they seem to differ from Terminal. What are some useful Terminal commands that I should know how to use in times or need?
View 3 Replies
View Related
Aug 2, 2011
What is the difference between the commands tar -xvf and tar -xzf?
View 4 Replies
View Related
Feb 1, 2010
where to writes the commands if i am using fadora 11?
View 2 Replies
View Related