You are here

Tip

Mouse Marks: Weird red marks on screen when pressing the Windows Meta Key and Shift

Submitted by Druss on Fri, 2015-03-20 18:36

For the last few weeks, I've noticed weird red dots/lines or similar marks on my Kubuntu screen. I'd attributed them to a graphics issue that I'd recently sorted out, particularly because I was mainly noticing these marks when resuming the system from sleep mode. Turns out I was wrong. Very wrong.

Resuming after sleep mode, terminating/hanging up a frozen SSH session in Linux

Submitted by Druss on Fri, 2015-03-20 11:55

So, I am often SSH'd into a remote server from my Kubuntu desktop. I also rarely switch off my desktop and prefer to just hit sleep instead. One of the things that can be annoying when I resume the desktop is that the previous SSH session is now unresponsive/frozen as SSH believes that it is still connected to the remote server while the server has given up on the old session long ago. No amount of CTRL + C or CTRL + Z banging is going to terminate the session which can take an inordinately long wait to time out.

Kubuntu: Audio plays in the wrong tty/terminal

Submitted by Druss on Thu, 2015-03-05 01:18

This has happened to me on a number of occasions where I've found that my system audio only plays when I switch to a different tty. I don't know exactly how to duplicate the issue . But essentially, if I switch from my Kubuntu 14.10 KDE desktop to a different tty (using something like CtrlAltF5) and then switch back to the KDE tty, I find that I can hear no audio. However, if I switch again to the command-line tty, I can hear that audio that ought to have been playing in KDE. Rather weird, huh?

Set the timezone of a Debian/Ubuntu server from the command-line

Submitted by Druss on Mon, 2014-08-25 19:34

Setting the timezone of an Ubuntu (14.04, Trusty) or Debian (7, Wheezy) server from the command-line is simple. Just run dpkg-reconfigure tzdata and follow the on-screen prompts. However, if you are running an unattended installation, you might want to avoid interactive prompts and just gets the job done. To do this, simply run

$ sudo ln -sf /usr/share/zoneinfo/America/Anchorage /etc/localtime

Browse through /usr/share/zoneinfo/ to locate your timezone.

Capitalizing words and changing case using regex

Submitted by Druss on Sun, 2014-08-03 11:16

Let's assume that we have some sample text like the following:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Tags:

Running a program as an administrator in Windows (7)

Submitted by Druss on Sun, 2014-08-03 10:28

Running a program in "privileged" mode (i.e., as an administrator) is as simple as pressing the START button, finding the program, right-clicking its name, and choosing Run as administrator. (You can similarly also choose to Run as different user, but to get this option, you'll need to press SHIFT before the right click.) This should bring up Windows' pop-up asking you to allow the program to be run as administrator where you click Yes and Robert is your uncle.

Pages

Subscribe to RSS - Tip