Since I still expect to have to do some sort of tech support (she doesn't even know how to save and open files and copy anything to a flash drive), if there some way I can take control of her computer across the internet since I also use Ubuntu?
System > Preferences > Remote Desktop
I've never used it, but it seems like it might do the trick. Here's a screenshot.
[snip]
You could also look into VPNs, but I'm not sure if those would work for you. Mostly because I'm not 100% sure what they are.
I recommend NoMachine NX (it's not open source, but it works GREAT). It is like MS Remote Desktop: fast and easy to use. I'm pretty sure it lets you do screen sharing a la VNC, but it's been a while since I've used it (mostly for server admin - before I knew how to use ssh).
Thanks, I'll be sure to run this stuff by the guy whose doing the work. Would I also be able to access her machine if she is booted into Windows?
Doesn't it only work if the host is using an XP Pro or Vista Business/Enterprise/Ultimate version of Windows? I'm pretty sure Vista Home Basic or XP Home won't cut it (though I might very well be wrong).
You could install LogMeIn (not hamachi) on Windows, which makes it super easy to get in for remote access. There is a Linux browser plug-in as well. Doesn't run the server on Linux, though.
Hey does anyone have recommendations for setting up a Debian server to run each website under a different user, and restrict their ssh/ftp access to their home directory?
Right now I'm using Virtualmin and it isn't really making me happy. It handles the run each website as its owner's user account bit, but when running certain php things, like installing wordpress, the www-data user (default apache user) is the one that is trying to write to disk, but doesn't have permission. This is super frustrating.
Suggestions anyone? I'm not intending to be a webhost, I just want to be able to segregate websites/users because I can't guarantee that someone won't use an insecure php script.
Has anyone here used VirtualBox with Ubuntu before? I scrambled my disk using ext4, so right now I'm using VirtualBox in Windows 7 to keep up with my hacking until I get a chance to do some serious scripting to sort out my Linux partition.
Unfortunately, whenever I activate "seamless" mode to take advantage of my double screen setup, the taskbar and all the Windows disappear into the ether until I deactivate it. Has anyone had them happen to them? Is there a solution?
I had that same problem with a Vista host (maybe it was Win7 after all now that I think of it) and Ubuntu guest. IIRC things were fine if I kept the seamless stuff on my primary monitor, but this was a while ago and my memory is fuzzy.
w00t! Thank you, RBach. Yeah, everything has to start from and stay confined to the primary monitor, but it is seamless, and I can mix-n-match Linux and Windows applications now. :-)
Install VirtualBox.
Install Guest Os.(Windows XP in my case)
Install Guest Os Additions(Device->Install Guest Additions), to do that in XP, I needed to start in safe mode. I wasn't able to get D3D acceleration working before installing in Safe Mode despite the install seemingly going fine
Halt the VM.
Go to Settings, set Display Memory size to whatever you wish and tick Enable d3d acceleration.
Start the VM.
Check dxdiag Display tab to confirm you have DD & D3D accelerations properly enabled.
EU 3 works now, but it has the exact same issues it had in Wine(borders & map), so I'll try later if the same registry changes would fix them.
The performance I had was worse than with Wine, but that's to be expected.
In UNIX/Linux, are there any nice utilities that'll let me measure how much time a program spent waiting for I/O as opposed to CPU (for which I just use the time command)?
Install VirtualBox.
Install Guest Os.(Windows XP in my case)
Install Guest Os Additions(Device->Install Guest Additions), to do that in XP, I needed to start in safe mode. I wasn't able to get D3D acceleration working before installing in Safe Mode despite the install seemingly going fine
Halt the VM.
Go to Settings, set Display Memory size to whatever you wish and tick Enable d3d acceleration.
Start the VM.
Check dxdiag Display tab to confirm you have DD & D3D accelerations properly enabled.
EU 3 works now, but it has the exact same issues it had in Wine(borders & map), so I'll try later if the same registry changes would fix them.
The performance I had was worse than with Wine, but that's to be expected.
Alas, you're still dependent upon your Linux graphics drivers, which are frequently awful.
On the plus side, VirtualBox's 3D acceleration can only get better.
Install VirtualBox.
Install Guest Os.(Windows XP in my case)
Install Guest Os Additions(Device->Install Guest Additions), to do that in XP, I needed to start in safe mode. I wasn't able to get D3D acceleration working before installing in Safe Mode despite the install seemingly going fine
Halt the VM.
Go to Settings, set Display Memory size to whatever you wish and tick Enable d3d acceleration.
Start the VM.
Check dxdiag Display tab to confirm you have DD & D3D accelerations properly enabled.
EU 3 works now, but it has the exact same issues it had in Wine(borders & map), so I'll try later if the same registry changes would fix them.
The performance I had was worse than with Wine, but that's to be expected.
Alas, you're still dependent upon your Linux graphics drivers, which are frequently awful.
On the plus side, VirtualBox's 3D acceleration can only get better.
Isn't VirtualBox just using Wine for it's D3D implementation anyway? Realistically, it shouldn't be any better or worse than just using Wine. Maybe worse performance due to VM overhead.
All right. Hello, Linux Thread! I am new to all of this! SAVE ME!!!
Not quite that bad
I've used Ubuntu in the past, but most of my contact with Linux is in SSHing (using Putty) to a server shared by several friends of mine and I. I'm tired of having no idea what is going on with said server, so I've been issued a bit of a challenge to gain root access. And I can't ask anyone that I know personally. Part 1 was learning to manipulate files. Done. Wish I'd known about the OP before looking all of that up >.>
At any rate, the actual post I was intending to make:
Anyone here know how I could add rules to iptables? How I could find out what paths packets take? All sorts of wondrous networking goodness?
I promise that I will you and give you waffles if you point me in the right direction.
All right. Hello, Linux Thread! I am new to all of this! SAVE ME!!!
Not quite that bad
I've used Ubuntu in the past, but most of my contact with Linux is in SSHing (using Putty) to a server shared by several friends of mine and I. I'm tired of having no idea what is going on with said server, so I've been issued a bit of a challenge to gain root access. And I can't ask anyone that I know personally. Part 1 was learning to manipulate files. Done. Wish I'd known about the OP before looking all of that up >.>
At any rate, the actual post I was intending to make:
Anyone here know how I could add rules to iptables? How I could find out what paths packets take? All sorts of wondrous networking goodness?
I promise that I will you and give you waffles if you point me in the right direction.
The most vital skill for any system admin is being able to find things on their own. When you break something at 3am, there probably won't be anyone online to tell you how to fix it.
All right. Hello, Linux Thread! I am new to all of this! SAVE ME!!!
Not quite that bad
I've used Ubuntu in the past, but most of my contact with Linux is in SSHing (using Putty) to a server shared by several friends of mine and I. I'm tired of having no idea what is going on with said server, so I've been issued a bit of a challenge to gain root access. And I can't ask anyone that I know personally. Part 1 was learning to manipulate files. Done. Wish I'd known about the OP before looking all of that up >.>
At any rate, the actual post I was intending to make:
Anyone here know how I could add rules to iptables? How I could find out what paths packets take? All sorts of wondrous networking goodness?
I promise that I will you and give you waffles if you point me in the right direction.
The most vital skill for any system admin is being able to find things on their own. When you break something at 3am, there probably won't be anyone online to tell you how to fix it.
Are GUI's available or are you doing this via console? If you've got GUI's, then Firestarter for firewall-related stuff and Wireshark for networking stuff should cover it. If its console related... man tracert, man iptables...
The most vital skill for any system admin is being able to find things on their own. When you break something at 3am, there probably won't be anyone online to tell you how to fix it.
I guess I can respect that attitude. What's surprised me is how universal it is.
Are GUI's available or are you doing this via console? If you've got GUI's, then Firestarter for firewall-related stuff and Wireshark for networking stuff should cover it. If its console related... man tracert, man iptables...
Console only. That's actually enough for me to keep going. Thanks!
All right. Hello, Linux Thread! I am new to all of this! SAVE ME!!!
Not quite that bad
I've used Ubuntu in the past, but most of my contact with Linux is in SSHing (using Putty) to a server shared by several friends of mine and I. I'm tired of having no idea what is going on with said server, so I've been issued a bit of a challenge to gain root access. And I can't ask anyone that I know personally. Part 1 was learning to manipulate files. Done. Wish I'd known about the OP before looking all of that up >.>
At any rate, the actual post I was intending to make:
Anyone here know how I could add rules to iptables? How I could find out what paths packets take? All sorts of wondrous networking goodness?
I promise that I will you and give you waffles if you point me in the right direction.
The most vital skill for any system admin is being able to find things on their own. When you break something at 3am, there probably won't be anyone online to tell you how to fix it.
I suck at Google it seems. I was thinking this is a way-easy question, but haven't found "the" answer yet.
I want to run a script every morning at 3AM. No biggie there (yay, cron?), but I need the script to run as root/superuser. What is the "correct" way to do this on Ubuntu/Debian?
I would guess the "correct" way to do it since the root user is disabled would be to put the cron job into /etc/cron.d/. Create a file with the line you would have normally put into your crontab. It should run as root.
I'm assuming Ubuntu has that dir (don't have access to an ubuntu box ATM).
So I just created a stupid mess on my computer. I got a new hard drive yesterday for my laptop. I Used clonezilla to copy over the contents of my old hard drive onto the new one. I then installed the new hdd and it booted windows 7RC just like my old hard drive (only faster!). It was running perfectly yesterday so I don't think anything is wrong with my Windows 7 install.
Since the new one is twice the size of my old one I decided to install ubuntu on the other half. I installed ubuntu on a new partition and when I restart the computer grub doesn't see windows 7. It actually puts two slots for vista both of which don't work. I can still mount the windows 7 partition and see all of my stuff but I can't boot into it. In Gparted the ntfs win7 partition still has a boot flag.
Any ideas on how to get windows 7 to boot through grub. My old hdd still has all my stuff from yesterday so i'd only lose a day of browsing history and a new ubuntu install if I restored from it again. But I'd still rather not have to do that.
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=cf416a99-7389-4e50-81f5-f2fee260818f ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=cf416a99-7389-4e50-81f5-f2fee260818f
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
title Ubuntu 9.04, memtest86+
uuid cf416a99-7389-4e50-81f5-f2fee260818f
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Windows Vista (loader)
rootnoverify (hd0,0)
savedefault
chainloader +1
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Windows Vista (loader)
rootnoverify (hd0,1)
savedefault
chainloader +1
I'm not an expert, but try backing up that file, then changing the bottom windows thing from "hd0,1" to "hd0,2".
Aaaaaand... this is copy/pasted from Ubuntu's site.
Restoring GRUB
1. Boot from a Live CD, like Ubuntu Live, Knoppix, Mepis, or similar. Ideally use Ubuntu 8.04 or higher as this has NTFS write support and makes life a bit easier; this isn't necessary, just handy.
2. Open a Terminal. Open a root terminal (that is, type "su" in a non-Ubuntu distro, or "sudo -i" in Ubuntu). Enter root passwords as necessary.
3. Type "grub" which makes a GRUB prompt appear.
4. Type "find /boot/grub/stage1". You'll get a response like "(hd0)" or in my case "(hd0,3)". Use whatever your computer spits out for the following lines. Note that you should have mounted the partition which has your Linux system before typing this command. (e.g. In Knoppix Live CD partitions are shown on the desktop but they're not mounted until you double-click on them or mount them manually)
5. Type "root (hd0,3)" note the space between root and (hd0,3).
6. Type "setup (hd0,3)". This is key. Other instructions say to use "(hd0)", and that's fine if you want to write GRUB to the MBR. If you want to write it to your linux root partition, then you want the number after the comma, such as "(hd0,3)".
7. Type "quit".
8. At this stage you can either restart the system and install your own bootloader, or you can continue and tell the Windows bootloader where to find GRUB which will handle booting Linux.
So take that into consideration as well. Obviously, the "hd0, 3" might be different on yours, or you might be like me and just go with hd0 since you're an MBR kinda guy.
I'm not an expert, but try backing up that file, then changing the bottom windows thing from "hd0,1" to "hd0,2".
He should be fine after doing that.
I tried this and it also doesn't work. When I try hd0,2 it says bootmgr is missing (uh oh)
if i try hd0,3 it says starting... and never changes.
Also I remembered that I deleted my old hard drive yesterday because it had worked successfully, so restoring from that is a no go.
Any other ideas or am I gonna have to reinstall windows? I can still get all of my documents but I don't want to reconfigure everything else.
You shouldn't even have to reinstall Windows. See this KB entry.
GRUB starts counting at 0, so unless it doesn't count hidden partitions (I think it does, but don't know for sure) your bootable NTFS partition should be at hd0,2.
I use Linux exclusively so maybe some of the other people here that have Vista might be more useful.
Barrakketh on
Rollers are red, chargers are blue....omae wa mou shindeiru
I'm not an expert, but try backing up that file, then changing the bottom windows thing from "hd0,1" to "hd0,2".
He should be fine after doing that.
I tried this and it also doesn't work. When I try hd0,2 it says bootmgr is missing (uh oh)
if i try hd0,3 it says starting... and never changes.
Also I remembered that I deleted my old hard drive yesterday because it had worked successfully, so restoring from that is a no go.
Any other ideas or am I gonna have to reinstall windows? I can still get all of my documents but I don't want to reconfigure everything else.
You shouldn't even have to reinstall Windows. See this KB entry.
GRUB starts counting at 0, so unless it doesn't count hidden partitions (I think it does, but don't know for sure) your bootable NTFS partition should be at hd0,2.
I use Linux exclusively so maybe some of the other people here that have Vista might be more useful.
It's actually the windows 7 RC (I don't know why it shows up as Vista). I'll have to put the x64 Windows 7 iso back onto my usb drive but I don't know how to in ubuntu. I'm searching for a solution but all the guides I see are how to do it when running windows. Is it even possible?
I'm not an expert, but try backing up that file, then changing the bottom windows thing from "hd0,1" to "hd0,2".
He should be fine after doing that.
I tried this and it also doesn't work. When I try hd0,2 it says bootmgr is missing (uh oh)
if i try hd0,3 it says starting... and never changes.
Also I remembered that I deleted my old hard drive yesterday because it had worked successfully, so restoring from that is a no go.
Any other ideas or am I gonna have to reinstall windows? I can still get all of my documents but I don't want to reconfigure everything else.
You shouldn't even have to reinstall Windows. See this KB entry.
GRUB starts counting at 0, so unless it doesn't count hidden partitions (I think it does, but don't know for sure) your bootable NTFS partition should be at hd0,2.
I use Linux exclusively so maybe some of the other people here that have Vista might be more useful.
It's actually the windows 7 RC (I don't know why it shows up as Vista). I'll have to put the x64 Windows 7 iso back onto my usb drive but I don't know how to in ubuntu. I'm searching for a solution but all the guides I see are how to do it when running windows. Is it even possible?
It should be. All the arcane diskpart commands can be performed with Gparted. I don't remember if ntfstools is installed in Ubuntu by default, so do this. Harder would be using bootsect. I *think* you might be able to bypass the need to use bootsect by making a new grub entry that points to your USB drive, but I have not tested this.
Descendant XSkyrim is my god now.Outpost 31Registered Userregular
edited July 2009
Holy shit.
Setting up a shared folder in Ubuntu could not be easier. Right-click, share it, and "Add network drive" in Windows 7, and I've got all my music accessible through the Zune software.
Bloody marvelous.
Ushare works a treat for networking with the PS3 as well.
Descendant X on
Garry: I know you gentlemen have been through a lot, but when you find the time I'd rather not spend the rest of the winter TIED TO THIS FUCKING COUCH!
I'm not an expert, but try backing up that file, then changing the bottom windows thing from "hd0,1" to "hd0,2".
He should be fine after doing that.
I tried this and it also doesn't work. When I try hd0,2 it says bootmgr is missing (uh oh)
if i try hd0,3 it says starting... and never changes.
Also I remembered that I deleted my old hard drive yesterday because it had worked successfully, so restoring from that is a no go.
Any other ideas or am I gonna have to reinstall windows? I can still get all of my documents but I don't want to reconfigure everything else.
You shouldn't even have to reinstall Windows. See this KB entry.
GRUB starts counting at 0, so unless it doesn't count hidden partitions (I think it does, but don't know for sure) your bootable NTFS partition should be at hd0,2.
I use Linux exclusively so maybe some of the other people here that have Vista might be more useful.
It's actually the windows 7 RC (I don't know why it shows up as Vista). I'll have to put the x64 Windows 7 iso back onto my usb drive but I don't know how to in ubuntu. I'm searching for a solution but all the guides I see are how to do it when running windows. Is it even possible?
It should be. All the arcane diskpart commands can be performed with Gparted. I don't remember if ntfstools is installed in Ubuntu by default, so do this. Harder would be using bootsect. I *think* you might be able to bypass the need to use bootsect by making a new grub entry that points to your USB drive, but I have not tested this.
So i ended up getting this working by running the startup repair tool on the windows 7 install disc. It didn't even break grub. Although I did need the first suggestion of changing to hd0,2 for it to find the correct partition. It works perfectly now. Thanks for the help.
So, completely random question here. Any of you guys spinning some hot new distros I can check out? It feels as if I've been running Crunch for an amazingly long time.
Is Jolicloud out of alpha yet? I looked at it before I install #! on my netbook, but couldn't get it because of the closed alpha. It looked interesting though.
I wish they'd iron the bugs out of Moblin too. So promising, but so many annoying bugs.
Descendant X on
Garry: I know you gentlemen have been through a lot, but when you find the time I'd rather not spend the rest of the winter TIED TO THIS FUCKING COUCH!
Hm! I've always been tempted to install a netbook build on my regular laptop, thinking they would be optimized for speed and screen real estate. Does it do anything new and exciting?
Visti on
[SIGPIC][/SIGPIC]
0
Descendant XSkyrim is my god now.Outpost 31Registered Userregular
Garry: I know you gentlemen have been through a lot, but when you find the time I'd rather not spend the rest of the winter TIED TO THIS FUCKING COUCH!
Posts
You could install LogMeIn (not hamachi) on Windows, which makes it super easy to get in for remote access. There is a Linux browser plug-in as well. Doesn't run the server on Linux, though.
SC2 NA: exoplasm.519 | PA SC2 Mumble Server | My Website | My Stream
Right now I'm using Virtualmin and it isn't really making me happy. It handles the run each website as its owner's user account bit, but when running certain php things, like installing wordpress, the www-data user (default apache user) is the one that is trying to write to disk, but doesn't have permission. This is super frustrating.
Suggestions anyone? I'm not intending to be a webhost, I just want to be able to segregate websites/users because I can't guarantee that someone won't use an insecure php script.
SC2 NA: exoplasm.519 | PA SC2 Mumble Server | My Website | My Stream
Unfortunately, whenever I activate "seamless" mode to take advantage of my double screen setup, the taskbar and all the Windows disappear into the ether until I deactivate it. Has anyone had them happen to them? Is there a solution?
Wait, VB can emulate 3d acceleration? How the hell does it do that?
With its own GPU hardware driver. I'm very curios to test this, I've installed VB3.0 and will configure an XP machine tonight to give EU3 a try.
Edit: Oh wait, I forgot to gloat.
Install VirtualBox.
Install Guest Os.(Windows XP in my case)
Install Guest Os Additions(Device->Install Guest Additions), to do that in XP, I needed to start in safe mode. I wasn't able to get D3D acceleration working before installing in Safe Mode despite the install seemingly going fine
Halt the VM.
Go to Settings, set Display Memory size to whatever you wish and tick Enable d3d acceleration.
Start the VM.
Check dxdiag Display tab to confirm you have DD & D3D accelerations properly enabled.
EU 3 works now, but it has the exact same issues it had in Wine(borders & map), so I'll try later if the same registry changes would fix them.
The performance I had was worse than with Wine, but that's to be expected.
Alas, you're still dependent upon your Linux graphics drivers, which are frequently awful.
On the plus side, VirtualBox's 3D acceleration can only get better.
Isn't VirtualBox just using Wine for it's D3D implementation anyway? Realistically, it shouldn't be any better or worse than just using Wine. Maybe worse performance due to VM overhead.
SC2 NA: exoplasm.519 | PA SC2 Mumble Server | My Website | My Stream
I've used Ubuntu in the past, but most of my contact with Linux is in SSHing (using Putty) to a server shared by several friends of mine and I. I'm tired of having no idea what is going on with said server, so I've been issued a bit of a challenge to gain root access. And I can't ask anyone that I know personally. Part 1 was learning to manipulate files. Done. Wish I'd known about the OP before looking all of that up >.>
At any rate, the actual post I was intending to make:
Anyone here know how I could add rules to iptables? How I could find out what paths packets take? All sorts of wondrous networking goodness?
I promise that I will
The most vital skill for any system admin is being able to find things on their own. When you break something at 3am, there probably won't be anyone online to tell you how to fix it.
Are GUI's available or are you doing this via console? If you've got GUI's, then Firestarter for firewall-related stuff and Wireshark for networking stuff should cover it. If its console related... man tracert, man iptables...
I guess I can respect that attitude. What's surprised me is how universal it is.
Console only. That's actually enough for me to keep going. Thanks!
I want to run a script every morning at 3AM. No biggie there (yay, cron?), but I need the script to run as root/superuser. What is the "correct" way to do this on Ubuntu/Debian?
Thanks guys.
I'm assuming Ubuntu has that dir (don't have access to an ubuntu box ATM).
EDIT:
Let me explain this...
That command allows you to edit the crontab for the root user. Put whatever you want to run in there in standard cron format.
You can also put stuff in to cron.d, but that's a little bit of a different format than normal cron: The files must be owned by root, and the permissions must no execute, user write only (644)
3DS Friend Code: 2707-1614-5576
PAX Prime 2014 Buttoneering!
Since the new one is twice the size of my old one I decided to install ubuntu on the other half. I installed ubuntu on a new partition and when I restart the computer grub doesn't see windows 7. It actually puts two slots for vista both of which don't work. I can still mount the windows 7 partition and see all of my stuff but I can't boot into it. In Gparted the ntfs win7 partition still has a boot flag.
Any ideas on how to get windows 7 to boot through grub. My old hdd still has all my stuff from yesterday so i'd only lose a day of browsing history and a new ubuntu install if I restored from it again. But I'd still rather not have to do that.
Is that menu.lst. Here it is.
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=cf416a99-7389-4e50-81f5-f2fee260818f ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=cf416a99-7389-4e50-81f5-f2fee260818f
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 9.04, kernel 2.6.28-13-generic
uuid cf416a99-7389-4e50-81f5-f2fee260818f
kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=cf416a99-7389-4e50-81f5-f2fee260818f ro quiet splash
initrd /boot/initrd.img-2.6.28-13-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-13-generic (recovery mode)
uuid cf416a99-7389-4e50-81f5-f2fee260818f
kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=cf416a99-7389-4e50-81f5-f2fee260818f ro single
initrd /boot/initrd.img-2.6.28-13-generic
#title Ubuntu 9.04, kernel 2.6.28-11-generic
#uuid cf416a99-7389-4e50-81f5-f2fee260818f
#kernel /boot/vmlinuz-2.6.28-11-generic #root=UUID=cf416a99-7389-4e50-81f5-f2fee260818f ro quiet splash
#initrd /boot/initrd.img-2.6.28-11-generic
#quiet
#title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
#uuid cf416a99-7389-4e50-81f5-f2fee260818f
#kernel /boot/vmlinuz-2.6.28-11-generic #root=UUID=cf416a99-7389-4e50-81f5-f2fee260818f ro single
#initrd /boot/initrd.img-2.6.28-11-generic
title Ubuntu 9.04, memtest86+
uuid cf416a99-7389-4e50-81f5-f2fee260818f
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Windows Vista (loader)
rootnoverify (hd0,0)
savedefault
chainloader +1
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Windows Vista (loader)
rootnoverify (hd0,1)
savedefault
chainloader +1
Aaaaaand... this is copy/pasted from Ubuntu's site.
So take that into consideration as well. Obviously, the "hd0, 3" might be different on yours, or you might be like me and just go with hd0 since you're an MBR kinda guy.
He should be fine after doing that.
I tried this and it also doesn't work. When I try hd0,2 it says bootmgr is missing (uh oh)
if i try hd0,3 it says starting... and never changes.
Also I remembered that I deleted my old hard drive yesterday because it had worked successfully, so restoring from that is a no go.
Any other ideas or am I gonna have to reinstall windows? I can still get all of my documents but I don't want to reconfigure everything else.
You shouldn't even have to reinstall Windows. See this KB entry.
GRUB starts counting at 0, so unless it doesn't count hidden partitions (I think it does, but don't know for sure) your bootable NTFS partition should be at hd0,2.
I use Linux exclusively so maybe some of the other people here that have Vista might be more useful.
It's actually the windows 7 RC (I don't know why it shows up as Vista). I'll have to put the x64 Windows 7 iso back onto my usb drive but I don't know how to in ubuntu. I'm searching for a solution but all the guides I see are how to do it when running windows. Is it even possible?
It should be. All the arcane diskpart commands can be performed with Gparted. I don't remember if ntfstools is installed in Ubuntu by default, so do this. Harder would be using bootsect. I *think* you might be able to bypass the need to use bootsect by making a new grub entry that points to your USB drive, but I have not tested this.
Setting up a shared folder in Ubuntu could not be easier. Right-click, share it, and "Add network drive" in Windows 7, and I've got all my music accessible through the Zune software.
Bloody marvelous.
Ushare works a treat for networking with the PS3 as well.
So i ended up getting this working by running the startup repair tool on the windows 7 install disc. It didn't even break grub. Although I did need the first suggestion of changing to hd0,2 for it to find the correct partition. It works perfectly now. Thanks for the help.
Not that I'm complaining. Crunch is the shizzle.
Is Jolicloud out of alpha yet? I looked at it before I install #! on my netbook, but couldn't get it because of the closed alpha. It looked interesting though.
I wish they'd iron the bugs out of Moblin too. So promising, but so many annoying bugs.
There's a tour of the OS at http://www.jolicloud.com
I honestly don't see how is that supposed to appeal to the "regular" user.