Ubuntu :: Need Grub To Pass On Some Commands To Secondary OS

Jul 29, 2011

So, I have a netbook with a 320GB harddrive and I'm testing all kinds of fun distros out. Right now I have 11.04, 11.10 daily, Jolicloud, Chromium OS, and MeeGo. Meego uses it's own weirdass boot loader, which sets things up a certain way. My computer has a touchscreen, and I had to modify some things to get it all working properly. Anyway, I reinstalled grub on my main partition (11.04), but now the command I need doesn't go through to meego.

The command is "usbhid.quirks=0x0eef:0x725e:0x40" For my other systems, I have it in /etc/default/grub in the "GRUB_CMDLINE_LINUX_DEFAULT=" line.

Obviously there is nothing like this in Meego, and a thread on their forum said I would have to configure it in whichever bootloader I'm using.

View 3 Replies


ADVERTISEMENT

Software :: Use Php To Pass Commands Onto A Server?

Mar 4, 2009

hi all how do i use php to pass commands onto a server? like i want to be able to:

1. delete the content of a file (or just delete the file and make a new one if it's easier)

2. read the content from a file

3. write new data to a file via an input box

4. run a command on the server

View 7 Replies View Related

Programming :: Pass Complicated Commands As Argument To Another Script?

Apr 21, 2010

I am attempting to script some tasks I have to do, but I have no control over one of the scripts I have to use... and they output all kinds of useless things on the screen. My goal is simple: Capture all output from their scripts, and create a progress line that only shows the most recent output from their stuff. So, here was my first solution; a file I called "spin":

Code:
#!/bin/bash
spinX(){
PROC=$1
STRT='date "+%s"'
while [ -d /proc/$PROC ];do
last3=" 'getLine $2' "

To use it, you pass it a process ID and a file that contains the output from that process. As the process continues, a kurby dances on the screen (To let you know that the process has not hanged), and the tail of the output is shown (To let you know what it is doing). When the process ends, the kurby stops dancing and the time it took is displayed.

And here is the file I call "noise":
Code:
#!/bin/bash
while [ i -lt 100 ];do
i=1
echo "Look at me count!$"
sleep 1
let "i=$i+1"
done

This does nothing but create random output, for testing. It counts from 1 to 99 on the screen. To run my test, I do the following:
Code:
(noise) &>tmp.txt & spin $! tmp.txt

It works relatively well, but it is messy. I don't like creating a temp file, and I don't like the messy syntax for calling my program. I decided that I would rather move everything into the spin program, to make using it less messy:
Code:
#Spin Psuedo code
#$1 = command I am about to run
(exec $1) &>tmp.txt & spinX $! tmp.txt

By executing the process inside of the spin code, I can get rid of the tmp file later on without changing a lot of scripts (Or move it, or whatever). I can also call it by passing the command to the script, which I find more elegant.

So here is what I would like to know:
1) If possible, I would love to get rid of the tmp file all together, and store the most recent line of output from script 1 into a variable that script 2 can print out instead... is it possible?
2) How can I run a random command that is passed as an argument? Basic ones work fine, but anything with a pipe fails me.

Example of a script:
Code:
#!/bin/bash
#myEcho.sh
echo;echo "Recieved command: ";echo $1;echo;
echo "Attempting to run command: ";echo
exec $1

Example code for passing commands to script:
> myEcho.sh "ls -al" #works
> myEcho.sh 'ls -al' #works
> myEcho.sh "ls -al|grep *.sh" #fail
# Output:
#ls: invalid option -- |
#Try 'ls --help' for more information.
> myEcho.sh "ls -al|grep "*.sh"" #fail
# Output:
#ls: invalid option -- |
#Try ls --help' for more information.
> myEcho.sh 'ls -al|grep *.sh' #fail
# Output:
#ls: invalid option -- |
#Try 'ls --help' for more information.

View 8 Replies View Related

Programming :: Python : Pass Output Of System Commands To Variable?

Jan 25, 2011

I'm trying to write a python script that will use the current user's name when interacting. Ex: when started, it should say "hello daweefolk" when I am logged in.
I've tried
Code:
username=os.system("echo $USER")
but the variable remains empty.
What is the correct code?

View 1 Replies View Related

Programming :: Open Gnome Terminal (pass Commands ) On Clicking Glade Button

Dec 18, 2010

I am working on a small project for making a small configuration tool for ubuntu 9.10 for new linux users, that make their system working easily without knowledge of the linux commands.I created a gui in glade and loaded the gui with my python program to show up, now i wish to have some python codes that can launch a gnome terminal (and also pass some linux commands to it) on the click of a button contained in the glade file.

View 1 Replies View Related

Software :: Grub Drops To Grub Prompt On Boot / But Can Use Commands To Find Menu

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

OpenSUSE Install :: Commands Make System Boot To Grub Shell Instead Of Grub Menu?

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

Ubuntu :: Pass Parameters To Grub At Boot Time?

May 2, 2010

Old Toshiba laptop model A30 -- tried various installs 8.04/9.04/9.10. They all hung trying to boot the install disks after the initial few screens. Finally, I got 9.10 to install, dual booting XP and 9.10 by choosing F6 from the initial menu, and putting an X beside:

ACPI=off
noapic
nolapc
edd=on
nodmaid

and then hitting escape.But, after the install, I couldn't boot 9.10 from grub as it hangs after about 30 seconds of trying. The live CD would not work without the above parameters being set as described above, but does work with them set! I need those same parameters passed to grub at 9.10 boot time, but I can't figure out how to do that. I've had many successful installs of Ubuntu across a number of desktops and laptops, but I never had to deal with the guts of grub before. It all just worked.

View 9 Replies View Related

Ubuntu Servers :: Automate Grub - Send Commands To It Via Ssh?

Sep 9, 2010

I have a server that is triple boot and the server is headless and accessed using ssh. So is there a way to tell grub before hand what os to choose or send commands to grub (of course I get rid of the timeout) to pick a different os other than the default one. Any ideas? I already know this is bad practice to have multiple os's on the same machine to be used as a server, but what about selecting a different kernel at start up.

View 7 Replies View Related

Ubuntu :: Repair Booting With Commands On Grub Rescue?

Oct 10, 2010

i have using ubuntu for 3 days with no problem i have 3 operating system vista,7,ubuntu vista and ubuntu on c: drive today i want to use vista for something and when i open it on ubuntu boot menu my laptops recovery try to recover and just give an eror like:EROR with 200 punto when i restart computer i just saw eror: no such partition Grub rescue> command screen i have no recovery dvd and ubuntu cd now i left them to my friend so can i repiar it just with commands if ubuntu is demaged because of recovery screen on D: partition i have win7

i just start using ubuntu i dont know any thing about it

View 5 Replies View Related

General :: What Commands Are Used For : Grub Rescue>

May 11, 2010

i am using ubuntu 10.04 lts and my computer crashed,when the computer boots all i get is:

code: grub rescue>

what commands am i supposed to use?

View 1 Replies View Related

Ubuntu :: 11.04 Won't Boot / Can I Force X To Start In Vesa Mode Using Grub Commands

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

OpenSUSE Install :: 11.2 Boot Using Grub - Loading Commands?

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

SUSE :: 10 Wont Pass GRUB - Wont Boot

May 1, 2009

SLES10 won't boot, stops at GRUB, able to enter commands into GRUB. Help appreciated, want to access data on logical volume.

Mounted drive with open suse live cd, could see partitions but not files/folders, even when used boot option 3 - to login as root.

View 9 Replies View Related

General :: What Commands Should Use In "grub>" To Get Single Mode To Repair Installation

Jan 5, 2011

I use Fedora 14 and have problems with graphic mode. What commands i should use in "grub>" to get single mode to repair my installation. This appears after try to change installt packages.

View 5 Replies View Related

Ubuntu :: Using Secondary Partitions And HDD

Aug 28, 2010

I'm running Ubuntu 10.04 LTS on an old HP Pavilion 710 PC, dual-booting with WinXP. I followed instructions and successfully partitioned my primary hard drive, and installed Ubuntu just fine (I think--everything seems to work, anyway).

Here's my partition setup:

Code:

Code:

The secondary disk is strangely set up for unrelated reasons, and I haven't done anything to it since moving to Ubuntu. My plan is to keep most of my data on that disk, and use the primary disk for system files and applications, but I don't yet understand how Ubuntu decides where to keep things, so I haven't done anything with that disk yet.

Here are my questions:

1. I want to run a MySQL database locally, to test a php/MySQL web site I'm developing. I thought it would be a good idea to set aside a partition just for the database, which is what /dev/sda7 is supposed to be; but I have no idea how to make Ubuntu or MySQL use that partition. (I'm also brand spanking new to MySQL, or I'd probably know.) How do I do that?

2. It occurs to me now that I ought to put the database on my secondary hard drive, which is much bigger and faster than the primary. If the answer to #1 doesn't tell me, how do I do that?

3. My home directory is on /dev/sda right now. Can I move my data files to /dev/sdb without moving the whole home directory? Or must I move everything and keep it all together in one directory?

View 2 Replies View Related

Ubuntu :: Booting From Secondary HD?

Sep 18, 2010

I have an HP computer which I recently installed Ubuntu on with a secondary HD that I installed. I set this new hard drive as the primary hard drive and it was working fine booting up GRUB and asking if I wanted to use Windows 7 or Ubuntu. This morning, however, it has stopped doing this and goes straight into Windows 7. If I go into the boot menu and tell it to boot with the primary hard drive it will go into GRUB, but otherwise it seems as if it is going straight to my secondary HD with Windows 7 on it. This seems weird since up until today it was working fine.

Does anyone know why this is and how to fix it? I tried reinstalling Ubuntu but that didn't change anything.

View 1 Replies View Related

Ubuntu :: 10.10 - Installing XP As Secondary OS

Aug 1, 2011

I have an Acer Aspire 1 Netbook - this is running Ubuntu 10:10.My question is - can I continue to have Ubuntu as the Main Op System and install Windows Xp as a secondary running alongside. My Hard Drive !! is on SD Card and is only 8 Gb. Can this be increased easily? Windows would be used only in rare circumstances where Linux will not "fit the bill".

View 2 Replies View Related

Ubuntu :: Can't Write On Secondary Partition?

Jul 24, 2010

I have a second 8GB partition but for some reason I cant write in it at all. I formated it but still doesn't let me write in it. I tried doing this:Quote:sudo chown -R username:username /media/BTBut this is what I get:Quote:

chown: changing ownership of `/media/sda2/FOUND.000/FILE0000.CHK': Operation not permitted
chown: changing ownership of `/media/sda2/FOUND.000': Operation not permitted
chown: changing ownership of `/media/sda2': Operation not permitted

View 2 Replies View Related

Ubuntu :: Where To Find Primary And Secondary DNS?

Nov 8, 2010

My question is that simple, how can I find out what is my primary and secondary DNS? I've tried commands: $ cat /etc/resolvconf and less /etc/resolv.conf but they didn't work. Also, when I open the resolv.conf file, it only says code...

View 3 Replies View Related

Ubuntu :: Using Another Laptop As A Secondary Monitor

Dec 19, 2010

I have 2 laptops. Currently I have installed Ubuntu 10.10 on one of them. I have Windoze XP installed on the 2nd laptop. I would like to use my second laptop as my secondary monitor since I hardly use Windoze. Is there a way we can use a laptop as a secondary monitor with Ubuntu installed on the first machine (again a laptop in my case).

View 2 Replies View Related

Ubuntu Installation :: Moving HD From Secondary To Primary?

Jan 18, 2010

Currently I am running Ubuntu 9.10 on an older P4 system with EIDE harddrives. My primary HD has a WinXP installation and GRUB. Ubuntu is installed on the secondary HD.

I am happy enough running Ubuntu that I would like to remove my WinXP disk, move the disk with Ubuntu on it to be the primary boot drive, and then install a new drive as the secondary.

However when I tried to simply move the drive with Ubuntu on it from the secondary to the primary EIDE position the system would not boot. I assume that this is because there is no boot loader currently on that drive.

how do I put GRUB on the Ubuntu drive so that it can become the boot drive? Or is there some other way to accomplish what I am after without having to reinstall Ubuntu?

View 4 Replies View Related

Ubuntu :: Missing All Files On Secondary Drives?

Jan 28, 2010

My system is setup like this: 1 250 gb HDD, with a 20 gig partition for /, 200 gigs for /home and the rest is a swap file. I also have a 1 TB (ext3) and 1.5TB (ext4) hard drive that are also installed, mounted to /Shared_1TB and /Shared_15TBI just installed Ubuntu 9.10 and everything seemed to be fine. I installed all the updates, install the Nvidia proprietary drivers and got my HDMI audio working. I went to try and play a video to see what would happen.... there are no files in /Shared_1TB. It is totally blank. I tried making myself the owner, and while this worked it didn't help anything. I tried unmounting and remounted, however it kept saying it was busy and wouldn't remount it. At this point I was a little panicked, so I threw in a LiveCD and low and behold once I mount it in the LiveCD all my files are there.

View 5 Replies View Related

Ubuntu Networking :: Using DSL Gateway As Secondary Router?

Mar 4, 2010

I live on a property with 3 other units and we all share a cable connection. There's a modem connected to a wireless router (I'll call it the "main" router), which until recently I connected to with an 80' or so long ethernet cable because I don't get a good signal, and all I've got is a desktop anyway. When plugged directly into the main router, I can get very fast download speeds - the fastest I've seen over bittorrent, for example, is about 2.2 Mb/s, and it's over 1 Mb/s most of the time for popular torrents or sites with good bandwidth. A friend with a laptop is staying with me for a month, so I wanted to set up a wireless router in my home, and my desktop needed to be moved to a location where running a wire is kind of awkward, so I planned on using the wireless too.

I don't have a spare proper router with an uplink port laying around, but I did have a spare DSL modem/wireless router combo (which I'll call the "secondary" router) that I used to use at a former residence, and I thought I'd try to use it here. I plugged it into my computer, configured its security settings how I wanted (64-bit WEP) and looked through for settings that seemed like they might pertain to using it in this capacity. I didn't really find any except for something that seemed to turn off its DHCP, which I did. Then I unplugged my computer and plugged in the ethernet cable that runs to the main router (which is a normal ethernet cable, not crossover). I found that this setup does "just work" for the most part - our computers see the signal and can log in and access the internet through the main router's cable connection. However:

1. I can't figure out how to access the secondary router's settings once it's been plugged into the main one, even if I unplug it from the main one. What happens is that as soon as I connect the two routers together, it's almost like the secondary ceases to exist independently until it's settings are purged via the reset button. I plug it's IP address into a browser like usual, and nothing happens (it's an Actiontec whose stock one is 192.168.0.1 and the main router is a Netgear with an IP of 192.168.1.1).

I can log into the main one like normal through a wireless connection to the secondary, though. If I look at "attached devices" in the main router's config, it lists all the client computers in the network, but there's no IP that could be for the router (I'm sure of this). Each computer connected through my secondary router gets assigned its own IP like normal, and port forwarding works without a hitch. Again, this persists until the secondary is reset - after the two routers are connected but until the secondary is reset, there doesn't to be a way into the secondary's config. The security settings are acting as they should, though (ie, you need the secondary's WEP key to log on).

2. Internet download speeds when connected to the secondary over wireless are extremely slow compared to what the connection is capable of (can't seem to top 90 Kb/s) but for some reason the max attainable internet upload speed seems to be about the same as normal (around 200 Kb/s). This is puzzling to me. Back when I was using the secondary router for it's intended purpose as a DSL gateway under XP, I downloaded at around 300 Kb/s all the time with it using the same wireless card I am now, so I know the hardware I have is capable of it. Now both of our wireless cards are getting the same mediocre speeds (seemingly bottlenecked at around 90 Kb/s), even with a full signal (ie, the computer right next to the router).

If we connect to the secondary router with a cable rather than wireless, there's no problem and downloads are really fast (note again though that the max upload speed doesn't seem affected whether wired or wireless, as determined by running internet speed tests in both configurations). Ping times over wireless are also extremely high - ie, 800ms+ even when pinging the main router at 192.168.1.1.

It almost seems like there's something inferior or bottlenecked about the wireless signal the secondary router puts out, but I don't know what that could be or how to change it. (I also don't really understand anything about the setup I created here though, other than that I plugged it in and crossed my fingers and it works for basic, non-bandwidth-intense tasks). basically I'm curious whether there's a way to have normal access to the secondary router's settings in this setup, and whether there's a way to make the bandwidth over wireless less mediocre.

View 3 Replies View Related

Ubuntu :: Set Custom Resolution For Secondary Monitor?

Apr 30, 2010

I just switch from windows to use ubuntu 10.04. I am still learning how to set things in ubuntu.
One of the problem is that I can't set my secondary (external) display to my favorite one. I have 22'' screen (max 1680x1050) but I love to set it to 1280x800.
I follow instruction from this website https://wiki.ubuntu.com/X/Config/Resolution and my display detail is like this code...

Somehow, I get the new mode in LVDS1 but not in VGA1. How could I add this new mode in VGA1?

View 6 Replies View Related

Ubuntu :: Access A Mounted Secondary Drive Through FTP?

Sep 21, 2010

I am trying to access a mounted secondary drive through FTP, and when I try to connect to it I am not able to see any of its contents. Any suggestions? I am using Gadmin-proftp to configure. I can point it to any other folder on the main drive and see it perfectly.

View 1 Replies View Related

Ubuntu Servers :: Secondary Box To Receive Sent Emails?

Nov 23, 2010

Our main DNS resolves to a windows 2008 server box. What I want to do is have a secondary box with Ubuntu to receive sent emails (our@our.com). The problem my brain cannot get around is the DNS resolves to the windows server 2008 box(which host the website as well), how can we allow the email (ours@ours.com) to go to the Ubuntu email server even though the DNS name resolves to the windows server? We need the Windows Server but just Don't want it hosting our mail.

View 1 Replies View Related

Ubuntu :: Secondary User Cant Connect To Wireless / Why Is So?

Dec 19, 2010

I have been reading through the linux guide as the bash tutorial said i should before learning bash.
The Guide told me i shouldnt use the administrator account as my everyday account so i added a new user but the network manager doesnt show and i cannot connect to my wireless internet. I have approved the secondary account to access the net and everything but i cant figure this out.

View 3 Replies View Related

Ubuntu :: Access Secondary Monitor Through Vino?

Apr 14, 2011

I have a dual monitor display with my Ubuntu 10.04 x64 setup and I need to configure Vino to default to the secondary monitor (which is actually screen 0.1). Does anyone know if this is possible?

View 4 Replies View Related

Ubuntu :: Secondary Slave Drive Not Showing Up / See That?

Jun 2, 2011

I just installed ubuntu, this is my first time with it so excuse my ignorance regarding it. My issue is that ubuntu does not show my secondary slave seagate hdd .. it only shows and installs on my western digital master primary one. I need to have access to my slave drive because it has data on it which i wanna use.
My secondary slave shows up in my windows and bios just fine. So what gives?

View 5 Replies View Related







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