Ubuntu :: Add Command On Boot?
Jun 30, 2010I need to add a root command before x11 loads. How do i do that?
View 8 RepliesI need to add a root command before x11 loads. How do i do that?
View 8 RepliesOut of curiosity and stupidity, I configured 2 extended partitions to LVM in gparted. Now, I can't boot into X window, and there's only GRUB command line during boot.
View 5 Replies View RelatedIs there something I can add to my "menu.lst" file to give me the option to boot Ubuntu into command-line only without needing to edit system files every time I want to switch
View 6 Replies View Relatedhow i run the following lines onboot
code:....
/media$ sudo mount /dev/sdb1 /media/mediaStorage1
/media$ sudo mount /dev/sdc1 /media/mediaStorage2
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?
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.
How do you actually install ubuntu? I cant figure it out, its nothing like windows! I download the unetbootin to make a boot usb drive.. I did that but when it boots it ask goes blue with a thing flash default. Then it asks me to press tab, when I do that it comes with a cmd. What should a write? If I click esc on the keyboard it brings a cmd line. If I write like E:dir it says kernel invalid. What is a cmd that runs the cd on a boot for ubuntu. How hard is to install it??
View 9 Replies View RelatedHow can I preserve the command history in/for Zsh after boot?
View 2 Replies View RelatedI use two monitors,my problem is that I want to change the setup,so that the other monitor becomes default.There's no problem with my BIOS settings and I have tried every GUI tool that could help me(to my knowledge).Well I've found this URL...that helps a lot but I want to execute the command every time I boot before the splash screen(so that the login screen appears on the right monitor).I've tried rc.local but had no success.Any ideas on how to execute the command at boot time?
View 9 Replies View RelatedIn a computer, the brightness can't be changed with the fn key (and the brightness starts at 100%) :S I can set the brightness with this command from a shell: sudo setpci -s 00:02.0 F4.B=25 In Ubuntu 10.04 worked set this command in /etc/rc.local But in Ubuntu 11.04 I did this, but it didn't work. In which file can I set a root command in the boot in Ubuntu 11.04?
View 3 Replies View RelatedJust installed Ubuntu 10.04 LTS as a VM on MAC OSX. I want to auto boot to the command line, but the GUI keeps coming up. I ran "sudo update-rc.d -f gdm remove", but it didn't work.
View 8 Replies View Relatedi 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.
View 2 Replies View RelatedI 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"
View 3 Replies View RelatedI 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?
View 1 Replies View RelatedI 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.
In dealing with the Nvidia Powermizer, I have to set it to "Prefer Maximum Power" mode from adaptive mode in order that I can avoid laggy in using my GUI. However, it doesn't save this setting so I have to manually tweak it everytime........
Someone on the web taught me to use the following command line:
nvidia-settings -a [gpu:0]/GPUPowerMizerMode=1
running it in the terminal it will set to the mode I want.
Would I be able to make my computer run the above command in terminal everytime it starts? I tried to put the command in the start up applications and it seems not working.
I recently installed Ubuntu 10.04LTS on my computer and realized I wanted to give 11.04 a try. So, using the Update Manager both times, I applied all updates then upgraded to 10.10 then to 11.04.
Here's where the problem starts. Grub loads fine. I choose Ubuntu. I briefly get a purple splash screen then a black screen with some text that looks like Ubuntu is trying to load (I've attached a picture of this screen). This screen flashes a couple times then stays up and nothing happens afterwards. I can input text and commands but I get no response. Not even an "invalid command". The only thing I can do is press CTRL+ALT+DEL and my computer will reboot.
I have Ubuntu installed alongside Windows 7 on a 50Gb partition (plenty right?), AMD 64-bit dual core processor, and an ATI Radeon HD 3200 graphics card. This is on an HP Pavilion dv3 laptop.
Would be possible to have a dual boot with Ubuntu only loading the things necessary for command line use of emacs?
I thought it might be good to be able to take notes for class on a quickly booting command line. (It has the added benefit of being less distracting)
Does it work like that? Could a pared down command-line only install be sufficiently faster on boot-up? Might another flavour of Linux be more suited to the task?
I am having one Huawei EC156 modem for my wireless broadband connection. Everytime when I boot the machine, I have to run the following commands in the terminal. The commands are as follows
Code:
cd /etc/usb_modeswitch.d
followed by
Code:
sudo usb_modeswitch -I -W -c 12d1:1505
I would be very grateful if I can have a launcher which run this script automatically in terminal by clicking on it.
I don't recall my Ubuntu password.**
I found instructions regarding recovery.
They involve pressing Ctrl-Alt-F1 while booting the Ubuntu live CD.
If I allow the live CD to boot, I arrive at a Ubuntu GUI.
However, if I press Ctrl-Alt-F1, the monitor (HDMI TV) goes blank and indicates "no signal
correcting the password from a GUI (can I just go to a command prompt from there somehow, and work from that command prompt?) or getting my video to display when I press Ctrl-Alt-F1?
** (I remember trying to set up the system with NO password).
It's absurd to require one.
Especially so if a person with a live CD can simply change it (I guess at least the change would be detected).
I can't boot Ubuntu 9.10 on this computer (on my other computer it works fine). When I try to run it from the CD or USB I see a screen full of colored lines, and when I try to use safe graphics I get to the shell but the whole screen is blinking and I can't type any command. Anyone knows how to solve it? My graphics card is GeForce 7300 LE and on my other computer (the one that can run Ubuntu find) has an on-board graphics card.
View 2 Replies View RelatedI know there is a way to do this... What do I need to install to give me this option from the login screen?
View 2 Replies View RelatedI recently updated, and now when I boot it only goes as far as grub command line. There is no grub menu. The computer is a Dell Inspiron 8600 laptop with only Ubuntu installed -- no dual boot, no weird partition schemes. Originally installed Ubuntu 09.04 on this computer, upgraded a couple times and it currently has (had) 10.04.1 LTS running. The update should have upgraded from kernel 2.6.32-23 to 2.6.32-24. I can boot with a live CD and mount the hard drive. The drive seems fine, so it appears to be simply a grub config issue. I have to boot with live cd to get online to check for potential solutions. So I'm taking some notes on how to use grub.
View 4 Replies View RelatedI just installed Maverick Studio on a new hard drive, and am using an NVIDIA GeForce 7300 LE GPU. If I boot into the 2.6.35-22-generic kernel, everything runs fine, but if I try to boot into either the 2.6.35-20-Low Latency, or 2.6.33-29-Realtime kernels (installed from Synaptic), the computer boots straight to a command prompt instead of the desktop. Does anybody know what causes this? I need to be able to use one of these kernels for doing music production.
View 1 Replies View RelatedI installed Ubuntu Netbook Edition 10.10 on my Eee PC 901 (the one that has 2 SSD's). It all went fine, and I ran the update manager straight after install and config. It installed the updates (all 198 of them!) without error. I was prompted to restart, so I did. I got the error "udevadm trigger is not permitted while udev is unconfigured". I found out that this error is well documented, and I followed the guide at [url](apparently it affects all variants, not just UNE).
It went O.K., until I tried the command "sudo chroot /media/newroot". I got the error that "cannot run command '/bind/bash': no such file or directory". What should I do?
I cannot boot into and earlier kernel (problem/current one is 2.6.35-23-generic) I can only fix it via live USB stick.
Running 11.2, Is it possible to configure it to boot directly to a command line, outside of the GUI....as a default
View 9 Replies View RelatedI have finally gotten Samba working! Turns out there was no domain set, even though I remember setting it during the install process...hich brings me to yet another question... Now that I have a mount command that works, how do I insert this such that it is run during the boot process? I want to automount a few Samba shares. Is this a good idea?If not why not? If so, where do I edit to add the mount command?
View 3 Replies View RelatedI have Fedora 14 along with vista. when I boot fedora, it gives following error at the beginning: Starting udev:udevd-work[505]:error opening ATTR{/sys/devices/pci0000......./usb3/......../power/level3} for writing. No such file or directory and halts right after- Starting atd :[ OK ] However I can use fedora in command mode. I had installed some softwares & had removed Evolution before this problem started.
View 9 Replies View RelatedI run XBMC media center software which is built on a minimal Ubuntu install. I was running a version built on Karmic and I had the following line in my /etc/init.d/rc.local and it always ran without a hitch:
Code:
mount -t cifs -o file_mode=0777,dir_mode=0777 //192.168.1.20/disk7/xbmc_thumbs/Thumbnails /home/kevin/.xbmc/userdata/Thumbnails
Recently, I upgraded to a version built on Lucid and now that fails to create the mount on boot up. Here is the entire contents of the file:
Code:
#! /bin/sh
### BEGIN INIT INFO
# Provides: rc.local
# Required-Start: $remote_fs $syslog $all
[code]....
What is the simplest way to boot to command line rather than gdm ?
I've seen post to change
# The default runlevel.
id:2:initdefault:
to
id:3:initdefault:
and
update-rc.d -f gdm remove
update-rc.d -f kdm remove
update-rc.d -f xdm remove