Create an empty test file in Linux
Monday, 28 October 2013 14:24

Q. How can I create an empty test file? 

A. There are several ways, including dd command, but this one is the quickest: 

fallocate -l 10G test.file

 
Specify search domains for Windows DNS
Wednesday, 23 October 2013 14:23

Q. I've added a server to the DNS, but when I do an NS lookup it doesn't show up, unless a fully qualified domain name (FQDN) is used. How can I fix this.

A. There are many ways to fix this.

1) Quickest way is to add the host to your hosts file:

Edit C:\Windows\system32\drivers\etc\hosts file and add at the bottom:

10.10.10.11    servername

This however, leads to a lot of manual work if you want to do it on an organizational level, so the second method is probably better:

 
Volume indicator not working after xubuntu 13.10 upgrade
Friday, 18 October 2013 13:00

xubuntu-logo-icon-largeQ. My volume indicator is broken after the upgrade to Xubuntu 13.10. The sound still works.

 

A. This is a known bug, but can be easily fixed:

 

In a terminal window, run: 

sudo nano /usr/share/dbus-1/services/indicator-sound.service

Modify the line:

Exec=/usr/lib/x86_64-linux-gnu/indicator-sound/indicator-sound-service

to 

Exec=/usr/lib/indicator-sound-gtk2/indicator-sound-service

 
Force Linux reboot
Thursday, 03 October 2013 19:44

This happens quite often - a file-system hangs and doesn't respond to "reboot" commands. Here's how to force it to restart - on the command line, type the following:

echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-trigger

 
How to install wallpapers from older ubuntu releases?
Tuesday, 01 October 2013 10:34

ubuntu-logoQ. I would like to install wallpapers from older releases of Ubuntu, how do I go about doing so?

 

A. The process is simple. You can run the following command on the terminal:

 

sudo apt-get install ubuntu-wallpapers-quetzal

Depending on the version you have (and wallpapers you'd like), replace quetzal with one of the following previous versions:

 
Broken or missing icons in Windows 7/8
Wednesday, 01 May 2013 11:18

Q. Some of my Windows icons have disappeared and look like the default application icon. How can I fix this?

Here's an example of what it looks like:

windows 7 broken icon

A. This happens because the icon cache gets corrupted. There are several ways to fix this:

 
Redirect all except one directory in Apache
Tuesday, 16 April 2013 11:41

Q. I would like to redirect all but one directory in Apache. How do I do that?

A. The process is very simple, using mod_rewrite:

Let's say that "directory1" is what you would like to continue using and everything else is to be redirected:

RewriteCond $1 !^directory1
RewriteRule (.*) https://www.example.com/$1 [R=301,L]
 
Start Prev 1 2 3 4 5 6 Next End

Page 5 of 21