There are a few things to try.

1. Make sure Caps Lock is not on.

If you're entering numbers from a numeric keypad, make sure Number Lock is on and that MouseKeys is not on unless you want it to be.

2. Make sure you're using the correct keyboard layout.

This is typically only an issue for people who switch frequently between different language settings. If you've not deliberately changed your keyboard layout since installation, this is very unlikely to apply to you.

But there is a related problem that can apply:

3. If you are using a keyboard layout that includes characters that people from English-speaking countries might find unusual...

...then it is possible that some bug could cause the password not to be received and verified correctly.

If you can change your keyboard layout and still enter the password, try that. Otherwise, see below.

4. Try resetting your password.

There are multiple causes of the problem that can sometimes be solved by doing this.

This question explains how.

When you reset your password, make sure it is at least one character long. (Of course, for security, it should be much longer. But blank/empty passwords sometimes trigger bugs. So it's especially important, for the purposes of troubleshooting this problem, that it not be totally blank. Of course, it's still best if it's a good, strong password.)

In case of a bug relating to the interpretation of non-English symbols, you might try a password containing just Latin ("English") characters, numbers, and/or common internationally used punctuation symbols.

There is an easier way to change your password that is not generally applicable but may work in your particular situation. The Software Center authenticates graphically with PolicyKit. You can try changing your password non-graphically from the command-line. If you want to try this, press Ctrl+Alt+T to open a Terminal window. Then run:

passwd

That will let you try to change your password. You'll have to type the old password, then the new password twice. In the Terminal, you won't see any placeholder characters like * when you enter a password. It will look like nothing is happening. That's normal; just type each password in and press enter.

If that fails, or if it appears to succeed but you still cannot authenticate successfully in the Software Center, you can try:

sudo passwd $USER

Make sure to include $USER. Don't replace it with anything, just type it as is. It automatically represents your username. (This differs from the above command in that this attempts to authenticate you as root and then change your password as root. Sometimes that succeeds where other methods fail. Sometimes.)

If neither of those works, you'll have to try changing your password in one of those ways. If you want, you can just skip to that.

If you are unable to complete any of those techniques for changing your password, or get error messages, try this way. (If you are able to change your password successfully but the Software Center still won't authenticate you, then that method is unlikely to produce any better results, though.)

5. I mentioned that the Software Center uses PolicyKit for authentication. Perhaps that's what's broken.

To see, try running this command in the Terminal (Ctrl+Alt+T):

sudo echo success

You'll have to enter your password (don't worry that nothing appears on the screen as you type it in) and press Enter.

If that command outputs success in the Terminal, then you were able to run a command as root with sudo. You should then add that information to your answer, and also let us know what flavor of Ubuntu you are running (regular Ubuntu, Kubuntu, Xubuntu, Lubuntu, etc.). You should also provide us with the output of these commands:

ps aux | grep [p]olkit
pkcheck --action-id org.freedesktop.systemtoolsbackends.set --allow-user-interaction --process $(pidof -s bash)

And please also describe what, if anything, happens when you run that second command, besides text appearing on the terminal. It might be nothing, but typically you'll get a graphical authentication dialog followed by text output.

That second command tests if PolicyKit is working for authentication. (Milan Bouchet-Valat deserves credit for the general form of that command; see the comments in this bug.)

Other people with a similar problem who are reading this can create a new question and include these results (or add these results to your question, if you have already created one for the problem).

6. You may be able to use sudo and gksu/gksudo as a workaround.

If sudo echo success worked (see above), then regardless of the output of the subsequent commands, this means sudo is working.

sudo cannot replace PolicyKit entirely, in the context of the way Ubuntu software works. But it can replace it mostly, because many programs that use PolicyKit to perform administrative tasks will also work when run with sudo.

For graphical programs, you should use gksudo and not plain sudo. Try:

gksudo software-center

If you don't have gksudo, then you can install it. It is provided by the gksu package. You can't install it in the Software Center if the Software Center is not working, but you can install it on the command-line:

sudo apt-get update && sudo apt-get install gksu

You can install other software that way too, as a workaround to being able to use the Software Center.

If you don't want to install gksudo or it doesn't work, you can safely use sudo -H or sudo -i to attempt to run graphical applications as root:

sudo -H software-center

sudo -i software-center

If sudo apt-get ... works for installing software but you are unable to get the Software Center to work by running it with gksudo, sudo -H, or sudo -i, then you can install another graphical package browsing and installation/deinstallation program: Synaptic.

sudo apt-get update       # you can omit this if you've run it very recently
sudo apt-get install synaptic

Some of my recent experiences troubleshooting Software Center problems suggest to me that Synaptic may run successfully as root even in situations where the Software Center is unable to do so. This is really just a guess; I could be mistaken. If you cannot run the Software Center, it's worth a try.

gksudo synaptic

sudo -H synaptic

sudo -i synaptic

7. If sudo doesn't work, maybe you're not an administrator.

If you were able to run sudo echo success and have success printed in the console below where you entered the command, then you are an administrator. (Either that, or you have special privileges to run the echo command as root, which is very unlikely.)

But if that failed, the most likely (though not only) cause is that you aren't really an administrator. Sometimes users accidentally remove their own administrative powers. And there could potentially be bugs that would cause this (maybe...).

To check if you are an administrator, run:

groups

You're running Ubuntu 12.10. In Ubuntu 12.04 and later (including 12.10), administrators are members of the sudo group. So, see if sudo is listed in the output of groups.

If it is not listed, then use one of these techniques to add yourself back as an administrator.

If they don't work, then you can use this more complicated technique. When you get to step 9, use the part that says "Alternatively, if you want to make a user an administrator".

If sudo is listed, then there may some misconfiguration preventing members of the sudo group from being recognized as administrators. In that case, enter recovery mode and examine the contents of the file /etc/sudoers.

If you cannot enter recovery mode, then you can perform the first 7 steps of this procedure (ending with sudo mount /dev/sda1 /mnt, replacing /dev/sda1 with the root partition of your installed Ubuntu system, which that procedure explains how to find).

Then examine the file /mnt/etc/sudoers. (You can do this from the graphical file browser in the live system, or with the command cat /mnt/etc/sudoers.)

The file should contain:

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

In particular, there should not be a # symbol at the beginning of the line that starts with %sudo. (That would make it a comment, i.e., ignored by Ubuntu.)

If it's missing or starts with #, you can fix it by editing the file by running:

visudo

You should not edit the file without visudo, because visudo keeps you from messing it up in severe ways and causing more problems. (You can still create a bad configuration, but it keeps you from creating an ambiguous or meaningless one by checking for good syntax.)

In recovery mode, you'll often have to run this first to enable you to make changes to the system:

mount -o remount,rw /

So either run that before visudo, or if you run visudo and it's unable to save changes, then run that mount command and try visudo again.
If you're doing this from a live CD/DVD/USB, don't run plain visudo, because that will not do what you want. That would edit the configuration of the live system. Also, unlike in recovery mode, on a live CD you have to use sudo to run commands as root. So instead, run:

sudo visudo -f /mnt/etc/sudoers

On a live CD, if you followed step 7 there correctly, you should not need to run any further mount command (and if you did run that mount -o remount command, it would not do what you wanted, because it would try to remount the live environment's filesystem rather than the installed OS's filesystem).

8. Maybe your sudoers file is misconfigured in a less common way.

If you're in the sudo group and the %sudo   ALL=(ALL:ALL) ALL line was present and uncommented in your sudoers file (see above), then it's still possible some misconfiguration in that file could be causing the problem.

For example, an exception (that partially or fully undoes the %sudo line) could be present afterwards.

So if you are in the sudo group but sudo echo success does not work when run while booted normally into the installed system (i.e., not a live CD/DVD/USB, and not recovery mode), please provide us with the complete and exact contents of the /etc/sudoers file.

You can add that to your question.

For others experiencing similar problems, you can add that to your own question.


SymLink for "/home/martin" in another disk of same machine

It's the other way around:

ln -s [target] [linkname], so in your case:

ln -s /home-extended/martin /home/martin.

Other than that, it should work fine. First, copy your stuff to /home-extended. Use rsync to check and doublecheck that you haven't missed anything. Then, rm -R /home/martin, and issue the command above. You should not need to use sudo.


Apache2 Address already in use ... could not bind to address 0.0.0.0:80 (can't start apache)

if you run 'netstat' as superuser:

sudo netstat -tulpn | grep 80

That should show you the process that is using port 80 which might help you along.
Without further info it does sound like maybe Gitlab is already using port 80, on my Gitlab installation it uses nginx on port 80 by default.

Did you maybe do a re-install of Gitlab at some point? Looking at the 'gitlab.conf.bac' file in your grep output and I would guess that you installed Gitlab using Apache first and then maybe did a reinstall using nginx?

So check netstat as sudo and I think that'll be your answer.


Given you last comment Alexander, I think you want to use "xte" which is available if you install the xautomation software package from software centre or synaptic manager

'xte' is a command line tool which you could shell out from your code.

Example syntax to invoke an "ALT-TAB" would be

xte "keydown Alt_L" "key Tab" "keyup Alt_L"


I cannot set default java with update-alternatives

I think because of the precedence of the java14 path in the $PATH environment variable , what is actually being run is /usr/lib/jvm/jdk-14.0.1/bin/java not /usr/bin/java . So alternatives won't work because of that.

Note that /usr/bin/java is just a symlink (i.e shortcut) to the default java binary.

A workaround is to use the bash aliasing feature to map java to /usr/lib/jvm/java-11-openjdk-amd64/bin/java :

alias java="/usr/lib/jvm/java-11-openjdk-amd64/bin/java"

You can add it to your ~/.bashrc file.


Xubuntu 16.04 - Audio (Alsa, Pulseaudio...) stopped playing out right side of headphone

I ended up buying an external USB enabled sound card. This fixed the issue, so it's safe to say it was a hardware issue with the sound card being old / maybe dusty / pins.

These external cards can be cheap to test if anyone else has this problem.


After you made any changes to the Apache configuration file, before you reload the service, make sure that configuration is correct, or else it will cause you an unnecessary downtime.

To verify the configuration syntax for Apache:apachectl -t.

Secondly, you can look into /var/log/httpd/error.log for any hint.

From your information above, this has to do with a syntax error in the config file. Go to line 219 and fix the line.


Windows Phone 8 detected as mass storage

I was just reading this article:

http://www.windowsphone.com/en-us/how-to/wp8/music/syncing-music-faq

"You can navigate to your phone's Music folder (or the Music folder on your phone's SD card, if it has one), and then drag files to it from your PC."

which to me makes it sound like you can (outside of rythmbox) open the Music folder on the device and copy files directly there.  The simple solution might be to just to open your PC's music folder, select all, and copy the music into the device's music folder.

Does that work for you?  This doesn't work at all with my WP7, but I was thinking of an upgrade to keep my trifecta going -- Ubuntu Dekstop, Android Tablet, Windows Phone :)  If that doesn't work I'm hoping there's good cloud storage.


How do I set my own (HTML) theme in LightDM?

Caution: Do not try this if you are not completely comfortable booting without X to repair lightdm configuration.

The package lightdm-webkit-greeter is not included in the ubuntu repository yet. To build your own greeter with HTML, CSS and Javascript, you'll have to download and install the lightdm-webkit-greeter code from Launchpad (lp:lightdm-webkit-greeter). I also merged in the changes in lp:~elementaryart/lightdm-webkit-greeter/fixes-ubuntu-old

You'll then have to alter the Lightdm configuration to use the webkit greeter as opposed to unity (or whatever was default).

I believe there is a bug in the lightdm-webkit-greeter.conf file, where it refers to a webkit-theme called "default", that should be "webkit".

I currently use the webkit greeter to log in and can tell you that it is slow and unpolished at the moment.

Step by step:

(be prepared to fix the greeter configuration without a GUI if this fails)

bzr branch lp:lightdm-webkit-greeter
cd lightdm-webkit-greeter
bzr merge lp:~elementaryart/lightdm-webkit-greeter/fixes-ubuntu-old
./autogen.sh (you'll have to install some dependencies here - probably only libwebkit-dev)
make
sudo make install
gksudo gedit /etc/lightdm/lightdm.conf
Set greeter-session=lightdm-webkit-greeter (remember the old setting as a fallback if you can't log in with your new settings)
gksudo gedit /etc/lightdm/lightdm-webkit-greeter.conf
Set the webkit-theme=webkit

This should work to enable the default webkit login. Now you can edit the theme here:

gksudo gedit /usr/share/lightdm-webkit/themes/webkit/index.html

Edit: Another warning - you can seemingly lock yourself out of gnome if this does not work.


You should have more success by assigning a static IP address for your machine through your router software as opposed to assigning from Ubuntu.

This works fine on our configuration.


How to fix autohide issue with the Unity Launcher?

It's most likely to do with the sensitivity of the reveal and has been a problem for many people since they took the autohide dodge feature out.  The problem is worse on touchpads because the amount and speed of travel is less.

Finally, there appears to be a bug report that is being taken seriously:
https://bugs.launchpad.net/unity/+bug/931982

There were bug reports previously but they were closed out after some minor adjustments were made.  The adjustments didn't seem to make much difference.

Set the reveal sensitivity to maximum (system settings -> appearance -> behaviour tab) and if this doesn't work increase the speed of the mouse.

If it still doesn't work and you're on a touchpad try attaching a mouse set to a high speed and see if that works. (for testing, mainly)

You say you've changed things using Ubuntu tweak.  I guess it's possible a setting has caused a conflict or had an unwanted action in this case.  Try resetting Unity to all the defaults and see if the problem goes away:

unity --reset

Warning! This will undo all the changes you've made to unity - Launcher size, behaviour, colours, everything.


Windows 8.1 does not load while dual booting Ubuntu 14.04 LTS 07/19/2014

From the Ubuntu side, install the efibootmgr package, and check its man page

sudo apt-get install efibootmgr
man efibootmgr

You should be able to both rename entries, and reorder them if you want.

efibootmgr -v

will show you what is actually being run, so you can see the name of the bootloader file being used for Windows (bootmgfw.efi was the original name, might have been renamed by boot-repair).


I installed ubuntu using 4gb usb stick, i overwrote windows and when i restart i get the message no bootable device

You'll need to reinstall Windows (or Ubuntu).
Your data won't be lost (unless you wiped your disk during the installation)
To reinstall Windows, create the installation media from here.
Then, just follow the steps on the installation media.
Next, reinstall Ubuntu and make sure Secure Boot is disabled and check your USB to make sure it's not corrupted. You can also make changes as needed with EasyUEFI.
If you'd like a complete guide on dualbooting Windows and Ubuntu, click here.
Edit: I just noticed your USB stick was 4GB. In that case, you'll need a larger USB for Windows (8GB minimum, 16GB recommended)


How can I create a bootable iso from an extracted Ubuntu 13.04 iso?

To make an ISO from files on your hard drive, you can use the mkisofs command.  To use it, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

mkisofs -o /home/user/Desktop/test/Ubuntu.iso /home/user/Desktop/test

(Using the command above, I have a folder called test in the Desktop folder, which will create the ISO in the same test folder, using only the files in the test folder).

Once created, then you can burn it to a DVD.

Note: This will not create a bootable DVD.  To create a bootable DVD you need to get ISOLINUX, and you still can use mkisofs.


I have had the same problem, and you can install the ubuntu again by typing.

 Sudo apt-get update
 Sudo apt-get install --reinstall ubuntu-desktop
 startx

And it should work.

EDIT: line 2 should install ubuntu-desktop (with a dash), not ubuntu desktop.


Not able to Boot Ubuntu after BIOS update

In a UEFI system, the firmware does not get loaded from ROM any more: if gets loaded from disk (into RAM)

So if you want do re-define your UEFI menu:

Make a system back-up first (You're definitely user type 4)
Go into the UEFI menu settings and upgrade the UEFI firmware
Then delete the menu items you don't need any more.

If anything goes wrong in 2. and/or 3.: restore the system back-up!


gnome-terminal --geometry=AxB+C+D
where,
AxB is the dimension of the terminal
C   is the column number of the pixel in screen.
D   is the row number of the pixel in screen.

Thus 12x12+100+200 will create a 12x12 sized terminal with its top-left corner at pixel(100,200).

If the 1st screen is of width 1280, value of C set at 1280 will create the terminal in the 2nd screen.


I couldn't enable automount when not in the DE. I had to do it myself in C using dbus and udisks. I followed something similar to https://github.com/Razor-qt/razor-qt.


HP EliteBook 8570p Ubuntu grub is not launched

I've been messing with boot entries since I first explored the Linux world and started experimenting with many distros and dual booting as well, and I assure you there's nothing wrong to delete useless entries, unless you don't know what each of them is called for. But your list is huge, I must say. I believe you've been messing with Ubuntu installation very much, haven't you?

So yeah, before doing anything, read all the entries with

efibootmgr -v

All that linked to wrong efi file path, you are safe to remove. Also, consider deleting those files from your ESP (warning: bold experts only!).

Also, record a video with that error that shows up on boot screen to make it clear.


Open Settings.

Click on Region and Language → Manage Installed Languages.

A new window titled Language Support will appear. Click on Regional Formats.

Choose English (India) and click on Apply System-Wide.


Which commands to convert a Ubuntu BIOS install to EFI/UEFI without boot-repair on single boot hardware?

Start a Ubuntu Linux (14.04) Live CD in UEFI mode. In case of a USB boot device, disable "Fast Boot" in UEFI.

Open a terminal window (Ctrl+Alt+T)

To verify that you are actually running in UEFI mode, use this bash command:

$ [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS

The resulting output should be:

UEFI

In case it says BIOS, reboot into your firmware and correct the boot device preference.

To do the BIOS to EFI/UEFI conversion enter these commands:

$ sudo mount /dev/sda1 /mnt
$ sudo mkdir -p /mnt/boot/efi
$ sudo mount /dev/sda3 /mnt/boot/efi
$ sudo mount --bind /dev /mnt/dev
$ sudo mount --bind /proc /mnt/proc
$ sudo mount --bind /sys /mnt/sys
$ sudo mount --bind /run /mnt/run
$ modprobe efivars
$ sudo chroot /mnt
# apt-get install grub-efi-amd64

Apt-get networking failure?

# rm /etc/resolv.conf
# ln -s ../run/systemd/resolve/stub-resolv.conf resolv.conf
# apt-get install grub-efi-amd64

No apt-get failure

The following extra packages will be installed:
  efibootmgr grub-efi-amd64-bin
The following packages will be removed:
  grub-gfxpayload-lists grub-pc
...
After this operation, 2,399 kB of additional disk space will be used.

# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ubuntu --recheck --no-floppy --debug

Despite ending in error message:

Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables.
Try 'modprobe efivars' as root.

the next reboot already shows "ubuntu" in the firmware its boot options menu, and boots to the console as before, except for now booting in efi mode:

$ dmesg | grep EFI
efi: EFI v2.31 by American Megatrends
fb0: EFI VGA frame buffer device
EFI Variables Facility v0.08 2004-May-17
fb: switching to inteldrmfb from EFI VGA

In case something goes wrong, https://superuser.com/questions/376470/how-to-reinstall-grub2-efi might help.


How to enable TRIM on LVM on Ubuntu 12.10?

Crypttab could only be relevant if you were actually using LUKS, which you haven't mentioned.  ("As long as LUKS is not aware that you want to use TRIM it will effectively block all TRIM operations coming from the LVM partition's file system, for security reasons")

If you're not using LUKS, it will be sufficient to add the discard option to fstab.

Be aware what you're doing.  This would start sending TRIM commands when deleting files on those filesystems.  To TRIM previously deleted files, I believe you will need to run the fstrim command.

You should also be aware of the "issue_discard" option in /etc/lvm/lvm.conf.  This controls whether TRIM is sent when LVs are shrunk or deleted.  (Again, it doesn't say anything about TRIMing space which is already free).  It's disabled by default.  Personally I would leave it that way, because I'm used to the possibilities of recovering from errors.  (And when I'm happy, I can use fstrim on the filesystem I've created... I suspect swap partitions are still issuing trim by default though).


Is it possible to run services with limited privileges?

Generally best practice is to run services as a non-root user.
On my Ubuntu system, installing neo4j defaulted to running neo4j as a user name neo4j.  If you are install from the official repos, using apt-get, this should be an non issue.  Those users should not be in any groups that can gain root privileges like wheel, suers or admin. It should not be able to use sudo.

But ...

If you must (or chose to) write your own startup script or do an install not based on an official repo, and it runs a root, create a user and use "sudo -u command" to not run it as root.

Here is how to create a user: http://www.debianadmin.com/users-and-groups-administration-in-linux.html


After getting help from Dexter_Kane on the Level 1 techs forum, the answer is to use /dev/disk/by-id/... paths instead when creating the pools.

E.g.

sudo zpool create zpool1 mirror \
/dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N0PKS6S7 \
/dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N7VXZF6H

Converting and Fixing Existing Pools

The good news is that you can "convert" an existing ZFS RAID array to using these labels which prevents this happening in future, and will even resolve your degraded array if this situation has already happened to you.

sudo zpool export [pool name]
sudo zpool import -d /dev/disk/by-id [pool name]

You just have to make sure the pools datasets are not in use. E.g don't execute the commands whilst inside the pool, and ensure they aren't being shared via NFS etc.

After performing the conversion, output of sudo zpool status should be similar to:

  pool: zpool1
 state: ONLINE
  scan: none requested
config:

        NAME                                          STATE     READ WRITE CKSUM
        zpool1                                        ONLINE       0     0     0
          mirror-0                                    ONLINE       0     0     0
            ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N0PKS6S7  ONLINE       0     0     0
            ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N7VXZF6H  ONLINE       0     0     0

Testing Performed

I made sure to test that:

Using by-id paths did prevent the issue happening.
After writing some data whilst the pool was in a degraded state, I could still read all the files after performing the export/import, and sudo zpool status reported no errors.


Why do some open applications appear as "question marks" in the Unity launcher?

What's happening

Problems like this relate to Unity's application matching framework. To simplify the technical details, program windows and applications are two separate things to Ubuntu. Ubuntu needs to 'guess' which application owns a particular window. And sometimes that guess fails, and a question mark appears in the launcher.

The failure may be due to:

A bug in BAMF (the application matching framework mentioned above).
A faulty application description (aka '.desktop' file).
The lack of any application description at all. Executables that launch windows do not inherently have this metadata.

The application shown in the question (KeePass2) suffers from a type 1 problem that has been reported to the appropriate bug tracker.

Examples of problems

The below examples are technical, aimed at programmers who want their own application displaying properly in the Ubuntu launcher.

Problem 3 – No application description

In order for an application to integrate with Unity—that is to say, be searchable in the Dash and placed in the launcher—it needs to have a desktop entry. Such entries are placed in the /usr/share/applications/, /usr/local/share/applications/, and $HOME/.local/share/applications/ (the latter two being for third party software, system-wide and user-only respectively). They end with a .desktop extension and follow this basic format:

[Desktop Entry]
Type=Application
Name=My Application's Name
Icon=/file/path/of/my/icon
Exec=/file/path/of/my/executable

This entry starts a program by calling the Exec executable. Whenever that program displays a window or dialog, Unity will notice that its executable "belongs" to this application description, and use the given Name and Icon in the launcher.

This is a barebones example. The formal specification covers many advanced features.

Problem 2 – Faulty application description

Let us assume that my_app.desktop exists in a valid application directory, but:

/file/path/of/my/icon does not exist in the filesystem.
/file/path/of/my/icon is not an image.
the entry uses some incorrect syntax or invalid tags.

In any of the above case, Ubuntu will be unable to properly list the application window in the launcher.

Problem 1 – A bug in BAMF

As of Ubuntu 11.10, BAMF has a number of bugs that prevents correct application matching. Common (temporary) pitfalls include:

The Exec path being a symbolic link rather than a regular file
The executable being a script that launches the main executable.

In these cases, programmers have no option but to use a workaround, such as removing the symbolic link abstraction, or linking to the executable directly. Neither of these are required by the desktop entry specification itself.


Should I remove upstart binary from my upgraded Ubuntu 16.04 server?

No. If you run sudo apt-get remove upstart, you'll discover what depends on it, because these packages would get removed to.

You'll see this:

The following packages will be REMOVED:
  libunity-2d-private0 ubuntu-desktop unity unity-2d unity-2d-common unity-2d-panel unity-2d-shell unity-2d-spread unity-greeter upstart

Notably, both "ubuntu-desktop" and "unity" depend on Upstart being installed, so leave Upstart installed.

I would instead focus your energy on confirming that your MythTV install is compatible with configured correctly for Ubuntu 16.04.


Microsoft Arc Touch Mouse doesn't working on Ubuntu 14.04

Bluetooth 4 HID devices (like your mouse) require Bluez 5.15 to function. Unfortunetely, on Ubuntu 14.04, Bluez is at version 4.

To update Bluez to version 5, you will have to do the following:

Note: I haven't teseted this and these instructions, and they (while very unlikely) could break your machine due to this being an unofficial PPA.

Add this unofficial PPA by opening Terminal and typing sudo add-apt-repository -y ppa:vidplace7/bluez5.
sudo apt-get update
sudo apt-get install bluezFor me, dpkg hung when I did this, so I force restarted and ran sudo dpkg --configure -a.

Hope this helps!

Source: here


It is quite possible that this is Ubuntu's fault. I upgraded from 10.04 to 12.04. The moment I did that my minimal core temperature started from 60 oC. When playing flash videos it might get up to 80-85 oC. Under Windows 7 and Ubuntu 10.04 I have/had no such problems at all. Power management is still something that is left behind by Canonical in the new Ubuntu release. It was never good and it'll probably stay like this for some time.


How to compile Realtek 8188CE wireless driver on Ubuntu 13.04?

I just had this exact same problem a couple weeks ago, so I put a working driver up on my Git Hub.  I also changed it so that it does away with the 20 dBm Tx Power limit and let's you go up to 33 dBm.  The instructions are in the repo.

You can clone this with:

git clone https://github.com/FreedomBen/rtl8188ce-linux-driver.git

If you don't have Git installed, you may need to install it first:

sudo apt-get install git

If you are curious, the compile issue is a result of a Linux kernel header change with the 3.8.x kernel.  They removed a #define that breaks this code.  It doesn't affect functionality though, it just stops it from building.  I've been running my compiled driver for several weeks now and it is way better than the one installed by default on 13.04


It was fixed and released for 13.04 as you can see at http://releases.ubuntu.com/13.04/wubi.exe

This version works the same as previous versions. It seems likely that Canonical intend to completely drop it based on the message at www.ubuntu.com/download/desktop/install-ubuntu-with-windows however the message is not a true statement of facts. Wubi works fine on Windows 8 and it is available and working for 13.04. It's true it won't work with systems booting with UEFI and this includes all computers that ship with Windows 8 preinstalled.

Note... there's nothing to stop Canonical removing wubi.exe from http://releases.ubuntu.com/13.04/ if they really want it gone. Until then, it works fine and you can use it with the same unreliability as previous versions of Ubuntu.


Prevent updating "modified time" when copying files to a mounted Samba folder

The timestamp "last modified" remains (and will not be replaced by the current time) when adding proper group and user IDs to the mount command, e.g.:

sudo mount -t cifs //mynas/folder mnt/mynas/folder -o user=username,gid=1000,uid=1000


how to get and install Intel i915 drivers on ubuntu 18.04?

Ubuntu has Intel video drivers by default in the package xserver-xorg-video-intel. But you can install the newest version from ppa:

sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt update
sudo apt dist-upgrade


How to make macros that play sound, activated by a keyboard key?

(I always used to wonder why you could answer your own question. I guess I just found out.)

I recently discovered a method to do this on Compiz desktops. If you are using Unity, you can use Sneetsher's answer. However I am using a Compiz based desktop so that doesn't apply to me, but it can be done.

First, download the audio file you want to have it play. This needs to be in OGG format, AFAIK, so if it's in another format such as mp3 then you need to convert it. A good website is here. That website also supports many other media formats, including images and videos, so if you need to convert files frequently you may want to bookmark it.

Next, open up the CompizConfig settings manager, by searching for it in the dash. Then click commands. Make sure that this plugin is enabled by clicking the checkbox to the left, if it isn't already. Then, in an empty text field, type in:

paplay <full path to file and it's filename>

So if your file is in /home/john/macros/file.ogg:

paplay /home/john/macros/file.ogg

Then take note of the label next to the text field you entered the command into(such as "Command line 0") and click "Key bindings". (There is also "Edge bindings" and "Button bindings" but it is rather impractical). Click the "disabled" button next to the binding that corresponds to the field you used, so if you entered the command in Command line 0 then click the button next to "Run command 0". In the box that appears check "enabled", and press "Grab key combination". Press any unused key that you want to trigger the sound. You can also hold shift, control, alt, or the super key.

Click OK, then click back, and exit the settings manager. Your new hotkey now works!


System froze but is still accesible through ssh

Nothing that connects to graphics processing on the workstation works could be caused by a problem with the workstation's GPU if there is one, either with the graphics card itself or with the GPU's driver.

From the terminal via ssh run this command:

ubuntu-drivers devices

This command will list the available proprietary graphics drivers and show the Recommended driver. Unfortunately installing the Recommended proprietary graphics driver will require a reboot to enable the driver. If you have to reboot the workstation, a benefit of this will be that any error messages that you get when booting or rebooting will sometimes help to identify what hardware device may be causing the problem.


I did some more search and I found this
So basically my GPU can only support OpenGL 2.1


Compiz Anaglyph plugin problems on 12.04

Perhaps the project was re-named else discontinued. I believe this is the solution to your dilemma with 12.04. Open terminal (Ctrl+Alt+T) and type this:

sudo add-apt-repository ppa:ddudek/stereo3d-stable
sudo apt-get update
sudo apt-get install compiz-plugin-stereo3d

Hope this is the answer everyone is looking for

Link to creator's site


Laptop goes off (not shutdown), which log file should i check?


Change windows from minimizing to corner in GNOME 3

I recommend not minimizing your windows. The minimize and maximize buttons have been removed from windows in Gnome Shell for a reason. There's really no need to minimize windows, so if you're going to use Gnome Shell, I would recommend kicking the habit. Gnome Shell has an amazing way of handling workspaces, I recommend using it. I don't see a workspace switcher launcher on your Unity bar in your screenshot, so I'm taking Gnome Shell handles your workspaces? Either way, with workspaces you never have to minimize windows. The advantage of having Unity is that you could quickly go to that application on whichever workspace by clicking on its launcher.


How can automatically restart a (vlc) video stream?

Try starting vlc with --loop parameter.
If VLC recognizes the stream has stopped, it should restart when it resumes.


Wifi randomly disconnects, drops out with an RTL 8187

(Posted by OP in the comments area)

  problem solved:D gnome network-manager is the problem why my connection frequently drops. Just install Wicd then removed gnome network-manager


Can't downgrade from Ubuntu 16 to Ubuntu 14 (Boot Problems)

Have you tried pressing F9 {some cases F8) for boot options? There you can select to boot up via usb directly


When will NVidia fully support Wayland (Ubuntu 17.10)?

By accident, trying to fix screen tearing when using latest Nvidia driver in X.org, when I rebooted noticed that it rebooted into Wayland (tested with echo $DESKTOP_SESSION). Idecided to try prime select query, I got: nvidia.

The Solution:
sudo nano /etc/modprobe.d/zz-nvidia-modeset.conf
add options "nvidia-drm modeset=1" and save.
Run sudo update-initramfs -u

check:
sudo cat /sys/module/nvidia_drm/parameters/modeset
Should say y for modeset=1 then,
xrandr --verbose 1st section, (the laptop display), should show PRIME Synchronization: 1

Note: Nvidia-settings still do not open even with xhost +local. ERROR: Unable to load info from any available system


Unable to Mount 128GB Micro SDXC Storage Card

You have to install exfat driver in LINUX to access the exFAT formatted partitions in linux

I took this from this post, please see that for more information.

In Ubuntu, you have to add a PPA and then install it.
In ubuntu, open the terminal and type the following :

sudo add-apt-repository ppa:relan/exfat
sudo apt-get update

In Ubuntu, I use the following command to install it successfully.

sudo apt-get install exfat-fuse

Now you will have the exFAT driver installed in your LINUX. Reboot your system and use your exFAT drive like every other drives.


Trying to get openGL 4 to work with amd card

Version of OpenGL also depends on your GPU model.

To see the supported version of OpenGL you should run from terminal:

glxinfo | grep "OpenGL version"

For example my Advanced Micro Devices [AMD/ATI] Trinity [Radeon HD 7600G] returns the following:

OpenGL version string: 4.4.13374 Compatibility Profile Context 15.20.1013

So proprietary fglrx driver supports OpenGL 4+.

Also you may see some details on OpenGL support in Wiki here.


Assuming that you mean installing ubuntu using wubi and place ubuntu folder in another drive

If you simply remove windows partition installed ubuntu will die because it is installed as a windows program ,

still you have to possibilities

1 . Migrate wubi to real installation before removing windows

2 . Backup ubuntu folder , and then install wubi in freshly installed  windows, replace the ubuntu folder with backuped ubuntu folder

But both of the above methods are not fool proof , So you should seriously consider installing ubuntu in separate partion instead of using wubi


How do I replace the MeMenu username with my actual name?

To switch to your actual name enter the following in a console (Applications->Accessories->Terminal) or you can use the gconf-editor:

gconftool -s /system/indicator/me/display --type int 2

And to switch back:

gconftool -s /system/indicator/me/display --type int 1

It is also possible to hide the name altogether and show just the icon:

gconftool -s /system/indicator/me/display --type int 0


Internet access not functioning in Ubuntu 18.04 VM

From revision #6 of the question:

  grep: /etc/resolv.conf: No such file or directory meant that this was a dead symlink and so I removed resolv.conf and defined the name server to be used by the enp0s8 dhcp interface as Google DNS with echo "nameserver 8.8.8.8" > /etc/resolv.conf, creating the resolv.conf file with the associated Google DNS information. The internet is now reachable. The file resolv.conf can be wiped by the Network Manager when it is restarted however. Set aside the Network Manager not showing an active internet connection tray icon in the taskbar as well as not being able to Connect through the Network Manager as a confirmation that you can't reach the internet. Once the proper interface is defined in the network configuration file and you've defined a corresponding name resolver in resolv.conf, try reaching websites. It just might work.


What kernel version is required for module development?

The current kernel is somehow considered 2.6 series since the massive architectural changes between 2.4 and 2.6.

Nowadays (August 2019) the latest kernel is 5.3-rc4 and the stable is 5.2.8, the ones available by default on stable Ubuntu are a bit older, I'm currently using Disco Dingo (19.04) with 5.0, while Eoan Ermine (19.10) already upgraded to 5.2 on the systems that I checked.


You can try YAK Pro - Php Obfuscator

Free, Open Source, Published under the MIT License.

I began testing some already existing php obfuscation tools, but I did'nt found one that was fitting all my needs.

I wanted a simple command line tool, based on a highly customisable config file, that would be able to:

Be fast and re-obfuscates only files that were changed based on timestamps of files.
Preserve some files and/or directories from obfuscation.
Do not include in the obfuscated target, some files/directories that are present on the source project.
Accepts lists of names and/or name prefixes to not obfuscate.

So I started to write this tool.


How to use apt to force remove corrupting package?

libgranite5 and libgranite6 depend on the libgranite-common package which uses the same file as another package. First, try to apt -f remove libgranite{5,6}.
Then, you may need to only install one version of the library in the future.


Ubuntu 18.04: installing composer: Could not write to file "/usr/local/bin/composer"

I have deleted /usr/local/bin/composer and started the installation process from the begining and it worked now.
When I enter the following command, I'm getting the following error message:

$ composer

In JsonFile.php line 98:

  Could not read /home/tonguim/.composer/config.json

  file_get_contents(/home/tonguim/.composer/config.json): failed to open stre
  am: Permission denied

But when using
$ sudo composer
I'm getting everything right as follow:
  ______
  / ____/___  ____ ___  ____  ____  ________  _____
 / /   / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__  )  __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
                    /_/
Composer version 2.0.12 2021-04-01 10:14:59

To run composer without being sudom I did the following:
// Clear cache
composer clearcache
// OR
composer clear-cache

// Completely remove the cache directory
sudo rm -rf ~/.composer


How can I add specific folders to Places in mintMenu?

Right-click the menu and choose Preferences:

Click Places ▸ New:

Enter the name and path for the new place, then click OK:

The custom place should now be listed in the menu:


The computer didn't automatically boot from USB,

This article has detailed steps for creating Ubuntu 18.04 Live USB and booting it:

https://linuxconfig.org/install-ubuntu-from-usb-18-04-bionic-beaver

The part you are stuck on now is getting BIOS to boot the Live USB:
Access Boot Menu
To access Boot Menu on your computer you will need to hit different keys (or combination of keys) depending on your computer type. Here is the list of possible keys you may have to press depending on your PC:

Device
Key Combination
Comment

Acer
Esc, F12 or F9
F12 key most likely

Apple
⌥
the key is also known as Option or Alt

Asus
F8 or Esc

Compaq
Esc or F9

Dell
F12

eMachines
F12

Fujitsu
F12

HP
Esc or F9

Lenovo
F8, F10 or F12
Other possibilities: Novo button or Fn + F11

Samsung
Esc or F2 or F12
For ultrabooks from Samsung disable the fast boot option in BIOS/UEFI. See next section.

VAIO
Esc, F10 or F11
Other possibilities: Assist button

Toshiba
F12

These are the keys to override the boot priority for a single session. There are other keys for accessing the full BIOS/UEFI menus below.

Access BIOS/UEFI
To access BIOS/UEFI on your computer you will also need to hit different keys (or combination of keys) depending on your computer type. Here is the list of possible keys you may have to press depending on your PC:
Key combinations for accessing BIOS/UEFI Device

Device
Key Combination
Comment

Acer
Del or F2
F2 key most likely

Asus
Delet or Del

Compaq
F10

Dell
F2

eMachines
Tab or Del

Fujitsu
F2

HP
Esc, F10, F11
Other possibilities: on Pavilion - F1

Lenovo
F1 or F2
Other possibilities: small button next to the Power button (if laptop)

Samsung
F2
For ultrabooks from Samsung if might be F10

VAIO
F1, F2, F3
Other possibilities: Assist button

Toshiba
F1, F2, F12 or Esc


I have Ubuntu 16.04 LTS, the X interface is not working

To boot into single user mode you edit the boot instructions for the GRUB menu.

Hold down the left Shift key while rebooting to bring up GRUB menu.
Select (highlight) the GRUB boot menu entry you wish to use.
Press e to edit the GRUB boot commands for the selected boot menu
entry.
Add the word "single" to the back of the line.
Reboot


How to get recent tzdata onto old ubuntu versions

Actually, the latest tzdata package does contain the correct timezone data. To install it manually, I did this:

wget http://archive.ubuntu.com/ubuntu/pool/main/t/tzdata/tzdata_2013d-1ubuntu1_all.deb
sudo dpkg -i tzdata_2013d-1ubuntu1_all.deb


Xubuntu 16.04 - All HDMI audio options appear Unplugged

Solved by installing drivers from Nvidia website, it now recognises my monitor correctly as well. Anyone who's facing similar problem should completely uninstall the nvidia drivers provider by Canonical/Ubuntu and install the latest from Nvidia site.

Steps on this page:
http://www.yourownlinux.com/2016/02/how-to-install-nvidia-361-28-stable-graphics-drivers-in-linux.html

These steps are applicable to any driver & Linux version.

Contents of eld#0.1 after installing drivers:

$ cat eld#0.1
monitor_present     1
eld_valid       1
monitor_name        BenQ GL2250H
connection_type     HDMI
eld_version     [0x2] CEA-861D or below
edid_version        [0x3] CEA-861-B, C or D
manufacture_id      0xd109
product_id      0x78a1
port_id         0x0
support_hdcp        0
support_ai      0
audio_sync_delay    0
speakers        [0x1] FL/FR
sad_count       1
sad0_coding_type    [0x1] LPCM
sad0_channels       2
sad0_rates      [0xe0] 32000 44100 48000
sad0_bits       [0xe0000] 16 20 24


If you want to delete Mate and restore Unity, you can try this:

Open a terminal,Press Ctrl+Alt+T

Run it:

sudo -i
apt-get update
apt-get install --reinstall aptitude deborphan
aptitude remove '?and(?reverse-depends(mate),?not(?reverse-depends(?exact-name(ubuntu-desktop))))'
apt-get install --reinstall ubuntu-desktop
deborphan
apt-get --purge remove $(deborphan)
deborphan --libdevel
apt-get --purge remove $(deborphan --libdevel)
deborphan --find-config
dpkg --purge $(deborphan --find-config)
apt-get autoremove
apt-get clean
reboot

This removes the installed packages that reverse-depend on mate and not those for ubuntu-desktop.


Why won't the application menu appear in Gnome Panel?

if you rightclick on the panel you can add the application menu. Here's the easy steps.

right click the panel
click on add
choose what you want, in this case choose menu bar or a custom menu bar for the applications - places - system links.


Cannot log on after I modified the .bashrc when I install the JDK 1.8.0

To permanently/temporarily take out the changes that you made to .bashrc and allow you to log in...

If you have the root account enabled

log into the root account
in the terminal app:

type sudo gedit /home/your_username/.bashrc
comment out the export lines that you added by placing a # at the front of each line
save and quit gedit
type ls -al /home/your_username/.ICEauthority
type ls -al /home/your_username/.Xauthority
if either of the above show root as owner/group

1 type sudo chown your_username:your_username /home/your_username/.ICEauthority

2 type sudo chown your_username:your_username /home/your_username/.Xauthority

log out of the root account
log into your normal account

If you don't have the root account enabled

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose root access
at the # prompt:

type sudo mount -o rw,remount /
type sudo gedit /home/your_username/.bashrc
comment out the export lines that you added by placing a # at the front of each line
save and quit gedit
type ls -al /home/your_username/.ICEauthority
type ls -al /home/your_username/.Xauthority
if either of the above show root as owner/group

1 type sudo chown your_username:your_username /home/your_username/.ICEauthority

2 type sudo chown your_username:your_username /home/your_username/.Xauthority
type reboot

log into your normal account


Video not playing, only freeze-frame, jump possible, gstreamer issue?

I installed a clean system (Ubuntu 17.10) and gstreamer works as expected. (For sure I installed the ubuntu-restricted-extras).

So a clean new system was the solution for me.


Another consideration is consistency (both happens to all hosts or during the whole day).  Is every site you go to slow with this system?  If not, then you might try to look at the path to the slow hosts with mtr (trace route).  If it's only certain times of day, but the other computers are not affected, then there may be some network dynamics that are too complicated for me to know what to tell you to try, although check the system's busy level and network throughput with a system monitor in that case.

If it's consistent, can you try file transfers from one of the other local systems to see if maybe it's the network port that specific machine is using?  Maybe there's a hardware issue.  Obviously, if you have a speed problem within your network, then that's a totally different issue.

Finally, if it's fine locally and consistent, recheck your network settings and ensure you don't have a VPN or Proxy setup that could be adding additional overhead to the connection.


2.5G Ethernet LINUX driver r8125 installation guide

To avoid having to reinstall the driver after every kernel update, create a file called dkms.conf in the NIC's source directory with these lines:
PACKAGE_NAME="r8125"
PACKAGE_VERSION="9.003.05"
BUILT_MODULE_NAME[0]="$PACKAGE_NAME"
DEST_MODULE_LOCATION[0]="/updates/dkms"
AUTOINSTALL="YES"
REMAKE_INITRD="YES"
CLEAN="rm src/@PKGNAME@.ko src/*.o || true"

Modify 9.003.05 to the version number that you have the source code for. To install the driver for the first time:
sudo cp -R /path.to/source/ /usr/src/r8125-9.003.05
sudo dkms add -m r8125 -v 9.003.05
sudo dkms build -m r8125 -v 9.003.05
sudo dkms install -m r8125 -v 9.003.05

To update the version, remove the current one first, remembering to change to the correct version number:
sudo dkms remove r8125/9.002.02 --all
sudo rm -rf /usr/src/r81259.002.02/
sudo dkms status

After the first install, dkms will automatically build and install the driver for you. You will, of course, need dkms installed first.


Microsoft Wireless Keyboard 3000 v2.0 doesnt recognize "Flip Key"

I have exactly the same keyboard, and i noticed that the events for these special keys are sent to /dev/usb/hiddev0.
So i started making a tool for reading them. It's still in early stage, but working.
You can find it here: http://github.com/rockman81/Touche


Installing kernel-wedge using the following command solved the problem:

sudo apt-get install kernel-wedge


Keyboard and Synaptics touchpad features stopped working after xenial software update

The problem is in the kernel, use an older version, clicking "Esc" at system boot and going to "Advanced Options" and then select the previous kernel.

(Sorry, my English is still bad).


Now click on the “IPv4 Settings” tab and click “Routes…”
  Click “Add” and in the “Address” box, enter the IP address of the machine you which to access. For our XYZ server, this is “203.0.113.3”. In the “Netmask” box enter “255.255.255.255” (to indicate we only want this single IP address). Leave the Gateway and Metric boxes empty.
  Select “Use this connection only for resources on its network”
  Click “Ok” on the “Editing IPv4 routes” box
  Click “Save…”

Copy from http://blog.rac.me.uk/2013/10/20/linux-setting-up-a-vpn-to-only-route-specific-ip-addresses/


If you like gaming, you might enjoy Vim Adventures

Only the first level is free to play I think, but even that is excellent for learning some basic things like cursor movement. It was helpful for me because it forces you to use the most efficient commands and thus get used to them, rather than cheating with arrow keys and so on.

Of course, you are welcome to ask questions about using Vim on Ubuntu here (or on Vi & Vim SE), but questions about Vim Adventures itself are off topic and should instead be asked on Gaming SE with the appropriate tag. The solutions for the game can be found here on GitHub (Many thanks to @Rinzwind for those two links)


Unable to open file attachment in note taking app Joplin, getting error access denied

For me it seems that you use wrong version of Joplin. The joplin-james-carroll is unofficial, but joplin-desktop is official.
So you have to:

Remove unofficial snap:
sudo snap remove joplin-james-carroll

Install official snap:
sudo snap install joplin-desktop

Connect removable media to freshly installed snap:
sudo snap connect joplin-desktop:removable-media


No it is not currently possible to use Flatpak on Ubuntu Core, as far as I'm aware. Someone would have to snap Flatpak to get Flatpaks working on Ubuntu Core.
It's not even possible to use Debs on Ubuntu Core, according to the Ubuntu website.

Also, 'Ubuntu Core has multiple useful features for iot', what features does it have that you'd find useful that doesn't use snappy? The whole of Ubuntu Core is snap!

Keep an eye on this snapcraft forum post for more!


I don't have Nvidia graphics drivers so I can't fully test this, but some ideas:

Have you tried just

sudo ipython

to see if optirun might not be the problem? "sudo ipython" works fine on my system.

Also try:

sudo optirun /path/to/ipython

So on my system this would be:

sudo optirun /usr/bin/ipython


Create symbolic link in the current web server document root permissions

What is the permissions of the /media/USER/KINGSTON/audio directory? Remember that Apache needs +x on directories it traverses.

Thus /media/, /media/USER, /media/USER/KINGSTON/ and /media/USER/KINGSTON/audio needs to have +x for world for www-data to be able to access it. This can be done with sudo chmod +x /path, for each of the directories above. If the KINGSTON device is not a unix filesystem, you may get into challenges there, as it does not have the traditional Unix ACLs.

Furthermore, I would probably add it as a normal mount point if it's a permanent solution. For how to do that, have a look at this Q&A

As a short example - note that # as prompt denotes commands run as root, $ denotes normal user.

/tmp # mkdir foo
/tmp # chmod 754 foo
/tmp # cd foo
/tmp/foo # mkdir bar
/tmp/foo # chmod 755 bar
/tmp/foo # ls -la
total 20
drwxr-xr--  3 root root  4096 Dec 24 14:24 .
drwxrwxrwt 57 root root 12288 Dec 24 14:23 ..
drwxr-xr-x  2 root root  4096 Dec 24 14:24 bar
# Note that the directory bar has read and execute permissions for everyone, but /tmp/foo has only read for others than group and user.
/tmp/foo # echo "foo" > bar/foo
$ cd /tmp/foo/bar
bash: cd: /tmp/foo/bar: Permission denied
$ cat /tmp/foo/bar/foo
cat: /tmp/foo/bar/foo: Permission denied
/tmp/foo # chmod +x . #Add execute permission for world to /tmp/foo
$ cat /tmp/foo/bar/foo
foo


Can't connect to wifi after 13.10 update - Qualcomm Atheros AR93xx Wireless Network Adapter [168c:0030] (rev 01)

I had a similar problem on my Asus laptop with an Ath9k card, and this seems to have helped me...
Why is my internet so slow with an Atheros wireless card?

My problem was that it kept disconnecting during a session.  Also, it's worth noting that the reason there are lots of things about Broadcom and not Atheros is that Atheros has historically worked out of the box with Ubuntu.

Hope that helps you a little at least.


Cursor jumps around while typing, Fn+F3 to disable touchpad also not working on an Asus EEE PC 1015PE

gksudo gedit /etc/modprobe.d/options.conf

Add this line to the file and save it:

  options psmouse proto=imps

Restart.

Source: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-synaptics/+bug/355326/comments/9


Are u looking for a offline or online dictionary. If you are looking for an offline dictionary then you have to install it manually. The one which comes with Ubuntu is online dictonary. I think it can be customized for your requirement.

After extensive search I found GoldenDict is the best offline dictionary application available for Ubuntu. It is just the application . You have to install the dictionary database, which you can get it for free from GoldenDict site. It supports many dictionary formats, you will not have trouble finding the dictionary. Just check out the site, I hope you will get the dictionary database for Korean->English.

To install goldendict in Ubuntu run: sudo apt-get install goldendict


It is normal. If you ever want to format your laptop, you can enter that third partition. It is the best way to give format to your laptop because this process include all drivers that your Windows needs. Have in mind that recovery means erase everything of your hard drive. Before doing that back your files up.


The command sudo cat /dev/ttyUSB0 doesn't return any output. Use stty instead

sudo stty -F /dev/ttyUSB0


Help with installing boot grub in Windows 10

GRUB is automatically installed by the Linux installer, Ubiquity, when you install Ubuntu. However, you can use GRUB for Windows only, according to https://www.aioboot.com/en/install-grub2-from-windows/ which provides detailed instructions.

=

For the rest of us, here's the sequence to use for installing GRUB by Ubiquity for a dual boot of Windows and Ubuntu:

Download Ubuntu's ISO file at https://ubuntu.com/download

or for a supported 'flavour' with a different Desktop Environment, download from https://ubuntu.com/download/flavours .

Next, check for download errors by https://tutorials.ubuntu.com/tutorial/tutorial-how-to-verify-ubuntu#0

Make a LiveUSB following these instructions on another Linux PC https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-ubuntu#0

or on a Windows PC https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-windows#0

Once you make a LiveUSB, install it following these steps https://tutorials.ubuntu.com/tutorial/tutorial-install-ubuntu-desktop#0

and when you get to step 6, Allocate Drive Space
You can choose Something Else to resize the Windows NTFS partition and make room for Linux.

Looking at the picture you provided, there's an EFI partition there already; that's what Windows 10 does by default. Only if your PC had Windows 7 or earlier installed first, would it be partitioned with the Legacy MBR Partition table, which would not have an EFI partition.


Slow GUI performance using a  Radeon HD5770

Try to replace the Device block in your xorg.conf file with this one:

Section "Device"
 Identifier "ATI Radeon"
 Driver "ati"
 Option "AccelMethod" "EXA"
 Option "MigrationHeuristic" "greedy"
 Option "AccelDFS" "true"
 Option "EnablePageFlip" "true"
 Option "EnableDepthMoves" "true"
EndSection

It's working for me and I have very smooth windows!

Also save Sync to VBlank off and auto frame rate count in composite off too.


AFAIK the vino-preferences GUI does not include it, but I believe the parameter you are looking for is network-interface

gsettings get org.gnome.Vino network-interface

If unset (i.e. the above command returns the empty string, '') then vino-server listens on all available interfaces, whereas if set to lo

gsettings set org.gnome.Vino network-interface 'lo'

then it will listen only on the lo (localhost) interface.

You could also use the GUI dconf-editor, where the parameter is listed under the org -> gnome -> desktop -> remote-access item.

You can confirm that the server is listening on the desired interface using netstat e.g. the default is

$ sudo netstat -nlp | grep ':5900'
tcp        0      0 0.0.0.0:5900            0.0.0.0:*               LISTEN      10927/vino-server
tcp6       0      0 :::5900                 :::*                    LISTEN      10927/vino-server

(listening on all available interfaces); then after

$ gsettings set org.gnome.Vino network-interface 'lo'

you should see that it is only listening on the localhost interface(s):

$ sudo netstat -nlp | grep ':5900'
tcp        0      0 127.0.0.1:5900          0.0.0.0:*               LISTEN      10927/vino-server
tcp6       0      0 ::1:5900                :::*                    LISTEN      10927/vino-server

Alternatively (or additionally), you could use iptables or ufw to close the port - by default, it is port 5900 + display number.


read file content in for/while loop, removing escape characters

I don't know a way to prevent the character sequences from being read at all, but you can use read -r to prevent them being treated as ANSI escapes, and then remove the literal \t and \n from the result:

$ while IFS= read -r line; do echo "${line//\\[tn]/}"; done < arq.txt
aaaaa
bbbbb
ccccc
eeeee
ddddd
fffff
ggggg
hhhhh

Note that you could achieve the same with external regex tools such as sed 's/\\[tn]//g' arq.txt


Touchpad Not Detected When USB HDD Plugged In at Boot

Looks like Windows doesn't reset all its settings when it shuts down and the warm boot of the tablet doesn't either.  (I predict this never happens when cold booting)

So to "reset" the mouse the best is to file this as a BIOS bug to the manufacturer, (or upgrade the BIOS if one is available) but in the mean time, do the following:
When it works, do an lsmod |sort > ~/Documents/MouseWorking.txt and when is doesn't an lsmod |sort > ~/Documents/MouseNotWorking.txt, then diff MouseNotWorking.txt MouseWorking.txt and look for the differences.

then:

sudo modprobe MissingModule

If none are missing (50/50 chance, as this looks like a BIOS bug) try:

sudo rmmod psmouse
sudo modprobe psmouse

and then you'll have a 75% chance of working around this issue.

I realise this is not a "solution" (the BIOS upgrade is) and just a workaround, but it's something...


ImageMenuItem Icons in Python AppIndicator

By default icons on menu entries are not displayed (you can change that somewhere in GConf/DConf). Use

exit_item.set_always_show_image(True)

to override this.


Convert mp3 to Ogg Vorbis with SoundConverter

A little bit of sed magic will simply and safely solve the issue for you. The following is a single command, simply copy the whole block and paste it into a Terminal window:

sudo sed -i_bak \
-e 's/quality_setting = {0: 0, 0.2: 1, 0.4: 2, 0.6: 3, 0.8: 4, 1.0: 5}/quality_setting = {0.2: 0, 0.4: 1, 0.6: 2, 0.8: 3, 0.9: 4, 1.0: 5}/' \
-e 's/quality = (0, 0.2, 0.4, 0.6, 0.8, 1.0)/quality = (0.2, 0.4, 0.6, 0.8, 0.9, 1.0)/' \
/usr/share/soundconverter/python/soundconverter/ui.py

This can subsequently be easily reversed, if you ever wish to do so, by using the following sed one liner:

sudo mv -v /usr/share/soundconverter/python/soundconverter/ui.py_bak \
/usr/share/soundconverter/python/soundconverter/ui.py

The results can be seen in this screenshot, note the 320kbps setting indicated with the mouse pointer:

This leaves you with the following bitrates available from within Soundconverter:

Approximate bitrate ~96kbps
Approximate bitrate ~128kbps
Approximate bitrate ~192kbps
Approximate bitrate ~256kbps
Approximate bitrate ~320kbps
Approximate bitrate ~500kbps

And the syntax of my sed example can easily be altered to allow for other quality settings and thus different bitrate combinations. Nice to have this available from within the application itself but this is what we have at the moment...

The Linux command line is so cool :)

References:

Hydrogen Audio Ogg Vorbis: Recommended Encoder Settings


Change that line to

UUID=41dec246-654d-4e35-9d4e-68150e40c5b0 /mnt/Data     ext4    rw,suid,dev,auto,user,async,exec      0      2

The position of exec is important, since user also applies noexec.  By putting exec after user, you ensure that exec is set.  The most important options should be listed last.


Authentication error , please try again later

First Enable super user account password on Ubuntu

set a password for root user as shown below.

$ sudo passwd root
[sudo] password for ramesh:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

Now with the new password you can login as super user with su command

$ su -
Password:
#

now you try that what ever you want its access it. but if this also not working must comment me ....:)


can all in the network connected in one terminal?to make run commands to all

You're looking for something like clusterssh, cssh, pssh, or even terminator

Tools like cssh may use some inventory files, which could be handy defining aliases identifying group of targets.

Others such as terminator are more suited for everyday use, while would allow you to split a terminal into multiple consoles, and eventually broadcast to groups, ...


How to type "ç" when using USA intl as the keyboard layout?

Edit /usr/lib/gtk-2.0/2.10.0/gtk.immodules
Modify the line where you can find "cedilla" add ":en" at the end

"cedilla" "Cedilla" "gtk20" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa:en"

Edit /etc/environment
Add: export GTK_IM_MODULE=cedilla

Edit for Ubuntu 12.10: (according to the other answer by Hoerlle)

the gtk.immodule file is located at:

/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/gtk.immodules

or

/usr/lib/i386-linux-gnu/gtk-2.0/2.10.0/gtk.immodules

For KDE and other applications that are not GTK:
Edit: /usr/share/X11/locale/en_US.UTF-8/Compose

Find all ocorrencies for ć and replace it all for ç, remember to look for the the uppercase matches too Ć and Ç

You may need to restart your gnome.


The file you're looking for is /etc/hosts.


How to show disk usage of a package including dependencies?

If you use the apt-get from the command line it will tell you the total disk usage before you confirm the install.

$ sudo apt-get install php5
..
..
..
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 8,459 kB of archives.
After this operation, 23.4 MB of additional disk space will be used.
Do you want to continue [Y/n]?


You are using Ubuntu 12.10 right?

If that is so, 12.10 does not have support right now for the legacy fglrx driver. If you want to install them anyway, you can follow this guide:

http://www.ubuntuvibes.com/2012/10/how-to-install-amd-catalyst-legacy.html


map Apple keyboard EJECT key to delete on Ubuntu 20.04

It doesn't work because you wrote the hex codes in lowercase, for the vendor ID and for the keycode.
Try with:
evdev:input:b0005v004Cp0267*
 KEYBOARD_KEY_C00B8=delete      # map EJECT to Delete

and then:
sudo systemd-hwdb update
sudo udevadm trigger


Ok, take a deep breath.

First let me get in the needed comment about deleting libraries. NEVER EVER EVER delete any library or program in the way you did. Always use apt-get or one of the gui front ends.

Now on to actual helping.

The problem your having is that gtk (the libraries that tell the computer how and where to draw buttons, windows, boxes etc.) has been deleted from your box. Therefor lightdm (the login screen) needs gtk to tell it where to draw it's boxes and it doesn't have it.

Because you deleted the file by hand, your package manager doesn't know that it's not there. To reinstall GTK try:

sudo apt-get install --reinstall libgtk-3-0

If you are never prompted with a login prompt (it will be text) you can press ctrl+alt+F1 to change to a text console. When entering your password it will not sow on the screen. Just type it as normal, and press enter.

Once you reinstall libgtk you need to fix your original problem. First I suggest creating a new user (from the text console) by typing sudo adduser username and following the prompts. This will allow you to test if your settings are wrong or if it's system wide.

If it's just your settings then as your original user mv .conf .conf.old and try to login again (you can press ctrl+alt+F7 to get back to the GUI based login screen).

If it's system wide, you probably messed up your libraries when you installed those libraries you mentioned above. If that is true, your best path to correction is to either uninstall the libraries if you kept track (assuming you installed them manually) or to backup your home directory and reinstall ubuntu. There are other ways, but they are very time consuming and not for someone new to linux.

Once your get gtk installed again it never hurts to do a sudo apt-get update followed by sudo apt-get -f install and then a sudo apt-get upgrade. Apt can fix many problems as long as you used it, or dpkg (or a gui front end) to install .deb packages.


What is the best way to deal with local DEB packages (i.e. ones not installed from repos)?

The answer is, APT repositories are the elegant solution. If a distributor does not have an APT repository, yes, you will need to script fetching each package and generate the packages.gz file for the local directory repository. The biggest issue is fetching the package - since there's no repo, there's no standard and scripting will be very specific for each package.


How can I install Ubuntu if my DVD drive is broken?

You can't use DVD or CD if you have that drive only, but using a pendrive is best option. TBH, rarely do people use DVD for installing Ubuntu. Most of them these days use USB. It's also lot faster and flexible installation that way.

You have to download the ISO file of the Ubuntu and then make a bootable USB drive.

There are tutorials on how to do it here:

https://help.ubuntu.com/community/Installation/FromUSBStick/
How do install Ubuntu from a USB stick?
http://www.ubuntugeek.com/how-to-install-ubuntu-linux-from-usb-stick.html

Now, you have the option to dual boot along with Vista or remove it completely while you install Ubuntu. You can read about it here:

http://forums.techarena.in/guides-tutorials/1028375.htm
https://seogadget.co.uk/the-ubuntu-installation-guide/

Now, while installing Ubuntu you can select options like Erase everything and install Ubuntu or Install alongside Windows Vista, to do what you want in an easier way.

Good luck!


Try my addon quickFilters. You switch it to learning mode, then move the email manually once. It will bring up a wizard so you can teach a filter to do this automatically from then on. It also integrates well with my other addon, QuickFolders. I also highly recommend using the "Copy Sent to Current" Addon to keep filtered conversations together and the [N] shortcut for jumping to the next unread mail.

As regards the Update, maybe you can define your filters not to run when "Checking mail" but only run manually; you still have the problem that they will be applied to all mails in the folder, so one would have to add a mechanism to avoid filtering unread emails.


Try this mate: https://help.ubuntu.com/community/Boot-Repair.
I had similar problems before, and it helped. Did you install it manually or you relied on the installer?


I think you should make bootable pendrive by makin iso file of ubnutand then install


Cmus is not playing after disabling pulseaudio and installing alsa

We can set the output plugin cmus uses to ALSA with the following command:

:set output_plugin=alsa

Depending on our sound architecture possible values are pulse (default), oss, or alsa.


16.04 Dual Boot Install on Lenovo Yoga 2 Pro - /EFI/ubuntu/grubx64.efi not found after booting back into Windows

efi expects the default boot loader to be /efi/boot/bootx64.efi. windows is particular about making sure it boots.

fist off, from 8.1 on windows does not really shut down,  it suspends to disk ( like a hibernate) so that it boots faster. second it changes EFI to make entry 0000 (windows) first in the boot order.

the work around: rename grubx64.efi to bootx64.efi then replace the file efi/boot/bootx64.efi.this makes grub the default boot loader.

second: when in ubuntu, use efibootmgr to delete all efi entries.
and reboot your computer. Make sure the first system you boot into is ubuntu so that it is placed in entry 0000. then boot windows.


Should I uncomment out the code referring to unhide.rb (as I am using unhide.rb)?

Yes, you should uncomment that line.  This will allow rkhunter to run unhide.rb without you having to run it manually!  (but still allowing you to run it manually if you want)

Low quality reviewers: Some answers have complex questions and simple answers…


So answering to myself as I have found the bug. It turns out that the <VirtualHost *:8080> was incorrect. It must be:

<VirtualHost *:80>

Now everything works as excepted. I've got the default home page "It Works!" for the default server URL http://vps5555555.ovh.net/  but also for other domains  pointing to the server but without declared vhost yet.


Xubuntu keyboard shortcuts
By default, XFCE/Xubuntu tiling is a mouse only affair.
However, you do have the ability to define your own keyboard shortcuts:

Using settings manager --> window manager you have the Tile Actions as shown.
In the picture I have defined two custom keyboard shortcuts CTRL+T to tile the current window to the top and CTRL+G to tile to the bottom.
To define your own keyboard shortcut - double click in the shortcut field next to the action.


php7.0-fpm.service: Main process exited /etc/php/7.0/ or /etc/php/7.1/

This worked for me -- (I am running Ubuntu 17.04)

I did a fresh install after removing php. Over all this added a bunch of new folders. Now I have 5.6 7.0 7.1 and 7.2.

source: Migrating from PHP 7.0.x to PHP 7.1.x

  For fresh installation on Ubuntu 16.04 (I am running 17.04) If we want
  to install new version && Remove all php dependencies sudo apt-get
  remove php*

  sudo apt-get install php7.1 php7.1-cli php7.1-common
  libapache2-mod-php7.1 php7.1-mysql php7.1-fpm php7.1-curl php7.1-gd
  php7.1-bz2 php7.1-mcrypt php7.1-json php7.1-tidy php7.1-mbstring
  php-redis php-memcached


If I had to guess, you look to be wanting the find to print out the basenames of the files.  You then want to pass that to cut to only get up to the second underscore.  Is that accurate?

If so, you are missing a few characters.  I believe your command should be as follows:

samples=$(find . -name "*_1.fastq.gz" -exec basename {} \; | cut -d _ -f1-2\)


How do I disable all the keys of the keyboard except for three?

Try xmodmap:

xmodmap - utility for modifying keymaps and pointer button mappings in X

Use xmodmap -pke to find out which keys have which keycode on your keyboard.
Disable a key by using xmodmap -e 'keycode 24 = 0x0000' replacing 24 with the respective keycode of the key which you want to disable.
Repeat step 2 for all listed keycodes to disable all keys. You can for example use a for loop to do so quickly:

#!/bin/bash

for i in {8..255}
do
    echo "Disabling keycode $i ..."
    xmodmap -e "keycode $i = 0x0000"
done


How do you bind the Fn key to the Ctrl function?

This is usually managed by the BIOS itself. Depending on your laptop's brand/make, you can enter the BIOS and choose whether to use the Fn/Control or Control/Fn key bindings.

Give this a try and please update your question just in case that your laptop's BIOS isn't having the proper switch for swapping the keys.

Good luck!


No possible adding of searching engines "Ixquick" and "Startpage" to Ubuntu-Firefox (13.04/22)

Here is the way how I use Ixquick (I don't use DuckDuckGo because of privacy concerns raised on Slashdot recently; also, Ixquick is Netherland-based).

Back up your firefox profile (just in any chance something could go wrong). Simplest option:

cp -a ~/.mozilla ~/mozilla-backup

Go to the "about:config" page (type into the URL bar). Confirm that you know what you are doing.
Search for the setting "keyword.URL" - you can enter it in the search bar and then only this keyword will be shown.
Click on the keyword.URL, and when a text field appears, enter:

https://ixquick.com/do/search?language=english&cat=web&query=

Click on OK, exit the config web page.

Now whenever you type a search query into the address bar, you will search using the Ixquick search engine and not google.


For that sort of resize you need to boot a live CD/USB and mount the NTFS partition containing the root.disk. Then use the full path to the root.disk in all the instructions.

In summary. You can't do that from a Wubi install and you have to know where the root.disk is.

e.g. you installed on C:\ and that happens to be /dev/sda3, then you would first mount /dev/sda3:

sudo mkdir /media/win
sudo mount /dev/sda3 /media/win

And then you can address the root.disk as: /media/win/ubuntu/disks/root.disk

If instead you want to do a resize while running the Wubi install, this alternate method will create a new duplicate root.disk: https://help.ubuntu.com/community/ResizeandDuplicateWubiDisk. It takes more space (and takes more time) but you don't need to run it from a live CD.


How do I restart a Unity session from the terminal?

The command unity can be used to restart unity. It restarts the window manager, so your open programs will stay intact and you will not be logged out.

If you run the command from a terminal app, you should add & disown to detach it from the terminal. If you don't, then the unity program will become a child process of the terminal app such that when you close the terminal, unity will also close.

It might also be worthwhile to add &> /dev/null (before the disown bit) so that text and error output does not clutter your terminal.

So, the command is:

unity &> /dev/null & disown

If you can't open the terminal application due to the desktop being extremely unresponsive (or any other reason), you can open a purely text-based terminal by hitting alt-ctrl-F1 through F6.

There you will get a text terminal, you have to login first.

Then you can run the command above, then hit alt-ctrl-F7 or alt-ctrl-F8 to come back to the graphical desktop.

This tends to fix "hanging" problems.

As a side note: since Unity is a compiz plugin, you can restart unity by restarting compiz using the command:

compiz --replace

If you run it from the alt-ctrl-F1 terminal, you will need a --display parameter

compiz --display :0 --replace

You'll still need to add & disown


The first thing I would do, if I had web access to the pop mail server, is to check and see if there are any emails still on it.

It sounds like you have Thunderbird set up to delete emails after downloading them. You can check that by Clicking on Tools, then Account Settings, then on the email account you need, then on Server Settings. Now, look at the 2nd section down, and see if there is a check mark in the box that says Leave messages on server. If not, they were probably deleted after downloading.

If you did this on a Linux system, you are probably out of luck. If you did it on a windows system, you may be able to retrieve them after a complete System Restore.

Good luck!


gsettings - change privacy settings via command line

Different ways to edit those settings

The settings you mention are stored in the dconf database in ~/.config/dconf (in binary format). This database can either be directly edited with dconf, or via gsettings. The difference is explained at the last section of this answer.

Once you have the information, posted in your question, you can therefore change the corresponding settings in two different ways.
Using your first example (setting remember-recent-files):

using dconf write:

dconf write /org/gnome/desktop/privacy/remember-recent-files false

or

using gsettings set:

gsettings set org.gnome.desktop.privacy remember-recent-files false

Similarly, reading the current setting:

using dconf read:

dconf read /org/gnome/desktop/privacy/remember-recent-files

or

using gsettings get:

gsettings get org.gnome.desktop.privacy remember-recent-files

In the first case, you edit the dconf database directly, in the latter you are using gsettings, which is a CLI frontend to dconf.

Which way to prefer; dconf or gsettings?

To protect the integrity of your dconf database, in general, it is considered better practice to use gsettings.

Frome this link, we read:

  The dconf program can perform various operations on a dconf database,
  such as reading or writing individual values or entire directories.
  This tool operates on dconf directly, without using gsettings schema
  information. Therefore, it cannot perform type and consistency checks
  on values. The gsettings(1) utility is an alternative if such checks
  are needed.  You can see gsettings as the cli-frontside to dconf.

Read more on gsettings and dconf.


How to set up system to boot from read-only SSD and store data on HD

You don't have to worry about the lifetime of your SSD. It'll last years, even with heavy I/O happening every day. Just use it as you would use a HDD. The only thing you need is setting the vm.swappiness to a lower value.

There are many other things, values that are 'said' to improve SSDs lifetime. However, every time they do some calculation the results show that even an older SSD would last 5+ years. And we are talking about the first SSDs.


I cannot get into my Ubuntu hard drive, because I messed my grub up - I have important documents on the drive

use
df
and
find /put your dir
to configure your gui
sudo apt-get remove gui
dpkg --configure -a
sudo apt-get update
sudo apt-get install gui
sudo apt-get install xorg
startx


Ubuntu 11.04 - No Unity in Live-Mode using a Nvidia GraphicsCard

If you are using a live USB with storage enabled then you can safely download the nvidia-current package from the software-center (do a full search of the package). Restart after it is installed and you will have Unity.


Reason to keep a GPU in a computer that is running Ubuntu Server

Graphics cards help with:

CUDA/OpenCL style workloads (eg bitcoin mining)
3D rendering. You might be rendering stuff on demand.
Most cards can help with video decoding but this applies to many IGPs too.
Some cards have hardware to help with video encoding. The quality is usually a lot poorer and this is still under development. ffmpeg can use nvenc (obviously on a Nvidia card). I'm not sure if this applies to you.

Almost everything else will only go through the CPU. If you're not doing any of the above (in a way that uses the GPU) you might as well pull the card.

But hang on a second, you can also play games on Ubuntu. The AMD drivers are occasionally infuriating, but that's potentially an option. If you're planning on running a media centre, your onboard graphics might be enough but we use a low-end Nvidia card to help in ours.


How do you install Khexedit in Ubuntu? I couldnt not find it

The package kdeutils and all its binaries has been separated in smaller tar files and the khexedit binary was deleted from Debian and Ubuntu repositories. This is since the khexedit binary was replaced by okteta. Okteta is available in all the current Ubuntu repositories, and to install it just run:

sudo apt-get install okteta


Mechanical mouse using USB-to-PS/2 Adapter freezes occasionally

The freezing was reduced to about once every other day after I opened the mouse and dusted the insides with an artist (acrylic) paint brush. Cleaning the insides was one of the suggestions for this problem here. The paintbrush made it easier to get into the crevices where most of the dust was. I also popped out the circuit board and dusted both sides with the brush. There was just a little bit of dust since it was cleaned from time to time, but the dust could have made more of a difference when using a USB-PS/2 adapter.

Update: Just want to add that I no longer have to "plug it back into another USB port to unfreeze it", I can now plug it back into the same port after I unplug it. Also, sometimes I just have to wait a few seconds to see the mouse movement.


Graphics problems in Ubuntu 14.04, distorted text

i think you have to install bumblebee and nvidia

are u using 64bit architecture? if yes install nvidia from it
http://www.nvidia.com/object/linux-display-amd64-295.59-driver.html

if not download here
http://www.nvidia.com/object/linux-display-ia32-295.59-driver

and install bumblebee

sudo apt-get install bumblebee


Youtube stutter on linux, works on windows

Neither Google Chrome, nor Firefox support hardware acceleration for video when used on a Linux operating system despite what their settings may imply. This results in poorer playback. They do support hardware acceleration under Windows.

References:

https://www.omgubuntu.co.uk/2018/10/hardware-acceleration-chrome-linux
http://disq.us/p/1wai2e0
http://disq.us/p/1wcbkhr
http://disq.us/p/1waleu7
http://disq.us/p/1wbysui
http://disq.us/p/1wcs530


You only need to create one bootstrap node for Juju. This is the node which will maintain and manage the rest of your Juju deployments to that environment.
Once you have "bootstrapped" an environment, you can simply deploy services using the Juju command. E.g.

juju deploy mysql

In your case, MAAS will select one of the remaining nodes to deploy the service on. If your nodes are big enough, you can deploy multiple services to each node (including the bootstrap node) by specifying extra options. For more information on this, please see the documentation (https://jujucharms.com/docs/stable/charms-deploying).


Brother MFC-495CW Scanner not working on Ubuntu 18.04

from this thread, post #25

https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1728012

add these two symbolic links

sudo ln -sfr /usr/lib64/libbrscandec* /usr/lib/x86_64-linux-gnu

sudo ln -sfr /usr/lib64/sane/libsane-brother* /usr/lib/x86_64-linux-gnu/sane

(ie you need to copy each command above; line by line; paste into a terminal; hit the ENTER key and move to second line ..)
re-boot ....... any joy?


No matter what I do, Ubuntu 15.04 does not recognize HP LaserJet 1020

It seems that this URL (https://mark911.wordpress.com/2014/10/31/how-to-install-printer-drivers-for-hp-laserjet-1020-in-ubuntu-14-04-lts-without-needing-access-to-openprinting-org-website/) solves the issue. The printer return to life and I was able to print test page.

Namely, HPLIP is buggy and we should not use it. Instead we should use CUPS via foo2zjs.

I will give this a good test over the next few days and weeks and will update the answer if this solution is not long term.


Vim breaks ubuntu18.04 requesting for vim-common 2:8.0.1453-1ubuntu1.3

I ended up fetching the requested dependency version (2:8.0.1453-1ubuntu1.3) vim-runtime manually from https://ubuntu.pkgs.org/18.04/ubuntu-updates-main-amd64/vim-runtime_8.0.1453-1ubuntu1.3_all.deb.html

I then ran,

sudo dpkg -i vim--runtime_{version} which returned an overwrite error:

Unpacking vim-runtime (2:8.0.1453-1ubuntu1.3) over (2:8.0.1453-1ubuntu1.1) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: trying to overwrite '/usr/share/vim/vim80/doc/help.txt', which is also in package vim-tiny 2:8.0.1453-1ubuntu1.3
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: trying to overwrite '/usr/share/vim/vim80/doc/tags', which is also in package vim-tiny 2:8.0.1453-1ubuntu1.3
Setting up vim-runtime (2:8.0.1453-1ubuntu1.3) ...

This was fixed by running : sudo dpkg -i --force-overwrite vim--runtime_{version}


Cannot get script to run at startup (tried all the simple answers)

startup and shutdown scripts are usually stored in /etc/init.d

Once your script is in the correct location, run the following commands

chmod +x /etc/init.d/myscript

update-rc.d myscript defaults

Check to see if your script is able to start correctly with the command

/etc/init.d/myscript start


How do I remove top panel on dual screen on secondary monitor?

This is currently not supported. I think it's supposed to be an feature due to the global menu thing.


Do I need user 1000, and can I replace it?

User ID 1000 is Mythubuntu, your user (notice that the grep command was ran by that user when you executed it). The apparent phenomenon is that ps does not report user names if they are longer than 8 (eight) characters, and subtitutes it with the user id.

(Off: The proper syntax is ps aux, not ps -aux (no need for the hyphen). Note the output throws an error on it too.)

Edit

To show an example:

whisperity@Aspire-5315:/tmp$ ls -l | grep DaveMG
drwxr-xr-x  2 whisperity whisperity     4096 2012-07-18 12:20 DaveMG

Clearly, my user has rights to write the folder. I can write into it:

whisperity@Aspire-5315:/tmp$ echo "hello Dave" > DaveMG/foobar
whisperity@Aspire-5315:/tmp$ ls -l DaveMG
total 4
-rw-r--r-- 1 whisperity whisperity 11 2012-07-18 12:21 foobar

When I look at the process list (let's say I hexdump the file), it will show something like this:

whisperity@Aspire-5315:/tmp/DaveMG$ ps aux | grep hexdump
1000     13893  0.8  0.0   3912   508 pts/2    S+   12:24   0:00 hexdump /tmp/somebigfile
1000     13895  0.0  0.0   4156   860 pts/3    S+   12:24   0:00 grep --color=auto hexdump

Because whisperity is more than eight characters (it's nine characters long), ps shows my user's ID.

whisperity@Aspire-5315:/tmp/DaveMG$ cat /etc/passwd | grep 1000
whisperity:x:1000:1000:Whisperity,,,:/home/whisperity:/bin/bash


How to use the free space after narrow /home partition in Ubuntu 14.04

Gparted is a great tool for partitioning your HDD/SSD. Get it here:

sudo apt-get install gparted

Here you can change the format of the free space.


Can't get Broadcom 43142 drivers to work after installation on 5420 Inspiron

Hi and welcome to Ask Ubuntu!

YUM is the package manager for Red Hat and distros based on Red Hat. Ubuntu is based on Debian and uses the APT front-end for dpkg. If you are on a Ubuntu system, dpkg are already installed and working.

This is what you do:

Download this file (wireless-bcm43142-dkms_6.20.55.19-1_amd64.deb)
Open your terminal and run this command:

sudo apt-get install linux-headers-generic build-essential dkms
Navigate to your download folder (cd ~/Downloads) and run this command:

sudo dpkg -i wireless-bcm43142-dkms_6.20.55.19-1_amd64.deb
Then run this command to load the modul:

sudo modprobe wl

If you still are having problems, let us know and we will help you make it work!


How do I replace the Linux Mint partition with Ubuntu without harming my Windows 10 partition?

Download 18.04 .iso and use Etcher or Rufus in Windows to create a bootable USB thumb drive and restart the PC. Ubuntu will load and ask you to "Try Ubuntu" or "Install", you can select Install.

Follow the installation as normal until you reach the part asking you about partitions and select "Something Else" like here:

On the next page you will be shown the partitions:

Double click the Linux Mint partition
Select Ext4 journaling file system
Check Format the partition
Select / for the mount point


Help me install guest additions on Ubuntu 11.04

You will need to install the kernel modules (headers) package that match the kernel version you are running the Ubuntu virtual machine with.

Type the following command in the terminal:

uname -a

This will give you line like this:

Linux dirk-Studio-1558 2.6.38-9-generic #43-Ubuntu SMP Thu Apr 28 15:23:06 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

The first word is the type of system, the second is the name of your machine and the third one is the one you are looking for. It gives the kernel version.

So you need to install the linux-headers-{my kernel version here} package from Synaptic org using apt-get. In my case it would be

sudo apt-get install linux-headers-2.6.38-9-generic

or directly in one generic command:

sudo apt-cache search linux-headers-`uname -r`

Hope that helps!

edit:

Ok, if that is setup correctly you can try to install the packages listed here
Check post #12


It's Shift + Ctrl + F.
You might want to change the Scrollback value to Unlimited to not lose any lines:

Edit > Profile Preferences > Scrolling


How do I fix the keyboard shortcuts for switching workspaces in 20.04?

You can find built in keyboard shortcuts and add your own custom shortcuts in Settings > Keyboard Shortcuts.

The default keyboard shortcuts for moving between workspaces in 20.04 are Super + PgUp for Workspace Up and Super + PgDn for Workspace Down.  For many keyboard shortcuts the combination of Ctrl + Alt is a substitute for the Super key.

Install gnome-tweaks

sudo apt install gnome-tweaks

and toggle from Dynamic Workspaces to Static

Retry adding a custom keyboard shortcut.