How to setup a song when starting Ubuntu

2 and 3 are quite easy (See below). Number 1 could be possible but I don't really know much about plymouth.

First off, create a small shell script containing these lines:

#!/bin/bash
mpg123 -q $1 &

I chose to save it as /usr/local/bin/play-sound (Also make sure mpg123 is installed).
You can use any command-line player you like. The & at the end of the line is imortant since lightdm will wait untill the script finishes. And we want the sound to play during lightdm. And the $1 will be replaced by whaterver file we specify when executing the script later on. Also remember to chmod +x the script.

2 ) Edit /etc/lightdm/lightdm.conf and set greeter-setup-script=play-sound <file.mp3> somewhere in the [SeatDefaults] section. Make sure the mp3 is accessible for all (not in an encrypted home folder or such). Don't use a long file as it will play it until the end.

3 ) Run gnome-session-properties from a terminal or run-dialog. Click Add, enter a nifty name, set the command to play-sound <file.mp3>. Add a comment if you want. Click Add and then Close. This will make the selected file play when the current user logs in. If you want the file to play for all users just move the resulting file from $HOME/.config/autostart/ to /usr/share/gnome/autostart/. I might add that there are more ways to set a login-sound for gnome. This is just a quick way.

I have tested these two solutions in ubuntu 11.10 running gnome-shell and unity. If I get some time over I will look in to the matter of running audio when plymouth runs. Or if anyone else knows ho to do this feel free to join in.


Ubuntu 18.04 missing wired connections in settings

I had this same issue which seems to be an Ubuntu NetworkManager bug. I was able to solve my problem by adding a missing config file and then restarting the NetworkManager as follows:

sudo touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf
sudo systemctl restart NetworkManager

This thread lead me to this solution, which I am posting here in case it helps you. Credit to skizo for finding something that worked.


apt-get database issue lubuntu 16.04 ....

The packages libreoffice-common and openoffice-debian-menus both contain the file /usr/bin/soffice so only one of them can be installed at a time.

Currently you have openoffice-debian-menus installed, but as it isn't an official Ubuntu package I suggest to remove it using

sudo apt-get remove openoffice-debian-menus


Using the ZTE MF192 HSPA USB Modem with Network Manager in Ubuntu 12.04LTS

I have the same modem same problem, gave me headache till I found the magical solution, Sakis3g!
Follow the instructions under "ubuntu" on http://wiki.sakis3g.org/wiki/index.php?title=Sakis3G_installation
You might want to eject the cd-rom icon that appears first, until your modem light blinks blue. Then double click the script to run.
Works 100% for me. Dunno what's up with the Orange dudes btw.


This has been tested on 10.04 and 12.04 LTS.

It's as simple as installing the cacti package.

To do that, run sudo apt-get install cacti and then follow the prompts. It will ask you to set a password for the root MySQL user.

However, one thing that catches people is that it gives you a choice of which HTTP server you want to have it run under.

Unless you have good reason to do otherwise, select "Apache2" and hit enter.

Now it will go and install all the packages.

When it asks you if you want to have the database configured with dbconfig-common, select yes.

And then it will ask you for the password of the root user.

And then it will ask you to set a MySQL application password specifically for cacti.

Enter one in, and then repeat it in the confirmation dialog.

Once the install is done, head over to your-ip/cacti follow the prompts there.

Click next if you agree to the license.

Now you need to tell it what kind of installation - we're assuming you're doing a new install here, so just click "Next".

Now here is the important part.

It will try and find all the various tools it needs - by default, they should be all green, but if it isn't, you'll need to do some digging to find where that tool is.

Click next.

Now you're at the login screen. The default username is admin, and the default password is admin as well.

Now it will have a forced password change. Change your password to whatever you want it to be.

Hit next after that, and you're in!

Have fun with Cacti!


From UbuntuForums:

Download the zip from here.
Extract the zip by right-clicking on it.
Then, open terminal and type

cd ~/Downloads/ubuntu/linux_mbb_install
Then change the needed file to executable

chmod +x install
Finally,

sudo ./install

And folow the instructions accordingly.


Streaming in justin.tv using Ubuntu 11.10

I just ran into this trouble today.  The solution is to allow permissions in flash for justin.tv's sites.  You can find the settings here: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager06.html

You'll have to set all relevant sites to 'Always Allow'.  It seems that the issue is that the dialog doesn't work on justin's website but seems to work fine at Adobe's.  Also, don't forget to restart your browser.

One last thing, I did notice that it didn't keep my changes unless I toggled to a different tab.  Not sure why but there is no 'save' button so perhaps the trigger to save the changes is switching tabs.  Best of luck!


Openshot can't use Blender in Ubuntu Studio 20

This issue is best solved by just downloading and installing the AppImage: https://www.openshot.org/download/
Read here for how to install an AppImage file: What is an "AppImage"? How do I install it?


Installation of Google Stenographer and its directory access requirements

There are three types of access in a standard Linux filesystem (of which there are many):

  read: the file can be only read  (sometimes noted as R)
  write: the file can be edited  (sometimes noted as W)
  execute: the file can be run as a program  (sometimes noted as X)

There are three types of user groups these access types can be applied to:

  owner: the owner of the file
  group: other files which are in the same folder or group
  world: anyone else

The access level is defined in numbers:

  0 - no access to the file
  1 - execute only
  2 - write only
  3 - write and execute
  4 - read only
  5 - read and execute
  6 - read and write
  7 - read, write and execute (full permissions)

/etc/stenographer root:root/0755 means
/etc/stenographer is owned by root,
members of the root group can read and execute,
and other users can read and execute.

/etc/stenographer/certs stenographer:stenographer/0750 means
/etc/stenographer/certs is owned by stenographer,
members of the stenographer group can read and execute,
but other users have no access.


How to get Plymouth working with LUKS encryption after NVIDIA driver installation?

This worked: How to fix plymouth (splash screen) in all Ubuntu releases!

The mistake I made when I first tried it is not using the correct resolution. I used the native resolution of my monitor, 1600x1200. But apparently Grub and Plymouth can have a different max resolution than the monitor and video card.

Since hwinfo is not available on Ubuntu 14.04, I booted into Grub2, dropped to command line and ran vbeinfo. Max resolution listed was 1280x800x32.

So with that info, the solution is:

sudo apt-get install v86d
sudo gedit /etc/default/grub

Find this line:

#GRUB_GFXMODE=640x480

leave commented out and add:

GRUB_GFXMODE=1280x800x32 (use max resolution found using vbeinfo)
GRUB_GFXPAYLOAD_LINUX=keep

Save file, then in terminal:

echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash
sudo update-initramfs -u
sudo update-grub

This gave me the 'correct' looking resolution for Plymouth both at startup and shutdown. Everything looks like it did before installing the nvidia driver, apart from a brief flash of the nvidia logo between Plymouth and the desktop launching.

I think the 'late resume failure' error report is unrelated, as I did not encounter this error report this time around.


"Terminal Way" for people who's avoid plugins:

  Remove gnash and lightspark packages:

sudo apt-get --yes purge browser-plugin-lightspark
sudo apt-get --yes purge lightspark-common
sudo apt-get --yes purge browser-plugin-gnash
sudo apt-get --yes purge gnash-common

  Then download file flashplayer*_XX_YYYYYY.tar.gz from http://get.adobe.com/flashplayer to some tmp directory.

cd /home/USERNAME/tmp

  Unpack libflashplayer.so from archive, setting chmod, installing, hardlinking:

tar xvf *flash* libflashplayer.so
sudo chown root:root libflashplayer.so
sudo chmod 0644 libflashplayer.so
sudo mv libflashplayer.so /usr/lib/mozilla/plugins/
sudo ln -s /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/firefox-addons/plugins/libflashplayer.so

  Remove unneeded archive

rm -f *flash*

Although it is only one method to tune your flash.
Fine tuning of lightspark or gnash also can be good choice.


Noisy Fan Ubuntu 12.10, not that noisy on Windows

I have the same notebook as yours, and the solution for me was 'i8kutils'.

sudo apt-get install i8kutils

In this package the script 'i8kmon' is for automatic control.

Some tips are:

Put 'ENABLED=1' in '/etc/default/i8kmon'
Put 'set config(auto) 1' in '/etc/i8kmon.conf'

I hope it helps.


Gnome software centre crashes in Ubuntu 16.04

This solution worked for me:

sudo apt-get autoremove gnome-software
sudo apt-get install gnome-software


Write a custom lookup script for MusicBrainz Picard

It's possible to use a script, but that's not necessary. Picard has a build-in Convert File Names to Tags for that and for a better recognition, write the tags to your files taken from your filenames.

Open picard and your music folder

and open Tools - Tags From File Names


Could not see any options while installing amd catalyst via the .run installer

See the ubuntu help page. On there are all the ways you can install it. Any problems let me know :)


How do I modify a printer's IP address in CUPS?

The IP address is not a modifiable field, because, if you changed it, it would describe a different printer.

Abandon the "Modify Printer" approach, and on http://localhost:631/admin, Find New Printer


How to run my snap application on startup

Get the exact path of the snap location you wish to execute. You can do that by executing the following in the Terminal -

which nameOfSnap
/usr/bin/nameOfSnap    #copy this path

Search for "Startup Applications" from the Launcher

Click on add. Paste the path in the command textbox. You can provide any name, comment.

Click on "Add" at the bottom and the snap will be added to your startup applications.

Reference - How do I start applications automatically on login?


How to install Playmemories home Software?

I ran it on Linux using a Windows VM on VirtualBox for about a year.  It was a pain to get all working and having a whole VM running was a huge resource hog.

I just started a mini github project to get picture/video transferring over WiFi working on Linux without Playmemories.  I have it working for my A5000 and I'd be interested if other are able to make it work.  Here is the link:
https://github.com/falk0069/sony-pm-alt


Sound problem after installing Lubuntu Desktop in Ubuntu 14.04 LTS

After fresh install it works for me (I only installed Lubuntu not Ubuntu). But still don't know what the problem was. Guessing package overlapping was the issue.


The maas/stable/ubuntu xenial repository does not have a Release file

Turns out there isn't a stable release of MAAS for Xenial which means I need to be on the  ppa:maas/next repository instead of ppa:maas/stable. The issue was brought about after stepping through the MAAS getting started guide which wanted asked me to ad the ppa:maas/stable repository. After removing it with

sudo add-apt-repository --remove ppa:maas/stable

The update went without any errors.


how can I install Ubuntu on my old computer

firstly Ubutnu is free; you don't purchase it but you can donate if you want to. :)

...according to your information you have a "32bit" system so you should download the 32bit version of ubuntu. here's the download link http://www.ubuntu.com/download/desktop/questions?distro=desktop&bits=32&release=latest (scroll down; there's a hyperlink to the left)

try again and feed me back here ; )

...I have something more to tell you; there are two supported Ubuntu versions: 12.04 LTS and 13.10. The link above is for 13.10; I recommend it for you.

13.10 is the most up to date version but will be supported for a short time (about 5 months left); this is just because newer versions will come up so they stop supporting 13.10 to support the new one (which will be 14.04). 12.04 is not the newest version but will be supported long (several years).

put in mind that it's so easy to upgrade Ubuntu 13.10 to the next version later from the update manager; just a few clicks and you're there! Anyways it's up to you :), here's the link to 12.04 http://www.ubuntu.com/download/desktop/questions?distro=desktop&bits=32&release=lts

edit: those suggestions below are great! (the LXDE and the LXLE!)

I've never heard about LXLE but I do use LXDE!! YOU CAN INSTALL LXDE AFTER YOU INSTALL THE REGULAR UBUNTU!! Actually LXDE is ubuntu but with lighter user interface and apps. After installing ubuntu you can install the LXDE interface from the "ubuntu software center" and then you can chose which interface you want on each startup! the regular "unity" interface or the LXDE! That way you have both!! : )


Ubuntu 14.04 on Mac OSX El Capitan death on start up screen

I am no Unix wizard, in fact.. I am still an apprentice, I have just started my venture into the world of Unix. However... I myself have started messing around with an old MacBook (2006 LOL) of mine and tried wiping Mac OS X to replace it with Ubuntu 14.04 LTS.

From what I have learned in the process (still not finished yet... lots of research to do still), Apple computers seem to have a track record of being extremely finicky with operating systems that are not being emulated via BootCamp, Wine, etc. Majority of the time it's a driver/hardware issue.

All in all, I would start from square one and do some more research on your specific MacBook with Linux. I hope this gives some insight even though it's not an answer. Good luck!

EDIT: I found this set of instructions on a reddit post. Seems pretty straight forward.

  Install OSX.
  With diskutil make a partition for ubuntu - a slice of your OSX drive.
  Format a USB drive MBR FAT32. Install unetbootin on OSX, make bootable usb with it - use iso image and default settings.
  Turn the computer off.
  Start it holding option key. Mac's boot menu will apear - only now insert your ubuntu bootable USB, it should apear as EFI Boot. Hit return, then install.
  When prompted on how to install, choose "something else", your partition is last on the list - sda1 is mac's recovery, sda2 is mac's root. Your partition will be sda5 or something. Delete the last partition, create a swap partition and a root partition. Choose your ubuntu root partition to install bootloader eg: dev/sda5, hit install.
  When it finishes reboot. Don't panic let it boot into ubuntu. If ubuntu starts ok, turn the computer off.
  Boot holding option, choose boot OSX (not recovery), when in OSX get refind, open terminal type sudo, drag the refind-install executable, hit enter, enter password, done. Reboot.

  If your OSX is El Capitan you need to disable csrutil before proceeding with refind.

  Works for me on Macbook Late 2009


ERROR -bash: syntax error near unexpected token `newline'

Actually you want to tell to apache2 to enable a site configuration file named mysite.conf:

a2ensite mysite.conf

The rest part of the line is HTML code that shouldn't be displayed in this way. As @steeldriver said this is ан error in the tutorial. In result the syntax is completely wrong... This code contains the semicolon character ; that can be used as newline token in Bash - the default user's shell in Ubuntu.

The command a2ensite expects name of any file located in /etc/apache2/sites-available. The name must end with .conf. The command creates symbolic links for these files into the directory /etc/apache2/sites-enabled/, thus they become enabled, when you reload the Apache's configuration.


How to check what kernel grub will attempt to load on next boot

By default the first menu entry is chosen, unless you select another one at boot time when the menu is displayed.
You can also choose the next entry to be used in /etc/grub.d/00_header.


This file: /dev/loop0 is a special type of system file used as a virtual device so it doesn't take up any space and is used to mount image files and ISO files.

As I see, /dev/loop0 is mounted on /, so I assume that this is a Wubi system and in this case something else is using your space.

This command: df -h is for showing you the space left and used on the virtual drive image on the physical drive. You must to use du command to see exactly which files are taking your space.


Losing Drivers and Functionality on Ubuntu

For anyone who comes to this in the future. I had to revert the operating system to factory install after backing up all of my files. Press esc on startup and and press restore to factory settings.

This helps: http://liliputing.com/2011/07/how-to-install-nearly-any-linux-distro-using-a-usb-flash-drive-and-unetbootin.html


No soundcard found 12.04 after kernel update

Based on the information you have provided so far, it appears like the driver module for your internal sound-card has been blacklisted. You said that Ubuntu can detect and work with the sound card if you boot from Live CD. So spend the effort to boot from the Live CD again and do a lsmod | grep snd there, in this way you'll be able to know what extra modules are loaded there for your internal sound-card. Then come back to your Ubuntu installation. Check the file /etc/modprobe.d/blacklist-oss.conf and search there for those missing modules and if found comment them out by placing a # before them. Finally perform sudo modprobe <missing modules> to load them into kernel.


Install custom version of node with apt-get

The specific version you require is not available in the PPA to be used with apt, but it has been built and is available for download as separate files on the repository's builds list.

Just download the version+release+arch desired file and install it with dpkg -i nodejs.deb.

Don't forget that if after installing the desired version of nodejs an apt-get upgrade will update the current version to the latest version, so you will need to pin the package so that it is not updated.


Why are proprietary drivers run the compiler to install?

The kernel module is built for each kernel from source.

That is correct, you can see some part of the code, but it is not "open source" in the meaning that you can use this code or amend it.


Can I use a USB memory stick to boot Ubuntu Server with RAID?

You can do what you want with a USB stick but it might be simpler to carve out a small (200MB) partition at the beginning of two of the disks and the software raid the remaining almost 2TB. Only one of the two carved out partitions actually has to be used as /boot but you might want to manually mirror them occasionally to have a backup boot partition.


Restarted my Ubuntu Touch Nexus 4 and now my cellular network access is denied but works with another carrier's SIM card

While working with the guys in the #ubuntu-touch freenode irc channel I eventually flashed my Nexus 4 back to android and connected to my mobile network. The Ubuntu Touch guys believe this caused a radio fw update. I was then able to reflash and reinstall the latest stable version of Ubuntu Touch and reconnect to my mobile network. Definitely not an ideal situation but at least I am connected again and I don't have to use Android or iOS.


Open the Ubuntu Software Center and from the menu click Edit -> Software Sources -> Ubuntu Software (the first tab in the Software Sources window) and then check that the second entry in the list of software sources: Community-maintained free and open-source software (universe) has a check mark in the checkbox on the left side of the entry. This will enable the universe repository, and you should be able to install gnuplot in any currently supported Ubuntu release (from Ubuntu 12.04 onward).

For Ubuntu 13.04 and later the instructions are the same except that the Ubuntu Software tab is accessed by selecting Dash -> Software & Updates -> Ubuntu Software tab.


How can I scale all images in a folder to the same width?

This is very easy to do with imagemagick. You should be able to install it in the Software Center. I would suggest it for batch processing of images.

The batch resizing is incredibly simple (I tested it with Ubuntu 11.10). Use the following command to resize every .jpg file to 200 pixel width, keeping the aspect ratio:

$ convert '*.jpg[200x]' resized%03d.png

you can maintain the filename by using -set option. Ex:

convert "images/*.jpg[250x]" -set filename:base "%[basename]" "images/new_folder/%[filename:base].jpg"

If you have more files you should use with find

find /folder -iname '*.JPG' -exec convert \{} -verbose -set filename:base "%[basename]" -resize 1920x1080\> "/folder/images/%[filename:base].JPG" \;

This is only scratching the surface of the power of imagemagick. Resizing can be tuned endlessly. For more advanced resizing you have to use the -resize option.

You can limit the resizing to shrinking:

$ convert '*.jpg[300x>]' thumb-300-%03d.png

or enlarging:

$ convert '*.jpg[300x<]' thumb-300-%03d.png

Have look at the geometry documentation to see more options.


Just read about this today in this article How To Get The Sysray Whitelist Back in Ubuntu 13.04.
Hope that helps you out!


If a key press doesn't trigger anything in xev, is it still possible to use it for a key binding?

Sure.  X windows has to send the key press to xev but for various reasons X might send it to something else first, so xev won't show the key press and release events.

Consider the brightness or multimedia keys.  The key presses aren't shown in xev, but if your X windows environment is set up correctly, you can adjust brightness and so forth.


Brightness function key resulting in flickering

I was able to find a fix for it. Not fully satisfied, but technically the issue is fixed. Here, I blogged about it.

Update: The original blog is down. Its content can still be found on archive.org though. Below is a quotation of the linked content's key parts:

  After googling further on this, I landed on this page and I saw the list of kernel parameters that had to do with the backlight. I rebooted a couple of times, each time trying a different parameter, and finally,
  acpi_backlight=native is what did the trick. I noticed that it doesn’t allow me to change brightness on login screen, but after login, there was no flickering, and when I ran ls /sys/class/backlight/, I saw that it no longer returned acpi_video0. The only issue I have right now is that there is no fixed minimum. Sometimes, it decreases to a reasonable minimum, while at other times, it results in a blackout, and I have to manually adjust it using the slider in system settings or using xbrightness..

  To replicate this process, all you need to do:

  Fire up a terminal
  sudo nano /etc/default/grub
  At the very end of the string GRUB_CMDLINE_LINUX_DEFAULT, (which in my case was quiet splash) add acpi_backlight=native.
  The final string, in my case, looks like quiet splash acpi_backlight=native
  Close and save the file, and run sudo update-grub and then reboot.

  In the event that this doesn’t work, it’d be worth your time to try out the rest of the kernel parameters. You don’t have to modify the grub file every time. Instead you can choose to modify kernel parameters before boot. This you can do by pressing “c” on the grub screen and typing the desired parameter, in the correct place, right after “splash.”


gvfs-afc-volume-monitor uses a lot of CPU

It sounds like you are suffering from this bug or something similar

/usr/lib/gvfs/gvfs-afc-volume-monitor kills polar bears

Not sure about the title of the bug but the more your processor is being used the more electricity it needs etc....

I'm not sure whether you can remove the package but you might "limit" the process with
cpulimit until the update of libusbmuxd comes out for 9.10 if it does!


The Ubuntu minimal virtual install differs from the standard server install in two ways:

lesser packages are installed;
a different kernel is installed.

Before Oneiric, the kernel was the one provided by the linux-image-*-virtual packages. Nowadays, the kernel used by the minimal install is linux-image-*-generic. Instead, standard server and desktop installs use both linux-image-*-generic and linux-image-extra-*-generic.

All of this to say that if the minimal install does not work, it's because it lacks some drivers and modules that are shipped with the extra package.

So, the question is: are the drivers sufficient to run Ubuntu on Xen? I don't know and I can't try at the moment. If vmbuilder does not let you use Ubuntu Minimal with Xen, it's a different matter.

What I can say is that Launchpad PPA builders and Amazon EC2 run on Xen, and I am pretty sure that neither of them are using the extra kernel package.


How to enable startup sound on Ubuntu 20.04?

I've seen many inaccurate answers such as paplay. Don't use that, since it won't work consistently on some platforms of Ubuntu 20.04 "Focal Fossa".
Instead, use canberra-gtk-play. That has worked consistently for me, regardless of complete Ubuntu 20.04 installations or persistent USBs.
Launch "Startup Applications", and click "Add". Here's what you need to put in Startup Applications' dialog box:
Name: GNOME Login Sound (or whatever you want to name it)
Command: /usr/bin/canberra-gtk-play --id="desktop-login" --description="GNOME Login"
Description: Plays a sound at login (or whatever you choose)
DON'T PUT ANY SPACES AROUND THE COMMAND!! Please! It won't work otherwise...
Anyways, that should help you activate the startup sound on Ubuntu 20.04 with consistency. Save your work and reboot to see (or rather hear) your hard work pay off.


How to find screen DPI on Mir in Ubuntu Touch from command line

I found help at Ubuntu App Dev group on Telegram, from Michael Zanetti, he pointed me out to mirout tool (/usr/bin/mirout):

$ MIR_SOCKET=/var/run/mir_socket mirout

here, the MIR_SOCKET variable serves similar purpose ad DISPLAY variable would on X display server.
This tool spits out the screen resolution and physical dimension of the screen, like this (from Meizu MX4 Ubuntu Edition):

Connected to server:  Card 0: Max 3 simultaneous outputs
Output 1: Card 0, LVDS, connected, 1152x1920+0+0, used, on, 60mm x
101mm (4.6"), normal
1152x1920     60.72*+ Output 2: Card 0, DisplayPort, disconnected Output 3: Card 0, Virtual, disconnected

1920x1080     60.00*+

So you just need a simple math to get the DPI:

DPI = √(w²+h²) / diagonal

So in this example :

DPI = √(1152²+1920²) / 4.6"
DPI = 2239.085527621 / 4.6"
DPI = approximately 486


Ubuntu Theme can't be installed by terminal

For some unknown reason, many themes don't appear in Unity Tweak Tool. I suggest using Gnome Tweak Tool instead. Install it with

sudo apt-get install gnome-tweak-tool

You can then change the theme.

Alternatively, you can use terminal to change theme.

gsettings set org.gnome.desktop.interface gtk-theme 'Humanitary'

will set the theme.

To go back to default theme, You'd use

gsettings set org.gnome.desktop.interface gtk-theme Ambiance


Since you tagged your question perl, here's a couple of ways to do it in that language:

split and join

$ perl -F'\|' -alne 'print join "|", $_, $F[1] for split ",", $F[0]' a
BHARAT|ABCI
SELXG|ABCI
SAAB|ABCI
BHARAT|XYZQ
HONEY|XYZQ
HIRO|XYZQ
ABBS|XYZQ

split and map

$ perl -F'\|' -alne 'print for map { "$_|$F[1]" } split ",", $F[0]' a
BHARAT|ABCI
SELXG|ABCI
SAAB|ABCI
BHARAT|XYZQ
HONEY|XYZQ
HIRO|XYZQ
ABBS|XYZQ


How to prevent quickly from replacing Exec=.* in the .desktop file?

I think you've hit a bug in Quickly.

As a workaround, you can do the following:

Open a terminal
Run quickly package --extras
Edit the rules file in the debian folder of your project and fix that sed line
Now run: debuild -S
And finally run: dput ppa:yourusername/ppa ../projectname_*_source.changes

Troubleshooting

If you are getting signature errors, ensure you've added the following at the end of the ~/.bashrc file:

export DEBFULLNAME='Your name'
export DEBEMAIL='your.email@example.com'

Note that:

The values of DEBFULLNAME and DEBEMAIL should match those of your GPG key.
You'll need to restart the terminal for the changes to have effect, or alternatively run source ~/.bashrc to reload the file
You should check that the debian/changelog file has got a valid e-mail that matches DEBFULLNAME and DEBEMAIL too
You might need to update the version number in the debian/changelog file. In any case, ensure that there is no -public suffix, or anything else with -


Time discrepancy between dmesg and journalctl -k

To get the same timestamp format as dmesg with journalctl, try

journalctl -o short-monotonic -b

Example output with journalctl

...
[    1.003458] marvin kernel: usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.003460] marvin kernel: usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.003461] marvin kernel: usb usb1: Product: xHCI Host Controller
[    1.003462] marvin kernel: usb usb1: Manufacturer: Linux 4.15.0-33-generic xhci-hcd
[    1.003463] marvin kernel: usb usb1: SerialNumber: 0000:00:14.0
[    1.003596] marvin kernel: hub 1-0:1.0: USB hub found
[    1.003611] marvin kernel: hub 1-0:1.0: 16 ports detected
[    1.004505] marvin kernel: xhci_hcd 0000:00:14.0: xHCI Host Controller
[    1.004507] marvin kernel: xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2
[    1.004510] marvin kernel: xhci_hcd 0000:00:14.0: Host supports USB 3.0  SuperSpeed
[    1.004533] marvin kernel: usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    1.004535] marvin kernel: usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.004536] marvin kernel: usb usb2: Product: xHCI Host Controller
[    1.004537] marvin kernel: usb usb2: Manufacturer: Linux 4.15.0-33-generic xhci-hcd
[    1.004538] marvin kernel: usb usb2: SerialNumber: 0000:00:14.0
...

Compared to the same output from dmesg

...
[    1.003458] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.003460] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.003461] usb usb1: Product: xHCI Host Controller
[    1.003462] usb usb1: Manufacturer: Linux 4.15.0-33-generic xhci-hcd
[    1.003463] usb usb1: SerialNumber: 0000:00:14.0
[    1.003596] hub 1-0:1.0: USB hub found
[    1.003611] hub 1-0:1.0: 16 ports detected
[    1.004505] xhci_hcd 0000:00:14.0: xHCI Host Controller
[    1.004507] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2
[    1.004510] xhci_hcd 0000:00:14.0: Host supports USB 3.0  SuperSpeed
[    1.004533] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    1.004535] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.004536] usb usb2: Product: xHCI Host Controller
[    1.004537] usb usb2: Manufacturer: Linux 4.15.0-33-generic xhci-hcd
[    1.004538] usb usb2: SerialNumber: 0000:00:14.0
...


Ubuntu 16.04: nvidia drivers for GeForce GTX 960M

This file was modified by the Community with no fresh time stamps after May 7 2016, but there should be one for Sep 16 2016 because it showed up on the active list.

The answer above sudo apt-add-repository ppa:graphics-drivers/ppa today results with:

 Fresh drivers from upstream, currently shipping Nvidia.

## Current Status

We currently recommend: `nvidia-367`, Nvidia's current long lived branch.
For GeForce 8 and 9 series GPUs use `nvidia-340`
For GeForce 6 and 7 series GPUs use `nvidia-304`

nvidia-370 is the current BETA release!

## What we're working on right now:

- Normal driver updates
- Investigating how to bring this goodness to distro on a cadence.

## WARNINGS:

This PPA is currently in testing, you should be experienced with packaging before you dive in here. Give us a few days to sort out the kinks.

Volunteers welcome! See also: https://github.com/mamarley/nvidia-graphics-drivers/

### How you can help:

## Install PTS and benchmark your gear:

    sudo apt-get install phoronix-test-suite

Run the benchmark:

    phoronix-test-suite default-benchmark openarena xonotic tesseract gputest unigine-valley

and then say yes when it asks you to submit your results to openbechmarking.org. Then grab a cup of coffee, it takes a bit for the benchmarks to run. Depending on the version of Ubuntu you're using it might preferable for you to grabs PTS from upstream directly: http://www.phoronix-test-suite.com/?k=downloads

## Share your results with the community:

Post a link to your results (or any other feedback to): https://launchpad.net/~graphics-drivers-testers

Remember to rerun and resubmit the benchmarks after driver upgrades, this will allow us to gather a bunch of data on performance that we can share with everybody.

If you run into old documentation referring to other PPAs, you can help us by consolidating references to this PPA.

If someone wants to go ahead and start prototyping on `software-properties-gtk` on what the GUI should look like, please start hacking!

## Help us Help You!

We use the donation funds to get the developers hardware to test and upload these drivers, please consider donating to the "community" slider on the donation page if you're loving this PPA:

http://www.ubuntu.com/download/desktop/contribute
 More info: https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it

Be advised there are instructions on Nvidia site about disadvantages of upgrading Debian (which Ubuntu is based on) versus clean install.

Also be advised Nvidia website might have special instructions for Haswell, however their current drivers use the same one from my lowly GT650M up to OP's GT760M but there can be all kinds of recommended changes in other areas of the system based on Intel CPU and/or systemd or Debian.

Also there are special circumstances like the OP where Integrated Graphics and Discrete Graphics aka "Hybrid Graphics" are built into the Motherboard.

The Nvidia website does talk about black screens that are common questions in A.U. (Ask Ubuntu) so it's a worthwhile visit for most reading the OP's question.


I've got the same problem with Nvidia drivers and the solution was to have Launcher placement enabled on both monitors, else the situation was as your described. I guess it's bug of proprietary Nvidia drivers, because they don't see 2 monitors but one with resolution of both combined.


How to set Maven home PATH on Ubuntu as User

Exporting the M2_HOME environment variable is no longer required if you're using Maven 3. The important thing is to have the /bin directory of you maven installation added to the PATH environment variable.

Anyway, personally I find that exporting the M2_HOME env variable makes reconfiguring the location easier at a later time if needed.

The actual error you're reporting is related to JAVA_HOME not being set correctly, but I'll get to that after setting up Maven.

First of all, to have M2_HOME set between terminal restarts you'll have to add the export statement to ~/.bashrc (assuming your shell is bash). This will override any of these environment variables set system wide by /etc/environment

My Maven installation is located at /opt/apache-maven-3.5.4, so to add that to my ~/.bashrc file I could do

echo 'export M2_HOME=/opt/apache-maven-3.5.4' >> ~/.bashrc

And then I would utilize M2_HOME when I add maven to PATH, like so

echo 'export PATH=${M2_HOME}/bin:${PATH}' >> ~/.bashrc

Now configure JAVA_HOME the same way. My java installation is located at /usr/lib/jvm/java-8-oracle/jre/bin/java but when configuring JAVA_HOME some of that path will need to be stripped away.

echo 'export JAVA_HOME=/usr/lib/jvm/java-8-oracle' >> ~/.bashrc

Then, if you start a new terminal you should be able to run mvn -v and get the desired result.


Welcome to AskUbuntu.

Apt-get does not advance one kernel at a time. You usually get the latest current kernel available in the repositories (3.2.0-48- right now).
To install the 3.2.0-45 kernel and headers, run

sudo apt-get install linux-image-3.2.0-45-generic linux-headers-3.2.0-45-generic


After Xubuntu upgrade to 19.10, some apps can't see my external HD, but Thunar can

Well what ending up solving this for me was to actually just change the owner from the USER to ROOT. and then , as counter intuitively as it may sound, then there were no more permission errors and all is fine. :-)


Firefox can't display math in wikipedia.org

I had the same problem today and I finally found the issue. The equations generated by mathML on Wikipedia use the default color for text with a transparent background. If the default text color is white, you can't see the text because Wikipedia background color is also white.

To fix this, you must change the default text color to black.

see: https://support.mozilla.org/en-US/kb/change-fonts-and-colors-websites-use#w_change-font-color

Try to unset "use system colors", because some dark themes use white text as default. Set the text color to black and the background color to white.


Does Ubuntu Advantage Advanced services support Ubuntu Version 13.04?

Any version of Ubuntu currently in the active part of its lifecycle (see chart at LTS | Ubuntu Wiki ) can be selected by an Ubuntu Advantage customer, and will be supported by Canonical.

So the answer is Yes, 13.04 is currently covered by Ubuntu Advantage.


Which video cards play nice with 14.04 and 2 monitors?

I've got a GT630 with dual monitors which works very good. The one thing with nvidia and Ubuntu is the sluggish UI which you'll have to fix by setting the grub boot parameter:
video=LVDS-1:d

I don't know why Ubuntu don't fix this boot parameter by default, but it is what it is. Simple fix to an annoying problem.


How could a package be installed without internet connection

The package is completely uninstalled, but your system is configured by default so that the downloaded DEB files will not be deleted after an installation.

Therefore start

sudo apt-get autoclean

to delete packages that can no longer be downloaded, or

sudo apt-get clean

to delete all downloaded packages

from man apt-get

clean
    clean clears out the local repository of retrieved package files. It
    removes everything but the lock file from /var/cache/apt/archives/ and
    /var/cache/apt/archives/partial/.

autoclean
    Like clean, autoclean clears out the local repository of retrieved
    package files. The difference is that it only removes package files
    that can no longer be downloaded, and are largely useless. This allows
    a cache to be maintained over a long period without it growing out of
    control. The configuration option APT::Clean-Installed will prevent
    installed packages from being erased if it is set to off.


Unable to boot Windows after installing Ubuntu 12.04 - error: invalid efi file path

I'm a little foggy on some of the details of what's going on, but here are some of the key points from your Boot Info Script output:

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  Windows 7: FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:
    Boot files:        /EFI/Boot/bootx64.efi /EFI/Boot/bootx64.efi.bkp
                       /EFI/ubuntu/grubx64.efi
                       /EFI/Microsoft/Boot/bootmgfw.efi
                       /EFI/Microsoft/Boot/bootmgfw.efi.bkp
                       /EFI/Microsoft/Boot/bootmgr.efi
                       /EFI/Microsoft/Boot/bootx64.efi
                       /EFI/Microsoft/Boot/bootx64.efi.grb
                       /EFI/Microsoft/Boot/memtest.efi

This is your EFI System Partition (ESP), which holds EFI-mode boot loaders. Ordinarily, such files end in .efi; however, some Linux tools (such as Boot Repair, if I understand correctly) rename the original Windows files with .bkp extensions and replace them with copies of GRUB. This seems to be a measure to work around certain buggy EFIs that ignore the usual NVRAM boot loader list and just boot EFI/Microsoft/Boot/bootmgfw.efi or EFI/BOOT/bootx64.efi directly.

Here's a bit from later in your Boot Info Script output, taken from your GRUB configuration file:

menuentry "Windows UEFI loader" {
search --fs-uuid --no-floppy --set=root CA62-F337
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi.bkp
}

menuentry "Windows Boot UEFI bootx64.efi.bkp" {
search --fs-uuid --no-floppy --set=root CA62-F337
chainloader (${root})/EFI/Boot/bootx64.efi.bkp
}

This shows that GRUB is configured to boot its renamed boot loader; but this action isn't working. As near as I can tell, those entries are correct; but GRUB seems to be quite finicky in its EFI chainloading configuration, which these entries employ. Sometimes what works on one system fails on another. You could try editing the file to add something like this instead:

menuentry "Windows 7" {
    insmod part_gpt
    insmod chain
    set root='(hd0,gpt1)'
    chainloader /EFI/Microsoft/Boot/bootmgfw.efi.bkp
}

If that works, add the entry to your /etc/grub.d/40_custom file so that it will be included whenever GRUB re-creates its grub.cfg configuration file.

Another option is to install another boot loader or boot manager to be used instead of or in addition to GRUB. My first recommendation is rEFInd, but I'm biased because I maintain it. It has the advantage of being easy to install: Download it, extract the archive, and run the install.sh script in Linux. Unfortunately, the renamed Windows boot files pose a problem, so you'll have to either rename them back to their original forms or create manual boot stanzas in rEFInd's refind.conf file to launch the real Windows boot loaders. Once you've done this, when you reboot you should see an entry for Windows, which should work with any luck. You'll also see an Ubuntu entry, which should launch GRUB.

If rEFInd works, you may want to consider some further reconfiguration that will make rEFInd boot Linux directly, without involving GRUB. This topic is described on rEFInd's documentation page describing methods of booting Linux. In brief, if you copy your Linux kernel and initial RAM disk file to the root directory of the ESP or a subdirectory of EFI on the ESP, and place a refind_linux.conf file with your kernel options in the same directory, rEFInd will be able to launch the kernel directly. If you juggle your mount points a bit, rEFInd can detect when you install updated kernels.


ubuntu 16.04: When I change the video card driver from `nouveau` to `nvidia`, the top menu bar can't be displsyed?

Mostly, that's the problem of your DE (GNOME, Lxde etc.), not the driver. Probably, the window manager fails to start, so you need to either reinstall your WM or your DE. Also you may try to run WM by yourself. Hope that helps.


I had same problem with asus GL703GM.
The fix was to edit /etc/modprobe.d/alsa-base.conf and add the this line at the end:
options snd-hda-intel model=headset-mode

When done editing, shutdown the system completely (do not restart).
However the headset mic didn't work, but it ok with me as the internal laptop mic was OK.
Original post: (Ubuntu 20.04 headphones detected but no sound)
you may read the https://forum.manjaro.org/t/sound-from-speakers-no-sound-from-3-5mm-jack-audio/5343/20 link thread for better solutions.


Is it possible to turn off Backup's "fresh backup" feature?

It doesn't seem like there is a way to turn off fresh backups entirely, based on a comment on Launchpad:

Is there a way to completely disable the fresh backup feature?
No. The fresh backups are used for other purposes, like deleting old backups when space gets tight. If only incremental backups were used, Deja Dup couldn't do that.

However, I can approximate "never" by setting the time between fresh backups to be very long. I need to modify the Dconf setting at path /org/gnome/deja-dup/, schema org.gnome.DejaDup, key name full-backup-period. It controls the number of days before a fresh backup is made. I simply set it to 10 years (36500 days) to approximate "never".
For example, to set it to 36500 days from the command line, run:
gsettings set org.gnome.DejaDup full-backup-period 36500

I can also do this from dconf-editor (screenshot)


Disable number keys on top-row of keyboard

You can easily change the keyboard mapping on X Windows based systems with xmodmap.
Install the xmodmap package

sudo apt-get install xmodmap

Look at the keyboard mapping for the keys of interest (pretty near the beginning for your keys0

xmodmap -pke

Cut/paste the keys of interest into a file, called top-row-reset, (here's what mine look like):

keycode  10 = 1 exclam 1 exclam
keycode  11 = 2 at 2 at
keycode  12 = 3 numbersign 3 numbersign
keycode  13 = 4 dollar 4 dollar
keycode  14 = 5 percent 5 percent
keycode  15 = 6 asciicircum 6 asciicircum
keycode  16 = 7 ampersand 7 ampersand
keycode  17 = 8 asterisk 8 asterisk
keycode  18 = 9 parenleft 9 parenleft
keycode  19 = 0 parenright 0 parenright

This file may be used to reset any changes back to the default.
Copy this file, and change the part to the right of the = sign to be what you want, either all your symbols or maybe reverse them e.g.:

keycode  10 = exclam exclam exclam exclam
keycode  11 = at at at at
keycode  12 = numbersign numbersign numbersign numbersign
keycode  13 = dollar dollar dollar dollar
keycode  14 = percent percent percent percent
keycode  15 = asciicircum asciicircum asciicircum asciicircum
keycode  16 = ampersand ampersand ampersand ampersand
keycode  17 = asterisk asterisk asterisk asterisk
keycode  18 = parenleft parenleft parenleft parenleft
keycode  19 = parenright parenright parenright parenright

or to reverse the shift make a file named mod-top-row

keycode  10 = exclam 1
keycode  11 = at 2
keycode  12 = numbersign 3
keycode  13 = dollar 4
keycode  14 = percent 5
keycode  15 = asciicircum 6
keycode  16 = ampersand 7
keycode  17 = asterisk 8
keycode  18 = parenleft 9
keycode  19 = parenright 0

Run these files with the command
xmodmap mod-top-row


Do kernel backports need to be reapplied each time kernel updates to new version?

Yes, the backported driver needs to be recompiled for each successive kernel update. After rebooting into the newer kernel, the process is, roughly:

cd ~/Desktop/backports-3.12-whatever
make clean
make defconfig-rtlwifi  <--or whichever driver suite you are building
make
sudo make install
sudo modprobe rtlwhichever

Of course, adjust the process for your exact circumstances. Here is a post describing the process: Ubuntu 12.04 Realtek RTL8188E Wireless Card Not Detected


Accidentally overwrote first 4GB of my HDD

First, understand the difference between partitions and filesystems. In this answer, I will use these terms very precisely, so I want to be sure you understand the distinction:

A partition describes a set of sectors on your hard disk. That is, a partition can be sectors 2048 to 1126439 or sectors 4198440 to 15628053134. Partitions are defined in partition tables, which are simple data structures that contain those sector numbers and a few other pieces of partition metadata, such as type codes and possibly names. Two common partition table types are the Master Boot Record (MBR) and the GUID Partition Table (GPT). The former was the dominant partition table type until about four or five years ago; but with the introduction of Windows 8 and the rapid shift from BIOS-based to EFI-based computers, GPT has risen dramatically in popularity. Which partition table you used is critical one for your question, as described shortly.
A filesystem is a much more complex data structure that typically resides within a partition (or sometimes another container, such as a logical volume in an LVM setup, or even a file, as in a downloaded .iso image file). Filesystems enable the computer to locate, read, write, and otherwise manipulate individual files. Common filesystems on Ubuntu include ext2/3/4fs, Btrfs, XFS, and JFS. Some others, like FAT, are often used for cross-platform purposes. NTFS is the native filesystem for Windows, and HFS+ for macOS (although Apple is transitioning to APFS). If your computer boots in EFI mode, chances are the first partition held a FAT filesystem; but that filesystem would also have been small and would therefore be completely overwritten and will not be recoverable. (Fortunately, re-creating this EFI System Partition, as it's called, is possible.)

The terms partition and filesystem are sometimes used interchangeably, but the distinction is important for your case. Ultimately, you're most interested in the filesystem data, but to access a filesystem, its starting point must be known, and that start point is normally provided by the partition data.

Given your current situation, there are several possible ways to recover your partition table and/or locate the start point(s) of at least some partitions:

Use GPT backup data -- Both GPT and MBR store the partition table data at the start of the disk, which your accident has erased; but GPT also stores a backup of this data at the end of the disk. Thus, you should be able to use the GPT backup to recover the entire partition table. (Note that this will not recover the rest of the data you've overwritten; it's likely that at least one filesystem will be damaged.) AFAIK, the best Linux tool for this type of recovery is my own gdisk, which comes standard with Ubuntu. See this page for details. In brief, you'll launch gdisk on the disk and, if it asks you, tell it to use GPT. gdisk might recover everything at that point, but you may need to type r to enter the recovery & transformation menu and then use b and/or c to read the backup metadata and partition table, respectively. You can use p to view the partition table as gdisk currently sees it. When you're convinced it's recovered, type w to save the changes. Be careful, though! Once you type w, gdisk will overwrite both the main and backup GPT data, so if you do this before you recover the correct partitions, you won't get a second chance at recovery! If you're uncertain, quit out of the program without saving changes by typing q. You can then do more research and try again.
Use Linux's in-memory partition data -- So long as you do not reboot or use certain commands related to partitions, the Linux kernel maintains a list of partitions, including their start points and sizes. You can read this information from the /sys/block/{disk}/{part}/ directory in its start and size files. For instance, /sys/block/sda/sda1/start has the start point of /dev/sda1 and /sys/block/sda/sda1/size has the size of /dev/sda1. You can use this information to re-create a partition table. You'd extract the information on all your partitions (say, cat /sys/block/sda/sda*/start and cat /sys/block/sda/sda*/size to get the start points and sizes of all partitions on /dev/sda), then use fdisk, gdisk, or parted to re-create partitions that match what the kernel has recorded. (Caution: Some partitioning tools, such as GParted, create new filesystems when new partitions are created. It's imperative that you not do this; you want to create new partitions without modifying a single byte of the contents of the partitions you create.) Note that you'll still need to fill out metadata that the kernel does not record, such as partition type codes. Also note that the kernel records the start point and size (length) of each partition, but many partitioning tools ask for the start point and end point, the latter being the start point plus size minus 1. Be sure to understand what your partitioning tool wants and feed it the correct values.
Use TestDisk -- If your computer uses MBR and you've rebooted, or if the preceding approaches fail, you can use TestDisk to recover partitions that match your filesystems. TestDisk works by scanning the entire disk for filesystem data structures. It can then modify your partition table, or create a new partition table, with partitions that match the filesystems it finds. Note that TestDisk is likely to fail for your first partition or two; however, this approach may work for recovering partitions that begin beyond the end of the area you've accidentally overwritten.
Do it blindly -- The first partition on the disk usually begins at a fairly predictable location. In particular, sector 2048 is a common starting point for disks partitioned recently (in the last four or five years). Older disks usually had a first partition that began on sector 63. Some disks, particularly those partitioned in macOS with GPT, have a first partition that begins on sector 40. Thus, if you know enough, you might be able to correctly guess where the first partition began. Given that you've wiped the first 4GB of your disk, though, this knowledge may be worthless; many disks have small (1MiB to 1GiB) first partitions, so you may well have completely overwritten the entire first partition, and well into the second one. If you know that the first partition was a specific size that was much bigger than this, though, or if it filled the entire disk, knowing the start point may enable filesystem-level recovery tools to restore some of the filesystem's data; or you may then be able to recover an intact second partition. This approach is obviously one that's very risky, but if you're desperate enough, you might get lucky with it.

Overall, your best bet is if you used GPT; in that case, your backup GPT data should be intact and you should be able to recover the entire partition table. Even in this case, though, the filesystem data may be partially or completely wiped, at least for the first partition or two. Recovering any data in the first 4GB (the area you accidentally wiped) will be impossible. If a partition begins within that wiped area but extends significantly beyond it, you might be able to use fsck (or similar tools in other OSes) to recover the filesystem, or at least most of it. There are advanced fsck options that might help you with this task, but I'm not an expert on their use. Note also that fsck is really a front-end to filesystem-specific tools such as e2fsck, and filesystem-specific options for these tools may be important in recovering your filesystem(s).

If you haven't rebooted, you might try backing up whatever filesystem(s) are most at risk, using ordinary file-level commands such as tar or cp. There is a risk that Linux will attempt to read filesystem data from the overwritten section of the disk, become confused, and completely hang the computer. In a worst-case scenario, the confusion might even cause writes of corrupted data beyond the damaged area, thus making matters worse. Thus, this approach is not without its risks. Even so, it might be worth taking the risk to back up important user data to an external drive.

Another data-recovery approach is to use PhotoRec. This tool searches the disk, much like TestDisk, but PhotoRec searches for common file types. Thus, it can be used to recover files even if the filesystem data structures are badly damaged. This tool might be useful if a partition began in the damaged first 4GB of your disk but extends beyond that area. If fsck can't recover the filesystem well enough to be mounted, PhotoRec might at least recover some files from it. Be aware, though, that PhotoRec does a poor job of recovering filenames and directory structures. You'll be left with a mound of poorly-named files you'll have to search manually to figure out what you've got.

If you booted in EFI mode, your ESP is almost certainly gone. If you can recover the partition table, you can create a fresh FAT filesystem on the ESP and then use Boot Repair to return Ubuntu to bootability. Conceptually similar repair procedures are possible for Windows, but I'm not familiar with them. If you dual-booted with Windows, you should ask about this on a Windows forum. I recommend restoring the Windows boot loader first and then using Boot Repair in Ubuntu. If you do it the other way around, the computer will end up booting straight to Windows. This issue can be fixed, but it's better not to have it at all.

If you booted in BIOS mode, your boot loader is also destroyed. Boot Repair can recover GRUB once your Ubuntu partition(s) are restored. Depending on the location of Windows (if you dual-booted it), you may need to recover its boot loader using Windows techniques and tools.


Windows not loading from either grub or burg?

Ok, re-installed windows and it is now detected as windows 7, and properly loads. Now I gotta get rid of "Windows 8" from the boot entry and I'm done.


Instead of totem, what application that can play .m4v format?

VLC Media Player from VideoLAN will handle most formats you can throw at it, list of supported video formats can be found  here


(this should be a comment rather than an "answer", I don't have enough rep to comment).

First of all, you should determine where the bottleneck is occurring. Is it truly the local network, or is it the tasks users are performing on the system?

One could use SNMP to help determine network bottlenecks and where they are occurring.


A question about the last security update for Ubuntu ("ATTENTION: Due to an unavoidable ABI change...")

Linux (the Kernel) is mainly an abstraction layer for different kinds of hardware. It's a common ground where other software can built on top, not caring whether it runs on your smart phone or on your notebook.
The people making that piece of software are very concerned to never ever ever break compatibility with existing software. The ABI is the bridge between the Kernel and the other software on it. They only change it if something is really badly broken or if they find a security hazard they can't fix otherwise.

Therefore they make it quite clear once they do break the ABI behaviour somewhere.

(This is all very funny to me, since most of the other core-software on a linux breaks compatibility to software running on it right and left.)

Anyway, this is very unlikely to effect you as a user.


After selecting the SD card or USB, instead of clicking the gear icon to format,
click the partition in the "Volumes" section.

Delete the partition ("minus" icon)

Create a new partition


Ubuntu 18.04 If Desktop -> "Show Icons" is Enabled, It Causes Multiple (Unclickable) Icons

Found out the problem. Nemo and Nautilus were fighting for control over drawing the desktop... solution:

gsettings set org.gnome.desktop.background show-desktop-icons false
gsettings set org.nemo.desktop show-desktop-icons true
xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search

Add "nemo-desktop" to start-ups

Then do this if you want the icons:

gsettings set org.gnome.nemo.desktop home-icon-visible true
gsettings set org.gnome.nemo.desktop computer-icon-visible true
gsettings set org.gnome.nemo.desktop trash-icon-visible true
gsettings set org.gnome.nemo.desktop network-icon-visible true

Never touch any options in Tweak -> Desktop again as I'm pretty sure it re-enables Nautilis


Ubuntu 16.04 /usr/bin/gnome-software --gapplication-service 100% CPU consumption

I think you need to look into the file /var/log/kern.log its about the internals.

I have had one VM log some errors there, I snapshotted my VM and redeployed it the errors never happened again.

You may have a faulty core or overheating CPU, just my best guess.


Add a Dash / Lens to Gnome Flashback (14.04)

Unity != GNOME Flashback.

You can try to use Alt+F2 to open run dialog. It will allow you to launch firefox by typing name and hitting enter.


Lock screen wallpaper option on ubuntu 20.04 LTS is not available?

You can have a lock screen wallpaper as you wish with this extension.

 Lock screen background


Acroread can't edit annotations: Commenting Not Allowed

I've found any of the following work well:

Installing the windows version of foxit (another pdf reader) with wine, as mentioned here, worked without issue. No irrational "Commenting Not Allowed" nonsense. Upon saving, i can see the updates with the linux acroread straight away.
Install VirtualBox (or another emulator), windows, and the latest windows version of adobe reader. Though this is pretty heavy duty for a small task like commenting.


"cannot find -lmpi*" when compiling openmpi code

The steps you've tried affect the run time library search path. Assuming that you are using gcc, to set the compile time search path you need to use the compiler's -L flag

   -Ldir
       Add directory dir to the list of directories to be searched for -l.

So for example if you have installed the libraries into /usr/local/openmpi/lib, modify your gcc command line to

-L /usr/local/openmpi/lib -lmpi_usempi -lmpi_mpifh -lmpi


Hacking the Ubuntu 18 Dock to not group windows of the same application

You cannot do this. Changing the .desktop files and duplicating them in this manner doesn't actually change the application, so all the windows will still have the WMClass atom assigned the same.

You will instead need to use a different extension if you want ungrouped windows. If you want them on the launcher bar (dock as you call it), then you will most likely need to fork the extension and change the code in it to not group windows. There is also the Window list extension available, which when enabled will show a traditional task bar at the bottom of the screen. You might want to use it instead.

Alternatively, some applications may be able to take a --class argument to the executable, as a means to change the WMClass atom, which can be matched with StartupWMClass in the .desktop file, as suggested in this answer.


Dance pad not recognizing directional buttons (StepMania)

Try the HIDRAW utils. It solved my axis issue when pressing left+right and up+down simultaneously and was able to use two dance pads at the same time. Even though your problem is different (no axis buttons work) HIDRAW utils was supposed to help make axis inputs more readable by the computer.

Since you previously used Stepmania on 14.04 I assume you probably copied over your old version of Stepmania. A clean updated copy of Stepmania might yield different results.


My keyboard works fine but firefox won't let me type.

Uninstall iBus from the Ubuntu Software Center, and reboot.


Edit Nautilus' bookmarks.
Oops my bad. Edited to reflect 13.04's location

~/.config/gtk-3.0/bookmarks


You can find it in GNOME Menu System - Administration :

1.- GUI > find ..... synaptic package manager > file > history.

2.- in terminal /var/log/apt/history.log /var/log/dpkg.log


How to remove flickering green lines on screen?

This sounds very much like a failing connections on the display, rather than a problem with Ubuntu. If you want to make sure, try to replicate the problem when Ubuntu is not booted (e.g. in the BIOS screen).

this sort of thing

I don't suggest you open up your laptop, but repair at a local computer store will probably be reasonably cheap. If you can confirm the problem is related to the hardware, talk to a few local repair places to see if they can do anything about it. And just as a small tip: bring your computer, they'll have a much easier time figuring out what it is then.

I Hope I'm wrong (but I don't think I am).


Set LD_LIBRARY_PATH for applications started from the desktop

This seems like a bug in the application itself. It should have a wrapper script that correctly sets any needed LD_LIBRARY_PATH variables. Be careful when writing such a script, though, since you do not want to have any empty portion of the LD_LIBRARY_PATH string between the colons it uses as path separators. For example, this could result in a  bad path, if the variable was empty initially (resulting in a leading empty string before the colon):

LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/some/path/for/app"

So, when adding a path, you'll want to test for the empty string first. For example, using shell code:

LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}/some/path/for/app


Sharing torrents between Ubuntu and Windows

You could utilize the AutoAdd plugin (Deluge >= 1.3.4) which supports parsing a text file with a .magnet extension containing either a single or list of multiple magnet uris.


What happens if I disable the loopback device using ifconfig?

It is used by various local services which will fail when lo is down. Many local service make use of a Unix socket and of course those will continue to work. Those using a TCP socket, however...

Here is a picture of my firewall and we can see that there are quite a few packets going through....


Trouble with apt-get update and default repositories

SOLUTION: I ran sudo dpkg --remove-architecture armhf and that solved the problem. When I ran sudo apt-get update it no longer tried to get binary-armhf packages. I found this solution in this post.


Pipe symbol executes from left to right or right to left?

Pipe will execute the commands from left to right. So ls -l would be executed first.

command 1 | command 2

Ouput of first command is feded as input to the second command.

$ ls -l | grep "Aug" | sort +4n

ls -l command would be executed first. Then it's output is passed as input to the next command grep "Aug" after that the ouput of ls -l | grep "Aug" command is passed to the last command sort +4n as input.


A possible solution may be to install Ubuntu via USB.
There is a guide in the official page: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows

The software you need is Universal USB Installer and a 1GB at least, Flash Drive.
Then when you boot you have too choose your USB or change from bios the boot order settings. Also note that there is a button almost in every computer that at boot will popup  a list of bootable devices.


You can't install it because the current unity-webapps-preview package depends on Firefox 14 for some reason (even though it works just fine with 15 and newer) so you'll have to wait for an update to be able to install it.


See this part ...

F - Hardware Flow Control : Yes

Change it to "No" (or off ... whatever) and restart minicom.


How to solve "256966901 Bluetooth: hclo: unexpected event for opcode 0xfc2f" Message during Boot in Ubuntu 19.04?

I had the same issue after I upgraded to 20,04
Resolved it by:

Updated /etc/bluetooth/main.conf
AutoEnable=false \ previous setting was true

Stopped and disabled the service
systemctl stop bluetooth.service
systemctl disable bluetooth.service


Had the same problem with one of my older servers when I changed the graphics borad.

Your problem is almost certainly due to the graphics hardware. If you start your PC with the CD and it comes up fine then that confirms that the PC is OK but the graphics driver must be updated.

Restart the PC without the CD which will give you the dead screen. Cut the power and start again but be prepared to hit the down arrow key as soon as the boot options screen shows up. Choose the fail safe startup to get the PC up and runing with basic graphics.

Find the icon for additional hardware (look like a circuitboard) and update the graphics driver. You will probably have to accept a driver from the graphics board maker but at least its free.

Once updated you can restart and adjust the graphics resolution.

Don't give up.

PS. You will need an Internet connection for the update to run automatically. Ohterwise download the makers driver and install manually.


Network interface name mismatch when using vmbuilder

In searching through the log that vmbuilder created in /tmp, I found that it created /etc/network/interfaces using a template from /etc/vmbuilder/ubuntu/interfaces.tmpl which blindly uses eth0 (or dhcp if that was selected instead of an IP).

This appears to be a bug.


How do I install the original gnome-control-center?

You could try to convert the *.rpm (from Fedora) to a *.deb (which Ubuntu can handle) with Alien.

Herefor you

download the rpm from the Fedora Package Database
install Alien with sudo apt-get install alien
convert and install the file with alien -i filename.rpm

Source: http://www.howtoforge.com/converting_rpm_to_deb_with_alien


Boot into recovery mode and nano /etc/X11/xorg.conf then locate the Device section and find the line Driver and set it to "vesa"

Save it and reboot. That should handle most video cards out there and allow you to get your drivers set up.

Good luck!


Screen flickering after enabled Nvidia Graphics on Ubuntu 15.04

There seems to be a fundamental problem with synchronization of the Intel and Nvidia video components in (certain?) laptops.  See https://askubuntu.com/questions/tagged/tearing  for many proposed solution to the issue.
  Also, the xorg-edgers ppa has an alternative, sudo add-apt-repository ppa:graphics-drivers/ppa  which should be the latest drivers.


GRUB 2 is designed to be more intelligent than GRUB 1, meaning that you don't manually configure the menu anymore. Instead, GRUB now makes you solve the underlying issues that prevented it from detecting the OS, which can be a pain in the smurf.

Now, that said, there are several things that can prevent GRUB from detecting your XP drive. From my research, this usually indicates that there is something wrong with the partition itself. You should try and run chkdsk from windows or a windows repair disk. If those fail, please review the forum post below and see if you are having a similar issue. Most likely, Arch damaged a small boot partition that GRUB uses to detect the OS.

http://ubuntuforums.org/showthread.php?p=9826152

As always, back up everything prior to beginning these steps.

Good luck!
 Geary


You can edit the .svg file itself and colourise it. You may use vector graphics editor like Inkscape to do so. You can install Inkscape from the Software store or open Terminal and run

sudo apt install inkscape

Alternatively you can install the snap version from the Software store or by running

snap install inkscape

Once installed open the .svg file with Inkscape and colour the part you want.


The PATH is set up in /etc/environment file, but if you want to remove some items from it, better to do this in your ~/.bashrc file. So, if you want to remove /usr/games and /usr/local/games directories, set up again the PATH like this:

PATH="/home/blaine/.rvm/gems/ruby-2.0.0-p247/bin:/home/blaine/.rvm/gems/ruby-2.0.0-p247@global/bin:/home/blaine/.rvm/rubies/ruby-2.0.0-p247/bin:/home/blaine/.rvm/bin:/home/blaine/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"


Are There Any Conflicts Between Old And New GPG Versions?

The best way to upgrade gnupg is to upgrade or fresh install the next Long Term Support version of Ubuntu, which is Ubuntu 16.04. Ubuntu 16.04 comes with gnupg2 (new v2.x) installed by default instead of gnupg which is installed by default in Ubuntu 14.04. GnuPG 2.x is the new modularized version of GnuPG supporting OpenPGP and S/MIME.

If you upgrade to Ubuntu 18.04 when it is released, you will have almost the same gnupg2 version, 2.1.15 instead of 2.1.11.


Horrific state to be in. Can't install Ubuntu due to HDD issues? HELP!

How do I make my pc just simply install Linux without windows?

"Erase disk and install Ubuntu" is indeed the correct option and handles the automatic partitioning just fine, unless you have a specific idea how you'd like to partition your own disk.


Ubuntu frontier DSL internet not working?

As long as your router uses IPv4 or IPv6(99% of routers do), your problem isn't with the router. If you know what kind of network card you have, you can try to get Linux drivers for it by downloading them on a different computer onto a flash drive, then installing on your system. If you can tell me what kind of ethernet card you have(Or even the exact model number of your computer, as long as you didn't change the ethernet card), I can point you to a link to get the right files and give you info on how to install.


Strictly speaking, with ssh, you would do the same thing.

# ./start_gameserver.sh

And it would run. You could then ssh into the server multiple times and each would run in its own session.

The downside, of course, is that once your ssh session closes, your game server would likely be killed. And, it would be kind of cumbersome to run an ssh instance for each and every game server.

You can use tmux to run multiple interactive sessions over one ssh connection, plus resume those sessions between connections. You can split screens, run them in the background, and do other nifty stuff from ssh.


Forward my .onion address to a different folder than my normal website

I've found exactly what I was looking for in this tutorial:

http://www.liberiangeek.net/2014/09/run-multiple-websites-single-ubuntu-server-using-apache2/


You say your scp command "does not work"; can you give more information on that? I'm sure the command outputs something. Could you share that?
Anyway, your top command has a superfluous / in it. / is the character in Linux that is used as directory separator. So /home/mathieu/ would be "directory mathieu inside directory home". Files do not end with a /.
Instead of
sudo scp -r -p root@xx.xxx.xx.xx:/var/www/www-example-com/web/*.png/ /home/ubuntu/www-example-com/web/...
...try to write
sudo scp -r -p root@xx.xxx.xx.xx:/var/www/www-example-com/web/*.png /home/ubuntu/www-example-com/web/
(Notice the lack of / after *.png.)
On a sidenote: only prefix commands with sudo if you really need to run that command as super user. In this case, if your current user is owner of /home/ubuntu/www-example-com/web/, sudo is not needed. If you make a mistake in a command and used sudo, this might go horribly wrong. Ranging from "Oh well, I can live withouth that file anyway" to "Oh shoot - this is going to take a reinstall" or worse.
About the second question (on excluding a subdirectory), I have no fitting answer.


Software Center crashing already tried uninstalling and re-installing

I was going to say "sudo?" (but I think Software Center can sudo itself...)

But what's with this error

 SystemError: E:Opening /etc/apt/sources.list - ifstream::ifstream (13: Permission denied)

Is your /etc/apt/sources.list not readable or something? Did you do something to change your software sources? That might be the problem, unless Software Center is exiting for some other reason. Not really a "crash" is it, anything in dmesg or /var/log/syslog/?


What is a lightweight mail client with facility for calender?

Maybe Claws Mail would would work for you? Sylpheed was forked from Claws a while ago but Claws is still around and has many plugins such as vCalendar.
I also installed Claws to check it out and it's interface is very similar to Sylpheed and is also just as light (certainly much lighter than Tbird). It also auto-migrates your Sylpheed settings at install.

Claws Mail:

Sylpheed:


What is the "-" at the end of some files?

$ ls /etc/*-
/etc/group-    /etc/passwd-  /etc/subgid-
/etc/gshadow-  /etc/shadow-  /etc/subuid-

These are just backup files. For example /etc/passwd has its backup file with name /etc/passwd- and so on.

When programs like useradd, usermod etc. (who has to edit those files) edits them keep a backup copy with - appended at the end.

source


KeePassX Auto-Type in no longer operational

Modify the launcher keepassx.desktop in /usr/share/

Replace: Exec=keepasx %f

With: Exec=sh -c 'setxkbmap <keymap> && keepassx %f'

Where <keymap> is the keymap you use (fr, en-us, de, ..., etc.).


Show/Hide either top panel or NetworkManager Applet from command line

The network manager applet is not required for networking to work, at least when the connection is configured as a system connection (available for all users).

The applet is started at login for each user from /etc/xdg/autostart/nm-applet.desktop, but it only start successfully for the first user that login.

You can avoid to start the applet (removing the above file from autostart), and only start it when required, then kill it when done.


Incorrect key mappings in remote NX session

Well a quick google turned this up http://www.nomachine.com/tr/view.php?id=TR11F02131
Briefly, they advise updating. I see the same issues on 10.04, I think I am running version 1.3. I will probably update eventually


Conditional Formatting for Linked Cells. LibreOffice Calc

For example, start with this, where sheets are named "Sheet1" and "Sheet2":

Then in conditional formatting, choose Formula is.  Use SEARCH and FORMULA:

SEARCH("Sheet", FORMULA(A1))

Giving this result:


How can I create an image of my Ubuntu 12.10 to install on another device?

You can create a customised Live CD with this guide. As it said Ubuntu Customization Kit is an easier way to customise the Live CD.

If you really want to create a Live CD from what you are using, you can follow this guide.


You’ll want to enable “Wobbly windows” plugin in the CompizConfig Settings Manager. If you don’t have it installed, run sudo apt-get install compizconfig-settings-manager or search for it in the Software Center.

Warning: What are some of the issues with CCSM and why would I want to avoid it?


Ubuntu 20.04 - How To Copy MP3 Music To An Old Apple iPod Nano Device?

Banshee used to be a good option to sync mp3 files to ipods. In my opinion it was the best Linux app to sync iPods because it was the only player that copied compilation albums exactly the way I like it. It seems however that Banshee is no longer available for Ubuntu 20.04. Other programs that you can use to copy files to the iPod are Rhytmbox, Strawberry and Amarok. These are all music players. Rhytmbox is the default music player and at least Strawberry is available in the Ubuntu Software store and is still maintained. Another option could be installing iTunes with Wine but I never managed to get that working. People say it is possible though.
Another application that you can use is gtkpod. This application is just for copying music to iPods and editing metadata.


How to set previous kernel as default in GRUB (Grub customizer)

Im not familiar with that program but if I want my computer to boot to a different kernel I just manually edit the grub file located at:

/etc/default/grub

Look for

GRUB_DEFAULT=0 (or whatever your default is set too)

Change that line to the kernel you want loaded ... looking at your list there it looks like 0 would be the standard 4.4.8 and 3 would be the standard 4.4.0

Once you have selected the one you want save the file (you will have to edit the file in root) and then use the command:

sudo update-grub

now when you reboot it should default to which ever kernel you have it set too. When you do update-grub it should print out a list of kernels found ... just verify that you chose the right one .. not sure if I was misreading the list that program shows .. but just be aware that the numbers do start at 0 so the first entry it prints is 0 not 1


No Internet connection in Firefox, must end process and restart

What add-ons are you using? HTTPS-Everywhere by any chance? It seems to be causing those problems.


I found the problem.  The file /etc/apparmor.d/tunables/proc was missing, so I copied it from my backup and now it works.


My storage controller configuration on the hosts were the issue. During initial commissioning MAAS took the wrong disk as the boot disk. Changing the boot device in the storage configuration of each host resolved the issue.


Really I don't know why ifdown doesn't work with crontab.

Anyway, I faced the same situation a long time ago and have a workaround solution, hope this will help you.

Replace

ifdown eth1

with

/sbin/ifconfig eth1 down 1> /dev/null

This worked for me.


How can I find the PID for software where the name of the software is different from the executable?

If you run a command from terminal then the command will always show up in the process table being a process.

Your case is different as you have run a Desktop entry (declared in a .desktop file), whose name and the command it executes can be totally different.

The .desktop files use an INI format to express metadata.

Here is the Desktop entry for htop:

[Desktop Entry]
Version=1.0
Name=Htop
Type=Application
Comment=Show System Processes
Terminal=true
Exec=htop
Icon=htop
Categories=ConsoleOnly;System;
GenericName=Process Viewer

In you case, the Name is Videos and the Exec line will indicate the actual command executed.

You should track down the .desktop file and check the entry to get the command actually being executed.

So lets find the .desktop file that contains Name=Videos:

% grep -RH '^Name=Videos$' ~/.local/share/applications /usr/share/applications
/usr/share/applications/totem.desktop:Name=Videos

Got it !!

It's declared in /usr/share/applications/totem.desktop.

Now let's check what command it actually runs:

% cat /usr/share/applications/totem.desktop
[Desktop Entry]
Name=Videos
Comment=Play movies
Keywords=Video;Movie;Film;Clip;Series;Player;DVD;TV;Disc;
Exec=totem %U
Icon=totem
Terminal=false
Type=Application
.
.
<truncated>

As you can see, the Exec key says totem %U. %U indicates a list of URIs.

Now, if you do:

pgrep totem

you would get the PID of the totem instance.


When I boot I just get this: error file ‘/boot/initrd.img-5.4.0-48-generic’ not found

Don’t now why I didn’t think of this before, but I could just use timeshift to restore my system! Yay! All fixed now!


How can I disable my internet connection from terminal?

The following command works for me like a charm if I want to disable any internet connection from terminal:

nmcli nm enable false

To enable it again:

nmcli nm enable true

NOTE: As commented by CPBL, this no longer works in Ubuntu 15.04 and later. Instead use nmcli networking off and nmcli networking on.

Another way very close to your quest is to use:

nmcli dev disconnect iface eth0

To enable eth0 again you need to type:

nmcli -p con up id "<connection name>" iface eth0

Example for connection named "Wired connection 1":

nmcli -p con up id "Wired connection 1" iface eth0

Change eth0 to your wired interface name. This will prevent any further connections without user/manual intervention as man nmci says:

disconnect iface <iface> [--nowait] [--timeout <timeout>]
           Disconnect a device and prevent the device from automatically
           activating further connections without user/manual intervention.

           Available options are:
                --nowait     – exit immediately without waiting for
                command completion

                --timeout    – how long to wait for command completion
                (default is 10 s)

Please read man nmcli for more info.


Is it ok to manually update a ufw profile?

From ArchLinux Wiki:

  Warning: If users modify any of the PKG provided rule sets, these will
  be overwritten the first time the ufw package is updated. This is why
  custom app definitions need to reside in a non-PKG file as recommended
  above!

I could not find similar statement within Ubuntu documentation. The only thing, connected with this topic, that I found there is in the article Firewall:

  Applications that open ports can include an ufw profile, which details
  the ports needed for the application to function properly. The
  profiles are kept in /etc/ufw/applications.d, and can be edited if
  the default ports have been changed.

To be sure your edits will not be overwritten, you can create your own application profile file, for example:

sudo cp /etc/ufw/applications.d/openssh-server /etc/ufw/applications.d/openssh-server-custom

Then modify /etc/ufw/applications.d/openssh-server-custom in this way:

[CustomSSH]
title=Secure shell server, an rshd replacement
description=OpenSSH is a free implementation of the Secure Shell protocol.
ports=4444/tcp

After that you will be able to create rules as this:

sudo ufw limit CustomSSH

The main advantage of profile usage is that you can change the application's port and just reload UFW's configuration without need to delete rules and type new ones. If you don't intend to do that often, then you can type a rule for the custom port and leave a comment to be clear what is the rule's purpose:

sudo ufw limit 4444/tcp comment 'SSH Custom port'


apt-get purge nvidia-prime

that solved the problem for me. Then I registered bumblebee ppa and manually install bumblebee instead.


Errors were encountered while processing: linux-image-3.13.0-24-generic

Try

  sudo apt-get -f upgrade

That option tries to fix the dependencies problems.

If it does not succeed, I would recommend to install the more recent 16.04 LTS version, with 5 year support, un less you have vey good reasons to stick to 14.04.


I cannot enter my password when using sudo to install Sophos AV for Linux

When entering your password when using sudo, nothing is printed to the terminal. This is for security so people behind you aren't able to see the length of your password. So try again, enter your password (even though it looks like nothing is happening) then hit enter. It should run the install script.


Unable to launch glade 3.18 which I compiled from source

So why am I getting this error?

You need libgladeui-2.so.6 (and probably other libraries) in order to run glade;

Quickly searching for libgladeui-2.so.6 using apt-file shows that it's contained in the package libgladeui-2-6:

% apt-file search libgladeui-2.so.6
libgladeui-2-6: /usr/lib/libgladeui-2.so.6
libgladeui-2-6: /usr/lib/libgladeui-2.so.6.1.3

However even installing the package you'll keep getting that error for each missing library until all the dependencies are fully satisfied, since you didn't install any dependency;

The quickest solution would be to install the dependencies for the version in the repositories:

sudo apt-get build-dep glade

And in 99% of the cases that will make the manually compiled version run immediately afterwards;

However bear in mind that using build-dep:

If the manually compiled version requires additional libraries, you'll have to install them manually (this might require compiling them in case they're not in the repositories);
If the version in the repositories requires additional libraries, additional libraries will be installed;
If the manually compiled version requires an updated version of some libraries, you'll have to update them manually (this will require compiling them).


To pull off that sort of trickery it really needs to be rendering on 1 video card, and then cutting that video apart and sending it to different monitors.  The game would be running similiar to 5760x780 with 1280x780 of that being sent to the 3 different video displays.
ATI Doesn't actually give any details about eyefinity.  So it's hard to say if it supports linux, or if it even supports openGL.

Set up:
( ask ubuntu wont let me post more than 2 links, look on amd for eyefinity then find set up link )

Faq:
http://www.amd.com/us/products/technologies/amd-eyefinity-technology/how-to/Pages/faqs.aspx

I just read through their stuff (I'd kind of like this too)  linux isn't supported by eyefinity yet.  Windows XP isn't supported, just windows 7
Check out Xinerama
Wiki about: ( can't post more than 2 links - wikipedia xinerama basically )
Ubuntu Xinerama page: https://help.ubuntu.com/community/XineramaHowTo

I'd say give Xinerama a go, but apparently the performance is horrible.  Which is .. really not surprising, considering what has to be done to get an image that has been rendered to 1 surface, split into two and sent to different screens.  (The good news is that the performance penalty should be linear, and shouldn't scale with what you're doing, surfing the web or playing a game, the bad news is the penalty is probably pretty significant which means you loose a bunch of milliseconds off your render time which would mean you have to run the game in lower settings to get a good frame rate. )

Hopefully that helps your purchase decision, which should probably be: neither nvidia's surround system or ATI's eyefinity have linux support yet.  Both have win7 support, the eyefinity has win vista support.  So if you're dual booting - go for it.  Just make sure you get a card that's in ATI's faq supported hardware list with enough output ports for your needs.  Send ATI an email asking if you need the two cards or not, looking at their set up guide, seems so.


Get Chat (Empathy) to pop up when people are talking to me

Edit ➜ Preferences ➜ General ➜ Behavior ➜ Uncheck Display incoming events in notification area.

The Messaging Menu indicator will no longer change color/brightness when you someone tries to talk to you, but that shouldn't be needed because the window will open automatically.


Inbox not showing up in Thunderbird on Ubuntu 11.10

The only solution I found was to delete ~/.thunderbird


I would say a few things.

First, I need to caution you against using the command su -- it is a bad practice that can only cause problems.  When you need administrative privileges, you should prefix your normal commands with sudo.  If you really need a root prompt, you can use sudo -i.

Now I took a look at the x2go wiki page and they didn't intend for you to blindly add that line to the bottom of /etc/apt/sources.list.  If you're not too familiar with how Ubuntu handles packaging, you should spend some time on it.  Luckily, you don't really need to be doing any of this from the command line because Ubuntu provides a graphical way to ensure that you don't drop syntax errors in your sources.list or elsewhere.

In order to use the built-in tools for enabling or disabling certain repositories, try this link.  This will save you from syntax errors and from messing with system-critical files inadvertently.

Secondly, as soon as you modify any of your ubuntu repositories, you should run:

$ sudo apt-get update

As this will refresh your package information.  After you run that, you should run

$ sudo apt-get upgrade
$ sudo apt-get -f install
$ sudo apt-get clean
$ sudo apt-get autoclean

This will clean up your repository caches. Now try adding the PPA again, this time using sudo:

$ sudo add-apt-repository ppa:x2go/stable

If it still doesn't work, you'll need to re-run the command using the -m flag and show us the output:

$ sudo add-apt-repository -m ppa:x2go/stable

Hope this helps!


Desktop shows a white or black background instead of wallpapers

I tried this and it worked!

gsettings set org.gnome.settings-daemon.plugins.background active true


Unable to install VeraCrypt - (k)ubuntu 17.10

I found the answer to the problem, while digging through the Discussions section of the veracrypt.codeplex.com page.

Thread with answer.

Short version: Install XTerm. VC setup need to open it.

The answer itself:

  Thought I'd have another look, and I've figured it out. There's two solutions:

  1) The Veracrypt installer tries to display an xterm window at the end showing file paths, followed by "press enter to exit". However, this is not installed by default in KDE Neon (unlike Kubuntu, etc). So just install xterm:

$ sudo apt-get install xterm

  Alternatively:

  2) pkexec env XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR /home//Downloads/veracrypt-1.19-setup-gui-x64

  The latter installs Veracrypt without the pop up windows, and just uses text in the terminal.

  Hope it helps someone else.

  Posted by Nickk9, Dec 22, 2016 at 3:33 PM

Thank you, Nickk9! <3


Most changes between different Ubuntu release versions are not very interesting to an average user. The newer version would usually include the latest software version available at the time of its development.

These include the kernel, various tool chains and many of the desktop applications. The newer versions of the software have lots of benefits, including

newer features
better performance and
various bug fixes.

While these might be non-obvious to users who are not overly interested in the development of Ubuntu, they are very much helpful in making the newer version better in every way possible.

If you are interested in all the technical and non-technical changes in 12.04 and 12.10, you can take a look at the release notes of both the versions:

Release Notes - 12.04
Release Notes - 12.10

The release notes lists all the major improvements of crucial components that is good to know for the end user.


I found that Google Docs are now pretty awesome with .doc editing. Google doesn't convert file to their format but actually edits original one. You do it with browser on any computer / mobile. They are working hard on it to support M$ Office formats on Chromebooks.
Just add your Word document to Google Drive and double click on it.


Ubuntu 16.04 LTS - `apt update` stuck at `0% [Waiting for headers]`

If it doesn't work for a while and then it starts working with no changes by you, that generally happens because either the download server or the network between you and the download server was down or having issues.

You can switch servers from the command line by using any of the answers to "How do I change mirrors in Ubuntu Server from regional to main?".

You can alternatively set up a mirror of all the repositories on your local network if your management is OK with that. This requires downloading and storing on disk every package in the repositories and redownloading each whenever it changes.

At the cost of all that bandwidth and disk space, this will allow you to set everyone's repository server to a server on your local network, which will be both fast-to-access and updated fairly well.

You can probably have IT punch a hole in the firewall for this only during hours when the office is closed so that this doesn't use bandwidth during working hours.


Is it possible that Leap Motion Controller will work with Ubuntu?

At this time, our focus is on Windows and OS X, with Linux being on our agenda.
  leapmotion_mist

It seems it is on their agenda, but is not in production yet. There most likely will be a hacked version of support before the official support comes out.  There was also some talk about using an Anduro to capture the signals and use that as a go-between.

Hope this helps.


If I import bookmarks from Firefox and Chrome, from Windows to Ubuntu, will browser viruses be transferred also?

Importing your bookmarks will have no adverse affect on your Ubuntu browsers. They're not what contains the malicious code that's affecting your Windows system (the code is embedded in the Windows registry).


Windows installer for Ubuntu not available anymore?

No, windows 8 is not supported by WUBI. It is normally shipped inside the ubuntu ISO, and if one copies the wubi.exe out of the CD, you can use it for wubi based installation. Read the post from one of the Developers.


How do I set up a folder so that anything created in it inherits permissions?

Another approach is to use Access Control Lists, a superset of file permissions.

First of all, we have to install the acl  package:

sudo apt-get install acl

Before Ubuntu 14.04, the partition has to be mounted with the option acl for the following to work. It could be added in /etc/fstab, as in

UUID=<XXXX>  /media/shared  ext4  noatime,acl  0  2

or for an already mounted filesystem

sudo mount -o remount,acl /media/shared

Next, you should create a new group, to which all users allowed to access the share in read/write mode will be added. I call it usershare. An already existing group could be used.

sudo addgroup usershare

Now we add the users enzotib and steevc to that group:

sudo gpasswd -a steevc  usershare
sudo gpasswd -a enzotib usershare

(effective at the next login).

Then we add an ACL with rwx permissions for the group usershare to all files already in /media/shared

sudo setfacl -Rm g:usershare:rwX /media/shared

Finally we add a default ACL with rwx permissions for the group usershare for all files created from now on inside /media/shared

sudo setfacl -d -Rm g:usershare:rwX /media/shared

Now all users of the usershare group have full permissions on all files under /media/shared. Permissions of each user on his and other's home directories are not affected.

I tested this solution and seems to work, but suggestions and corrections are welcome.

Remark: new files and directories created in the considered directory will have write permission for the usershare group, but files copied or moved in the folder will retain their original permissions. If the user, as I understand, only require write access to newly created directories, this is not a problem. Otherwise it should modify permissions by hand. See this answer on how to overcome this by defining the umask of users to 002.


help me set up drivers to my Epson printer

You need to install Epson driver from a deb file from Epson site.

You will get an error message regarding lsb.

Then run sudo apt-get install -f and all will be resolved if you are connected to internet.


ZGREP - Searching multiple, precise files

Yes, you can specify the particular file names on the command-line, separated by a space, after all the required command switches have been given, but before you pipe the results to less in your case.

As an example, you could use the command below. The -i switch is used so that case is ignored (both upper and lower case results are returned) and -E is invoked so that extended regular expressions can be used:

zgrep -E -i 'gtk|layout' myfile1.gz myfile2.txt.gz myfile3.Z | less

As you know, you can use * instead of a filename to select all files in that folder so that grep searches through those. In addition, you could also use the --include=regex and --exclude=regex switches to target certain groups of file names, as is explained in this article here.

If you have a look at /bin/zgrep (run cat /bin/zgrep), it is actually just a wrapper script, and all the normal grep command switches are valid when it is invoked. As is noted in the zgrep manpage,

  Zgrep  invokes grep on compressed or gzipped files.  All options specified are passed directly to grep.  If no file is specified, then the standard input is decompressed if necessary and fed to grep.  Otherwise the given files  are uncompressed if necessary and fed to grep.

For more information, see man zgrep, man grep and the respective Ubuntu manpages online.


do-release-upgrade stopped, and couldn't re-run

Try running sudo dpkg --configure -a to clean up partially installed stuff, followed by apt-get update then apt-get upgrade.