Archive

Archive for the ‘windows’ Category

installing EasyPHP

June 27, 2016 Leave a comment

Problem
I wanted to contribute to a PHP project but under Manjaro I couldn’t test it locally. I got a “Fatal error: Call to undefined function curl_init()” message that I didn’t manage to resolve, though the line “extension=curl.so” was present in my php.ini :(

Solution
After a few hours of trial and error, I decided to develop this project under Windows. I have Windows in VirtualBox, I put the PHP project in a shared folder, so my idea was to edit the source under Linux and visualize the result under Windows.

I chose EasyPHP and installed the latest EasyPHP Devserver that provides a complete development environment.

When I opened the project I got the same error since curl was not enabled by default. On the dashboard I could edit the php.ini file and uncommented the line “extension=php_curl.dll“. However, after restarting the webserver I got another error: libssh2 is missing. I found the solution here (ken’s comment):

"I had to also also copy libssh2.dll into my Apache24 folder 
for this to work with my PHP 5.6.2 installation. So altogether 
I had to do the following:

Move to Windows\system32 folder:
libssh2.dll, php_curl.dll, ssleay32.dll, libeay32.dll

Move to Apache24\bin folder
libssh2.dll

Uncomment extension=php_curl.dll"

I found all these files in the install folder of EasyPHP. There are two versions of each, one in a “…vc11…” folder, while the other one in a “…vc14…” folder. I worked under PHP 5.6 so I copied the vc11 versions of each file mentioned above.

After this Apache restarted without any error.

Categories: php, windows Tags: , , ,

Linux: install Windows fonts

June 24, 2016 Leave a comment

Problem
I wanted to create a meme image manually in Gimp but I didn’t have the required font (Impact). What now?

Solution
The remedy is here: https://wiki.archlinux.org/index.php/Microsoft_fonts. I have a dual boot machine with Windows and Linux, so I decided to put a link on Windows’ Fonts folder (I didn’t want to copy 550+ MB fonts).

# ln -s /mnt/Windows/Fonts /usr/share/fonts/WindowsFonts
# fc-cache

The prompt “#” means a root shell. Restart Gimp and the Windows fonts will be available.

Categories: gimp, windows Tags:

How to update Windows 7 SP1

June 13, 2016 Leave a comment

Problem
A friend of mine asked me to install Windows 7 on his laptop. I installed Windows 7 SP1, but something changed because when I tried to search for updates, it didn’t want to finish! I waited for 12 hours but it was still looking for… Damn, how to do an update?

Solution
Download manually these updates: KB3050265, KB3102810, and KB3125574 (this last one is a big one, a convenience rollup update). Do the following with each update:

  • Start an admin terminal and stop the Windows Update service: “net stop wuauserv”.
  • Install the update. Restart the machine if you are asked to.
  • Take the next update and repeat.

There is no need to restart the WU service manually since it is started automatically after a reboot.

When these three updates are installed, the Windows Update will find the updates “quickly” (“quicly” is relative; for me it was about 15 minutes).

Windows: convert .docx files to .pdf in batch mode

Problem
I had 60 .docx files that I had to convert to .pdf. How to do it in batch mode? One thing was sure: there is no way that I’d do it manually…

Solution
I found the solution here.

The necessary scripts are collected here.

Usage: collect the .doc(x) files in a folder, put the two scripts next to the documents and launch the .bat file.

Note: this solution also works with .doc files (but then modify “docx” to “doc” in the sources). I tried it with Word 2007.

Categories: windows Tags: , ,

Windows: is my system 32-bit or 64-bit?

January 11, 2015 Leave a comment

Problem
You want to figure out whether your Windows is 32-bit or 64-bit.

Solution
Start the “DOS window” (cmd.exe) and execute the following command:

C:\>wmic os get osarchitecture
OSAsarchitecture
64-bit

C:\>
Categories: windows Tags: ,

Windows 8.1 with Linux

September 4, 2014 Leave a comment

I got a new laptop at my workplace, a Toshiba Satellite C55. I decided to put Windows 8.1 and Ubuntu 14.04 LTS on it.

Installation
I had a Windows 8.1 ISO but I didn’t want to burn it on a DVD. Instead, I put it on a USB stick. I found an excellent tool called Rufus that allows you to create a bootable USB stick from an ISO file. Here is a youtube video tutorial too.

When Windows 8.1 was installed, the next step was to install Ubuntu. Restarting Windows is tricky if you want to change the boot order: hold down the SHIFT key and select reboot while pressing the SHIFT. Upon reboot I had to press F12 to get to the boot order menu.

Installation of Ubuntu went flawlessly.

NTFS partitions cannot be mounted
Once I had a strange problem. Ubuntu started to complain that it cannot mount the Windows partitions. It turned out that Windows was hibernated and thus the NTFS paprtitions cannot be mounted in read/write mode. But why is it hibernated when I restarted Windows?

Well, another “cool feature” of Windows 8.1 is that you can power it off / restart it in two different ways! Option 1: right click on the Windows button in the bottom left corner and select halt / restart. This will do some hibernation, thus the next boot will be faster. Option 2: move the mouse to the bottom right corner, wait for the tiles to show up and halt / restart the machine there. It is a normal power off / reboot without any hidden hibernation.

So, if you use Linux with Windows 8.1 in dual boot, you’d better stop / restart Windows using Option 2 (on the right side).

Update (20160523)
The method described above doesn’t work anymore. Here is the new way to really shut down Windows 8 (tip from here):

  • Open Control Panel, then select Power Options.
  • Click on Choose what the power buttons do.
  • Click on Change settings that are currently unavailable.
  • Uncheck Turn on fast startup (recommended).

Save and shut down Windows.

my current Ubuntu wallpaper

July 11, 2014 Leave a comment

broken_windows-wallpaper-1920x1080

Categories: fun, ubuntu, windows Tags:
Follow

Get every new post delivered to your Inbox.

Join 91 other followers