How to insert embedded YouTube player into LibreOffice Impress?

First you have to download a video in order to embed it in a slide in LibreOffice Impress. I recommend downloading an mp4 format video, because YouTube usually provides a big selection of video resolutions for the mp4 format, which will give you control of the size of the finished presentation.

Install GStreamer backend for LibreOffice and youtube-dl.

sudo apt-get install libreoffice-avmedia-backend-gstreamer youtube-dl

Download a video in from YouTube using youtube-dl. The video format should be mp4 or any other video format that is supported by LibreOffice Impress. The resolution of the downloaded video controls the size of the video on the slide. If you want to see a small video box in the slide, then select a low resolution like 426x240 in the youtube-dl options. Selecting a low resolution will also produce a presentation of manageable size.
In Impress select Insert -> Movie and Sound...
A new Insert Movie and Sound window will open. You can see a list of supported video formats by opening the dropdown list of file types in the bottom right corner of the Insert Movie and Sound window. Browse to a video, select the video and click the Open button in the lower right corner to embed the video in a slide.
The controls for play, pause and stop will appear in the bottom left corner of the Impress interface. When you start a slide show and navigate to a slide which has a video embedded in it, the video will start playing automatically. When you go to the next slide or stop the slide show, the video will stop playing automatically.


You can use

/etc/skel

Put what you want to be in the user's home directory in /etc/skel. Browse the internet for /etc/skel and you will find several helpful links, for example

www.linfo.org/etc_skel.html


Lost the config of my monitor once I connected it to a KVM switch

You might want to have a look at this question which has a great answer already;

Where is the X.org config file? How do I configure X there?


How to remove configuration files of package without its reinstallation

Finally I just backuped extension list and I'll make clean installation. But if there will be any better solution, please write it here for next generations. Thanks


Purple screen after reinstalling grub multiple times

Found some additional resources to fixing the Windows bootloader. This website offers detailed steps as to how to restore the MBR without killing grub2:

http://www.linuxbsdos.com/2012/03/10/restore-the-windows-bootloader-to-mbr-after-dual-booting-with-linux/


I don't know how to fix it, but one alternative option is switch to Synaptic Pakage Manager, instead of Muon.


Mounting cifs drive gives: mount error(22): Invalid argument

maybe this helps with this, mount error(22): Invalid argument... possible error is the
argument/s (mode) on mount command.

check your logs on the errors encountered.

tail -f  /var/log/kern.log

remove the invalid argument


How do I increase size of per-user tmpfs partition /run/user/$(id)?

You can increase it by setting RuntimeDirectorySize in /etc/systemd/logind.conf as mentioned here: https://wiki.archlinux.org/index.php/Profile-sync-daemon#I_need_more_memory_to_accommodate_my_profile.2Fprofiles_in_.2Frun.2Fuser.2Fxxxx._How_can_I_allocate_more.3F

  The standard way of controlling the size of /run/user is the
  RuntimeDirectorySize directive in /etc/systemd/logind.conf (see the
  man page for logind.conf for more). By default, 10% of physical memory
  is used but one can increase it safely. Remember that tmpfs only
  consumes what is actually used; the number specified here is just a
  maximum allowed.

From the logind.conf man page:

  RuntimeDirectorySize=
  Sets the size limit on the $XDG_RUNTIME_DIR runtime directory for each user who logs in. Takes a size in bytes, optionally
  suffixed with the usual K, G, M, and T suffixes, to
  the base 1024 (IEC). Alternatively, a numerical percentage suffixed by "%" may be specified, which sets the size limit relative
  to the amount of physical RAM. Defaults to 10%.
             Note that this size is a safety limit only. As each runtime directory is a tmpfs file system, it will only consume as much memory
  as is needed.

You will need to log out and in again for the changes to take effect.


Why is it only recognizing 5 of 6GB of RAM?

The HD8610G is the video card with that laptop. It has no dedicated memory (some APUs have dedicated memory). It is supposed to be able to use up to 3GB of ram, but I can not find any details on how much it will use as a minimum.


You can disable this super+Q behaviour by running the following command in Terminal

gsettings set org.gnome.shell.extensions.dash-to-dock hot-keys false


How to show the Alt-Tab popup on All Monitors?

This is currently not possible in Unity without modifying the source code to implement this feature, sorry.


Intel came out with IA64 (64-bit) which was not compatible with 32-bit x86, but intel claimed it fixed a lot of x86 legacy issues, was faster & more secure.  It didn't do very well in the market.

AMD however created the AMD64 or x86_64 which due to x86 compatibility (it could run legacy 32-bit x86 code) it did sell well and is still in use today, by both intel (who pay for the privilege to use it now) and of course AMD.

IA64 is dead, and intel themselves use AMD64 (you don't want intel's IA64 unless you're using the Intels now dead Itanium family of cpus). Windows dropped support for IA64 back when windows 2000 reached EOL, the linux kernel however only dropped support earlier this year announcing the 5.4 kernel won't support it (intel themselves finally dropped it from the product list only this year).

As for your difficulties running x86_64 (or amd64), I would

check your download was flawless,
https://tutorials.ubuntu.com/tutorial/tutorial-how-to-verify-ubuntu#0
validate your write to install media using the "Check disc for defects" (where disc refers to your install media, be it CD/DVD/thumb-drive or whatever media you write the ISO to) https://help.ubuntu.com/community/Installation/CDIntegrityCheck

The second media check is I think the most valuable, as it detects most errors that step 1 will detect as well (the 1st test helps ensure the 2nd is working).


Multiple displays: Where did my window controls go?

Not a perfect fix, but if anyone is having this problem I wrote a script that fixes it when run without having to restart anything.

#!/bin/bash
currenttheme=$(gsettings get org.gnome.desktop.wm.preferences theme)
currentgtk=$(gsettings get org.gnome.desktop.interface gtk-theme)

echo $currentgtk

gsettings set org.gnome.desktop.interface gtk-theme 'Ambiance'
echo reset
sleep 0.2
gsettings set org.gnome.desktop.interface gtk-theme "$currentgtk"
gsettings set org.gnome.desktop.wm.preferences theme "$currenttheme"


Can you setup a Boot-repair live USB and try to repair the boot from it ?
Can you upload the PasteBin of the repair (by default after boot-repair operations).


Ensure you are not logging in using Wayland. At the login screen, click on the little gear icon to select Xorg, for example.

Look also at the last answer (with two upvotes) in: How to enable NVIDIA?


What helped me was clicking on the opened WSL window properties, in the Layout tab, in Screen Buffer Size, setting Height 9999 (maximum allowed), with the option "Wrap text output on screen" checked:


OMG. It looks like it was the monitor all along? I finally gave up, reinstalled Windows 8, and when that could not get the desired resolution either, I swapped the monitor for an identical model - et voila, it works! I haven't tried is with Ubuntu again, because it is getting late (I am three days into this project), but there is a good chance the stupid monitor was what cased all of this in the first place.


Force chromium and firefox to use TLS 1.2

Force Firefox to use your desired TLS version:

Write in address bar: about:config
Confirm to proceed

Default settings are:

security.tls.version.min = 0
security.tls.version.max = 1

1 = TLS 1.0
2 = TLS 1.1
3 = TLS 1.2

Set the values you need.


The 'terminal-plus' package for Atom editor doesn't work

The terminal-plus package is unmaintained with its last update being in November 2015. So I would like to advise that you switch to my Atom package (please note, that this package is only compatible with Linux platforms, if you want a terminal package to use on your non-Linux machines please use platformio-ide-terminal instead!), terminal-fusion. To install it merely run:

$ apm install terminal-fusion --no-confirm

where $ denotes a user console (so do not run this command as root!). I would advise that you uninstall terminal-plus first via running:

$ apm remove terminal-plus --no-confirm

If you would like to show your appreciation for my package, please star it with apm, by running:

$ apm star terminal-fusion

or star it on GitHub by logging into GitHub and clicking "Star" at the URL https://github.com/fusion809/terminal-fusion.

EDIT: This answer is now out-of-date I'm afraid as terminal-fusion is no longer maintained so please use platformio-ide-terminal instead. To install it run:

$ apm install platformio-ide-terminal --no-confirm

where is $ is the user console. To star it and thereby show your appreciation to its author (which isn't me, but they still deserve your appreciation) run:

$ apm star platformio-ide-terminal


Why can't I shut down Ubuntu on most attempts?

Does this happen after suspend? If yes, in terminal run

$ ps aux | grep suspend

If you see a hanging suspend job, it is preventing shutdown.Kill it with

$ sudo kill -9 NNNN

(Fill in job number from ps output)

This never happened to me till 16.04, now happens often!


Are you using the GNOME3 ppa?

This seems a bug with the latest nautilus 3.6.3 update.

Anyone know how to file a bug report with that?


I solved this problem by installing karbon and kde-plasma-dekstop. Instructions can be found here

But still, when I run krita from terminal, I still see a huge list of errors.

Note: I am running on elementeryOS.


How can I be sure that I'm using NTP version 4.2.8p1 or equivalent?

From usn-2497-1 it is stated you need to upgrade to ntp 1:4.2.6.p5+dfsg-3ubuntu2.14.04.2. To me that is the same as your 4.2.6p5 though yours is shortend.

  Update instructions

  The problem can be corrected by updating your system to the following
  package version:

  Ubuntu 14.10: ntp 1:4.2.6.p5+dfsg-3ubuntu2.14.10.2

  Ubuntu 14.04 LTS:     ntp 1:4.2.6.p5+dfsg-3ubuntu2.14.04.2

  Ubuntu 12.04 LTS:     ntp 1:4.2.6.p3+dfsg-1ubuntu3.3

  Ubuntu 10.04 LTS:     ntp 1:4.2.4p8+dfsg-1ubuntu2.3

The security/updates states you can run update-manager from commandline to check if there are pending security updates. If that does nothing you are updated.

In Ubuntu, patches are typically backported, and the upstream version (4.2.6.p5) remains the same, and the debian revision (3ubuntu2.14.04.2) is updated. When in doubt, check the Ubuntu Security Notices and the package changelog.


(epsxe) error while loading shared libraries: libgtk-1.2.so.0: cannot open shared object file: No such file or directory

Perhaps it's a better idea to use the PCSX-Reloaded PPA or the official ppa for pcsx2

Why? That's why:

libgtk-1.2 isn't available since Ubuntu 10.04. Therefore you could try to compile the package, but in my test, there are some dependencies which I can not install without having to compile further packages. Maybe you have the patience:

Install some packages

sudo apt-get install checkinstall

Download, extract, compile and install

cd
wget http://ftp.gnome.org/pub/gnome/sources/gtk+/1.2/gtk+-1.2.10.tar.gz
tar xf gtk+-1.2.10.tar.gz
cd gtk+-1.2.10
./configure
make
sudo checkinstall

In the ./configure step you will see the missing packages.


No Keyboard support while logging in after installing additional drivers for Wacom

Reboot the machine.
Select recovery mode on grub
Enable networking
Drop to root shell prompt
Type apt install xserver-xorg-input-all

This should recover mouse, keyboard, AND your wacom as viable Xorg inputs :D

Hope this helps!


This is a known bug: Bug #606652.

Possible Workaround:

Uninstall xserver-xorg-video-all (and xserver-xorg-video-nouveau).
Upgrade.
Install xserver-xorg-video-all (and xserver-xorg-video-nouveau).

You can subscribe to a bug and follow its progress.


GUI to mount disk images (iso, etc) in Xubuntu?

For the limited purpose of just playing a DVD saved as iso file, open it in VLC.

To add a context menu action in Thunar, open the Thunar file manager anywhere click on Edit -> Configure custom actions

it should look like so:

and for adding the command browse for the VLC executable.

For the larger purpose of mounting iso images as described in the question:

From here.

sudo apt-get install fuseiso

This is not a gui, but Thunar custom actions will provide that.

Opening the Thunar file manager anywhere click on Edit -> Configure custom actions

Now you will need to add two custom actions:

a. Name: Mount image

Description: Mount an ISO disk image (<- this is an example, you can describe it anyway you like)

Command:

mkdir %f.mount & fuseiso %f %f.mount

(note: using %F instead of $f allows you to do this operation for multiple selections)

Under "Appearance conditions" tab - File Pattern: *.iso;*.ISO

Tick 'Other files'

This allows you to mount a file under a folder named after the file + the extension ".mount"

b. Name: Unmount image from this folder

Description: Unmount disk image removing the mount point (<- again an example)
Command:

fusermount -u %f & rmdir %f

(note: again, %F is for multiple selections)

Under "Appearance conditions" tab - File Pattern: *.mount

Tick "Directories"

This unmounts the image and removes the directory. To keep the directory, simply remove "& rmdir %f" from the command

Alternative to (b):

To unmount an ISO by right clicking on it, rather than it's mount point, use:

Command:

fusermount -u %f.mount & rmdir %f.mount

Under "Appearance conditions" tab - File pattern: *.iso;*.ISO

Tick 'Other files'

--

What I do not like is that the commands appear in the context menu even if they are not applicable: mount when it is already mounted, unmount when it is not mounted.


Getting data from the outside into my linux container?

The most obvious way is to have LXC behave just like your VPS did. For that you may need to setup a NAT rule on the host which forwards an outside port to the LXC container's port 22.

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 2022 -j DNAT --to 10.0.3.123:22

(forwards port 2022 on eth0 to the container with IP 10.0.3.123 on its port 22).

An alternative is to do it through the host filesystem, there you have two solutions:

Copy directly to /var/lib/lxc/CONTAINER/rootfs/...
Setup a bind-mount in /var/lib/lxc/CONTAINER/fstab for a path on the host to a path in the container. (e.g. "/srv/site srv/site none bind,ro 0 0" will setup a read-only bind-mount of /srv/site on the host to /srv/site in the container. Both paths must exist prior to container startup.

In both of those cases, you'll need to make sure the ownership matches that in your container, so you'll probably want whatever updates that path on the host do a good old chown -R to the right values.


Connecting instruments and virtual amps to ardour in Ubuntu studio

It's actually pretty simple.

Use Ubuntu Studio Controls and make sure Jack is running.
Launch Hydrogen, Guitarix, Ardour, and Carla
Set Ardour, Guitarix, and Hydrogen to your needs.
Click on the Patchbay tab in Carla. Connect Hydrogen and Guitarix to Ardour by dragging lines (think as if it were a physical cable) from the output on Guitarix and Hydrogen to Ardour.
???
Profit!

That's all there is to it. :)


not able to install virtualbox-5.2 on ubuntu 18.04

You commented that ps -e | grep -i virtualbox is not showing anything, so there is no currently running virtualbox process to stop. Try running sudo apt install virtualbox-5.2 in a more isolated environment.

Immediately after the BIOS/UEFI splash screen during boot, with BIOS, quickly press and hold the Shift key, which will bring up the GNU GRUB menu. (If you see the Ubuntu logo, you've missed the point where you can enter the GRUB menu.) With UEFI press (perhaps several times) the Esc key to get to the GRUB menu. Sometimes the manufacturer's splash screen is a part of the Windows bootloader, so when you power up the machine it goes straight to the GRUB screen, and then pressing Shift is unnecessary.
From the GRUB screen select Advanced options for Ubuntu and press Enter.

A new purple screen will appear showing a list of Linux kernels, which includes options of booting the kernels normally or in recovery mode.

Use the arrow keys on the keyboard to select an earlier kernel version and press Enter to boot with the selected kernel.
Open a text-only virtual console by pressing the keyboard combination Ctrl+Alt+F3.

At the login: prompt type your username and press Enter.
At the Password: prompt type your user password and press Enter. After you have logged in, you can run commands from the virtual console.
Install virtualbox-5.2.

sudo apt remove virtualbox
sudo apt-get install --install-suggests virtualbox-5.2

To bring up the normal Ubuntu login screen run this command:

sudo systemctl start graphical.target


Ubuntu is not appearing in the Boot Menu(BIOS) and also the GRUB menu also not appering

Are you having the same problem as described here? Windows 10 changes UEFI boot order every time

It looks like your Grub boot option is overridden by Windows. You can still bring back the grub if you bring up the EFI boot selection. Or you can follow the bcdedit command to have grub default permanently.


After setting chmod -R 0700 still current user can see and edit the files

As the output of ls -ld node suggests the node directory is owned by user nikos (and group nikos), not by root with a permission of 700. As a result being user nikos you you have read, write, execute permission in that directory.

Also note that sudo chmod -R 0700 myfolder does not change the ownership to root, it simply sets the permission bits as 0700 as user root. If you are the owner of that directory you could do it by chmod -R 0700 myfolder, no need for sudo.

There is a catch though, as we are doing it recursively -R, you need to have the files under myfolder directory owned by you to change their permissions. Otherwise the original permissions of those files will prevail.

Now if you want to make root as the owner of that directory and files under it (recursively):

sudo chown -R root node

If you want to make the owner group as group root too :

sudo chown -R root:root node


context menu in thunar does not work properly

Shame on me. It is just that catfish disappeared from my configuration.


How do I find the build dependencies of a package?

For a full list of dependencies, including the dependencies' dependencies, you can use:

apt-rdepends --build-depends openoffice.org

The command may remind you to install apt-rdepends first.

You can use the following command to only show the ones that are not installed:

apt-rdepends --build-depends --print-state openoffice.org | grep NotInstalled

See apt-rdepends --help for all the options.

Note: This will generate a massive list.apt-rdepends -b xterm, for example, generates 8773 lines of output, and takes it's time doing it.

If you only want to see the packages that are required to build the topmost package, i.e. what do I need to install to build nautilus, run:

apt-rdepends --build-depends --follow=DEPENDS nautilus

This is roughly equivalent to Carsten Thiel's answer (The following NEW packages will be installed), but the output format is a bit nicer. It also only shows the topmost package, whereas simulated apt-get also shows packages installed as dependencies of those.

This also shows packages that are installed. But it may also show packages that are installed by default. Unfortunately, neither method is much help when you're trying to clean up your system after running apt-get build-dep. As far as I know, there isn't a reliable method of finding which ones were installed except from looking at the apt log file at /var/log/apt/history.log.


How exactly does Unity handle desktop files?

which folders does it watch?

Usually Unity searches  .desktop files in /usr/share/applications and ~/.local/share/applications. But there are other directories too containing .desktop files, such as /etc/xdg/autostart )

  Why don't they need to be executeable?

Those files need not to be executables because, those files contains instruction to execute other files. There is a line with Exec=..... to do the job.

  Why isn't there only one folder like /usr/share/applications/ to hold .desktop files?

Because, it provide greater flexibility to seperate user programs and system programs. You can install softwares or have customized options for a specific software without harming all the other users or modifying default options.

The .desktop files in your home directory have higher priority than the files in system directories (such as /usr/share/applications). For this reason, if you customize a .desktop file to not to show in KDE menu creating a .desktop file in your home dir (~/.local/share/applications) with the same name, the option in your .desktop file will override the system option and that application won't be displayed on KDE menu.


How to install Ubuntu updates after installation

During installation, uncheck these two check boxes.

Then after installation, restart your machine and run these commands in the terminal:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ubuntu-restricted-extras

Related Links:

Ubuntu installation guide
Top things to do after installing Ubuntu Google search


Load the 3.16 kernel and try rebuilding the initial ram disk:

update-initramfs -ck 3.19-generic

Look for any errors, if it builds cleanly, try rebooting into it again.


Getting Quickly to use Gvim instead of Gedit

I assume you mean you want to change the editor that Quickly loads when you ask it to.

Well I did some sleuthing... I'll show you what I did followed by the answer.

I fired off this command:

sudo find / -name "*quickly*" -exec grep gedit {} \;

That searches for all files with quickly in and then greps them for gedit. It was a long shot -- I should have refined the search so it was any paths with quickly in but it matched!

Binary file /usr/share/quickly/templates/ubuntu-application/internal/quicklyutils.pyc matches
    editor = "gedit"

I opened up /usr/share/quickly/templates/ubuntu-application/internal/quicklyutils.py (not the compiled version) in nano, searched for gedit and saw:

def get_quickly_editors():
    '''Return prefered editor for ubuntu-application template'''

    editor = "gedit"
    default_editor = os.environ.get("EDITOR")
    if not default_editor:
        default_editor = os.environ.get("SELECTED_EDITOR")
    if default_editor:
       editor = default_editor
    return editor

From that you can see it asks for the environment value EDITOR!

Just run your quickly commands as:

env EDITOR=gvim quickly edit

or export it to persist

export EDITOR=gvim
quickly edit

Add the export line to your ~/.bashrc line if you want it to persist between sessions.


You can use xargs -n 1 to only pipe a single file argument into the compress command.

Be careful about spaces.


How to map what I see in "Ubuntu Software" to dpkg/apt entries?

Till a better answer is found ...
The software list one sees in the Installed tab of Ubuntu Software seems to come from *.desktop files in the folder /usr/share/applications. Grepping this folder for the relevant entry:
# cd /usr/share/applications
# grep "Document Viewer" *.desktop
evince.desktop:Name=Document Viewer

The evince.desktop file contains TryExec and Exec line that points to the binary that we need.
TryExec=evince
Exec=evince %U

These entries are without a full path, so I take it that the underlying machinery will consult the runtime PATH to find the binary.


install ubuntu 13.04 along side windows 8

For install Ubuntu, you can make a partition of 20GB with Ubuntu installer, format it in ext4 with journaling and set the mount point to /, this mean than you will use this partition like system partition(as C drive in Windows). From remained unallocated space make again yet one partition, not modify the size, this mean that you are set it to maximum size, format it in ext4 with journaling and set mount point to /home, this mean that you will use this partition for storage your data(photos, videos, documents). Click install.


Reinstall alsa-utils

sudo apt-get install alsa-utils --reinstall

Download and install alsa-lib

On this page you will find all versions https://launchpad.net/ubuntu/+source/alsa-lib

Or find Here a link to version 1.0.25-4(the stable version)

Extract the archive and run the following code in the extracted directory

./configure && make

Then

sudo make install


Many have reported problems with Kernel 4.13.0-26

Around January 11, 2018 many Ubuntu users began reporting problems with Kernel 4.13.0-26 automatic update:

After latest kernel, keyboard shortcuts stop working
Strange laptop arrow keys, backspace and touchpad
Touchpad gestures and holding keys does not work
Keys don't repeat anymore, touchpad tap and touchpad two-finger scroll don't work anymore
Touchpad and keybord not working properly
Inconsistent Trackpad Movement
All input is extremley unreliable after kernel upgrade
Key repeat acting strangely
Key stops repeating randomly
Keyboard freezes and spams the last button
Involuntary key repeat in Ubuntu 16.04
Dell Latitude E7470 touchpad and touchstick sentitivity and behavior problem on Xubuntu 16.04
Keyboard and Synaptics touchpad features stopped working after xenial software update
Lenovo ideapad320 laptop(amd a9 processor) touchpad stop working - Ubuntu 17.10
Touchpad double tap and two finger scroll is only working when press Window Keys/SuperKey on Ubuntu 16.04
How to prevent installation of kernel 4.13 on Ubuntu 16.04 LTS
16.04 external mic or headphone jacks no longer detected since last HWE update
How to do emergency upgrade to kernel 4.14.13?

These are issues reported over the last few days. Not all of these issues have been verified as caused by Kernel 4.13.0-26.

January 27, 2018 Update: Check your Intel Microcode

The Intel Microcode Update 2018-01-08 to address speculative execution branching security holes broke some systems. This effected many Ubuntu systems from January 8th to January 21st. On January 22, 2018 Ubuntu released an update that puts back older Microcode from 2017-07-07.

If you experienced problems with updates, reinstalled Ubuntu and turned off updates between 2018-01-08 and 2018-01-22 you may want to try Ubuntu automatic updates again. Check the link in the preceding paragraph for more information.

How to find out your kernel version

Open a terminal using Ctrl+Alt+T. Then type:

uname -r

Since the terminal is open already, get your Ubuntu release using:

lsb_release -a

To close the terminal use:

exit

Easiest solution boot with older Kernel

When you boot your computer at the Grub menu select Advanced Options then select an older kernel to see if you problems go away. If so keep regularly updating to newer kernels as they are offered in Ubuntu LTS and check them until one works. Make sure you don't run sudo apt auto-remove which could make your working older kernel disappear.

Fixing Keyboard repeat problems in Kernel 4.13

With the introduction of Kernel 4.13.0-26 Ubuntu LTS update around January 11, 2018 and old bug from September 2017 resurfaced. The developer recommended trying Kernel 4.14 (described in the next session) but a quicker fix seems to be disabling PEAQ WMI Hotkeys.

Verify PEAQ WMI Hotkeys is loaded

As discussed in Unix & Linux the first step is to ensure it is loaded:

$ xinput list
⎡ Virtual core pointer                              id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                    id=4    [slave  pointer  (2)]
⎜   ↳ Dell Dell KM632 Wireless Keyboard and Mouse   id=11   [slave  pointer  (2)]
⎜   ↳ Dell Dell KM632 Wireless Keyboard and Mouse   id=12   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                    id=16   [slave  pointer  (2)]
⎣ Virtual core keyboard                             id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard                   id=5    [slave  keyboard (3)]
    ↳ Power Button                                  id=6    [slave  keyboard (3)]
    ↳ Video Bus                                     id=7    [slave  keyboard (3)]
    ↳ Video Bus                                     id=8    [slave  keyboard (3)]
    ↳ Sleep Button                                  id=9    [slave  keyboard (3)]
    ↳ Dell Dell KM632 Wireless Keyboard and Mouse   id=10   [slave  keyboard (3)]
    ↳ Lenovo EasyCamera: Lenovo EasyC               id=13   [slave  keyboard (3)]
    ↳ Ideapad extra buttons                         id=14   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard                  id=15   [slave  keyboard (3)]
    ↳ Dell Dell KM632 Wireless Keyboard and Mouse   id=18   [slave  keyboard (3)]
    ↳ PEAQ WMI hotkeys                              id=17   [slave  keyboard (3)]

Note the last line above

If you have it loaded you can disable it with an xinput command but we'll use the work around suggestion in the bug report above:

Disable PEAQ WMI Hotkeys for current session

sudo rmmod peaq_wmi

Disable PEAQ WMI Hotkeys Permenantly

Using your favourite sudo editor, edit /etc/modprobe.d/blacklist.conf. At the end of the file insert two lines:

#spams ^@
blacklist peaq_wmi

Save the file and exit.

Fixing Synaptics Touchpad in Kernel 4.13

Temporary Fix

According to this Debian Bug Report a short term fix is to use:

sudo rmmod psmouse
sudo modprobe psmouse

Try this in the terminal and then test your Touchpad.

Permanent Fix

If the temporary fix works then edit the file /etc/rc.local with sudo powers. Add the following lines:

/sbin/rmmod psmouse
/sbin/modprobe psmouse

From now on when you reboot the fix will be permanent.

Note this hasn't been tested yet when resuming from suspend. If you have any problems in that department post a comment below.

Install newest mainline / stable kernel 4.14.xx

It's been confirmed that 4.14.13 improves Touchpad and Keyboard for users of Kernel 4.13.0-26. However as of January 20, 2018 4.14.14 is now the newest kernel and it includes Spectre support but runs 2% slower.

January 23, 2018 - Kernel 4.14.15 released.
January 31, 2018 - Kernel 4.14.16 released.

In the bug report above a developer recommends trying the most current mainline (stable) kernel. In some cases an OP wants to go to a higher kernel number rather than a lower one. This section focuses on how to move up to the latest mainline (stable) kernel.

There are instances going back to August 2017 where the touchpad didn't work that is unrelated to Kernel 4.13.0-26 automatic Ubuntu LTS upgrade but one of the answers still require Kernel 4.14 anyway: Touchpad not detected on Lenovo Ideapad 320 with Kubuntu 17.04.

On January 10, 2018 the latest stable mainline kernel was 4.14.13. If you choose to manually install it you should know:

Older LTS kernels will not get updated until they are greater than  the main menu first option titled Ubuntu.
Manually installed kernels are not removed with the usual sudo apt auto-remove command. You need to follow this: How do I remove old kernel versions to clean up the boot menu?
Monitor developments in the older kernels for when you want to get back on the regular LTS kernel update method. Then delete the manually installed mainline kernel as described in the previous bullet point link.
After manually removing the newest mainline kernel run sudo update-grub and then Ubuntu's latest LTS kernel will be the first option called Ubuntu on Grub's main menu.

Now that the warning are out of the way, to install the latest mainline kernel (4.14.13) follow this link: How to update kernel to the latest mainline version without any Distro-upgrade?

Periodically watch the LTS kernel updates you missed

If you have updated to the latest kernel it's important to see the older kernels you've missed using this command:

$ apt-cache search . | grep 'image-4.13.0-..-generic'
linux-image-4.13.0-16-generic - Linux kernel image for version 4.13.0 on 64 bit x86 SMP
(... SNIP ....)
linux-image-4.13.0-26-generic - Linux kernel image for version 4.13.0 on 64 bit x86 SMP
linux-image-4.13.0-31-generic - Linux kernel image for version 4.13.0 on 64 bit x86 SMP
linux-image-4.13.0-32-generic - Linux kernel image for version 4.13.0 on 64 bit x86 SMP
(... SNIP ....)

When you see a newer supported kernel offered by Ubuntu Kernel Team you should install it and test it. For example to see what to install for 4.13.0-32 use:

$ apt-cache search . | grep '4.13.0-32-generic'
linux-cloud-tools-4.13.0-32-generic - Linux kernel version specific cloud tools for version 4.13.0-32
linux-headers-4.13.0-32-generic - Linux kernel headers for version 4.13.0 on 64 bit x86 SMP
linux-image-4.13.0-32-generic - Linux kernel image for version 4.13.0 on 64 bit x86 SMP
linux-image-extra-4.13.0-32-generic - Linux kernel extra modules for version 4.13.0 on 64 bit x86 SMP
linux-signed-image-4.13.0-32-generic - Signed kernel image generic
linux-tools-4.13.0-32-generic - Linux kernel version specific tools for version 4.13.0-32

Most users won't need all these packages. Usually just headers, image, image-extra and signed-image.


18.04 no screen brightness control on MacBook Pro

This solution works for a Macbook Pro with NVidia geforce card under Ubuntu 16 LTS:

In a terminal edit 'xorg.conf' file:

sudo gedit /etc/X11/xorg.conf

Add a new commande line in "Device" Section (see below "#"):

Section "Device"
  Identifier     "Device0"
  Driver         "nvidia"
  VendorName     "NVIDIA Corporation"
  BoardName      "GeForce 320M"

#This following line actually enables the brightness control
  Option  "RegistryDwords" "EnableBrightnessControl=1"
EndSection


amdgpu-pro install on Ubuntu 18.04.2 LTS

You appear to be affected by this bug.

The DKMS will not compile on the 4.18 Linux kernel in 18.50.

Some workarounds are:

A) Wait for the 19.10 driver, which reportedly will be released within the coming months.

B) Downgrade to kernel 4.15 which is reported to work. If this didn't work for you install linux-modules-extra-4.15.0-47-generic and linux-headers-4.15.0-47-generic as well as linux-image-4.15.0-47-generic and try again.

C) Use the no-dkms switch when installing with kernel versions 4.17 or later. amdgpu-pro-install --no-dkms Also reported to work.

Note: I do not have your hardware so I cannot test. This answer is the result of research and nothing more.

Sources:

https://bugs.freedesktop.org/show_bug.cgi?id=109440

https://unix.stackexchange.com/questions/501267/how-to-fix-amdgpu-dkms-failed-for-running-kernel-when-installing-amd-gpu-drive

If you are getting a dkms not found error refer to this answer.


I was able to fix this by deleting all files in /home/USERNAME/.config/google-chrome/ which forces Google Chrome to regenerate all configuration and profile files. You should be able to do this with a single command:

rm ~/.config/google-chrome/*

Keep in mind that this will delete all of your bookmarks and settings. So (hopefully!) you have them synced with your Google account or backup somehow.

You can change folder's owner.. it worked for me sudo chown username ~/.config/google-chrome/... Good luck.


Ubuntu 18.04 running on x280 cannot detect fingerprint reader

So far, no working solution exists.
- The lsusb should show ID 06cb:009a Synaptics, Inc. which is the fingerprint reader.
- You can follow this Github issue that explains the problem : https://github.com/nmikhailov/Validity90/issues/34
No other project managed to go as far as this.


Keyboard shortcut to open Ubuntu file manager?

It is under System Settings -> Keyboard -> Shortcuts -> Launchers, and by default on  my system it is set to Explorer key (whatever that means), but personally i've set it to Super + E , since this is the same as Window's shortcut, which is what I used to use a lot year and half ago when I still was a Windows user. Just click on the area where the description for key is, it will say new accelerator and press keys you want to set

And if you want to create a shortcut to open some directory other than home, go to Custom shortcuts, and set a new shortcut for nautilus /path/to/dir command. For instance, nautilus /usr/share/applications


There is a script to get it working on Ubuntu Forums.

sudo add-apt-repository ppa:conky-companions/ppa

sudo apt-get update && sudo apt-get install conkygooglecalendar

Add to your .conkyrc:

${execpi 1800 conkyGoogleCalendar
--username=yourname@gmail.com --password=yourpassword --daysahead=30 --dateformat="%a %d %b, %y" --requestCalendarNames="MyCalendar1;MyCalendar2"
--template=~/scripts/conkyGoogleCalendar.template}

Replace MyCalendar1 and MyCalendar2 with the name of your Calendar/Tasks.
Create a template, in this case there is a template in ~/scripts/ named conkyGoogleCalendar.template.
Example of this template:

${color4}${font Ubuntusize=10}Event: ${font Ubuntu:bold:size=10} ${color3}[title]

${color2}${font Ubuntu:size=8}Start:$font ${color1}[starttime]

${color2}${font Ubuntu:size=8}End:$font ${color1}[endtime]

${color2}${font Ubuntu:size=8}Description:$font ${color1}[description]

${color2}${font Ubuntu:size=8}Place:$font ${color1}[location]

You can take a look at the "Conky companions" here.

There is a README file within the package with clear instructions.


Bash auto-completion with added spaces – why, and how to fix?

This is a known bug. See this LP question and these bugs 1 2.

This comment seems to be the fix.  If you can't wait for a fix to trickle down the normal channels, edit /etc/bash_completion line 1587, change default to filenames (make a backup first).


Its something that's tripped me up a few times - 'themes' in KDE4 seems to refer to the window decorations theme, when it also meant, IIRC the themes used for application in KDE3. There is a way to change this - the colours module, though this is less than apparent

You need to change this in the KDE colours module - simply type in colours in the KDE menu

You can pick a pre-created theme from the scheme tab - this is a useful starting point for customisation

Or Create your own theme in the colours tab if you need to tweak colours -the 'inactive' and 'disabled' tabs that also affect parts of the theme, and options affects where the theme is used (for example in non KDE apps) and other such things


I have linux installed on my macbook and i need to create a windows usb

Try the dd command:

sudo dd bs=4M if=/path/to/file.iso of=/dev/sdX && sudo sync

/dev/sdX = mounted usb-drive


Using vim-gnome instead of vim-gtk solved the problem.


The 256 GB marketed size is the physical storage capacity of the drive, is not the same as the actual available space once installed since the manufacturer use space on the disk itself to store drivers and other required software.

I find odd however, that the difference is that big, we are talking of ~81 GB of used space, do you have another OS or files installed in your SSD drive? if you want to use the entirety (or as much as possible) of the disk, you will have to format and delete any existing partitions.


If the question is only about mkdir, use mkdir -p /your/partly/existing/path. From the man page:

  -p     Create any missing intermediate pathname components

But what do you mean by "backup for each use"?


MAAS node keeps re-installing Ubuntu 14.04 through PXE

Instead of disabling PXE boot altogether, just move the PXE boot a notch lower in the boot priority and then the systems will boot normally and will only start re-install when needed.


Have u tried creating and sharing a new directory, cause it seems to me u r trying to share the same directory where your temporary files go while youŕ downloading from dc++. Go to preferences and choose diferent directorys for the finished downloads and the temporary ongoing downloads, after that you can share the completed downloads directory. If it doesnt work, create and share a brand new directory and give us feedback.


It is possible to move an installation from one computer to another, but there are limitations to what you can do if you want a truly portable OS.  E.g. no proprietary modules, no hardware-dependant configurations (E.g. fans / sensors, keyboards, hard disks, …)

So if the original OS wasn't installed with portability in mind, moving it over to another computer is going to be much more difficult and will take much more time then:

taking a back-up of your current data
wipe the system partition (if the system partition and the data partition are mixed into 1 single partition, this will also wipe the data)
re-install the OS, letting it auto-detect your specific configuration
restore the data
re-install the applications you need


How can I resize my partition inside extended partition giving its space from outside of extended partition?

There are some steps you must follow:

You must fix your NTFS partition that is dirty. Boot up Windows, open the command line and type chkdsk /f X:, changing X for each of the letter of your volumes. Reboot twice.
Now with a Live CD without any mounted partition, redimension the sda4 extended partition to fill the unallocated space. Now that space will be inside the extended partition.
Now redimension/move the partitions as you like to fill the now "free space".

That's all


How to apply dark theme to this calendar view t?

I'd install Tweaks and select another Shell Appearance. Yaru Dark should work.


php-fpm changed user can't create pid and sock files

php5-fpm should actually be starting as root and dropping its privileges once it's set up and running. This is fairly common amongst webservers. This should allow it to write to a root-owned space and chown its own files.

I believe that is exactly how my installation works.
The question then becomes: why isn't yours?

Have you altered the Upstart script that ships with it to chuid? That would break it. Here's my /etc/init/php5-fpm.conf for comparison:

# php5-fpm - The PHP FastCGI Process Manager

description "The PHP FastCGI Process Manager"
author "Ondřej Surý <ondrej@debian.org>"

start on runlevel [2345]
stop on runlevel [016]

# you can uncomment this with recent upstart
# reload signal USR2

pre-start exec /usr/lib/php5/php5-fpm-checkconf

respawn
exec /usr/sbin/php5-fpm --nodaemonize --fpm-config /etc/php5/fpm/php-fpm.conf


Do I need to partition my hard drive before I install Ubuntu?

The Best way is to create a partition with Windows CD for C drive. But make sure you have some unpartitioned space for Ubuntu. Boot from the Ubuntu CD and choose the option which says unused space. This will create a dual boot without loosing the data on your windows partition.  For more info on that see Installing Ubuntu Desktop

If you are installing using Wubi, Wubi will create a virtual partition.  Wubi lets you install and uninstall Ubuntu from a Windows desktop just like a windows application. It will add an Ubuntu entry to the Windows boot menu. For more info see the Wubi Guide


Packet Tracer Segmentation Fault Ubuntu 18.04

It seems to be a problem in the PacketTracer implementation.

I had the same issue here, but I solved the problem using the previous version of Packet Tracer (7.0).
The Packet Tracer 7.0 is available at the Netacad portal.


Firefox must press backspace twice to delete one charecter

I faced same problem after I upgraded my firefox to version 34 (in ubuntu trusty).
A dirty and quick solution is to downgrade firefox. I followed this to downgrade firefox from version 34 to 28 and now the problem is gone.


Where can I find books or articles about iptables and apparmor?

Per command/application/resource manuals are provided during installing, after which you can easily run man iptables and/or man apparmor in a terminal in order to view the syntax/usage of your desired application.

Good luck!


immediate shutdown at boot time with 8GB memory

Searching for several hours, I gave up to solve this problem because it is more likely that this is a kind of problems of chipsets and memory cards, not ubuntu itself.

And my PC looks too old to find memory cards that fit to it.

The PC maker(NEC) that also offered memory cards for their products has stopped to make the proper memory cards that is tested.

It is understandable that memory cards that is made today doesn't work on the chipset which was made 5 years ago. It's possible.


You can not both packages (kde-config-telepathy-accounts and account-plugin-google) installed at the same time, because the file /usr/share/accounts/services/google-im.service is included in both packages.

The package kde-config-telepathy-accounts is installed through a PPA, which you added to your system. The officially package package does not have this problem.

Therefore, purge the PPA or remove the package kde-config-telepathy-accounts via

sudo apt-get remove kde-config-telepathy-accounts

OR

remove the package account-plugin-google via

sudo apt-get remove account-plugin-google


As a noob by mistake i ran "sudo chown $pranav.pranav -R /" to solve my Read Only Filesystem. If this is a bad thing, how should i undo this?

In case it's your main filesystem ran as part of the kernel parameter using grub you should change the command line from (example):

linux   /boot/vmlinuz-5.2-x86_64 root=<uuid> ro  quiet

To:

linux   /boot/vmlinuz-5.2-x86_64 root=<uuid> rw  quiet

And reboot.

If this partition is being mounted after reboot or it's not the root partition you can remount it with rw, like this:

sudo mount -o remount,rw /dev/sdX

Replace sdX with the appropriate partition that matches your case.


Can't get activate_uri signal working when making a lens

I have the same problem and don't know how to avoid the error. However, if you can live with the ugly error message spamming the console, you can work around it:

At the time the error is thrown, the _on_activate_uri has been executed, thus everything you might want to do there (print, in your example) should have happened. It certainly works that way for me.

Basically, by choosing the URI scheme for the model resources wisely, we can emulate either HIDE_DASH or the default fallback (use installed application suitable for the uri scheme) behaviour.

In my case, and in your example, we want HIDE_DASH behaviour. When the error is thrown, apparently unity tries to deal with the situation by opening the URI with a suitable application. Thus, to make it behave as in HIDE_DASH, we just have to make sure to give our model resources URIs with a scheme that no installed application can handle. In my case, that would make the URIs start with "pidgin-lens://".

If your URIs begin with "http://", the browser will be opened after _on_activate_uri has run, so that behaviour (NOT_HANDELED/GOTO_DASH_URI) is easily emulated, too.

SHOW_DASH probably can't be emulated.


could not execute a file generated by php from terminal

check for trailing spaces after the terminal backslashes \

there should not be any


Ubuntu 13.04 does not boot after I upgrade from Ubuntu 12.10

I can't help with a boot because I do believe that there are a few problems with the upgrade! There is a note to this affect in the docs. Also the graphics change again back to the stock solution.  So if you don't get an answer, you will have to do what I myself did in this situation. Admittedly I do have another Ubuntu 12.04 partition, but a Win7 partition might also work.

Get into the other partition and save all your /home/myname files somewhere safe on the other partition. Ensure that they have the correct ownership, i.e. "myname", or group me "myname". Now download the ISO for 13.04 and burn it to CD or DVD because the USB support is no longer [another note for that].

Install 13.04 all new onto the correct partition, with or without swap. Copy over any hidden home files etc as necessary. Good Luck!


How can I install Faience GTK theme in Ubuntu 13.10?

The Faience theme PPA (https://launchpad.net/~tiheum/+archive/equinox) is not officially updated for 13.10 (and hasn't had updates in 36 weeks as of writing). The latest supported release is 13.04.

The below steps will add the 13.04 (Raring) Faience PPA to your system. I assume it will work fine, though I can't test myself.

Execute these commands in a terminal to add the Raring PPA:

sudo add-apt-repository 'deb http://ppa.launchpad.net/tiheum/equinox/ubuntu raring main'
sudo apt-get update

Install the theme with some of the commands below:

Faience GTK / GNOME Shell theme (I believe this is the one you want)

sudo apt-get install faience-theme

Faience icon theme:

sudo apt-get install faience-icon-theme

Faenza icon theme:

sudo apt-get install faenza-icon-theme

Install one of these tools to change the theme to the Faience theme:

Unity Tweak Tool (My tool of choice)

sudo apt-get install unity-tweak-tool

Ubuntu Tweak

Follow the instructions provided here, they should work in 13.10 as well.


How can I center an ActivityIndicator within the screen?

anchors.centerIn: parent is the solution:

ActivityIndicator {
    anchors.centerIn: parent
    running: true
}


Files on external memory are not uploaded, why?

Ubuntu One will only sync folders inside your home folder. The reason is that if you were syncing from removable devices and by some accident it was disconnected, it would seem as if all files were removed, and be deleted from the website and all your other devices.

If you really, really, really want to do this, on Ubuntu you can use a bind mount as explained here: How do I sync an external drive using Ubuntu One?

Best regards


Screenshot of an active application using python

import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gdk

# full screenshot
window = Gdk.get_default_root_window()
pb = Gdk.pixbuf_get_from_window(window, *window.get_geometry())
pb.savev("full.png", "png", (), ())

# screenshots for all windows
window = Gdk.get_default_root_window()
screen = window.get_screen()
typ = window.get_type_hint()
for i, w in enumerate(screen.get_window_stack()):
    pb = Gdk.pixbuf_get_from_window(w, *w.get_geometry())
    pb.savev("{}.png".format(i), "png", (), ())

# screenshot active window
screen = Gdk.get_default_root_window().get_screen()
w = screen.get_active_window()
pb = Gdk.pixbuf_get_from_window(w, *w.get_geometry())
pb.savev("active.png", "png", (), ())


Set a theme on a specific QT application in Ubuntu 16.04

Yes, you can do so using QT_STYLE_OVERRIDE environment variable.

The syntax is like this

QT_STYLE_OVERRIDE=Breeze konsole

Here you're using Breeze theme for konsole application. GTK theme names should also work. I've tested this under KDE with adwaita (gtk theme) and Breeze (KDE theme) names. My original environment theme was set to Oxygen.

Note that, though it will override the styles of the controls, the Window decoration (which draws the titlebar and close,minimize buttons) won't change.


After some reading, I found out that in fact Unity dash doesn't scan all the files on the system, it mostly uses the zeitgeist code to look through recently used files and applications. This means that the recent files that I'm seeing is actually an intended result.

By disabling 'Record file and application usage' in Privacy settings I'm disabling zeitgeist and recently used files no longer show up in the main dash lens. Also, the 'Recent' section in nautilus becomes disabled.

Some have mentioned that the newest versions of Ubuntu also use locate  to locate files through the dash. I  installed the locate package which seems to have been missing on my system. and I don't know if I'm seeing a difference. However searching for an exact name does seem to produce a result (e.g myfilesomewhere.odt)

I'll update this answer as I learn more about the dash functionality.


You don't mention what version of Ubuntu Core you're using, so I'll assume 15.04. In that case, consider an arm lxc container (or just normal qemu). However, if you're willing to give 16.04 a shot, flash this bbb image, SSH onto the device, and run

$ sudo snappy enable-classic

That will download some stuff, and when it's done, you can run

$ snappy shell classic

Now you're in the Classic Dimension. You can install and run snapcraft from here!

$ sudo apt-get update
$ sudo apt-get install snapcraft
$ cd my/snap/src/
$ snapcraft

That will create a snap for the right architecture.


14.04 - How to automatically get sudo rights to objects on desktop

After you have transferred the files on to your desktop you may use the command
chown
to change ownership to yourself


Problem installing bbswitch on Ubuntu 14.04.3

Use nvidia-prime instead of bumblebee to switch between integrated and dedicated graphics.

Uninstall all NVIDIA software and bumblebee.

Open a terminal and execute :

sudo apt-get purge nvidia* bumblebee
sudo reboot

Reinstall the NVIDIA drivers and nvidia-prime.

Open a terminal and execute :

sudo apt-get update
sudo apt-get install nvidia-352 nvidia-prime
sudo reboot

Open NVIDIA X Server Settings - PRIME Profiles to switch between the two graphics adapters.

Update 1 :

Alternatively install the latest official NVIDIA drivers 358 from the Proprietary GPU Drivers PPA.

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-358 nvidia-prime
sudo reboot

Update 2 :

Maybe there is a compatibility issue or some interference with the open source nouveau drivers.
Perform the NVIDIA drivers installation from a virtual console with deactivated nouveau drivers.

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.
On login screen press Ctrl+Alt+F1 - enter user name and password ...
Execute the commands ...


add sudo, only priviledge user can see the details.


Check your current version. Open terminal Ctrl + Alt + T and run following command:

nvidia-settings --version

To install nVidia Linux Display Driver under Ubuntu 11.10/12.04, open the terminal and run the following commands:

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current

My advice, always choose stable release.

Refer this post

Launchpad

My Nvidia Driver Version


How do I connect to TTY/COM (/dev/ttyUSB0)?

Use one of screen's lesser known features:

screen /dev/ttyUSB0


Annoying access problem on /var/log/nginx

Use dpkg-statoverride to change the user and group for /var/log/nginx as the change is most likely happen in postinst script on every package update.


I asked asus support about this Ubuntu and they said it was specially modified, but they don't want to share their distro.


Trouble logging into Ubuntu Studio on Virtual Box V 5.0.8

The username used to be "ubuntustudio", and the password just nothing (hit enter), for "ubuntustudio live" (wich is the name of the version you get when you choose the option to try ubuntustudio when loading the installation iso)
However, it shouldn't ask you for a username and password, it should just load the system and throw you directly to the desktop for the default user.

You can also try to boot it from a usb stick, the easiest way to make a stick bootable is to install it with "UnetBootin" wich is available for Windows and Linux.  The good thing on this choice is that via UnetBootin you can set (at installation time) some space for saving session configuration and files, this is called "persistence", all stuff gets saved when you log out without any user interaction, into a squash filesystem on the usb stick, wich can also be mounted via Linux for reading, saving, or repairing i.e. with fsck.


"Booting in insecure mode" when secure boot is turned on

I know that Dell ships their Linux systems with a variable set that disables validation:
https://bugzilla.redhat.com/show_bug.cgi?id=1544794
The solution is to enable validation in that case.  Perhaps this is what you're seeing?  Try running:
mokutil --enable-validation


Unity error: No default decoration found, placement will not be correct

compiz (decor) - Warn: No default decoration found, placement will not be correct

Lets analyze it like Jack the Ripper:

The message comes from compiz
The plugin is the decoration plugin (plugin because compiz uses plugins)
The message is a Warning, meaning: something is not "ok" but apparently we can still work like that
The reason comes last, for some or another reason, compiz doesn't find a default decoration, so the placement of the window decoration might not be accurate (the so called visual glich).

So, what tells you this? Almost nothing, is probably a configuration error that you should track down in compiz and repair, or could be a unity glich. Either way you should report it to their developers and get further guidance.


How to install ace stream on Ubuntu 15.04

I tried many times to install acestream on lubuntu and ubuntu that I almost gave up.

Actually it seems that there are no more official repo for acestream.

So, what I did is to install Acestream with Wine.

To install Wine, enter the following commands in your terminal):

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get -y install wine1.8

Or find more information there: https://wiki.winehq.org/Ubuntu in order to install Wine

Then, find "Configure Wine" (probably in your "Start Menu") and find the tab "Applications" and change "Windows version" to "Windows XP".

Then browse your C: drive (shortcut is the Start Menu or browse /home/YOURNICKNAME/.wine/dosdevices/c:/ If you don't see the folder /.wine/ try to press Ctrl+h to see hidden folders) and copy/paste the Windows installer you downloaded from http://wiki.acestream.org/wiki/index.php/AceStream_3.0/en

Then install the software.

The software is supposed to be installed in /home/YOURNICKNAME/.wine/dosdevices/c:/users/YOURNICKNAME/Application Data/ACEStream/player

So just launch the file ace_player.exe to launch it. Maybe it is already launched in background. So close it and re-launch it.

After make a shortcut of the folder to your desktop. So go back to /home/YOURNICKNAME/.wine/dosdevices/c:/users/YOURNICKNAME/Application Data/ACEStream/ and select the folder /player/. Then click on Ctrl+Shift and move the folder to your desktop to make it a shortcut.

And then it works :)


Can I make Apache more secure by removing read access from the others group?

The location where config files for Apache are stored in Ubuntu by default, is already only writeable by the root user. The files however, must be readable by non-root, as the httpd daemon does not run as root.


Windows7 desktop does not appear after installing Ubuntu on Asus N550JV DB71 laptop

Problem is solved:

I converted all partitions (sda1,sda2 and sda3) to GPT  using Gparted.
I installed Windows 8.1 on sda1 (not recovery disc) in UEFI mode.
I installed Ubuntu 14.04 on sda2 in UEFI mode.


I've just had the same problem.

While using Ubuntu 11.10 and trying to install French language, I got the error:

Package [dbus.String(u'thunderbird')] is already installed

As it would be too time consuming to uninstall, reinstall and reconfigure thunderbird (as adviced in some other answer), I looked around for a different fix.

What I found out was that I had some pending updates in the "Update Manager" utility.

All I had to do was to launch "Update Manager" and click on "Install Updates".

After that, it succeeded installing the French language pack.

So, my tip is: check for pending updates before trying to install a new language pack.


Ubuntu mirroring two monitors but only detecting one

This is what I did to get it to work

Clean install Ubuntu
Don't activate anything in 'additional drivers'
Install the driver from the AMD site and reboot
In the BIOS, set onboard mode
Use sudo amdcccle > 'display manager' to set dual monitor, not 'system settings' > 'displays'

No idea how that bios thing makes sense, but it worked.

EDIT: I should mention that the monitors only work in Ubuntu; to access the BIOS you will have to switch a monitor cable to the actual on-board connection.


LAN and Wi-Fi connections stop working in UBUNTU 14.04 LTS

The issue is resolved.
The case:
Ubuntu listed the name of the logical connection, wireless network name, as out of range.
The resolution:
As the result of lose of wireless connection, I had to reset the router.
When I did it, it changes an assigned network name to the physical name assigned by manufacture.
As a router was configured long time ago that name did not click the bell and ubuntu message out of range happened to be were confusing.
Resolution:
Just reconfigured the router.
Ubuntu is an excellent OS and I appreciate time everybody spend reading my note.
Thanks.


'Nvidia X Server Setting' tab missing (Ubuntu 17.10)

I had the same problem. i solved by disabling secure boot in my BIOS settings. And then the option was available.


Additional file system and mount at boot time?

Creating the Directories

To create the toplevel directories run:

sudo mkdir /myBackup /myDatabases

You may also want to make yourself the owner of these folders:

sudo chown -R ubuntuka:ubuntuka /myBackup /myDatabases

(replace ubuntuka with your user name)

Choosing a Partition

You can list the available partitions using this command:

sudo fdisk -l

Each partition will have a location like /dev/sda1. Choose the partition you want to automount and remember this location.

Finding Partition Information

You now need to find the UUID (unique identification) of the partition and the filesystem type. To do this, use the udisks command. I can't remember if this is installed by default but if it isn't, run:

sudo apt-get install udisks

to install it.

Finding the UUID

To get the UUID (of /dev/sda1 in this example), run:

udisks --show-info /dev/sda1 | grep uuid

You will get output like:

    by-id:                     /dev/disk/by-uuid/228EF188-BDEE-11E0-8F41-F5A84824019B
 uuid:                        228EF188-BDEE-11E0-8F41-F5A84824019B
   uuid:

where 228EF188-BDEE-11E0-8F41-F5A84824019B is the UUID.

Finding the Filesystem Type

To get the filesystem type of the partition (/dev/sda1 in the example), run:

udisks --show-info /dev/sda1 | grep type

You will get output like:

  type:                        ext4
    type:                      0x83

where ext4 is the filesystem type.

Backing up fstab

To get partitions to mount on boot, you need to edit /etc/fstab. This file is pretty vital for the use of your computer so you should back up the current version whenever you make a change.

To do this, you can run:

sudo cp -v "/etc/fstab" "/etc/fstab-$(date +%s)"

You will get output like this:

`/etc/fstab' -> `/etc/fstab-1312389815'

For this example, to restore the old settings run:

sudo cp -v "/etc/fstab" "/etc/fstab-$(date +%s)" && sudo cp -v /etc/fstab-1312389815 /etc/fstab

Editing fstab

To edit /etc/fstab, run:

sudo nano /etc/fstab

To add an automounted partition, add a line like this:

UUID=228EF188-BDEE-11E0-8F41-F5A84824019B /myBackup ext4 defaults 0 0

and press Ctrl+O to save. This example would automount /dev/sda1 to /myBackup. You will need to replace 228EF188-BDEE-11E0-8F41-F5A84824019B, /myBackup and ext4 with the respective UUID, mountpoint and filesystem type of the partition.

Testing

You don't need to reboot to test this out. Instead, run:

sudo mount -a

You should then test to see if the contents of the directories are as you expected.


How to install Chinese input in English Ubuntu

fcitx should have better supports for all Chinese input methods.

Switch the input system to fcitx in Language Support. (If you don't know what is "Language Support", just search it on the dash.)

Download the latest Sogou PinYin fcitx plugin from this.

Double click to launch Ubuntu Software to install the deb installation pack.
Relogin your account.
Try to switch to sogou pinyin input method under the fcitx input method list in the right-hand side of the top bar.

Type nih or nihao.


Problem after install nvidia-340 or nvidia-352 on gt630

Uninstall the currently installed NVIDIA drivers.

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.

On the login screen press Ctrl+Alt+F1
Enter user name and password and execute :

sudo apt-get purge nvidia*
sudo reboot

Install the NVIDIA drivers in an alternative way.

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.

On the login screen press Ctrl+Alt+F1
Enter user name and password and execute :

sudo apt-get update
sudo apt-get install nvidia-352
sudo reboot

In case the drivers don't work ... try the latest official drivers from the NVIDIA short-lived branch.

Uninstall the currently installed NVIDIA drivers.

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.

On the login screen press Ctrl+Alt+F1
Enter user name and password and execute :

sudo apt-get purge nvidia*
sudo reboot

Install NVIDIA drivers from the GPU drivers PPA .

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.

On the login screen press Ctrl+Alt+F1
Enter user name and password and execute :

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-358
sudo reboot


Run script on login (script with sudo) or startup

1. Using /etc/profile.d

You can run the script on login by placing the script in /etc/profile.d/

These files are executed upon login.

To create a symbolic link to the file you want to execute, use

  sudo ln -s /home/karl/.scripts/startup/sensei-raw-startup.sh
  /etc/profile.d/myscript.sh

2. Using upstart

Another possibility is to use upstart

  start on desktop-session-start

and place your script there.


I have solved my problem by performing following operations
1. Port Forwarding to router so that I download torrent file
2. Running following commands for uploading torrent

iptables -A INPUT -m state --state RELATED,ESTABLISHED -p udp --dport 51413 -j ACCEPT
iptables -A OUTPUT -p udp --sport 51413 -j ACCEPT

Allowed the same port in ufw

sudo ufw allow 51413/udp

Reference: https://superuser.com/a/1006835/575722


Mutt through PHP, Could Not Send Message

your problem is that when mutt tries to send the message, it also tries to save it in a sent folder. As it is running as web-user/www user/apache user or similar, this fails. The fix is to use a local mutt config file (specified with -F on your mutt line) and make sure set copy=no is in that config file.
thanks to kenene on ubuntu formum archive
for this.


My Lenovo S12 laptop (Intel atom) is taking a very, very long time to boot. Can I fix this?

I found the fix in this and this, based on the idea that the Intel atom CPU is used by both computers.

Basically, the /etc/default/grub is edited to add two kernel options to the Linux Default command line.

Note: These instructions are long, but it's really simple and should not take very long.

Open a terminal (dash, type in terminal, … )

Note: If you prefer a GUI editor like Gnome Text Editor, see the note at the bottom.

Type in the terminal sudo nano -B /etc/default/grub and your password if asked…

user@YourComputer:~$ sudo nano -B /etc/default/grub

and the nano editor will open, thus (for mine)...

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=saved
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
GRUB_INIT_TUNE="480 440 1"

#boot previous booted system by default
GRUB_SAVEDEFAULT=true

Using the arrow keys. move the cursor down to the line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" and then to the last ", i.e. (…sh")

Then type in a space and nomodeset nohz=off so it now looks like this.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset nohz=off"

Then type in Ctrl-O, the Enter key to save, and then Ctrl-X to exit nano.

Important last step

Now you have to run update-grub to update the system generated grub.cfg file in the /boot/grub directory.

Type into your computer sudo update-grub and your password if asked…

me@myS12:~$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.0.0-12-generic
Found initrd image: /boot/initrd.img-3.0.0-12-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Microsoft Windows XP Home Edition on /dev/sda1
done

Now the boot should be much shorter.

Notes on nano

nano is especally easy to use in the terminal.  Move around with the arrow keys.  Type in you addtions, delete the unwanted.

The " -B" (or " --backup") option backs up the previous version of it to the current filename suffixed with a ~.  Very handy in case of the dreaded Fat pfinger effect.

When you are though, Crtl-O will allow you to save your edits by hitting Enter.
Closing nano without saving, Ctrl-X
These and other options are shown at the bottom of the terminal screen with the ^ indicating Ctrl

^G Get Help    ^O WriteOut    ^R Read File   ^Y Prev Page   ^K Cut Text    ^C Cur Pos
^X Exit        ^J Justify     ^W Where Is    ^V Next Page   ^U UnCut Text  ^T To Spell

Notes about nano, sudoeditor, and other editors.

Some in the Ubuntu community suggest sudoedit instead of nano.  I recommend nano (which is the default sudoedit editor in later distributions of Ubuntu) instead of sudoedit because the default can be overridden in non-obvious ways (unless you are an administrator).  sudoedit is safer in that it automatically saves a backup copy of the edited file, but the "-B" command line option in nano does the same thing.  nano is safer than other editors like vi or emacs because it doesn't have scary shell escapes.

If you prefer not to use the nano editor and prefer the Gnome Text Editor, instead of sudo nano -B use gksu gedit.  I generally do this for large files, and /etc/default/grub could easily be considered a large file.  Thus type in gksu gedit /etc/default/grub instead of sudo nano -B /etc/default/grub.  Note that the Gnome text editor does not automatically make a backup!


Blank desktop after installing Ubuntu 14.04

Sounds like your DE/WM didn't get load properly, or is hung creating your initial homedir profile settings. You may want to try creating another user, and logging in with it to see if that works. You can do so from the command line (see https://wiki.ubuntu.com/RecoveryMode) with the adduser command.

Also, check the X log to see if there is any indications at the bottom:

cat /var/log/Xorg.0.log


The Ubuntu boot-loader, called Grub (which gives you the boot selection options), needs to be reinstalled.

Since you have already tried the boot-repair tool, and its not working, try the other option as answered by @scott-severance here: https://askubuntu.com/a/88432/200698


Is there a way to find out whether an updated program/package lands in the official Ubuntu release repositories?

There is no list that covers all yet, especially for possible future updates/upgrades. Maybe somebody can work on this ...

That is what I could find out so far:
If a program is updated/upgraded, it will be automatically added to the software centre (and will be updated by the system), viewable also with Synaptic (needs install) and apt-cache (command line).
The page packages.ubuntu.com shows past updates, but do not inform what the future will hold.

Stable Release Update/Backport
Every SRU (Stable Release Update) and Backport is manually requested. SRUs are done only to fix an important bug. Backports are done upon request, if volunteers and resources are available.
Requests for packaging and/or backports are generally tracked as bugs. They are not really bugs, of course. But bug trackers usually track more than just bugs, see backports list.
If you poke around in Launchpad, you should quickly find the similar tracking lists for the Packaging Team, the Security Team, and the SRU Team.
There is doubt that tentative release dates are realistic for most packages, since many backporters seem to work more-or-less at random from the list. If some backporter has specific interests, then they could certainly post ETA dates in the comments and assign the package to themself.

PPAs and alternative repositories
As there are not many significant updates/upgrades that are added in the official repositories of a Ubuntu release (although this might change with future LTS releases), PPAs and alternative repositories are chosen by a lot of people, but it takes time to find them:
I would also promote a list of PPAs and alternative repositories, but this is not supported by Canonical as many PPAs and alternative repositories can cause problems to a system. But a list with the possibility of rating and comments (problem, success) would be better as the scattered information without or little feedback from the community. Unfortunately the Ubuntu brainstorm page will be closed, so I add this idea to this answer, perhaps somebody knowledgeable reads it and can work on it.
There is a related brainstorm idea regarding this topic as long as Ubuntu Brainstorm exists.


How can I upgrade Ubuntu from 19.10 to 20.04 without losing packages?

Before proceeding you can save the list of installed packages by using

dpkg -l | grep ^ii | awk '{print $2}' > dpkg-l_installed.txt
dpkg --get-selections > dpkg--get-selections.txt

As usual the ordinary GUI method would be

update-manager -d # '-d' because of 20.04 is just released today

or use terminal based method

sudo do-release-upgrade -d

The PPAs and third-party repositories will be disabled as usual, other stuff will remain.


Ubuntu16.04/Gnome: How to swap AltGr and Ctrl right at keyboard?

If the functionality of AltGr for your keyboard layout is to access third level symbols of various keys, I suggest that you run this command:

setxkbmap -option lv3:switch

If it does what you want, you can make the change permanent by opening /etc/default/keyboard for editing and changing the line

XKBOPTIONS=""

to

XKBOPTIONS="lv3:switch"


It's Just a Desktop environment. You can use gdebi instller to install if you miss any dependencies for that core it will download the dependencies and install for you.
For install gdebi package:

sudo apt-get install gdebi

use gdebi applicaion to install your deb file.

After restarting you have to select the lubuntu session for switching between you current linux version and lubuntu.


If a Shell Script can run no matter which folder I'm in.How can remove it from the environment?

Type which runzdclient in the terminal.  That will tell you where it's running the script from.  If it's trying to run it from a place you don't expect it to be, you can get rid of that copy and/or overwrite it with the copy that works correctly.


libgnome-window-settings-dev - package not found

The package libgnome-window-settings-dev does not exist for Ubuntu 12.04, the only installation candidate can be found for Ubuntu 10.04 (lucid).

Go through this link of packages.ubuntu.com to see the details.


I eventually fixed this by using a PCI network card. I was still getting the message in Network Manager that the device wasn't managed, so I followed the instructions in this question. I am finally back to normal! Thanks for everyone's help.

P.S. Also fixed the display resolution being stuck at 640×480 by following this article (#1 solution worked for me)


Pulling and committing with Rstudio and github on a windows subsystem for linux

Really you need only R session for such operations.
See https://github.com/rstudio/bookdown-demo/blob/master/_build.sh and https://github.com/rstudio/bookdown-demo/blob/master/_deploy.sh for details.


Can't get Unity to log-in, instantly crashes to main Login screen

I actually got it solved like this

sudo apt-get install ppa-purge
sudo apt-get purge --auto-remove cinnamon
sudo apt-get autoremove
sudo ppa-purge ppa:gwendal-lebihan-dev/cinnamon-stable

Try it


hadoop fs command is not working in my system

go to the hadoop installation directory

and type

bin/hadoop fs -ls /

it will return with the directories and files available on the HDFS


Please check to make sure that your USB ports are working: try to connect a mic, or a USB laptop flashlight, or another USB device to ensure they draw power from USB.  Then update your question with the results.


One of the cmus dependencies starts a network server that causes cmus to hang while it never loads. The following resolves the issue:

$ apt-get purge libdnet dnet-common

You can perform a fresh cmus install without the server as so:

$ sudo apt-get --no-install-recommends install cmus cmus-plugin-ffmpeg

Here is the related bug report.


How to speed up boot time by tweaking services?

To see boot time of all the services you can use the command:
systemd-analyze blame
This will give you the number of seconds every service needs and will be a good starting point.
To see it in a graphical way you can use:
systemd-analyze plot > startup.svg
Hope this helps.


How do I export banshee library settings to another machine?

The Banshee configurations are stored in the ~/.config/banshee-1/ directory. Those configurations can be found in the ~/.config/banshee-1/banshee.db (if you have the sqlite3 tool you can take a look inside this file).

I don't know if there are significant differences in the format of the files from one version to another, but I suggest that you save the entire directory and try to restore it after downgrade.

Update:

A more safe option to keep bashee settings is using the sqlite3 command:

$ sudo apt-get install sqlite3
$ cd ~/.config/banshee-1
$ sqlite3 banshee.db ".dump" > BACKUP_FILE

After the downgrade you can restore the file (first copy the backup file to the ~/.config/banshee-1 directory):

$ cd ~/.config/banshee-1
$ cat BACKUP_FILE | sqlite3 banshee.db


How do I use fastcgi with the apache2 charm?

According to apache2 documentation in precise - http://manage.jujucharms.com/charms/precise/apache2, you are calling the command correctly to enable the fastcgi module, but it seems the libapache2-mod-fastcgi cannot be installed.

Can you try juju ssh apache2/1 and then run sudo apt-get update && sudo apt-get upgrade && sudo apt-get install libapache2-mod-fastcgi? This might fix the issue with the package.

If not, you can consider upgrading the charm or using a Trusty machine instead and the trusty version of the charm, as the issue might be fixed in a newer revision of the charm.


How to prevent new windows from stealing focus?

Install CompizConfig Settings Manager

either from Ubuntu Software Center
or via terminal:

sudo apt-get install compizconfig-settings-manager

Open CompizConfig Settings Manager and go to General -> General options -> Focus and raise behaviour
Change the 'Focus prevention level' from 'Low' to 'Normal'.


Ralink RT2870 Help. Drivers installed but device incorrectly only showing 1 available wireless essid

Solved it!!

It turns out my home Wifi was broadcasting on channel 13, but my device was configured to capture from channels 1 to 11. Strange , but anyway I am elated.
I just reset my Wifi to broadcast on channel 1-11, and Voila, problem solved.Took me a while this..

Cheers


Have the display manager start synergy server before login in ubuntu 18.04 LTS

After a detailed research I have arrived to light on this issue. Synergy uses X server and
to have run before login we need to let GNOME Display Manager start the service. To achieve this we have to create and edit:
edit;
/etc/gdm3/Init/Default
/etc/gdm3/PostLogin/Default

create a session file:
/etc/X11/Xsession.d/85synergys

The session file confirms to be working as it is responsible for staring the server when a user login session is created. However, the dgm3 does not start the server before login and after logging out. I am calling for help to improve this answer please.
References:
SynergyHowTo
Ubuntu Maunuals


ecryptfs error recovering encrypted home folder

I think you gave up too soon with ecryptfs-recover-private, it looks like when it came to the line asking you

Do you know your LOGIN passphrase? [Y/n]

instead of pressing enter, or y then enter, you typed in something beginning with an n, which the script took to mean "no" and then asked you for the mount passphrase instead.

So, try it again, but with Y when it asks for the login passphrase.

And, if you have to run ecryptfs-unwrap-passphrase again, try looking for the wrapped-passphrase file somewhere in/around /home/.ecryptfs/chris/.Private, and then tell the unwrap script where it is specifically.


The new site is lesswatts.org, which is supported by Intel Corporation. However, they don't seem to have archived the downloads that were formerly available on sourceforge. They also don't seem to be available if the old pages are viewed in the internet archive.

At lesswatts.org they explain that

  In the early days of Linux/ACPI, DSDT modifications were common to work around both BIOS bugs and Linux bugs. However, the stated goal of the Linux/ACPI project today is that Linux should run on un-modified firmware. Thus, the DSDT database at the old http://acpi.sourceforge.net web site is now largely a historical artifact.

However, there is some useful information on the site about debugging your ACPI problems and overriding your current dsdt. It will, however, be necessary to compile your own kernel to incorporate your own modified DSDT.

You will need the acpidump package* and the Intel 'ASL compiler/decompiler' known as iasl in a package of the same name. The process of dumping the ACPI data into ASCII file with acpidump, the conversion of that data to binary with acpixtract, and then the iasl decompiling, user modifications, and iasl recompiling is explained well on the lesswatts site.

The lesswatts mailing-lists may contain information on your motherboard, but I couldn't seem to find any exact references, but it worth looking on other hardware specific mailing lists.

*The acpidump package in Ubuntu is known upstream as pm-tools.


Create new configuration in pxelinux.cfg folder, either MAC, IP (in hex) or portion of IP.

  As an example, if the boot file name is pxelinux.0, the Ethernet MAC
  address is 88:99:AA:BB:CC:DD and the IP address 192.0.2.91, it will
  try following the files:

/var/lib/tftpboot/pxelinux.cfg/01-88-99-aa-bb-cc-dd
/var/lib/tftpboot/pxelinux.cfg/C000025B
/var/lib/tftpboot/pxelinux.cfg/C000025
/var/lib/tftpboot/pxelinux.cfg/C00002
/var/lib/tftpboot/pxelinux.cfg/C0000
/var/lib/tftpboot/pxelinux.cfg/C000
/var/lib/tftpboot/pxelinux.cfg/C00
/var/lib/tftpboot/pxelinux.cfg/C0
/var/lib/tftpboot/pxelinux.cfg/C
/var/lib/tftpboot/pxelinux.cfg/default

Then make it default or ontimeout to boot local drive

LABEL BootLocal
        localboot 0

Source: Ubuntu Community Help Wiki: PXE Install Multi Distro


What you can try is to kill the user bart's processes and kick him off the session. I would try this: # pkill -STOP -u bart

Though I do apologise as I have not yet tried this command myself. I found it from this great source: Link

I hope this helps you.


I assume, you want the script to run on client side. (For server side, you would have to use php, as mentioned in one of the comments).
If you are using Firefox, you have to write this as an add-on. Note that simple javascript functions are executed under a sand box, so making an add-on becomes essential for you.
There used to be add-ons which could execute any bash script for you. Source
You can find this link relevant, to start writing such an add-on.


If you use visudo, a validation of the file is done before you are returned to shell, allowing many bad typos or errors to be caught (in the validation check), returning you to editor to have another chance to fix them.

This prevents the user from finding out about errors later, and being unable to use sudo vi to correct those errors in later commands because of easily-missed typos detected too late.

I commonly use sudo vi myself, but am sure to have an escape route in place to allow correction (eg. another connection logged into root active in case I make errors whilst I validate it myself etc).

Do you have root enabled? If so login using it & edit the file (correcting your typos) using root.

If you have more than one user with sudo privileges, you may find an earlier sudo privileged user (as defined in the file) can still use their sudo (thus allowing editing).  This has worked for me in the past, so I assume the part of the file after the error isn't read (but this may have changed - it was years ago I found it saved me)


Do I need to install Vulkan for better performance?

If you're not willing to install Vulkan's beta drivers manually (which I don't recommend you doing anyways) you can try out this which appears to be a PPA that includes Vulkan.

At the moment I believe that Vulkan is in a beta stage and your improvements might be considered negligible in additional consideration that you may have some system instability.


Format partitions 5 and 6 when installing?

Choose Try Ubuntu first then use Gparted. Remember to unmount drive first. Once done - used install option on desktop


How do I fix "sorry, a problem occurred while installing software blcr-dkms"?

Try:

sudo apt-get purge blcr-dkms
sudo apt-get install blcr-dkms


installing netbeans-8.0.1-javaee-linux.sh on Ubuntu 14.04

Open a terminal (use Ctrl+Alt+T), change to the directory containing the downloaded shell script, and run as super user:

$ sudo ./netbeans-8.0.1-javaee-linux.sh

You'll be prompted for your password and the NetBeans install wizard will start.


user-admin is correct.

It sounds like you are on the right track, and I can't tell exactly how to help you from your description.  My best guess is that you are not extracting the right password from your ~/.juju/environments.yaml file.  Make sure that you are looking at the stanza for your MAAS environment.  If you see a line that says

admin-secret: aaaAAAbbbBBB111222333

then you should be able to use aaaAAAbbbBBB111222333 as the password.

I hope that helps.


Just ran into the same problem

After fiddling around I started alsamixer, selected the sound card (F6), and changed Analog Output to Multichannel.

Install alsa-utils In terminal type:

sudo apt-get install alsa-utils

Run alsamixer in terminal
Hit the F6 key.
Arrow over to "Analog Output" and arrow up/down to change to "Multichannel"


Thanks for all the comments and hints! I finally fixed the problem using tune2fs by resetting all reserved blocks on my root partition and now df -h also reports 5.5GB of free space

sudo tune2fs -m 0 /dev/sdb1

This source also helped me a lot.


It is a feature in the Zim application, which allows you to export as latex code. I would see use of this if the aim is to incorporating it later in another latex document or use that note as the basis for a new latex document.


Google Authenticator SSH password or key

I somewhat came up with a solution.

First, create a user with no password, something like:

sudo adduser backup --disabled-password

then in /etc/ssh/sshd_config:

Match User backup
    AuthenticationMethods publickey keyboard-interactive
    ForceCommand sudo login

and at the bottom of sudo visudo:

backup ALL=(ALL:ALL) NOPASSWD:/bin/login

Finally, run

google-authenticator

as the user backup. Or, you could copy your

.google_authenticator

file to the new user.

Now, whenever I need to login without my private key, I ssh into the user backup, enter my two-factor code, then I get the system login prompt that allows me to login to my main user.


no init found. Try passing init = bootarg in ubuntu

The system is likely broken. Unfortunately, I (and most other people) can't help you recover the system with the information provided so far. However, I can help you retreive your data. Boot the livecd. Mount the drive (it will be detected as something like "100500TB File System", the size may differ). Grab all the data you need, back it up elsewhere (removable HD, usb stick, CD/DVD/BRD, depends on the data size). Then reinstall.


Installation of Ubuntu 18.04 freezes on Acer Swift 3 (AMD Ryzen 5 + Radeon Vega 8)

I am running into the same problem with the same laptop. I couldn't fix the problem but I found this linux.org thread on boot problems. In particular this helped me to go through the installation:

In the grub boot screen, press e and edit the line that has
quiet splash

and change that part to
quiet splash nvme_core.default_ps_max_latency_us=5500

However once I installed Ubuntu, it does not work properly (freezes after a while). But I though it may help you. In any case, if you find the solution please post it.
Thanks!


Login broken for Software Center recommendations

While I don't know why you are having the problem(unless you typed your password incorrectly), I can answer your question on how to reset the login info.

Open the dash and start typing "password" , the application "Passwords and Keys" will come up.  When you open the application you will see the following.

If you click on the arrow the password list will open and you will be able to right click on the password for the Software Center.

On the right click menu you will be able to delete this password.

After you delete this password you will be have to "Turn on Recommendations" again in the menu of the Software Center.  It will bring up the window that will allow you to sign up or log in to your existing account.

After doing the above you will have a new password file for the Software Center.  if that was your only problem it will be resolved, if not I have exhausted the extent of my limited knowledge and will be of no further use to you. Hope I was able to help.


You could simplify your code a bit:

#!/bin/bash

tab=" --tab-with-profile=Default"
options=(--tab --title=Terminal)

for i in 9.10 9.20 9.30 9.23 9.26 9.40 9.41 9.42 0.43 9.50 9.11 9.12; do
  options+=($tab --title=$i -e "bash -c 'ping 192.168.$i; bash'" )
done

gnome-terminal "${options[@]}"

This will set the titles to be 9.10, 9.20, etc. If you just want the part after ., you could use --title=${i##*.} instead of just --title=$i.


Alarm Cron has a nice feature to make a sound (alarm) only play once and then stop


Installing Apache Mod_Evasive without installing Postfix

You can install the simple relay-only mail transport agent nullmailer instead and that will satisfy the dependency.
See my answer here https://askubuntu.com/a/1124624/243321, I find nullmailer extremely useful.


How to create a bootable Ubuntu CD for an older laptop

The Ubuntu ISO image is too big for a CD.
You have to burn the image to a DVD.
Alternatively create an USB media.

Reference -> Install Ubuntu 14.04.4 LTS


Please change:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/$JAVA_HOME="/usr/lib/java/jdk1.8.0_131/bin/java" "

To:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"

JAVA_HOME="/usr/lib/java/jdk1.8.0_131"

Then source the /etc/environment with source /etc/enviroment.

Now run echo $JAVA_PATH


Could Autorun Virus, affect my PC via Wine?

Can viruses run in Wine?
Yes.
Will inserting a CD with an autorun-enabled virus into an Ubuntu+Wine computer lead to the virus being loaded and the computer becoming infected?
No. You could enable that sort of autorun scripting if you really tried, but it's not something Ubuntu ships with.
What happens if you run a virus through Wine?
What happens if you run anything through wine? A virus is just an application that does particular things. If wine supports those things, they're going to work as designed. If wine doesn't, you're going to see a bunch of messy errors.
It's really not possible to give one answer that covers all viruses.
I generally consider it better to just avoid them in the first place.
What does a virus run under Wine have access to?
Having seen another answer claiming that Wine can't hurt anything, I think it's important to add that it's not true. Wine has access to more than enough to ruin your day.
For your convenience, your home directory is symlinked to My Documents. That means you can save things easily from Wine applications but it also means that even a basic virus could, for example, encrypt all your Ubuntu documents and hold them hostage.


Send programs from ubuntu partition to mint partition

Do you have a separate /home partition under Ubuntu installation?
If yes, then install Linux Mint normally and direct it to use the /home as new /home (Don't format the partition)
If no, you can install Mint normally and mount the Ubuntu partition in your Mint file manager and use as is, no need to transfer data. You can copy-paste anything anywhere as per your requirement
For program transfers, your packages are stored in /var/cache/apt/archives/ (unless you cleaned it with apt-get clean), copy those .deb files to the Desktop of your Mint installation (use sudo for permission), then in Mint use 'sudo dpkg -i /home/Desktop *.deb'
For more info: https://superuser.com/questions/378686/when-you-do-apt-get-install-where-are-the-deb-files-stored

Hope it helps, thanks


To control battery at a certain capacity (for ex.20%) then the laptop will be automatically standby or hibernate for long-lasting the battery

The battery capacity is stored somewhere in /proc. Possibly /proc/acpi/battery or something like that. You could write a bash script that reads the battery status and issues a hibernate or suspend command. It would look something like this:

#!/bin/bash

load=$(cat /proc/acpi/battery)
min_load=20
if [ $load <= min_load ]; then
    pm-suspend
fi

I give no guarantee that this is right since I don't know how the output of cat /proc/acpi/battery looks like and I'm not that big of an bash script expert. Try it out and ask if you have any problems.

You could then create a cronjob that runs the script every minute or so. Take a look at this tutorial for cronjobs. You want to create your job as root user.


"ImportError: No module named pyaudio" despite python-pyaudio installed

The cause of the problem is that the shebang of the runanki script at https://github.com/dae/anki/blob/master/runanki explicitly states Python 3, so ./runanki invokes the Python 3 interpreter but you had installed pyaudio for Python 2. As a result, Python 3  is not able to find pyaudio and therefore raises an ImportError. The easiest solution here is to install the Python 3 bindings for pyaudio by running:

sudo apt update && sudo apt install python3-pyaudio


Btrfs: It is safe to delete @home subvolume in this case?

It looks like you can safely remove the @home subvolume. It is not mounted anywhere on boot.

I recommend to check if there is anything important there left. You can unmount the HDD for that and see what is in /home.


Evernote with wine. Titles of notes invisible

Install riched20:

winetricks -q riched20


Is it possible to boot faster with Windows 8.1 when dual booted with Ubuntu (14.04)?

Window 8 "Fast Boot" feature is not actually boot at all. It is hibernation.

When you install Ubuntu it is recommended to disable fast boot in Windows, because if Windows is hibernated, you can not mount Windows partitions with read/write capabilities in Ubuntu.

You can enable fast boot in Windows, if you do not use NTFS partitions in Ubuntu or use them in read only mode.

But Ubuntu just really boots fast. If you want a faster startup in Ubuntu, you can enable hibernation there as well.


I ran into this issue when I accidentally deleted my ~/.bashrc file. Changing the Profile Preferences as stated in a comment above did not work. Since I completely lost my ~/.bashrc file, I simply copied /etc/skel/.bashrc to ~/.bashrc. After a logout and login, my terminal colors were back to normal.
One could also look at /etc/skel/.bashrc to see if anything related to color is missing from their ~/.bashrc file.
This may not be the solution to OP's exact problem but I hope it helps somebody.


You have a break in your the dependency chain.
Why? That's why:

apt-cache policy libgphoto2-6:i386 libgphoto2-6 gives

libgphoto2-6:i386:
  Installed: (none)
  Candidate: 2.5.3.1-1ubuntu2
  Version table:
     2.5.3.1-1ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main i386 Packages
libgphoto2-6:
  Installed: 2.5.3.1-1ubuntu2.2
  Candidate: 2.5.3.1-1ubuntu2.2
  Version table:
 *** 2.5.3.1-1ubuntu2.2 0
        100 /var/lib/dpkg/status
     2.5.3.1-1ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

As you can see, you have only one installation candidate for libgphoto2-6:i386 with the version 2.5.3.1-1ubuntu2. But the version of libgphoto2-6:i386 have to be exact the same as for libgphoto2-6 and this is 2.5.3.1-1ubuntu2.2 not version 2.5.3.1-1ubuntu2. Correct with

sudo apt-get install libgphoto2-6=2.5.3.1-1ubuntu2
sudo apt-get install -f

Earlier you had enabled trusty-updates, this channel contains the version 2.5.3.1-1ubuntu2.2 for both packages. You could also re-enable trusty-updates.

Open Software & Updates and the tab Updates and activate trusty-updates as you can see in the screenshot (ok, it's a Wily screenshot and not Trusty).


Auto hide launcher in Ubuntu 14.04 LTS not working

You can also adjust the 'reveal sensitivity' of launch bar. So in your case try setting it to high.

Go to Settings -> Appearance -> Behavior and move the bar next to Reveal Sensitivity towards High.