Unable to boot after installing new kernel

To boot: select advanced options from the initial grub menu, then, choose an older kernel and then try to figure out where you went wrong with your kernel build.

Did you build a new initrd? What about grub, is it updated.


You can split the large Windows file and still boot from it. Check out: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/split-a-windows-image--wim--file-to-span-across-multiple-dvds


How to Protect Grub Boot Loader by Password

Here's a nice link to a documentation article on this (working for grub2, the version you should have) : https://help.ubuntu.com/community/Grub2/Passwords

Hope it helped.


loading splash screen takes priority over terminal or windows manager while running elsa

Though I could not get elsa to work properly, I was able to get lightdm to work properly again with sudo dpkg-reconfigure lightdm.


If i clone a hard drive using the 'dd' command, will it also clone the free space and information about deleted files?

Yes, dd clones every bit on the drive, including deleted files and free space.

You could also look into CloneZilla, which is a user-friendly LiveCD  for cloning and restoring disks, though I'm not sure its disk-image format would be compatible with your Windows software. http://clonezilla.org/


The Athlon XP CPU does not have support for 64-bit instruction thus you cannot use the Ubuntu 64-bit installation.

The Athlon XP is a K7 architecture CPU with support for 32-bit instructions only.


"Press X to destroy or R to resurrect" during system upgrade

If "x" is selected , then you will come out from the upgrade window without affecting the current settings of the system, and if you choose "r" it will re-launch the window of upgrade where it will ask to continue for upgrade or not.


Should I be offered the option to upgrade to 18.04.1?

The upgrade from 16.04 LTS to 18.04 LTS does not occur until the .1 release has been out. The usual procedure is the 'taps' are turned on a few days after the .1 release. Currently we're only hours after the release, not 'days', so the update will not be offered quite yet.

It's mentioned in the release notes:

  "Users of Ubuntu 16.04 will soon be offered an automatic upgrade to 18.04.1 via Update Manager."

-- update 2018-08-08 ~04:30 UST/UTC

It may soon be available; if this is the 'critical' bug holding up release (https://bugs.launchpad.net/ubuntu/+source/gnome-menus/+bug/1766890) - it only impacts 16.04 LTS -> 18.04 LTS upgrades. 18.04.1 is stable; it's the upgrade-path that is turned-off..

-- update 2018-08-10 ~10:10 UST/UTC

https://lists.ubuntu.com/archives/ubuntu-release/2018-August/004556.html

"We are working on resolving bug http://launchpad.net/bugs/1766890 which results in a bad upgrade experience when people upgrade to Ubuntu 18.04. There is a new version of the dist-upgrader in -proposed and we will be testing it the next couple of days and plan on updating meta-release-lts at the beginning of next week."


Windows to Ubuntu via rdp: mounting local drives?

ssh is better supported for remote file sharing, try with winscp from windows to connect to linux machine file system.
You must have installed ssh on server.

You can also try my answer from:
Remote desktop for multiple users
To have full support with x2go, I have tried it and works very well for lot of features with remote desktop.


You can add multiple UIDs containing multiple e-mail addresses to an OpenPGP key. To do so, run (or use a graphical user interface of your choice, procedures should be similar):

Edit your own key

gpg --edit-key [your-key-id]

Add a user ID

adduid

Now GnuPG runs some kind of assistent asking you what to include.
Save your key

save
exit

Upload the modified key to the key servers

gpg --send-keys [your-key-id]

After uploading a key, it will take some minutes/hours until it is gossiped to all key servers. Remember that signatures are per-UID, you might want to ask your friends to resign your key if they signed your first UID. Revoking an old UID would also remove all incoming signatures to that UID.


There is a bug that affects epson printers drivers (and others that depend on LSB). You can either wait till Epson or Canonical provides a fix, or use LSB from a previous Ubuntu version.

Check https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/1536353


How can I make Guake terminal and Terminator as beautiful as gnome terminal

You have to look into their "Preferences" and profile sections.

Firstly, to get a colorful prompt, open .bashrc and find this line:

# force_color_prompt=yes

Then uncomment it by removing the # from the beginning of the line.

Now right click in  "terminator" and choose "Preferences", go to profiles tab, then select colors. from the pallet section you can choose different schemes:

Now your terminator looks like this:

You should be able to follow same steps for guake or any other terminal emulator.


What is the best multi-account Twitter client?

An option would be to use Polly.
It has great support for multiple twitter accounts.

Here is an article about the app:
http://www.omgubuntu.co.uk/2012/10/twitter-app-polly-adds-ubuntu-12-10-support

Although the article has download links / instructions you may want to get it from the official launchpad page:
https://launchpad.net/polly


Sounds like it's a hardware problem, rather anything related to software. Try to unplug power adapter and remove laptop battery, connect it back after couple of seconds, and try to boot.

There are some machines on which Linux will freeze, after a restart or a shutdown command is issued, right at the very end of the process forcing you to do a hard reset – press the reset/power button the system or plug the cord which is not good. In this post we will see how you can resolve almost 99% of freeze/hang that occurs during shutdown or reboot.

Why this happens

There are many reasons why this happens – some times it is an BIOS issue or sometimes it’s just that your system has a different kind of hardware setup, for example no keyboard controller, and Linux (the kernel) does not understand how to tackle that situation. Most of the time if it is a BIOS issue it is not very easy to ask your system vendor to give you an immediate BIOS fix that will take care of the issue and hence you have to rely on some kernel parameters that you need to pass to fix the hang/freeze issue.

Let’s say you bought a new machine and you notice that your Linux distribution hangs at the very end of the reboot/shutdown process, upon giving any of the following commands:

# shutdown -r now
# shutdown -h now
# reboot
# halt
# poweroff
# Ctrl+Alt+Del

Solution

In order to fix the issue, you should try one-by-one passing the following parameter to the kernel, in the form of reboot=<parameter>, at the time of boot:

warm =  Don’t set the cold reboot flag
cold = Set the cold reboot flag
bios = Reboot by jumping through the BIOS (only for X86_32)*
smp = Reboot by executing reset on BSP or other CPU (only for X86_32)
triple = Force a triple fault (init)
kbd = Use the keyboard controller. cold reset (default)
acpi = Use the RESET_REG in the FADT*
efi = Use efi reset_system runtime service
pci = Use the so-called “PCI reset register”, CF9
force = Avoid anything that could hang.

As per my experience, one of the parameters (with the asterisk above) should be able to resolve your hang (or freeze) issue 90% of the time: reboot=bios or reboot=acpi.

Once your system boots you can verify whether the parameter was correctly passed or not by issuing the following command:

cat /proc/cmdline

Output:

root=/dev/sda ro vga=791 quiet reboot=bios

You can find the list of all the above parameters in the reboot.c file in the Linux kernel source.

By default, the Linux kernel uses the reboot=kbd method i.e. it tries to look for a keyboard controller and issue a reset/shutdown command to it. But there are some systems like some of the Intel Atom processor based  machines that don’t have a keyboard controller and the above fixes are required. If you read the reboot.c file carefully there are some major main stream machines from Dell, Sony, HP, etc. that require the above “reboot=” fix. I guess sometime it is easier to fix the issue by using the kernel parameter rather than fixing in the BIOS.

Also you can also use the first letter (as denoted in the “[]” brackets) of each of the parameter:

reboot=b        # for reboot=[b]ios
reboot=a        # for reboot=[a]cpi

and you can pass multiple parameter at the same time and Linux kernel will try in order specified:

reboot=a,b,k,c  # for reboot=acpi,bios,kbd,cold

Credit goes to Kushal Koolwal.


Do parent file system snapshot reference it's children datasets data or only their onw data?

Each dataset, whether child or parent, is its own file system. The file system is where files and directories are referenced and saved.
Snapshots done to rpool only affect the dataset rpool. Snapshots done to rpool/home only affect the dataset home.
Remember that home is not simply a directory within rpool, it is a file system that so happens to be mounted in the path /mnt/rpool/home.
If you save files within the home dataset, and then later destroy the home dataset, all files and folders within the home dataset are gone: including those saved in its snapshots! No such files were ever saved in the rpool dataset during the time home was mounted at /mnt/rpool/home.
This is true for snapshots as well. Taking snapshots for rpool/home does not create snapshots for rpool; only home snapshots are made.
The only reason you might be interested in rpool affecting rpool/home is when you use recursive actions on rpool, where any such recursive action will affect rpool and all of its children, including rpool/home.
If you make a recursive snapshot for rpool, it doesn't create a single snapshot. It creates multiple snapshots, one for each dataset.
This command will yield the following snapshots. -r is "recursive":
zfs snap -r rpool@important

rpool@important
rpool/home@important
rpool/media@important
rpool/isos@important
rpool/isos/stable@important
rpool/isos/testing@important

You can choose to destroy all of the snapshots with the following command. Notice the -r option:
zfs destroy -r rpool@important

If you prefer to be selective, you can destroy only specific snapshots without harming any of the others. Notice there is no -r option used:
zfs destroy rpool@important
zfs destroy rpool/media@important

Now you will be left with only the snapshots you have spared:

rpool/home@important
rpool/isos@important
rpool/isos/stable@important
rpool/isos/testing@important


How can I change cursor blinking speed in Xfce Terminal?

You can adjust the blinking speed of the cursor in Settings > Keyboard. In the Behavior-tab play around with the Blink-delay-slider. Reducing the blink-delay increases the blinking-speed.


how do I change the icon size in gnome fallback mode menu?

As per your comment:

[Settings]
gtk-icon-sizes = panel-menu-bar=16,16:panel-menu=16,16


NTFS or Windows hibernation problem mounting a disk image

Not sure about this specific issue but have faced a similar one before. Windows will keep it's portion of the disk in hibernation mode for a faster boot, even when shutting down. To get past this, you need to hold down the left shift key while shutting down Windows 10 (I usually continue to hold it down until it completely shuts off).


Apache 2.4 Webserver not Publicly Accessible

Your ISP, Brighthouse, may very well block traffic addressed to port 80 and 8080.

Try forwarding non-standard ports, like 12345 or 23456, to your internal address port 80.  Maybe your router cannot redirect ports, so then reconfigure your Apache config to then use the same non-standard port.  Then try accessing your server from an external computer.

Your router and/or modem may have trouble doing hairpin routing as well.

You might be better off getting a free micro instance from Amazon if you want to tinker with web servers.  You can also get free servers from MS on Azure as well.


How do I enable the Indian Rupee sign in Natty?

As a Indian, I am proud to share this

1) First of all Download ttf fonts for Indian Rupee Symbol.
Link to Download :- http://hiteshjoshi.com/downloads/Fonts.zip

2) Extract Fonts.zip. Using GUI or from Command. If You want to unzip file using command in Linux then unzip is the command (i.e. unzil Fonts.zip)

3) In Fedora and Ubuntu Double Click on .ttf File. You will get a Option in Right Down Side “Install Font.” Click on Install Font for all three .ttf Files one by one and That’s It. You are done.Below is the screen shot for the same.

Installing Fonts in Linux Using Font Viewer
4) To Test that Fonts for Indian Rupee Symbol is installed or not We will use Open Office. Lets Use OpenOffice Writer to test it.

5) Click on Application -> Click on Office -> Click on OpenOffice.org Writer.

6) Right now Indian Rupee Symbol can only be written in Three Fonts Which You have installed from Fonts.zip
You can use Verdana, Times New Roman and Arial to Type Indian Rupee Symbol On Linux. Below is the screen shot.

Selecting Fonts for Indian Rupee from OpenOffice Writer
7) Now Press a (~) key exact above TAB key without bracket. You dont’t have to combine ~ key with any key combination like CTRL ALT SHIFT. Nothing Just Press the ~ key and you will able to see a Indian Rupee Symbol into OpenOffice Writer. Below is the image for ~ key on Keyboard.

Note :- Still I have not test this fonts into RHEL and Ubuntu but it should work. Because I don’t use Ubuntu as much so guys if you are having any problems or doubts let me know with your errors and doubts.

Thanks to Hitesh Joshi Blog and Layman Linux.

http://www.tejasbarot.com/2010/08/03/installing-new-indian-rupee-symbol-in-linux-fedora-rhel-ubuntu/

This is the link, it is very detailed explanation with screenshots.


Transferring installed applications from one computer to another in ubuntu

You can use dpkg-repack tool for this task.

Install dpkg-repack:

sudo apt-get install dpkg-repack

Example usage:

sudo dpkg-repack vlc

Replace vlc with your package name.

For more info see: http://manpages.ubuntu.com/dpkg-repack.1


Workaround for this is to shirk pool meta ( only when it is possible: You have free space in VG, and when meta will fit), e.g.:

thin_dump /dev/mapper/vg02-pool0_tmeta > lvm_meta_dum
lvcreate -n pool0meta2 -L 12G vg02
thin_restore -i lvm_meta_dump -o /dev/mapper/vg02-pool0meta2
lvconvert --thinpool vg02/pool0 --poolmetadata vg02/pool0meta2

See: Fix meta size.


How do I upgrade thunar from 1.2.1 to 1.2.2 and beyond

Open Synaptic Manager or if you prefer Ubuntu software Center and type Thunar.
In synaptic would look like:

right-click - mark for installation - apply


Ubuntu 18.04 and libwayland-egl.so.1 issue

Running the following command solved the problem for me.

apt install libwayland-egl1

Source: Padoka: latest mesa breaks wayland – workaround


I answer this old thread because I experienced the same problem and I just solved it with a different method. I run Ubuntu 16.04 and LibreOffice 5.1.4.2.

Essentially, I took the answer proposed by Fitoschido in this thread: https://ask.libreoffice.org/en/question/7127/calibri-font-not-rendering-correctly/

In short, one has to edit (or create) ~/.config/fontconfig/fonts.conf and add the following block:

<match target="font" >
  <edit name="embeddedbitmap" mode="assign">
    <bool>false</bool>
  </edit>
</match>

This has the effect of bypassing the bitmaps of the characters embedded in MS fonts and getting Ubuntu/Linux to apply anti-aliasing as I should. Now, MS fonts look much, much better in LibreOffice.


If you had an entry in fstab for your old Windows and you reinstalled it got a new UUID.
You need to update fstab with new UUID.

sudo blkid -c /dev/null -o list
sudo cp /etc/fstab /etc/fstab.backup
gksudo gedit /etc/fstab

Change current old UUID for your Windows to the new one.

suggested settings if you do not have these:
defaults,nls=utf8,umask=000,uid=1000,windows_names

Also do not hibernate Windows as then it will not mount.


How to normalize the volume of an OPUS file

The rgain project can do this. It's in the Debian replaygain package (not on Ubuntu yet, sorry), though the Debian package doesn't yet support the .opus extension (see its issue 13, resolved in version 1.0.0, which comes after 1.3.4).
I installed the Debian package (warning, I'm running Debian Testing, not Ubuntu) and then edited /usr/lib/python3/dist-packages/rgain3/rgio.py to add .opus to the following stanza starting on replaygain-1.0.0-1's line 360:
    BASE_MAP = {
        ".ogg": _simplereaderwriter,
        ".oga": _simplereaderwriter,
        ".opus": _simplereaderwriter,
        ".flac": _simplereaderwriter,
        ".wv": _simplereaderwriter,
        ".m4a": _mp4readerwriter,
        ".mp4": _mp4readerwriter,
    }

Alternatively, install without package management as per the rgain instructions.
Then it's just a matter of running replaygain file.opus


Will a live usb with persistence store files automatically?

Yes, if a Live USB is persistent then it will store all changes to programs and files, including newly installed software package.  However, you should not use persistence as a replacement for a regular installation, only a temporary measure.  Ubuntu's persistence slows down dramatically over time because of the architecture of the Live USB.

A brief primer on persistence and Live CD/DVD/USBs

Linux's Live CD feature is very efficient.  Using a read-only filesystem called SquashFS, you can compress a ~4GB filesystem image down to around 700MB, which is small enough to fit on a CD.  Recently, Canonical decided that, because of the rapidly declining usage of CDs, it wasn't worth it to go to the effort of making their CD (now DVD/USB) images fit on a CD, so they decided to target their images toward DVDs instead.  This means that you can no longer fit a stock Ubuntu image onto a CD.  However, that is no excuse for letting the (compressed) image balloon up, so Ubuntu (along with most other Linux distros) still uses SquashFS for compression.  However, there is a drawback to getting ridiculously high compression rates: as mentioned above, SquashFS is read-only.

So what about persistence?  How is persistence possible is Live USBs use a read-only filesystem?  Well, what happens is that, when you exit a persistent session, Ubuntu saves all file changes to a persistence file.  Then, the next time that the Live USB is booted up, Ubuntu first loads the "vanilla" Ubuntu installation.  After that has completed, it then gets the persistence file and uses the data in it to re-modify the files back to where they were when you last left off.

This is a pretty clever mechanism, but is has a few drawbacks, one of them being that, as you use the system more and update some of the packages, that persistence file becomes larger and larger, which means longer and longer boot times, not to mention other nasty side effects.

So, the lesson is that, while persistence is a very handy feature for a Live USB to have, you should only use it when necessary, e.g., your main computer is down.


Ubuntu 14.04 won't load to empty Hard drive (2)

Thanks for mentioning me.  I was wondering why this looked familiar.  Depending upon the brand and model of your laptop, it may be necessary to press another key such as ESC or F8 to persuade your PC to boot from the DVD drive.

Edit:  Explained in my comments below, it appears the button you need to press to bring up the boot menu is F12


Make sure you've exposed the openstack-dashboard service from the juju gui. Also, check the apache logs on the machine horizon is running (e.g. you can use juju ssh openstack-dashboard/0 to connect to the machine using the juju CLI client).


It depends on definition of desktop environment. But I think Unity is not a DE -- there are no "Unity applications" (Ubuntu mostly uses Gnome applications), window manager is Compiz (not "Unity-specific"), desktop manager is Nautilus (from Gnome) etc.

I think Unity is just of user interfaces for Gnome Desktop Environment.


Confused about static IP address (16.04) (may be lubuntu)

Netmask /24 is the same as 255.255.255.0 by another nomenclature
Some one manually setup your IP address to 192.168.1.96 and the gateway to 192.168.1.2
Try snooping into the directory /etc/network/interfaces.d/*


Did you intall the restricted extra for lubuntu? the missing depenencies may be codecs.

Try this first then reinstall Spotify

sudo apt-get update
sudo apt-get install lubuntu-restricted-extras
sudo apt-get install lubuntu-restricted-addons


I got this today out of the system logs when the connection dropped again. I don't know it this helps. I have some experience with linux but I am moving from a windows environment so a lot of this is foreign to me.

01/16/17 09:53:11 AM    studionBitch    NetworkManager[920] <info> caught signal 15, shutting down normally.
01/16/17 09:53:11 AM    studionBitch    NetworkManager[920] <info> (eth0): device state change: activated -> unmanaged (reason 'removed') [100 10 36]
01/16/17 09:53:11 AM    studionBitch    NetworkManager[920] <info> (eth0): deactivating device (reason 'removed') [36]
01/16/17 09:53:11 AM    studionBitch    NetworkManager[920] <info> (eth0): canceled DHCP transaction, DHCP client pid 1662
01/16/17 09:53:11 AM    studionBitch    avahi-daemon[706]   Withdrawing address record for 10.0.0.143 on eth0.
01/16/17 09:53:11 AM    studionBitch    avahi-daemon[706]   Leaving mDNS multicast group on interface eth0.IPv4 with address 10.0.0.143.
01/16/17 09:53:11 AM    studionBitch    avahi-daemon[706]   Interface eth0.IPv4 no longer relevant for mDNS.
01/16/17 09:53:11 AM    studionBitch    NetworkManager[920] <warn> DNS: plugin dnsmasq update failed
01/16/17 09:53:11 AM    studionBitch    NetworkManager[920] <info> Removing DNS information from /sbin/resolvconf
01/16/17 09:53:11 AM    studionBitch    dnsmasq[1668]   setting upstream servers from DBus
01/16/17 09:53:11 AM    studionBitch    NetworkManager[920] <info> (eth0): cleaning up...
01/16/17 09:53:11 AM    studionBitch    NetworkManager[920] <info> (eth0): taking down device.
01/16/17 09:53:11 AM    studionBitch    avahi-daemon[706]   Interface eth0.IPv6 no longer relevant for mDNS.
01/16/17 09:53:11 AM    studionBitch    avahi-daemon[706]   Leaving mDNS multicast group on interface eth0.IPv6 with address 2601:445:4101:3bab:3cb5:9f3a:bd76:2edf.
01/16/17 09:53:11 AM    studionBitch    avahi-daemon[706]   Withdrawing address record for 2601:445:4101:3bab:feaa:14ff:fe93:38c5 on eth0.
01/16/17 09:53:11 AM    studionBitch    avahi-daemon[706]   Withdrawing address record for 2601:445:4101:3bab:3cb5:9f3a:bd76:2edf on eth0.
01/16/17 09:53:11 AM    studionBitch    NetworkManager[920] <info> Unmanaged Device found; state CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)
01/16/17 09:53:11 AM    studionBitch    dbus[510]   [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
01/16/17 09:53:11 AM    studionBitch    NetworkManager[920] <info> Removing DNS information from /sbin/resolvconf
01/16/17 09:53:11 AM    studionBitch    dnsmasq[1668]   exiting on receipt of SIGTERM
01/16/17 09:53:11 AM    studionBitch    NetworkManager[920] <info> exiting (success)
01/16/17 09:53:11 AM    studionBitch    dbus[510]   [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
01/16/17 09:53:11 AM    studionBitch    NetworkManager[11906]   <info> NetworkManager (version 0.9.8.8) is starting...
01/16/17 09:53:11 AM    studionBitch    NetworkManager[11906]   <info> Read config file /etc/NetworkManager/NetworkManager.conf
01/16/17 09:53:11 AM    studionBitch    NetworkManager[11906]   <info> WEXT support is enabled
01/16/17 09:53:11 AM    studionBitch    NetworkManager[11906]   <info> VPN: loaded org.freedesktop.NetworkManager.pptp
01/16/17 09:53:11 AM    studionBitch    NetworkManager[11906]   <info> DNS: loaded plugin dnsmasq
01/16/17 09:53:11 AM    studionBitch    NetworkManager[11906]      SCPlugin-Ifupdown: init!
01/16/17 09:53:11 AM    studionBitch    NetworkManager[11906]      SCPlugin-Ifupdown: update_system_hostname
01/16/17 09:53:11 AM    studionBitch    NetworkManager[11906]         interface-parser: parsing file /etc/network/interfaces
01/16/17 09:53:11 AM    studionBitch    NetworkManager[11906]         interface-parser: finished parsing file /etc/network/interfaces
01/16/17 09:53:11 AM    studionBitch    NetworkManager[11906]      SCPluginIfupdown: management mode: unmanaged
01/16/17 09:53:11 AM    studionBitch    NetworkManager[11906]      SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:09.0/0000:03:00.0/net/eth0, iface: eth0)
01/16/17 09:53:11 AM    studionBitch    NetworkManager[11906]      SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:09.0/0000:03:00.0/net/eth0, iface: eth0): no ifupdown configuration found.
01/16/17 09:53:11 AM    studionBitch    NetworkManager[11906]      SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/lo, iface: lo)
01/16/17 09:53:11 AM    studionBitch    NetworkManager[11906]      SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/lo, iface: lo): no ifupdown configuration found.
01/16/17 09:53:11 AM    studionBitch    NetworkManager[11906]      SCPlugin-Ifupdown: end _init.
01/16/17 09:53:11 AM    studionBitch    NetworkManager[11906]   <info> Loaded plugin ifupdown: (C) 2008 Canonical Ltd.  To report bugs please use the NetworkManager mailing list.
01/16/17 09:53:11 AM    studionBitch    NetworkManager[11906]   <info> Loaded plugin keyfile: (c) 2007 - 2010 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list.
01/16/17 09:53:11 AM    studionBitch    NetworkManager[11906]      SCPlugin-Ofono: Acquired D-Bus service com.canonical.NMOfono
01/16/17 09:53:11 AM    studionBitch    NetworkManager[11906]      SCPlugin-Ofono: init!

I'm also getting something from a process called whoopsie[1207] that simply states offline.

I also just got this from the kernal.

01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526431] ------------[ cut here ]------------
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526445] WARNING: CPU: 0 PID: 3 at /build/linux-jxap_Z/linux-3.13.0/net/sched/sch_generic.c:264 dev_watchdog+0x276/0x280()
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526450] NETDEV WATCHDOG: eth0 (r8169): transmit queue 0 timed out
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526453] Modules linked in: snd_seq_dummy pci_stub vboxpci(OX) vboxnetadp(OX) vboxnetflt(OX) vboxdrv(OX) cuse dm_crypt joydev snd_hda_codec_hdmi hid_holtek_kbd kvm_amd kvm crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_hda_codec_realtek uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core snd_usb_audio videodev snd_usbmidi_lib snd_hda_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd snd_hda_codec snd_seq_midi snd_seq_midi_event snd_hwdep snd_rawmidi rfcomm snd_pcm bnep bluetooth snd_seq serio_raw k10temp fam15h_power edac_core edac_mce_amd snd_page_alloc fglrx(POX) i2c_piix4 snd_seq_device snd_timer binfmt_misc snd amd_iommu_v2 soundcore shpchp parport_pc ppdev mac_hid lp parport pata_acpi hid_generic psmouse usbhid usb_storage hid ahci r8169 pata_atiixp libahci mii
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526543] CPU: 0 PID: 3 Comm: ksoftirqd/0 Tainted: P           OX 3.13.0-107-lowlatency #154-Ubuntu
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526547] Hardware name: Gigabyte Technology Co., Ltd. To be filled by O.E.M./970A-UD3P, BIOS FA 10/28/2014
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526551]  0000000000000000 ffff8802331a1c88 ffffffff81731833 ffff8802331a1cd0
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526558]  0000000000000009 ffff8802331a1cc0 ffffffff8106b97d 0000000000000000
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526564]  ffff88022d6a8000 ffff88022d8d6e80 0000000000000001 0000000000000000
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526571] Call Trace:
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526580]  [<ffffffff81731833>] dump_stack+0x64/0x82
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526588]  [<ffffffff8106b97d>] warn_slowpath_common+0x7d/0xa0
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526594]  [<ffffffff8106b9ec>] warn_slowpath_fmt+0x4c/0x50
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526601]  [<ffffffff810a7934>] ? update_curr+0xe4/0x1b0
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526610]  [<ffffffff81654926>] dev_watchdog+0x276/0x280
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526617]  [<ffffffff816546b0>] ? dev_graft_qdisc+0x80/0x80
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526623]  [<ffffffff81078a06>] call_timer_fn+0x36/0x180
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526629]  [<ffffffff816546b0>] ? dev_graft_qdisc+0x80/0x80
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526635]  [<ffffffff81078fdc>] run_timer_softirq+0x22c/0x2e0
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526642]  [<ffffffff81070f7c>] __do_softirq+0xfc/0x350
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526649]  [<ffffffff81071200>] run_ksoftirqd+0x30/0x70
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526655]  [<ffffffff81096da9>] smpboot_thread_fn+0x159/0x260
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526660]  [<ffffffff81735409>] ? schedule+0x29/0x70
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526665]  [<ffffffff81096c50>] ? SyS_setgroups+0x180/0x180
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526671]  [<ffffffff8108f8b9>] kthread+0xc9/0xe0
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526682]  [<ffffffff8108f7f0>] ? kthread_create_on_node+0x1c0/0x1c0
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526684]  [<ffffffff81740ba8>] ret_from_fork+0x58/0x90
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526686]  [<ffffffff8108f7f0>] ? kthread_create_on_node+0x1c0/0x1c0
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.526688] ---[ end trace 36eb59f55c077491 ]---
01/16/17 09:56:03 AM    studionBitch    kernel  [37507.531429] r8169 0000:03:00.0 eth0: link up
01/16/17 09:57:03 AM    studionBitch    dbus[510]   [system] Activating service name='org.freedesktop.hostname1' (using servicehelper)
01/16/17 09:57:03 AM    studionBitch    kernel  [37567.951413] systemd-hostnamed[12395]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
01/16/17 09:57:03 AM    studionBitch    dbus[510]   [system] Successfully activated service 'org.freedesktop.hostname1'
01/16/17 10:06:09 AM    studionBitch    kernel  [38113.056925] r8169 0000:03:00.0 eth0: link up
01/16/17 10:06:09 AM    studionBitch    whoopsie[1207]  offline
01/16/17 10:06:09 AM    studionBitch    whoopsie[1207]  online
01/16/17 10:16:15 AM    studionBitch    kernel  [38718.582492] r8169 0000:03:00.0 eth0: link up
01/16/17 10:16:15 AM    studionBitch    whoopsie[1207]  offline
01/16/17 10:16:15 AM    studionBitch    whoopsie[1207]  online
01/16/17 10:17:01 AM    studionBitch    CRON[13202] (root) CMD (   cd / && run-parts --report /etc/cron.hourly)

Any help interpenetrating all of this would be helpful.


In the bug report 973096, someone suggests to "just remove the Nvidia driver and use the standard nouveau driver until this bug is fixed".


I've written a Java Client for OneDrive which might be a good alternative if you continue to have problems.


When i empty the trash automatically the files tab opens. How can i stop this?

It's a bug in nautilus 3.14.2.

As of now, no nautilus updates available, and no workarounds suggested within the bug report; if you really want to fix this, downgrading nautilus should do.


Stuck on grub rescue after windows update attempted

You have to put an Ubuntu ISO onto a USB stick and boot from that. After loading the live version of Ubuntu you'll have to chroot into your system and update-grup. Grub will find all your partitions, both Windows and Linux, and you'll be able to choose at boot time again.

Checkout this Ubuntu Help Page for Grub Recovery.


The files you seek are found in  /usr/share/icons/ubuntu-mono-light/status/22
and that one to be exact is system-devices-panel.svg

Ubuntu uses two icon themes one for light, being ubuntu-mono-light and one for dark, being ubuntu-mono-dark

The additional icons can be found in folders called hicolor and gnome which are located in /usr/share/icons


sudo apt install --reinstall bcmwl-kernel-source

It will reinstall the driver for the Broadcom Wireless Card of your laptop.

You might need to reboot after that:  sudo reboot


Toggle USB power programmatically (to turn external fan on when overheating detected)

There is a tool called PowerTOP provided by Intel. It allows you to toggle power to attached usb devices. These are called tunables.

Install it by:

sudo apt install powertop

Run:

sudo powertop

http://linuxpitstop.com/install-powertop-on-ubuntu/


Mouse is freezing in Ubuntu/Xubuntu/Lubuntu

This doesn't sound like it's your issue, but all troubleshooting should start with the basics. I think this only applies if you're using a touchpad, but Ubuntu has a feature which is supposed to disable your mouse while you type. It caused some issues for me in the past. Here's more information about it.
For me, unchecking that box solved my issues. If this isn't the case for you, please update your question with more information about your installation, and the mouse you're using.


For mirroring a website I like to use httrack rather than wget with recursive retrieval options.

Description: HTTrack saves websites to your computer (Offline browser).

HTTrack is an offline browser utility, allowing you to download a World Wide website from the Internet to a local directory, building recursively all
 directories, getting html, images, and other files from the server to your computer.

HTTrack arranges the original site's relative link-structure. Simply open a page of the "mirrored" website in your browser, and you can browse the
 site from link to link, as if you were viewing it online. HTTrack can also update an existing mirrored site, and resume interrupted downloads. HTTrack
 is fully configurable, and has an integrated help system.

To install in the terminal:

sudo apt-get install httrack


You can find PPC images on the cdimage site:

The cdimage server also hosts releases of other Ubuntu images not found on this server, such as builds for less popular architectures and other non-standard and unsupported images. For Ubuntu Desktop and Server on popular architectures, please see the links above instead.

Unsupported Ubuntu Images

releases.ubuntu.com
However I was unable to find a PPC desktop image, only server.


Black screen after installation of a command-line version of ubuntu 12.04

I finally solved the problem completely by commenting out the line GRUB_TERMINAL=console in /etc/defaults/grub and doing sudo update-grub and sudo reboot.


You will need to make install media, install Ubuntu, and select format in the setup

Make sure to install to you desired HDD. During the install, just my advice, only have the desired installation drive in your machine.

See how to make installation media and install Ubuntu here


ubuntu-13.04-desktop-amd64 not installing alongside windows 8

You dont need to worry about this error message

Open the terminal and edit the file /etc/default/speech-dispatcher using nano (or any text editor) as follows:

sudo nano /etc/default/speech-dispatcher

Inside the file change the RUN property to yes, so the file will  become:

# Defaults for the speech-dispatcher initscript, from speech-dispatcher

# Set to yes to start system wide Speech Dispatcher
RUN=yes

Press ctr+O to save and ctr+X to exit nano


Why is some software not in the official Ubuntu repositories?

Software in main is supported by Canonical. Obviously they're not going to support every arbitrary piece of software on the internet. Software in universe is inherited from Debian, where a select group of people, designated as Debian Developers, take responsibility for the maintenance of the packages they upload (even if the actual packaging is done by others). Obviously, they don't have the capability to maintain packages for every piece of software on the internet.

What do people do who can't get Canonical or Debian Developers to support their software? They must find other ways, which include creating their own repository. The introduction of the PPA by Ubuntu relieved a lot of pressure on community volunteers to maintain packages, and at the same time, freed developers from a lot of the constraints imposed by the release policies of distros.

Remember that what you want may not be what somebody else wants. By sticking to a stable set of software and allowing PPAs, while the users have a slight overhead of maintaining the list of repositories, they get a lot of flexibility in getting what they need. Developers get flexibility in providing updates. Maintainers are relieved of the pressure of having to keep up to date with every arbitrary piece of software on the internet.


apt programmatically detect upgradable packages after update

The time it takes to list the items is short AFTER you have done a sudo apt update...

Example:
(I forgot to add "time" to the first)...

$ apt list --upgradable
Listing... Done
libpython2.7/xenial-security 2.7.12-1ubuntu0~16.04.9 amd64 [upgradable from: 2.7.12-1ubuntu0~16.04.8]
libpython2.7-dev/xenial-security 2.7.12-1ubuntu0~16.04.9 amd64 [upgradable from: 2.7.12-1ubuntu0~16.04.8]
libpython2.7-minimal/xenial-security 2.7.12-1ubuntu0~16.04.9 amd64 [upgradable from: 2.7.12-1ubuntu0~16.04.8]
libpython2.7-stdlib/xenial-security 2.7.12-1ubuntu0~16.04.9 amd64 [upgradable from: 2.7.12-1ubuntu0~16.04.8]
libpython3.5/xenial-security 3.5.2-2ubuntu0~16.04.9 amd64 [upgradable from: 3.5.2-2ubuntu0~16.04.8]
libpython3.5-dev/xenial-security 3.5.2-2ubuntu0~16.04.9 amd64 [upgradable from: 3.5.2-2ubuntu0~16.04.8]
libpython3.5-minimal/xenial-security 3.5.2-2ubuntu0~16.04.9 amd64 [upgradable from: 3.5.2-2ubuntu0~16.04.8]
libpython3.5-stdlib/xenial-security 3.5.2-2ubuntu0~16.04.9 amd64 [upgradable from: 3.5.2-2ubuntu0~16.04.8]
python2.7/xenial-security 2.7.12-1ubuntu0~16.04.9 amd64 [upgradable from: 2.7.12-1ubuntu0~16.04.8]
python2.7-dev/xenial-security 2.7.12-1ubuntu0~16.04.9 amd64 [upgradable from: 2.7.12-1ubuntu0~16.04.8]
python2.7-minimal/xenial-security 2.7.12-1ubuntu0~16.04.9 amd64 [upgradable from: 2.7.12-1ubuntu0~16.04.8]
python3.5/xenial-security 3.5.2-2ubuntu0~16.04.9 amd64 [upgradable from: 3.5.2-2ubuntu0~16.04.8]
python3.5-dev/xenial-security 3.5.2-2ubuntu0~16.04.9 amd64 [upgradable from: 3.5.2-2ubuntu0~16.04.8]
python3.5-minimal/xenial-security 3.5.2-2ubuntu0~16.04.9 amd64 [upgradable from: 3.5.2-2ubuntu0~16.04.8]
hannu@wkbx ~ bash (P)PID=(19384)23069, s=0

$ time apt list --upgradable
Listing... Done
0.326 seconds elapsed, p=100.03, 0.326 real, 0.318 user, 0.008 sys.

So... this will give you $items set to the number of available updates:

$ items="$(( $(apt list --upgradable 2>/dev/null | grep upgradable | wc -l) - 1 ))" ; echo $items
0

Now, use bash conditionals to    determine which commands to execute based on it.


How to create a shortcut to open new window of nautilus and actiavte this window?

It's right where you said.  In the Keyboard > Shortcuts menu, simply go to the bottom option - 'Custom Shortcuts' and press the + at the bottom of the window.  Then type a name of your application you want to open, ie, nautilus or files.  In the command field type the command required to activate that program from the terminal, ex: 'nautilus' for nautilus.  Then apply and to set the accelerator (keyboard shortcut) click on 'Disabled' and enter the key combination you want to use to open it.


Issues installing Ubuntu on fresh hard drive

It's a bug. Please see this question.

May be you trying to install Ubuntu on usb stick?


Error connecting to newly configured FTP

Your virtual machine is out of memory. Try to give it some more.


Which partition in my computer has Ubuntu installed on it?

From what you have posted your

  / aka root

partition is mounted on

  /dev/sda6

which is where your installation exists.

Alternatively you can also use findmnt which will give you the mount point of various partitions.

If you are on windows generally the big unknown partition block in disk management is where "Ubuntu" or any other linux distro gets shown up as.

Be very careful while deleting it as it could possibly delete your home directory as well, which is where most of your files will be.


Post 18.04.1 - Deja Dup cannot detect the mounted & ready optical disk (CD)

I got this working again by referring to the CD by directory path, rather than the single logical label by which it has alway been previously set

WAS Storage Location : MEI_UDF
NOW Storage Location : Local folder :    /media/kpsys/MEI_UDF

I do not know why this change was needed.


Arte - How to download rtmp or find the mp4 links

I use a python script based with rtmpdump command to download from Catalonian Television website (TV3).

This script fullfills the parameters of the command obtaining the data from the webpage where the video is posted, like this:

rtmpdump -r rtmp://flash.dce.harvard.edu/bounce -C B:0 -C Z: \
-C S:/2012/02/22872/L01/22872-20120124-L01-1-h264-av1248-16x9-852x480.mp4 \
-C S:BounceAPI3.0 -C N:0.000000 -C S:mp4 \
-y mp4:2012/02/22872/L01/22872-20120124-L01-1-h264-av1248-16x9-852x480.mp4 \
-o a.flv
RTMPDump v2.4-84-gdd57cd0
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
[...]
3322.127 kB / 22.03 sec (0.3%)

https://superuser.com/questions/528818/how-can-i-download-stream-videos-with-rtmp-protocol-from-harvard-extension-mor


Trouble Installing a wifi driver in 16.04 from Live USB

You can fix this issue by running in terminal

sudo tee /etc/modprobe.d/blacklist-acer.conf <<< "blacklist acer_wmi"

The Wi-Fi should work after a reboot.


How do I perform a backup of sudoers file?

To backup:
sudo cp /etc/sudoers /etc/sudoers.backup

To restore:
sudo rm -rfv /etc/sudoers && sudo mv /etc/sudoers.backup /etc/sudoers


Why am I getting weird glitchy buttons and text?

Try unity -- reset. If not, re-install Unity from the software centre. You will have to do this in another environment like GNOME, or Unity will go bonkers when you uninstall it.

Hope this helps!


Cannot adjust brightness after installing bumblebee on Dell XPS 15

May not be a universal solution, but try this:

sudo tee /sys/class/backlight/acpi_video0/brightness < /sys/class/backlight/acpi_video0/max_brightness

If you are using the Intel graphics card rather than the Nvidia one:

sudo tee /sys/class/backlight/intel_backlight/brightness < /sys/class/backlight/intel_backlight/max_brightness

Alternately, try replacing N with various small numbers (1 - 7 work for me but that is probably hardware specific) in the following:

sudo echo N | sudo tee /sys/class/backlight/acpi_video0/brightness


How to change desktop's right-click options

We are unable to remove the default menu entries in Nautilus. However by using Nautilus Scripts we may add any script located in ~/.gnome2/nautilus-scripts/ to the right click context menu:


Installing Popcorn time in Ubuntu running on Chromebook

Download the Linux version from here.

For simplicity of your installation, try to download it on your Download folder. Extract it.
You'll see a file named install.

Right click on it and go to Properties then Permission and allow executing file as a program.

Now go to Files>Edit>Behavior and allow run executable text file when they are open.

Now open a Terminal and drag the install file to the Terminal and hit Enter.
When prompt type: I agree and hit enter again.

Now Double Click on this popcorn-time and enjoy.
If doesn't start like the install file allow it to run as executable program by going to Properties>Preference.


ubuntu 16.04 nautilus there is no clickable area in a folder because the folder is full of files

As mentioned in the comments under the question, the methods described in the context menus link work in version 16.04 as well as 18.04

Simply right click between icons on the folder to obtain the context menu.

View this short video here

Whilst the directory shown in the video is not exactly full, it contains a significant number of files but the principle remains the same no matter how many files are contained therein.


Why is Ubuntu permissive with outgoing connections by default?

This sort of discussion comes up from time to time and IMO the best answer is that Linux is not Windows and at this time the current firewall policy is considered sufficient by the Ubuntu developers / security team as, by default, there are no open ports.

See : https://wiki.ubuntu.com/SecurityTeam/Policies

The utility of a firewall in the sort of concerns you have (malware or a cracker using the system for unauthorized activity has been debated but the consensus opinion is that it is not need by default (as you can see). That does not mean everyone agrees with the decision mind you ;)

You are free to disagree with the decision and either change your policies or send a mail to the security team if you wish.

As far as an application level firewall as exists in some Windows applications, suffice it to say it is not so easy to implement and although I have seen a few attempts to code such an application level firewall over the years, but, IMO, the technology is not there yet.

You might want to look at leopardflower I do not use it and can not vouch for how well it works.

Another, older attempt was tuxguardian, but as you can see it is no longer maintained and I would not advise you use it.

The closest thing in Ubuntu would be Apparmor.

https://wiki.ubuntu.com/AppArmor

No it is not precisely what you are asking for, it is just as close as it gets.

Otherwise, IMO, this discussion is age old, if you search the Ubuntu Forums you will find a number of discussion, and also

http://brainstorm.ubuntu.com/idea/4137

Good luck, I hope this post at least provides you with some information, although it is probably not the answer you were looking for.


Upgraded from 16.04 to 17.04 with no issues until restart, after which Ubuntu fails to boot

Thank you to everyone that helped me! I fixed it! I hate when solutions go unposted so I hope this prevents anyone from wiping their hard drive like I did (luckily had backups - always have backups!)

The issue was that the computer needed a bios update. After some intense googling, I found a similar bug  relating to the tmp_crb error in a different kernel:

https://bugzilla.redhat.com/show_bug.cgi?id=1394912

A random comment suggested updating bios. My bios version in the pastebin was listed as A08, the latest version for my motherboard was A12. I gave it a shot, after flashing the bios update the CPU hangups were fixed. Interestingly, the bios update description specifically said it fixed boot CPU hangups.

After updating, the computer performs dazzlingly. IT is immense pain, I hope to be rich enough one day to avoid fixing my mistakes.


Are the older ones not in the Previous kernel list? Assuming you have recovery mode - that would be the third menu entry.

Check that they actually exist in the grub.cfg file

cat /boot/grub/grub.cfg  |grep menuentry


What is the root login during installation?

A close reading of the question reveals that a customized disk, and not an original Ubuntu disk was in use.  Perhaps the reason the "ubuntu" login didn't work was because it was changed during customization (whether purposefully or inadvertently).  More than likely the actual details would have to come from the entity that produced the customized install media.
Regardless, for most cases of a question like this FedonKadifeli's suggested reference to Live CD asks for a username and password was good for 20.04.1 so unless 19.10 did something different, it should provide a satisfactory answer.  I referenced this answer, but another answer provides alternate usernames for various editions of Ubuntu.
It is possible to confirm during an Ubuntu 20.04.1 Desktop installation, while the installer is running, one may access an alternate virtual console with CTRL+ALT+Fn and login with username "ubuntu" and a null password.
Ubuntu 20.04.1 LTS ubuntu tty2

ubuntu login: ubuntu
Welcome to Ubuntu 20.04.01 LTS (GNU/Linux 5.4.0-42-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

Your Hardware Enablement Stack (HWE) is supported until April 2025.

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

ubuntu@ubuntu:~$ ps -ef | grep install
ubuntu      1849    1566  0 20:19 pts/0    00:00:00 /bin/busybox tail -f /var/log/installer/debug -f /var/log/syslog -q
...

A couple answers seem to indicate failures to get these logins work, but they have comments that either directly, or indirectly, dispute that they do not generally work.
As indicated by others, the login account does not have elevated (superuser) permissions, but sudo without a password is possible.


GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference

This is because it's looking for a symbol from GLIBCXX_3.4.21, while you presumably have a lower version. Update your library, it's the easiest way. Or you can do something like what's done here

https://stackoverflow.com/questions/4032373/linking-against-an-old-version-of-libc-to-provide-greater-application-coverage

https://stackoverflow.com/questions/32577224/unable-to-use-stdchrono-with-stdfuture-glibcxx-3-4-19-not-found?noredirect=1&lq=1


You can use pictures inside Pictures folder as screensaver. Just Choose Pictures Folder in your screensaver preferences.

For any other folder I think this is what you should look into.


Did I override the Win10 Bootloader with Ubuntu

Probably yes...

If the first bootmenu you see is GRUB now....yes.

I have same situation.
Used to have a Windows7 besides a Kubuntu.
After I Added new HDD to my PC and installed a new Kubuntu from USB on that drive.

During install I choose bootloader location /dev/sda
(this is default I believe)

So now it boots into GRUB and I see my Windows7 in the GRUB menu, where I used to have a windows bootloader there.

If it is a problem for you you could try "EasyBCD" for windows.See what that tells you.

For Ubuntu you can have a look at "Grub Customizer"


Run the rm command with with root privileges sudo rm  -rf  /var/www/html/wp/.git


18 billion GB extended partition showing in GParted - how was this done?

It looks like the partition table might be corrupted somehow. You can try to create a new one, but that will remove all the data from the disk. I don't know how or if you do that in Palimpsest (the application you're using), but in gparted, it's easy. Just select the drive and choose "Device > Create new partition table". I'm using a Norwegian translation, so it might not say exactly that, but you'll find it.

From your screenshot, I think that should do it, but it is an assumption. And in any case, make sure you have backups before you try anything.


How can I have mkdir cd into the newly-created directory?

I suggest creating a function:

function mydir(){ mkdir -p "$1" && cd "$1"; }

it does what you want, you can add it to your .bashrc so it will be available in all your shells.

$1 is the first argument you send to the function, the name of directory.

You can use it like:

$ mydir ~/my-new-directory
$ pwd
~/my-new-directory

Note: you can change mydir with mkdir to override it, however I suggest a custom name which does not exist in system like mydir or cmkdir; You can check to see if a command exists using type command.


There are two built-in command that you can use: xev and xmodmap.

Both command line applications are available by default, so there is no need to install additional software.

Xev "creates a window and then asks the X server to send it events whenever anything happens to the window (such as it being moved, resized, typed in, clicked in, etc.)." xev man page

xmodmap is a "program is used to edit and display the keyboard modifier map and keymap table that are used by client applications to convert event keycodes into keysyms." xmodmap man page

And Also there are some applications that do this for you. One of them is xbindkeys

sudo apt-get install xbindkeys

Xbindkeys is a very versatile program that lets you remap keys very easily. It uses a config file, my default located in your home directory, to change key bindings into certain commands.

For more information please go to this site.


The easiest way to add all your own music is just to mark the folder it's in as being synced with Ubuntu One.

See Ubuntu One : Help : FAQs - How do I move my existing music to Ubuntu One? for details.

Basically, just right-click on your Music folder (or wherever your music is stored) and pick Ubuntu One > Synchronize this folder from the context menu. This will copy your music into your personal cloud, and then it's all available for streaming.


how to bring linux bridge up at booting time?

You should be able to do this by editing the rc.local file:

  sudo nano /etc/rc.local

and adding the command used to bring up the bridge, to the bottom of the file before the exit 0 command (if present):

  ifup eth0

The rc.local file is executed at the time of booting the system, so any commands within the file will be executed at that time.


Is the encryption passphrase presented on install required if I have a luks header backup?

I presume you are asking about the master key, and if so, yes the master key can be used for data recovery and decrypt your data. The intention is to give you a way of decrypting the LUKS container in the event you lost your password.

  If the header is intact and you just forgot the passphrase, just set a
  new passphrase like this:

cryptsetup luksAddKey --master-key-file=<master-key-file> <luks device>

For details see - https://gitlab.com/cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions#6-backup-and-data-recovery

The master key, password, and luks header, and how to use them, are discussed in great detail on that page and I am not sure how to further answer your question.


LetsEncrypt - "Can't connect to the client for DV"

The solution was to forward port *:443 on my router to the relevant IP on my network (192.168.0.23, in my case)


Xournal bug while attempt to open file "could not open background"

The "background" is your original PDF file that you have used to annotate with Xournal. The xoj file does not contain that file, but merely your "additions" (notes, handwritten text etc.). Therefore, to open it again properly, you need to have the original PDF file.

You can take a look at the xoj files -- they are plain XML, compressed with gzip:

 cp file.pdf.xoj file.xml.gz
 gunzip file.xml.gz
 gedit file.xml

There will be a line containing something like

 <background type="pdf" domain="absolute" filename="/home/username/xxxxx.pdf" pageno="1" />

Make sure that this file is present at the location in the above tag. You can also modify the xoj to point it to new location, save it and do

 gzip file.xml
 mv file.xml.gz newfile.pdf.xoj


Allow user to enter username before mounting shared drive

Try this:

sudo cifs -o "username=$(>&2 echo -n "Enter remote username: "; read u; echo $u),uid=$(id -u),gid=$(id -g)" //server-address/folder /mount/path/on/ubuntu

Explanation:

$(>&2 echo -n "Enter remote username: "; read u; echo $u)

This will open a subshell and add its output (stdout) to your command.
It's basically equivalent to $(id -u), just that you use read to ask for user input. The nested subshell will always be executed first.
The line Enter remote username: needs to be send to stderr (>&2) for that it is not part of the output that is added to your command.


How to really customize an "ubuntu-11.04-alternate-amd64.iso" image?

The last time I looked into this, there were several different methods, each with pros and cons.

I ended up using the Ubuntu port of Red Hat's kickstart. There's a decent GUI tool you can apt-get install: system-config-kickstart. It can definitely do the simple things, like skipping a windowing system or customizing a list of packages to install. It can even do simple partitioning, but I wouldn't count on being able to do LVM, let alone encrypted LVM. See further documentation here: https://help.ubuntu.com/11.04/installation-guide/i386/automatic-install.html

Once you have your ks.cfg, you can either specify it as an HTTP URL when booting, or you can build a new image with genisoimage that has the file at e.g. /preseed/ks.cfg and passes a kernel argument ks=cdrom:/preseed/ks.cfg when booting.

Preseeding the Debian Installer might be the more native way to do it: https://help.ubuntu.com/11.04/installation-guide/i386/appendix-preseed.html

This thread has some other good suggestions, especially FAI: https://serverfault.com/questions/463/how-can-i-configure-unattended-installation-of-ubuntu

P.S.
There are several configuration management systems that may suit your needs if you find that configuring the machine after installation is acceptable. See especially puppet, bcfg2, and chef.


Failed install of Eclipse Neon CDT (4.4.0-83-generic #106-Ubuntu)

So, what I found out was:
After deleting the unTARed folder I could still open Eclipse, and entering "sudo apt-get remove eclipse" didn´t find anything to remove, but suggested doing sudo apt autoremove. I did so, and after that all vestiges of eclipse were gone.

Then I did ~/opt$ tar -xzvf ../Downloads/eclipse-cpp-neon-3-linux-gtk-x86_64.tar.gz on the same downloaded package again, and another version of Eclipse with a very different face appeared. Somehow I was still running a ghost of past Eclipse installations even after removing them through apt-get.

Neon isn't really the latest version, but CDT's downloads page shows it as such, so I didn't bother.


Can I install Widevine on Ubuntu for Raspberry PI 4

On Firefox, search for DRM in the settings and tick the box. That will download and install Widevine.
Before

After


As gimp is a package that can be found in the Ubuntu repositories (i.e. you're not trying to install any non-supported application or beta version, etc), i suggest you try to solve the dependency issue instead of bypassing it.

Therefore, i would do the following:

Look for and note all the Depends: <package name> statements in your error message (like python-gtk2, libc6, libfontconfig1, etc). These are the packages that have dependency issues.
For each of these packages, do a sudo apt-get remove <package name> and then a sudo apt-get install gimp. Do this recursively. Each time you uninstall one package, then try to install gimp.

You should notice that the list of dependency issues should be smaller (that's not always the case, but let's keep it simple for now).
At some point - probably not all packages will have to be uninstalled - the installer should proceed with the installation of gimp as well as with all the necessary dependent packages at their 'correct' versions.

Give it a try and let us know how it went ;)


I recently installed Ubuntu to a USB drive and I can't get back to Windows

Not sure what would actually happen if you did it, but maybe in rufus you installed onto the c drive.  If this is the case it would start at the screnn asking if you want to install or try I think.


I just needed to run

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EBCF975E5BA24D5E


Restrict access to specific folder on samba

You will have to add a new user for that folder with different password ofc.:

Below is an example with user secretuser:

Add user and set password:

  useradd secretuser
   passwd secretuser

Add samba user:

  smbpasswd -a secretuser

Add a user to a Samab share:

  [accounts]
  comment = Accounts data directory
  path = /path/to/folder
  valid users = user1 user2 secretuser
  public = no
  writable = yes

Restart the samba:

  service smb restart


How to show 'similar' commands when you forget the exact command

If you know part of the command's name you could try apropos, e.g., in your case

apropos pdf


Hiding an application from switcher (alt+tab)

I solved it after finding a small thread on Ubuntu forums. I think this solution can be applied to any program

Install compizconfig-settings-manager:

sudo apt-get install compizconfig-settings-manager

Go into Window Managment and Window Rules, there add:

Skip taskbar: title=Cairo-Dock
Skip pager: title=Cairo-Dock

and finally go back to the main settings and enable the Window Rules by checking the box

It is also possible to change the switcher by activating the ring or shift switcher and replacing the Unity shortcut with the custom switcher. In their respective menus you can choose what kind of windows it should display.


A new Java version was released: http://www.oracle.com/technetwork/java/javase/downloads/index.html I guess you'll have to wait for the PPA to add the new version and then try again.


CTRL+F Find/Search not active after clean install of Ubuntu 13.04

Goto System Settings -> Keyboard -> Shortcuts -> Launchers. Now select 'Search' and hit the 'Backspace' button on the keyboard. Make sure the shortcut is now 'Disabled'. Now 'Ctrl+F' will work as usual.


Ubuntu 19.04 remote execute windows command?

You can try to use powershell remotely, but it's not the classic cmd.  In ubuntu 19.04 you can install powershell with snap. If you are interested, search commands of powershell and look this link to execute remotely powersell.

https://msdn.microsoft.com/en-us/powershell/scripting/core-powershell/running-remote-commands


No OpenVPN option in new connection dialogue

It is not an elegant solution, but sudo apt-get purgeing and re-installing network-manager network-manager-gnome network-manager-openvpn network-manager-openvpn-gnome openvpn did the trick.


In Gnome Shell how can I remove activities button keeping the hot corner behaviour?

With this new extension you can do it, and there is many other options.

https://extensions.gnome.org/extension/358/activities-configurator/

Grettings!


I managed to work around it myself. Here are the steps

Boot to Live CD
Mount ubuntu partition and disable cups-browsed startup script

sudo mount /dev/mapper/nvidia_abcdefg1 /mnt
sudo chroot /mnt
mv /etc/init/cups-browsed.conf /etc/init/cups-browsed.conf.disabled
nano /etc/init/cups-browsed.conf.disabled   # comment out the code for `start on` then save the changes
exit
sudo umount /mnt
exit

restart and boot as usual

This is not removing source of the problem, but at least I can now boot into OS.


How do I run a py file with pico in the terminal?

How to open the file with Pico:

In the terminal enter pico file where file is the path and the name of the file that you're trying to open with the editor.

How to run the python script from terminal:

There are a couples of ways to do it, one of them is:

Give execution permissions to the file entering chmod +x file.py
Run the script with ./file.py

Another way is using the python interpreter:

Enter python file.py

NOTE: In all commands replace file with your're file name


I upgraded fron 12.04 to 12.10 and can not find my pictures

You could use GDmap to map out your hard drive and break down files by type and physical size. It should make it easier to locate your pictures.


It looks like you have edited /etc/fstab manually or you have mounted/unmounted a device which didn't reflect in /etc/fstab and it doesn't resemble /proc/mounts entries.

Do a grep -v rootfs /proc/mounts to see the difference. Update the /etc/fstab accordingly and try the mount or df -h command.

If that didn't do the trick then try grep -v rootfs /proc/mounts > /etc/mtab.

If you still get a disk space issue then you may need to reboot.


Screen brighness control doesn't work on a Samsung Netbook NN150Plus

Add this ppa https://launchpad.net/~voria/+archive/ppa using software sources and install Voria samsung-backlight, reboot and you should be good.


64 Bit Ubuntu onyl recognizeds 3.5 GB of 6 GB RAM

You cannot run unequal quantities or different speeds or different voltages or basically any 2 RAMS that are not the same model and size without running into a problem.

this is because the computer can only assign equal sizes of RAM for a task so if a task requires 3GB of RAM (theoretically) then there would be a fatal error.

So there is no hardware support for this. Same problem with different speeds

Different manufacturers also cause a problem because of incompatibility. So you cannot have 6GB of RAM especially if they run at different clock speeds. you can have 2GB, 4GB, 8GB and so on, with equal sizes of RAM

EDIT: saw your quantities later but same theory applies, you cannot divide "channels" into unequal quantities causing fatal errors (hence no hardware support). BTW get RAM with higher frequency for a performance upgrade, a lot of the power lies in the clock speed and 500mhz is extremely low when there are 3000mhz sticks available now!

Check overclockers.com and tomshardware.com (many more) for more info about this.

Basically problem isn't in ubuntu so this is the wrong forum to ask this question. Even at those forums you'll get an answer like "it won't work for you (most probably) but if it does then don't run it cause it'll cause more damage than it'll do good"


module build resource not found trying to make a driver from .C source

Found the problem.

There is supposed to be a link 'build' in '/lib/modules/3.4.113-sun8i' which points at
at   '/usr/src/linux-headers-sun8i'  I put that link in and the make worked.
I already had the headers installed.

Peter


To install apache2-dev on Ubuntu, use:

sudo apt-get install apache2-threaded-dev

Source: Related question on SO


Upgraded from 14.04 to 16.04, desktop won't wake up with mouse

Can you test with disabling pwd-saving features?

sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

To undo for command above:

sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target

When PC goes to suspend, is it responding to caps lock ie. will caps lock illuminate caps lock led on keyboard?


Cannot install Canon MG6350 drivers - libtiff4 is not installed - Ubuntu 14.04

I had the same issue and hacked a solution. Feel free to try it.

1) Install libtiff4 from here

1a) I'm on amd64, which clashed with an already installed libtiff4:i386, which I removed:

sudo apt-get remove libtiff4:i386

then,

sudo dpkg -i libtiff4_3.9.7-2ubuntu1_amd64.deb

[I didn't bother checking to see what depended on libtiff4:i386 on my system, so do this at your own risk. I was feeling brave/reckless]

2) Installed the canon driver from here, and executed install.sh

It is disappointing that there hasn't been an update to this driver since 2012.

Printer options for the official driver are scarce but the quality is fairly decent. I couldn't get the default CUPS+Gutenprint v5.2.10-pre2 driver to work at all. However, I have kept it installed as it does show the ink level, which is handy.

Cheers


How to mount root filesystem read-only - 16.04

This happens because systemd (specifically, systemd-remount-fs.service) by design ignores your kernel parameter of ro. Whether this is a good or harebrained design is a matter of opinion, but for an objective workaround, you can add systemd.mask=systemd-remount-fs.service to your kernel parameters in grub, along with ro:

... systemd.mask=systemd-remount-fs.service ro


I can't update my spotify on 13.04, what should I do?

sudo apt-get -f install; sudo apt-get install spotify-client

UPDATE

You might need to add the spotify repos again:

sudo echo "deb http://repository.spotify.com stable non-free" >> /etc/apt/sources.list

Then update:

sudo apt-get update

Then run the commands at the top.


Is it possible to bring terminal (invoked from GUI) to the CLI terminal?

Virtual Console

ctrl + alt + f1

Is a virtual console, accessed when the Ubuntu OS is loaded. (ctrl + alt + f7 to return to GUI Ubuntu)

Recovery Mode - Terminal

Have you tried recovery mode? When the boot options screen appears:

Advanced options > ***** (recovery mode)
Accessing recovery mode

This will allow you to access the terminal as root, and update graphics drivers etc.

AMD graphics

This may also help your issue with AMD drivers, which might be your problem.

How to remove proprietary AMD drivers & repair Unity


Issues with /dev/sda prevent system to launch

I've looked up the model of your notebook and it would appear that if it is as originally sold, it may have either the 1TB hard drive or a 128gb SSD.  The symptoms you describe suggest a dying hard drive, which is consistent with very thin portable computers.  Hard drives are delicate machines under the best of circumstances, and so the thinner and denser the machine it is housed in, the less that exists to protect it if it is handled roughly.

Certainly I can offer you some shortcuts to diagnosing for certain that you need to replace the drive in your machine, but to cut to the chase, you probably need to plan to do that, and when you do, that you purchase solid state next time.  Supposing that your drive might be mSATA, rest assured you can purchase a 1TB in solid state for under $500, and in fact, you could probably tolerate something smaller in capacity and save a few dollars.  Now back to the matter of diagnostics.

The advice you've already received is good.  Yes, you can just boot your notebook to an external USB live Ubuntu boot medium such as that which you probably installed it with.  Alternately you can use an external USB cd/dvd drive to boot to a live cd/dvd.  Either will work.

Once you have booted to external media, you will want to open the included utility known as Disk Utility.  There you will see an area marked SMART, provided of course your dying drive supports that protocol.  If it does, you will not only be able to determine immediately if it is dying, but even what likely caused it and how long you have left to rescue any data you wish to save.

Rescuing your data will be easy once you are booted to this external media, provided of course that your personal data directories are not encrypted anyway.


How can I save the CurrentItem of Picker in QML?

I'm not 100% certain, but I suspect the problem is that you're storing the database connection instead of re-obtaining it each time you need to access the database.  The LocalStorage documentation says, "Database connections are automatically closed during Javascript garbage collection."  This makes me wonder if the  connection is closed at the end of the openDB() function, as it doesn't recognize that the connection is being stored in a QML property.

I would change to code so that openDB() calls openDatabaseSync() each time, and returns to the database connection to the caller, which will use it as a local variable.  This is the pattern I've always seen used.

It looks like your database initialization code is properly guarded, but there may be a better approach.  The first would be to pass a callback to openDatabaseSync().  This will only be called if the database is just now created, and a database connection is passed as an argument.  Thus, the initialization code can be run inside the call back.  Another approach would be to check db.version after getting the connection.  On first run, this will be the empty string.  In later runs, it will be set to the value passed in openDatabaseSync().  Checking this value is also useful for performing database upgrades.

As an example, you can check out this QML file from my project Beru.


Slow switch to other applications' windows from Chrome

I started having the same problem with Google Chrome just today (on Ubuntu 16.04).

Switching between tabs on the same Chrome window is fast (just like normal).

Trying to switch focus from one Chrome window to another Chrome window is painfully slow (like 2 second delay).  Similarly slow when switching from a Chrome window to another application (e.g. nautilus), but seems slightly less slow (like 1 second delay).

Switching between other non-chrome windows is normal speed. Firefox is fine.

The only thing that's changed for me is : my dell precision m3800 suddenly thinks I'm connected to a lower wattage power adapter (have tried multiple authentic dell adapters, still same problem).

Normally Dell BIOS slows your CPU down to 800mhz in this state, and  I ended up setting intel_pstate=disable processor.ignore_ppc=1 in my grub config to force it to ignore that (per Ubuntu 15.04 with intel_pstate - low current cpu frequency).


This is actually a bug, and many of us are concerned. It occurs only in Unity and sometimes in Gnome-shell. (Kubuntu, Lubuntu, Xubuntu... are fine).

For the time being, you have to use your user password to logout/shutdown

I personally did this as I am the only one to use my computer:

Open Keyboard shortcut dialog (from System settings) and add a new keyboard shortcut with a custom command line:

In The above example, once you clikc ALT+CTRL+BACKSPACE, you should be prompted to type your user password graphically and logout properly.

Repeat the same procedure for shutdown :

gksudo shutdown -h 0


Fix crackling audio with Pidgin Internet Messenger

I had the same problem until I opened Pidgin's sound properties and switch "method" from "auto" to "ALSA". Now it works.


sudo apt update won't solve your problem(as of now), since the package is not updated there.
Installing the latest version from github will solve.

clone https://github.com/home-sweet-gnome/dash-to-panel
run make install
logout and login
tweaks -> extension -> dashtopanel

Also, the same issue is addressed here
https://github.com/home-sweet-gnome/dash-to-panel/issues/1131


The system is unbootable because the Mac bootloader expects the EFI partition to be formatted as HFS+, the typical Mac filesystem, while the Ubuntu installer actually formats it as VFAT.

Refer to my earlier answer for detailed steps to install Ubuntu properly on a Mac.


Can't install Ubuntu 18.04, error writing on /dev/sda

I had the same issue. (Read my story below if you like.)

This basically says that the hard drive is broken:

  SMART overall-health self-assessment test result: FAILED!
  Drive failure expected in less than 24 hours. SAVE ALL DATA.
  No failed Attributes found.

You really should only use hdds that are in a good condition. So sudo smartctl -x /dev/sda should return the line SMART overall-health self-assessment test result: PASSED. Only then you should use it.

You can test your hard drive with a similar tool on another PC to be sure (same for providing more of the smartctl output), but I would suggest you try another (new) hard drive instead. Installation should work fine then.

In my case, the disk was simply broken. Reading out the S.M.A.R.T values on a different PC showed some red flags. There must've been some physical damage, probably from falling down while in use. The install would always fail after some minutes. Later I found out that approximately sectors corresponding to 3 GB where working, but some sectors later where broken. The installation would simply not continue.


Snappy Ubuntu Core 15.04 kernel panic (cannot open root device) after `update-grub`

After looking into the past and post grub.cfg, the finding is, when running update-grub, there is a function written in /etc/grub.d/09-snappy called get_kernels(...) that lists all installed kernels in /boot and pick the newest one to create the boot menu entry.

The original grub.cfg uses /vmlinuz and /initrd.img which point to /boot/vmlinuz-3.19.0-47-generic and /boot/initrd.img-3.19.0-47-generic, respectively. However, after running update-grub, it picks /boot/vmlinuz-3.19.0-47-generic.efi.signed, which does not have a corresponding initrd.img. Then the 09-snappy script simply ignores this file not found and did not add the initrd command in the generated grub.cfg, then the menu entry does not boot.

After deleting /boot/vmlinuz-3.19.0-47-generic.efi.signed manually, update-grub no longer causes booting problem.

TL;DR

The signed kernel image /boot/vmlinuz-3.19.0-47-generic.efi.signed does not have a corresponding initrd.img. Delete it.

New issue: the grub.cfg generated by update-grub is replaced by the original one after one successful boot. Not sure why this happens, but it seems to be a separate problem so would not discuss it here.


No sound from line-out in Ubuntu 19.10 on ALC1220

TLDR:

Cold-boot to Linux or change the sound driver in Windows;
check you volume level for headphones in alsamixer.

To answer my own question, this behaviour seems to be caused by two different issues:

a collision between a Windows Realtek driver and a Linux HDA driver
alsamixer volume settings for headphones

After applying both of the fixes, I finally have sound from the "Line out" jack on Ubuntu 20.04 running Kernel 5.4:

ales@VIKING-ALES:~$ uname -a
Linux VIKING-ALES 5.4.0-26-generic #30-Ubuntu SMP Mon Apr 20 16:58:30 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Collision between a Windows Realtek driver and a Linux HDA driver

After digging around, I found the following thread on level1techs.com: https://forum.level1techs.com/t/has-anybody-gotten-audio-working-in-linux-on-aorus-x570-master/154072/45

As suggested there, this might be happening exclusively in the dual-boot scenario when the Linux HDA driver might not be able to initialize the sound card in a state set by the Windows Realtek driver and refuses to produce sound (even after applying the second step with alsamixer).

One solution thus is to always cold-boot to Linux. The aforementioned forum alternatively suggests to switch from the Realtek driver to a Microsoft's HDA driver. I have tried and it indeed seems to have fixed the issue. Now the reboot (with the 2nd step mentioned below) keeps the sound.

Fun fact: After switching to the Microsoft HDA driver and rebooting, Windows was not playing any sound too. I had to cold-boot to Windows to reset the state of my sound card apparently set by the Realtek driver before the reboot. So it seems that it's not only the Linux's HDA driver that has problems with recovering from the sound card state, but the Microsoft's HDA driver as well.

AlsaMixer volume settings for headphones

Another issue is that the "Headphones" volume is set to 0. Apparently, Alsa has this connected with the rear jack for speakers.

The solution is described e.g. here:
No sound in Headphone from front panel audio port in Ubuntu 18.04

The only remaining issue is that the volume of the "Headphones" is not persisted across reboots or after plugging actual headphones to the front panel jack. It is another issue but when I find a solution, I might add it here for the sake of completeness.


Problem with synclient: '-m' flag missing

Had the same problem, downgrading to version 1.6.2 did the trick for me. Seems like the -m option was removed in version 1.7.1. After downgrading the -m option is back, and three finger gestures work. Tell me if you need any help with downgrading.

Note: You should have a mouse, as the trackpad wont work between step 2 and 7.

Download: https://ftp7.de.netbsd.org/pub/releases.ubuntu.com/ubuntu/pool/main/x/xserver-xorg-input-synaptics/xserver-xorg-input-synaptics_1.6.2-1ubuntu6_amd64.deb

sudo apt-get purge xserver-xorg-input-synaptics
sudo reboot #not sure if needed
sudo dpkg -i /path/to/xserver-xorg-input-synaptics_1.6.2-1ubuntu6_amd64.deb

If the result of the last step was that it told you about missing dependencies, the next command will probably fix the dependencies:

sudo apt-get install -f
sudo cp /usr/share/X11/xorg.conf.d/50-synaptics.conf /etc/X11/xorg.conf
sudo gedit /etc/X11/xorg.conf

Find the section enclosed by Section "InputClass" and EndSection that contains

'Identifier "touchpad catchall"

And add these 2 lines inside the section:

Option "SHMConfig" "on"
Option "Protocol" "event"

Now save the file, reboot, and you're done!


Macvlan interfaces beyond first interface fail to connect.

I think you must be able to ping the gateway successfully first. To do this, you must disable rp_filter on the specific interface，then you should add a route on the interface for a specific address.


xwinwrap doesn't start on Ubuntu with bspwm

I tried the next solution to get xwinwrap working:

sudo apt install bspwm because of you mentioned it
sudo apt-get install gifsicle because of gifview: No such file or directory error appears without it
Being in /home/user executed: git clone https://github.com/ujjwal96/xwinwrap.git && cd xwinwrap && make && sudo make install && make clean to install xwinwrap
Downloaded the gif into /home/user/xwinwrap folder
Executed command:

xwinwrap -g 1366x768 -ni -s -nf -b -un -argb -sh circle -- gifview -w WID /home/user/xwinwrap/d0ce51911d72ec558f914ace338292be.gif -a

My processor and graphics performance is poor, so it lugged on my laptop seriously.


Which arptables rules to avoid man-in-the-middle attack?

# Block ARP traffic from and to all machines (default: DENY)
arptables -P INPUT DROP
arptables -P OUTPUT DROP

# Allow router (fixed ARP)
arptables -A INPUT --source-mac <ROUTER_MAC> --destination-mac <USER MAC> -j ACCEPT

where <ROUTER_MAC> is the mac of the subnet router.


Why doesn't id-tool show latest added group?

id shows information about the process that invokes it (or more precisely, it shows information about itself, which it inherits from the process that invokes it). The group database is only consulted at login time, and it only affects processes descended from that login session. The login process is granted the groups listed in the group database, and all other processes inherit from their parent.

Starting a new shell doesn't make a difference, you need to log out and back in. You can test your changes by logging in in another console or with ssh localhost or with su me.

You can query the group database with getent group vboxusers. Unless your machine uses NIS or LDAP to obtain user and group information from a network server, this will give the same information as grep '^vboxusers:' /etc/group. Again, this information tells you what happens at login time, it is not consulted afterwards.


workspace switching via ctrl + alt + arrow not working after upgrade to 13.04, how to fix this?

I had this same issue.  I enabled workspace from Appearance → Behavior, and also tried using Ubuntu Tweak, but no go on the keyboard shortcuts, even though all the defaults were there.

I then opened CCSM to make sure that the Desktop Wall was enabled.  In my case it wasn't, and as soon as I enabled it, my keyboard shortcuts started working again.


lxd container. Problem with large file local.img

When you started using LXD, you configured it by running sudo lxd init.
This wizard guided you to select where to store the containers.
You most likely selected to use ZFS over a loop file. You should have been asked to specify the maximum size.

Therefore, first run the following to figure out the name of the storage (here mystorage).

$ lxc storage list
+-----------+-------------+--------+--------+---------+
| NAME      | DESCRIPTION | DRIVER | SOURCE | USED BY |
+-----------+-------------+--------+--------+---------+
| mystorage |             | zfs    | lxd    | 25      |
+-----------+-------------+--------+--------+---------+

Then, run this to get the details of the storage. It will show how must space (maximum) you have arranged and how much is currently in use.

$ lxc storage info mystorage
info:
  description: ""
  driver: zfs
  name: mystorage
  space used: 12.37GB
  total space: 200.44GB
...

Note that in your case (ZFS over loop file), you may need to use du --apparent-size to get the actual space in use. Because of something called sparse files.


My recommendation with some AMD/ATI radeon graphic cards on Ubuntu 11.04 and above is that you NOT install the proprietary drivers from AMD. I've made the experience that flash games and movies are slower with the proprietary driver and that you can have problems with supend/hypernation.
With Ubuntu 10.10 and lower, it's better to install the proprietary driver, there are no performance issues and so on.


grep is returning multiple lines just fine:

$ while true; do
 trap break SIGINT
 ping -w 5 localhost | { trap '' SIGQUIT
 ts '%Y-%m-%d %H:%M:%S |' |
 grep -E 'PING|packets|rtt'
 }
done
2015-11-07 17:28:50 | PING localhost (127.0.0.1) 56(84) bytes of data.
2015-11-07 17:28:55 | 6 packets transmitted, 6 received, 0% packet loss, time 4998ms
2015-11-07 17:28:55 | rtt min/avg/max/mdev = 0.027/0.035/0.042/0.005 ms
2015-11-07 17:28:55 | PING localhost (127.0.0.1) 56(84) bytes of data.
2015-11-07 17:29:00 | 6 packets transmitted, 6 received, 0% packet loss, time 4999ms
2015-11-07 17:29:00 | rtt min/avg/max/mdev = 0.024/0.040/0.052/0.009 ms
2015-11-07 17:29:00 | PING localhost (127.0.0.1) 56(84) bytes of data.

The problem is the unnecessary read foo; echo foo you are doing:

grep -E 'PING|packets|rtt' | { read grep_out
    echo $grep_out
}

It will read only one line of grep's output.

Since you just need to insert a snippet at the beginning and end:

while true; do
    trap break SIGINT
    ping -w 5 10.0.0.1 | { trap '' SIGQUIT
        ts '%Y-%m-%d %H:%M:%S |' | {
            echo 'INSERT INTO test VALUES('
            grep -E 'PING|packets|rtt'
            echo ');EXIT;'
        } |
        mysql --user=user --password=pass
     }
done

Example:

$ while true; do
    trap break SIGINT
    ping -w 5 localhost | { trap '' SIGQUIT
        ts '%Y-%m-%d %H:%M:%S |' | {
            echo -n 'INSERT INTO test VALUES('
            grep -E 'PING|packets|rtt'
            echo -n ');EXIT;'
        } |
        cat
     }
done
INSERT INTO test VALUES(2015-11-07 17:48:02 | PING localhost (127.0.0.1) 56(84) bytes of data.
2015-11-07 17:48:07 | 6 packets transmitted, 6 received, 0% packet loss, time 4996ms
2015-11-07 17:48:07 | rtt min/avg/max/mdev = 0.029/0.037/0.046/0.008 ms
);EXIT;
INSERT INTO test VALUES(^C%

Take care with quoting and other SQL injection problems.


Encrypt: Overwrite empty disk space bad for SSD drives?

Not really. Using that option will cause a single write to every sector of the SSD partition that you assign to Ubuntu. Used sectors will get encrypted data. Unused blocks will get random data. This is the equivalent of a Windows "Full Format". Modern SSD drives are rated for hundreds, or even thousands, of terabytes of writes before any significant number of sectors get reallocated. See The SSD Endurance Experiement. Even the worst performing drive there was capable of enduring 140GB of writes per day for 10 years. The initial wiping of the drive (around 250GB for an average 2014 drive) will be insignificant in comparison to the total writes over the lifetime of the drive.


Sound menu keyboard shortcuts aren't working with VLC. Work fine with Rhythmbox/Banshee

Your command in comments seems fine. Best way to set, if using compiz, is in ccsm > Commands. (you also need to have the dbus plugin enabled.

Then for command enter as commented dbus-send --type=method_call --print-reply --dest=org.mpris.MediaPlayer2.vlc /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause

Enable it to the media key in the key bindings as seen in screen, here it's run command 2, when going to the set 'key combo', I just used the media play/pause on keyboard, ie. no combo


Follow these steps to completely remove Copy from your system:

Disable autostart for each user, if necessary.  (You don't need to use sudo if no other user accounts on your system are using Copy)...

sudo rm -rf /home/<user>/.config/autostart/CopyAgent.desktop

Log out and log back in.  This will shut down the running copy process so it does not re-create the files you are about to delete in step 3.  (You can also just kill the "CopyAgent" process using System Monitor if you don't want to log out.)
Execute the following for each user, if necessary.  (You don't need to use sudo if no other user accounts on your system are using Copy).

sudo rm -rf /home/<user>/<path_to_users_copy_folder>/.copy.cache/
sudo rm -rf /home/<user>/<path_to_users_copy_folder>/.user_info
sudo rm -rf /home/<user>/.copy
sudo rm -rf /home/<user>/.icons

If you had manually installed the Nautilus overlay icons, uninstall them...

sudo <installation_location>/<architecture>/CopyCmd Overlay remove

Uninstall Copy software...

sudo rm -rf /root/.copy

If you had manually added a launcher shortcut, remove it.  Assuming you called the launcher "copy.desktop" do the following.

For all users...

sudo rm  /usr/share/applications/copy.desktop

Or, for each user...

sudo rm  /home/<user>/.local/share/applications/copy.desktop

Note, in the above steps...

Replace <user> with the user on your system that is using Copy.
Replace <path_to_users_copy_folder> with the user's local "Copy" folder (for example, Documents/Copy).
Replace <installation_location> with the location where you
installed Copy (for example /usr/share/copy).
Replace <architecture> with "x86" (if you have a 32bit computer) or with
"x86_64" (if you have a 64bit computer).


How can I keep the gnome-terminal open after a program closes?

1. First option: edit gnome-terminal settings

In gnome-terminal, go to preferences, the "Title and command" tab. Then click the drop-down list "When command finishes", choose "Keep terminal open".

2. If you prefer not to have an effect on all terminals

You can add bashas a last command. In my test,

Exec=gnome-terminal -e 'bash -c "gedit; echo Monkey; bash"'

did the job. In your command, you probably need to do it like:

Exec=gnome-terminal --geometry=... --window-with-profile=... --title=... -e 'bash -c "ssh -t -i ~/dsa.key cle@12.210.9.17 sudo -s; bash"'

3. Keep the terminal open until you hit Enter

Another option is to place read line at the end of your commands. In that case, the terminal will stay open until you hit Enter

From my test:

Exec=gnome-terminal -e 'bash -c "gedit; echo Monkey; read line"'

Or in your command probably:

Exec=gnome-terminal --geometry=... --window-with-profile=... --title=... -e 'bash -c "ssh -t -i ~/dsa.key cle@12.210.9.17 sudo -s; read line"'

Notes

Note that this launcher will "steel" possible other windows from gnome-terminal's own application launcher in the Unity Launcher, since this launcher calls gnome-terminalin its "main" command. Cleaner would be to add the command as a shortcut to the existing gnome-terminal launcher (or any other launcher you'd like).
Since the command in the launcher already calls gnome-terminal, you do not need to set Terminal=true.


How do I remove unwanted kernels in my 12.x machine

There is documentation on this issue over at the wiki, see here:
https://help.ubuntu.com/community/RemoveOldKernels

If "apt-get autoremove" does not remove them, your best choice for precise might be to install the byobu package from it's PPA as mentioned on that page, to get the 'purge-old-kernels' command.

Please also note that Ubuntu 12.04 (Precise) reaches end of support next month in April and is now end-of-life.  Please consider upgrading to 14.04 (trusty) or preferably 16.04 (xenial).


Why do you create so many NTFS partitions in the first place? As for your info, Ubuntu/Kubuntu can't be installed on one of those, they require a Linux file system like ext4.

I'd suggest the following:

Delete all partition.
Use Vista to create a primary NTFS partition for Windows8, and then proceed installing it.
Install Ubuntu and Kubuntu. You can create partitions for them inside the installer.


Why can coworkers can see what I'm doing when I VNC in and how to fix this?

1.On the remote machine: install vncserver:

sudo apt-get install vnc4server

Create a second desktop that will run in the background and create a password for it:

sudo vncserver :1

Edit $HOME/.vnc/xstartup to look like the following using any text editor:

#!/bin/sh

# Uncomment the following two lines for normal desktop: unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc

#[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup

#[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources

#xsetroot -solid grey

#vncconfig -iconic &

#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &

Restart vncserver:

sudo vncserver -kill :1

sudo vncserver :1

Use vnc viewer to access this desktop and instead of port 5900 repleace the end digit with desktop number. E.g. to connect to 192.168.0.10 desktop :1 it would be 192.168.0.10::5901. The desktop that the user sees by default is desktop :0.

Hope this helps!


Fix "WiFi Disabled by hardware switch" in Kubuntu 14.04

I got the same problem.I did

Restart -> F2 -> Bios settings -> Reset bios to default -> save

This worked for me.


Configure unattended upgrades notification e-mail's from address

Just specify an alias in your mail.rc file:

alias root root<ParticularMachine@YourDomain.com>


Updating only one source in sources.list

From the method using /etc/apt/sources.list.d/ yes:

sudo apt-get update -o Dir::Etc::sourcelist="sources.list"

where sources.list is the one you created.

Be careful: If your repo contains older or newer versions of software than is installed from another repo that is not in the update you can run into trouble.


How to deal with long-range, unreliable WiFi access, featuring frequent dropouts

The key to your problem is the fact that when your neighbors turn off their WIFI's your problem disappears. You have interference from same or close channels. If you are able to,you need to change the frequency of your access point (computer).

You are currently at 2.427 GHz. That equals channel 4. Here is a reference link to the channel allocations. http://en.wikipedia.org/wiki/List_of_WLAN_channels

Try moving to the highest channel authorized for your country and see if you get improvement. Then, if necessary, move down the list until you do get improvement. If you are in an apartment, you may have much interference and may never get a full specification performing connection but hopefully you can get a connection that won't disconnect.

Worst case, you may have to get off 2.4 Ghz or go to a cable connection.

Good luck.


What's the easiest way to list files of a given extension, save that list to a text file, but omitting the actual extensions when in the text file?

Use find and basename:

find maps/ -iname '*.bsp' -exec basename {} .bsp \; > mapcycle.txt

The -exec flag runs the rest of the command line (until a ; or + is encountered) replacing {} with the the filename of a selected file (including the path). basename /path/to/filename.suffix .suffix will strip out the suffix and the path and leave only filename.


How to perform the same operation as pressing the eject button in nautilus, by running a command?

Here's a python script that will gather all mounted USB partitions, and perform udisksctl unmount -b <DEV> on each one of them. The standard rules for making this a working shortcut apply: ensure that the script is executable and give full path to script as command.

As requested only errors will be displayed in GUI dialog, other output won't be shown.

#!/usr/bin/env python
import os
import subprocess
import sys

def run_cmd(cmdlist):
    """ utility: reusable function for running external commands """
    try:
        stdout = subprocess.check_output(cmdlist,stderr=subprocess.STDOUT)
    except subprocess.CalledProcessError as cpe:
        # GtkDialog error should be ignored.
        if not "GtkDialog mapped without a transient parent" in cpe.output:
            return error_dialog(cpe.output," ".join(cmdlist))

def error_dialog(err_msg,called_cmd):
    """ Displays graphical error dialog and exits the script"""
    subprocess.call(['zenity','--error','--text',err_msg,'--title',called_cmd])
    sys.exit(1)

def find_usb_partitions():
    """ Constructs a list of USB partitions """
    return tuple( os.path.realpath(os.path.join("/dev/disk/by-path",p))
                  for p in os.listdir("/dev/disk/by-path")
                  if 'usb' in p and 'part' in p
    )

def find_mounted_devs():
    devs=[]
    with open('/proc/mounts') as mounts:
         for line in mounts:
             dev = line.split()[0]
             if dev.startswith('/dev/'):
                 devs.append(dev)
    return devs

def main():
   parts=find_usb_partitions()
   devs=find_mounted_devs()
   mounted_parts=tuple(i for i in parts if i in devs)
   for part in mounted_parts:
       run_cmd(['udisksctl', 'unmount', '-b',part])
       run_cmd(['udisksctl', 'power-off', '-b',part])

if __name__ == '__main__': main()

Additional thoughts

While the script works, I find the idea of unmounting from shortcut slightly redundant. Such task requires at least some involvement from a user. If the goal is to be able to unmount without terminal, there are already ways to do that. For instance, if you are a Unity user you already have device icon on the launcher from which you can right click and eject the device. I've written Udisks-Indicator, which you can use to unmount partitions from a graphical indicator (and which uses some of the same ideas I've used in this answer). In either case, there are alternatives already, but I personally would caution against using shortcuts to unmount things. But then again, this is only my personal opinion.


How do I install "Reentrant POSIX REGEX software"?

The simplest option would be libc6-dev, the development headers for glibc on Ubuntu. The regex functions provided by glibc are reentrant (note how they're marked MT-safe in the documentation).

That said, since OpenLDAP is in the repositories, why not install slapd from the repositories? See the Ubuntu LTS Server Guide on installing OpenLDAP for more.


Problem powering off my computer on Ubuntu 18.04

You need to edit the grub file.

Enter the Terminal using ALT+CTRL+T or from the serach, and enter the following command

sudo gedit /etc/default/grub

The text editor will open. Search for the line GRUB_CMDLINE_LINUX_DEFAULT and edit it to the following:

GRUB_CMDLINE_LINUX_DEFAULT="quiet noresume acpi=force reboot=pci"

After that go back to the terminal, and write:

sudo update-grub

That should fix it