Quick way to temporarily disable notifications in Plasma/KDE/Kubuntu?

I'd like to be able to quickly disable and re-enable notifications in
  the KDE Plasma desktop (Kubuntu 19.04)

I don't know if this is quick enough but ...

Kubuntu 18.10+ has kubuntu-notification-helper:

  Kubuntu Notification Helper is a daemon that presents various
  notifications to the user. It uses the KDE Daemon system as a base and
  presents the notifications using the KDE Notification system. It also
  includes a System Settings module for configuring the daemon. Kubuntu
  Notification Helper is lightweight and fully integrated with KDE.

  Current features include:
    - Notifications for Apport crashes.
    - Notifications for upgrade information, when available.
    - Notifications for the availability restrictively-licensed packages.
    - Notifications for when upgrades require a reboot to complete.
    - All notifications can be hidden temporarily or permanently.

You can access this GUI via a terminal by running

kcmshell5 kcm_notificationhelper

The image below is from Kubuntu 19.04 with Plasma 5.16.2 (which is provided by the kubuntu-backports ppa.)

GUI for managing certain notifications

Alternatively, open System Settings and search for "Other notifications" to get the same GUI.


how to install ubuntu from USB before the existing OS is booting

On my computer sign ACER, and before booting OS you should press F12.
Then you will say Boot menu - choose Hardware and then FLASDISK.

But it dont have to work also on your pc.


Try this:

sudo dpkg --configure -a  # this will configure packages if needed
sudo apt-get install -f   # fix widespread packages errors

You may have to repeat these lines according to terminal's output. When it suggests you command, you should try that suggestion. And after you get rid of problems with packages, you should write this to install Wine:

sudo apt-get update       # update packages lists
sudo apt-get install wine # install wine


it ended up being a permission issue. so a

sudo chmod 0777 -R /var/lib/plexmediaserver
sudo chown plex:plex -R /var/lib/plexmediaserver
sudo service plexmediaserver restart

solved the issue

It appears as well that the sudo apt-get remove --purge plexmediaserver does not clean all things.


How to access or connect a desktop GUI on a remote Ubuntu 18 server?

On the VPS install

sudo apt update
sudo apt install tightvncserver

you will be asked to set a password which you will need later. Then start the server with the command

tightvncserver

and you should see something like

New 'X' desktop is (vps-name):1

(vps-name) is the name of your machine, important is the session number after the colon.

Now on mac download a free vnc viewer, I have tested Remote Desktop - VNC which is free on the App store and is pretty decent.
Ok now you need to execute this on your mac Terminal

ssh -L 5901:localhost:5901 -N -v user@vps-address

user - your user for the ssh
vps-address - the address or ip of the vps

The number after the colon earlier is what you put after 590 which is 1. If it where 2 then would be 5902:localhost:5902.
Now start your vnc viewer and type into the address field, remember the number after the colon,

localhost:5901 or localhost:5902

and then you should be asked for the password you setup on the tightvncserver earlier.
This is an encrypted connection through ssh to your VPS. When you are done just close the viewer and kill the ssh connection in the Terminal (ctrl-c).


Stop Boinc from auto-start on system boot

I have found the solution to my problem. It's like that old saying: "If you want something done, do it yourself"

sudo update-rc.d -f /etc/init.d/boinc-client remove

This tells the system not to start the BOINC client at boot time.

In short, this is the init script for BOINC:

/etc/init.d/boinc-client

The solution wasn't hard to find, it's actually on their wiki page: Stop_or_start_BOINC_daemon_after_boot


Why doesn't gir1.2-vips-8.0 contain Vips.Image.grey?

Because the grey is not a direct dependency of libvips or libvips42 which is in turn a dependency package gir1.2-vips-8.0.
On the other hand, if you install it via pip in an venv it is being pulled by python as a dependency.


What is wrong with my rsync backup sh script?

Be super-explicit with paths when using cron (or anything where you don't know what environment it's going to be executed from). Use the full path for backup.txt.

And the second error could be related to that or it might be blowing up on the curly brackets you've got in --exclude={/home/rob}. No idea what you're trying to do there. Just use quotes.


USB's storage capacity reduced to 2 MB from 16 GB

Since there is no working answer yet, I post this:

The problem is that the remaining space of your USB flash disk has become unallocated. To repair it, use diskpart (in windows):

Open command line (cmd) and type diskpart. Allow the windows to run it.
type list disk, and find the number of your USB flash disk.
type select disk X, and type the number of the USB disk instead of X.It should say that disk X is now selected.
type clean.
type create partition primary.

Now you should be able to use the flash disk as before. (You have to format it first)


Can't install Ubuntu on new Skylake ultrabook? (Thinkpad Yoga 260)

There is an issue with Skylake processors and Intel pstate drivers in the Linux kernel that hangs the boot process, usually on the message "Intel_pstate: HWP enabled".

If you add "intel_pstate=no_hwp" to the GRUB boot parameters it should work. (Instructions: https://wiki.ubuntu.com/Kernel/KernelBootParameters)

However, this disables the more efficient frequency scaling capability (= longer battery times) in Skylake, so hopefully it will be solved soon.

The issue is being worked on here:
https://bugzilla.kernel.org/show_bug.cgi?id=110941


Google Chrome full screen video uses 1/4 of the screen

Step 1
Click Right Mouse Button on Chrome title bar in the top and check
☑ Use system title bar and borders
Step 2 (optional)
You can then then remove the title once again by deselecting Show window Titles. Works perfectly on Pop OS 20.04.


Gnome keyring 11% cpu when opening chrome

Since there was no help i have decided to create alternative script to launch by

mv /usr/bin/google-chrome /usr/bin/google-chrome-orig

nano google-chrome

with content

google-chrome --password-store=basic

then i made it executable

so now chrome starts with this command anytime anywhere, not just only by clicking on shortcut


modprobe -r usb-storage

will remove the usb-storage module and thus disable every usb storage device on the system.

To disable usb storage devices permanently, blacklist the module with

echo "blacklist usb-storage" | sudo tee -a /etc/modprobe.d/blacklist.conf

(see here)


Open Rhythmbox Music Player and import all your Music files. From the Rhythmbox menu select File -> Add Music -> Select a location containing music to add to your library (This should be set to your Music folder.) -> click the Import listed tracks button.
Wait for a few minutes for Rhythmbox to import all the songs in your Music folder. How long it takes to import all the songs in your Music folder into Rhythmbox depends on how many songs there are in your Music folder.
In the Rhythmbox search box, search for a genre that you want to remove (for example, Pop). This will populate the big central pane in Rhythmbox with all the songs that have this metadata tag. Warning: This search will also populate the central pane with all of the songs that have metadata tags that contain the string pop, such as Pop/Rock and BritPop, as well as songs that have the string pop in their names! So you can't delete them all. You have to be selective and only delete the songs that have Pop as their genre in the Genre column.
Select all the songs that you want to delete from your ~/Music folder. This is the tricky part! In order to not delete songs that have the string pop in their names, which you don't want to do!!, you have to go down in the Genre column and individually remove only those songs which have Pop listed as the Genre in the Genre column of Rhythmbox. And don't delete the songs that have other metadata tags that contain the string pop, such as Pop/Rock and BritPop, in case you  want to keep these songs, and only delete the songs that have the Pop metadata tag.
Right-click on the song(s) that you selected for deletion, and from the popup context menu select Move to Trash.
That's it. This method works very fast, so I strongly advise you to get familiar with how it works by testing it on a few individual songs that you backed up first, so that you don't accidentally send any songs that you want to keep to the Trash.


Your system is unable to reach the snap store

This microsoft WSL issue completely made it work for me.  Essentially it boiled down to:

Abort the do-release-upgrade script
Re-launch Ubuntu
Remove lxd with: sudo dpkg --force depends -P lxd; sudo dpkg --force depends -P lxd-client
Finish with sudo apt upgrade


How do I undo the changes that oracle-java8-set-default makes?

Go to /etc/profile.d and you will see jdk.csh and jdk.sh. They are added by oracle-java8-set-default.


Reconfigure system (network) during boot based on HyperV information

I have continued to beat on this and have it working, though it is not pretty.

I put in a if-pre-up.d script, and took OUT the eth0 device from /etc/interfaces (which is the device I want to configure).

Then when this fires (which may be multiple times), I manually configure eth0 with ip command lines (e.g. ip addr, ip route, etc.).  I also wrote the /etc/resolvconf file for dns servers.

I added a line at the beginning which notices if eth0 is already configured and exits, so if it runs multiple times I only do the work once.  Doing command line configuration and leaving eth0 out of /etc/interfaces keeps it from conflicting with the normal configuration of eth0.

It's ugly, but I was unable to find an appropriate point in upstart between the local filesystem being configured, but before the network configuration started.  At least in theory I could change the associated /etc/init files so I could insert such a step, but that seems fragile, especially during updates.

The result is a self configuring guest that can run in Hyper-V, look at its host name, and configure itself - IP addresses, other startup/config files, etc.  In this way I can clone one copy to many, and get all sorts of different setups driven by a simple script.

This works... but I would sure welcome a better answer.


What is the difference between Filesystem and "Extended Partition" in Disks?

An Extended Partition is an artifact of MBR 'legacy' disk partitioning, as the MBR system only allows a maximum of four (4) partitions. To have more than four partitions, an Extended Partition is used to hold multiple Logical Partitions.

This was obsoleted by the GPT Partition Table, which removed the cap of four (4) partitions on a disk, but there are still plenty of folks out there with the MBR 'legacy' partition tables, as Windows 7 and earlier versions of Windows defaulted to the MBR 'legacy' partition tables. I suspect that's what I see in your picture above.

BTW, Partition 1 of that drive is a Windows Recovery Partition. It is a Primary Partition, just like the NTFS partition (Partition 2).

For more on filesystems, see this article.


How can I get rid of Activities in Ubuntu?

I take it you are using GNOME then.It's pretty simple to optimize GNOME for Desktop usage.First go to their extensions site which is https://extensions.gnome.org

In there download and install the following:

Applications Menu
Dash to dock
User Themes
AlternateTab
Caffeine

After installing all those extensions you should be able to use GNOME efficiently.


Copy a subset of folders while preserving directory tree

I managed to find a solution myself. I am completely sure this is NOT the easiest way to do it, but it worked.
I tried various solutions with regular expressions, but couldn't get them to work. So I ended up adding --include='' and --exclude='' for all the folders that were present in the directory.

rsync -avz --include='Gait1/' --include='Gait2/' --exclude='shot_00*'  --exclude='1.*' --exclude='3.*' /Qarc/Svendborg\ \FU1/ /home/steen/recordings/Svendborg\ \FU1/


Cannot boot into rEFIt (to choose Ubuntu) on Mac after Yosemite upgrade

Did you reinstall rEFIt manually?

If you didn't, try running this on the OSX Terminal

cd /efi/refit
./enable.sh

When prompted for your password, use the one Yosemite asks you for while trying to install new software.

After that, you should see the boot menu after you restart. When you choose to load Ubuntu from the boot menu, you may be greeted by the grub rescue> terminal" instead of a normal boot, let me know.

By the way, you can also press the option key (alt) just after you hit the power button, and there you'll see some options, including rEFIt. This has the drawback that it must be done on every boot, hence the preference for the terminal solution.


How to move a starter from the Launcher to the "System Settings" window?

Add the starter to "System Settings":

Press Alt+F2 and run gksu gedit /usr/share/applications/computer-janitor-gtk.desktop, enter your root password when asked.

Add X-GNOME-Settings-Panel;X-GNOME-SystemSettings; to the line "Categories=System;Settings;PackageManager;GTK;".

Add the new line X-GNOME-Settings-Panel=computer-janitor-gtk to the end of the file, save and close.

Remove the icon from the Launcher via rightclick → Remove from Launcher.

And you get:

Launchers of applications are stored in ~/.local/share/applications or in /usr/share/applications/ (which to edit you have to open with gksu nautilus - but don't mess up your system!). Note: When an application becames updated, often the .desktop file becames updated, too (in /usr/..., not in ~/.local/...)

More info about Launchers you find in the Community Help Wiki.


Orange livebox and ubuntu port forwarding

I do not know your router type but if you want to view your files from everywhere you have to meet following requirements:

Your router must support NAT. If you want to view your files from everywhere you have to reroute all incoming requests (usually on port 80) from the Internet to your server. I have these setting accessible in my router's web management.
You have to have public IP. If you want to always have the same address where you can see all your files, then you have to have public IP address. This basically means that the IP address assigned to you by your ISP is always the same.

But if you want to view your files only inside you local area network you can just enter local IP address of your server to another computer's browser window


This is most common problem appear when installing updates or installing new linux distribution. And it is due to "linux-kernel-generic" this package, and in this package there are many installed kernel drivers and the latest one which makes crush in my laptop "linux-modules-extra-4.15.0-72-generic".So the only thing you have to do is installing previous versions of this driver.

To remove;

  &sudo apt remove linux-modules-extra-4.15.0-72-generic

then the previous version worked for me is; "linux-modules-extra-4.15.0-1007-oracle"

to install it;

  $sudo apt install linux-modules-extra-4.15.0-1007-oracle

WARNING; Removing the package and not replacing it results the network not working.


make an usb stick bootable and now cant remove the data

Format the USB drive FAT32

You can use gparted or gnome disks (disks) to get the job done. Everything in the USB will be gone for ever. But, that is okay, as you don't want to return the borrowed USB with a Live Lubuntu bootable system. You want to return it empty and clean.

Explanation

When you created the installation Live Ubuntu USB using the Startup Disk Creator that app did not just copy the contents of the ISO file into the USB. It used the internal command dd to clone the file system inside the ISO file. This file system is called ISO 9660. It was meant to be for DVDs and CDs. Since DVDs and CDs are read-only disks, the ISO 9660 is a read-only file system. This is why you cannot delete the folders and files inside the Live USB. Creating the Live USB in effect formatted the USB from FAT32 to ISO-9660.

By the way, when you created the Live USB using the Startup Disk Creator everything that existed in the USB was deleted for ever. So, if your friend who lent you the USB had some files in it, those are long gone. Therefore there is no harm in formatting the USB again to FAT32. In fact that is the only way to return it to its previous state.

Hope this helps


Is this the current repositories for Precise?

When you are unsure which are the right repos, I recommend you to generate a new list.

Go to this website and choose your country and language and with repos you want. If you don't know what they mean you can read the description of every repo there.

After generating the list, copy the whole output into your /etc/sources.list, BUT make a backup of the original one first.

Then you habe to run sudo apt-get update to renew the package list.


Ubuntu 18.04 LTS and PHP 7.2 Security Support EOL?

The Ubuntu Security Team will continue to patch high-priority security vulnerabilities in the Ubuntu 18.04 -main repository pocket until 2028.

The php package in Ubuntu 18.04 is in the -main pocket, so it's covered.
18.04 community support ends in 2023.
ESM (2023-2028) is security ONLY. No community technical support.

They won't patch ALL reported vulnerabilities; they prioritize.
They won't patch packages in -universe or -multiverse.
Security patches won't protect any non-Ubuntu versions that you install.


Ubuntu raid configuration lost after reboot

I have the exact same issue, trying to partition/format two 2TB RAID0 disks.
I'm running hardware raid set in bios because I've read it's faster than software raid and doesn't load the CPU as software raid does.

I installed GParted and with that I could make a partition and format the RAID disks.


If you want to see the the permission of a file you can use ls -l /path/to/file command.

For example

   ls -l acroread
   -rwxr-xr-x 1 10490 floppy 17242 May  8  2013 acroread

What does this mean ?

First - represents a regular file. It gives you a hint of the type of object it is.
It can have following values.

d (directory)
c (character device)
l (symlink)
p (named pipe)
s (socket)
b (block device)
D (door)
-  (regular file)

  r represents read permission.
  w represents write permission and
  x represents executable permission.

First combination of rwx represents permission for the owner .
Second combination of rwx represents permission for the group .
Third combination of rwx represents permission for the other of the file.

Octal notation

Permission of file can also be represented in octal notation.
In octal notation

Read or r is represented by 4,
Write or w is represented by 2
Execute x is represented by 1.

Sum of these three is use to represent the permission.

stat command can be used to view file permission in octal notation

  stat -c "%a %n" /path/of/file

For example

   stat -c "%a %n" acroread
   755 acroread

Here you can see

For owner it is 4+2+1=7 (111 in binary)
For group it is 4+0+1=5 (101 in binary) and
For other it is 4+0+1=5 (101 in binary).


For a german keyboard layout, two are typically on the key to the left of backspace key, the circumflex accent is typically on the key to the right (or on some keyboards below) of escape key.

Now keep in mind that for them to actually work, you need a keyboard layout that has dead keys active (most germans for example use the 'nodeadkeys' layout as default, because we dont need those accents usually).

If you have a nodeadkeys layout active, those keys will immediately print without the chance to 'attach' to another character, if you dont have a nodeadkeys layout, the only way to print them alone (not attached to a character) is press the dead key followed by a whitespace.


It would quickly become a mess if that was not possible.

If you remove a package and other packages depend on it the system will remove those if you agree to it. Deleting a library that is in use by Unity will remove Unity BUT as long as you do not remove apt-get itself you can always re-install it with apt-get.

There is an extra package called deporphan that scans the system for libs that are no longer in use by any packages and that will remove those when you agree to it. I used it on several Ubuntu releases and it works like a charm.

Ubuntu tweak might be useful to you. It is sort of a command center around applications.


No network devices available on XPS 13 developer edition (no wifi)

The answer is clear. You updated the kernel and now unsigned 3rd party kernel modules, like btusb-iwlwifi-intel8260 can't load with Secure Boot enabled in BIOS.

The easiest solution is to disable it. In this case everything should work as before.

As I noted in comments, with new kernels you do not need 3rd party modules to use this wireless adapter. You can upgrade the kernel to 4.4.

But in this case you should remove ALL 3rd party dkms modules, and the system may need some manual setup.


Ubuntu 14.04 boot error on Windows 8.1 - SYSLINUX 4.07 EDD

I've installed Ubuntu on my laptop. YUMI might have been the problem. The USB is only seen when the laptop is in Legacy mode. When I boot from it, it gives me the Syslinux error. To fix this, I used Rufus and changed the partition scheme to GPT partition scheme for UEFI computer. This time, the USB can be seen in UEFI. Change the order so the USB boots first, and done. Ubuntu can now be installed.

I found the solution here: http://www.eightforums.com/tutorials/15458-uefi-bootable-usb-flash-drive-create-windows.html. But of course, instead of a Windows ISO, I used Ubuntu. :)


How to install specific nvidia driver like nvidia-driver-440_440.33.01.deb?

It looks like installing package manually will cause dependency issues and You might endup in breaking dependency tree.
I would suggest you to use official nvidia ubuntu ppa. It will install necessary dependencies automatically.
 sudo add-apt-repository ppa:graphics-drivers/ppa -y

 sudo apt update -y

 sudo apt install nvidia-driver-440 -y

If you are using docker image for your application,You can re-build docker image with particular version to align with driver version. You can add above commands in docker file and build docker image.


Internet not working even though connected

Sorry everyone, turns out I had a vpn killswitch active that I could not see. The vpn I use is a cli so there is no indicator when it gets triggered....


Unable to upgrade Ubuntu 14.04 LTS to Ubuntu 16.04 LTS

I just did an upgrade from 14.04 to 16.04 yesterday:

$ sudo apt-get update; sudo apt-get upgrade; sudo apt-get dist-upgrade; sudo update-manager -d

That should get you going... :)


How to rename a user with an eCryptfs encrypted home directory?

It's best to unmount your home directory and execute the commands from another administrator account on the computer. You could use ecryptfs-umount-private or just reboot to unmount the directory.
Change the login name and directory name from old_user to new_user:

sudo usermod -l new_user -m -d /home/new_user old_user

Here comes the important part for the proper configuration:

There exists a file named /home/.ecryptfs/$USER/.ecryptfs/Private.mnt it usually contains the following: /home/$USER
The following symlinks exist in your home directory when eCryptfs is not mounted:

.ecryptfs -> /home/.ecryptfs/$USER/.ecryptfs
.Private ->  /home/.ecryptfs/$USER/.Private

Make sure that $USER in all these instances reflects the changes you intended to make, e.g. new_user. You can use nano to edit text files and ln -s to create new symlinks.

You should be able to login again. I just tried it on my own. If you cannot log in through the GUI try from the terminal and check again that everything is in place.


How to periodically back up a folder on change?

NB: I haven't tested this, because I do my backups differently. However I think that it will work.

Edit:

#! /bin/bash

newestfile=$(ls /backup/location -td | head -1)

budate=$(newestfile| cut -c10-19)
cdate=$(date --iso)

# Check if there is a backup done today
if [ $cdate = $budate ]; then

    # inform user that it is checking for changes.
    echo "Backup done today, checking for changes."
    notify-send -i /home/<USER>/Pictures/Logos/safe.png "Backup Status" "Checking for changes"

    # get the exit code of the diff command (1 = changes, 0 = no changes)
    diffexit=$(diff /home/<USER>/dir/to/backup /backup/location/backup-$(date +%Y-%m-%d-%H:%M)-<chosendirname> && $?)

    # if there are no changes tell the user
    if [$diffexit = 0 ]; then
        echo "Backup complete, no changes"
        notify-send -i /home/<USER>/Pictures/Logos/safe.png "Backup Status" "Backup complete, no changes"
    else
    # if there are changes, tell the user
        echo "Propagating changes"
        notify-send -i /home/<USER>/Pictures/Logos/safe.png "Backup Status" "Propagating changes"
        # copy it acros
        cp -ar /home/<USER>/dir/to/backup /backup/location/backup-$(date +%Y-%m-%d-%H:%M)-<chosendirname>
        # Tell the user it is finished
        echo "Backup complete, finished propagating changes"
        notify-send -i /home/<USER>/Pictures/Logos/safe.png "Backup Status" "Backup complete, finished all changes"
    fi

# if there wasn"t a folder with the current date.
else
    # Tell the user it is starting
    echo "Starting backup"
    notify-send --expire-time=60000 -i /home/<USER>/Pictures/Logos/safe.png "Backup Status" "Starting backup for today."
    # copy it across.
    cp -ar /home/<USER>/dir/to/backup /backup/location/backup-$(date +%Y-%m-%d-%H:%M)-<chosendirname>
    # tell the user it has finished
    echo "Finished backup for today."
    notify-send --expire-time=60000 -i /home/<USER>/Pictures/Logos/safe.png "Backup Status" "Finished backup for today."
fi

# sleep 3 mins
sleep 500

# run itself
/home/<USER>/./script.sh

Old code, not as good:

    #! /bin/bash

    newestfile=$(ls /backup/location -td | head -1)

    budate=`echo $newestfile| cut -c10-19`
    cdate=$(date --iso)

    if [ $cdate = $budate ]; then
        echo "Backup Done today, checking for changes."
        notify-send -i /home/<USER>/Pictures/Logos/safe.png "Backup Status" "Checking for changes"

    dirls=$(ls /home/<USER>/dir/to/backup)
    dirbuls=$(ls /backup/location/$(newestfile))

    if [$dirls = $dirbuls ]; then
        notify-send -i /home/<USER>/Pictures/Logos/safe.png "Backup Status" "Backup complete, no changes"
    else
        notify-send -i /home/<USER>/Pictures/Logos/safe.png "Backup Status" "Propagating changes"
        cp -ar /home/<USER>/dir/to/backup /backup/location/backup-$(date +%Y-%m-%d-%H:%M)-<chosendirname>
        notify-send -i /home/<USER>/Pictures/Logos/safe.png "Backup Status" "Backup complete, finished all changes"
    fi

else
    echo "Starting backup"
    notify-send --expire-time=60000 -i /home/<USER>/Pictures/Logos/safe.png 'Backup Status' 'Starting backup for today.'

    cp -ar /home/<USER>/dir/to/backup /backup/location/backup-$(date +%Y-%m-%d-%H:%M)-<chosendirname>

    notify-send --expire-time=60000 -i /home/<USER>/Pictures/Logos/safe.png 'Backup Status' 'Finished backup for today.'
fi


https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1152484

It's a BIOS bug common on AMD platforms. The above bug report thread explains it in fairly exhaustive detail. It doesn't seem to be a serious concern. I have an AMD Phenom II and I get the same error message. Seems like developers are trying to come up with a kernel patch that might help avoid this issue, but ultimately, it's a problem of the way the BIOS interacts with the processor when the computer wakes from suspend.


Packaging nodejs code, how do I prevent lintian from complaining about ./node_modules?

The warning/errors don't actually seem to have anything to do with the fact that you're installing them into a usr/share/<project>/node_modules directory. AFAICT, you'd be generating them wherever you install them.

As the docs mention, Lintian warning/errors can be overridden to silence them. Create a file called <package>.lintian-overrides in the debian directory of the source package. It should look something like:

<package> binary: wrong-path-for-interpreter *
<package> binary: extra-license-file *

Though the extra-license-file can be solved easily with this snippet for debian/rules:

override_dh_auto_install:
    find . -name "LICENSE" -delete
    dh_auto_install

There is a lintian-overrider tool that automates writing Lintian overrides. It can be used like so:

lintian -o <path/to/your/changes-file.changes> | \
      lintian-overrider --there-are-no-issues --source-dir <path/to/unpacked/source-tree>

More information can be found in the author's blog post.


grub-efi-amd64-signed package not installed into /target/

Well, I somehow managed to reinstal Ubuntu on my hp Pavillion.  Only problem is I'm not totally sure what fixed the problem. This is totally the worst answer in history, but as I say, something worked.  I'll try to retrace my steps, but as I was working on a usb drive, everytime I restarted ubuntu my text files and bootinfo summaries were lost.

I was working from a USB drive with Ubuntu on it, but couldn't seem to install it on my computer.  My inititial error was a missing grub error.  I tried the above commands (Thanks to LD James above) but then I got a "can't find the efi partition error".  (Thanks to Charles Green who suggested that right away.)  I tried running boot-repair and/or making a boot-repair disk several times from several websites.  In the end running boot-repair from the terminal was what worked. (sudo apt-get update then sudo apt-get install -y boot-repair && boot-repair).  Got an no efi partition detected and was recommended to type these commands into a terminal:
 sudo chroot "/mnt/boot-sav/sda1" dpkg --configure -a
sudo chroot "/mnt/boot-sav/sda1" apt-get install -fy
sudo chroot "/mnt/boot-sav/sda1" apt-get purge -y --force-yes grub*-common grub-common:i386 shim-signed linux-signed*
This seemed to do something because I got the same no efi message at first and then it looks as if it was purged.
Only trouble was I was scrambling here and I did a lot of other things at the same time.  I think I retyped the above commands to reinstall the grub next.

I then got the following message:

Please typ the following command in a terminal:

sudo chroot”/mnt/boot-savsda1” apt-get install y –force-yes grub-pc linux-generic

So I did.  Then I had to use tab, space and enter to choose where to install grub.  It's a little embarrassing cause I didn't see which drive I chose.  I pushed tab to go to the next option and it somehow just entered the first option, whatever it was.  So, you'll just have to look at the list and pick what makes sense.  Sorry, totally hopeless ... I know.

My source for this was: How can I dual-boot Windows 10 and Ubuntu on a UEFI HP notebook?. (Thanks to Michael Hoffman). Only I wasn't trying to dualboot and my system was different than his so mostly I just learned how to use boot manager to check if my partitions were in place.  (sudo apt-get install efibootmgr then sudo efibootmgr).

This showed that I had the following boot info:
Boot order 2001, 2002, 2003.
Boot 0000 USB Hard Drive (UEFI) USB Flash Drive
Boot 0003 Internal Hard Drive or SSD
Boot 2001 USB Drive (UEFI)
Boot 2002 Internal CD/DVD ROM (UEFI)
Boot 3000 Internal Hard Disk or SSD

I really don't know what any of that means, but Michael Hoffman
 who wrote the answer said that if it isn't so messed up, and mine wasn't, then you could just move on to reinstall Ubuntu.

Here's where I Messed up, at least, as far as making this a usable answer goes.

When I got to the options for installation, I was uncertain which partition to install Ubuntu on, as I was uncertain where the reinstalled grub file got installed (see above.)  So I just chose "erase the disk and install Ubuntu - warning this will destroy all files and all operating systems".  I SHOULD have just erased Ubuntu and reinstalled it first, to see if the above steps worked.  Instead I just erased the hard drive and reinstalled Ubuntu, presumably with all the right partitions.  Whatever the case, this worked and I now have Ubuntu installed on my system.  Only trouble is, I don't know if I could just have chosen erase disk and install Ubuntu in the first place, and saved all the above steps.

So, to make a long story short, if you're getting a missing grub error, try erasing the disk and installing an fresh copy av Ubuntu first, just in case.

Sorry, this is a terribly messy answer, but as I say ... it worked.


Just stating the obvious:

*/10 * * * * php /var/www/cron-test.php

You might also need to write the full path to your php interpreter.


How to uninstall DeskTime from ubuntu 20.04?

sudo apt purge desktime-linux

From the comment of @N0bert, if you dpkg -l | grep -i  desktime, you will get something like ii  desktime-linux. So just purge that file


What type of error you're seeing?
if the problem was coming from Ubuntu then try to restart your network service by the following command in your terminal:

sudo service network-manager restart

if this didn't solve your problem then try the following solution:
1- go to your terminal and write
cd /etc Then press Enter
then write
sudo nano resolv.conf Then press Enter
A window will popup

#comment the line of nameserver 127.0.0.53(or any number) if it was found
# and write:
nameserver 8.8.8.8
nameserver 8.8.4.4

write it at the end. you'll see every thing at the end  by default

#then click ctrl + x to save , press y, press Enter

2- when you finish step 1 restart your network service by the following command:

sudo service network-manager restart


I believe you did not add sda3 to the volume group. So you'd need to:

Extend your volume group to include sda3 ("ubuntu--vg" is the volume group):

vgextend ubuntu--vg /dev/sda3

Check the new size of your volume group:

vgs

Extend your logical volume to the entire volume group space ("ubuntu--lv" is the logical volume):

lvextend -l 100%FREE /dev/ubuntu--vg/ubuntu--lv

Check the new size of your logical volume:

lvs


Sometimes GRUB is responsible by this.
Here is one possible solution:
1. Re-install Ubuntu
2. When it asks for password check "Log me in automatically", sometimes grub messes up when it requests a password.
3. Shutdown, and boot your PC again.
Hope this helps.


Unoconv will depend on the core library from libreoffice for conversion of different documents but we do not have to install all of the libreoffice package.

By running apt-cache depends unoconv we can see the following dependencies:

unoconv
  Depends: python
  Depends: python-uno

We will also need python-uno with the following dependencies:

python-uno
  Depends: libreoffice-core
  Depends: python2.7
  Depends: python
  Depends: libc6
  Depends: libgcc1
  Depends: libpython2.7
  Depends: libstdc++6
  Depends: uno-libs3
  Depends: ure

Thus in addition to Python and C-libraries the following additional packages from the libreoffice suite (installed size on amd64 in brackets) are needed:

libreoffice-core (117,412.0 kB)
uno-libs3 (1,796.0 kB)
ure (6,775.0 kB)

Hence in terms of size roughly half of the libreoffice package will be installed with unovonv.


libvte-common package breaks package manager

Fixed!
put the 11.04 cd in and it pointed me to synaptic package manager - told me to open custom filters and go to Broken in the list. The  broken file came up, selected, removed and reinstalled.


Seems there might be a problem with the snap store this morning. Occasionally I get a successful return.

➜  ~ sudo snap find nextcloud
Name                Version           Developer     Notes  Summary
nextcloud-client    2.3.3+gitab40efe  nextcloud     -      Nextcloud Desktop Client
nextcloud-port8080  1.01              arcticslyfox  -      Nextcloud Server
nextcloud-nextant   11.0.0snap3       rmescandon    -      Nextcloud Server + search support
nextcloud           13.0.2snap1       nextcloud     -      Nextcloud Server - A safe home for all your data
cashbox-nextcloud   11.0.2snap2       cashbox       -      Nextcloud Server for www.cashBOX.plus
qownnotes           18.05.2           pbek          -      Plain-text file notepad with markdown support and ownCloud / Nextcloud integration
spreedme            0.29.5snap1       nextcloud     -      Spreed.ME audio/video calls and conferences feature for the Nextcloud Snap
solr                0.1               rmescandon    -      Starts up solr as forking daemon
mdns-hostname       0.0.1             welike        -      mDNS mini-daemon to published hostname.local
➜  ~ sudo snap find nextcloud
error: unable to contact snap store
➜  ~


Virtual machine created from a dd image of a NUC machine doesn't start Xorg

After a few hours hard work Googling this problem, I found this page that contained information that help me solve the problem.

Just move the Xorg configuration file (to save it as a backup) and reboot:

sudo mv /etc/X11/xorg.conf /etc/X11/xorg-old.conf

Then Xorg will try to detect any new devices.


The fans on my Macbook 5,1 run frequently. Apple has horrible practices for cooling which I won't get into here. My Mac has the fans working automatically but I will assume that yours does not since it's tripping the built in temperature kill switch.

sudo add-apt-repository ppa:mactel-support
sudo apt-get update
sudo apt-get install macfanctld

Is the advised solution, however it doesn't look like there is a Natty version just yet.

If you have no luck with that then try

sudo add-apt-repository ppa:hughescih/ppa
sudo apt-get update
sudo apt-get install mbfancontrol

This should help your computer detect the fans and use them accordingly.


If you meant securelevel, this is a *BSD kernel specific security mechanism. Linux (and therefore Ubuntu) does not have such a solution.

There is an old thread on this on LKML by the way.


Can no longer access contacts in Evolution

Pushing the "Submit" button on my question, I just wondered about another application: About the time this issue started, I've installed syncevolution to get my ownCloud contacts/calendars synced (the build-in WebDAV sync in Evolution is a bit itchy). Never found the time to configure it, though – so just to be on the save side, I ran an apt-get remove --purge on its 4 packages (syncevolution*). Should have thought about that earlier: issue solved!

Obviously there are conflicts between those packages (syncevolution 1.2.2-1 and above mentioned Evolution packages), so removing syncevolution resolves the conflict.


Xubuntu 14.04 display window when charger is plugged/unplugged

I had the same problem, running Xubuntu 14.04 on a AO-D255. every time I'd push the Fn key and left or right arrows to control brightness for every time I'd hit the button the 'Display settings' window would appear. Finally I was able to find this solution and seems to be working fine. I take no credit whatsoever. it worked for me, hopefully for you too.

Move the original file (in case you decide to revert the changes;  yes, it is the xfce4-display-settings):

sudo mv /usr/bin/xfce4-display-settings /usr/bin/xfce4-display-settings.original
Create a fake file:

sudo cp /bin/true  /usr/bin/xfce4-display-settings

This fake xfce4-display-settings (native code) just returns true to keep the calling application happy. (I don't know which daemon keeps calling it).

Logoff/logon; Enjoy XFCE4. Of course your "Display" in xfce settings won't work now, so you'll want to install 'lxrandr' via Software Center to get the functionality. It's icon will be the same but called "Monitor Settings"

You may have to repeat this after distribution upgrade."


My touchpad doesn't stop dragging immediately when I lift my finger. Can I change that?

Why do I always find things only moments after posting?
This fixed it for me:
synclient LockedDrags=0


How do I change the color and font of PDF comments in Evince?

I browsed very quickly the source code but couldn't find a way to change it or propose a patch, but I will try to do it later.

Anyway, for the time being I made a bug report on the proper place https://bugzilla.gnome.org/show_bug.cgi?id=677471 so now we wait if it is answered by the team.


This is normal functioning for a laptop. Remember that the external temperature of the laptop is not necessarily a guide as to the temperature of the CPU, and naturally manufacturers are cautious when it comes to keeping the hardware cooled!


Temporary guest session warning on user login

You can disable that dialog by creating the file /etc/guest-session/prefs.sh and inserting the line:

touch $HOME/.skip-guest-warning-dialog

https://help.ubuntu.com/community/CustomizeGuestSession#Disable_startup_dialog


Screen flickering when I run commands in gnome-terminal

I oserved the same thing using Ubuntu 16.04 and 17.04. Changing the desktop environment did not help. I tested Gnome3, gnome-flashback, mate...

I am able to reproduce the issue with gnome-terminal, xterm, and also gedit.
I am not able to reproduce it with libre-office writer, firefox (google search input line).

The problem occours much more often when key presses are combined with simultaniously moving the mouse cursor.

I fixed the problem by changing accelerate mode from SNA back to UXA:

Create a file /etc/X11/xorg.conf with the following content:

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option     "AccelMethod"  "uxa"
EndSection

Hope that helps


what is the path to adb binary installation

default path of adb binary installation on ubuntu:

/usr/share/android-sdk/platform-tools/adb

also you can locate path from terminal:

locate android-sdk/platform-tools/adb

no matter which os you are using. it always under android-sdk/platform-tools/


How do the various gnome flavours use the config resources they do or do not share?

I've definitely ran into these issues when testing with different desktop environments and I can understand your concern. One thing to keep in mind is that KDE likes to mind its own business so when you install KDE without recommends or suggests turned on your KDE environment is entirely on its own.

You also have to be careful for display managers. Unity, LXDE and XFCE use LDM. KDE uses KDM, and Gnome uses GDM. Usually if you keep suggests and recommends turned off you will be fine. Another good way to look at dependencies

apt-cache depends [package-name]

If you want to just look at core dependencies

apt-cache depends [package name] | grep Depends

To get to your question, configuration files are tricky. Unity has been trying to get off of Gnome dependencies for a while and for the most part it has. Unity and Gnome both depend on similar libraries like: Cairo, ATK, GTK, Glib, Compiz and probably others that I couldn't find.

Your best bet is to experiment in a safer environment. You can download an Ubuntu ISO and do some testing in VirtualBox. Or you can backup everything onto an external hard drive and test directly on your machine, and if something bad happens then you have a backup.

I'm sorry I couldn't give you a more direct answer, but I'm sure a more direct answer would be helpful to many people who also want to try out and experiment with different desktops environments.


I have 2 suggestions:

1) Check you bash history

This can be done by opening the file ~/.bash_history with e.g. Gedit (or any other text editor you prefer) and searching for the command scp so as to see where you chose to save those files.

2) Find your files with a search utility

If the 1st suggestion doesn't work because you use very frequently the terminal and so these entries have been overwritten I would suggest either using the command find or the command locate. In any case, you have to remember the filenames of the files, or at least part of them.

I know the locate command better myself and I find it quicker, so I will describe on how to do it using it.

First of all, open a terminal by hitting Ctrl+Alt+T and type in:

sudo updatedb

and then give

locate *thecharactersIknow*

where thecharactersIknow is the part of the filename that you remember. For example, if you remember hi_there while the real filename is hello_hi_there.jpg, then you should give

locate *hi_there*

Also, if you are sure that the files are stored under your home directory, you can filter your results, like this:

locate *hi_there* | grep $USER

or similarly...


Download a package with its all dependencies for later offline use

Do you want to install these packages on your local machine or on another one? If its the local machine you could use the --download-only switch of apt-get. Take a look at the apt-get manpages.

That way the packages will be saved on the apt-cache that is usually located under /var/cache/apt/archives.

Also, I found the following on stackoverflow:

mkdir -p /tmp/archives/partial && apt-get -d -o dir::cache=/tmp -o Debug::NoLocking=1

Good luck!


Installing Ubuntu Desktop: Unable to install GRUB

Thanks to MichaelBay - turning off RAID sorted this.

I find it odd that the installed was able to copy some files but not the boot partition to the drive.

Thanks Michael.


Boost is a reasonably complex beast and I would be wary of actually replacing the system installation. Best solution IMHO is to compile the required older version and install to a location such as /opt and then when compiling point your application to the older Boost include and lib directories with something like the following:

CPPFLAGS="-I/opt/boost/include/boost"
LDFLAGS="-L/opt/boost/lib"

Or indeed seeing if there is a specific ./configure flag in the source you are compiling to point to the older Boost libraries. This has been my practice and it has worked well. A few steps are required:

1. Activate Sources

Follow this trail:

Dash > Software & Updates > Ubuntu Software > Downloadable from The Internet > Source Code

Check the 'Source Code' box and then allow the repositories to reload when prompted. Then load the build dependencies:

sudo apt-get build-dep libboost-dev

2. Build Boost

To download, compile and install Boost use the following single command by copying and pasting the entire command into a Terminal window:

mkdir ~/Desktop/boost_build && cd ~/Desktop/boost_build && \
wget http://sourceforge.net/projects/boost/files/boost/1.48.0/boost_1_48_0.tar.gz && \
tar xvf boost_1_48_0.tar.gz && cd boost_1_48_0 && \
sed -i_bak -e 's#PREFIX=/usr/local#PREFIX=/opt#' -e 's#LIBDIR=#LIBDIR=/opt/boost/lib#' \
-e 's#INCLUDEDIR=#INCLUDEDIR=/opt/boost/include#' bootstrap.sh && \
./bootstrap.sh && ./b2 && \
sudo ./bjam install

Be aware that there will be somewhat of a delay following the final install command, have patience as the libraries are installed.

This is a fairly generic boost build and doubtless could be fine tuned but I suspect will be enough for you as it is...

Optional Removal

To remove the compiled and installed Boost libraries simply run the following:

sudo rm -rfv /opt/boost

And your system is clean again...


I got mine to work last time I dual-booted all I had to do was type in this code and follow terminal and the application

sudo add-apt-repository ppa:yannubuntu/boot-repair

sudo sh -c "sed -i 's/saucy/g' /etc/apt/sources.list.d/yannubuntu-boot-repair- saucy.list"

sudo apt-get update

sudo apt-get install -y boot-repair && boot-repair

Type those in order and follow terminal and when boot repair launches click the first box and then follow what it says once done with that write down the command it says to type in. Shut down your computer and go to the system Bios and change the Os manager so it is first and find secure boot and turn it off if not already  boot into windows and then type in the command in a admin command prompt.


Install Inkscape v0.48 and v0.91 in the same computer

There are basically three solutions:

1) Compile one the Inkscapes yourself. This may cause problems with dependencies if the two versions of Inkscapes have different dependencies. Also, the compiled version will not appear in the graphical launcher.

2) Install a Virtual Machine with a second Ubuntu 14.04 inside it, and there you can install and run another version of Inkscape. This works fine, but involves running the VM (Virtual Machine), which can be somewhat resource-intensive, just for Inkscape.

3) More lightweight than VM and a good solution, but maybe less obvious to install and run: install a chroot environment, and run another version of Inkscape in there (follow the steps at the end of this page, under the TLDR heading, for a simple and fast guide). Once you're in your chroot environment, the following would install inkscape-trunk (as an example):

HOME=/root

add-apt-repository ppa:inkscape.dev/trunk
apt-get update
apt-get install inkscape-trunk

and (again from inside the chroot environment) this would run your chrooted inkscape

HOME=/root
inkscape &

So once everything is setup, running the second Inkscape version would be done by:

a) entering the chroot environment using the following command

sudo uck-remaster-chroot-rootfs /path/to/chroot/directory/

b) then running Inkscape doing

HOME=/root
inkscape &

Programs you run from the chroot appear next to your "normal" programs (on your desktop etc.), as if you would have started them like any other program. The main difference is that they cannot write outside of the chroot directory you set up.

See also this thread on the Inkscapeforum.


No Bluetooth Found - even if laptop has inbuild bluetooth

sudo add-apt-repository ppa:blaze/rtbth-dkms

sudo apt update

sudo apt install rtbth-dkms

sudo vim /etc/rc.local

Add the command modprobe rtbth &> /dev/null right before "exit 0" and save.
sudo chmod 777 /etc/rc.local
sudo apt install blueman

Reboot.


Dual Monitor Setup : Grub loader goes to HDTV even if it is turned off

I had the same problem. In my case grub would appear on both displays with the same resolution (1920X1080) which is not handled by my primary display. So first you want to check if this is the case with you.
Run terminal enter:

sudo gedit /etc/default/grub

Uncomment the line

#GRUB_TERMINAL=console

Save and close. Run

sudo update-grub

And reboot, you should see console output of grub on both terminals. Hit 'c' to enter commandline. Run

vbeinfo

The resolutions which are handled by your video output should be there. In my case 1680X1050X32 was there, but the preferred one by grub was 1920X1080.
So boot up linux and set the resolution which is acceptable for both displays:
Run terminal enter:

sudo gedit /etc/default/grub

Look for the line

GRUB_GFXMODE=1680x1050x32

I set it to 1680X1050X32. In your case it might be different. Save and run

sudo update-grub

In case your grub can not handle the resolution it will respond not found during update-grub command.
After finishing the update, reboot, and you should see a working grub on both displays.


Actually there are many answers about this already.
You will have support for HD cards (probably) but by using the opensource driver (radeon) which works pretty fine.

the fglrx driver nor catalyst work anymore, is not just deprecated it won't even install.

there's a new closed source driver "amdgpu-pro" http://support.amd.com/en-us/kb-articles/Pages/AMD-Radeon-GPU-PRO-Linux-Beta-Driver–Release-Notes.aspx
but its in beta and doesnt support old cards. My card is a r7 260x it says it's supported but still doesnt work because it says it's not being detected.


dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

I find out an easy way, if sudo dpkg --configure -a wasting so much of time in installing your file just give abort the process and give sudo dpkg --remove -a it will remove all the uninstalled files and if you want you can install it again by giving sudo apt-get install your_soft_name.


The only application that comes to mind is GSConnect

sudo apt install gsconnect

It does everything you just described but from your phone, via the KDE Connect app


Where can I find alternative greeters for LightDM?

The Wikipedia page contains a reasonably accurate list of available greeters. In Ubuntu the following greeters are in the archive (package name in brackets):

Unity Greeter (unity-greeter)
GTK+ Greeter (lightdm-gtk-greeter)
KDE Greeter (lightdm-kde-greeter)
WebKit Greeter (lightdm-webkit-greeter)
RazorQt Greeter (razorqt-lightdm-greeter)


Check if your program is controlled by cpulimit application
# cpulimit -l 30 /bin/yourprogram &

The above command will start application but will not allow application to use more than 30% of cpu
cpulimit.1.html
cpulimit examples


To know if you can get a DVB-T signal in your country, have a look to this nice map.
If yes, I suggest you to follow this answer to test it with VLC and create your channels.conf file.
Then once you know it works, you can chose an application to watch TV like Me-TV, Kaffeine or any other applications listed in this question.

Note 1: till 12.04, Me-TV was working fine for me, now I use Kaffeine.
Note 2: scanning with Kaffeine is the most simple method for me.
Note 3: you can re-use your channels.conf file from VLC for Me-TV.


Why does the system become laggy when connected to Internet?

Problem solved...

Gwibber was the one eating my resources... I had to uncheck on settings: "Start when log in"


Installed kubuntu-desktop over Ubuntu and upgraded, what is the distribution now?

A 'metapackage' is no more than a simple way to install a bunch of packages at once. It will be no different from how it would deal with an individual package. apt-get upgrade will update each individual package and its dependencies. Referencing an older question it will install any necessary dependancies, even once you explicitly removed, and remove any obsolete files.

It however has nothing to do with upgrading your release. You will be on the same version of ubuntu (say dist-upgrade on 12.04 will give you 12.04.. with newer packages).

For getting a new version of ubuntu on release the command will bedo-release-upgrade-d


How to run a unit-file as service for all users

Welcome to Ask Ubuntu.

Systemd-wide user units should be placed in /etc/systemd/user.

You placed them in /etc/systemd/system, where they are only run as the root user.


It may not be particular to windows or linux, and even if it is, it may be a matter of configuring its power saving features under system settings in Ubuntu.  You can even work with your desktop colors so that you can tolerate using lower screen brightness.

I just explained this on another question but yours is slightly different.  Laptop battery life can become unpredictable when it is on the verge of going completely bad. Occasionally, and by that I mean one time out of ten, I can wake up a purportedly bad battery by repeatedly running down its 2-4 hour life span and putting it on charge until it thinks it is full, and after a few such cycles it wakes up and charges very long and then runs for five hours or something still more incredible.

If you are considering replacing the battery, I've found it for $24 on amazon:
http://www.amazon.com/compatible-Extended-Capacity-Replacement-Battery/dp/B00GDPOZWA/ref=sr_1_1?ie=UTF8&qid=1419061910&sr=8-1&keywords=lenovo+e430+battery&pebp=1419061924417


The only available python version for Ubuntu 16.04 is currently 2.7.11-1. Your link is for the Debian repositories, the correct site would be http://packages.ubuntu.com/xenial/python

You do not have to specify a version for packages, apt automatically chooses the newest available one. Explicit version specifications are only needed when you want to install an older version, and then you would have to separate package name and version string with = and not with a space, like python=2.7.11-1. Otherwise the version string would be treated as separate package name.

However, python is already preinstalled (and required - never attempt to uninstall it!) on all Ubuntu versions, so there would be no need to install it manually again anyway.


How can I alter the next/previous tab shortcut in Terminal?

Select Edit in the top menu, then choice Keyboard Shortcuts.

Now you will have open a window showing all the shortcuts available for the terminal.

Scroll the menu and you will see Switch to Next Tab, now double click over this option and press the keys (new shortcut) that you want to.

Close it and done!


sudo apt-get install libreoffice-script-provider-python


Netflix not working on Ubuntu 19.10 with Chromium

Chromium doesn't bundle the required DRM modules for Netflix to work. This has nothing to do with the question you linked. Netflix just doesn't work with Chromium. Only Firefox and Google Chrome are supported.


Add this to your ~/.profile (or ~/.bash_profile, whichever is present):

source ~/.bashrc


Do google pixel laptops (2016) run Ubuntu?

I have never worked with a Pixel laptop, but I imagine the hardware isn't that different from the old Chromebooks, in which case it is extremely difficult to boot anything other than Chromium on them. They use flash ROM for their system drive, which is why most of them only have about 64GB of storage. It wasn't designed to be overwritten, just like any ROM device.


Unable to install Emacs 24 from ppa:cassou/emacs

I had the same error yesterday. I tried installing every emacs package in the repository, and when that didn't work, it occurred to me that maybe conflicts were the problem. Since I didn't need emacs23 if emacs-snapshot would work, I did the following:

Uninstall All Emacs Packages

Before proceeding, have a look at what emacs packages might be installed by issuing `sudo apt-cache search emacs'. If you can sacrifice everything in the output, go ahead with the following suggestion.

sudo apt-get remove `apt-cache search emacs | awk '{print $1}'` --purge

If something else shows up in the output that you wish to keep, a quick way to get rid of the things you don't want is to redirect the output of the command to a file, edit that file, and then use the contents of that file for arguments to apt-get remove.

sudo apt-cache search emacs > remove.txt
Edit remove.txt by deleting the lines of packages you wish to keep. The goal here is to get rid of anything emacs-related, so leave those packages in the file.
sudo cat remove.txt | xargs apt-get remove --purge

You may get some errors here since emacs-snapshot failed to install correctly. If you do, try uninstalling those packages manually by first force installing the broken packages and then remove-purging them.

sudo apt-get -f install # don't list packages here
sudo apt-get remove emacs-snapshot --purge

It's probably also a good idea to autoclean and autoremove.

sudo apt-get autoclean
sudo apt-get autoremove

Install Emacs 24

sudo apt-get install emacs-snapshot

This assumes that you have the PPA added correctly (I'm using the cassou PPA as well). Everything seems to work nicely now!

Try aptitude

Since originally writing this answer I've moved on the using aptitude to manage my packages on the command line. I don't like the graphical interface (ncurses) you get from issuing sudo aptitude, so I only use it when I need to resolve dependencies/conflicts leftover from experimenting with different desktop environments. Most of the time, I simply use it as a drop-in replacement for apt-get, as in sudo aptitude install [package].

Related: Is aptitude still considered superior to apt-get?


Use this guide here and you should be good to go!


avoid partition messages with unattended preseed file

I can partially respond to my question.

partman supports only partially NTFS so certain operations can't be handled directly.

If I change ntfs to fat32 on my first recipe it works and no prompt is presented.

I still would like to know an option to avoid any pause, even in case of errors.


How to restore $PATH environment variable?

Variables unseted like that are only effective in your current shell and any child processes. If you didn't save those commands in your profile or shell-rc file, any new shells that get started up should have the original value again.

Closing your current shell (terminal) and starting up a new one is the simplest way to get  $PATH variable back.


Disable taskbar (Unity Launcher) Icon combine

It's not possible in Unity. You may want to switch to another desktop environment like mate or xfce.

However it's good to know that you can switch windows inside group by using ALT + `


Haven't used Lubuntu but on Ubuntu there is a cairo-dock (GNOME) desktop that I can log into.  Of course you'll lose whatever other panel you have to be replaced by cairo's.


Ubuntu 14.04, black screen after applying nVidia 352.63

There are hundreds of nvidia related bugs (current open bugs here). Many have been solved in recent driver releases.

As you are using Ubuntu 14.04, I suggest you try the latest drivers. You can either change the distro to 16.04, or install the newest drivers manually. Here you find the latest drivers for Xenial (16.04). To install, download the .tar.gz file, extract, and run from terminal as follows:

sudo dpkg -i file.deb
sudo apt-get install -f

Note: using newer packages might be risky, as some dependencies might be needed which could conflict with current ones.


Unable to establish connection over specific port in devices connected via VPN

After some research into this, I found out why my nmap check showed port 102 is as 'closed'.
It seems that there should be some process/service that is actively running and listening on port 102 for that to be shown as 'open'.
I ran a dummy listener on the Ubuntu laptop using the following command:
nc -l 102
Now, if I run nmap -p 102 10.8.0.2 from my Virtual Machine, I am able to see the port as 'open'.


How to automatically kill a process using script?

Just use the killall command. That should work.
Like this:

killall java

(Just in case you don't know how to create a executable .sh file (It's not quite clear):
A .sh file should begin with a shebang, something like

#!/bin/sh

After that, you just write commands like you would in a terminal, separated into lines.
Then you run

chmod +x <insert filename>

and are able to execute the .sh file just fine.
killall should be no exception


From your booted Ubuntu system, open a terminal, then use the following commands to install grub to the internal drive :

sudo grub-install /dev/sdX

sudo update-grub

Replacing sdX with the actual drive, which will probably be sda, but use disk utility to double check if you are unsure.


Permanently set correct monitor resolution instead at the start of each session with xrandr?

Some time ago I used GNU WindowMaker and I had to 'force' the computer by including this line:

xrandr --fb 1280x1024 --dpi 86 --screen 0

in my ~/.xinitrc (which had execute permission).  Now  I'm running Xfce4 on the same machine and it just works, no idea why...


Facing problem with "gtk.RESPONSE_OK" in the simple-player quickly tutorial

The current quickly toolkit on 12.04 uses Gtk from gi.repository not the older gtk.
The tutorial has not been updated for this change.

This may be a/your sticking point.

Output cat SimplePlayerWindow.py
snip

from gi.repository import Gtk # pylint: disable=E0611
import logging
logger = logging.getLogger('simple_player')

/snip


How to execute a script, line by line, for troubleshooting purposes?

From Stack overflow:
set -x or set -o xtrace expands variables and prints a little + sign before the line.
set -v or set -o verbose does not expand the variables before printing.
Use set +x and set +v to turn off the above settings.
On the first line of the script, one can put #!/bin/sh -x (or -v) to have the same effect as set -x (or -v) later in the script.
The above also works with /bin/sh.
See the bash-hackers' wiki on set attributes, and on debugging.
$ cat shl
#!/bin/bash

DIR=/tmp/so
ls $DIR

$ bash -x shl
+ DIR=/tmp/so
+ ls /tmp/so
$


triple monitors and xinerama = black screen when game starts?

You'll have to enable Basemosaic in the Nvidia driver to get all monitors working together, when Xinerama is enabled.


I have a similar issue with my Radeon HD 6670 and using any of the regular,post-upgrade or from-amd.com drivers; well, actually, only the regular provided ones seem to work well enough (and I needed to wipe all old attempts properly before I reinstalled these ones for it to work, so I was just on vesa display module not even the open-source default "radeon" one).

I figured out the reason was that it uses a low refresh rate, 60Hz, and the monitor image is at least an inch, maybe two, inside the edges of my 19" monitor. When I start up amdcccle software (the Catalyst Control Center) I can fix it once logged in on Ubuntu 12.04 ("precise") when I click Apply button to set it to 85Hz (VGA CRT monitor, old style), and it shifts back out to fill the whole display.

But as soon as I reboot it the settings are forgotten and it jumps back to 60Hz. (edit: I just found it might be cos its on VGA, so no EDID: see link) I might try my own Q if Im still stuck in a day or two. If your problem is similar (check refresh rates via the monitor's on-screen-display menu in Windows then check them in Linux), then at least that determines a possible cause. You may have luck trying to set it in xorg.conf (mine doesnt help): in the Section "Monitor" bit if you have one, I use this line:

Option   "TargetRefresh" "85"

Where 85 is the rate that I know works (and would be your Windows rate if it doesnt match the broken Linux refresh rate).

Or with amdcccle program instead? My xorg.conf tries to tell it 85Hz but doesn't seem to be using that - though without an xorg.conf it doesn't work at all (I also have an in-board much older AMD gfx chip but I've disabled in bios, was Very broken with fglrx but ok with radeon driver when I didnt disable it).


Share files and printer between two Ubuntu boxes

Use NFS to share file between systems if there is no windows involved, it is so easy.

Install nfs-kernel-server  and nfs-common  on the computer that has the files to be shared. These can be installed in the Software Center, or however you prefer to install packages. You can install them on the command-line with:

sudo apt-get update && sudo apt-get install nfs-kernel-server nfs-common

You need to edit the exports file that shows what to share and with whom. So run:

gksu gedit /etc/exports

For example, to give full read and write permissions, allowing any computer from 192.168.1.1 through 192.168.1.255, add this line to /etc/exports:

/directory_to_share 192.168.1.1/24(rw,no_root_squash,async)

My daughter's export file looks like this (I am .201--we are not using a range, just one IP):

/home           192.168.0.201(rw,sync,no_root_squash,no_subtree_check)
/srv/nfs        192.168.0.201(rw,sync,no_subtree_check)

Restart the NFS server by running:

sudo /etc/init.d/nfs-kernel-server restart

(Or reboot the computer.)

From now on after editing the /etc/exports file, you can just run sudo exportfs -a to apply the changes.

The showmount command will tell you that all went well--for example, on my daughter's computer, it shows she will share these two things with my computer @ .201 (me) if requested

$ showmount -e
Export list for jamie-desktop:
/srv/nfs 192.168.0.201
/home    192.168.0.201

Then install nfs-common  on the computer that wants to mount the export shares as part of its file system.

An fstab entry must be added to have your computers nfs-client mount another computers exports @ boot time. gksu gedit /etc/fstab will edit the required file.

 192.168.0.200:/srv/nfs  /media  nfs  rsize=8192 and wsize=8192,noexec,nosuid

Reboot and the share is mounted in /media.

Set up a server on the client and client on the server for two-way shares.

You can print to a shared printer with CUPS (as mentioned in this answer).


Unity unable to bring programs to foreground

This seems to be releated to ulimit. After increasing ulimit from 1024 (Ubuntu 14.04 default) to 65535, I have not seen this problem.

$ ulimit -n
65535

To make the change permanent, append these 2 lines to /etc/security/limits.conf then reboot

* hard nofile 65535
* soft nofile 65535


External monitor recognized but getting "no signal"

I had the exact same problem as the question poster: Ubuntu 12.10, Nvidia card, monitor connected via HDMI, using nouveau driver, monitor worked before (with the same setup), the monitor is detected and enabled in Ubuntu, but no signal to monitor.

The temporary solution: I'm running Ubuntu on a laptop and there is a special key on my keyboard which allows me to enable/disable external displays (in my case the key is Fn + F7, this differs per laptop). So I just pressed that key combination and the external monitor immediately was turned on.

EDIT:

Though the key combination to enable the external monitor works, you'll have to repeat this every time you reboot. I found a way to have the external monitor automatically detected and enabled at the login screen (after a reboot). And when you login, the previous settings for your monitors are restored, as you would expect. Here's how to do it:

Note: I only tested this with an Nvidia card. And before you continue, I recommend you install SSH first (sudo apt-get install ssh) to be safe. In the case something goes wrong and both internal and external monitor stop working, you can always undo whatever you did by logging in from another computer via SSH (e.g. ssh user@192.168.1.12). So make sure you know the IP address of your computer in the network.

First of all, run sudo apt-get install v86d in a terminal to install the v86d package.
Run gksu gedit /etc/initramfs-tools/modules or sudo vim /etc/initramfs-tools/modules and add the following line at the end of the file (replace 1280x1024 by the resolution of your internal monitor):

  uvesafb mode_option=1280x1024-24 mtrr=3 scroll=ywrap

save and exit.
Create the file /etc/initramfs-tools/conf.d/splash by running gksu gedit /etc/initramfs-tools/conf.d/splash or sudo vim /etc/initramfs-tools/conf.d/splash with the following content:

  FRAMEBUFFER=y

save and exit
Now you need to update the initramfs image because we changed some configurations. Do this by runnning sudo update-initramfs -u.

Now reboot your system and your external monitor should get a signal as soon as the Ubuntu login screen appears.


Step 1; Install MAME:
Open a Terminal (CTRL+ALT+T) and enter the following line in it:

sudo apt-get install mame mame-tools gnome-video-arcade sdlmame sdlmame-tools

Step 2; MAME Configuration:
Start now MAME with this command so that a hidden folder (.mame) is created in your home directory which will contain all emulator settings:

mame

You can now close the emulator. Run this command to create the configuration file for MAME:

cd ~/.mame && mame -cc

The "mame.ini" file will be created in the ~/.mame folder. Edit now this file with this command:

sudo gedit ~/.mame/mame.ini

In "rompath", you can set your own ROM directory path or leave default paths:

Next, create the following directories in the ~/.mame folder:

nvram
sta
roms
memcard
inp
comments
snap
diff
You can create them all with this command:

mkdir  ~/.mame/nvram memcard roms inp comments sta snap diff

You can access the rom folder with this command to place your downloaded roms in:

nautilus ~/.mame/roms

As for player controls, you can easily configure them from the main interface of MAME (Configure General Inputs):

Note: While playing a game with MAME, you can exit fullscreen mode by pressing ALT+Enter.


evince document viewer not showing wireless printer

I ran the command
system-config-printer from the commandline and added the printer in the UI. After that, the Document Viewer showed the printer alright.


If I install ubuntu on my USB will it affect my Hard Drive or will my Win 7 OS be lost?

First be sure of the drive that you want to install Ubuntu on, ie. A: drive, B: drive, C: drive, which ever one that is your flash drive that you want for installation. During the installation process, choose the custom installation option. At that point, you can install Ubuntu on the USB flash drive.

The reason for doing it this way is that you will have GRUB installed on your flash drive and still have BIOS on your Windows 7 computer. After the installation you can boot up on either operation system by pressing the F12 button during  boot up. If you only want to use the Windows 7 during the boot up process than pressing the F12 button is not necessary. With that said it is not a bad idea to remove the USB Ubuntu drive so that you do not accidentally have Windows format it.

The partition amount on the custom install is really up to you. The main thing is that GRUB and Ubuntu is installed on the same drive using the custom install option.


GTA San Andreas screen issue running on wine

Go to your wine configuration then click on graphics and click emulate virtual desktop then run the game and it should work.


Unwanted files in Downloads directory from a failed OS upgrade attempt

Type the following commands:

cd ~/Downloads
sudo rm -rf wubi.exe install boot

(or whatever the file names are of the files still remaining)

Done! ;)


This is normal. You have set the permissions for /home/test/some_test/parent1/child3 and files therein. However, that folder resides in /home/test/some_test/parent1. Deleting that folder involves changing /home/test/some_test/parent1. Thus, permissions of the folder parent1 determine whether testuser1can delete (or create) a folder there.
If you want the user to also be able to delete the folder itself, you need to put it in a folder where that user also has write access (somewhere under the user's home folder is a good place).
Alternatively, you need to provide the user read+write access to the parent1 folder, but that involves inevitably that that user will be able to rename and delete any files present in that folder.
The default linux file permission system essentially is rather basic. For more granular control of permissions, there is the feature of Access Control Lists (ACL).


no install button on ubuntu software centre

I had the same problem. It turned out I was set for the Mexican server. Go to system settings, select "Software and Updates" and then on the "Ubuntu Software" Tab make sure that your "Download From" Setting is "Main Server" or possibly "Server for United States".
The first time you use the Software centre after this you will have to click the more info button on an app. It will then say that this is available on another source. Click the use this source. Walk away for a while since this action seems to update everything, but takes a little while.


How do you put a face cam in a video editor?

I'm also using Openshot and just happened to stumble across a method that seems to work.

Right click on the file in the track to be the facecam; select Properties:

Navigate to the "Layout" tab.
Leave the Key Frame as "Start of Clip" and adjust the Height and Width to your desired size (25% seems pretty standard for facecams):

Now adjust your "X" and "Y" to position your facecam where you want it on screen. This may take some finagling, and you may want to pop over to the video tab to adjust the Align "Horizontal:" and "Vertical:" to represent the corner you want the facecam in; i.e. if you want your facecam in the bottom left corner, your "Horizontal:" should be "left" and your "Vertical:" should be "bottom":

Hit "Apply" and make sure that your facecam looks the way you want it. Once you've got it the way you know you want it to be:
Go back to your Properties and into the Layout tab. Change your Key Frame to "End of Clip" and make sure that all of the parameters match what you put in for the "Start of Clip" Key Frame. If you skip this step, the facecam clip will grow/shrink/move/etc. while playing to match the "End of Clip" parameters by the time the clip is over:

Watch your new video all the way through to make sure it all looks the way you want it to, which you should really be doing anyway.

That's it! I hope that helps you out. Add a comment to this answer if you need a little more clarification on anything or if there's something else you think of that I should add.

Cheers!


Install screenlets , then open screenlets-manager.

sudo add-apt-repository ppa:screenlets/ppa
sudo apt-get update
sudo apt-get install screenlets


Problem restoring android after trying Ubuntu on Nexus 7

I have solved my problem!

I have tried on another windows, on another computer. I never could completely remove the drivers on my computer... don't know why and spent hours ont it... was on windows 7.

It worked on an old XP windows. I achieved a usb connection in fastboot mode, but still it took me some time to reflash... flashboot was just stuck randomly during the process many times, it took me four hours of wipe/flash of the partitions before getting completed...

A pain in the a**... maybe my tablet has problems with its usb port which is not very stable it seems... well, android is back on, and i'll not try anymore flashing on it =)

Thx anyway to those who took time to think about my problem !


How to search String with "\" character and to Replace it

I come over the issue very soon - :)

below is the command which I tried and its successfully working to Search and Replace Paths written in multiple files in a directory -

grep -rl 'var\\www' /your/path/to/directory/to/replace/content/in/files/ | xargs sed -i 's/var\\www/var\\www\\html/g'

Where var\www is the written path in searched files which I replaced with var\www\html


Can't access photos stored on Samsung S7 from Ubuntu

Installing the exfat-utils repository worked for me. It seems that Ubuntu/Unix has problems accessing the Fat32 formatted SD card and even the phone's memory. After installing the exfat-utils from here I could access the SD card, main memory, and images of my Galaxy S7 without problems.

Important! If you ever connected the phone to a Windows OS make sure to "safely remove" it before unplugging the USB and connecting to Ubuntu. Otherwise, Ubuntu will not be able to handle it.

Here are the terminal commands as given by the authors of the package (make sure you have all relevant packages installed as listed in the link):

git clone https://github.com/relan/exfat.git
cd exfat
autoreconf --install
./configure
make

Then install driver and utilities (from root):

make install

You can remove them using this command (from root):

make uninstall

Do not forget to press "Allow" on your phone's popup window after establishing the USB connection.


Unsupported SysV option when invoking ps

Do you maybe have an alias for ps that has some invalid options?

Check by running alias on a terminal.

Also, ensure that you're running the correct ps and not a version installed elsewhere. ps should be in /bin/ps and dpkg -S /bin/ps should say it belongs to the procps package.

Finally, if you really want to ensure your ps is what it should be, install debsums and do

debsums procps

it should return 'OK' for all files in the package.


Trying to boot from USB "Scanning disc for index files..."

Try copying the whole text it's more helpful that way:

  If you got this bug, when you boot from USB, press F6 then edit the
  boot option: Remove this:

file=/cdrom/preseed/ubuntu.seed

  Add these:

live-media-path=/casper/ ignore_uuid

  Full sample:

append boot=casper initrd=/casper/initrd.lz live-media-path=/casper/ quiet splash ignore_uuid

  If you don't want to edit every time you boot from USB, you can edit
  this file in USB: /syslinux/text.cfg

https://bugs.launchpad.net/ubuntu/+source/usb-creator/+bug/492301/comments/17

source:
https://askubuntu.com/a/51350/72414


Run:

pkill pgadmin

Or detect your specific process PID (first number) with:

ps aux | grep pgadmin

Then run:

kill <PID NUMBER>


Turning node.js projects into snap packages

The tutorial referenced is very outdated and likely won't work anymore. Instead, use the node plugin when packaging a nodejs. For example you might use a part like this which also specifies the node version and build dependencies required:-

parts:
  slap:
    plugin: nodejs
    source: https://github.com/slap-editor/slap.git
    node-engine: 6.9.5
    build-packages:
      - python
      - make
      - build-essential


Problem booting after installing Ubuntu 13.10 alongside Windows 8.1

I'm assuming, that you basically wanna get your system working, even if it's first into windows.
If that's the case, you can simply over-write your MBR with the standard windows MBR, boot into windows, use something like easybcd to create a linux boot record in it, and use it that way.

Here's how:

Boot your linux live cd

sudo apt-get install lilo

sudo lilo -M /dev/sda mbr

Now boot into windows, and try fixing the MBR using easybcd


So I actually figured it out and in-case someone is in the same boots as I am, here's how I've done it :

Free some space on your HDD that is directly next to your Linux partition, in my case, I took 10GBs from Data partition, as it's the one directly next to my Linux partition.

I've done it by moving the chunks of data in my Data partition to the right and free some space in the left side (the one next to the Linux partition), and note that you have to unmount the partition before you can modify it.  And it took about 90 minutes for me to move the 172GB data chunks to the right.

like this

After that, left-click on your swap partition and click swapoff
Now, you can resize the ext4 partition using the space you freed before
Apply changes.

I've resized the ext4 partition on a LiveCD, but I don't think it's necessary. (you can resize it while logged in)


Load and show an image from the web in Python with Gtk 3?

According to the docs, new_from_stream() needs a Gio.InputStream and Gio.Cancellable as arguments.

You could also save the image on disk and remove when needed. Here is a very basic example:

import os
import urllib2
from gi.repository import Gtk
from gi.repository.GdkPixbuf import Pixbuf

def quit_event(widget, event):
    os.remove(imgname)
    Gtk.main_quit()

imgname = '1338.jpg'
url = 'http://lolcat.com/images/lolcats/'+imgname
response = urllib2.urlopen(url)
with open(imgname, 'wb') as img:
    img.write(response.read())

image = Gtk.Image()
pb = Pixbuf.new_from_file(imgname)
image.set_from_pixbuf(pb)

window = Gtk.Window()
window.connect('delete-event', quit_event)
window.add(image)
window.show_all()
Gtk.main()

You should write to a better location though, maybe /tmp or a user-specified dir.


Reading Braiam comment I think you should have executed the commands in three steps:

First one: lspci -nnk | grep -A5 VGA

Second one: glxinfo | grep -i render

Third one: apt-cache policy libgl1-mesa-dri libgl1-mesa-glx


What does "unmount" mean in terms of partitions?

Unmount option will disconnect your Windows partition from Ubuntu.

It will not damage anything on that partition. It is 100% safe.


Ubuntu 16.04 installation in WSL reports itself as 'bionic''

Apparently it was a bug after all, and Canonical is reverting the 16.04 app to a previous version until the new one passes the Store certification.


First install the latest fglrx driver if it is not installed.

sudo apt-get install fglrx-updates

and reboot.

You can switch adapters in Catalyst Control Center or in terminal

sudo aticonfig --px-dgpu

switches to AMD

sudo aticonfig --px-igpu

switches to Intel

aticonfig --pxl

shows status.


Type:

sudo apt-get install phpmyadmin php-mbstring php-gettext


What is the best place to mount a permanent Windows share in Kubuntu?

/mnt or /media are both fine. And it is also fine to create your own directory in /. Like a /data/ or /windowsshare/.

Some things:

when you do and add it to /etc/fstab use a ~/.smbcredentials for storing user name and password. edit: a ~ will not work; use the whole directory.
a windows share might have a longer waiting time then the system expects. If so, use the "noauto" in /etc/fstab and mount it in /etc/rc.local.

  Avoiding high usage of CPU and network if Akonadi try to index it.

and

  Showing better in file explorer like Dolphin.

are not an issue. If they are then the mount point itself is not the reason for it.


This happened to a few users today. Check (and make a safe backup of) the following folder:

.local/share/tomboy/Backup


How to switch the window buttons to the left in Cinnamon?

Cinnamon Settings -> Window -> Left Sided Title Bar buttons.

You might have to restart cinnamon to see the changes;
here are some ways to do that:

Right click the panel -> Troubleshoot -> Restart Cinnamon
Open a terminal and type cinnamon --replace &

(No need for gconf-editor!!!)


gvim configuration does not work like it should

You're using the wrong format for the 'guifont' setting.  The format FontName:h10 works for Windows, but not *nix.  Instead, use :set gfn=* to bring up the font dialog to choose your font and size.  Then you can check the correct format for your current OS.  Or you can read :help 'gfn'.


So, I found it. Without any comments/documentation or obvious pythonic errors, they just let it break with something that doesn't tell you what's going on. Instead of raising a NotImplementedError, they just let it fail with an AttributeError. It just doesn't feel like how open source code should work, but what do I know.

But as for my answer: I need to subclass the UFWBackend class and implement the methods myself.


Not a directory error when try to modify ~/.local/share/applications/

As the error says ~/.local/share/applications should be directory(folder) not a file. In your screen shot it is a file. so delete that file, create a folder with same name and then try again.

In terminal

rm ~/.local/share/applications
mkdir ~/.local/share/applications


Firefox multi-core when opening a list of bookmarks?

Most "advanced" configuration settings are available via about:config. (Just for completeness, this is accessed by typing about:config in the address bar, pressing Enter and accepting the caution.)

Now, the about:config page itself has a filter field: when I typed core in there, all I got was services.sync.globalScore;0. When I typed cpu, I drew a blank. And this is with Firefox 20 on a humble Dell Inspiron 1545 dual core machine.

If you can think of something more suitable to type into about:config, do try. There are additional custom entries that can be made in about:config but you may have to ask in mailing lists such as support-firefox -- Firefox help community or dev-apps-firefox -- Development discussion about Firefox for help on such advanced options. See lists.mozilla.org Mailing Lists for more.


Python Errors when Installing LogMeIn Hamachi

It's probably an error with python2 to python3 compatibility.

raise ValueError, 'need a file or string'

Is no longer supported in python3, deprecated in favour of

raise ValueError('need a file or string')

Therefore, you should try running this command:

sudo sed -i "s/python3/python/" /usr/lib/lsb/install_initd

to make sure that the file is run with python2


Unfortunately not every themes have full unity/global-menu support. You can search for unity themes instead of simple gtk-themes. You can find often adapted version of popular gtk themes.


Auto shut down if usage timer exceeds daily limit

I use this on my brothers and sisters when they use my computer. Of course you would have to allot them 1 chunk of time and not segments but:

#!/usr/bin/env python3

import time
import os
import sys

time.sleep(int(sys.argv[1]))
os.system("gnome-screensaver-command -l")

Save it as kids.py, give it executive rights, put it in your home directory, don't tell them the user password and every time you need to use it hold down ALT + F2 and type ./kids.py seconds where seconds is the amount of time (in seconds) you wish for them to have. It will basically lock the screen after the time is up.

[EDIT]
You could also place this in YOUR home folder, put it in each of their startup files, deny them the ability to change their startup files, remove "import sys", replace "int(sys.argv[1])" with the number of seconds you want and then change "gnome-screensaver-command -l" to "gnome-session-save --force-logout" give all users the ability to execute the file. haven't tried this so. . .
[/EDIT]


Why do initd scripts in /etc/init.d remain after deinstallation of the corresponding package?

See man apt-get:

  remove

 remove is identical to install except that packages are removed
 instead of installed. Note that removing a package leaves its
 configuration files on the system. If a plus sign is appended to
 the package name (with no intervening space), the identified
 package will be installed instead of removed.

  purge

 purge is identical to remove except that packages are removed and
 purged (any configuration files are deleted too).

'configuration files' means 'files in /etc'

apt remove leaves files in /etc, including init scripts. Use 'remove' when there's a chance you might be reinstalling and you don't want to waste a lot of time rebuilding your fantastic config.
apt purge deletes the /etc files. Gone forever.
Nether remove nor purge deletes any files in /home, ever. Those are your problem, not apt's.

How is this relevant to an init script? Aside from the obvious (it's in /etc), you can look at it two ways: An init script configures when and how the application starts and stops...or it configures init to start and stop the application when you wish.


How to restrict Ubuntu to only show LTS updates

I think you’re confused about the difference between updates and upgrades*.

Ubuntu 40.04 LTS is a long-term support release. What does that mean? It means that support is available long-term. And support, in this context, means that updates are made available to fix bugs. These updates do not (generally) supply new features: they just fix bugs. Some of those bugs are critical, and it is important that you apply the fixes when they become available.

The updates are divided into two categories: “Important Security Updates” and “Recommended Updates”. Generally, when recommended updates become available, you won’t be notified (this depends on your settings, but that’s the default). When important security updates become available, you will be notified, and, at this time, will also be notified of any recommended updates you may choose to also apply. If you’re a normal desktop user, your best course is probably to simply take the lot. Very few will have any noticeable effect, but they do keep your computer more secure.

An upgrade, on the other hand, means moving to a new release of Ubuntu. The move from Ubuntu 13.10 to 14.04 is an upgrade. This update will come with a slightly different look and feel and a few new features. (Ubuntu is fairly stable these days, so there are fewer major differences between releases than there used to be.)

If you were thinking of moving from 13.10 to 14.04 LTS, you should. Ubuntu 13.10 is is not a long-term support release, which means that it is no longer supported, which means that updates are no longer available to fix security-critical bugs. (In fact, currently, the only supported Ubuntu releases are LTS releases.)

The practical upshot of all that is, whatever version of Ubuntu you are on, you will get updates. You should apply those updates when they are offered to you. It really is very low hassle.

When your version reaches end-of-life** you will also be offered an upgrade to the next version.

* It doesn’t help, perhaps, that apt-get also uses these two words, but uses them completely differently. apt-get update means “check the repositories for what new updates are available”, and apt-get upgrade means “apply any available updates”. Do not let this confuse you: words can have different meanings in different contexts, and as long as they’re clearly defined, this is not a problem.

** If you’re on an LTS release, you’ll also be offered an upgrade when the next LTS release comes out. You are, however, under no obligation to take it. Long-term support releases really are long term. Ubuntu 10.04 LTS Server Edition is still supported till next year. More recent LTS releases support the desktop edition for that long too.


Always show close, minimize, maxmize buttons

Well I managed to solve this only because of lucky.

I was searching for the same answer. First I disabled the menus from the windows doing the commands:

sudo apt-get autoremove appmenu-gtk appmenu-gtk3 appmenu-qt indicator-appmenu

Then I restarted the pc and then I went to Appearance Configuration > Behavior (I am using portuguese version so I dont know if this is the correct translation). And then there is a check box "Show menus" on "the title bar".

That solved the problem for me.


You can try writing a NOPASSWD rule like so:

deploy ALL = (root) NOPASSWD: /bin/cp -t /etc/nginx/sites-available *, /bin/ln -s /etc/nginx/sites-available/* /etc/nginx/sites-enabled

Then the deploy use would directly copy to the sites-available folder, after creating the configuration elsewhere, then create the link (without a target name being specified).

This might have loopholes too.

Or you could write a script that manages all this, and have a single NOPASSWD rule with only that script.


As of Ubuntu switching to Unity ("3D") none of the universal access visual effects have been working.

Besides waiting for it to get resolved the only answer to this question at the moment is to use a version that does not use Unity. That would be Ubuntu gnome; or the still unofficial Ubuntu Mate. lUbuntu, xUbuntu, kUbuntu might be an option. Some will have different tool sets for universal access though.


Is there a system journal that I can install?

Install the etckeeper package and run (once and for all) sudo etckeeper init. This puts /etc (the directory containing all system configuration file) under version control (Bazaar by default). Under the default configuration, changes are recorded

before and after each use of apt-get, aptitude, Synaptic or other apt-based package managers;
once per day;
and whenever you run sudo etckeeper commit, or bzr commit in /etc; this gives you the opportunity of entering a meaningful commit message.

Etckeeper doesn't record the names of installed packages, but you can find that in /var/log/apt/ and /var/log/dpkg.log (with different sets of details). These files are rotated, so they will disappear after a few months; if you want to keep them longer, this is configured in /etc/logrotate.d/dpkg and /etc/logrotate.d/apt.

For your personal configurtion files, see How to keep “dot files” under version control?.


16.04 WiFi Repeatedly Connects and Disconnects on Certain Networks

You may have an interference problem from neighbouring wireless networks, or from appliances (like wireless telephones) that operate in the same frequency spectrum.

From the comments...

Log into your router's admin page, and go to the wireless settings, and change channel from 11 or auto, to channel 1, and save, retry connectivity. If it's not any better, change the channel to 6, save, and retest. If neither channel 1 or 6 made any improvement, set it back to 11 or auto (whatever was there first) and save. You can also try, in terminal, sudo iwconfig wlp2s0 power off.

Update...

channel 1 seems to have solved the problem.


Netbeans install error: The specified jdk folder does not contain jdk

Got the solution.
As openjdk documentation says I installed openjdk using

sudo apt-get install openjdk-7-jre

But it's not complete installation. After that I used this command

sudo apt-get install openjdk-7-jdk

It installs several extra packages. After that netbeans find jdk automatically and normal installation completed smoothly...


Why doesn't my mp3/mp4 player work on Ubuntu?

You need to add a file to the root partition of the device called .is_audio_file this shows the capabilities of the device. So for my Sansa clip this contains:

audio_folders=MUSIC/,PODCASTS/,AUDIOBOOKS/
output_formats=application/ogg,audio/mpeg,audio/flac,audio/x-ms-wma,audio/aac,audio/mp4,audio/audible
input_formats=application/ogg,audio/mpeg,audio/flac,audio/x-ms-wma,audio/aac,audio/mp4,audio/audible
folder_depth=1
playlist_path=PLAYLISTS/%File
playlist_format=audio/x-iriver-pla

It is important that the file is in the root directory of the device, and the name starts with a "."


Boot full of older images - need to remove for updates

Open a terminal (CTRL+ALT+T),
then type (this is an EXAMPLE - and skip the \'es if you put it on a single line):

sudo apt-get purge \
linux-headers-3.16.0-51 \
linux-headers-3.16.0-51-generic \
linux-image-3.16.0-51-generic  \
linux-image-extra-3.16.0-51-generic

dpkg --list | grep ' linux-' will display what your machine has installed. Just don't remove what you're running (uname -a will tell that)


What happen when 'unable to resolve host' still exist on terminal?

To change the active system hostname to, e.g., 'foo' it does not suffice to edit /etc/hostname. You have to reboot or run sudo hostname foo. Also make sure that there is a line in /etc/hosts for 'foo', either

127.0.1.1 foo

if foo has no network connectivity or gets an address via DHCP, or

<IP-address> foo

if foo has a static IP address.


Ubuntu fork bomb handling. Fork: Resource temporarily unavailable. Is it not a threat any more?

Yes and no.

Todays computers have a lot more memory and processing powers. That means there's a bigger chance that you'll run into the limits before exhausting RAM today than ten years ago.

In addition, you can, if you want to protect against this, set up limits on how many processes a user can run.

All in all this is most relevant on a multi user system. On a single user desktop, a fork bomb is not a disaster anyway. Worst case? Reboot.