General :: Set Parameter At The Boot Command Line?
Aug 20, 2010
I am following an instruction on the Internet to set up a timer=1. "You can force use of the timer interrupt by using the timer=1 module arameter (or oprofile.timer=1 on the boot command line" When I type "modprobe oprofile timer=1" at the command line, I got a warning message saying that "Deprecated config file /etc/modprobe.conf" So i want to try other way by setting it at the boot command line.
I am very new to shell scripting.How does one pass a command-line parameter to a shell script?for the below program #/bin/bash mount -t cifs -o user=ramkannan,password=Linux123@ //10.200.1.125/ramkannan /MT cd /MT/test date=`/bin/date "+\%Y-\%m-\%d-\%H-\%M-\%S"` mysqldump -uroot -pram2@ employeedb > $date.sql gzip $date.sql
I want to pass parameter for everything,i tried in google and did but iam getting error while passing parameter to all
#/bin/bash mount -t cifs -o user=$1,password=$2 //10.200.1.125/ramkannan /MT cd /MT/test date=`/bin/date "+\%Y-\%m-\%d-\%H-\%M-\%S"` mysqldump -uroot -pram2@ employeedb > $date.sql gzip $date.sql
i was getting error while passing parameter to all.
I want to use the output of a previous command as a parameter to another command. For example: to know where "nice" is stored i typed: which nice output: /usr/bin/nice now the second command i typed is: ls -l /usr/bin/nice Is there a way to have a single command like: ls -l which nice ?
I have a backup schedule running a full backup everyday. I'm using webmin to manage these backup now. The problem is when the dump command sends a prompt asking if we want to rewrite the tape, Webmin does not display this prompt and we end up having to terminate the backup -> erase the tape(which takes a long time) and then run the backup again.I was wondering if there is a technique that could be used to pass "Yes" as a parameter to the dump command, much like in windows? or if there is a more efficient way of getting this done.
It used to be with (old) grub you could hit a function key and add a runlevel option to boot a console, but I don't know how to do this here, wanting not to edit the grub config file, as seems the only apparent option: I'm trying to boot into SimplyMepis where there is no rescue menu option, so need the prompt?
I have Debian 6 installed on my netbook which I tend to spend more time at a command prompt then gnome so I would like it to boot to the command line with the same services as the default with the option to "startx"
First off all, I'm booting from a large MEMDISK using PXE (900MB) . Due to our environment, I cannot decrease the size, nor move files to a nfs/iSCSI/... environment. Everything needs to be in that MEMDISK.
Now, when I try to run the OS, I get out of vmalloc space. How do I increase it to a number which allows such a large image to be mapped? I tried the parameter "vmalloc=1280M", but with that parameter, I don't get past the Booting the kernel screen.
Memory should not be an issue, since the machine(s) have at least 2GB RAM. (900MB MEMDISK + 256MB for other kernel stuff + 768MB for user stuff). The machine(s) have a Pentium 4 Extreme Edition processor, with hyperthreading and SSE2, but no EM64T.
How can I boot the system, and get past that message? Decreasing the MEMDISK size is not possible too. It is at the smallest we can get with our userland + kernel + modules.
i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?
Despite my best efforts to have them use debian or ubuntu server, a client wanted ubuntu 11 on the new server they built. It runs all the services I need it to, but would be nicer to have that server boot to command line. It seems nothing is going to work. I have tried:
1. changing /etc/default/grub to "quiet splash text"
result: blank screen
2. sudo update-rc.d -f gdm remove
result: no change
3. echo manual | sudo tee -a /etc/init/gdm.override
result: blank screen
Has anyone gotten Ubuntu 11.04 to boot to command line out there?
I know my way around MS Windows much better, but I just don't feel right trying to program something for Android on a Microsoft operating system. I am interested in Android programming so I followed the instructions on [URL] to install the environment on my computer...
I just installed the JDK, SDK, Eclipse successfully (or I assume):
* When I get to Step 4 where I'm supposed to run 'android' it will not run. I get the error message "android: command not found" (I am definitely in the right directory).
** When I double-click it in nautilus, it opens up in gedit. I can set the permissions in nautilus (through the properties - Allow executing file as a program) and get it to work,
I have a small board that has a static ram board attached to it. I have two different programs that each write to a byte of memory in the static ram board. I get a file descriptor to the device memory with the following code:
int phymemfd; phymemfd=open("dev/mem, O_RDWR | O_SYNC);
This opens the physical memory for both reading and writing. Next I get a pointer to the beginning of my ram board.
I do this same code in two processes that are both running and this works fine. Now, if I take out the O_SYNC parameter, one of the programs gets into some sort of weird state.My understanding of the O_SYNC parameter is that it cause the process accessing the memory location to block, not allow another process to run, until the first process has finished writing to it.I can see that if my program doesn't block, I wouldn't really know what was in the memory location, but would I can't see how it would cause any other type of system problem.
EDIT: sudo /etc/init.d/gdm stop worked, not sure why it did not before. Sorry for the whining!
I need to boot Ubuntu into a non-x, command line mode. So I can install an nvidia driver for my new GeForce GTX 260 (I had a GeForce 7900 running on my Ubuntu system using the synaptic open source 185 driver for nvidia, but there is no driver except the one I downloaded just now from nvidia's site for the GTX 260 card). That requires there be no X session running, not even in a separate domain so to speak. There is no rescue mode in Grub2. Recover mode in Grub still boots an X session (Gnome). Alt+F1 appears to be a clean command line terminal but even that does not work because the nvidia driver installer script sees through that ruse and knows there is an active Gnome session. I tried sudo /etc/init.d/gdm stop and that did not work. I tried ctr+alt+backspace and that did nothing.
What can I do? I tell you some days linux is just too frustrating, about to just toss the baby with the bath water and go back to Winblows. Bought a new graphics card today, and here I am stuck not being able to even install the driver from a command line prompt, geesh.
i have successfuly installed ubuntu karmic inside my windows 7. After an update, i restarted it. but it didnt boot ubuntu. instead it shows grub's command line. what should i do? all of my java projects/programs is in there.
I have used the below command to do that successfully for the previous version of ububunt, but this time I failed to do that with Ubuntu 9.10. I know I can do that manually by "sudo /etc/init.d/gdm stop" command. I try to change the name of /etc/init.d/gdm files, but the problem still exist.m"sudo update-rc.d -f gdm remove"
I just installed a fresh install of 9.10 on my amd64. when it starts it locks up right away. i know that this has to do with my nvidia card. i've had to do this in the past. but since it locks up i have no way to get into the command line. ctl-alt-F1 does not work. is there a way to just have it boot right to the command line without loading up gdm?
I did a clean install of Lucid from the alternate installer, onto a generic Intel/Celeron PC box. I used a command line only install, and used the entire hard disk; there's no other OS and no other partitions on the disk. Install goes along and finishes fine, reboots, and I can log in. But if I call sudo reboot, or shut down the machine then restart it, the boot process hangs. I see the POST screen, then a flashing cursor on a black screen for a few seconds, then the monitor goes into standby. I see no messages or any kind of output to the screen. I get the same problem using the Lucid Server installer and also when installing on a different box (Dell Intel/Celeron). I also tried running all the updates after install but before any kind of reboot...same thing.
This only seems to be happening using a command line only version of Lucid. Lucid GNOME/XUBUNTU install and work OK on both boxes. I can boot from a CD or USB key, but not sure where to look or what to check.