Skip to main content

Posts

HowTo: Fix "user is not in the sudoers file. This incident will be reported" in Debian

In Debian, the user created during installation is not automatically added to the sudoers list. To fix do: Change to root user by typing su in a terminal. As root, do visudo . Search for line root    ALL=(ALL:ALL) ALL . Copy that line (in nano, do Ctrl+K then Ctrl+U to uncut and on more Ctrl+U to duplicate the line). Change that new line to like timus    ALL=(ALL:ALL) ALL . This adds user timus to the sudoers. Reference(s): http://ubuntuforums.org/showthread.php?t=1837295

LXPanel no status bar in Debian Sid/Jessie

I just installed latest Debian Sid/Jessie (testing branch-10/25/2014) and selected LXDE as my desktop environment via network install. The problem was that no start menu or status bar was shown. Seems like a bug somewhere in LXDE but as a workaround do: $: cp -rp /etc/xdg/lxpanel/profile/LXDE/* ~/.config/lxpanel/LXDE/ Reference(s): https://bugs.launchpad.net/raspbian/+bug/1080966

Re-install grub in Debian 8 Jessie

So I was trying to install Debian Jessie beta 2 (Debian 8) and was not really paying attention what I was doing. It ended up that I don't grub installed.So who do you fix this? As usual in Linux/Debian there so many ways to do this but below are the steps that I have done: Boot the machine using the boot media, I was using debian-jessie-DI-b2-amd64-netinst.iso and yes I am using VirtualBox. Select Advanced options | Rescue mode. Follow text based wizard, change the values as you see fit. I did English for Select a language . Then United States for Select your location . American English for Configure the keyboard . Used debian in Configure the network - note that this does not have to match to the machine that you want to recover.  Left blank for the domain. Then for Configure the clock I selected Central . In Enter rescue mode , I have selected /dev/sda1 as I only have one SATA HD and I know that the first partition was my root. You probably to make guesses if you wan

PyCharm 3.4 Community Edition does not support Tfs Integration

PyCharm 3.4 Community is a very fine IDE and I cannot complain. But for some of the stuff that I do I need to use Tfs as source control. I spent quite a few hours searching the web how to enable Tfs integration in PyCharm but I can't find a good documentation that says you can't not use in PyCharm. But IntelliJ IDEA feature comparison matrix shows that Tfs Integration is only available in Ultimate.  So it must be the case that Tfs Integration is only available in Professional version or it just does not work.

Unable to mount VirtualBox shared drive using 4.3.10

When mounting a shared drive in VirtualBox 4.3.10, got he following error in Linux box: sudo mount -t vboxsf E_DRIVE vbox mount: wrong fs type, bad option, bad superblock on E_DRIVE,        missing codepage or helper program, or other error        (for several filesystems (e.g. nfs, cifs) you might        need a /sbin/mount.<type> helper program)        In some cases useful info is found in syslog - try        dmesg | tail  or so This is caused by wrong symbolic link, to fix it do: ~$ sudo ln -sf /usr/lib/i386-linux-gnu/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf References: http://superuser.com/questions/736024/cannot-share-host-directory-with-virtualbox-guest-mint-16-64-bit

Read 64-bit registry key from 32-bit process in IronPython using WMI

References: http://msdn.microsoft.com/en-us/library/aa393297(v=vs.85).aspx http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_23080571.html Note(s): This is not reliable on Windows 10 or maybe related to the version of .Net? Anyway updated version is located here: http://8thstring.blogspot.com/2016/01/read-64-bit-remote-registry-from-32-bit.html

Manually configure a network interface to get an IP from a DHCP server

Got an Ubuntu 13.10 machine with one network interface. Added another one to test internal networking. To make this new network interface get IP address from DHCP server, we need to modify /etc/network/interfaces , like: auto eth1 iface eth1 inet dhcp Reference(s): https://help.ubuntu.com/10.04/serverguide/network-configuration.html Keywords: network interface IP Ubuntu

QNX Momentics throws a lot of error on start up after install in Ubuntu 13.10 64-bit

tldr; Reboot the machine. When starting up QNX Momentics 6.5.0 on Ubuntu 13.10 64-bit, it throws a lot of errors, like below. 'Initial state verification' has encountered a problem. An internal error has occured. [Details>>] [OK] There is an error in the QNX Configuration settings. Either the QNX_CONFIGURATION environment variable is not defined correctly or the location it points to is not accessible. Exit the IDE and fix the error? [No] [Yes] There is an error in the QNX compiler settings. Either the QNX compiler is not defined or compiler definition directory is not accessible. You should exit the IDE and fix the error immediately. Exit the IDE and fix the error? [No] [Yes] And what is the workaround? Reboot the machine. Guessing that the environment variables are not yet set after install, reboot picks up the new configuration. Keywords: QNX Momentics Ubuntu

Fixing QNX Momentics Gtk themes warning on Ubuntu 13.10 64-bit

You might observe the following Gtk warnings when running QNX Momentics 6.5.0 on Ubuntu 13.10 64-bit. (qde:9636): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine", (qde:7229): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", (qde:7229): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks", To fix, run the following command. $: sudo apt-get install gtk2-engines-murrine:i386 gtk2-engines-pixbuf:i386 gtk2-engines:i386