Sunday, 28 October 2018

wireless networking - What is the easiest way to turn off the wifi connection in my home at night?


Possible Duplicate:
How to disable internet access at night on the router?



I have teenagers who stay up all night and skype with their friends on their laptops.


Is there a way I can turn this off at a certain time every night without having to physically unplug my AT&T Gateway modem? I am not very computer savvy. Sorry if this sounds silly....

Customizing Firefox Shortcuts

I would like to be able to define arbitrary keyboard shortcuts in Firefox, including overriding some of the already built-in shortcuts (such as Ctrl + W to close a tab).


How can I accomplish this? I've found a few plug-ins that add specific additional short cuts, but none that are fully editable. I also couldn't find anything in any of the options menu to do so, though I'd be surprised if this was a feature that was built-in.


For reference (if needed): Firefox 3.0.12 CentOS 5.2

macos - What's the equivalent of Linux's updatedb command for the Mac?


If I want to use the locate command on a Linux machine, I usually run sudo updatedb first to update the database. I can run the locate command on OS X 10.5 but I can't find updatedb. What's the corresponding updatedb for the mac?



Answer



It's locate.updatedb on Mac.


sudo /usr/libexec/locate.updatedb

For more information see the locate.updatedb man page.


Why do I get an internal stack overflow error when minimizing and restoring an MS-DOS virtual machine window?

I am using Windows Virtual PC on a Windows 7 machine. I have created an MS-DOS 6.22 virtual machine with 16 MB RAM and a 2 GB hard disk. Whenever I minimize or otherwise deactivate the window, and then restore or reactivate it, I get an error message, the PC speaker beeps for a second, and the virtual machine completely stops working until I forcefully reboot it:


Internal stack overflow
System halted

(Interestingly, the problem does not occur when I am running Windows 3.1, which runs on top of MS-DOS. I get the error immediately when I try to exit to MS-DOS from Windows.)


I also got a similar error when I tried to install Windows 9x-based operating systems during the first (text-based) phase of installation and performing the same actions, and when attempting to boot such an OS (in this case, Windows 98) into real-mode MS-DOS mode (though in that case I get the error immediately and do not have to perform the actions above to get it):


An internal stack overflow has caused this session to be halted.
Check the STACKS setting in your CONFIG.SYS file, and then try again.

Why does this error occur, and is there any way to fix it?

Saturday, 27 October 2018

windows 8 - UEFI USB only boots when formatted FAT32


I am trying to create UEFI bootable USB sticks of Windows 8. What I do is the following:


diskpart
select disk 1
clean
convert gpt
create partition primary
format quick fs=ntfs

I then just dump the contents of the ISO into the USB. It does not boot but when I format to fat32 it works. Is this normal, or is it just my laptop that's not able to locate NTFS UEFI partitions?


FAT32 is really old and will essentially limit OS image sizes to 4GB (the WIM can't be bigger than that in a fat32 system).


I tried doing "create partition efi" to create a EFI system partition but I was unable to access it. Could I theoretically create an EFI system partition in linux, dump the contents of /efi/ into it, then create a primary NTFS partition and dump the rest of the stuff onto that partition?


This isn't a question pertaining to an issue since I solved it (formatting to fat32). I just want to know what's going on.


EDIT: Also as a bonus question. All the blogs and articles relating to "Create Windows 8 Bootable USB" do not mention "convert gpt" and just say to dump the contents of the ISO onto the disk. Some say to run bootsect.exe, others don't (doesn't make sense since UEFI doesn't use boot sectors). I don't see how this would work since UEFI needs a GPT disk to boot from. Is my laptop just very strict while others are lax on the standard?



Answer



On a normal hard disk installation of most any EFI-based OS, you'll have, at a minimum, one FAT EFI System Partition (ESP) and one partition for the OS itself. The ESP holds a boot loader for the OS, possibly along with files to support the boot loader (fonts, configuration files, drivers, etc.), and possibly even the OS's kernel. The OS partition holds more-or-less the same OS files you'd find on a BIOS-based installation of the same OS. Depending on the OS, you might have additional partitions, too -- data partitions, a swap partition, etc.


There can be exceptions to this rule, particularly for installation media or emergency disks. For instance, you could put the whole OS in the ESP. Also, most EFIs are happy to boot from partitions that are not ESPs, so you could just have one big non-ESP FAT partition, as you've got. This can work fine for an emergency disk, but I wouldn't recommend setting up a regular OS installation in this way; I'd use a separate ESP and OS partition.


Note that a standard EFI can read FAT, but cannot read NTFS, ext2/3/4fs, HFS+, or any other filesystem. (Apple's EFI can read HFS+, and so can read its boot loader from a Mac OS X root partition rather than from the ESP, but Apple's EFI is the exception rather than the rule. A few EFIs also have ISO-9660 filesystem drivers -- but again, they're exceptions to the rule.) Because FAT is the only filesystem that's guaranteed to be readable by EFI, an attempt to build a boot disk that does not include a FAT partition is doomed to failure, except of course when used on those unusual EFIs that support additional filesystems.


I can't provide a procedure to set up a Windows emergency disk to use separate EFI and Windows partitions, since I'm more of a Linux person than a Windows person. Unless you run into a specific problem with your approach, though, I'd just stick with it; at least you know it works.


windows 7 - How to map an IP adress to localhost?


I want to map the IP address 192.168.1.222 to 127.0.0.1 so that if I use 192.168.1.222 in the web browser or ping command I get the response (and that from my 127.0.0.1).


Is this possible via routing tables or do I have to add some sort of virtual network adapter?


I try to deal with this problem on a Windows 7 machine and have no other options than a Windows XP maybe.


I'm stuck right there.



Answer



You would have to assign the IP address 192.168.1.222 to one of your network interfaces. Merely altering the routing table will not have the desired result; traffic would indeed arrive at the localhost, but your computer will then conclude the message has not yet reached its destination. Lacking any further options of passing the message along, it will then be dropped.


Assigning 192.168.1.222 to one of your physical interfaces would be the simplest solution, but if you do not have a spare interface and do not want your changes to affect the rest of the network, you can create another loopback interface, similar to the one at 127.0.0.1.


The procedure has changed somewhat since Windows XP. Open the device manager via the control panel and in the Action menu, click 'Add legacy hardware'. If this option is missing, the wizard can be started via the executable 'hdwwiz.exe'.


Device manager


When asked, select hardware manually from a list rather than installing it automatically. In the following menus, select 'Network Adapter', 'Microsoft' as manufacturer and look for the 'Microsoft Loopback Adapter'. If the device has been installed correctly, a new network adapter will have appeared in the device manager.


Open the Network and Sharing Center via the control panel and click 'Change adapter settings' in the left bar. The following window will appear, including our newly installed adapter.


Network connections


Open its properties. From the Networking tab, select the IPv4 item and click the Properties button. Enter the IP address you wish to assign to the loopback interface. Because it will be the only interface on its network, we enter '255.255.255.255' as the subnet mask.


IP addresses


Voila.


C:\Users\Marcks>ping 192.168.1.122

Pinging 192.168.1.122 with 32 bytes of data:
Reply from 192.168.1.122: bytes=32 time<1ms TTL=128
Reply from 192.168.1.122: bytes=32 time<1ms TTL=128
Reply from 192.168.1.122: bytes=32 time<1ms TTL=128
Reply from 192.168.1.122: bytes=32 time<1ms TTL=128

Ping statistics for 192.168.1.122:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

macos - How can I add a new partition to my HD without reformatting?


I have a 640GB external HD that has one partition formatted as HFS+. It's attached to a machine running OSX 10.6.6. Now I want to split some of the HD's free space into a new FAT32 partition, without having to reformat the whole HD and losing all my data. I read that I'm supposed to be able to add new partitions in the Hard Disc Utility by clicking the "+" sign, without any loss of data. But in my case the "+" is not clickable and utility says that the partition cannot be altered.


Can I do this without reformatting the whole disc? If so, how?



Answer



Select the hard drive (not a partition; the whole hard drive) in Disk Utility and look at the info at the bottom of the window. If it says that your hard drive uses the GUID Partition Table (GPT) then volumes should be resizable. If it says it uses the (Intel PC legacy) Master Boot Record (MBR) format, or the (68k/PowerPC Mac legacy) Apple Partition Map format, then you will not be able to resize the volumes without reformatting/repartitioning the drive to switch it to GPT.


Where does Skype save my contact&#39;s avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...