After restoring minimized window it stays inactive (16.04 LTS)

This was a bug related to some conflicts in Compiz. I reinstalled Unity and reset compiz using

  dconf reset -f /org/compiz

followed by

  setsid unity.

It restarted the graphics interface and solved the problem.


00 02 * * * DISPLAY=:0.0 steam

or (see edit below*)

00 02 * * * DISPLAY=:0.0 /usr/games/steam

(Thank you to muru for giving me the clue to figure this out!) This line in cron will start Steam every night at 02:00 (2:00AM).

The breakdown is this: the first part is standard cron "minutes, hours, days (of the month), months, days (of the week)", so the 00 means at zero minutes past the hour; the 02 means at 2 on the 12 hour clock (2:00AM); and having * in the locations for days, months, and days of the week means to do it on every day of every week of every month.

The DISPLAY=:0.0 I think has something to do with activating the graphical user interface at coordinates on the desktop, but I'm not sure. It's needed to make the line work; that's all I know for sure.

And steam is Steam.

If I figure out how to stop Steam from cron I will put it up, but I haven't figured that out yet. Thanks to everyone for their help!

*EDIT: Okay, so weeks later for some reason the original line I gave above: 00 02 * * * DISPLAY=:0.0 steam stopped working suddenly. I tried this slight alteration to the line and it works: 00 02 * * * DISPLAY=:0.0 /usr/games/steam I have no idea why but try them both and see which works for you.

For Linux noobs like me, you can find the full path like in the new line for any command by typing which [command] in the terminal; for example which steam shows /usr/games/steam which is what I used to make the line work again.


Bulit-in DVD drive not working after loading a disc

Can you boot from a livecd? If you can put in a bootable disc and restart, it should show you if Ubuntu is the problem, or if the drive itself is not working properly.


evince reports gtk theme-parsing errors - how can I fix them?

A partial answer:

For the first kind of errors (and some other CSS-syntax-change-related errors), you can edit /usr/share/themes/Lubuntu-default/gtk-3.0/ and make batch replacements of the deprecated pseudo-element names or property names with the up-to-date names. That avoids the vast majority of the errors on the console  but not the last two that are listed in the question.


What is the difference between grubx64 and shimx64?

Typically, EFI/ubuntu/grubx64.efi on the EFI System Partition (ESP) is the GRUB binary, and EFI/ubuntu/shimx64.efi is the binary for shim. The latter is a relatively simple program that provides a way to boot on a computer with Secure Boot active. On such a computer, an unsigned version of GRUB won't launch, and signing GRUB with Microsoft's keys is impossible, so shim bridges the gap and adds its own security tools that parallel those of Secure Boot. In practice, shim registers itself with the firmware and then launches a program called grubx64.efi in the directory from which it was launched, so on a computer without Secure Boot (such as a Mac), launching shimx64.efi is just like launching grubx64.efi. On a computer with Secure Boot active, launching shimx64.efi should result in GRUB starting up, whereas launching grubx64.efi directly probably won't work.

Note that there's some ambiguity possible. In particular, if you want to use a boot manager or boot loader other than GRUB in a Secure Boot environment with shim, you must call that program grubx64.efi, even though it's not GRUB. Thus, if you were to install rEFInd on a Secure Boot-enabled computer, grubx64.efi could be the rEFInd binary. This binary would probably not reside in EFI/ubuntu, though; both it and a shim binary would probably go in EFI/refind. Also, as you've got a Mac (which doesn't support Secure Boot), there's no need to install rEFInd in this way; it makes much more sense to install rEFInd as EFI/refind/refind_x64.efi (its default location and name).

Note that the rEFInd documentation includes a whole page on Secure Boot. Chances are you won't benefit from reading it, user190735, since you're using a Mac. I mention it only in case some other reader comes along who's trying to use rEFInd in conjunction with Secure Boot.


Permission denied error in transmission after formatting drive to ext4

I suspect that /media/serier is owner by root and its permissions are 700 (rwx------). With those permissions, only root can descend into the folder. You need to set the execute bit on the folder, so you can enter it. To do so, execute:

sudo chmod o+x /media/serier

The previous command sets the permissions from 700 to 701 (rwx-----x). Now you can descend into it, but not read the folder as a regular user. That might be annoying if you use a file browser to get into that folder, so I recommend to set the read bit too. Of course, it does not make sense to grant the world more permissions to the group, so set the same bits for the group too:

sudo chmod go+rx /media/serier

The permissions will be set from 700 to 755 (rwxr-xr-x) and you can now descend into the directory and list the contents of it.


Unable to boot windows 8.1 after installing Kubuntu 14.04

I resolved the issue with the following command:

sudo update-grub2


How to install ubuntu ia a touch screen laptop

Have you tested the live CD? If that works, then installing it should be possible too. At least, it should not be the touch screen posing problems...

If you cannot install or even run the live CD, it might be because of UEFI with Secure Boot enabled on the device. Search the net for your device and if it has UEFI with Secure Boot enabled by default and find instructions on how to disable Secure Boot from within Windows.


How can I get my HP 15-ab143cl laptop to boot from USB?

Many thanks to David Foerster for his pointing me to the nomodeset trigger. Dozens of inquiries, and I saw nothing on that until he posted. It worked. It's now obviously an issue as to the machines' Nvidia/AMD setup and should be cured with driver updates. Very grateful for the help.


mv: cannot move `/home' to `/old_home': Device or resource busy

I maybe a little late but I hope my solution will help someone who comes here now. I think the author of https://help.ubuntu.com/community/Partitioning/Home/Moving forgot to mention that the step Moving /home into /old_home will work only if /home is NOT IN ITS OWN PARTITION. mv /home /old_home will work if home is just another folder. Not if /home has its own partition. If /home has its own partition, then your command mv /home /old_home will never work because fstab will mount that partition on boot and hence the error you are getting. If you have /home as a separate partition, I would suggest ignoring this step. You dont need a backup because when you move to your newer, bigger home partition your old /home partition will just sit there unmounted. Once you are satisfied with your newer home partition, you can format it and reuse the space.
So bottomline is if you have /home in its own partition and you followed the steps mentioned in the link above all you have to do is comment out the older home partition in fstab. Otherwise your newer home partition will never be mounted.
That's it. Hope it helps someone.
Thanks.


Is HP Deskjet advantage 3545 all-in-one printer compatable with Ubuntu 14.04 LTS OS?

It is supported by hplib driver set. You can download and install it with these commands:

wget http://prdownloads.sourceforge.net/hplip/hplip-3.13.8.run

sh hplip-3.13.8.run


Is there a good video for learning how to dual boot ubuntu and OS X

A quick search on YouTube brought this video up as the first search result. I can't vouch for how helpful or accurate it is though (the person who made it mentions in the video that they are setting up a dual boot with Ubuntu 11.04, which is pretty old).

This is a rather subjective question anyway, since there could be plenty of video tutorials available online for this sort of thing and it would come down to personal preference on which one you feel is most informative and helpful.


Install newer package version from trusty-backports

Found the answers here:

https://help.ubuntu.com/community/UbuntuBackports

To install:

$ sudo apt-get install ansible/trusty-backports

The link above contains information about stability and security support for Backports.


Why is Lubuntu reporting as "arch" in npm?

Nevermind, I just realised it's probably short for architecture (i.e. 32bit vs 64bit), so if I'm right with my OSX guess, I suppose I just answered my own question.


Ubuntu 20/18 & Windows10 dual boot with AMD & NVIDIA cards - stuck at boot screen and not finding drivers

I recommend that you use the latest Ubuntu version(currently 21.04) and latest kernel available for the newer laptop such as x13 flow.
You shoud manually add green sardine firmware(for AMD cezanne internal GPU) to /lib/firmware/amdgpu if it does not exist there.


gksudo Nautilus only : "Cannot load supported server method list. Please check your gvfs installation"

I got this error when trying to run Nautilus outside a desktop session - I'd just connected in with "ssh -X ..." from another host and typed "nautilus &".

If I run:

dbus-launch nautilus &

Then the error goes away and it all works.  This makes sense as GVFS needs a DBUS session context, so I'm happy this is expected behaviour on my system.  If I was seeing this same error when running Nautilus on a regular desktop login then I'd suspect a configuration problem, but it would still be worth looking at DBUS as a culprit.

Maybe the developers could make that message more helpful!


I am unfamiliar with GJS (definitely worth looking into) however, if there is a GJS command line interface then dbus-monitor can track the d-bus by any message attribute.

Quoting man dbus-monitor:

EXAMPLE
       Here  is an example of using dbus-monitor to watch for the gnome typing
       monitor to say things

         dbus-monitor "type='signal',                          \
                       sender='org.gnome.TypingMonitor',       \
                       interface='org.gnome.TypingMonitor'"

and

   In order to get dbus-monitor to see the messages you are interested in,
   you should specify a set of watch expressions as you would expect to be
   passed to the dbus_bus_add_match function.

and quoting D-Bus: Message bus APIs:  dbus_bus_add_match function:

   Possible keys you can match on are type, sender, interface, member,
   path, destination and numbered keys to match message args
   (keys are 'arg0', 'arg1', etc.). Omitting a key from the rule indicates
   a wildcard match. For instance omitting the member from a match rule but
   adding a sender would let all messages from that sender through regardless
   of the member.

Note that the sender is identified in the output of the following

The problem of too much output from

         dbus-monitor "type='signal'"

such as

...
signal sender=:1.47 -> dest=(null destination) serial=1679 path=/org/ayatana/bamf/application311805604; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
   string "org.ayatana.bamf.view"
   array [
      dict entry(
         string "Active"
         variant             boolean true
      )
   ]
   array [
   ]
...
signal sender=:1.51 -> dest=com.canonical.Unity.Panel.Service serial=1674 path=/com/canonical/Unity/Panel/Service; interface=com.canonical.Unity.Panel.Service; member=ReSync
   string "libappmenu.so"
...
signal sender=:1.51 -> dest=com.canonical.Unity.Panel.Service serial=1681 path=/com/canonical/Unity/Panel/Service; interface=com.canonical.Unity.Panel.Service; member=ReSync
   string "libdatetime.so"
...

can be pruned by, or with combinations of:

dbus-monitor --profile "type='signal'"
dbus-monitor  "type='signal'" | grep '...some pattern...'
dbus-monitor  "type='signal', interface='...'"  or another key instead of interface

etc.

The last variant might be most applicable to find a signal on the d-bus "that implements the interface".

Bookmark:
Gnome Shell JS - Listen for DBus signal on an interface for any path


Can someone please tell me how to make a bootable USB-Stick with UbuntuStudio 19.10 Eoan Ermine?

In your case maybe you can't run that Linux for Eee PC, but anyways, To make a bootable flash disk:
Command line version:
you need to plug your flash disk into your laptop and then run sudo mount to see
which device is related to it (for example it can be /dev/sdb or something else)
dd if=Your_.iso_of_UbuntuStudio of=/dev/sdX bs=4M conv=fdatasync status=progress

again you need to change the X with the thing you saw in sudo mount output

GUI Version:
there are some apps that helps you to make a bootable flash disk with your distro:
unetbootin
https://unetbootin.github.io/
Etcher
https://www.balena.io/etcher/

As a note, there are other applications for this purpose, you can always search on google like this name_of_the_application alternativeto then you will find a great site called https://alternativeto.net/ that helps you find alternative software that are free or open source.


Mounting issue with Mac-host and Ubuntu-guest shared folder on VirtualBox

Found the answer over here: How to share the files from Host to Guest in virtual box? Host-ubunutu/Guest-ubuntu.  I had omitted to log out and log back in again.  Doing so made the files show up in the right place.


USB stick not avaliable after rebooting from Live session

For those who might be interested, I've found the culprit: When you shutdown a live session, Ubuntu ejects its media. for an USB stick, this means powering down the USB port.

A workaround is to edit /boot/grub/grub.cfg, and change the line:

linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash --

to add the parameter noeject (noprompt is also useful, so it does not ask for ENTER to eject CD when shutting down)

Like this:

linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash noeject noprompt --

Presto :D


yes, if you have Ubuntu Live CD/DVD/USB then you can remove everything from your hard-drive and make it as it was a new.

Follow these steps:

Boot from your Ubuntu Live CD/DVD/USB
Chose Try Ubuntu options instead of Install Ubuntu
Once starts open gparted from your dash or open terminal (CTRL+ALT+T) execute this:

sudo gparted

When gparted starts delete the partition where Ubuntu is installed or delete all partitions and make a new one.
Shutdown your system from Try Ubuntu session.

Thats all.. You have removed each and every bit. Reply if you want further assistance.


How do I get AWN back? (Get into a terminal if all panels and docks are gone)

You can usually use CTRL+ALT+T to open a new terminal, but I suspect that it wont work if gnome-panel is disabled.

You can use CTRL+ALT+F1 to move to a virtual terminal. You will nedd to log in, and then type this command.

DISPLAY=:0 gnome-panel &

Afterwards you should use CTL+ALT+F7 (sometimes it's F8) to get back to the GUI, the panel must be there. You should be able to restore your system now.


How do I format custom crontabs in /etc/cron.d/?

The format used for the crontab file /etc/cron.d/testing is correct. (It should be, it was copied from /etc/cron.d/anacron)

The problem was that I modified it from Windows and probably messed up the line endings. I re-cloned anacron, edited it on Ubuntu, and everything worked.

(I still don't know where the error message, if any, was logged.)


Installed Ubuntu alongside Windows 7, GRUB isn't boot manager

You seem to have EFI. In which case, this is a very simple fix:

Enter your BIOS settings. You can usually get in by hitting the Esc, F1, F2, F7, F12, or the Del key. Check your computer's documentation for the specific key.
You want to navigate to the "Boot Order" menu.
Move "GRUB" to be beginning of the order, before the Windows Boot Manager.
Save and Quit from the BIOS.
Enjoy Ubuntu.

You may need to disable SecureBoot, however that is rather unlikely. There should be an option somewhere.


GParted will not start, corrupt GPT table

The sgdisk -v error output summarizes the problem. Basically, the disk is roughly half the size that the GPT data structures claim it is -- the disk's actual size (as determined by the Linux kernel) is 250,069,680 sectors (119 GiB), but the GPT claims that the disk is 457,179,647 sectors (218 GiB).

This problem might occur if:

You pulled a single disk out of a RAID array and tried to use it individually.
You're using motherboard-based software RAID (popularly, but somewhat inaccurately, called "fake RAID") but either:

You haven't activated the appropriate drivers in Ubuntu
You access the /dev/sd? devices rather than device files in /dev/mapper/; the latter is required when accessing this type of RAID.

You've accidentally set the Host Protected Area (HPA) feature on the disk. You can check this by typing sudo hdparm -N /dev/sda (or similarly for other disks). If the results indicate that HPA is active, you can reset it by adjusting the number of visible sectors with the same command, but passing the number of sectors to the -N parameter. (Type man hdparm and search for "protected" to find the entry on this feature.)
Your disk hardware has gone south and is reporting the wrong values. This is most often the case with USB flash drives.

You haven't given enough context to know which of these explanations is most likely. There may also be other possible causes that I've forgotten or that I simply don't know about.


To get to any directory you would want to use the 'cd' command like so:

cd /usr/bin

However I don't believe /usr/bin is where you would want to go if you are looking to install themes for IDLE. That is home to the python interpretor itself.

I believe you need to put it in your .idlerc directory. The path to said directory varies but it should just be in your home folder.

Here is a quick little blog post that talks about installing themes.
IDLE themes

On a bit of a tangent, if you are looking for a quick and dirty little tutorial on some of the most basic and useful commands on the linux command line I would check out the command line crash course. Really easy way to get acquainted with the cli.


If you haven't found an answer yet, this should work:

MegaCli64 -LDRecon ShowProg L0 -a0

This website has a lot of useful MegaCLI commands: http://artipc10.vub.ac.be/wordpress/2011/09/12/megacli-useful-commands/


Windows 8.1 Dual Boot Cannot resize Windows Partition

Try maybe from windows, I don't recall the software exactly, but there are a few free ones out there that can let you increase and decrease C drive with no problem by moving around these file.


Force Chromium to use Dolphin File Manager to save a download

Install plasma-browser-integration
sudo apt install plasma-browser-integration

Then install the plasma integration extension, and restart Chromium.

Image: Qt file manager widget in action in Kubuntu 20.04, with all bookmarked folders.

I have verified that this answer works for apt version of chromium and also firefox (the same plasma-browser-integration package and the same Plasma Integration add on). OP reported that it does not work with the snap version of Chromium, which Ubuntu ships. One can either can install chromium without snap instead, or open a bug at Launchpad to let the Ubuntu's chromium packaging team know about this.
To remove the snap version of chromium, enter the command sudo snap remove chromium.


How to close, minimize, and maximize a specified window from Terminal?

There are two important tools to manipulate windows from cli; xdotool and wmctrl. Both tools overlap each other in functionality, but the most important commands referring to your question:

In an (no doubt incomplete) overview, listing the commands I use most:

Closing a window

wmctrl:

wmctrl -ic <window_id>

Minimizing a window

xdotool:

xdotool windowminimize <window_id>

Un- minimizing a window

wmctrl:

effectively un- minimizing is done by:

wmctrl -ia <window_id>

I mention effectively, since the command moves to the corresponding desktop, unminimizes and raises the window, but the command also does that on windows which are not minimized.

Maximizing a window

xdotool:

xdotool windowsize <window_id> 100% 100%

wmctrl:

wmctrl -ir <window_id> -b add,maximized_vert,maximized_horz

Un- maximizing a window:

wmctrl -ir <window_id> -b remove,maximized_vert,maximized_horz

Notes

Both xdotool and wmctrl are not on your system by default:

sudo apt-get install xdotool wmctrl

To run any of the commands on the currently active window:

for wmctrl commands, remove the -i option, replace <window_id> by :ACTIVE:
for xdotool commands: replace <window_id> by $(xdotool getactivewindow)

In many cases, commands can be run by using either the window id or the window name. The -i option in wmctrl tells wmctrl to use the window id. I'd suggest not using the window's name as an identifier, to prevent name clashes. It happens more easily then you'd expect.
From my own experience, using maximizing in a script;
Using wmctrl to maximize / unmaximize can be a bit buggy on both Unity and Gnome, while the xdotool option works more robust in my experience.
In most scripts, I end up in using a mix of both wmctrl and xdotool.

More info on man wmctrl and man xdotool (mainly the section: WINDOW COMMANDS).


Windows has LONG had problems with extended and logical partitions. I've seen reports as far back (at least) as Windows XP of it trashing logical partitions in various creative ways. It seems likely to me that the Windows upgrade process ran afoul of this amazingly-unfixed long-term bug.

Before you re-install, especially if you have important user data in your Ubuntu installation, you might try running TestDisk from the Ubuntu installer in "try before installing" mode. Your fdisk output makes it clear that there's a big gap in your partition table, so chances are the entry for your Ubuntu partition was simply deleted, and the filesystem itself is intact. There's a good chance that TestDisk will be able to recover the partition. After that, there's a small chance that GRUB will just start working. If not (which is more likely), Boot Repair should be able to re-install it and everything should start up again.

EDIT:

Your post-TestDisk Boot Info Script output shows that what had been two Windows primary partitions (1 and 3) are now your first two logical partitions (5 and 6), and your original partition 2 is now missing. Windows can't boot from a logical partition, which may be what's causing your Windows boot problems -- or it could be that /dev/sda2 was your Windows boot volume, in which case the fact that it's missing is obviously not optimal. You can correct the primary-to-logical problem with my FixParts program (see the just-linked-to documentation for detailed usage instructions). This is part of the gdisk package in Ubuntu. Thereafter, I recommend you use fdisk in Ubuntu to re-create your original /dev/sda2 by creating a new partition from sector 718,848 to 541,059,589. Alternatively, you can try using TestDisk again, but you must be careful to tell it which partitions should be primary and which should be logical, so that it doesn't make the same mistake again.


Ubuntu 11.04 on a ARCHOS 101 Internet Tablet?

Support for the Archos 101 Internet Tablet in Ubuntu is a work-in-progress.  The wiki page describing the current state of these efforts is at https://wiki.ubuntu.com/ARM/OMAP/Archos101it

Note that due to the relatively low memory available for this device, support is never expected to be wonderful: those who do not currently own such a device would be better served by something with a bit more RAM (Archos's G9 series is one example).

Users who have installed Ubuntu on devices with 4GB or 8GB of local storage have expressed a sense of confinement in terms of available storage for common data: while the environment works, devices with 16GB of local storage have received more positive reviews.

You will not be able to use Unity in Ubuntu 11.04 on this device: Unity support for GLES is too new: while it is hoped that it can be included in Ubuntu 11.10, this has not yet been confirmed.

I am not personally familiar with the bootloader configuration for the Archos tablets, but people with similar devices have reported that dual-booting is difficult.  In the special circumstance of dual-booting between Android and Ubuntu, you will want to have completely different areas of storage used for each system, which will expand your storage requirements.


Mouse cursor spinning forever after startup

Try pressing ctrl alt del, then go to task manager, then open processes.

Watch the running programs and watch the cursor.

When the cursor spins one of the programs running will switch on in the running processes list and when the cursor stops spinning the program will disappear from the running processes list.

In my case it's the HP wireless printer which goes on and off in the running processes list.

I don't know a workround but this method might show you what is causing the annoyance.

Regards and good luck

Norman


Unity lock screen not working (Ubuntu 16.04)

The only answer I could come up with was based on this answer:
Create New user to Restore missing lock screen

Basically, It states that you need to create a new user and migrate your home folder data to that user. It's not the best solution, but it seems to be the only working one I could find.

There was one more answer that I included in the comments above that you may want to check. You would need to check the passwordless login group and see if your username had been inadvertently added to that group. If it had, you would need to remove it with sudo gpasswd -d <USERNAME> nopasswdlogin. Also had you check lightdm and a few other things, but those solutions didnt seem to lead anywhere. Anyone else facing this problem should probably still start there though.


Cannot install Wine, error message is not descriptive of the problem

Wine is on the Universe repository, which should be enabled by default. Check if it is through Software & Updates > Ubuntu software > Community-mantained free and open-source software (universe). If it's not, tick the box.

Afterwards run sudo apt-get update and you can install wine.

Alternatively, there is also a PPA avaiable containg the latest unstable version. To install this, execute the following command:

sudo add-apt-repository ppa:ubuntu-wine/ppa

Run sudo apt-get update again afterwards.

After doing either of these two just execute sudo apt-get install wineto install wine.


How to log output of apt-get upgrade to .txt file

These logs are already generated automatically.

You can view the files in /var/log/apt.

There is a history.log which logs all executed apt commands, like this:

Start-Date: 2016-07-06  14:29:04
Commandline: apt upgrade
Requested-By: bytecommander (1000)
Upgrade: tzdata:amd64 (2016d-0ubuntu0.16.04, 2016f-0ubuntu0.16.04)
End-Date: 2016-07-06  14:29:06

The file term.log on the other hand logs the exact terminal output of those commands, like this:

Log started: 2016-07-06  14:29:04
(Reading database ... ^M(Reading database ... 5%^M(Reading database ... 10%^M(Reading database ... 15%^M(Reading database ... 20%^M(Reading database ... 25%^M(Reading database ... 30%^M(Reading database ... 35%^M(Reading database ... 40%^M(Reading database ... 45%^M(Reading database ... 50%^M(Reading database ... 55%^M(Reading database ... 60%^M(Reading database ... 65%^M(Reading database ... 70%^M(Reading database ... 75%^M(Reading database ... 80%^M(Reading database ... 85%^M(Reading database ... 90%^M(Reading database ... 95%^M(Reading database ... 100%^M(Reading database ... 302987 files and directories currently installed.)
Preparing to unpack .../tzdata_2016f-0ubuntu0.16.04_all.deb ...
Unpacking tzdata (2016f-0ubuntu0.16.04) over (2016d-0ubuntu0.16.04) ...
Setting up tzdata (2016f-0ubuntu0.16.04) ...

Current default time zone: 'Europe/Berlin'
Local time is now:      Mi 6. Jul 14:29:06 CEST 2016.
Universal Time is now:  Wed Jul  6 12:29:06 UTC 2016.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

Log ended: 2016-07-06  14:29:06

Please note that the logs get rotated automatically. Older logs get compressed and stored as e.g. history.log.1.gz.

However, if you want to manually log them, including the apt update command as well, you can use Bash's output redirection syntax:

( date && apt-get -q update && apt-get -qy upgrade ) &>> /var/log/apt/mylog

This redirects the output (both STDOUT and STDERR) of date, apt-get -q update and apt-get -qy upgrade and appends it to the file /var/log/apt/mylog. You may of course also pick a different file name and location.


Automatically starting a program when another one starts

Create a bash script (filename.sh) like this

#!/bin/bash

app1 &
app2 &

then change its permissions from a terminal

sudo chmod 0775 filename.sh

Now you can run your script like this

./filename.sh

Then, if you need it, you can even create a launcher targeting the script, which is going to start the two programs at the same time.


Don't wake screen on notifications when locked

Assuming you are using Ubuntu 18.04 and up, or some other version of Ubuntu with the GNOME 3 desktop, you can search for Settings -> Notifications and turn off Lock Screen Notifications.


I tried, but the same issue:

dus 12.3.2
Live drive, that is booted from: /dev/sda
cands=1
sdb
SanDisk_Ultra_Fit
114,6G
usb
USB or memory card
p_target: target=/dev/sdb
Restore  /dev/sdb
to an MSDOS partition table and a
partition with a FAT32 file system
MODEL     NAME   FSTYPE LABEL     SIZE
Ultra_Fit sdb                   114,6G
          ├─sdb1 vfat             512M
          └─sdb2 ntfs   SanDisk 114,1G
restore
/dev/sdb
-----
Trying to unmount partitions if mounted on the target device
umount: /dev/sdb: not mounted.
umount: /dev/sdb1: not mounted.
umount: /dev/sdb2: not mounted.
--------------------------------------------------------------------------------
gpt_zap: done
dd: failed to open '/dev/sdb': Read-only file system
Warning: Unable to open /dev/sdb read-write (Read-only file system).  /dev/sdb has been opened read-only.
Warning: Unable to open /dev/sdb read-write (Read-only file system).  /dev/sdb has been opened read-only.
Error: Can't write to /dev/sdb, because it is opened read-only.
Warning: Unable to open /dev/sdb read-write (Read-only file system).  /dev/sdb has been opened read-only.
Warning: Unable to open /dev/sdb read-write (Read-only file system).  /dev/sdb has been opened read-only.
Error: You requested a partition from 1049kB to 123GB (sectors 2048..240254975).
The closest location we can manage is 1048kB to 1048kB (sectors 2047..2047).
Warning: Unable to open /dev/sdb read-write (Read-only file system).  /dev/sdb has been opened read-only.
Warning: Unable to open /dev/sdb read-write (Read-only file system).  /dev/sdb has been opened read-only.
Error: Can't write to /dev/sdb, because it is opened read-only.
mkfs.fat 4.1 (2017-01-24)
mkfs.vfat: unable to open /dev/sdb1: Read-only file system
 Failed :-(
  mk_msdos: could not create MSDOS partition table and FAT file system
Wait 5 seconds and a little more ...
Warning: Unable to open /dev/sdb read-write (Read-only file system).  /dev/sdb has been opened read-only.
Warning: Unable to open /dev/sdb read-write (Read-only file system).  /dev/sdb has been opened read-only.
Model: SanDisk Ultra Fit (scsi)
Disk /dev/sdb: 123GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End    Size   File system  Name                  Flags
 1      1049kB  538MB  537MB  fat32        EFI System Partition  boot, esp
 2      538MB   123GB  122GB  ntfs                               msftdata

MODEL     NAME   FSTYPE LABEL
Ultra_Fit sdb
          ├─sdb1 vfat
          └─sdb2 ntfs   SanDisk
p_clean:
clean if necessary and quit


Install Oracle/Sun Java. See How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE? (and others) for details.

In a terminal session, run : sudo update-alternatives --config java

You will get a list that looks something like this:

As per the instructions at the prompt, enter the number corresponding to the version you want to be your system default Java implementation.

Once you've done that, unless there are configuration settings directing otherwise for particular applications (quite common), the Java version you've chosen will be your global system default.

I would definitely not recommend removing entirely the OpenJDK. There are any number of modules and applications that may be expecting OpenJDK to be there and are configured to use it - it's the default Java that comes with Ubuntu. Removing it may cause some serious problems. Leave it in place for those modules that expect it, because it is the default. You have set the default to what you want, and you can control the applications you are using to use that setting (in fact you can do it on an application by application basis without changing the system default at all) - but not everything is under your control, at least not without some serious expertise and mucking around.


That is not something to be answered in one post. The dhcpcd package will install a DHCP server, which can be configured in the file /etc/dhcp3/dhcpd.conf. A basic config looks like this (make sure you fill in the correct IP addresses):

# Configuration for my LAN
subnet 192.168.200.0 netmask 255.255.255.0 {
   option domain-name-servers 192.168.200.100;
   option routers 192.168.200.1;
   option ntp-servers 192.168.200.100;
   option subnet-mask 255.255.255.0;
   option broadcast-address 192.168.200.255;
   range 192.168.200.101 192.168.200.200;
}

See https://help.ubuntu.com/community/dhcp3-server for more info.

A well-known DNS server is bind, which is available in the bind9 package. Its configuration is done in /etc/bind/named.conf and /etc/bind/named.conf.options. In its simplest (DNS forwarding form) the latter file looks like this:

options {
directory "/var/cache/bind";
     forwarders {
          // list the IPs of your ISP's DNS servers here
          xxx.xxx.xxx.xxx;
          yyy.yyy.yyy.yyy;
     }
 }

If you want bind to act as DNS server for your own domain name, configuration gets more complicated.
See https://help.ubuntu.com/community/BIND9ServerHowto for more info.

Also note that the above configuration is for IPv4. For IPv6 you likely needs some additional settings.

Alternatively the dnsmasq package provides a simple DHCP and DNS server, see https://help.ubuntu.com/community/Dnsmasq.


What happens if the file system in /etc/fstab entries is deleted by the user?

Generally speaking, if the entry isn't your root, you will be prompted to continue, I usually get an unusual loading screen, but you will boot.

I've never tried removing the root entry from the fstab, but if my escapades in NFS roots are anything to go by, you'll probably get a kernel panic, or at best, a drop to your initramfs busybox CLI to manually mount your root partition.


"
  By far the simplest way to handle this now is with Y-PPA-Manager (which now integrates the launchpad-getkeys script with a graphical interface).

  To install it, first add the webupd8 repository for this program:

  sudo add-apt-repository ppa:webupd8team/y-ppa-manager
  Update your software list and install Y-PPA-Manager:

  sudo apt-get update
      sudo apt-get install y-ppa-manager
  Run y-ppa-manager (i.e. type y-ppa-manager then press enter key).
  When the main y-ppa-manager window appears, click on "Advanced."
  From the list of advanced tasks, select "Try to import all missing GPG keys" and click OK.

  You're done! As the warning dialog says when you start the operation, it may take quite a while (about 2 minutes for me) depending on how many PPA's you have and the speed of your connection.
  "

--How do I fix the GPG error "NO_PUBKEY"?


Why does my application behave differently with Unity?

I noticed in Unity that the menu bar seems to be "redirected" to
  another place outside of my application GUI, to a bar at the top of
  the screen.

I think what you are refering is the default behavior on Unity. Unity uses a global menu (the one you see at the top) similar to what is seen on OSX.

If you want this can be disabled in your application, but I think that is not very recommended: anyone using Unity will expect the menu not on the window, but at the top.

Regarding the entry box I would guess that it may be a problem with the Ubuntu theme. To check it try to change the Ubuntu theme (under "System Settings" -> "Appearance") and see if the box stays the same.

Edit

I was curious and looking at the code it seems that the problem is in your application.This seems to fix the issue (I can't enter a newline on that box, but I can't say if this is normal or a bug). Those values (100, 200) were selected randomly so this may not be the best way to solve that.


Trouble to run commands after changing user password with home directory encryption

After some more research I found this answer here in AskUbuntu:

Will changing password re-encrypt my home directory?

What I had to do was:

ecryptfs-rewrap-passphrase ~/.ecryptfs/wrapped-passphrase


Dell Inspiron 7567 randomly disconnecting from network

I had the same issue with an Inspiron N7110. After doing significant digging, I think I found the culprit. It's the 2-in-1 Network/Bluetooth card. While I can't promise its going to work, after making these changes it functions perfectly now.

First, stop the service:
sudo systemctl stop bluetooth.service

Then disable it:
sudo systemctl disable bluetooth.service

Check:
sudo systemctl status bluetooth.service

Courtesy of Ivan Temchenko found here: Best way to deactivate Bluetooth on system startup? (with systemd and not upstart)


If you want this to nest so each server runs against each IP (i.e. run 9 times) you can:

for ip in $pureips; do
    for server in $pureservers; do
        echo "$server | $ip "
    done
done

If you want to just track each item (eg run 3 times, running the first ip with the first server, the second with the second, etc) you can use an iterator and call the index of the array manually. But that does mean we'll also need to convert the strings into arrays first:

read -a pureips <<< "10.3.1.111 10.3.1.112 10.3.1.114"
read -a pureservers <<< "a b c"

for ((i=0; i<=${#pureips[@]}; i++)); do
    echo "${pureservers[i]} | ${pureips[i]}"
done


Making a new distro without X but with Ubiquity

If you do not want to use X, the only option left is the kernel framebuffer.

What you want to do is not easy and does not make much sense for just 1 reason, the VGA drivers for the linux world of today are mostly written for X, and when i say mostly i mean the 99.9% of the total amount of VGA drivers.

This is an introduction to the framebuffer https://wiki.ubuntu.com/FrameBuffer

The new kid on the block is Wayland but it does not have too much attention, it lacks of driver support.


Prevent USB Drives from auto-remounting after remove

Valid for this Ubuntu at least:

$ lsb_release -d
Description:    Ubuntu 14.04.1 LTS

I have found that:

$ udisksctl mount --block-device /dev/$device

... will mount /dev/xxx in the same style as automount,
that is - in /media/$USER/Disk_Label-or-UUID/ with the last level dir auto-created.

$ udisksctl unmount --block-device /dev/$device;

... will umount the above, but not '-eject' memory card/USB reader content.

$ gvfs-mount --eject "file:///media/$USER/DISK_LABEL"

... lastly appears to be equal to 'Safely remove' or 'Eject' - and that WITHOUT an immediate re-mount.

Note:
    $ udisksctl power-off --block-device /dev/$device;
... would otherwise be a 'natural' option, but is hampered by an immediate re-mount.

EDIT --- you could use this script to "umount all" without having to dig out the names:

#! /bin/bash
#
for device in $(mount | grep "/media/$USER/" | cut -d" " -f1); do
        echo Unmounting $device
        udisksctl unmount --block-device $device
done

if you prefer eject, change the -f1 into -f3 in the cut command and the line with udiskctl with

gvfs-mount --eject "file://$device"

(I think --- you can have problem with correctly quoting labels with blanks in it; and you'll have warnings if the device has multiple partitions mounted).

$ lsblk

... will display all the available block devices (except ram disks, no sudo required).
RAM and loop --> lsblk --all .

How do I "automount" a labelled disk?

Bring up the Dash (hit the 'Super' key) and type 'startup appl' and 'Startup Applications' should appear, click on it.
Click Add and type anything you want in 'Name' and 'Comment' fields. Then fill in 'Command' with your version of:

/bin/bash -c '/bin/sleep 5 && /usr/bin/udisksctl mount -b /dev/disk/by-label/GreenWD_3TB'

... where /dev/disk/by-label/GreenWD_3TB is anything suitable you find from
the display of ls -lR /dev/disk/* | less

More:
How to access gvfs mounts from command line?
How to mount drive in /media/userName/ like nautilus does using udisks


Ubuntu 16.04 Errno 5 Input/output error when installing using USB

After 2 days of trying, I found a solution for my problems (similar to yours). I tested on different OSes running on different computers (win7 32-bit & win8.1 64-bit), different USB, different Ubuntu version (14.04/16.04 32-bit/64-bit). All of them return the same error at the same process. Although checking disk before installing warns that splashfs file has an error, errno 5 is not from there.
Finally, I found a solution: Set partitions for the USB you want to install Ubuntu onto as shown.

The problem could be from the first FAT32 partition for boot loader. The size of that partition should be lower than 256MB. If you set bootloader in another disk, this partition could be ignored.
The free space is used to create a normal partition which stores data after finishing installation of Ubuntu.


Adaptive multi GPU fan control and overclocking software

Look into installing thermald and writing yourself a custom thermal-conf.xml file. With it, you have ultimate control over the cooling system, including fans, power throttling, RAM throttling, and more.

Search here on askubuntu for thermald and you'll find some of my, and others, work with this software.

If you install thermald, you can also man thermald and man thermal-conf.xml for more details and examples.


Google Voice and Video: Video is not supported on this OS

You need to use something like Empathy (sudo apt-get install empathy in the command line or via Applications -> Ubuntu Software Center) or Pidgin (sudo apt-get install pidgin in the command line or via Applications -> Ubuntu Software Center) which are both IM application for the desktop that support a wide variety of protocols (Google Voice and Video included) in order to connect to the Google Talk servers and other gTalk user.

Empathy is the default IM client for Ubuntu and should already be installed on versions 10.04 and higher.

It appears you can download install the Linux plugin for Google Chat here ensuring you select the proper architecture. I was unable to test it, but the download and installation on 10.04 was clean.


Above solutions didn't work for me however...

The fix for me for this (I had the problme for months!) was kinda surreal and like most folks I didn't believe it until I did it:

Turns out some MS mice have a scrollwheel bug.

  Try unplugging the USB cable / dongle then plug back in.

That's it!

Now my mouse moves normally (one line at a time, not half a screen!)

This worked even though I use a 4-port screen/keyboard/mouse KVM box ! Yeah!


What is alternative to Unity's lens for Gnome Shell?

I was very happy with gnome-do, but with Ubuntu Quantal I've got some problems with the hotkeys: I had to set the activation hotkey on every new session and it was everyday.

In 2 days I was looking for a solution and found more than that: Meet Synapse – the super fast new GNOME Do replacement

To install it, just the commands above:

sudo add-apt-repository ppa:synapse-core/ppa
sudo apt-get update && sudo apt-get install synapse

Talking about the plugin usage, that @Evandro Silva mentioned, it's possible with Sypase too.

P.S.: You can found more information and some snapshots in the website that I mentioned. I took the commands from there.


Eog how to control delay between slides in a slideshow from command line?

EOG has 5 seconds time delay between the slides in fullscreen mode. This parameter can be edited with dconf, schema name: org.gnome.eog.fullscreen, key seconds. Or using gsettings:

gsettings set org.gnome.eog.fullscreen seconds N

where N is new interval. 0 disables automatic browsing.
Also the same settings can be adjusted in EOG menu, in Edit > Preferences | Slideshow.


Find uninstalled aptitude package which provides command

For installed packages
That's a job for dpkg-query.
dpkg-query -S /path/to/file

gives you the name of the package which installed the matched file. You'll want to use the exact path to get an output without clutter, luckily /sbin/ifconfig like in your case can be easily retrieved with which:
$ dpkg-query -S $(which ifconfig)
net-tools: /sbin/ifconfig

Reversely, dpkg-query -L PACKAGENAME prints a list of files installed by the given package, e.g.:
$ dpkg-query -L net-tools | grep ^/sbin/
/sbin/nameif
/sbin/ipmaddr
/sbin/plipconfig
/sbin/ifconfig
/sbin/route
/sbin/mii-tool
/sbin/iptunnel
/sbin/rarp
/sbin/slattach

See man dpkg-query for more.
For not yet installed packages
apt-file provides some options we can use to get rid of the clutter output:

-l, --package-only
    Only display package name; do not display file names.

-x, --regexp
    Treat pattern as a (perl) regular expression. See perlreref(1) for details.
    Without this option, pattern is treated as a literal string to search for.

Therefore, to search for a command's package the following line can be used:
apt-file -lx search "/COMMAND$"

To make it easier let's define a function:
$ findpkg() { apt-file -lx search "/$1$";}
$ findpkg ifconfig
net-tools

See man apt-file for more about this command and perldoc.perl.org for an introduction on perl regular expressions.


Printers Always Print Pages In Reverse Order

If you go through the menu to "System > Administration > Printing" you'll see a list of printers you have install in your machine. right-click on one of them, i.e. the default one, and select "properties". Now on the left you have a list select "Job options" and hit the "More" button to extend the list of options. On "output order" if it is normal select reverse and try to print. This might change the order (reverse it) and if, as you claim, your printers print the first page first, the reverse order should now print it last =)


UFW blocking connection despite it beeing configured to allow it

I found the solution to the problem.

What I didn't mention was that both applications run inside a Docker container.
Apparently Docker directly alters the iptables. To make it work with ufw it is necessary to forward all Docker traffic running this command ufw allow in on docker0.


How to use script parametr(folder path) as a variable?

Use:

#!/bin/bash
find "$1" -size 0 -type f -delete

You can also do:

#!/bin/bash
cd "$1" && find . -size 0 -type f -delete


Is installing LXDE in ubuntu is equivalent to installing a fresh copy of Lubuntu?

There are packages that provide the LXDE desktop environment for an Ubuntu system that is already installed without LXDE. Usually, the best one to install is lubuntu-desktop. This does give you the same software that you'd have if you installed Lubuntu from scratch. But it does not uninstall the other software present on your system, and it does not reset settings, or clear out users' home directories, or repartition, or any of the other things that might happen when actually installing Lubuntu (or Ubuntu or any other Ubuntu derivative).


Virtualbox static IP to windows VM on ubuntu host

Try to change the subnet mask to 255.255.255.255! You're not configuring that Windows VM to use a whole subnet, but only one address, right?

http://www.howtogeek.com/howto/19249/how-to-assign-a-static-ip-address-in-xp-vista-or-windows-7/

After all settings are correct, the Windows firewall could be the blocking issue.


We've seen a problem with similar symptoms reported as https://bugzilla.gnome.org/show_bug.cgi?id=699625

There, the clipboard link grabbing of jdownloader continued to increase the memory usage of GIMP. If you use this tool, or something else that accesses the clipboard (KDE's klipper used to cause the same, IIRC), then you might be able to work around the problem by disabling those.

Whether the problem is in GIMP or GTK+ - the UI framework - has not been determined yet.


GPT detected. Please create a BIOS-Boot partition

You create a BIOS-Boot partition with a bios_grub flag partition according to these links,

help.ubuntu.com/community/DiskSpace#BIOS-Boot_or_EFI_partition

help.ubuntu.com/community/Installation/UEFI-and-BIOS/stable-alternative#Create_a_partition_table

If you want to install Ubuntu on a GPT disk (you can check it via the 'sudo parted -l' command), you will need either an EFI partition (if your BIOS is set up in EFI mode) or a BIOS-Boot partition (if your BIOS is set up in Legacy mode).

BIOS-Boot partition:

Mount point: none
Type: no filesystem
Description: the BIOS-boot partition is a container for GRUB 2's core. It is necessary if you install Ubuntu on a GPT disk, and if the firmware (BIOS) is set up in Legacy (not EFI) mode. It must be located at the start of a GPT disk, and have a "bios_grub" flag.
Size: 1MB.


pre-installed apps and Unity Dash are gone

You may try to delete the Software Centre Cache. Try to paste the command below on the terminal.

rm ~/.cache/software-center -R

Then you may want to reset unity to try to rebuild the cache.

unity --reset &


What could "reject due to mismatch with WPA/WPA2" in output of wpa_supplicant mean?

According to this article no spaces in your ssid might help.

https://android.stackexchange.com/questions/1494/wifi-wont-connect-when-ssid-has-space-character

When I saw spaces in your ssid it struck me odd so I googled whether its allowed, it is, but from what I read it can cause issues. Above  link case in point.


Can't start apache2 with error "bus error"

I was getting (core dumped) when starting httpd because my /var/log partition was full.  Removing old/large apache logfiles allowed me to start the service without the specific error.


Yes, you can. Search for Gparted in the Unity Dash and use it to resize your partitions. Please consider searching first, though. There are many tutorials on Google and apparently some threads already made on this website.


Black Screen after upgrading from 14.04 LTS to 16.04.1 LTS

First of all try to open in command line mode. You can do that by pressing Ctrl+Alt+F2. You will be asked to login with your username and password.

Once you are logged in then you can check your files, for instance type ls to see files and folders list.

Now try this :

sudo service lightdm stop
sudo apt-get update
sudo apt-get install gnome-shell
sudo apt-get install ubuntu-gnome-desktop


I don't know offhand how Ubiquity for 17.10 would run from a boot of Ubuntu 17.04. Even if you use chroot, you'll still be running the older kernel and have lots of 17.04 stuff running in the background. You could always try this, but you might be the first person in the world to do so, and with little reason....

Instead of doing it this way, why not simply boot the 17.10 installer directly? There's no reason this wouldn't work on your computer -- or if there is, you haven't identified what that reason might be. This course will eliminate the risk of problems because you ran the installer from an older OS's environment.

Either way you do it, you face a problem: By default, Ubiquity will try to install GRUB to the first EFI System Partition (ESP) it finds, which will normally be the ESP on your hard disk. Thus, you'll end up with a USB drive that will not boot by itself and a computer that will not boot unless the USB drive is plugged in. (The latter is because Ubuntu configures its GRUB to rely on /boot/grub/grub.cfg, which will be on the USB drive after you install Ubuntu there.) The easiest solution to this problem is to tell Ubiquity to not install GRUB, but then install it (or some other boot loader) manually later. In brief, the procedure is:

Boot the Ubuntu installer in its "try before installing" mode -- do not select the option to install Ubuntu as the computer boots!
Once the installer has booted and you see a desktop environment, open a Terminal window.
Type ubiquity -b. The -b option tells Ubiquity to not install a boot loader.
Install to the USB drive normally, but be sure it includes an ESP.
Install a boot loader to the ESP, using the filename EFI/BOOT/bootx64.efi. This step is itself fairly complex, and I'm afraid I don't have a step-by-step procedure handy for doing it from an Ubuntu installation environment; however...

Boot Repair might be able to do the job, or at least help.
My web page on EFI boot loaders for Linux covers the general principles and procedures, along with several boot loader options. You should be able to piece together a procedure after reading that page, although there'll be some trial-and-error when it comes to configuration details.

The final step of boot loader installation is trickier than it should be because installing to a USB drive is not something that Ubiquity was designed to do, and because GRUB configuration is a nightmare. (Most people don't experience the nightmare because GRUB provides configuration scripts that do things properly, and Ubiquity sets things up properly for the common case of installing Ubuntu to a hard disk. Your case is not common, though.) If you don't need Secure Boot support, using another boot loader is likely to be easier than using GRUB, since everything else is easier to configure than GRUB; but GRUB is the only one that comes signed in a way that makes it work with Secure Boot without jumping through extra hoops. Thus, if you need Secure Boot, it's more of a toss-up.

Note also that BIOS-mode and EFI/UEFI-mode booting rely on entirely separate boot loaders. Thus, if you want your USB drive to be bootable in both modes, you'll need to install both BIOS-mode and EFI-mode boot loaders, which further complicates matters. My procedure assumes you want to boot only in EFI mode, since you explicitly mentioned UEFI computers but not BIOS computers.

Finally, there are other ways to do this. The easiest is likely to be to install using a computer with no OS already on it. That way, you can set up the USB drive with an ESP, and it will be the only ESP available. Post-installation, it then becomes a matter of renaming a few files, as described here, to get the USB drive booting on any computer. Temporarily unplugging your hard disk or changing its ESP's type code to something else may be a way to do this with your regular computer, but these options run the risk of follow-on problems. (Most notably, some EFIs erase boot options that are no longer valid, so if you unplug your hard disk, you may find that it will no longer boot when you plug it back in.)


How do I skip the Grub menu on a dual-boot system?

Edit /etc/default/grub to contain

GRUB_HIDDEN_TIMEOUT=0
GRUB_TIMEOUT=0

Leave other settings alone. If you want to allow 1 second to press Shift (some computers leave you very little time between the keyboard initialization and the OS boot), make this

GRUB_HIDDEN_TIMEOUT=1
GRUB_HIDDEN_TIMEOUT_QUIET=false
GRUB_TIMEOUT=0

or if you prefer to see the menu for 1 second:

GRUB_HIDDEN_TIMEOUT=
GRUB_TIMEOUT=1

If you almost always boot into Linux, you may prefer to skip the boot menu altogether (first option in this answer, and don't bother with the Shift key), and instead, when you want to boot Windows, boot Linux and run the following command to say that the next reboot (and only the next reboot) will default to Windows:

grub-reboot Windows

You will need to change /etc/default/grub:

GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=

Run grub-set-default 0 to ensure you boot into Ubuntu by default.

See Grub2 Setup in the Ubuntu community documentation for more information.

When you're done, run sudo update-grub to save your changes.


What cross-platform online training solutions are available?

We used to have the skype and teamviewer for our java training course in chennai.

karthick


dircolors/ls colors not being displayed correctly using byobu

After a bit more digging I believe this is a bug with byobu, and not a configuration problem as I originally thought. I've filed bug #817690 in Launchpad, where it probably belongs.  Thanks for your help everyone!


Software recommendation: wiki with direct image pasting

I don't know your exact use case but you may be satisfied with Zim editor.

I admit that you don't edit in markdown but in an internal wiki markup (which is quite similar to markdown, ex: bold is the same) that is converted to rich text on the fly. (Or you can use standard WYSIWYG document shortcuts, like Ctrl+b for bold.)

Zim grabs well clipboard images, stores them to a folder, produces pure .txt files, that can be exported to markdown, html or whatever you want.

Plus, in the future you may find a full markdown support.

If pure markdown is crucial right now, I may point you to Gitlab (either free g or self-hosted). Every Gitlab repository can have its own wiki space that is able to grab images from clipboard.


How to get GDAL >= 2.0.0 on Ubuntu 16.04 LTS?

Try adding ubuntugis-unstable

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable

sudo apt-get update

and install packages from it:

sudo apt-get install libgdal-dev

As ppa:nextgis/dev caused me a some trouble when installing sp package here and seem to also cause there

  DISCLAMER: I'm not running pure Ubuntu, but Linux Mint which is based on Ubuntu 16.04 LTS


Not sure if you solved this, but you need to enable the interface with

systemctl enable arpwatch@eth0

and then

systemctl start arpwatch@eth0


Update 20200522: the package is available in PPA and is installable by:

sudo add-apt-repository ppa:boamaod/nautilus-compare
sudo apt-get install nautilus-compare

The package was removed from official Ubuntu 20.04 LTS repository.

But you can still download package from 19.10 manually and install it:

cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/universe/n/nautilus-compare/nautilus-compare_0.0.4+po1-1_all.deb
sudo apt-get install ./nautilus-compare_0.0.4+po1-1_all.deb

then restart Nautilus and use it as before.


Some applications not displayed in standard Ubuntu GUI or flickering under unity 8

I am also using almost same configuration of hardware but installed Ubuntu 16.04. Facing the same issues with GIMP and even system monitor and Bit torrent client.

Things work in guest login. but not in admin.

Someone found a solution by by updating the monitor settings.

I Found solution:

Its happening because some of the programs are opening in additional monitor.
And your system is not configured for the  right monitor.

Ubuntu "Could not get screen information" after upgrade

Just shutdown the system.
Disconnect Monitor
Restart the system
Now connect the monitor

This solved my problem.


Gateway m-1625 laptop keeps shutting down

Yes, there have been rather extreme changes since 10.10 -- by far the larges changes in the history of Ubuntu. It has been necessary to replace key platform software and vital to do so quickly since the next version of Ubuntu in April will be supported for five years and everything needs to be in place by then. It would've been better if Gnome 3 and other key technologies, had been ready in March 2010 so Ubuntu would have the full two years to make the transition. Alas, that's not how the world works, so we better make the best of it. Because of these large changes in such a short timespan, Ubuntu is temporarily not as rock solid as it usually is. Luckily, though, 10.04 will be supported for a couple of years more, and even 10.10 will be supported until 12.04 is released, by which time most of the issues should be resolved. In other words, if 10.10 works and 11.04 doesn't, then you have the option of postponing the upgrade.

It is useful to know that things work in Windows, but it would be more useful to know what version of Fedora you're comparing with. That way, we can compare versions of software like the kernel. If you have upgraded from an earlier version of Ubuntu, you can try to boot an older kernel while booting, by holding shift to show the grub menu. You can of course install older kernels anyway. If you need help with that, search for a question about it, or open a new one to handle that topic separately. These types of issues might be difficult to track down on a site like this, though.

My reusable recommendation is:

Stick to what works.
Don't fix it if it ain't broken
When in doubt, don't.

Good luck :)


How can I enable a face browser in LightDM?

lightdm-webkit-greeter is under development with some packaging already being done for Ubuntu 11.10.

lightdm-webkit-greeter is a webkit themer for lightdm that allows distros and users to create themes.

There is a lightdm face browser theme proposal but everything is a bit far from final.

Best thing you can do at the moment if you are interested in having a face browser lightdm theme is really subscribe to the project and keep checking the progress being done.


Looking at the same thing, I haven't found anything.
So I've done a simple APK thumbnailer script and published the setup procedure at http://www.bernaerts-nicolas.fr/linux/76-gnome/284-gnome-shell-generate-apk-thumbnail-nautilus
Hope it helps.


How can the owner of an ubuntu-core be informed in advance about updates?

Consider posting this question in https://forum.snapcraft.io/

The closest thing I can find is being able to schedule an update window. I'm not sure this is natively supported.
https://forum.snapcraft.io/t/system-options/87


Computer asking me for login keyring I didn't set?

Please write small capitals.

(you did switch off your machine and reboot back into desktop ? )

In "system tools" there is entry "system settings" - there again you can adjust
behaviour of your desktop-environment.

In "brightness and lock" you can change the time from 10 minutes up to one hour. I would set it on 30 minutes.

Then you have enough time to open konsole resp. terminal for to set a password. - better you have at least one password, than no password.

In Terminal is command:

passwd

then you enter your password twice.

now it is better to have a second password as admin of your netbook.

sudo su

(you type your new password from just before)

passwd

then you enter again your second password twice (different password).

dunno !
now your system is double-safe !

two times command

exit

and you are normal User again for your machine.


plex: how to add a local .mkv file to a library?

Searching for "last dance" gives:

which just makes me wonder how to browse to the file in question rather than searching by title.


Can't install Ubuntu 12.04 64-bit on a dual-drive MacBook Pro 8,2

You are using a USB drive that has a mounted Ubuntu 12.04 image on it, correct?

When you boot into the Ubuntu installer, the purple console based one, you will have an option to set some boot parameters. After selecting install language, you're greeted with a menu to try a live Ubuntu version, install, (and other stuff). If you look at the bottom, you will see that you can press F6 to turn on or off a few boot options.

EDIT: Here's a screen shot: http://img827.imageshack.us/img827/3509/dgfdgrunningoraclevmvir.png

When I installed 12.04 on my Macbook Pro 5,2, I realized that I had to select the "nomodeset" option. After this, I could install 12.04.  This webpage also says that the "noapic" and "nolapic" flags need to be on. I would suggest trying the combinations of these boot parameters (http://ubuntuforums.org/showthread.php?t=1613132).


Replaying packets will not cause any negative effect on your Ubuntu machine. Also your machine will not be infected.  The malicious packets that were replayed were unique to that network and sessions that were currently active and wouldn't infect your PC.  Refer to how a 3-way handshake and sessions are managed in the TCP/IP stack.


How do I run executable scripts in Nautilus?

Open Nautilus.
Open this from the menu bar:

  Edit → Preferences

Select the 'Behavior' tab.
Select "Ask each time" under "Executable Text Files".
Close the window.
Right click the file, and select "Properties.
Select the "Permissions" tab, and make sure "Allow executing file as program" is selected.
Close the window.

Now you can double-click your executable text file in Nautilus to be asked whether to execute or edit your script.

Answer credit: Nur


Lenovo Ideapad won't reboot or shutdown on Ubuntu 14.04 and 15.04

Sometimes opening a Terminal window and typing the following will help systems to shutdown and reboot again:

sudo update-grub

...enter password when prompted then try to shutdown again.

..or..

Install apmd by going into terminal and typing:

sudo apt-get install apmd

then edit the following file:

sudo gedit /etc/modules

and add this line:

apm power_off=1

then restart by typing:

sudo reboot -f

and if that still doesn't work, try shutting down using:

sudo shutdown -r now

..or..

sudo shutdown -h now


Is it safe to install Ubuntu 16.04 beside WIndows 10 with UEFI?

Normally it should work. Ubuntu is capable of getting installed in UEFI mode and along with Win 10, but you might face (normally solvable) problems depending how well the UEFI is implemented and how closely integrated the Windows boot loader is.

I, for example, had to set UEFI to load the Windows boot manager (could not make it to load GRUB) and configure that one again using Windows' bcdedit command to directly load GRUB instead of booting Windows. Then in GRUB I can decide which OS to boot.

However, once it is set up, it works flawlessly.

Until the next major Windows update (not the monthly stuff, maybe once a year or so) that resets and overwrites the boot loaders again to boot only Windows. You should be prepared to reinstall GRUB and reconfigure the Win bootloader again, which takes only about 5 minutes if you know what you're doing though.

So it's definitely worth trying to set up an UEFI dual-boot of Win 10 and Ubuntu, but the installation might be a bit trickier depending on your UEFI system implementation. Just back up your data and try it out, once you get stuck with a specific problem, we're here to help you out.


Found a workaround for myself.

I removed any configuration for eth0 from the VM template. Thus it is not brought up automatically. My config job now starts on starting networking, modifies the config file and explicitly calls ifup eth0.

While this solves my problem, this doesn't fit the general case of how to start a service/task in upstart before networking. Thus I'm going to leave the question open.


controlling gpio on Ubuntu 20.04 64 bit arm Raspberry Pi

Looks like it's permissions issue.
$ sudo apt install rpi.gpio-common

After that you should be able to
$ echo "21" > /sys/class/gpio/export
$ echo "1" > /sys/class/gpio/gpio21
$ echo "21" > /sys/class/gpio/unexport

If so there should be no problem to work with gpio from C code.
The package only installs these rules file. I saw on the web solutions providing udev rules, but most of them don't work.
$ cat /lib/udev/rules.d/60-rpi.gpio-common.rules
SUBSYSTEM=="bcm2835-gpiomem", KERNEL=="gpiomem", GROUP="dialout", MODE="0660"
SUBSYSTEM=="gpio", KERNEL=="gpiochip*", ACTION=="add", PROGRAM="/bin/sh -c 'chown root:dialout /sys/class/gpio/export /sys/class/gpio/unexport ; chmod 220 /sys/class/gpio/export /sys/class/gpio/unexport'"
SUBSYSTEM=="gpio", KERNEL=="gpio*", ACTION=="add", PROGRAM="/bin/sh -c 'chown root:dialout /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value ; chmod 660 /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value'"

You can also manually put the file to /etc/udev/rules.d/.


pm-powersave is a utility to manage the power-saving configuration of the computer when it is connected to the AC and when it works on battery. You should make the changes you desire to the pm-powersave config files (for AC/Battery respectively). You can find more information about the issue here.

In my case, as I want to save as much energy as possible in both cases (AC/Battery), I copied the files from /usr/lib/pm-utils/power.d to /etc/pm/power.d and edited them to always work like in battery mode. At the end of each file, functions are called in depending of the received value (true for battery and false for AC). So, I replaced all AC function with the ones for battery. Then I added the script in the link above, with some modifications (not so aggresive) and replaced again the AC function calling with the Battery one.


You could start the network connection editor as superuser, press alt+f2 and execute this:

gksudo nm-connection-editor

Now you can edit and delete every connection.


Where to find out if a upgrade is a security upgrade or feature upgrade?

I start here http://www.ubuntu.com/usn/ and / or with the changelog

See Seeing apt-get changelogs for to-be-upgraded packages


TAR `--listed-incremental` is always a FULL backup after ZFS (and Ubuntu) upgrade

I have just learned that modification timestamp is not the only thing that determines whether the file was modified or not (in TAR terms). Snapshot file also contains information on which drive the file is located. Which device was used last time can be checked inside a snapshot file with the tar-snapshot-edit script. Unfortunately looks like that device ids like to change often. Following this link, where more details can be found:

Various situations can cause device numbers to change: upgrading your kernel version, reconfiguring your hardware, loading kernel modules in a different order, using virtual volumes that are assembled dynamically (such as with LVM or RAID), hot-plugging drives (e.g. external USB or Firewire drives), etc. In the majority of cases, this change is unnoticed by the users. However, it influences tar incremental backups: the device number is stored in tar snapshot files (see section Format of the Incremental Snapshot Files) and is used to determine whether the file has changed since the last backup. If the device numbers change for some reason, by default the next backup you run will be a full backup.

In my case, the easiest fix is to simply add --no-check-device option which does the job.


Ubuntu 18.04 LTS, no analog sound from Realtek ALC889

This seems to have been fixed in a recent update.


I wish to resize(grow) my Ubuntu Root partition using GParted [14.04 LTS / Win10 Grub Dual Boot ]

We're going to move sda6, sda5, sda8 and sda10 to the right, in that order, and then resize sda9 to add 51GiB to it. Please note that moving/resizing partitions can result in data corruption/loss. Hence my next statement...

Backup important data on the effected partitions sda8 and sda6!

Step #1

Let's do a test first...

boot to the Ubuntu Live DVD/USB
start gparted
right-click on sda10 in the bottom pane and select swapoff

right-click on sda6 in the lower pane and select move/resize
in the graphic upper pane, hover the mouse pointer over the center of sda6 and note how the cursor changes to a hand cursor
in the graphic upper pane, hover the mouse pointer over the right side of sda6 and note how the cursor changes to an arrow cursor
close/cancel the move/resize window without making any changes

right-click on sda10 in the lower pane and select move/resize
hover the mouse pointer over sda10 in the graphic in the upper pane
does the cursor change to a hand cursor?
close/cancel the move/resize window without making any changes

right-click on sda5 in the lower pane and select move/resize
hover the mouse pointer over sda5 in the graphic in the upper pane
does the cursor change to a hand cursor?
close/cancel the move/resize window without making any changes

right-click on sda10 in the bottom pane and select swapon

Step #2

Now lets move/resize some partitions...

boot to the Ubuntu Live DVD/USB
start gparted
right-click on sda10 in the bottom pane and select swapoff

for each of sda6, sda5, sda8, and sda10 partitions, in that order...

right-click on the partition in the lower pane and select move/resize
use the hand cursor to drag each partition all the way to the right
save/close the move/resize window

right-click on sda9 in the lower pane and select move/resize
drag the right edge of sda9 all the way to the right, thereby adding unallocated space to sda9
save/close the move/resize window

right-click on sda10 in the bottom pane and select swapon
done!


Error: hd0 cannot get C/H/S values. grub rescue >

You can use a Ubuntu Live-CD to access your files and you can also use it to repair your system:

Boot from the live cd
Install lilo (sudo apt-get install lilo)
If it is installed run: sudo lilo -M /dev/XXX mbr where XXX is your harddrive. In most cases XXX is sda. This installs a new master boot record (mbr) into the specified device. For details look at the manpage of lilo. When you enter the command you probably will see some warnings. You can safely ignore them. Several years ago lilo was the default boot manager and the warnings are related to that.

Now your system should boot without any problems.


How do I enable the emusic store in Banshee?

That is a feature of the next version of Banshee which has not been released yet. You could install the daily build PPA but this is experimental and will likely break from time to time.

A much safer option is to wait for the next stable release which will be available in this PPA.


Is it possible that I just don't see the contents of the Home folder? Because of some user rights issue or something like that? If so, how can I see the contents?

In your new computer, if you use nautilus as root (e.g. type sudo -H nautilus on terminal) you can see all files. Try opening your old home folder this way, if there is some file in there, it will appear.


You user userx has the ID and Group ID 0, that means it become automatically a root user. You may have to create a user with different ID, best practice are starting from 1000 as previous ID are supposed to be reserved for the system accounts.

userx:x:0:0:somename,,,:/home/userx:/bin/bash

The syntax to change a user ID is:

usermod -u UID userx

By example

usermod -u 1000 userx

And to change the primary group

usermod -g groupx userx

By example, for having the user to be member of a group with the same same (default behavior in Linux).

groupadd userx # < Command useless for you as group userx already exists
usermod -g userx userx


About your issue:

Keep Calm, if you didn't do anything else, your files are in the hard drive.
You can read more about your situation here: How do I recover documents from a broken Ubuntu installation?
You can use a Live CD o Live USB to extract/copy/recover/backup your files to another hard drive or maybe a USB drive, here is how to do it, this works for Windows and Ubuntu, there are minimal differences: How to Back Up Data From a Computer That Won’t Boot
Also you can try to repair your installation, here is how: Repairing broken installation from Live USB without losing data

Hope this helps, good luck!


Software suggestion for drawing common tangent

I'm not sure exactly what you are looking for but if you want something like Linux equivalent to Matlab then try GNU Octave.


I have to restore system to bios default before the system will locate wifi

From the comments...

Disabling Secure Boot in the BIOS fixed the problem with the wireless driver.


How to find which module is active for network control?

If ifconfig did not show your interface then it seems you did not have any valid network configuration for it in netplan. You probably have an existing yaml file under /etc/netplan which you can edit to add your interface and its addresses.  This may be as simple as replacing dhcp: true in the config with appropriate addresses: and routes: stanzas.


How to properly update Intel microcode in Ubuntu

I believe your microcode is up-to-date, checking it on my personal machine gives the same version and date running 19.10. That would be the proper way to update it other than using apt update.


ubuntu 19.10 installer USB boots on grub command line

If you just want to create a bootable USB

You can create a bootable usb with the regular tools available from command line in any distributions, like dd (substitute the path to your iso file and the path to the usb stick device file /dev/sd...)

sudo dd bs=8192 if=<path to iso> of=<path to usb device> conv=fdatasync  status=progress

See the similar question here: How to create a bootable Ubuntu USB flash drive from terminal?

If you want to understand why it will not boot

The process is explained here: Why Doesn't a Bootable USB Boot


Trouble with installing everpad for lucid

You have to add the PPA  [ sudo add-apt-repository ppa:nvbn-rm/ppa]
Then update your repository list [sudo apt-get update]
Then install the package. [sudo apt-get install everpad]

You skipped number 2. It is worth noting that the package is only available for 12.10, 12.04  and 11.10.


How to get more information about "Error loading extension"?

Run

sudo journalctl /usr/bin/gnome-shell

and look for errors associated with the extension while trying to enable it. Alternatively you can use grep to filter logs by extension name:

sudo journalctl /usr/bin/gnome-shell | grep 'system-monitor'

Also sometimes an extension works alright if you just manually add your GNOME shell version (which is not officially supported by the extension) to the extension's metadata.json file.
To do that (if you have installed the extension not as the root) go to ~/.local/share/gnome-shell/extensions/ and look for the directory associated with the extension. Open it and you should find a metadata.json file inside. Open the file, add your GNOME shell version under the "shell-version": section and save the file. Relogin and if you're lucky the extension may start working.


You can intersect the fuzzy select (more or less your "standard fill pink", #2), with a circle selection to get #3, but for #4 you would have to intersect that with a third selection (polygon using freehand select, perhaps). You can also delete the excess selection using the "Quickmask".


Is it possible to use dedicated GPU and integrated GPU at the same time? if so how?

Got it to work by installing the xserver-xorg-video-amdgpu package


What OS are you using as Host?

You probably won't see any nvidia inside your VMware unless you use PCI passthrough, which is only supported if your host is also a Linux OS.

However, you can still install CUDA and compile CUDA code, but won't be able to execute it.


How do I make Cedilla (ç) character available in English USA?

Bug reference: #518056

Answer from Hélio José:

For 64-bit systems:

sudo -H gedit /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache
sudo -H gedit /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache

For 32-bit systems:

sudo -H gedit /usr/lib/i386-linux-gnu/gtk-2.0/2.10.0/immodules.cache

Change the line

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

to

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

Replace "ć" with "ç" and "Ć" with "Ç" in /usr/share/X11/locale/en_US.UTF-8/Compose

sudo cp /usr/share/X11/locale/en_US.UTF-8/Compose /usr/share/X11/locale/en_US.UTF-8/Compose.bak
sed 's/ć/ç/g' < /usr/share/X11/locale/en_US.UTF-8/Compose | sed 's/Ć/Ç/g' > Compose
sudo mv Compose /usr/share/X11/locale/en_US.UTF-8/Compose

Add two lines in /etc/environment

GTK_IM_MODULE=cedilla
QT_IM_MODULE=cedilla

Restart your computer.


Are there any applications that map and show the health of the hard disc?

If you click on dash and then type disc, you will get a disc management tool, called Disk Utility, that shows you that and more.

Disk utility is tools for formating, partitioning, and manage harddrive or removable storage such flash drive/disk drive.

Ubuntu disk utility can do following activity:

Benchmark Harddrive and Removable Device

Utility to check how fast your storage to read and write data, you can use this utility to compare a performance form one to another.

Smart Data Self test

Smart data would check and show us the disk healty using attribute and its assessement. using his utility we can llook after harddrive temperature and bad sectors.

Mount/unmount  device
This utility is for mount and unmount device.
Check and repair filesystem
Utility for check and repair file system, some activity may cause lost of data, especialy for this action please backup your data
Edit Partition
Edit partition is for resize partition, change a file system type, marge a multiple partition.
Format Partiton
This action is for clean all partition table and schema in a partition then make a new one.
Edit File System Label, and
This action is for rename a partition name or lable.

8.Delete Partition
This action is for delete a partition table.

The best info about Disc Utility in my opinion can be found here


What's the easiest way to run GUI apps on Windows Subsystem for Linux as of 2018?

VcXsrv

I chose to use VcXsrv in WSL (Windows 10 Subsystem for Linux). I recommend everyone do their research between xming (the accepted answer) and VcXsrv before selecting one or the other for Graphical User Interface (GUI) support in Windows 10 Ubuntu 16.04.

Installation

Installation is straight forward. As of March 17, 2019 you can simply accept the defaults. If you want to call gedit from within your Bash Shell / Terminal you need to edit ~/.bashrc and insert this line:

export DISPLAY=localhost:0.0

What can you do after VcXsrv is installed?

I was able to run:

sudo apt install ubuntu-desktop
sudo apt install yad
sudo apt install gedit

... to install GUI desktop software. This then allowed me to run gedit and nautilus. Also I was then able to install specific GUI applications through the CLI (Command Line Interface) using apt or apt-get commands.

When I want to try many of my Ubuntu bash scripts within WSL VcXsrv must be installed so zenity and yad x-windows dialog boxes are displayed for user input.

As others have noted GUI within WSL is not perfect and you can expect to spend time problem-solving some issues. Also some GUI software simply won't work in WSL.

Setup notes

I modified /etc/environment to tweak GUI drop down menus:

PATH="/mnt/e/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
export LIBGL_ALWAYS_INDIRECT=Yes
export DISPLAY=localhost:0.0

/mnt/e/bin is unusual path because it is where I store scripts used in both Windows 10 dual boot WSL and Ubuntu 16.04 dual boot. Most users would not include this on their machine.


If you are looking for something lightweight than Rhytmbox, then try audacious
sudo apt-get install audacious

It is also present in Ubuntu Software Center.
HTH


Most probably you'll want apt-get install libgl1-mesa-glx. Found that by apt-cache search libgl |egrep '^libgl[^a-z]'.


How do I execute a script on a LTSP-Thin Client after boot?

I just found the answer on irc.ltsp.org, see 14:25 to 14:35.

There is a lts.conf parameter called  RCFILE_01...RCFILE_10 which allows to run scripts as a system services on startup:

RCFILE_01...RCFILE_10
       string, default unset
       Commands to be executed from /etc/rc.local when the client boots

Quote from the chat's original poster at position 14:35 hours:

  ...rcfile is in the chroot, and the path is relative ... for example file is
  in /opt/ltsp/(arch)/etc/rc.local/a_filename and in lts.conf it is
  RCFILE_01="/etc/rc.local/a_filename"


Does KDE desktop recieve updates in Kubuntu?

KDE is a desktop environment.  It is actually a bundle of many applications.  All of the packages that come with Kubuntu are in Ubuntu repositories.
They will get updates the same as all the other software included with Ubuntu.

Somewhere I read that Kubuntu only receives updates for those
parts/packages which are shared with Ubuntu

Your source must be misleading.  Kubuntu uses the exact same repositories as Ubuntu.  This means that Kubuntu provides the same software with the same updates at the same time as Ubuntu.

Does this mean that there will be no updates for bugs in KDE desktop?

No.  The packages that are associated with KDE are regularly updated in Ubuntu repositories.  As mentioned above, this includes Kubuntu.

Wikipedia: "Canonical provides support and security updates for Kubuntu components that are shared with Ubuntu for 18 months – five years in case of long-term support (LTS) versions – after release". I think it's more or less outdated. As far as I know, for LTS version of Kubuntu, the updates are provided for 3 years (not 5 years)

You are correct that the Wikipedia article is wrong and misleading in this quote.  As mentioned above there are not "shared" repositories between two different distros, in effect, they are the same distro.
Standard releases only get supported for 9 months, and LTS releases get supported up to 5 years in the case of the official GNOME3 flavor, and three years for non-official flavors, like Kubuntu.
I hope this clears up your confusion.  Please feel free to edit your question if you are still unclear.


Is it possible to install XAMPP with a UI wizard in Ubuntu 15.10?

Open a terminal and use the below command to unpack the downloaded XAMPP file.

sudo tar xvfz xampp-linux-0.0.0.tar.gz -C /opt

Once extraction is complete start the service.

Or

You can try GUI control using below commands:

sudo /opt/lampp/share/xampp-control-panel/xampp-control-panel


How do I show the number of lines added(and deleted) in git?

Use git log --numstat --oneline <Filename>. This will give you a list of commits for file <Filename>, with two lines for each commit, using this syntax:

[sha hash] [commit title line]
[lines added] [lines removed] [path to file in repository]


Create a VM with a size (6G below) (it will be small until the install is done into it)

qemu-img create myvm.img -f qcow2 6G

Then install the iso into your vm

kvm -m 750 -cdrom ${PWD}/whatever.iso -boot d myvm.img

And run it in 990M of memory:

kvm -m 990 myvm.img


I know I'm about to revive an old thread, but I have found a easy working solution that fixes the problem.

From : https://wiki.archlinux.org/index.php/PulseAudio

To disable loading of the module-suspend-on-idle module, comment out the following line in the configuration file in use (~/.config/pulse/default.pa or /etc/pulse/default.pa):

### Automatically suspend sinks/sources that become idle for too long
# load-module module-suspend-on-idle

Finally restart PulseAudio to apply the changes.


how to remove my computer icon, home folder, and trash bin from desktop

I am assuming you are using Ubuntu 11.10? If you go to the software center you can download "advanced settings" which will allow you to turn on and off those desktop icons. I don't know why they are on there, as I thought on default the desktop doesn't have any icons, but rather they are on the unity bar.


Where can I find out if a graphics card will work on the newest versions of Ubuntu?

Nowadays, it really doesn't matter anymore. I found that both nVidia and AMD have great proprietary drivers. Nvidia might have a bit better drivers I think.

So no worries about drivers.. just worry about which card fits your needs and budget best. :)


Slurm is a workload manager used in computation clusters. When it is installed, it creates a "Slurm" user for management of the service. Check if you have installed this package and, if so, remove it.

sudo apt remove slurm*

Best regards


Razer Kraken Pro microphone not being recognized

0 - Connect all cables properly and adjust the microphone (some models come with retractable mic, so pull it out a bit or move accordingly)

1 - Left click sound/volume control icon and set some volume for both speakers and microphone

2 - Still in the same menu of step 1, click Sound settings...

3 - In tab Output, frame Play Sound Trough, select the alternative corresponding to your device. Probably you will have, at least, one option, the built in speakers. It's likely to have also an "Analog Output" corresponding to your device whose subtitle will be familiar to you and resembles your device model (ex: mine is "Razer Kraken Tournament Edition")


How to enable Nautilus desktop management in Gnome Shell?

Unfortunately, this is by design.

As per this blog post on the design of gnome shell:

  TL;DR/summary: the desktop metaphor sucks. We are stuck with a limited
  surface, limited file management tools, and a background that actively
  impairs legibility of the files sitting on it (unless you’re using a
  solid black background).

As such, it was removed from gnome shell as far as I can tell.


As you can see at https://launchpad.net/ubuntu/+source/wine1.4 the wine package is only built on x86 based architectures. You cannot run x86 Windows programs on ARM without emulating the x86 instruction set as well. You would need to run an x86 version of Ubuntu inside a chroot under qemu for example, to be able to run any x86 Windows programs on your ARM system.


This OMGUbuntu article has links to all the 16.04 Xubuntu wallpaper contest winners.

Here's the official page with the images: https://xubuntu.org/news/xubuntu-16-04-wallpaper-competition-winners/?utm_source=omgubuntu

You can also install them:

sudo apt-get install xubuntu-wallpapers

or

sudo apt-get install xubuntu-community-wallpapers

(if it exists)


How to change default downloader on Firefox

The following info is outdated, please see "Update" at the bottom
You may use the "uGet Integration" extension by Gobinath to replace the default download manager by uGet.
This extension requires "uGet Chrome Wrapper" package to be installed. To install the package from Gobinath's PPA run the following commands first:
sudo add-apt-repository ppa:slgobinath/uget-chrome-wrapper
sudo apt update
sudo apt install uget-chrome-wrapper

Then install the extension from here. Once it is installed, click on the uGet icon and toggle on "Interrupt downloads":

(screenshot source: uGet Integration's homepage at addons.mozilla.org)

Update:
In 2018, uget-chrome-wrapper has been adopted by uGet team as an official add-on and renamed uget-integrator and so uget-chrome-wrapper is discontinued. Therefore, uninstall uget-chrome-wrapper and install uget-integrator.
To remove uget-chrome-wrapper, run
sudo apt remove uget-chrome-wrapper

To remove Gobinath's old PPA, run
sudo add-apt-repository --remove ppa:slgobinath/uget-chrome-wrapper
sudo apt update

Then add the new PPA for uGet Team by running
sudo add-apt-repository ppa:uget-team/ppa
sudo apt update

Finally, install uget-integrator by running
sudo apt install uget-integrator

Also update the Firefox add-on to version 2.1.2 or later.


Holding Super key doesn't show the number of the last unpinned app

This bug answers it all: https://bugs.launchpad.net/ubuntu/+source/unity/+bug/778499

sadly it was happening since 11.04 ..


Indeed, all of the data is under a profile folder under .thunderbird. That includes all account configuration, preferences and cached and local email folders. The name of a profile folder starts with a random unique number, and has an extension .default-release` in more recent versions of Thunderbird.
To locate the profile folder that is currently in use, click the hamburger menu (☰) in Thunderbird, then select "Help", then "Troubleshooting Information". Clicking the button "Open Directory" next to "Profile Directory" will open your file manager in the profile folder. In most file managers, you can then press Ctrl+l to display the full path name in the navigation bar, and copy it from there if needed.
If you backup that entire profile folder, you will backup your entire configuration. Restoring the folder on a new system will have Thunderbird act as before.
In some cases, you may be interested in backing up local folders only. That is unique data in contrast to cached mail from IMAP servers, where the mails exist on the server, and in contrast to server configuration data, where your ISP has the information on how to connect. Locally stored mail could be mail you remove from an IMAP server for backup, or could be mail retrieved from a POP server. That mail lives under /Mail/Local Folders.


Checking version of package without installing

run apt-get install package --print-uris

this will display all the dependencies of the package you need to install

it will show the package name like below from which you can get the version
default-jdk_1%3a1.6-42ubuntu2_i386.deb


cannot stop network printers are being automatically added

This is the mega Q&A here in Ask Ubuntu for what you want to do: How do I disable automatic remote printer installation?. Indeed you've already completed many of the steps listed in many of the answers.
There is one answer though with another step to take. With your favourite editor and sudo powers, edit /etc/avahi/avahi-daemon.conf and insert below the [server] section this line:
enable-dbus=no

then restart the avahi-daemon service:
sudo service avahi-daemon stop
sudo service avahi-deamon start

Stop/Start is preferable in some instances as documented in Unix & Linux.
What has changed
The cupsd server is no longer used. So changing the "Browse" settings in the cups server won't work.
PS Please read the entire answer linked above for more information and the comments on 5 second delay posted below it.
PPS you have the exact same printer I have, Brother DCP-7065DN :)


What does this /etc/sudoers syntax mean?

It means that user 557149 is allowed to start a login shell as user orpkale. From man su:

-, -l, --login
    Provide an environment similar to what the user would expect had
    the user logged in directly.

    When - is used, it must be specified before any username. For
    portability it is recommended to use it as last option, before any
    username. The other forms (-l and --login) do not have this
    restriction.


Fan is always on on a Toshiba L300, is this normal?

I had this problem with Ati open-source driver.
I solved it as described in this question..

Do open source(or amd's) drivers work well for hd5570 graphics card?