Tag Info

Hot answers tagged

17

On Ubuntu, the floppy driver is loaded as a module. You can blacklist this module so it doesn't get loaded: echo "blacklist floppy" | sudo tee /etc/modprobe.d/blacklist-floppy.conf sudo rmmod floppy sudo update-initramfs -u Immediately and upon rebooting, the floppy driver should be banished for good.


10

In the latest versions of gcc compiler require that libraries follow the object or source files. So to compile this it should be: gcc pthread_sample.c -lpthread Normally though pthread code is compiled this way: gcc -pthread pthread_sample.c


7

Xubuntu uses upstart, so you should use sudo service gdm stop or sudo service lightdm stop depending if you are using Ubuntu 11.04 (or prior) or Ubuntu 11.10.


6

The presence or absence of a floppy drive is something that is configured in the system's BIOS. You have to manually tell the BIOS what type of floppy you have, and it in turn tells the OS. This is because the hardware is not actually capable of being auto detected. So you need to go into your BIOS and tell it that you have no floppy.


5

If you are using NetworkManager (which, I believe Xubuntu does), it should be in /etc/NetworkManager/nm-system-settings.conf. There is more information about it here: http://live.gnome.org/NetworkManager/SystemSettings.


5

xscreensaver has a -watch option: -watch    Prints a line each time the screensaver changes state: when the screen blanks, locks, unblanks, or when the running hack is changed. This option never returns; it is intended for use by shell scripts that want to react to the screensaver in some way.1 The UNBLANK state is what you are looking for. ...


4

The notes are stored as text files in $XDG_DATA_HOME/notes/ (~/.local/share/notes by default). The settings are in $XDG_CONFIG_HOME/xfce4 (~/.config/xfce4/xfce4-notes.*).


3

This question turned out to have two answers, both suggested by @JosephR in the comments. 1) Fixing the /lib/modules/3.5.0-030500-generic/build: No such file or directory error while trying to install the ethernet driver just needed a sudo ln -sv /usr/src/linux-headers-$(uname -r) /lib/modules/$(uname -r)/build - after I did that, the driver install from ...


3

The editor program called by some programs when you tell them to edit a file. You have to set the environment variable yourself. If you use csh or tcsh, at the shell prompt: setenv EDITOR vim If you use bash or ksh, then enter: EDITOR=vim; export EDITOR (Replace "vim" with the editor you want to use.) The EDITOR variable is the one you need by ...


3

The editor command is ubuntu specific. It is not portable or even common (outside of ubuntu). The command is also set system wide, and not per-user. The way it works is that /usr/bin/editor is just a symlink to an editor on the system. As such it is the same for all users. The $EDITOR environment variable is fairly standard. It is used by many programs ...


3

This is a Debian-ism (and therefore appears in Ubuntu, Mint, etc.). They've setup a link called editor. You can trace it back as follows: $ which editor /usr/bin/editor $ ls -l /usr/bin/editor lrwxrwxrwx 1 root root 24 Nov 24 19:10 /usr/bin/editor -> /etc/alternatives/editor $ ls -l /etc/alternatives/editor lrwxrwxrwx 1 root root 18 Nov 24 19:46 ...


3

You will have to specify the editor in the environment variable EDITOR. Add the following command in your .profile: export EDITOR=editor If you want vim as your default editor, you will add instead export EDITOR=vim Personal preference: I use the absolute path name of the editor in the environment variable. For example, export EDITOR=/usr/bin/vim


3

there were some bugs in 10.04 related to the X-server. occasionally, some processes would try to render objects in such a way as to cause X to crash. GDM will notice this, and restart X, presenting the login screen again. Fix is to generate an xorg.conf file, and then update that file to use a different acceleration method. Press CTRL+ALT+F1 to access ...


2

Maybe you should look into PolicyKit, as some update manager backend (such as the popular PackageKit) use it to authorize themselves.


2

There might be an application that grabbed the pointer but failed to release the grab. One thing you can do is configure your local Xserver to allow grabs to be manually deactivated by adding this to your ServerOptions section: Option "AllowDeactivateGrabs" "true" and then press Ctrl-Alt-Keypad-/ to break the grab. However, note that this particular ...


2

To have more space for your Linux installation you need to expand sda6. Having freed up 10GB by shrinking sda3 you would then expand sda4 by 10GB and expand sda6 to fill up all of sda4. However, resizing existing partions, especially NTFS ones, always bares the risk of loosing all data on that partition! I don't know anybody who ever experienced loss of ...


2

Press Ctrl+Alt+F1 to switch to a different virtual console. You will have a text mode login prompt. Once you've done your repairs, you can switch back to the virtual console with the X window display by pressing Ctrl+Alt+F7. If you want to have several terminals, you get 6 virtual consoles with a login prompt by default: press Ctrl+Alt+F2, etc.


2

It seems odd that your ethernet device is eth1 and not eth0. Do you recall if your ethernet device was eth0 previously? I would suspect that when you upgraded something happened with your udev rules. Assuming you have only a single ethernet NIC in your system, check this file and make sure that there is only a single entry in it: # ...


2

In your home find the gedit folder and delete its content (or the folder itself), which holds your preferences and settings. In Fedora it should be under: /home/username/.gnome2/gedit /home/username/.gconf/apps/gedit-2 /home/username/.gconf/apps/gnome-settings/gedit


2

You can very simply send the command for it to lock screen first, and then have it suspend: xscreensaver-command -lock ; xfce4-session-logout --suspend For usage of xscreensaver-command, run xscreensaver-command --help


1

You must log out and when you are at logging screen choose Cinnamon:


1

Run ldd on the game's binary (t-engine) to see what exactly it's looking for and whether it resolves. See the paths that are searched and what is found by using strace -e file t-engine. If you see some paths being searched for libSDL but not the path where your libSDL is (/usr/lib/x86_64-linux-gnu/), then see if you can figure out why. My guess is that ...


1

The "problem" is typically PHP is intended to run as module in a webserver. You may need to install the commandline version of php before you can run php scripts from the commandline: apt-get install php5-cli /usr/bin/php is default location for the php binary to be placed, but if you for instance compile php from source it may be somewhere else. ...


1

cd ~/.cache/sessions/; rm -r * with a subsequent relogin solved the problem.


1

You're on the right track with xset m, but you will probably want a far lower setting than what you are using (source): First get the current setting: xset q | grep -A 1 Pointer To set new values, type: xset m ACCELERATION THRESHOLD where ACCELERATION defines how many times faster the cursor will move than the default speed, when the ...


1

I think you might want just the package samba instead of samba4. I found these 2 threads which seem to be saying that. package samba4 4.0.0~alpha18.dfsg1-4ubuntu2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 126 setoption.pl is not executable Don't let the second links title fool you, it's dealing ...


1

The first answer to this question uses what you suggest, and handles missing packages afterwards. Among the answers some people suggest this is a bad idea. Note as well that if the selection adds a :i386 it may be because some other package explicitly requires a package for this architecture. If you want to check before, here is a suggestion. In your ...


1

Mint 14 adds a different folder and installs things a bit differently than Ubuntu or Xubuntu. It also doesn't allow (as I found out) to directly update certain packages as Xubuntu does, such as Firefox. Latest version on Mint 14 is, 16. Xubuntu's is (I think) 22 (without adding repositories manually.) Mint also seems to block versions of Ubuntu software ...


1

Boot into recovery mode, when the recovery menu is up, use the "Root Shell" option to gain a shell, then remove the command in the lightdm.conf.


1

You could run top in batch mode -b with 1 iteration -n1. You grep it, pipe it to awk, SUM the result and print it. top -b -n1 | grep chrome | awk '{ SUM += $9} END { print SUM }' I don't know which column you want to output. Change $9 to fit your needs.



Only top voted, non community-wiki answers of a minimum length are eligible