Friday, 31 August 2018

Linux installation won't boot due to GRUB "no such device" error


I think I've exhausted all I know to do, so I'm sending up the flares. I'll try to cover it all (albeit, in pieces), so please be patient.


I decided to install Linux Mint 11 where I previously had Ubuntu 10.10. Before this install, I had a partition with Windows XP, which--at some time in the distant past--I used to dual boot into. I removed the partition in this install.


After installation, the system fails to boot. After the check for a CD/DVD, it prints:


error: no such device: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
GRUB rescue>

There were no problems booting Ubuntu. I seem to recall a similar issue last time I did an install (instead of an upgrade) to Ubuntu. It's been a while, but I thought I fixed it using FIXMBR and/or FIXBOOT from the XP CD. Those did not work this time.


The GRUB rescue> prompt seems to be broken. Even help doesn't work. I am able to ls, which yields:


GRUB rescue> ls
(hd0) (hd0,msdos1) (hd1) (hd1,msdos1) (hd2) (hd2,msdos5) (hd2,msdos3) (hd2,msdos2) (hd2,msdos1)

Further, I don't know what this device is. I can't find a matching UUID under /dev/disk/by-uuid. For that matter, there are no UUIDs for my booting hard drive (sda, below). My setup is a Frankenbox. I know not to rely on device enumeration in such a mix, but they're given below for easy discussion.



  • Ch 0 Master: 250GB PATA (sda)


  • Ch 0 Slave: none

  • Ch 1 Master: 80GB SATA (sdb)

    • sdb1: /

    • sdb2: /home

    • sdb3: swap



  • Ch 1 Slave: DVD SATA

  • SATA expansion card: 250GB SATA (sdc)



I thought I'd struck gold when I discovered some lingering (and confounding) RAID metadata on sda. The drive hadn't shown up in the Linux install before, but did after using dmraid -r -E /dev/sda. However, the boot failure persisted.


Until just now, I could use the Mint install CD to "Boot from Local Drive", which would indeed take me to my installation on sdb1. After using the CD to boot to the drive, and running the below, I've worsened the problem to giving a GRUB> prompt instead of booting to the drive.


# GRUB-install --no-floppy /dev/sdb1
# update-GRUB
GRUB> find /boot/GRUB/stage1
GRUB> root (hd1,0) # result of above
GRUB> setup (hd0)

There's definitely a mismatch, because sdb, which has 3 partitions, seems to be (hd2) at the GRUB rescue> prompt, but (hd1) when actually booted. However, if I've used UUIDs (and I think I have), this shouldn't be a problem. Using the live CD, I see sdb1:/boot/GRUB/menu.list to contain


# kopt=root=UUID=[UUID of sdb1]
...
# groot=[UUID of sdb1]

The root problem, as I understand it, is that GRUB is, for some reason I don't understand, trying to boot a device that doesn't exist. I don't know how to determine what it's looking for by the UUID given. I don't see any UUIDs for anything on sda.


And now, I can't even boot to the drive using the CD.


Update:


I thought putting the /boot partition on the same drive as the MBR might help, so I added sda2, set the boot flag, and reinstalled (which is probably overkill).


I again get the grub rescue> prompt, but now, when I ls, I get


grub rescue> ls
(hd0) (hd0,msdos1) (hd1) (hd1,msdos2) (hd1,msdos1) (hd2) (hd2,msdos3) (hd2,msdos2) (hd2,msdos1)

So, sda is no more (hd0) at this prompt than sdb is (hd1). I don't know why it's so misaligned, nor why it matters. I may try again, putting /boot on sdc/(hd0).



Answer



The solution was just to put the GRUB loader (MBR?) on the correct drive. In this case, what loaded in Linux as /dev/sdc and (hd2) loaded in GRUB as (hd0).


networking - Update on Windows 10 cannot connect when behind domain proxy

My computer sits on a network and I think it has Microsoft Server 2012 on there. Without joining the domain; when I first browsed the internet it asked for my domain credentials. I added them in and told it to remember them.


So I can access the internet via the webbrowser... also the install (web-based) for Visual studio 2015 is happily downloading. But windows Update just freezes and does nothing. Windows defender cannot update its definitions either.


I'm guessing its an issue with the domain proxy.


I tried telling windows update (via the registry) to not use the WUS server. Didn't help. I can join the domain with windows 10, but when I try to login it gets stuck setting up the user account.


Any guesses how to get windows update to behave?

Midnight Commander — Multiple Selection


In MC I can copy the name of the current file from the list of files to the console pressing Ctrl+Enter.


Suppose I want several files to copy to console. Example: want to create *.zip with several files:


zip new_zip.zip a.txt b.txt c.txt 231202fkfo3f.txt 

I can select several files with Insert (or equiv. Ctrl+t). I want one shortcut to use after that for all those selected files names to go right to the console. Something like Ctrl+Enter.


What are the ways of doing it?



Answer



If you press Ctrl+x t, it will paste the names of all the files you've tagged with Ctrl+t or Insert to the command line.


windows - How to create a registry hive file from a .reg backup


Long story short, I accidentally royally screwed up my HKLM\SYSTEM registry directory trying to fix WinApps permissions that were changed with a Windows security patch.


As of right now, my system is completely unable to boot with a BSOD message of "inaccessible boot device" caused by my changes. I've tried



  • changing values of registry keys to enable AHCI

  • Safe Mode

  • sfc /scannow + chkdsk

  • Checking for pending packages in DISM

  • Moving files from Regback to /config


  • importing my working backup of SYSTEM.reg into the registry under windows recovery command prompt and WinPE


    One of those would normally work, but my issue is caused by a junk SYSTEM registry.




I need to create a SYSTEM HIVE file from my .REG backup of the HKLM\SYSTEM directory.


I thought this would be a very simple solution, but the only thing that I've managed to find on this topic is a random MSDN post from years ago that seems like it would accomplish what I want, but I can't get the script to work. (https://blogs.msdn.microsoft.com/sergey_babkins_blog/2014/11/10/how-to-create-a-brand-new-registry-hive/)



  • Trying to run his script as a .bat returns an error stating:function' is not recognized as an internal or external command, operable program or batch file.

  • Trying to run the .bat in powershell returns: merge.bat : The term 'merge.bat' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.


If anyone knows how to get the above powershell script to work, please let me know.



Answer



The script you have linked is a PowerShell script, it needs to be saved with a .ps1 extension and executed in PowerShell.


Can you try saving it as a .ps1 file and running it, does this resolve your issues?


Edit:


The contents of your .ps1 file should be:


function ConvertTo-RegistryHive
{
<#
.SYNOPSIS
Convert a registry-exported text (contents of a .reg file) to a binary registry hive file.

.EXAMPLE
PS> ConvertTo-RegistryHive -Text (Get-Content my.reg) -Hive my.hive
#>
param(
## The contents of registry exported (.reg) file to convert into the hive.
[string[]] $Text,
## The hive file name to write the result to.
[parameter(Mandatory=$true)]
[string] $Hive
)

$basefile = Join-Path ([System.IO.Path]::GetTempPath()) ([System.IO.Path]::GetRandomFileName())
$regfile = $basefile + ".reg"
$inifile = $basefile + ".ini"
$subkey = [System.Guid]::NewGuid().ToString()

&{
foreach ($chunk in $Text) {
foreach ($line in ($chunk -split "`r")) {
$line -replace "^\[\w*\\\w*","[HKEY_LOCAL_MACHINE\$subkey"
}
}
} | Set-Content $regfile

# Since bcdedit stores its data in the same hives as registry,
# this is the way to create an almost-empty hive file.
bcdedit /createstore $Hive
if (!$?) { throw "failed to create the new hive '$Hive'" }

reg load "HKLM\$subkey" $Hive
if (!$?) { throw "failed to load the hive '$Hive' as 'HKLM\$subkey'" }

try {
# bcdedit creates some default entries that need to be deleted,
# but first the permissions on them need to be changed to allow deletion
@"
HKEY_LOCAL_MACHINE\$subkey\Description [1]
HKEY_LOCAL_MACHINE\$subkey\Objects [1]
"@ | Set-Content $inifile
regini $inifile
if (!$?) { throw "failed to change permissions on keys in 'HKLM\$subkey'" }
Remove-Item -LiteralPath "hklm:\$subkey\Description" -Force -Recurse
Remove-Item -LiteralPath "hklm:\$subkey\Objects" -Force -Recurse

# now import the file contents
reg import $regfile
if (!$?) { throw "failed to import the data from '$regfile'" }
} finally {
reg unload "HKLM\$subkey"
Remove-Item -LiteralPath $inifile -Force
}

Remove-Item -LiteralPath $regfile -Force
}

ConvertTo-RegistryHive -Text (Get-Content C:\MyHive.reg) -Hive HiveName

And then just change this C:\MyHive.reg to point to your .reg file and HiveName to the name of the Hive to be created.


windows 7 - Can't log in normally, have desktop and user profile issues in Safe Mode

For some reason my computer has some problem(s) that I don't know the origin of, nor how to solve them.


I've had these problems for three days and have tried to fix them but to no avail.


Here are the issues:


When I try to log in on my computer I get a message that says:



The group policy client service failed the logon, Access denied.



Then it logs off and returns to the profile selection screen.


After that I tried to log in via "Safe mode" and it work without getting the message. However here comes my next problem (these problems are only in Safe Mode since I can't log in normally):


When I log in via Safe mode, my desktop icons are gone and my background is black. Also some of my programs in my Start Menu are gone.


On my "computer" (windows+E or via the Start Menu) some folders on the left panel are gone. When I right click and click on " show all folders" nothing happens:


enter image description here


Things that I've tried:




  1. Chkdsk (doesn't find any problems)




  2. SFC/scannow (found some corrupted files, don't know what to do after that - it only said that some files couldn't be repaired and that the repair will take place after rebooting. I did restart my computer but the problem is still there)




  3. System restore (didn't help at all)




My other problem is (also in Safe Mode):


In my profile: c:/users/eric (personal profile) I only have the following folders:


Appdata
Contacts
Desktop
ntuser

(I can't find my documents, videos, pictures etc)


Here is a screenshot of it:


enter image description here


What is causing this problem? Is it the user profile or something else?


I will not try to fix my computer now, in case I do something wrong and all my files are deleted (videos, pictures, documents and files that were on my desktop). Does anyone have a safe solution?

command line - How to automate setting Chrome as default browser in Windows 10

I've tried setting default in the reg keys:


hkeycu>software>microsoft>windows>shell>associations>urlassociations>http and https.


Tried using master_preference file.


Tried using command switch --make-default-browser.


So far these aren't working.


Any help would be appreciated. Open to any to batch files, registry keys, file replacements/edits... basically anything I can automate.

How to make Windows 7 aware about iPhone photo orientation


When transferring photos from the iPhone to the PC, the photos are not showed by Windows Explorer in the correct orientation, but I know there is some EXIF info in the photo with the orientation information, because Picasa shows them in the correct way.


demo


I have to save them with Picasa, so Windows can show them ok.


Is there some patch or program to correct this behavior?



Answer



I've just realized that using the "Import pictures and videos" wizard rotate the photos for you.


automation - How to keep Windows 7 restarting the PC until no `restart requirement` is required?

I cannot get new updates via Windows Update because the OS requires to restart - to finish previous/current installing stuff I guess.


The restart requirement is as below snapshot.


How can I make my Windows keep restarting loop automatically until no restart requirement is required?


enter image description here

windows - What is a good tool to scrub MetaData from files?



I am curious if there is a good program that will remove MetaData from multiple document types? Some programs have a "prepare document" feature but it generally only applies to one file type or extension. I am looking for something that can process a dissimilar group of files types at once.



Answer



I have solved same issue with Office 2003/XP Add-in: Remove Hidden Data


http://www.microsoft.com/downloads/details.aspx?FamilyID=144e54ed-d43e-42ca-bc7b-5446d34e5360&displaylang=en#Requirements


What's the best tool to use to automatically backup selected folders from Windows to my external hard drive?

I have a 1TB external hard drive and I'd like to periodically schedule backups of my "Libraries" in Windows to the external drive. I'd prefer if it could detect what files have changed and periodically transfer them to the drive instead of I having to do it manually.


Is there a way in Windows 7 to do this automatically? If not, what are some external tools (preferably free) that I can use for this?


EDIT: I've used Windows back-up and I find it restrictive for detecting changes and backing up automatically. That's all that I'm aware of. My WD hard drive had something for this but the application doesn't work any more and it wasn't that good either. So, I wish to know what are my options.

Thursday, 30 August 2018

windows - How can I redirect my iTunes library to an external hard drive?


Right now, I have all my music on my internal hard drive, but it is running out of space.


So, I bought an external hard drive, copied all my music over and went into the advanced preferences in iTunes and changed my music location. However, when I view the iTunes music library XML file in notepad, I still see a lot of things pointing to my regular hard drive.


I didn't check the Keep music files organized tickbox because I didn't want iTunes trying to copy everything over from my regular hard drive, as I already did that.


Is there any other way to simply refresh a music list that's been given a new root directory?



Answer



This article may help you.


Managing your iTunes Library on an External Hard Drive


dvi - 3 Monitors powered from a Nvidia fx580


I have a NVidia FX580 card in a Dell Precision T1500.


The outputs of the back of the card are DVI and 2x displayport.


I tried to run 3 screens from the DVI + 2x displayport to dvi adaptors, but the card won't have it... It'll only run 2 of these screens at the same time.


http://www.nvidia.com/object/product_quadro_fx_580_us.html says;


**Display Support:**
Dual Link DVI-I 1
DisplayPort 2
# of Digital Outputs 3
( 2 out of 3 active at a time )
# of Analog Outputs 1

To me this reads that it will be able to power 2xdvi monitors and 1xvga monitor.
Anyone care to confirm or speculate?



Answer



Your DVI port supports DVI-I (digital) or DVI-A (analog), so it's counted in both Outputs categories. The card only supports 2 outputs in use at a time.


ZIP password recovery




Possible Duplicate:
zip password crack possible?



I have a zip file to be password-recovered. I don't remember the password itself, but I remember what type (a capital or small letter or a digit) every symbol has.


What password recovery program supports this type of password masking?



Answer



http://www.softpedia.com/get/Compression-tools/ZIP-RAR-ACE-Password-Recovery.shtml



The program is very customizable: you can set the password length, the character set to be used to generate the passwords, mask character, and a couple of other options



More to read about http://www.softpedia.com/dyn-search.php?search_term=zip+password&x=0&y=0


power management - Find time to charge in Windows 7


Is there a utility for windows 7 which will give me the time remaining until my laptop battery is fully charged. GNOME power manager has this functionality, So i was wondering if there is a counterpart for windows 7



Answer



There are lots of utilities that claim to do that.


BatteryBar is the one I've using lately, and I'm very happy with it!


It uses what they call "Statistical Time Prediction". This is how it looks like when the battery is charging:


alt text



When charging, the percentage bar is shown in blue to indicate charging, and the estimated time to full charge is shown. The bar turns black and shows "On A/C" when fully charged.



memory - What can I do with a bunch of old 1GB/512MB DDR2 RAM sticks?



I've been a parts-hoarder for too long, and buy stuff when I shouldn't. As a result, I have a whole bunch of relatively small denominations of RAM lying around. I've got like 10 or 12 SO-DIMM laptop DDR2 sticks at 512MB, about the same amount of desktop DDR2, and a couple of 1GB sticks. They're similar in speed and timing.


My question is: besides eBay/craigslist/giving them away, what good things are there that can I do with all of this RAM? If there was some computer out there with a whole ton slots for consumer (non-ECC) RAM (especially laptop RAM), I could make it pretty powerful, memory wise, using only spare parts. Has anyone done any cool projects with lots of small-unit consumer RAM? How did they turn out?


I guess I could make some low-memory dedicated home servers or small-form-factor machines, but I already have a home server and don't really need too man more computers lying around.



Answer



Well... for a desktop, you could purchase a Gigabyte iRam which turns 4 1gb DDR sticks into a 4gb drive. Yes, that's not all that much space, but it is an extremely fast drive. There weren't many (any?) consumer grade motherboards that would utilize a ton of DDR or even DDR2 Ram. You'd only find that in server grade equipment. As far as laptops go, only high end custom equipment would support more than 2 sticks of Ram. Clevo/Sager made units that would use 4 or even 8 sticks of SODIMM Ram... but as has been pointed out, the cost of purchasing equipment just to use the Ram would outweigh any benefits.


For the Newer DDR2, you could use something like the Acard which supports up to 8 sticks of DDR2 (64gb total) and turns it into an SSD.


package management - Can pkgsrc, Homebrew, Fink, and MacPorts peacefully coexist?


I heard that some people like to use both Fink and Macports since some packages exist in one and not the other.


Recently I've had trouble building and running packages like GRASS and Digikam w/ MacPorts, and have started looking at alternatives.


Just wondering: would pkgsrc and Homebrew also coexist and function nicely with them?


I am still trying out package managers and like to explore all the possibilities before I settle on one or two.


Thanks!



Answer



Homebrew will cause problems when building software from source if it is installed in /usr/local. This is the default, which is a bad choice as this path is in the default search path of compilers and other tools. Therefore builds from other packaging software might pick up the wrong dependency, using Homebrew's version instead of their own.


Years ago, in the very beginning of the project, even MacPorts was using /usr/local. But it turned out not to cooperate with other tools as is documented in their FAQ. Unfortunately Homebrew developers didn't want to hear about prior experiences and ignored such facts...


In general, it is usually better to stick to one tool only to avoid all problems. MacPorts is doing their best to patch out any harcoded paths, e.g. to /sw which is used by Fink. So usually it will work, but having anything installed in /usr/local will definitely cause problems for it.


I don't know pkgsrc enough to say if it is really affected the same way, but my best guess is that this problem applies to it as well.


There don't seem to be any open bugs for digikam or grass in MacPorts. You should report your problems to them directly with new tickets to get assistance.


networking - Need Multiple IP addresses from one PC

I'm using it for online games and running programs for friends out of one PC. Limits will be placed soon, so my question is: how can I get a different IP address for each account loading up from one single PC. If they place a limit of two logins from one IP address, then we would need to run 10 logins from one PC, all with their own IP address.


Can this be done reasonably cheap?

dropbox - Is possible to enable uploading and disable downloading


I have two laptops. First laptop I use every day, second about 1-2 times during a week (and most time it is in hibernate mode). So when it waked up, dropbox initiate uploading process that take many time. But very often I need just upload only single file from this machine.


So my question is:


Is there exists some capability (maybe plugin) that allow only uploading and prevent downloading



Answer



You can use Dropbox Uploader (code). It works with MacOSX, Windows/Cygwin, and Unix. It allows file and recursive directory upload.


To upload a local file to a remote Dropbox folder:


$ ./dropbox_uploader.sh upload snort.pdf Documents/manuals

Example: recursive upload:


enter image description here




Alternatively, you can use the selective sync feature of Dropbox, if your laptops don't need to use the same folders:


enter image description here


Fastest method to determine my PC's IP address (Windows)


This may seem trivial but I'm looking for the quickest method to determine my PC's IP address within my network.



  • This changes regularly as I connect from one network to the next via DHCP

  • The connection changes from wired to wireless

  • Windows 7 PC (although ideally the perfect solution would work on all versions of Windows)

  • Various adapters installed (e.g. VMWare, Tunnels, etc.)


I need to know this as I often run a local web server where I need to access files over the local network... and since it changes regularly I want the fastest method to retrieve the address.


My current flow is:



  1. WindowsKey + R to open the Run dialog

  2. "cmd" + Enter to open a command prompt

  3. "ipconfig" + Enter to get the diagnostics info

  4. Scroll to or resize the window so that I can see the line in my Ethernet adapter Local Area Connection for my ipv4 Address

  5. Remember it to type elsewhere... or

  6. Right click > select Mark > highlight the address > press Enter to copy it to the clipboard


This wasn't so bad with Windows XP when I had no additional adapters, tunnels, wireless connections etc. but the amount of data returned with this command makes it hard to pluck out.


Surely there must be a better, faster way! (bonus points if adding it to the clipboard is easily accomplished)



Answer



Type this into a .bat file. You can then create a shortcut to it and place it in the taskbar, start menu, or assign a hotkey.


ipconfig | find "IPv4" | find /V "192.168." | CLIP

What it does: First find returns all the lines that contain IPv4. If you have multiple network adapters, from example from VMWare, you may want to exclude them. That's where find /V comes into play, it finds all lines that do not contain given string. For example, that's what I get after the first find:


>ipconfig | find "IPv4"
IPv4 Address. . . . . . . . . . . : 134.32.72.86
IPv4 Address. . . . . . . . . . . : 192.168.229.1
IPv4 Address. . . . . . . . . . . : 192.168.230.1

Finally, CLIP copies the output to the clipboard, so you will be left with


>    IPv4 Address. . . . . . . . . . . : 134.32.72.86

If that's not enough maybe someone else can refine it with fancy search patterns.


networking - Adding virtual interfaces (not VLAN) in linux

for some software testing, I need 12 different IP addresses to contact, each one with a unique MAC address. I just set up an Arch Linux VM but I can't figure out, how to configure virtual network interfaces all pointing to the same (virtual) ethernet port.


Is this even possible?

Computer won't boot from CD/DVD drive


I'm trying to install Fedora on a really old (1999-2000) PC, even though I have set it to boot the CD/DVD drive first it wont boot from the CD, I know the CD 'im using is bootable, do you think that the CD might be too new or something?


Thanks!



Answer



Prior to about 1999, most computers were designed to boot only from a floppy or hard drive. CD Booting was still relatively new, and generally relied on the "El Torito" specification that was embedded into the BIOS, that would search an ISO 9660 record on a CD for a special boot sector and perform some emulation magic to get the darn thing booting. Most modern computers don't require any special emulation and "just work". Based on what you have stated, I am willing to bet you are in the category of troubled hardware. Also, not all bootable discs are created equally - so just because some work, doesn't even remotely imply that all should.


Your best bet is to see if there is some outside chance that a BIOS update is available for that motherboard.


Your next best bet is to custom bake some bootable goodness using ISOLINUX for use on a floppy disk (or even make a bootable CD image) which can get the computer up enough to pull down the rest of the Fedora install over the network.


For what it is worth, I find running something like Feather linux on hardware that old is generally far more productive than a full modern distribution like Fedora or Ubuntu. There is also a lightweight Fedora "spin" called LXDE that may even be a better fit.


http://lxde.org/


wireless networking - Is Bluetooth tethering slower than WiFi?


I'm tethering a Galaxy Nexus (running Android 4.0) with my Macbook Pro (2009 model, running Mac OS X 10.7). What's the difference between Bluetooth and WiFi tethering in terms of:



  • latency

  • bandwidth

  • power consumption on the phone?


I understand that Android does not support USB tethering with a Mac. Is that correct? Thanks.



Answer



In practical terms there is no speed difference between Bluetooth and WiFi when used for tethering cellular data. The reason being typical cellular data service data transfer rates are much slower than the theoretical limits of Bluetooth, making the potential higher bandwidth of WiFi irrelevant.


In addition, Bluetooth tethering is more convenient than WiFi, since in a number of notable phones (the iPhone being one) you can initiate tethering from the other device (as in your Laptop) when the phone is off (technically, in Standby with the screen is turned off).


I've done some tests and compared the various tethering options of an iPhone tethered to a Mac or iPad with the difference in real data transfer rates of each.


Wednesday, 29 August 2018

linux - Ensuring new files in a directory belong to the group


I want to create a shared directory when a number of users (all belong to say mygroup) can create and edit files. I would like all files in this directory and subdirectory to belong to mygroup


I have changed existing files to have group mygroup using chgrp, but new files still get created belong to the user's primary group. Is there a way of ensuring new files belong to the group without repeatedly running chgrp.



Answer



You want to set the SetGID bit.


chmod g+s dir

All new files created in the directory will have the group set to the group of the directory.


A superuser blog post explained the sticky bits and other Linux permission bits:



SetGID, however, is a whole different ball game. When a directory has the SetGID bit set and a file is created within that directory the group ownership of the file is automatically modified to be the group of the directory.



macos - How can I release a click-locked mouse pointer in OS X?


Possible Duplicate:
MacBook Pro Trackpad freeze / holds click on its own



Every now and then, seemingly randomly, the mouse pointer on my OS X 10.6.4-running MBP (summer 2009) will become click-locked. What I mean by this is that it acts as though I have drag-lock on, or that I'm holding down the mouse pointer.


I'm not sure how this is happening, or how the lock is getting activated since I have drag lock disabled in the trackpad system preferences.


I've not been able to reliably reproduce the behavior which turns it on, nor the behavior which turns it off. It seems that if I can get Spotlight to open and launch something like Calculator, then quit the the launched program, the click-lock will release.


Otherwise, the only way out of it is to reboot. This is super frustrating, as it's virtually impossible to save whatever I'm working on when the mouse doesn't work and seems to some impede keyboard shortcuts.

linux - Virtualbox Ubuntu 18.04 permission issue to symlinked share host folder


Trying to get a Ubuntu 18.04 installation for Wordpress on a Win 10 host. The host shares a folder with the VM, which is the root to multiple projects. This is a fresh VM built from the std Ubuntu 18/04 LTS x64 Server image.


I install nginx and I can see the Welcome page. I then delete the /var/www/html folder and re-create using a symlink to my shared folder:


sudo ln -s /media/sf_Wordpress /var/www/html

When I browse my server, I get 502 Bad Gateway.


If I cd into /var/www/hmtl I get permission denied. If I change to root I can access the folder and list all files in the share.


My nginx log says:


papa@wp:~$ tail -f /var/log/nginx/error.log
2018/05/30 05:05:05 [crit] 766#766: *4 stat() "/var/www/html/mysite1/" failed (13: Permission denied), client: 192.168.0.5, server: mysite1.com.au, request: "GET / HTTP/1.1", host: "mysite1.com.au"
2018/05/30 05:05:05 [crit] 766#766: *4 stat() "/var/www/html/mysite1/" failed (13: Permission denied), client: 192.168.0.5, server: mysite1.com.au, request: "GET / HTTP/1.1", host: "mysite1.com.au"
2018/05/30 05:05:05 [error] 766#766: *4 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.5, server: mysite1.com.au, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mysite1.com.au"
2018/05/30 05:05:05 [crit] 766#766: *4 connect() to unix:/tmp/php-cgi.socket failed (2: No such file or directory) while connecting to upstream, client: 192.168.0.5, server: mysite1.com.au, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.socket:", host: "mysite1.com.au"

I added www-data to vboxsf group. No difference.


Checking the nginx process tells me it is being run by root:


papa@wp:~$ ps -eo pid,comm,euser,supgrp | grep nginx
1888 nginx root root
1891 nginx www-data www-data,vboxsf

Using the suggestion from here, I ran:


sudo chown -R www-data:www-data /var/www/html

But it made no difference. Still 502 Bad gateway.


Running nginx -t shows:


papa@wp:~$ nginx -t
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
2018/05/30 07:37:21 [warn] 1905#1905: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1
2018/05/30 07:37:21 [emerg] 1905#1905: open() "/etc/nginx/sites-enabled/fca.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:62
nginx: configuration file /etc/nginx/nginx.conf test failed

My nginx config fca.conf for this site is:


# Upstream to abstract backend connection(s) for php
upstream php {
server unix:/tmp/php-cgi.socket;
server 127.0.0.1:9000;
}

server {
## Your website name goes here.
server_name mysite1.com.au;

## Your only path reference.
root /var/www/html/mysite1;

## This should be in your http block and if it is, it's not needed here.
index index.php;

location = /favicon.ico {
log_not_found off;
access_log off;
}

location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}

location / {
# This is cool because no php is touched for static content.
# include the "?$args" part so non-default permalinks doesn't break when using query string
try_files $uri $uri/ /index.php?$args;
}

location ~ \.php$ {
#NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
include fastcgi.conf;
fastcgi_intercept_errors on;
fastcgi_pass php;
}

location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
}

Answer



Do not forget your shared folder is not really a linux filesystem, only looks a bit like it. Copy everything from the share to a real linux filesystem, and try again.


Don't change the properties of the link


sudo chown -R www-data:www-data /var/www/html

Change the properties of the origin


sudo chown -R www-data:www-data /media/sf_Wordpress

networking - Extending WiFi range - what do I need and in what configuration?


The setup would be as the diagram below.


The issue is that when in Room A, the WiFi signal from the router/modem in Room B is flaky, causing the devices in Room A to drop the connection all the time.


I can easily add another 3-port Powerline networking plug in Room A (I have them elsewhere) to get wired connections into the Wii/XBox/Sky TV box.


My question: I want to get the two WiFi devices in Room A connected via the 'mystery box', which will allow a strong signal since it is in the room, and which will use the (effectively, via Powerline) wired LAN connection to the modem/router in Room B, and not just pick up the existing WiFi signal from Room B,


So do I need something in repeater or access point mode for my mystery box, and can it be made to work over a wired connection?


enter image description here



Answer



Looks to me like your mystery box needs to be a wireless access point.


If you'd like to roam between both WAPs (one in room B and one in room A) then set identical SSID and security settings. I would give this a try and see if it works well with your wireless devices. Wireless roaming is left up to the client device/network adapter, so your mileage may vary between machines (my Galaxy S3 roams like a boss; the wife's ancient Mac book not so much.)


If roaming doesn't work well for you, I would simply change the SSID and ignore/shut off the WiFi in room B. It depends greatly on the equipment, but I have yet to see a decent consumer repeater, and since you can run a line to your mystery box I see no reason to use a repeater.


reinstall - Get Windows 10 Activation Key Without 3rd Party Software



Is there an inherent Microsoft-Exclusive way of obtaining Windows 10 Activation keys from existing installations? Even if this is not necessary with Windows 10 specifically, I want to emphasize my interest in non-3rd-party ways of getting such keys from prior versions of Windows too.


Unnecessary Background Info:


I've upgraded numerous workstation to Windows 10 from Windows 7 and Windows 8.


I want to reinstall Windows 10 from scratch on one of these workstation, but I don't want to have to install windows 7 (or 8) first.


Before doing this, I'd like to obtain the activation key from the current installation of Windows 10.


In the past, I've always resorted to using 3rd Party software to obtain keys, but have never liked doing so.


Is there an inherent Microsoft-Exclusive way of obtaining Windows 10 Activation keys from existing installations?



Answer



Windows 10 activation is granted from a license server. The license is always linked to the machine (more precisely: the motherboard). When Windows 10 is activated once on a dedicated PC, a machine identifier is stored on the license server. When you install Windows 10 again on that machine, it will connect the license server, find a valid license, and activate itself.


linux - How can I keep a process alive after closing the putty session?


I am using putty to interact with Linux server. I have started a process using putty. The process is running and will take 5-6 hours. I want that process to keep running after I close the putty session. How can I keep that process alive after closing the putty session? I do not want to keep the computer ON all the time. Is there any way to do this?.



Answer



I use screen for that kind of stuff. Actually sometimes I just leave it on quite a while so I can get back to what I was doing.


safari - iTunes 9.0.2 hangs on launch on Mac OS X 10.6.2


My iTunes 9.0.2 hangs on launch in OS X 10.6.2. This doesn't happen all the time, only if I've been running for a while. Then it will recur until I restart. Similarly Safari 4.0.4 will hang in the flash player plugin when about to play a video. If I restart both these problems go away until later.


Based on this crash dump I am suspecting Audio Hijack Pro. I will try to install a newer version of the driver involved, but so far I haven't had much luck.


I have uninstalled the Flash Plugin (10.0.r42 and r32) but clearly I want it in the long run.


This is iTunes' crash report.


Date/Time:       2009-12-14 19:56:02 -0500
OS Version: 10.6.2 (Build 10C540)
Architecture: x86_64
Report Version: 6

Command: iTunes
Path: /Applications/iTunes.app/Contents/MacOS/iTunes
Version: 9.0.2 (9.0.2)
Build Version: 2
Project Name: iTunes
Source Version: 9022501
Parent: launchd [120]

PID: 16878
Event: hang
Duration: 3.55s (sampling started after 2 seconds)
Steps: 16 (100ms sampling interval)

Pageins: 5
Pageouts: 0


Process: iTunes [16878]
Path: /Applications/iTunes.app/Contents/MacOS/iTunes
UID: 501

Thread 8f96000
User stack:
16 ??? (in iTunes + 6633) [0x29e9]
16 ??? (in iTunes + 6843) [0x2abb]
16 ??? (in iTunes + 11734) [0x3dd6]
16 ??? (in iTunes + 44960) [0xbfa0]
16 ??? (in iTunes + 45327) [0xc10f]
16 ??? (in iTunes + 2295196) [0x23159c]
16 ??? (in iTunes + 103620) [0x1a4c4]
16 ??? (in iTunes + 105607) [0x1ac87]
16 ??? (in iTunes + 106442) [0x1afca]
16 OpenAComponent + 433 (in CarbonCore) [0x972e9dd0]
16 CallComponentOpen + 43 (in CarbonCore) [0x972ebae7]
16 CallComponentDispatch + 29 (in CarbonCore) [0x972ebb06]
16 DefaultOutputAUEntry + 319 (in CoreAudio) [0x70031117]
16 AUGenericOutputEntry + 15273 (in CoreAudio) [0x7000e960]
16 AUGenericOutputEntry + 13096 (in CoreAudio) [0x7000e0df]
16 AUGenericOutputEntry + 9628 (in CoreAudio) [0x7000d353]
16 ??? [0xe0c16d]
16 ??? [0xe0fdf8]
16 ??? [0xe0e1e7]
16 ahs_hermes_CoreAudio_init + 32 (in Instant Hijack Server) [0x13fc7e9]
16 semaphore_wait_signal_trap + 10 (in libSystem.B.dylib) [0x9798e922]
Kernel stack:
16 semaphore_wait_continue + 0 [0x22a0a5]

Thread 9b9eb7c
User stack:
16 thread_start + 34 (in libSystem.B.dylib) [0x979bbe42]
16 _pthread_start + 345 (in libSystem.B.dylib) [0x979bbfbd]
16 ??? (in iTunes + 4011870) [0x3d475e]
16 CFRunLoopRun + 84 (in CoreFoundation) [0x993497a4]
16 CFRunLoopRunSpecific + 452 (in CoreFoundation) [0x99343864]
16 __CFRunLoopRun + 2079 (in CoreFoundation) [0x9934477f]
16 mach_msg_trap + 10 (in libSystem.B.dylib) [0x9798e8da]
Kernel stack:
16 ipc_mqueue_receive_continue + 0 [0x210aa3]

Thread 9bc8b7c
User stack:
16 start_wqthread + 30 (in libSystem.B.dylib) [0x979b4336]
16 _pthread_wqthread + 390 (in libSystem.B.dylib) [0x979b44f1]
16 _dispatch_worker_thread2 + 234 (in libSystem.B.dylib) [0x979b4a68]
16 _dispatch_queue_invoke + 163 (in libSystem.B.dylib) [0x979b4cc3]
16 kevent + 10 (in libSystem.B.dylib) [0x979b50ea]
Kernel stack:
16 kevent + 97 [0x471745]

Binary Images:
0x1000 - 0xbecfea com.apple.iTunes 9.0.2 (9.0.2) <1F665956-0131-39AF-F334-E29E510D42DA> /Applications/iTunes.app/Contents/MacOS/iTunes
0x13f6000 - 0x1402ff7 com.rogueamoeba.audio_hijack_server.hermes 2.2.2 (2.2.2) <9B29AE7F-6951-E63F-616A-482B62179A5C> /usr/local/hermes/modules/Instant Hijack Server.hermesmodule/Contents/MacOS/Instant Hijack Server
0x70000000 - 0x700cbffb com.apple.audio.units.Components 1.6.1 (1.6.1) <600769A2-479A-CA6E-A214-C8766F7CBD0F> /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio
0x97284000 - 0x975a3fe7 com.apple.CoreServices.CarbonCore 861.2 (861.2) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x9798e000 - 0x97b32feb libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib
0x99308000 - 0x9947ffef com.apple.CoreFoundation 6.6.1 (550.13) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation


Process: AirPort Base Station Agent [142]
Path: /System/Library/CoreServices/AirPort Base Station Agent.app/Contents/MacOS/AirPort Base Station Agent
UID: 501

Thread 8b1d3d4 DispatchQueue 1
User stack:
16 ??? (in AirPort Base Station Agent + 5344) [0x1000014e0]
16 ??? (in AirPort Base Station Agent + 70666) [0x10001140a]
16 CFRunLoopRun + 70 (in CoreFoundation) [0x7fff86e859b6]
16 CFRunLoopRunSpecific + 575 (in CoreFoundation) [0x7fff86e85c2f]
16 __CFRunLoopRun + 1698 (in CoreFoundation) [0x7fff86e867a2]
16 mach_msg_trap + 10 (in libSystem.B.dylib) [0x7fff8786ce3a]
Kernel stack:
16 ipc_mqueue_receive_continue + 0 [0x210aa3]

Thread 8b80000 DispatchQueue 2
User stack:
16 start_wqthread + 13 (in libSystem.B.dylib) [0x7fff87886a55]
16 _pthread_wqthread + 353 (in libSystem.B.dylib) [0x7fff87886bb8]
16 _dispatch_worker_thread2 + 244 (in libSystem.B.dylib) [0x7fff87887286]
16 _dispatch_queue_invoke + 185 (in libSystem.B.dylib) [0x7fff8788775c]
16 kevent + 10 (in libSystem.B.dylib) [0x7fff87885bba]
Kernel stack:
16 kevent + 97 [0x471745]

Thread 6e3c7a8
User stack:
16 start_wqthread + 13 (in libSystem.B.dylib) [0x7fff87886a55]
16 __workq_kernreturn + 10 (in libSystem.B.dylib) [0x7fff878869da]
Kernel stack:
16 workqueue_thread_yielded + 562 [0x4cb6ae]

Thread 8b0f3d4
User stack:
16 thread_start + 13 (in libSystem.B.dylib) [0x7fff878a5e41]
16 _pthread_start + 331 (in libSystem.B.dylib) [0x7fff878a5f8e]
16 select$DARWIN_EXTSN + 10 (in libSystem.B.dylib) [0x7fff878b09e2]
Kernel stack:
16 sleep + 52 [0x487f93]

Thread 8bcb000
User stack:
16 thread_start + 13 (in libSystem.B.dylib) [0x7fff878a5e41]
16 _pthread_start + 331 (in libSystem.B.dylib) [0x7fff878a5f8e]
16 ??? (in AirPort Base Station Agent + 71314) [0x100011692]
16 ??? (in AirPort Base Station Agent + 13712) [0x100003590]
16 ??? (in AirPort Base Station Agent + 71484) [0x10001173c]
16 __semwait_signal + 10 (in libSystem.B.dylib) [0x7fff878a79ee]
Kernel stack:
16 semaphore_wait_continue + 0 [0x22a0a5]

Binary Images:
0x100000000 - 0x100016fff com.apple.AirPortBaseStationAgent 1.5.4 (154.2) <73DF13C1-AF86-EC2C-9056-8D1946E607CF> /System/Library/CoreServices/AirPort Base Station Agent.app/Contents/MacOS/AirPort Base Station Agent
0x7fff86e3b000 - 0x7fff86faeff7 com.apple.CoreFoundation 6.6.1 (550.13) <1E952BD9-37C6-16BE-B2F0-CD92A6283D37> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff8786c000 - 0x7fff87a2aff7 libSystem.B.dylib ??? (???) <526DD3E5-2A8B-4512-ED97-01B832369959> /usr/lib/libSystem.B.dylib


Process: AppleSpell [3041]
Path: /System/Library/Services/AppleSpell.service/Contents/MacOS/AppleSpell
UID: 501

Thread 999a000 DispatchQueue 1
User stack:
16 ??? (in AppleSpell + 5852) [0x1000016dc]
16 ??? (in AppleSpell + 6508) [0x10000196c]
16 -[NSSpellServer run] + 72 (in Foundation) [0x7fff81d3b796]
16 CFRunLoopRun + 70 (in CoreFoundation) [0x7fff86e859b6]
16 CFRunLoopRunSpecific + 575 (in CoreFoundation) [0x7fff86e85c2f]
16 __CFRunLoopRun + 1698 (in CoreFoundation) [0x7fff86e867a2]
16 mach_msg_trap + 10 (in libSystem.B.dylib) [0x7fff8786ce3a]
Kernel stack:
16 ipc_mqueue_receive_continue + 0 [0x210aa3]

Thread 8a9e7a8 DispatchQueue 2
User stack:
16 start_wqthread + 13 (in libSystem.B.dylib) [0x7fff87886a55]
16 _pthread_wqthread + 353 (in libSystem.B.dylib) [0x7fff87886bb8]
16 _dispatch_worker_thread2 + 244 (in libSystem.B.dylib) [0x7fff87887286]
16 _dispatch_queue_invoke + 185 (in libSystem.B.dylib) [0x7fff8788775c]
16 kevent + 10 (in libSystem.B.dylib) [0x7fff87885bba]
Kernel stack:
16 kevent + 97 [0x471745]

Binary Images:
0x100000000 - 0x1000a9fef com.apple.AppleSpell 1.6.1 (61.1) <6DE57CC1-77A0-BC06-45E7-E1EACEBE1A88> /System/Library/Services/AppleSpell.service/Contents/MacOS/AppleSpell
0x7fff81cbc000 - 0x7fff81f3dfe7 com.apple.Foundation 6.6.1 (751.14) <767349DB-C486-70E8-7970-F13DB4CDAF37> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x7fff86e3b000 - 0x7fff86faeff7 com.apple.CoreFoundation 6.6.1 (550.13) <1E952BD9-37C6-16BE-B2F0-CD92A6283D37> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff8786c000 - 0x7fff87a2aff7 libSystem.B.dylib ??? (???) <526DD3E5-2A8B-4512-ED97-01B832369959> /usr/lib/libSystem.B.dylib


Process: autofsd [52]
Path: /usr/libexec/autofsd
UID: 0

Thread 79933d4 DispatchQueue 1
User stack:
16 ??? (in autofsd + 5340) [0x1000014dc]
16 ??? (in autofsd + 6461) [0x10000193d]
16 CFRunLoopRun + 70 (in CoreFoundation) [0x7fff86e859b6]
16 CFRunLoopRunSpecific + 575 (in CoreFoundation) [0x7fff86e85c2f]
16 __CFRunLoopRun + 1698 (in CoreFoundation) [0x7fff86e867a2]
16 mach_msg_trap + 10 (in libSystem.B.dylib) [0x7fff8786ce3a]
Kernel stack:
16 ipc_mqueue_receive_continue + 0 [0x210aa3]

Thread 75997a8 DispatchQueue 2
User stack:
16 start_wqthread + 13 (in libSystem.B.dylib) [0x7fff87886a55]
16 _pthread_wqthread + 353 (in libSystem.B.dylib) [0x7fff87886bb8]
16 _dispatch_worker_thread2 + 244 (in libSystem.B.dylib) [0x7fff87887286]
16 _dispatch_queue_invoke + 185 (in libSystem.B.dylib) [0x7fff8788775c]
16 kevent + 10 (in libSystem.B.dylib) [0x7fff87885bba]
Kernel stack:
16 kevent + 97 [0x471745]

Binary Images:
0x100000000 - 0x100001ff7 autofsd ??? (???) <29276FAC-AEA8-1520-5329-C75F9D453D6C> /usr/libexec/autofsd
0x7fff86e3b000 - 0x7fff86faeff7 com.apple.CoreFoundation 6.6.1 (550.13) <1E952BD9-37C6-16BE-B2F0-CD92A6283D37> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff8786c000 - 0x7fff87a2aff7 libSystem.B.dylib ??? (???) <526DD3E5-2A8B-4512-ED97-01B832369959> /usr/lib/libSystem.B.dylib


Process: blued [51]
Path: /usr/sbin/blued
UID: 0

Thread 7993000 DispatchQueue 1
User stack:
16 ??? (in blued + 5016) [0x100001398]
16 ??? (in blued + 152265) [0x1000252c9]
16 -[NSRunLoop(NSRunLoop) run] + 77 (in Foundation) [0x7fff81d07903]
16 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 270 (in Foundation) [0x7fff81d07a24]
16 CFRunLoopRunSpecific + 575 (in CoreFoundation) [0x7fff86e85c2f]
16 __CFRunLoopRun + 1698 (in CoreFoundation) [0x7fff86e867a2]
16 mach_msg_trap + 10 (in libSystem.B.dylib) [0x7fff8786ce3a]
Kernel stack:
16 ipc_mqueue_receive_continue + 0 [0x210aa3]

Thread 70db000 DispatchQueue 2
User stack:
16 start_wqthread + 13 (in libSystem.B.dylib) [0x7fff87886a55]
16 _pthread_wqthread + 353 (in libSystem.B.dylib) [0x7fff87886bb8]
16 _dispatch_worker_thread2 + 244 (in libSystem.B.dylib) [0x7fff87887286]
16 _dispatch_queue_invoke + 185 (in libSystem.B.dylib) [0x7fff8788775c]
16 kevent + 10 (in libSystem.B.dylib) [0x7fff87885bba]
Kernel stack:
16 kevent + 97 [0x471745]

Thread 84d2000
User stack:
16 thread_start + 13 (in libSystem.B.dylib) [0x7fff878a5e41]
16 _pthread_start + 331 (in libSystem.B.dylib) [0x7fff878a5f8e]
16 select$DARWIN_EXTSN + 10 (in libSystem.B.dylib) [0x7fff878b09e2]
Kernel stack:
16 sleep + 52 [0x487f93]

Binary Images:
0x100000000 - 0x100044fff blued ??? (???) /usr/sbin/blued
0x7fff81cbc000 - 0x7fff81f3dfe7 com.apple.Foundation 6.6.1 (751.14) <767349DB-C486-70E8-7970-F13DB4CDAF37> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x7fff86e3b000 - 0x7fff86faeff7 com.apple.CoreFoundation 6.6.1 (550.13) <1E952BD9-37C6-16BE-B2F0-CD92A6283D37> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff8786c000 - 0x7fff87a2aff7 libSystem.B.dylib ??? (???) <526DD3E5-2A8B-4512-ED97-01B832369959> /usr/lib/libSystem.B.dylib


Process: check_afp [84504]
Path: /System/Library/Filesystems/AppleShare/check_afp.app/Contents/MacOS/check_afp
UID: 0

Thread 1140f000 DispatchQueue 1
User stack:
16 ??? (in check_afp + 5596) [0x1000015dc]
16 ??? (in check_afp + 12976) [0x1000032b0]
16 ??? (in check_afp + 6664) [0x100001a08]
16 ??? (in check_afp + 6520) [0x100001978]
16 CFRunLoopRun + 70 (in CoreFoundation) [0x7fff86e859b6]
16 CFRunLoopRunSpecific + 575 (in CoreFoundation) [0x7fff86e85c2f]
16 __CFRunLoopRun + 1698 (in CoreFoundation) [0x7fff86e867a2]
16 mach_msg_trap + 10 (in libSystem.B.dylib) [0x7fff8786ce3a]
Kernel stack:
16 ipc_mqueue_receive_continue + 0 [0x210aa3]

Thread 13ad8b7c DispatchQueue 2
User stack:
16 start_wqthread + 13 (in libSystem.B.dylib) [0x7fff87886a55]
16 _pthread_wqthread + 353 (in libSystem.B.dylib) [0x7fff87886bb8]
16 _dispatch_worker_thread2 + 244 (in libSystem.B.dylib) [0x7fff87887286]
16 _dispatch_queue_invoke + 185 (in libSystem.B.dylib) [0x7fff8788775c]
16 kevent + 10 (in libSystem.B.dylib) [0x7fff87885bba]
Kernel stack:
16 kevent + 97 [0x471745]

Thread 13ad6b7c
User stack:
16 thread_start + 13 (in libSystem.B.dylib) [0x7fff878a5e41]
16 _pthread_start + 331 (in libSystem.B.dylib) [0x7fff878a5f8e]
16 ??? (in check_afp + 13071) [0x10000330f]
16 mach_msg_server_once + 285 (in libSystem.B.dylib) [0x7fff878b2417]
16 mach_msg_trap + 10 (in libSystem.B.dylib) [0x7fff8786ce3a]
Kernel stack:
16 ipc_mqueue_receive_continue + 0 [0x210aa3]

Thread 13ad87a8
User stack:
16 thread_start + 13 (in libSystem.B.dylib) [0x7fff878a5e41]
16 _pthread_start + 331 (in libSystem.B.dylib) [0x7fff878a5f8e]
16 select$DARWIN_EXTSN + 10 (in libSystem.B.dylib) [0x7fff878b09e2]
Kernel stack:
16 sleep + 52 [0x487f93]

Binary Images:
0x100000000 - 0x100004ff7 com.apple.check_afp 2.0 (2.0) /System/Library/Filesystems/AppleShare/check_afp.app/Contents/MacOS/check_afp
0x7fff86e3b000 - 0x7fff86faeff7 com.apple.CoreFoundation 6.6.1 (550.13) <1E952BD9-37C6-16BE-B2F0-CD92A6283D37> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff8786c000 - 0x7fff87a2aff7 libSystem.B.dylib ??? (???) <526DD3E5-2A8B-4512-ED97-01B832369959> /usr/lib/libSystem.B.dylib


Process: configd [14]
Path: /usr/libexec/configd
UID: 0

Thread 704a3d4 DispatchQueue 1
User stack:
16 start + 52 (in configd) [0x100001488]
16 main + 2051 (in configd) [0x100001c9e]
16 server_loop + 72 (in configd) [0x1000024f4]
16 CFRunLoopRunSpecific + 575 (in CoreFoundation) [0x7fff86e85c2f]
16 __CFRunLoopRun + 1698 (in CoreFoundation) [0x7fff86e867a2]
16 mach_msg_trap + 10 (in libSystem.B.dylib) [0x7fff8786ce3a]
Kernel stack:
16 ipc_mqueue_receive_continue + 0 [0x210aa3]

Thread 6e70000 DispatchQueue 2
User stack:
16 start_wqthread + 13 (in libSystem.B.dylib) [0x7fff87886a55]
16 _pthread_wqthread + 353 (in libSystem.B.dylib) [0x7fff87886bb8]
16 _dispatch_worker_thread2 + 244 (in libSystem.B.dylib) [0x7fff87887286]
16 _dispatch_queue_invoke + 185 (in libSystem.B.dylib) [0x7fff8788775c]
16 kevent + 10 (in libSystem.B.dylib) [0x7fff87885bba]
Kernel stack:
16 kevent + 97 [0x471745]

Thread 74a7b7c
User stack:
16 thread_start + 13 (in libSystem.B.dylib) [0x7fff878a5e41]
16 _pthread_start + 331 (in libSystem.B.dylib) [0x7fff878a5f8e]
16 plugin_exec + 1440 (in configd) [0x100003c5b]
16 CFRunLoopRun + 70 (in CoreFoundation) [0x7fff86e859b6]
16 CFRunLoopRunSpecific + 575 (in CoreFoundation) [0x7fff86e85c2f]
16 __CFRunLoopRun + 1698 (in CoreFoundation) [0x7fff86e867a2]
16 mach_msg_trap + 10 (in libSystem.B.dylib) [0x7fff8786ce3a]
Kernel stack:
16 ipc_mqueue_receive_continue + 0 [0x210aa3]

Thread 7560000
User stack:
16 thread_start + 13 (in libSystem.B.dylib) [0x7fff878a5e41]
16 _pthread_start + 331 (in libSystem.B.dylib) [0x7fff878a5f8e]
16 _io_pm_force_active_settings + 2266 (in PowerManagement) [0x10050f968]
16 CFRunLoopRun + 70 (in CoreFoundation) [0x7fff86e859b6]
16 CFRunLoopRunSpecific + 575 (in CoreFoundation) [0x7fff86e85c2f]
16 __CFRunLoopRun + 1698 (in CoreFoundation) [0x7fff86e867a2]
16 mach_msg_trap + 10 (in libSystem.B.dylib) [0x7fff8786ce3a]
Kernel stack:
16 ipc_mqueue_receive_continue + 0 [0x210aa3]

Thread 75817a8
User stack:
16 thread_start + 13 (in libSystem.B.dylib) [0x7fff878a5e41]
16 _pthread_start + 331 (in libSystem.B.dylib) [0x7fff878a5f8e]
16 select$DARWIN_EXTSN + 10 (in libSystem.B.dylib) [0x7fff878b09e2]
Kernel stack:
16 sleep + 52 [0x487f93]

Thread 8b1db7c
User stack:
16 start_wqthread + 13 (in libSystem.B.dylib) [0x7fff87886a55]
16 __workq_kernreturn + 10 (in libSystem.B.dylib) [0x7fff878869da]
Kernel stack:
16 workqueue_thread_yielded + 562 [0x4cb6ae]

Binary Images:
0x100000000 - 0x100026ff7 configd ??? (???) <58C02CBA-5556-4CDC-2763-814C4C7175DE> /usr/libexec/configd
0x10050c000 - 0x10051dfff com.apple.SystemConfiguration.PowerManagement 160.0.0 (160.0.0) <0AC3D2ED-919E-29C7-9EEF-629FBDDA6159> /System/Library/SystemConfiguration/PowerManagement.bundle/Contents/MacOS/PowerManagement
0x7fff86e3b000 - 0x7fff86faeff7 com.apple.CoreFoundation 6.6.1 (550.13) <1E952BD9-37C6-16BE-B2F0-CD92A6283D37> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff8786c000 - 0x7fff87a2aff7 libSystem.B.dylib ??? (???) <526DD3E5-2A8B-4512-ED97-01B832369959> /usr/lib/libSystem.B.dylib


Process: coreaudiod [114]
Path: /usr/sbin/coreaudiod
UID: 202

Thread 83b93d4 DispatchQueue 1
User stack:
16 ??? (in coreaudiod + 3252) [0x100000cb4]
16 ??? (in coreaudiod + 26505) [0x100006789]
16 CFRunLoopRunSpecific + 575 (in CoreFoundation) [0x7fff86e85c2f]
16 __CFRunLoopRun + 1698 (in CoreFoundation) [0x7fff86e867a2]
16 mach_msg_trap + 10 (in libSystem.B.dylib) [0x7fff8786ce3a]
Kernel stack:
16 ipc_mqueue_receive_continue + 0 [0x210aa3]

Thread 847e3d4 DispatchQueue 2
User stack:
16 start_wqthread + 13 (in libSystem.B.dylib) [0x7fff87886a55]
16 _pthread_wqthread + 353 (in libSystem.B.dylib) [0x7fff87886bb8]
16 _dispatch_worker_thread2 + 244 (in libSystem.B.dylib) [0x7fff87887286]
16 _dispatch_queue_invoke + 185 (in libSystem.B.dylib) [0x7fff8788775c]
16 kevent + 10 (in libSystem.B.dylib) [0x7fff87885bba]
Kernel stack:
16 kevent + 97 [0x471745]

Thread 854c000
User stack:
3 start_wqthread + 13 (in libSystem.B.dylib) [0x7fff87886a55]
3 __workq_kernreturn + 10 (in libSystem.B.dylib) [0x7fff878869da]
Kernel stack:
3 workqueue_thread_yielded + 562 [0x4cb6ae]

Binary Images:
0x100000000 - 0x10001ffef coreaudiod ??? (???) /usr/sbin/coreaudiod
0x7fff86e3b000 - 0x7fff86faeff7 com.apple.CoreFoundation 6.6.1 (550.13) <1E952BD9-37C6-16BE-B2F0-CD92A6283D37> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff8786c000 - 0x7fff87a2aff7 libSystem.B.dylib ??? (???) <526DD3E5-2A8B-4512-ED97-01B832369959> /usr/lib/libSystem.B.dylib


Process: coreservicesd [66]
Path: /System/Library/CoreServices/coreservicesd
UID: 0

Thread 7994000 DispatchQueue 1
User stack:
16 ??? (in coreservicesd + 3756) [0x100000eac]
16 _CoreServicesServerMain + 522 (in CarbonCore) [0x7fff8327a972]
16 CFRunLoopRun + 70 (in CoreFoundation) [0x7fff86e859b6]
16 CFRunLoopRunSpecific + 575 (in CoreFoundation) [0x7fff86e85c2f]
16 __CFRunLoopRun + 1698 (in CoreFoundation) [0x7fff86e867a2]
16 mach_msg_trap + 10 (in libSystem.B.dylib) [0x7fff8786ce3a]
Kernel stack:
16 ipc_mqueue_receive_continue + 0 [0x210aa3]

Thread 76227a8
User stack:
16 thread_start + 13 (in libSystem.B.dylib) [0x7fff878a5e41]
16 _pthread_start + 331 (in libSystem.B.dylib) [0x7fff878a5f8e]
16 read + 10 (in libSystem.B.dylib) [0x7fff87877426]
Kernel stack:
16 lo64_unix_scall + 77 [0x29e3fd]
16 unix_syscall64 + 617 [0x4ee947]
16 read_nocancel + 158 [0x496add]
16 write + 312 [0x49634d]
16 get_pathbuff + 3054 [0x3023db]
16 tsleep + 105 [0x4881ce]
16 wakeup + 786 [0x487da7]
16 thread_block + 33 [0x226fb5]
16 thread_block_reason + 331 [0x226f27]
16 thread_dispatch + 1950 [0x226c88]
16 machine_switch_context + 753 [0x2a5a37]

Thread 7622b7c
User stack:
16 thread_start + 13 (in libSystem.B.dylib) [0x7fff878a5e41]
16 _pthread_start + 331 (in libSystem.B.dylib) [0x7fff878a5f8e]
16 fmodWatchConsumer + 347 (in CarbonCore) [0x7fff8322f23f]
16 __semwait_signal + 10 (in libSystem.B.dylib) [0x7fff878a79ee]
Kernel stack:
16 semaphore_wait_continue + 0 [0x22a0a5]

Thread 79913d4
User stack:
16 start_wqthread + 13 (in libSystem.B.dylib) [0x7fff87886a55]
16 _pthread_wqthread + 353 (in libSystem.B.dylib) [0x7fff87886bb8]
16 _dispatch_worker_thread2 + 244 (in libSystem.B.dylib) [0x7fff87887286]
16 _dispatch_queue_invoke + 185 (in libSystem.B.dylib) [0x7fff8788775c]
16 kevent + 10 (in libSystem.B.dylib) [0x7fff87885bba]
Kernel stack:
16 kevent + 97 [0x471745]

Thread 84d2b7c
User stack:
16 start_wqthread + 13 (in libSystem.B.dylib) [0x7fff87886a55]
16 __workq_kernreturn + 10 (in libSystem.B.dylib) [0x7fff878869da]
Kernel stack:
16 workqueue_thread_yielded + 562 [0x4cb6ae]

Thread 9b643d4
User stack:
15 start_wqthread + 13 (in libSystem.B.dylib) [0x7fff87886a55]
15 __workq_kernreturn + 10 (in libSystem.B.dylib) [0x7fff878869da]
Kernel stack:
16 workqueue_thread_yielded + 562 [0x4cb6ae]

Binary Images:
0x100000000 - 0x100000fff coreservicesd ??? (???) /System/Library/CoreServices/coreservicesd
0x7fff831cb000 - 0x7fff834fdfef com.apple.CoreServices.CarbonCore 861.2 (861.2) <39F3B259-AC2A-792B-ECFE-4F3E72F2D1A5> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x7fff86e3b000 - 0x7fff86faeff7 com.apple.CoreFoundation 6.6.1 (550.13) <1E952BD9-37C6-16BE-B2F0-CD92A6283D37> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff8786c000 - 0x7fff87a2aff7 libSystem.B.dylib ??? (???) <526DD3E5-2A8B-4512-ED97-01B832369959> /usr/lib/libSystem.B.dylib


Process: cron [31]
Path: /usr/sbin/cron
UID: 0

Thread 75acb7c DispatchQueue 1
User stack:
16 ??? (in cron + 2872) [0x100000b38]
16 ??? (in cron + 3991) [0x100000f97]
16 sleep + 61 (in libSystem.B.dylib) [0x7fff878f5090]
16 __semwait_signal + 10 (in libSystem.B.dylib) [0x7fff878a79ee]
Kernel stack:
16 semaphore_wait_continue + 0 [0x22a0a5]

Binary Images:
0x100000000 - 0x100006fff cron ??? (???) <3C5DCC7E-B6E8-1318-8E00-AB721270BFD4> /usr/sbin/cron
0x7fff8786c000 - 0x7fff87a2aff7 libSystem.B.dylib ??? (???) <526DD3E5-2A8B-4512-ED97-01B832369959> /usr/lib/libSystem.B.dylib


Process: cvmsServ [104]
Path: /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/cvmsServ
UID: 0

Thread 761f3d4 DispatchQueue 1
User stack:
16 ??? (in cvmsServ + 4100) [0x100001004]
16 ??? (in cvmsServ + 23081) [0x100005a29]
16 mach_msg_server + 597 (in libSystem.B.dylib) [0x7fff878ea1c8]
16 mach_msg_trap + 10 (in libSystem.B.dylib) [0x7fff8786ce3a]
Kernel stack:
16 ipc_mqueue_receive_continue + 0 [0x210aa3]

Binary Images:
0x100000000 - 0x100008fff cvmsServ ??? (???) <6200AD80-4159-5656-8736-B72B7388C461> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/cvmsServ
0x7fff8786c000 - 0x7fff87a2aff7 libSystem.B.dylib ??? (???) <526DD3E5-2A8B-4512-ED97-01B832369959> /usr/lib/libSystem.B.dylib


Process: DirectoryService [11]
Path: /usr/sbin/DirectoryService
UID: 0

Thread 70db7a8 DispatchQueue 1
User stack:
16 start + 52 (in DirectoryService) [0x10000da74]
16 main + 3086 (in DirectoryService) [0x10000e68a]
16 CFRunLoopRun + 70 (in CoreFoundation) [0x7fff86e859b6]
16 CFRunLoopRunSpecific + 575 (in CoreFoundation) [0x7fff86e85c2f]
16 __CFRunLoopRun + 1698 (in CoreFoundation) [0x7fff86e867a2]
16 mach_msg_trap + 10 (in libSystem.B.dylib) [0x7fff8786ce3a]
Kernel stack:
16 ipc_mqueue_receive_continue + 0 [0x210aa3]

Thread DispatchQueue 6
User stack:
17 start_wqthread + 13 (in libSystem.B.dylib) [0x7fff87886a55]
17 _pthread_wqthread + 353 (in libSystem.B.dylib) [0x7fff87886bb8]
16 _dispatch_worker_thread2 + 231 (in libSystem.B.dylib) [0x7fff87887279]
16 _dispatch_call_block_and_release + 15 (in libSystem.B.dylib) [0x7fff878a8ce8]
16 syscall + 10 (in libSystem.B.dylib) [0x7fff878a92da]
1 _disp

Answer



So far updating to Audio Hijack Pro 2.9.6 seems to have avoided the crashes.


Windows 10 Start Menu search not working for new apps


After installing Windows 10, while typing in the Start menu, I was able to search for some basic programs and system elements like Control Panel. After some initial setup and installing some applications (i.e. Visual Studio, Virtual Box), however, it was impossible to find them.


I tried rebuilding my search index, but to no avail. I followed another suggestion -- deleting all files in %ProgramData%\Microsoft\Search -- but it only made things worse; I could no longer search for basic apps or system components.


How can I get Windows search working properly?



Answer



I managed to fix the issue and I think this answer can be relevant for some of the problems reported in semi-related questions. I want to tell you everything I know with as many details as possible so if my fix is not working you can come up with something reading this. That's why I wrote tl;dr section.


TL;DR


re-enable UAC / EnableLUA. Mark %ProgramData% folder as not readonly, verify permissions, also try Windows 10 Search can't find ANY applications. Even calculator


My exact steps



  1. Installed Windows (upgraded from Windows 8.1 with total purge of system drive)

  2. Performed my initial setup ritual* (this was the cause - see below)

  3. Installed some new apps

  4. Noticed search is not working properly

  5. Tried rebuilding the index to no avail

  6. Deleted all files in Windows Search directory (made things worse)

  7. Tried rebuilding the search index once again (no effect at all)

  8. Run windows search troubleshooting And this was the first I got some valuable feedback: Incorrect permissions on Windows Search directories - (red cross) Not fixed.


Solution


I verified permissions and folder attributes of the aforementioned folder and everytihng seemed to be OK. So I thought "ah, what the hell" and enabled UAC, rebooted Windows and was shocked by start menu search correclty without even rebuilding index etc.


Cause


My initial setup includes many steps like installing web browser, email client, VPN etc. and


Disabling UAC globally (EnableLUA->0 method) Why? I am not in danger, Skyler. I AM THE DANGER!


I fixed Windows, made workarounds for Windows and .NET bugs, hacked windows kernel etc. so I find UAC very, very, very annoying because I am not your normal, everyday user. I don't need to be protected by system, it is the other way around. I am aware why metro apps won't work in this mode and I understand this totally. As far as I know many people disable UAC like that


Very important thing is I did this in Windows 8.1 and didn't experience such problems


After looking at some other questions here, at Super User I found one asking about indexing on SSD in Windows 8, I remembered Windows 10 Control Panel Search and Indexing options and launched Windows 8 to see if I can give a step by step instructions how to resolve his issue using these settings. But turns out this is new in Windows 10 (I never really looked at all elements of Control Panel, I rather used mmc). After some searching (oh, irony!) I found out that the new indexing mechanism in Windows 10 doesn't work with UAC disabled, until this is fixed I have to update the index after installing new apps by enabling and re-disabling UAC.


If I have time I will try to come up with workaround if this will not be fixed by Microsoft.


Why am I blocked from dragging windows across screen boundaries (multiple monitors) in Windows 10?

Recently upgraded to Windows 10. When I attempt to grab the title bar of a window and drag it to another monitor - I have two side-by-side monitors - Windows frequently prevents it. It appears like Windows thinks that I want to "snap" the window to the side of the origin monitor and won't let my mouse cursor cross the boundary to the destination monitor.


It appears like this: Here's how it appears



Figure 1: Google Chrome is being dragged left across Screen 2 onto Screen 1. When the mouse pointer hits the edge of the screens, a blue circle appears, showing the "snap to screen" effect.


ubuntu 10.04 - How Can I Print Under A Username Different Than The One I'm Logged In As?

I bring my own personal laptop to school where my login is nickname. However, in order to print to the school's printers the username that sends the print job must match my school's AD login, firstname.lastname. Is there any way short of creating a firstname.lastname user on my computer to have print jobs sent to the school's printers have the originating login of firstname.lastname? For the record, my computer is running Ubuntu 10.04 and the school uses the lpr protocol to queue print jobs over the network.

linux - See history of who all opened a particular file


How can I know who opened a particular file recently but might not have kept it opened at the moment?


Anyone has an idea?



Answer



Well, if you mean in the past, you probably cannot, unless you have some kind of audtiting turned on.


Assuming you do not, you can look at the permissions of the file and the directories to see who has has access. You can grep everyone's .bash_history file for the file name.


And that is about it, as far as I know. If they still have it open, you could use lsof, for instance.


graphics card - System won't boot: Gigabyte HD 7790 1GB OC GPU issue or Corsair VS550 PSU issue?


Installed a new GPU, and PC won't boot. Turn it on and:



  • No monitor signal at all (tried HDMI and VGA via DVI, on 2 working monitors).

  • CPU and GPU fans DO spin, but

  • No system beeps, no sounds from drives (they might make a small noise in the first 1 second or so, but there's definitely no OS loading or anything like that)

  • If hit "power off" button it turns off immediately (no holding down for 3 seconds like usual)


If I put my old HD 5670 GPU back in, everything works fine.


But (plot twist!) card is not totally dead. My friend put it in his PC, and it works fine (he even played a game for 15 minutes, no issues). He has a Corsair TX850 850W and a Gigabyte MB.


So my main theory is: the GPU isn't getting enough power from the PSU. But is it:




  • Bad PSU? Seems unlikely, since it works fine with the other GPU. Also, the PSU Is brand new and 550W (single 42A/504W 12V rail). Overkill for this GPU. Corsair is a decent brand, but maybe just mine is faulty?




  • Bad GPU? Could it be drawing more power than it should be, somehow, or something? Supposedly HD 7790 needs only 21A/75W on the 12v rail, though this one is factory overclocked a bit... but should that triple the power requirement?




  • Something else? Could there be a motherboard incompatibility somehow? Both MB and GPU are less than a year old and PCI Express 3.0 x16.




Things I've tried:



  • Re-seating the video card

  • Testing PC with old GPU (works fine, same PCIe slot).

  • Checked AMD's stated amp/watt requirements of a 7790 and my PSU (see above). My PSU can output twice the amps (single rail) and 5x the Wattage a 7790 needs.


Here are the full specs:


Gigabyte HD 7790 1GB OC GPU
Corsair VS550 550W PSU
4GB RAM
AsRock H61M U3S3 motherboard
i3-2100
500GB SATA HDD (2007-ish)
blu-ray drive (new)
PCI 802.11g card


Edit: Motherboard BIOS Update seems to have fixed it. (If anyone has same problem and it doesn't work, comment here).



Answer



I've seen that problem happen before with a brand new graphics card with 2GB of RAM. The graphics card worked fine on one computer, and the other computer wouldn't start with the new graphics card installed in it. The fans would spin, but there was no monitor signal at all, neither for VGA nor HDMI.


The first thing I would check to troubleshoot your problem is your ASRock motherboard1. Maybe your motherboard isn't delivering enough power to your graphics card. A graphics card with two large fans like yours would require more power than usual when the system is booting.


1 Motherboard BIOS update fixed it.


Set user for auto logon on windows via batch script


What I want to do is, to set one of 2 users as default user and auto logon. After some research I found how to do it via gui:



  1. Windows Key + R

  2. Enter control userpasswords2

  3. Select user that you want to be default during auto logon

  4. Untick Users must ...


Something like that


enter image description here


But, there are about 70 computers in room that waits for user to select one of 2 user accounts: "admin" and "user1" before start. I want to do it not via GUI but with the help of simple .cmd or .bat script. is that possible? How to set user1 as default account and disable logon user selection screen with bat file? Please help.


BTW, the windows I use is XP



Answer



You can set these values in registry:




  1. Enable Auto Logon: reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1




  2. Set username for logon: reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /t REG_SZ /d youruser




  3. Set domain if your pc is in domain: reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /t REG_SZ /d yourdomain




  4. Set users password: reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /t REG_SZ /d yourpassword




  5. Set how many times it shoud logon automatically (0 for infinite): reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 0




Copy these in setlogon.bat file and you have your script.


eof - How to go to the bottom of the file on startup in Notepad++


I know this is completely unreasonable feature for a text editor to have, however, when I edit various files, I almost always have to do it at the end of the file.


Is there a feature in Notepad++ that will move the cursor, caret and focus to the bottom of the file?


Or perhaps open Notepad++ with a command-line parameter that forces cursor to the bottom



Answer



No. But you have two options:



  • Notepad++ is GNU. Get the sources, patch, build.

  • Open the file, hit Ctrl+End


Tuesday, 28 August 2018

Understanding buffer/bitrate statistics in Media Player Classic

I understand that the two numbers under bitrate are the average bitrate and the current bitrate of each stream.


But what are the two numbers under buffers? I suppose the second one is the amount of data loaded in memory, but what is the first number? The amount of data decoded?


Also, why are there a jitter and a sync offset?


(For your reference, here stream 0-6 are video track 1, audio track 1-2 and subtitle track 1-4.)


alt text

FFMPEG add audio to a video but clip it to the video length


I'm trying to create a video from an image sequence and add audio with FFMPEG


The frame sequence is only 25 frames long but the audio is several minutes. I want FFMPEG to clip the audio to the length of the frame sequence.


This is the command I have tried:


ffmpeg -i input_images%04d.jpg -pix_fmt yuv420p -vcodec mjpeg -qmin 1 -qmax 1 -r 25 -i audio_file.mp3 -ar 22050 -ab 192k -aframes 25 output.mov

This results in a video with the first image sequence but the full length audio. -aframes is ignored. Any ideas?



Answer



From the FFmpeg documentation:


ffmpeg -i in%04d.jpg -i in.mp3 -shortest out.mov

The -shortest option finishes encoding when the shortest input stream ends.


When you're merging video and audio files, you can also copy the bitstreams to avoid encoding:


ffmpeg -i video.mp4 -i audio.m4a -c copy -map 0:v -map 1:a output.mp4

Windows 7: Error Ejecting USB Mass Storage Device

Sometimes, when trying to eject (remove) an external USB hard drive, Windows 7 issues the following error:



Problem Ejecting USB Mass Storage Device


Windows can't stop your 'Generic volume' device because a program is still using it. Close any programs that might be using the device, and then try again later.



This question addresses this issue when it happens in Windows XP or Windows Vista. Are there better techniques to use in Windows 7 SP1, preferably something that does not require a closed-source third-party tool?


Things I have tried:



  • Closing all applications.

  • Letting the system sit for 5 minutes to finish any outstanding NTFS journal writes.

  • Disabling Windows indexing.

  • Ensuring that there are no shares.

  • Temporarily disabling antivirus.

  • Using USB Disk Ejector (did not help).

  • Putting the system in sleep mode and then waking it up.

  • Using SysInternal's Process Explorer to see if any processes are using the drive.


My technique in the past was to turn off the system, but chkdsk often detects errors after doing this.

networking - "Destination port unreachable" when pinging computer in another subnet

In my home network, I connect to the Internet through a router (192.168.1.1). I also have another router (192.168.1.15, 192.168.2.1), this one using OpenWRT, configured as a wireless client. One of my computers is connected to that router via an Ethernet cable, which is connected to my main router wirelessly.


Due to being connected through the OpenWRT router, my computer (192.168.2.4) is on a different subnet. I have a static route set up on my main router for this. The destination network is set as 192.168.2.0, the subnet mask is 255.255.255.0, and the gateway is set as 192.168.1.15. This computer can access both the Internet and other computers on the network without trouble.


Anyway, from a computer in subnet 192.168.1.x, I can ping 192.168.1.15 and 192.168.2.1 (both IP addresses of my OpenWRT router) just fine. However, when I try to ping 192.168.2.4, I get the following message:


PING 192.168.2.4 (192.168.2.4) 56(84) bytes of data.
From 192.168.1.15 icmp_seq=1 Destination Port Unreachable

Clearly it's using the static route I assigned. The problem seems to be that the OpenWRT router doesn't know how to route packets to 192.168.2.4, which is strange because that IP is directly connected to that router.


What am I doing wrong?

encryption - Decrypt SSL traffic with the openssl command line tool - continued part 3

From my previous questions/thread starting part 1 and follow up part 2 following my guided explanation since my files/data I am capturing is binary in nature I used the following openssl commands where I began with my premaster secret derived from:


openssl rsautl -in cpre.key -inkey key.pem -decrypt -out spre.key

This created my 48 byte server pre master secret file spre.key (I think is correct) and in decimal for (viewing using bed) as:

003 003 203 048 063 215 047 196 221 221 221 014 019 072 011 100 217 080 111 073 217 026 234 082 022 217 232 025 096 063 115 080 016 094 015 170 148 126 092 118 109 228 246 149 208 195 044 220

Hex: 0303CB303FD72FC4DDDDDD0E13480B64D9506F49D91AEA5216D9E819603F7350105E0FAA947E5C766DE4F695D0C32CDC


And concatenating the literal "master secret" + client.random + server.random I created mseed.key and again viewing with bed the same way as decimal I created:

109 097 115 116 101 114 032 115 101 099 114 101 116 173 212 147 215 014 129 225 102 157 027 001 125 167 097 014 085 064 025 114 025 024 248 096 254 044 235 151 130 033 151 015 133 251 114 232 095 213 076 194 057 175 106 225 088 206 069 187 050 168 031 217 080 198 061 180 043

Hex: 6D617374657220736563726574ADD493D70E81E1669D1B017DA7610E554019721918F860FE2CEB978221970F85FB72E85FD54CC239AF6AE158CE45BB32A81FD950C63DB42B
for a total of 69 bytes

Next I put that together and since I was advised that the data being in binary files I used the following to generate the master secret and keys.


openssl dgst -sha256 -hmac spre.key a1
openssl dgst -sha256 -hmac spre.key a2
openssl dgst -sha256 -hmac spre.key a3
openssl dgst -sha256 -hmac spre.key a4

This created 4 32 byte files.

followed up by creating the keys with:


cat a1 mseed.key | openssl dgst -sha256 -hmac spre.key -binary >k1
cat a2 mseed.key | openssl dgst -sha256 -hmac spre.key -binary >k2
cat a3 mseed.key | openssl dgst -sha256 -hmac spre.key -binary >k3
cat 42 mseed.key | openssl dgst -sha256 -hmac spre.key -binary >k4

This created 4 32 byte files.


Following along with the examples I was given and reading the RFC as I understand it the master key at this point would be the first 48 bytes of a1+a2 is that correct or did I miss something? Since I'm not actually able to see what the master_secret PRF returns or is doing I think from running the command line as above that is how I would get the master secret. Thanks David

How to install GCC on Windows 7


I've downloaded GCC 4.5.1 and do not know what to do next. I've found instructions inside the Install directory for how to configure, build and install, but I still cannot do much with this. What are step-by-step instructions for how am I supposed to go through this process?


For example, they say something like this:


    % mkdir objdir
% cd objdir
% srcdir/configure [options] [target]

And I do understand that the first line creates a directory and the second goes into the directory. But what about third line, and how am I supposed to execute this? Am I supposed to go to source directory and type configure + options + target?



Answer



You don't install GCC like this. You use "Cygwin" or "MSYS" for this purpose (compiling). Cygwin is like a.... Linux-Windows combination? One should read the documentation. In a nutshell: You get a Bash, GCC and other stuff, but it is SLOW.


MSYS is much better on the other hand. It provides a win32 binary of GCC and all the development tools.


If you just want to develop, you should choose a package like this: http://www.codeblocks.org/downloads/26 codeblocks-10.05mingw-setup.exe << This one.


What exactly is required in order to qualify for the $40 upgrade to Windows 8?


I am planning to install Windows 8 on my machine and I'm wondering what the best way to go about this is based on my rather unusual situation:


My machine originally shipped with (what I understand to be) an OEM copy of Windows Vista Home Premium (32-bit). This was installed on the machine when I bought it - the hard drive contained two partitions: the Vista partition and the recovery partition.


Now, here's where things get a little bit confusing - I eventually swapped out the original hard drive for an SSD and did not preserve the Vista installation (or the recovery partition) on the new drive. I have been dual-booting Ubuntu 12.04 and Windows 8 CP.


Now I would like to install Windows 8 on this machine and I should definitely qualify for the $40 upgrade offer - my only problem is how to go about this, since obviously the installer needs to verify I do have a valid licensed copy of Windows Vista.


There is a little sticker on the bottom of the machine with the Windows logo and a serial number - will that work? I still have the original hard drive with Vista and the recovery partition if necessary. I was wondering if I could clone the recovery partition, dump it on the SSD, perform the recovery to install Vista on the machine, and then upgrade that - but I'd love to hear if there is an easier way.




Edit: some comments below made me realize that I missed a couple of things in my original question (sorry about that).




  • I have a 32-bit copy of Windows Vista and I would like to end up with a 64-bit copy of Windows 8 (I am using the 64-bit copy of the Consumer Preview right now).




  • Obviously a direct upgrade from 32-bit Vista to 64-bit Windows 8 isn't going to work. I was hoping to perform a clean installation of Windows 8 regardless of whether I start with my Vista installation or not.





Answer



Everywhere that mentions the upgrade, at least on paper, indicates that the requirement states that you need to be running a legitimate copy of Windows XP, Vista, or 7 [1][2][3], and that you need to have a valid base license and one of the following operating systems. This can be interpreted as requiring that the OS to be upgraded actually be installed (which you can certainly do since you have the key).


However, Microsoft has said



"They won't need to reinstall the previous version to do the upgrade; they can just upgrade on top of the Release Preview,"



So, you should be fine. You should be able to install the upgrade on either your Windows 8 Release Preview or enter your Windows Vista key. The Upgrade Assistant will let you choose to upgrade directly or build installation media. The upgrade process[4][5][6] will eventually prompt you for a key, and it should detect if the key is from XP, Vista, or 7 and ask you if you want to upgrade. (I can’t seem to find the page at the moment—I’ll link to it when I find it—but one of the upgrading to Windows 8 pages specifically mentions that the installation process detects the Windows version from the key, so it should acknowledge the attempt to upgrade.)


enter image description here


Worst-case scenario, you can re-install Vista with your key and upgrade to Windows 8 from there.


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...