xhci_hcd 0000:03:00.0: Failed to enable MSI-X means that MSI-X could not be enabled for your USB 3.0 controller (xhci). MSI is an enhanced way to handle interrupts, but if it doesn't work for a device, it may just work without it.

So, consider it as a warning. Workarounds to get rid if the error like adding pci=nomsi to your kernel will disable it completely and you don't want that for performance reasons.

Several options I think of:

First, update your PC's BIOS if there's an update available. It might expose some wrong data in the DMI and therefore misleads the kernel in detecting such things.
Discuss this on the kernel mailing list.
File a bug against the driver (kernel module).
Disable USB 3.0 in your BIOS if you don't need it.


Something like this?

When hitting search and then the + button on the right you have the ability to choose some files... Sorry, but I'm not sure if it's that you're searching for...


Calibre cannot load ImageMagick since upgrade to Vivid Vervet

Forget about the Calibre package in the Ubuntu repositories, it is outdated and not very well maintained.

sudo apt-get remove calibre

Install Calibre with the command below, the author of Calibre provides a great installation script.

sudo -v && wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"

This script lets you get version 2.41.0 without the problem of missing libraries.

More information here.


How to remotely power on nodes on maas 2.0

In my case I have virtual machines and I can not power on any VM, I receive a Failed Commisioned message. my post


Gnome 3 - how can I turn on some extention?

Open the GNOME extension page Window List by fmuellner  in Firefox. In use the slider to activate the extension

The extension is available for GNOME 3.0 ... 3.16

I have only a single monitor setup, therefore I can't check, if it's possible to have multiple bars.


Secondary screen looks like TV with bad signal and

I would suggest that it is a hardware issue. To check, it might be a good idea to switch the monitors over and see if the problem is still on the same monitor or if it has moved to the other one. You should also try just swapping the cables to see if that's the problem.

If the problem sticks with the same monitor even when connected to a different output and changing the cable makes no difference then I would say there is something wrong with the monitor. Otherwise I would say it was the graphics card. But make sure you test the cable.

I get this same problem myself with a snowy effect and flickering if my cable comes slightly loose at the back. It may be something as simple as a bent pin in the cable head which isn't quite connecting properly and can be bent back (had that problem in the past too).

The software crashing is probably due to the PC thinking you've disconnected the monitor and just not handling that very well.


The information on how to configure Juju for its usage with HPCloud can be found here (https://juju.ubuntu.com/docs/config-hpcloud.html).


buddy, you must do one thing:
Try to clean up all disk before installing Ubuntu 18.04. I also have faced  that issue like that but ultimately it worked. Try to make a bootable pendrive by RUFUS latest version, if it is helpful to you.


How can I  import my Gnome Sticky Note Applet notes into Tomboy?

This should be done automatically. If you take a look at Preferences->Add-Ins there is the Sticky Notes Importer under Tools. This should be active.


You can't unless you get involved in porting and work around the obvious hardware limitations and probably missing driver support. The official requirements for Ubuntu on phones were from the Galaxy Nexus (1 GB RAM, 1.2 GHz dualcore) but the device was dropped from support and moved to the Nexus 4 (2 GB RAM, 1.5 GHz quadcore).

Verizon promises a 2.3.6 update but Motorola Mobility has confirmed it will never see Android 4.0 Ice Cream Sandwich.
Wikipedia: Droid X2

The carriers and manufacturer seem to have dropped support for the device longtime ago. But Ubuntu relies on parts of Android 4.4 in current builds.

Last update 2013-03-27
[...]
Other Memory issues (512MB)
 Ubuntu Wiki: Motorola Droid 3

As you can see work on similar ports seems to have been given up a long time ago.
Dual boot seems to be implemented by replacing parts of the recovery ROM and telling Android to boot to the recovery, which will start Ubuntu. At least last time I tried dual booting on my Nexus 4 earlier this year it worked that way.


nouveau driver fills /var/log/kern.log and syslog

That version of the nouveau driver seems to be buggy with my graphic card when the Desktop is in power saving (or at least with the screensaver).
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1474538

One workaround can be to switch to nvidia driver : http://www.linuxandubuntu.com/home/how-to-install-latest-nvidia-drivers-in-linux
An other possibility is to stay with nouveau driver, but use the latest version available through the installation of the "LTS Enablement Stack" : https://wiki.ubuntu.com/Kernel/LTSEnablementStack#Ubuntu_16.04_LTS_-_Xenial_Xerus

That second option worked for me, so all I did was :

sudo apt-get install --install-recommends linux-generic-hwe-16.04 xserver-xorg-hwe-16.04

and reboot on the latest kernel & newer nouveau driver.

linux-image-generic: 4.10.0
xserver-xorg-video-nouveau-hwe-16.04 : 1.0.14


Rhythmbox does not provide an option to use a dark theme, however, in general, you can (unofficially) run an application with the specified theme by assigning a theme to the GTK_THEME variable as follows:
GTK_THEME=<theme-name> <application>

where <theme-name> is the name of the theme you want to use for the application and <application> is the application you want to run.
For example, if you use Yaru as your main theme, but want Rhythmbox to use the dark version of Yaru, you run:
GTK_THEME=Yaru-dark rhythmbox

To make Rhythmbox use this theme when you run it from its launcher, run the following commands:
cp /usr/share/applications/rhythmbox.desktop ~/.local/share/applications
sed -i 's/Exec=rhythmbox %U/Exec=bash -c "GTK_THEME=Yaru-dark rhythmbox" %U/' ~/.local/share/applications/rhythmbox.desktop

The first command copies the rhythmbox.desktop file from /usr/share/applications to ~/.local/share/applications

The second command changes the command that executes rhythmbox from rhythmbox %U to bash -c "GTK_THEME=Yaru-dark rhythmbox" %U in the ~/.local/share/applications/rhythmbox.desktop file.
Here you may replace the Yaru-dark theme with the dark theme you would like to use.


Why do I need administrative privileges to use chsh?

Both chsh and passwd allow the user to change their default shell and password. In both cases the user will be required to provide their current password to authorize the change. The user does not need sudo (administrative) privileges.

The command would be:

chsh -s /bin/tcsh

chsh tcsh would not work as it needs the full path. However, you also need to log out and log back in as the X-session will continue to present you with the shell that it read from /etc/passwd when it first loaded. A quick way to confirm that indeed your shell has changed would be to switch to one of the virtual terminals and logging in there (such as Ctrl+Alt+F1).


I would use an AntiVirus vendor solution to examine the PC.
Avira has one available for non-commercial use. You install it on a USB device and then boot to it (which may require adjusting BIOS settings)

Link: https://www.avira.com/en/download/product/avira-rescue-system

To your question, this will (hopefully) identify the malware if indeed it exists. Of course, no solution is absolute.


Changing cursor size to max breaks my system

After login as another user, you have to follow these steps with root password to reset the cursor size.
Let the two user's name be userA and userB. You want to reset cursor size for userA.

Open a terminal(Ctrl+Alt+t) with userB.

Enter these commands in the terminal:
sudo su - userA [provide root password]
dbus-launch gsettings set org.gnome.desktop.interface cursor-size 24

and you are done.


How to print to a shared Konica Minolta pagepro 1580 MF printer?

If the office computers are all in a Workgroup and not a Domain, go to the Windows 7 PC where connected to the printer, and select Devices and Printers.

Right click on the name of the printer you want to print to.

Left click on Printer Preferences. A pop-up window appears; click on the printer's Ports tab.

Uncheck bi-directional printing then save. Now you should be able to print to the printer from your Ubuntu PC.


Have a look at acpi_call and bumblebee in this website:
http://launchpad.net/~hybrid-graphics-linux
Also, please provide your DSDT info as explained in this website:
http://linux-hybrid-graphics.blogspot.com/

Cheers


How to pass different argument to gdbus like unit16, uint32

Below command works
Arguments should follow GVariant standard :
https://developer.gnome.org/glib/stable/gvariant-text.html

gdbus emit -y -o /myservice/serverInstance -s com.mimo.myservice.touch "(2, unit16 1)"


You can always run Live CD and see what happens. At the Live CD first screen choose "Try" first, not "Install". By the time you get this screen all important things such as Linux Kernel and most interesting subsystems have been already started.

It covers display/video, network, sound, input, hard and optical drives and others.

As the same configuration and binaries go to the installed version this means if it works in Live CD it is most likely going to work after installation.


Will Steam work as good in other desktop flavors as it runs on Ubuntu?

The desktop environment that you use does not affect the usage of Steam. In fact, you do not even need a desktop at all to run steam.

An example of that is that a Steam session can be added to LightDM or any other login managers to run Steam in big picture mode instead of the actual desktop.

And by the way: SteamOS is built on top of the stable release branch of Debian, not Ubuntu, Ubuntu is as well officially supported as any other Linux distribution. Not that it matters, most of the popular Linux distribution will run Steam without any issues.


As said upgrading your ubuntu will not break or touch you windows.

The only problem you may have is is grub update fails which is very unlikely and easily fixable.


This answer is based on bcbc's comment.

This appears to be a graphics card issue. So try using the nomodeset boot option.

First try post #8, Method 2 (summarized as follows):

In windows open X:\ubuntu\install\wubildr-disk.cfg in a text editor, where X: is the drive where you installed Wubi.
Add nomodeset to the end of the line that looks like:

linux /vmlinuz root=UUID=$diskuuid loop=/ubuntu/disks/root.disk preseed/file=/ubuntu/install/preseed.cfg wubi-diskimage ro quiet splash

So this line will now be:

linux /vmlinuz root=UUID=$diskuuid loop=/ubuntu/disks/root.disk preseed/file=/ubuntu/install/preseed.cfg wubi-diskimage ro quiet splash nomodeset

If this doesn't work, press and hold Shift while you select Ubuntu in the boot menu. If a GRUB menu comes up, you'll need to use the instructions for installed, non-Wubi systems (see also this question).


How to reboot system into recovery mode in Ubuntu 14.04

You should have simply press Shift key as soon the BIOS is done, keep hitting it to get the timing right. If that don't work try:

Esc key
Space key

Source


How to run X server on other Computer/other Monitor?

You will need a custom xorg.conf

edit /etc/X11/xorg.conf

# command line
sudo -e /etc/X11/xorg.conf

# graphical
gksu gedit /etc/X11/xorg.conf

xorg.conf is divided into sections, and you only need a few sections.

You may not need more then a Monitor section

Section "Monitor"
    Identifier     "Monitor0"
    Option         "Enable" "false"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    Option         "Enable" "true"
EndSection

If you need more then that ...

Section Screen
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor1"
EndSection

Section "ServerLayout"
    Identifier     "Layout0"
    Screen         "Screen0"
EndSection

In terms of run levels, Ubuntu uses Upstart, and to some extent the idea of runlevels is depreciated. You will need to edit your Upstart scripts so that X does not start in runlevel 2 and append "2" or "3" to your grub linux (kernel) line.

Upstart is not too bad to learn, see Upstart How To to get started.

That should get you started, post back if you get stuck.


ssh may reuse existing connections.

Here is a quote of an answer by chepner to this similar question on Stack Overflow:

  If you open the first connection with -M:

ssh -M $REMOTEHOST

  subsequent connections to $REMOTEHOST will "piggyback" on the connection established by the master ssh. Most noticeably, further authentication is not required. See man ssh_config under "ControlMaster" for more details. Use -S to specify the path to the shared socket; I'm not sure what the default is, because I configure connection sharing using the configuration file instead.

  In my .ssh/config file, I have the following lines:

host *
  ControlMaster auto
  ControlPath ~/.ssh/ssh_mux_%h_%p_%r

  This way, I don't have to remember to use -M or -S; ssh figures out if a sharable connection already exists for the host/port/username combination and uses that if possible.


How to copy linpus Linux drivers and add/replace in ubuntu

I'm not sure if you can simply copy the drivers, maybe someone else who has tried it can answer that.

Not knowing your laptop's model I can't say for sure, but I had similar issues as you on my Acer VN7 792G. I'm running Ubuntu 15.10 and was able to fix wireless and touchpad:

as for the touchpad, install kernel 4.5. I'm currently using 4.5rc5 and it's working fine. Howto update kernel (official Canonical build):
as for the wifi, it's a known bug for my model and there is a firmware available, which together with kernel 4.5 works ok :) bug report, fix instructions


NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

If your nvidia-smi failed to communicate but you've installed the driver so many times, check prime-select.

Run prime-select query to get all possible options. You should see at least nvidia | intel.
Choose prime-select nvidia.
If it says nvidia is already selected, select a different one, e.g. prime-select intel, then switch back to nvidia prime-select nvidia
Reboot and check nvidia-smi.


Why I get compile error in IntelliJ IDEA 11?

I'm not a IntelliJ user, but I do use PyCharm everyday. JetBrains IDEs don't work (and they are not supported) under OpenJDK 6. They are really slow and have some visual problems when used with it.

It's quite possible too that your project doesn't work either in OpenJDK, I mean that this is not an IDE problem, but some problem in your own project.

PyCharm, 2.0 at least, and likely IntellJ, works nicely under OpenJDK 7, but it's still not supported (it doesn't support Oracle Java 7 either). Note that this means that it's not supported to run the IDE under this VMs, not that you program with those VMs as targets is not supported (it is).

So you have two options:

Move to Oracle JDK 6 (you will need to install it from the Oracle web).
Move to OpenJDK 7.

The best answer depends on your project. OpenJDK 7 will be the best move to assure future compatibility (Oracle Java 7 is based on it), Oracle 6 can be the best fit if most of your users are using it.


Can't Login to Gnome 3 (No Login Screen) 13.04

Go to the users section of your system settings and edit your account. Uncheck "automatic login" (may be labeled different, I'm using the german version). At next boot, the lightdm-greeter should appear and let you choose your favourite desktop environment.


Go to additional drivers and select the open source driver installed. If it is not available, install additional drivers in the terminal, using:
sudo ubuntu-drivers autoinstall


i think gnome3 is safe on ubuntu 11.10 but i don't know to ubuntu 11.04, in ubuntu 11.10 gnome3 is in the repositories but i don't know if is on ubuntu 11.04 repositories since if i remember correctly gnome 3 and them gnome 3.2 was release after ubuntu 11.04.however i am using currentlu ubuntu 12.04 beta and have gnome3 and i think is secure or at least only few bugs,.. but i don't know for sure..so if you use gnome3 update on ubuntu 11.10 i think is secure not sure on ubuntu 11.04

the second question i don't know ?if you installed from ubuntu software center the dictionary or from synaptic  and if so is working(if not try to reinstall) .. i don't know the application so i can not help more


How do I remove an application I installed from gitHub?

According to this  Stack Overflow question you can record python script installed files by sudo python setup.py --record ~/Desktop/installed_files, if you have python-distutils-extra installed. So do:

sudo apt-get install python-distutils-extra
sudo python setup.py --record ~/Desktop/installed_files
xargs -a ~/Desktop/installed_files.txt rm -rvf


indicator-multiload messed up after upgrade to Ubuntu 16.04

Edit: I haven't personally seen this bug in Ubuntu 18.04 so it may only apply to older versions of Ubuntu.

This appears to be due to a bug: indicator-multiload display keeps resetting on its own. If you're having the same issue, please go to that link, log in, and click Does this bug affect you? near the top left so it gets more visibility.

The workaround is simple enough, although unfortunately it's only temporary; for whatever reason the value keeps getting changed on its own:

dconf reset /de/mh21/indicator-multiload/general/indicator-expression-index

If that doesn't do the trick, you can also reset all of the indicator-multiload settings to default:

dconf reset -f /de/mh21/indicator-multiload/

If you do that, you'll have to redo your customizations by clicking on the indicator → Preferences


How to unbind/bind a usb device as normal user?

To give the user "foo" root privileges via the sudo command, edit  /etc/sudoers and add the line:

foo   ALL = NOPASSWD: ALL

See sudo(8) and sudoers(5) for more information.

For bind/unbind you can use below command:

echo -n devicePath > /sys/bus/usb/drivers/usb/unbind
echo -n devicePath > /sys/bus/usb/drivers/usb/bind


auto start or enable service on boot up permanently ubuntu 16.04 lts

It sounds like you're looking for:

systemctl enable example-service.service

It doesn't sound like you have whatever service it is permanently disabled, but if it was, you would do:

systemctl unmask example-service.service

as well to re-enable being able to start the service.


How to install GTK widget factory via Apt?

It took some digging but I finally found it in Linux Mint's forum.
sudo apt install gtk-3-examples

Issue gtk3-widget-factory to start it.


need help putting ubuntu on a usb it has 2g of free space

Use Lilyusb at http://www.linuxliveusb.com/
you can read the instruction at there
for make usb linux key, just decide the OS you want.
If you want to make linux key running on Ubuntu 12.04...download its ISO


Ubuntu 16.04 font aspect of gnome-terminal: how to change the height/width ratio?

Oh, now I remember how I changed the font aspect ratio in previous Ubuntu versions. I used unity-tweak-tool, exactly as described in this answer (Under Appearance, Fonts, Text scaling factor). Then later I decided unity-tweak-tool was kind of a bad dangerous program and I uninstalled it, that's why I forgot I guess.

I'll try to find if there is a way to do the same without unity-tweak-tool and edit later this answer if so.

For the scrollbar, as @doug said in its comment, it's in Edit > Preferences under the "Scrolling" tab.

[EDIT: How to change the default font with dconf-editor]

Without unity-tweak-tools, dconf-editor does the job, you just need to know where to find the parameter:

Run dconf-editor in a terminal.
navigate to : org > gnome > desktop > interface
Edit the fields monospace-font-name and text-scaling-factor. In my case, I set to 'Ubuntu Mono 12' and 0.9 respectively.
close dconf-editor
in gnome-terminal, open the preferences of your profile, and choose to use the default font.


How can I rearrange the order of OSes in the boot menu?

I found this on the forums, it is a little old, but the process should be the same. I just tried it and it does work as it should.

First install startup-manager via Ubuntu Software Center, you can find the package by searching for startup.

Then, open the startup manager and select Windows 7 as the default, close, restart and it should work.


ubuntu server 20.04 wifi via netplan doesn't work

Your .yaml file is incomplete.
Use this (and keep exact spacing, indentation, and no tabs):
network:
  version: 2
  renderer: networkd
  wifis:
    wlp2s0:
      dhcp4: true
      access-points:
        "K+T":
          password: "xxxxxxxxx"

sudo netplan generate
sudo netplan apply
Then install wpasupplicant (via ethernet or USB):
sudo apt-get update
sudo apt-get install wpasupplicant
reboot
Note: This all will work only if you install the wpasupplicant package and its dependencies. So either you need the ethernet connection, or download to USB and install manually. Without wpasupplicant wi-fi will not work.


How to do monitor brightness changes on the desktop like on the laptop?

Even on many laptops, but especially on a desktop you should get the keyboard events for brightness changes on X11.

If you don’t have a fancy keyboard with keys for that, decide on your own shortcuts. Configure XKB to report the keyboard symbol you want for this.

There are “official” keysyms for monitor brightness up/down in X. And unity-settings-daemon or gnome-settings-daemon have a passive grab on them. Unfortunately I didn’t find a reasonable way to make those programs leave those keys alone.

unity-/gnome-setting-daemon are the origin of those fancy OSD messages. They also trigger the change of the backlight brightness via dbus(?). Their very own gsd-backlight-helper is executed that way to actually change the backlight.

That ...-backlight-helper binary goes out to look for devices in /sys which belong to the standardized backlight class. It searches first for devices of type “firmware”, then "platform" and then "raw". This is the recommended way according to backlight class spec.

On desktop systems the monitors can often handle DDC/CI control, which is an entirely different handling and is not setup on Ubuntu. There are no kernel drivers which map this kind of control to a device in the backlight class. At least there is an abandoned tool ddccontrol which interfaces via DDC/CI. It can do this with two access types. One is via PCI registers or memory of the VGA card or something. The other and better paved route is via I2C bus interfaces. For that you have to load the i2c-dev module, which drives the /dev/i2c-? devices. Some of these devices reflect the real existing I2C buses in VGA, DVI and HDMI connections. DisplayPort emulates I2C, so it works as well. The good news is the kernel support is pretty complete here, because DDC (without CI) is also used to read the monitor identification and specs (EDID).

If you have root access it should be feasible to replace the gsd-backlight-helper (or usd-backlight-helper) with a script driving ddccontrol.

Without root access on the machine it is probably easier to (re)configure the keyboard to report some other keysym where nothing is listening on (there are tons of keysyms for multimedia keys, just grab some). Then tell your window manager or use xbindkeys to launch ddccontrol directly and/or launch a script which also generates some OSD notifications if desired.

ddccontrol has some disadvantages: it’s not maintained as it seems and it takes so long to start up (on my system) for no apparent reason. I was thinking about hacking a script together which does DDC/CI itself. The biggest challenge here is to actually find out what to talk over the bus. I guess the source code is a good way to find out.


Web Based Management For LXC Containers?

OpenStack can manage virtual machine instances, and LXC deployments on bare metal.

It might be overkill for your scenario though, it requires a database server, message qeueue server, and many components to be configured (nova, swift, keystone, horizon, etc.).

If you do decide to try OpenStack, I suggest you get started with the devstack scripts:

http://devstack.org/


Brighness controls & touchpad multi touch not working on Asus X553MA Laptop, Xubuntu 14.04

It seems to be a bug that is being worked on, this link explains:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1391545


See your comment, I believe it is an answer, so I will post the answer part as such.
Disable the contoller on your board and go with a Rocket Fish (off brand) 02:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03)


TL;DR: If you want to stay with php5, you will need to stay at Ubuntu 14.04 LTS

Using PHP 7.0 on Ubuntu 16.04 LTS

Ubuntu 16.04 has switched to PHP 7.0 with a new infrastructure for PHP package.  So, no, you can't install php5 on Ubuntu 16.04, but you can install PHP 7.0 packages with:

apt-get install libapache2-mod-php

That will install a virtual package that depends on the latest PHP version and pull libapache2-mod-php7.0 as a dependency.

If you are looking for extensions, always use a version-less variant as well (e.g. php-apcu instead of php7.0-apcu) as the PECL extensions are packaged without the version to allow smooth upgrades.

Using PHP PPA to coinstall PHP 5.6 with PHP 7.0

There's an option to co-install PHP 5.6 packages using ppa:ondrej/php.

For more information, please see that answer: https://askubuntu.com/a/762161/309221

Extracted from link above:

  Assuming libapache2-mod-php is a suitable way to enable PHP in Apache for you, you can proceed in this way:

sudo add-apt-repository ppa:ondrej/php

sudo apt-get update

sudo apt-get install php7.0 php5.6 php5.6-mysql php-gettext php5.6-mbstring php-xdebug libapache2-mod-php5.6 libapache2-mod-php7.0

  Switch PHP version ( Apache ):

  from php5.6 to php7.0:
  sudo a2dismod php5.6 ; sudo a2enmod php7.0 ; sudo service apache2 restart
  from php7.0 to php5.6:
  sudo a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apache2 restart


How to get steam icons in the Ubuntu dash? Specifically numix

If you have activated the PPA and installed the package numix-icon-theme-circle via

sudo apt-add-repository ppa:numix/ppa
sudo apt-get update
sudo apt-get install numix-icon-theme-circle

then the icon theme is already installed in your system. Enable the icon theme if not already done so.

You can find the icons in the folder

/usr/share/icons/Numix-Circle

You could check the installed files/icons with the command

dpkg -L numix-icon-theme-circle

Search a concrete icon with, E.G.

find /usr/share/icons/Numix-Circle -iname '*minecraft*'

or

dpkg -L numix-icon-theme-circle | grep -i minecraft

To use an icon, you need to edit the corresponding desktop file for the game / program. Because the files are located on your desktop, open a terminal via Ctrl-Alt-T and edit the file with your preferred editor, EG

gedit ~/Desktop/minecraft.desktop

or

nano ~/Desktop/minecraft.desktop

Find the line that starts with

Icon=some_icon

and replace it with, EG

Icon=minecraft

without any extension and/or path.

That's all.


How can I remove segment from a video using avconv?

To remove a single segment of a webm file you can use the standard method of seeking to a particular section of your file and then specifying a time duration to extract.

For example the following will take a section from 1 minute into a file and copy 60 seconds following this into another file:

avconv -ss 00:01:00 -i video.webm -t 60 -c copy cut.webm

To extract multiple segments of a webm file you can use avconv's basic stream segmenter. For example the following will split a webm video into 60 second segments and generate a playlist file as well:

avconv -i test.webm -c copy \
       -f segment -segment_time 60 -segment_list list.pls \
       output%03d.webm

A few choices to make with the segmenter but the above examples covers the basics...


How do I select DWM or fluxbox to start on login?

You shouldn't have to mess with gconftool if there haven't been customizations to your system.   You should be able to use
sudo apt-get install dwm  or sudo apt-get install fluxbox

A that point, you should have a new entry appear in  xsession .
It should look something like this:

$ ls -l /usr/share/xsessions/
total 36
-rw-r--r-- 1 root root 229 2008-06-12 03:35 blackbox.desktop
-rw-r--r-- 1 root root 149 2007-04-29 23:18 matchbox.desktop
-rw-r--r-- 1 root root 117 2010-09-13 08:48 xsession.desktop
-rw-r--r-- 1 root root 170 2010-09-13 08:48 xterm.desktop
[...]

Here's what my fluxbox entry looks like:

/usr/share/xsessions$ cat fluxbox.desktop
[Desktop Entry]
Name=Fluxbox
Comment=Highly configurable and low resource X11 Window manager
Exec=/usr/bin/startfluxbox
Terminal=false
TryExec=/usr/bin/startfluxbox
Type=Application

[X-Window Manager]
SessionManaged=true

If this doesn't work, check to see if you do have an xsession entry, or an .xsession file, and post those.


I had this issue on many variants of linux. Currently I am on Elementary OS Loki. I had automated the fix of this problem by creating following shell script at /etc/X11/Xsession.d/56touchpadfix:

export `xinput list | grep -i touchpad | awk '{ print $6 }'`
xinput --set-prop "$id" "Synaptics Noise Cancellation" 20 20
xinput --set-prop "$id" "Synaptics Finger" 35 45 250
xinput --set-prop "$id" "Synaptics Scrolling Distance" 180 180
true

You need to tune values for your hardware. Mine work for Sony SVS series laptop.


Ubuntu Server Edition is the same Ubuntu with different packages. I've installed Servers and installed the ubuntu-desktop package if I felt the need for a GUI on the system. I'm sure doing the reverse would work as well.

If you want a GUI but do not want the additional bloat that comes with Desktop edition, go ahead with it. Uninstalling Open Office, GIMP, Firefox etc should not cause any problems at all.


i5 7300u struggles with 4k youtube and constantly spikes to 100% at 4k on Ubuntu 18.04

Skylake drivers aren't necessarily included for your iGPU. See: Updated kernel to 4.8 now missing firmware warnings

After these new drivers are loaded you can turn on more Intel iGPU features via grub command line:

GRUB_CMDLINE_LINUX_DEFAULT="noplymouth fastboot acpiphp.disable=1 pcie_aspm=force scsi_mod.use_blk_mq=1 vt.handoff=7 i915.enable_guc_loading=1 i915.enable_guc_submission=1 i915.edp_vswing=2 nopti nospectre_v2 nospec"

Notice the i915. enhancements in my grub command line that take advantage of new drivers downloaded in above link.


Finally I found the solution,

I have manually edited the FSTAB file (etc/fstab). FSTAB contains all the details regarding the mount-points including auto-mount drivers in the boot-up.
so delete the line corresponding to the missing disk

here is my FSTAB file

    # /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda5 during installation
UUID=09642702-1d8e-41b8-897f-98079b8609e4 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda7 during installation
UUID=7554c61b-b8c9-45af-b5df-199670167a04 /home           ext4    defaults        0       2
# swap was on /dev/sda6 during installation
UUID=a54e0244-c77d-4672-9df9-2840924e0c94 none            swap    sw              0       0
/dev/disk/by-uuid/50FEFBC9FEFBA4FE /mnt/50FEFBC9FEFBA4FE auto nosuid,nodev,nofail,x-gvfs-show,x-udisks-auth,x-gvfs-name=Windows%2010 0 0
/dev/disk/by-uuid/3C7404F67404B4A5 /mnt/3C7404F67404B4A5 auto nosuid,nodev,nofail,x-gvfs-show,x-udisks-auth,x-gvfs-name=Data 0 0
/dev/disk/by-uuid/01D1953299EF8656 /mnt/01D1953299EF8656 auto nosuid,nodev,nofail,x-gvfs-show,x-udisks-auth,x-gvfs-name=Windows 0 0

in my case i have deleted

  /dev/disk/by-uuid/50FEFBC9FEFBA4FE /mnt/50FEFBC9FEFBA4FE auto
  nosuid,nodev,nofail,x-gvfs-show,x-udisks-auth,x-gvfs-name=Windows%2010
  0 0

hope this will help to someone

Cheers !


How can I disable arbitrary default multitouch gestures in Unity?

An update to domster answer for Ubuntu 12.10.

Unity source code has obviously changed, so here is how to achieve the same in Unity 6.8.0. The steps to download Unity source code are the same as before (I will copy & paste domster's snippet):

sudo apt-get build-dep unity
cd /tmp  #It can be done somewhere else, feel free to change the base location.
mkdir unity
cd unity
apt-get source unity

At this point, the file to be edited is only /tmp/unity/unity-6.8.0/plugins/unityshell/src/unityshell.cpp.

Find the method UnityScreen::InitGesturesSupport() (line 3368 for Unity 6.8.0).

Then, comment all the lines starting with gesture_sub_launcher to make it look like:

void UnityScreen::InitGesturesSupport()
{
  std::unique_ptr<nux::GestureBroker> gesture_broker(new UnityGestureBroker);
  wt->GetWindowCompositor().SetGestureBroker(std::move(gesture_broker));
  /*
  gestures_sub_launcher_.reset(new nux::GesturesSubscription);
  gestures_sub_launcher_->SetGestureClasses(nux::DRAG_GESTURE);
  gestures_sub_launcher_->SetNumTouches(4);
  gestures_sub_launcher_->SetWindowId(GDK_ROOT_WINDOW());
  gestures_sub_launcher_->Activate();

  gestures_sub_dash_.reset(new nux::GesturesSubscription);
  gestures_sub_dash_->SetGestureClasses(nux::TAP_GESTURE);
  gestures_sub_dash_->SetNumTouches(4);
  gestures_sub_dash_->SetWindowId(GDK_ROOT_WINDOW());
  gestures_sub_dash_->Activate();

  gestures_sub_windows_.reset(new nux::GesturesSubscription);
  gestures_sub_windows_->SetGestureClasses(nux::TOUCH_GESTURE
                                         | nux::DRAG_GESTURE
                                         | nux::PINCH_GESTURE);
  gestures_sub_windows_->SetNumTouches(3);
  gestures_sub_windows_->SetWindowId(GDK_ROOT_WINDOW());
  gestures_sub_windows_->Activate();
  */
}

Re-build Unity following domster's instructions again:

cd /tmp/unity/unity-6.8.0
dpkg-buildpackage -us -uc -nc
cd ..
sudo dpkg -i *deb

Et voila again! Logout and log back in.


Can you please tell us which laptop you are using?

Please try to test the kernel parameter acpi_osi='!Windows 2012' first without acpi_background and then with. If that doesn't work either, you can test Windows 2009. Whether a version will work depends on whether your BIOS can do something with this information.

Edit:

To edit /etc/default/grub, you must start at first the shell. It is important that you edit the file with any editor such as nano with sudo. Without root privileges you cannot edit this file.

Before making any changes, we create a backup:

sudo cp /etc/default/grub /etc/default/grub.bak

Now open the original file:

sudo nano /etc/default/grub

and change the line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi='!Windows 2012'".

Make sure that you do not forget the characters ' ', the space between each parameter and the enclosing characters " ". Save (in the case of nano) the file with CTRL+O and exit with CTRL+X.

Now the changes have to be applied:

sudo update-grub

and finally you can reboot your system with:

sudo reboot

EDIT 2:
Here is a similar problem. Maybe you will find some recommendations there:
Ubuntu 14.04 brightness problem (Lenovo Z500)


Making the sound card's power_save parameter permanent

I had the same issue.
Make a file in the /etc/modprobe.d directory, named:
audio_disable_powersave.conf
Put this line in it:
options snd_hda_intel power_save=0
save/exit and reboot.
A workaround, but it'll do until this is addressed.


You can add an new user (with the common options, and /home/[user] as home directory) with:

useradd -m -g users -s /bin/bash [user]

and then to set a password:

passwd [user]

EDIT: You can also add additional information about the user with:

chfn [user]


VMWare Player installing on ubuntu 14.04 missing headers

After many install and uninstall, i have decided to install virtualbox and I have experienced similar issue.

Finally - with all sort of combinations found on the web I followed following steps:

added virtualbox from original site

sudo apt-get remove dkms build-essential linux-headers-*

sudo apt-get install dkms build-essential linux-headers-$(uname -r)

sudo apt-get remove virtualbox-4.3 --purge

sudo apt-get install virtualbox-4.3

this worked, except that the extension pack was missing, so I did this:
wget http://download.virtualbox.org/virtualbox/4.3.10/Oracle_VM_VirtualBox_Extension_Pack-4.3.10-93012.vbox-extpack

sudo adduser admin vboxusers

rebooted  the system

then clicked on the extpack which was in home folder

all worked fine.

For being sure, I have rebooted the system again

still all fine

and installed vmare as well without any issues.

Hope this will help to someone.

The key was to remove and re-install the headers.


init.d / rc2.d script gets executed twice sometimes

Your script isn't checking inputs, like the action passed in. Look at the documentation in /etc/init.d/README, /etc/init.d/skeleton, and some of the other scripts like /etc/init.d/kmod to evaluate what action is being passed to the script on execution (in $1) and take the appropriate response to the action.


Option 1:

Just put #!/usr/bin/env python3 on top of each script file.

  Due to the size of the project, i'd prefer not to write something like 'use python3' inside the scripts.

It's just one line, it can't increase the size of the project much. Writing this is a standard UNIX and Python convention.

Option 2:

Just call the script with python3 instead of python.


This worked for me in 13.10. However, I was having problems with the black screen after a login session. The first answer helped me out.

Ubuntu 13.10 - Black screen after logging in after installing nVidia drivers


how to install bluestacks on ubuntu 18.04

BlueStacks currently does not support Linux and will not work under Wine as it's an emulator.


Cannot get past password section of login. Can do guest session though

Which Desktop are you using? What's your graphic hardware specs?

If you are using Unity Desktop, check this link  Unity doesn't load, no launcher no dash appears

Where, as @Oli says (Answer taken directly)

1. Try to open a terminal with Ctrl+Alt+T.
This may not work but you can try right clicking on the desktop and selecting "Open terminal here." Otherwise, you may need to change to a "hard" terminal by pressing Ctrl+Alt+F1 and log in.

2. Install compizconfig-settings-manager by running

    sudo apt-get install compizconfig-settings-manager

3. Then run it with this:

    DISPLAY=:0 ccsm &

 The first part tells the terminal which display you want it to load on (otherwise it won't have a clue).

4. If you switched to a TTY in step 1, switch back to the graphical server by pressing Ctrl +Alt+F7 (or Ctrl+Alt+F8 sometimes).
There there should be a CompizConfig Settings Manager waiting for you.

5. Find the Unity plugin. Enable it. You will be asked "Ubuntu Unity Plugin requires the plugin OpenGL. Enable Ubuntu Unity Plugin / Enable OpenGL"
6. Everything should spring into life but if it doesn't, you might have to restart. You can do that by going back to the terminal and running sudo reboot.


DNS resolution fails after 12.10 upgrade

Change 127.0.0.1 to 127.0.1.1 in /etc/resolv.conf


kubuntu kwin shortcuts do not work with the numpad

Thanks for the lead, there was a suggestion of a workaround in it. Here it is in case anyone else runs into this:

Create ~/.Xmodmap with the following text:

keycode 87 = XF86Launch1
keycode 88 = XF86Launch2
keycode 89 = XF86Launch3
keycode 83 = XF86Launch4
keycode 84 = XF86Launch5
keycode 85 = XF86Launch6
keycode 79 = XF86Launch7
keycode 80 = XF86Launch8
keycode 81 = XF86Launch9
keycode 90 = XF86LaunchA
keycode 91 = XF86LaunchB

I also added

keycode 86 = XF86LaunchC
keycode 82 = XF86LaunchD

which is for keypad +/-.

Then run xmodmap ~/.Xmodmap. You should be able to bind the to the keys now. Also, if other keys aren't working try the utility xev, which can tell you what the keycode is for a specific key and add it in a similar way.


Upgrading from 17.04 to 17.10, do-release-upgrade stuck at "Reading Cache"

I had the same issue.

I also had lots of

NMI watchdog: BUG: soft lockup - CPU#0 stuck for 22s!

errors in the system logs.

This answer on the Canonical bug tracker: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1530405/comments/75 helped me solve the issue

I switched from nouveau to nvidia drivers, all CPU stuck issues disapeared and the do-release-upgrade worked.


I don't know how to program QML, but here is something I found in the documentation

volumeCtrl.volume = Math.min(1, Math.max(0, mouse.x / (volumeBar.width - 1)));

Source : http://qt-project.org/doc/qt-5.0/qtmultimedia/multimedia-audioengine-qml-audioengine-qml.html


Installed Ubuntu Server, then Kubuntu package: Some problems

Without more detail (as "Olive Twist" asked) it is hard to tell what is wrong.
Are you seeing kernel Oops messages?

My own experience has shown that X-Windows driver problems can cause a Linux system to freeze or at least cause the console (mouse and keyboard) to freeze. (But these are hard errors that stop the system not what you seem to be describing)


Bluetooth is not working in my Ubuntu 14.04 LTS

I am facing the same problem on my dell vostro 3446 , ubuntu 14.04.01 LTS , and many other people too are facing the same problem.I think its a bug and it has been posted here.


"The system is running in low-graphics mode" after installing proprietary Nvidia driver

I had the same problem - you most likely have a setting in the BIOS that says Intel-graphics-acceleration = Enabled.

Apparently on some motherboards this is set by default, and you have to set it to Disabled to not conflict, and get past the low-graphics mode error. Set Intel-graphics-acceleration to disabled if you use the Nvidia for output, and it should work properly :)


Running lsusb should list, among others, the WWAN adapter in your system.

The two Gobi devices are a bit tricky because they require proprietary firmware to be loaded on startup. You'd need to:

Install the gobi-loader package (later Ubuntu versions have in in the repos, not sure about 12.04)
Download the Windows driver package and extract the firmware files from it. You need two files named amss.mbn and apps.mbn, the Gobi 2000 needs a third file named UQCN.mbn. Place these files in /lib/firmware/gobi on your system.

Note that different versions of these firmware files exist, and the above approach is not guaranteed to work for everyone. (I just managed to get my Gobi 1000 recognized by Linux, but only after disabling and re-enabling it via the hardware switch, and I still can't connect with it.)

I have no experience with the Ericsson F3507g, but I have successfully used another Ericsson WWAN adapter (the F5521gw) with Ubuntu out of the box.


This chipset still has problems for recent kernel updates for both 13.04 and 13.10 that have been reported and kernel maintainers are aware of them.

The main discussion is here Bug #1244408 is here, from where I found a temporary solution, from somebody that updated a patch.

Realtek has provided the driver for older versions of Linux kernel, lower then 3.9 included, as 3.10 should include it and should work out of the box.

You can use this patch 8192cu fixes that will make it stable, or wait for this fix to be included as it was accepted and committed, so it will be on one of the next kernel update I guess.

If you connect to only a few personal access points, you can configure them only on B/G as the problem is only for N. I have 2 access points in my house and I have a stable connection on the one with B/G only.


It is better to install OSes into SSD if your SSD disk size is sufficient, because of both Windows and Ubuntu will perform better.

Use HDD as a user data storage.

But that's probably OK to use them on different drives. Only at the end of installation specify grub installation target disk you're using to install Ubuntu on.

It's not mandatory, but better in case if you'll replace your other drive in the future.

To avoid issues with booting, prepare yourself by reading guides and instructions. Make backups. Use manual disk configuration in case of Ubuntu installation.


Spammed logging in syslog when USB ethernet adapter attached

So it turns out that in Ubunutu 18.04 the built in driver support for the Realtek 8156 chip is not complete. The solution to my problem ended up being manually compiling and installing the device drivers from RealTek. The Linux driver can be downloaded here. The driver does need to get built, so you need to install the build-essential package via apt. The driver download's README has information on how to instal the kernel module once it's built. Once I installed this driver, all the spammed messages in syslog went away (yay!).


I appears that Mozilla has finally made unbranded builds available at the following location:

https://wiki.mozilla.org/Add-ons/Extension_Signing#Unbranded_Builds


Ubuntu booted from live USB freezing on boot message

Hi there and welcome to the linux world,

When you power-up your notebook using the livecd/liveusb, you will be presented with a list of options, like "Try ubuntu without installing", etc.

First select "Check disk for defects" to ensure that the cd/usb stick is not corrupt. If your media is ok but you still can't complete booting-up, then on the same selection screen press "F6". This will present you with some options to pass to the kernel while booting.

If your problem is graphics-card related then choosing "nomodeset" will probably enable you to complete booting-up. Also try the "acpi=off" and "noapic" parameters.

Hope this solves your problem.


Reinstalling correct grub package to Acer device 18.04

If you installed the 64 bit ISO:

sudo apt-get install --reinstall grub-efi-amd64

If you installed the 32 bit ISO:

sudo apt-get install --reinstall grub-efi

Theoretically 32 bit apps should run fine on 64 bit architecture, but will only run at 32 bit speed.

You may also want to look into running Boot-Repair.


Clock shows wrong time after switching from Ubuntu to Windows 10

Multiple Boot Systems Time Conflicts

  Operating systems store and retrieve the time in the hardware clock
  located on your motherboard so that it can keep track of the time even
  when the system does not have power. Most operating systems
  (Linux/Unix/Mac) store the time on the hardware clock as UTC by
  default, though some systems (notably Microsoft Windows) store the
  time on the hardware clock as the 'local' time. This causes problems
  in a dual boot system if both systems view the hardware clock
  differently.

  The advantage of having the hardware clock as UTC is that you don't
  need to change the hardware clock when moving between timezones or
  when Daylight Savings Time (DST) begins or ends as UTC does not have
  DST or timezone offsets.

  Changing Linux to use local time is easier and more reliable than
  changing Windows to use UTC, so dual-boot Linux/Windows systems tend
  to use local time.

  Since Intrepid (8.10), UTC=yes is default.

  Solution 1: Make Windows use UTC

  Note: This method was not initially supported on Windows Vista and
  Server 2008, but came back with Vista SP2, Windows 7, Server 2008 R2
  and Windows 8/8.1.

  To make MS Windows calculate the time from the hardware clock as UTC.

  Create a file named WindowsTimeFixUTC.reg with the following contents
  and then double click on it to merge the contents with the registry:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
 "RealTimeIsUniversal"=dword:00000001

  Note: Windows Time service will still write local time to the RTC
  regardless of the registry setting above on shutdown, so it is handy
  to disable Windows Time service with this command (if time sync is
  still required while in Windows use any third-party time sync
  solution):

sc config w32time start= disabled

  If running the above command in Powershell, you'll have to specify sc.exe:

sc.exe config w32time start= disabled

  Reversing the change

  You can create a file with the following contents and then
  double-click it to merge in the original changes, as above:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
 "RealTimeIsUniversal"=-

  If Windows Time service was disabled, enable it again with the
  command:

sc config w32time start= demand

  Solution 2: Make Linux use 'Local' time

  To tell your Ubuntu system that the hardware clock is set to 'local'
  time:

  Pre-Ubuntu 15.04 systems (e.g. Ubuntu 14.04 LTS):

  edit /etc/default/rcS
  add or change the following section

# Set UTC=yes if your hardware clock is set to UTC (GMT)
UTC=no

  Ubuntu 15.04 systems and above (e.g. Ubuntu 16.04 LTS):

  open a terminal and execute the following command

timedatectl set-local-rtc 1

source: Ubuntu Help


Ubuntu 14.04 doesn't wake up after screen is locked and blank

I had similar issues with Ubuntu 14.04 and 16.04 more recently.
After struggling for a while, I found that disabling USB auto suspend, solved (worked around) the problem.
This feature is a part of usbcore which is compiled in the kernel in Ubuntu.
From https://unix.stackexchange.com/a/175035,

Edit the /etc/default/grub file and change the GRUB_CMDLINE_LINUX_DEFAULT line to add the usbcore.autosuspend=-1 option:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1"

Note that quit splash were already present options. So keep other options you have too.
After save the file, update grub:
sudo update-grub

And reboot.
Now check autosuspend value:
cat /sys/module/usbcore/parameters/autosuspend

And it should display -1.


System volume setting muted when headphones unplugged, but normal with headphones in?

Your pulseaudio server may try to restore settings of a device (in your case your headphones), which is generally a good idea.

In a default setup this is done by module-device-restore. You can test if this is so in your case by unloading this module. You will first have to find out the index number of the module-device-restore. Look for its index in the long list of modules loaded that will be displayed with

pacmd list-modules

We then can temporarily unload a module by replacing <index> with the one found above in the following command:

pacmd unload-module <index>

We then can see if the issue we are having is resolved. No harm done so far, the module will be loaded again with every restart of pulseaudio.

To avoid loading this module in case it undesiredly restores settings we may comment out the following line in /etc/pulse/default.pa:

# load-module module-device-restore

Alternatively we may also load this module with option restore_muted=false to avoid restoring the muted state or with option restore_volume=false to avoid restoring a volume. Note that then this will affect all audio devices in your system.


Can't install opencv 2.4.9 on Ubuntu 18.04, get CXXCompiler error

This appears to be a known issue related to a change in the format of g++ -dumpversion: see for example OpenCV SuperBuild fails with gcc 7+. Based on a quick test, it seems to be possible to workaround by editing the OpenCVDetectCXXCompiler.cmake file, changing -dumpversion to -dumpfullversion. So for example if you are running cmake from an out-of-tree build subdirectory:

sed -i.bak 's/dumpversion/dumpfullversion/' ../cmake/OpenCVDetectCXXCompiler.cmake

Alternatively, install an older g++ version and tell cmake to use it via the -DCMAKE_CXX_COMPILER flag as suggested here Configure error “g++ version cannot be determined”


Look at this example: How do I reload network configuration with cloud-init?. Also, you can try to revert back to the original file format which is stated below.

network:
    ethernets:
        eno1: <-- or whatever your connection states it is
            dhcp4: yes
version2:

This should do it. This is the default config. for the .yaml src at 50-cloud-init.yaml at /etc/netplan/.

Seth

P.S. Then, use sudo netplan apply to finish off your "change." If the sudo netplan apply command does not work, try to look around on this forum. I have found some info. that is dedicated to netplan or ubuntu server specifically.


Does apt-cacher change packages access time?

Are you sure that the atime on your files is properly kept? Many filesystems use mounted nowadays with noatime or relatime options to reduce the amount to writes to the disk.

Those options influence how and how often the atime stat field is written.


How do I find the package name for an application that I want to uninstall?

Open the Software Center page for the application.
Scroll down to "Version".

The package name is the part before the first space in the version.
In your case, it is orbital-eunuchs-sniper.
You can then do whatever you want with it, e.g.:

sudo apt-get remove orbital-eunuchs-sniper

Alternatively, if you know the path to a file which executes the application, you can also do

dpkg -S /path/to/file

This will print all packages which contain that file.

  Example:

$ dpkg -S apt-get
bash-completion: /usr/share/bash-completion/completions/slapt-get
apt: /usr/bin/apt-get
apt: /usr/share/man/es/man8/apt-get.8.gz
bash-completion: /usr/share/bash-completion/completions/apt-get
apt: /usr/share/man/de/man8/apt-get.8.gz
apt: /usr/share/man/pt/man8/apt-get.8.gz
apt: /usr/share/man/pl/man8/apt-get.8.gz
apt: /usr/share/man/fr/man8/apt-get.8.gz
apt: /usr/share/man/man8/apt-get.8.gz
apt: /usr/share/man/ja/man8/apt-get.8.gz


Install gcc-arm-linux-gnueabi and binutils-arm-linux-gnueabi packages, and then just use arm-linux-gnueabi-gcc instead of gcc for compilation.

You need to be careful on what flavour of linux and  binutils you have on your target system.  The newest stuff is hardfloat, in this case you would do:

sudo apt-get install gcc-arm-linux-gnueabihf

This brings in the complete cross-compile environment, including binutils.

For using this GCC in the build process write:

CC=arm-linux-gnueabihf-gcc make


GNU GRUB, Minimal BASH-like line editing screen displays before the usual GRUB screen when dual-booting Ubuntu 14 and Windows 8.1

You've got two GRUB instances; one of the (boots first) is broken, the other one is OK.

Two possible scenarios.

Each of HDDs has GRUB installed. System firmware trying to boot from one HDD (order usually defined by firmware settings), but it's GRUB installation is broken (you got just GRUB shell). After you exiting (typing exit) this GRUB instance, firmware gets control back and try to boot from another HDD, which has working GRUB installation (boot menu shown).
(Less probable) Both GRUB instances located at one HDD: one is started from "EFI System partition", the other one - from "BIOS boot partition".

Common solution is to set firmware to start boot from the other GRUB (or HDD depending on your firmware settings). (In case you need more detailed steps to change boot order, please describe how your system firmware boot order settings look like.)

As a supplement, I'd recommend to cleanup removing broken GRUB instance and make sure that working GRUB is located at HDD with Ubuntu. (In case you need more detailed steps, please post each HDD partition table.)


Why does bluetooth connect but not transmit any audio?

This bug is documented at this pulseaudio launchpad bug report.

If you believe that this is affecting you, please login to launchpad and vote on the bug.  This helps developers prioritize the things on which they are working.

In the meantime

You can set the device up as a 'Telephony' device, which will give you horrible sound quality, but gives you the ability to use the microphone's input.


Automatic login on Headless, console-only computer

I guess you haven't created a basic user yet :P

Create a user for yourself... It'll ask you to enter a password.

sudo adduser <your_user_name>

If you cannot gain root privileges through sudo, edit /etc/sudoers

sudo vi /etc/sudoers

And uncomment the sudo group line to look like this:

  sudo   ALL=(ALL:ALL) ALL

Then add yourself to the sudo group

sudo useradd -G sudo <your_user_name>

If all goes correctly, Ubuntu should realise that there's more than one user and prompt for a login... I have a Pandaboard with Natty Headless on it, and as far as I remember, I've only needed to add a user


Software that is licensed with GPL, such as "GNU/Linux Ubuntu", is granted the following four freedoms:

the freedom to use the software for any purpose,
the freedom to change the software to suit your needs,
the freedom to share the software with your friends and neighbors, and
the freedom to share the changes you make.

Which means Dell cannot charge for a "license fee". What they may is charge you to cover their expenses and "workload" to perform a proper installation, but they would have to inform you about the price before doing so.

Please deliver evidence in written, such as invoice or receipt, to verify if your allegation is compatible to Dells official practice.

Please also double-check the following facts:

Does the distribution contain a copy of the License?
Does it clearly state which software is covered by the License? Does it say anything misleading, perhaps giving the impression that something is covered by the License when in fact it is not?
Is source code included in the distribution?
Is a written offer for source code included with a distribution of just binaries?
Is the available source code complete, or is it designed for linking in other non-free modules?

After that please answer the following questions on how the license was violated:

Is the copyright notice of the copyright holder included?
Is the source code completely missing?
Is there a written offer for source that's incomplete in some way? This could happen if it provides a contact address or network URL that's somehow incorrect.
Is there a copy of the license included in the distribution?
Is some of the source available, but not all? If so, what parts are missing?

Then you can address your claim on a license violations of the GPL to GNU.org, the Free Software Foundation or GPL Violations directly, including the answers of the fact-list including the copy of the evidence.


Is it safe to format msftres, msftdata and hidden partitions?

The "flags" shown in parted or GParted can refer to different things. Some of the common ones on GPT disks include:

msftres -- This flag means "Microsoft reserved." It's used as "scratch space" by certain Microsoft tools, so it should not be deleted or re-purposed unless you're deleting Windows. See the Wikipedia entry on this partition type for more information.
msftdata -- This flag identifies a Microsoft Basic Data partition. It normally holds a Microsoft filesystem, like FAT or NTFS, so such partitions will include your C: partition and perhaps recovery or data partitions. You should not delete or change them unless you understand precisely what type of data is on the partition and want to delete it. Note that Linux used to use the same type code for its own partitions, so you might see this flag on a Linux partition, too. Two years ago a new Linux-specific type code was created, and Linux partitions with that type code will show up as having no flag set. Versions of libparted that recognize the new Linux-specific type code are only just becoming available. The "msftdata flag" appeared with that same new version of libparted.
boot -- On a GPT disk, this flag identifies an EFI System Partition (ESP). You should definitely not mess with this partition unless you know what you're doing. Likewise, you should not set the "boot flag" on any other partition -- not even on a Linux /boot partition. Note that the "boot flag" has an entirely different meaning on MBR disks. On such disks, it's common to set the "boot flag" on a Linux /boot or / partition, although it's not usually required to do so.
bios_grub -- This flag identifies a BIOS Boot Partition, which BIOS-mode GRUB uses to store boot code. You don't normally need such a partition on an EFI-booting computer. If you've switched from a BIOS-mode to an EFI-mode installation, you can safely delete this partition, but because a BIOS Boot Partition is normally quite small (~1MiB), you won't recover much space.
legacy_boot -- Unlike all the flags I've just described, this one does not correspond to a type code; instead, it identifies a GPT attribute. This attribute is used by the GPT-aware version of SYSLINUX to identify a bootable partition. That is, its purpose is similar to that of the "boot flag" on an MBR disk. To most tools, this flag is irrelevant; it can be set or deleted as you see fit.
hidden -- Like "legacy_boot," this flag is a GPT attribute, not a partition type code. It identifies partitions that the EFI should ignore. In my experience, though, most EFIs ignore this flag, so it's not really very useful. Some computers ship with this flag set on some partitions, though.

You can read about more about these, and other GPT type codes, in the Wikipedia entry on GPT. Note that the "flag" names assigned by parted and GParted are specific to libparted. Other tools, like GPT fdisk or the Windows partitioning tools, have other ways to refer to GPT type codes. (Few programs use the codes directly, since they're long and awkward hexadecimal numbers.)

Note also that libparted uses the same "flag" concept to identify two entirely different data structures: partition type codes and partition attributes. Type codes are mutually exclusive; a partition can be an ESP or a Microsoft Basic Data partition, but not both. Thus, if you remove the "boot flag" on an ESP, it will likely pop up with an "msftdata flag," since ESPs use FAT, and FAT partitions get the "msftdata flag" by default. (In older versions of libparted, the "msftdata flag" doesn't exist, so the partition would have no flag.) A partition can have multiple attributes, though, so it could have both the "hidden flag" and the "legacy_boot" flag set. It could also have a type-code flag set, like those two plus "bios_grub". This dual use of the "flag" concept is confusing. GPT fdisk (gdisk and related programs) separates these concepts, using two-byte hexadecimal codes (like EF00 or 8300) for type codes and reporting attributes as such.


Nautilus "open in remote teminal" fails after login

Workaround with the usage of scripts http://dev.umpirsky.com/nautilus-open-in-remote-terminal/


This really depends on the scenario:

Running Ubuntu from a Live-DVD

If you downloaded the file in a Live-Ubuntu and saved it somewhere in your Ubuntu user directory it is gone as this was only saved in memory.

Running Ubuntu in a dual-boot environment

The file will still be there on the partition(s) used by Ubuntu, but inaccessible by Windows as Linux normally uses a different file System Windows can't read by default. Just reboot into Ubuntu, find the file and copy it to the windows partition.


The most common cause is that the user(s) do not have permission to use the serial-USB connection. Permission must be established for the user. There is much more on this common issue in Linux or Ubuntu wikis and support websites.

Start a terminal session and enter this command :

sudo gpasswd --add ${USER} dialout

After executing the command, check that it worked with:

groups ${USER}

The user name will be followed by a list that includes dialout. Dialout means permission for the TTY set that includes serial and USB connections.


The print spooler service allows you to load in memory print jobs for later printing, that is to say, put them in the print queue.

For complete information on how to disable it and other printer system administration, visit the Ubuntu Manuals here.


Connection timeout when accessing Github

The solution:

after a long thread with Github support, they said it was a server side configuration related to a tentative of avoid DDOS attack that has affected some users, like me. After some adjustments in the Github server everything back to normal and works very fine again!

Thanks very much for Github support team, they were very transparent and helpful.

Quote from the long email thread:

  Hi Felipe -

  We've been experiencing intermittent DDoS attacks over the last
  several weeks, and an unfortunate side-effect of some of the
  preventative measures we've put in place is strange side-effects like
  this. We believe the problem here was that some of our DDoS protection
  was mis-configured. We're working with out network provider to tune
  the DDoS protection to not drop other traffic like this with the
  highest priority. Sorry again for the repeated problems here!

  Jesse GitHub Ops


Battery stopped charging: How to turn off Battery Charging Indicator?

Please keep in mind that common laptop batteries can pose a fire hazard if damaged. Spontaneous degradation of battery capacity is a possible sign of such damage.

First, unplug the battery while the laptop is turned off and look for signs of obstruction of the contacts. Also visually inspect for signs of heat damage (any molten plastic).

Boot and enter BIOS while AC and battery is connected. While in BIOS, unplug AC and see what happens.

If the Laptop runs on battery for prolonged times in BIOS, unlike it did when running Ubuntu, you are dealing with a software issue worth investigating.
If not, get a new battery and properly dispose of the old one.


Daily updating home partition from a master to a slave computer

I do something similar, I backup my Virtual Machines to my server. This is the script:
#!/bin/sh
set -e
date >> /home/john/anacronjobs.txt
printf "VMsync Starting!\n" >> /home/john/anacronjobs.txt
rsync -avhP /home/john/VirtualBox_VMs/ john@192.168.0.66:/data/VirtualBox_VMs/ > /home/john/VMupdate.log 2>&1
printf "VMsync Done!\n\n" >> /home/john/anacronjobs.txt
exit

I'm sure others could do something more elegant but it works fine. The script appends to it's own
logfiles (anacronjobs.txt) and VMupdate.log. You can use tail on VMupdate.log to monitor progress.
I run this using Anacron because its a laptop and is not always on. If your machines are always on you can use cron or systemd timers. When you create the script make sure its executable and obviously amend the locations, user name and ip address to fit your situation.
I've not done this with a home folder between two machines. It will synchronize everything including hidden configuration files which might have unexpected consequences. You might want to copy just the documents folder (plus perhaps a few others) rather than the entire home directory


How to add logo or watermark overlay on movie with `mkvmerge` in Ubuntu terminal?

You can use ffmpeg to add an overlay.
This command will add logo.png to the center of the video:

ffmpeg -i input.mp4 -i logo.png -filter_complex \
"overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2" \
-codec:a copy output.mp4

For more information and credits goes to: How to add transparent watermark in center of a video with ffmpeg?


These instructions are for regular BIOS machines and are not for newer EFI machines.

Did you already run sudo update-grub after booting up Ubuntu? Running this command should update everything.

If not, you may need to reinstall grub to the MBR. Run the following command to do so:

sudo grub-install /dev/sda

Then, run sudo update-grub again for good measure.

Also, make sure grub is installing to the correct MBR on the correct disk. You can install grub to any MBR on any disk (even a USB drive) by altering the command above so keep that in mind.

Please post any errors.


How to add windows 8 boot entry to Grub2?

It seems like you need to use boot-repair to reconfigure Windows to the GRUB. With that being said, try to follow these instructions provided. In Ubuntu, open a terminal and type this in:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo sed 's/trusty/saucy/g' -i /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)

Once this is done, boot-repair will open up. Follow these remaining steps under Recommended Repair:

Recommended repair

launch Boot-Repair from either :
    the Dash (the Ubuntu logo at the top-left of the screen)

    or System->Administration->Boot-Repair menu (Ubuntu 10.04 only)
    or by typing 'boot-repair' in a terminal

Then click the "Recommended repair" button. When repair is finished, note the URL (paste.ubuntu.com/XXXXX) that appeared on a paper, then reboot and check if you recovered access to your OSs.
If the repair did not succeed, indicate the URL to people who help you by email or forum.


The typical way to work to use branching in shell scripts would be via functions declared before main block of code. However, I think the underlying issue here is the logical one, and not the goto.  Obviously label 1 is repeated, so this can live as function. But also, condition 2 could be turned into a function that also calls label 1 for the sake of readability:

#!/bin/bash

label1(){
    echo "label 1 function"
}

check_cond2(){
    if ! [ condition2 ]; then
        label1 arg1 arg2
    fi
}

if [ condition1  ]; then

    command
    ...
    command
    check_cond2
else
    label1
fi

othercommand2
othercommand3

What I've noticed is that in both conditions you have if false exec a block of code and if false exec a block of code, so one idea would be to start at checking whether those conditions both false. However, making something like if ! [ cond1 ] || ! [ cond2 ] would change branching logic. You can still see the pseudocode version of that by seeing this posts edit history.


You need to change line 33 from

Export PATH

to

export PATH


Update 9/15/2016 Multitouch works out of the box, and all the solutions listed below (mtrack, synclient, ginn, ...) will mess things up, so if you are updating from an older kernel which requires them, delete all the helper apps and try the out-of-box kernel behavior with the touchpad ui for your desktop manager.  It should do what you need, and if you want more gestures and stuff, add easystroke which works well.   It is sorted in the stock kernel input drivers now and works without a problem since at least kernel 4.1.32, although some of the early 4.0 kernels would not work.  The current LTS kernel, 4.4 works fine, as does 4.7.

update 9/2015...kernels above 3.14 or so have most of multitouch built in now, so try uninstalling mtrack if you have problems.  just the built in multitouch driver and easystroke is working fine for me since kernel 3.14, though the 4.0 and up seem to have a regression that breaks the apple trackpad.  3.18 kernel works great though.

There are numerous solutions, most of which are still a little half-baked. Many of the documented ones are out of date, so make sure you look at the date of whatever you google.

Ubuntu has built in rudimentary gestures (2 finger) support in the mouse/touchpad settings applet.
I found it randomly conked out and two finger scrolling would then be mysteriously greyed out, setting me off on a long chain of googling to maybe get it back.
Then I tried touchegg, which sort of worked sometimes.
It is the easiest to configure and there are good instructions but it is based on an older daemon solution to the problem.
The ubuntu multitouch howto (you'll have to google it as I can only include two links) was badly out of date but is slowly getting worked on. It sort of offers another set of patchy solutions, but is in the process of getting updated.

The solution I am currently using is mtrack (in the repos) combined with easystroke (have to compile from source).
Mtrack supports the kernel version of multitouch rather than an ad hoc solution like touchegg and ginn if I understand right, but easystroke is another daemon solution that seems to work well for now on top of mtrack.

Mtrack's approach seems to be the direction development is taking.

uninstall the other stuff (ginn, touchegg) if you use it and then install mtrack from the repos full name is xserver-xorg-input-mtrack.

It is a pain to configure and I have not gotten three fingers to swipe.  See the link at the end of the thread for people's various config files. I use an apple magic trackpad and it is pretty good for that, though it has one annoying glitch in that double-tap and drag for example to move a window is erratic. workaround is to either use an actual button click to move windows, or to hesitate a split second after the double tap and hold before moving the window.

I just found easystroke, and until mtrack gets a gui you might want to try that if you are adventurous enough to try compiling a program.

once compiled by running make -j2 and installed by sudo make install, start it with easystroke -g to get the GUI and go to the wiki page for instructions.

One other issue you may need to sort out is the drivers.

If you use mtrack, you might need to renumber the files so your mtrack driver gets read last or the synaptics settings will grab everything.

Those drivers are stored at /usr/share/X11/xorg.conf.d.

copy the mtrack driver to /etc/X11/xorg.conf.d, edit the settings in that folder (see the linked thread and the README for how) to get your three finger goodness if you can (or use easystroke), and rename the file to a higher number so 50-mtrack.conf becomes 60-mtrack.conf,  otherwise I found the synaptic driver will grab your touchpad half the time.

Putting the file in /etc means that it will not get overwritten on updates like the /usr files, and that it is read last and thus takes priority over the default drivers in /usr.

Hope this helps.  This is an area of fairly active development, so whatever I write will probably be obsolete within a year, hopefully for the better.


From the Ubuntu Help wiki:

  There are 4 steps to setting up a simple repository for yourself

  1.Install dpkg-dev
     2.Put the packages in a directory
     3.Create a script that will scan the packages and create a file apt-get update can read
     4. Add a line to your sources.list pointing at your repository

  Install dpkg-dev

  Type in a terminal

sudo apt-get install dpkg-dev

  The Directory

  Create a directory where you will keep your packages. For this
  example, we'll use /usr/local/mydebs.

sudo mkdir -p /usr/local/mydebs

  Now move your packages into the directory you've just created.

  Previously downloaded Packages are generally stored on your system in
  the /var/cache/apt/archives directory. If you have installed
  apt-cacher you will have additional packages stored in its /packages
  directory.

  The Script update-mydebs

  It's a simple three liner:

#! /bin/bash
 cd /usr/local/mydebs
 dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz

  Cut and paste the above into gedit, and save it as update-mydebs in
  ~/bin. (the tilde '~' means your home directory. If ~/bin does not
  exist, create it: Ubuntu will put that directory in your PATH. It's a
  good place to put personal scripts). Next, make the script executable:

chmod u+x ~/bin/update-mydebs

How the script works:

  dpkg-scanpackages looks at all the packages in mydebs, and the output is compressed and written to a file (Packages.gz) that apt-get
  update can read (see below for a reference that explains this in
  excruciating detail). /dev/null is an empty file; it is a substitute
  for an override file which holds some additional information about the
  packages, which in this case is not really needed. See deb-override(5)
  if you want to know about it.

  Sources.list

  add the line

deb file:/usr/local/mydebs ./

  to your /etc/apt/sources.list, and you're done.

  CD Option

  You can burn the directory containing the debs to a CD and use that as
  a repository as well (good for sharing between computers). To use the
  CD as a repository, simply run

sudo apt-cdrom add

  Using the Repository

  Whenever you put a new deb in the mydebs directory, run

sudo update-mydebs
sudo apt-get update

  Now your local packages can be manipulated with Synaptic, aptitude and
  the apt commands: apt-get, apt-cache, etc. When you attempt to apt-get
  install, any dependencies will be resolved for you, as long as they
  can be met.

  Badly made packages will probably fail, but you won't have endured
  dpkg hell.


Can I get an image containing both Ubuntu Desktop and Ubuntu Server?

Just an educated guess here since I'm not experienced with this sort of thing...but a possible solution could be to make your own ISO image which has the packages for both Ubuntu Desktop and Ubuntu Server included.

You could do this by using a program like RemasterSys to create an ISO from your hard drive after you installed all the packages you want your students to use, and then they can install Ubuntu using that. This way, only you need to download and install the packages once, and it also has the benefit that you can include or remove other packages as you see fit.

See How can I make a live CD/DVD from my harddisk installation? for more information on how to create such a disk image.


Lubuntu 14.04.1 youtube not working without html5

A simple solution may be to install ubuntu-restricted-extras.  This should install various plugins and codecs that you may need to get going, all in one easy swoop.

I suggest this because I've noticed an obtuse problem in your question, that you installed pepperflash to use with firefox.  pepperflash is for chromium only; firefox uses a different version of flash (flashplugin-installer).

There is back-story as to why chrome, chromium, and firefox each have different situations regarding flash, and different install procedures.  I suggest the u-r-e package if you want to not get into that.


You cannot use gsconnect with mate. You can however use the regular kde connect. Just add this ppa as described here:

sudo add-apt-repository ppa:webupd8team/indicator-kdeconnect
sudo apt-get update

then:

sudo apt install kdeconnect indicator-kdeconnect

Now start the indicator from the app menu and you should be good to go.


QEMU won't boot anything on GPU passthrough VM

Your lengthy qemu invocation is missing some line-continuation backslashes, so the complete command doesn't get run.

The \ (backslash) which appears at the end of some lines indicates that the command continues on the next line. When a line appears without the \ at the end, it indicates the end of the command, and the next line is treated as a separate command.

Thus it is that on lines 24 and 41, bash is trying to interpret -m and -drive as commands, respectively, because the previous lines are missing the \ to indicate the command continues.

I think you will find that your VM boots after you insert these backslashes.

P.S. Consider using libvirt with virt-manager (or GNOME Boxes) to create your virtual machines in the fuuture, as these are generally a lot easier to manage. In this case libvirt will manage the qemu configuration for you, depending on the options you set up for each machine in virt-manager.


Failed to boot : create volatile files and directories, enable support for additional executables binary formats and LSB: AppArmor initialization

Add acl option in fstab

Edit /etc/fstab as root.

For example, your fstab rows should looks like:

/dev/sdb6  /media/data     ext3    user,noauto,acl  0  0

Move journal.back to journal

Hit the following as root:

systemctl stop systemd-journald.service
cd /var/log
ls journal.bak
rm -rf journal
mv journal.bak journal
systemctl start systemd-journald.service


What does lsof|gawk '$4~/txt/{next};/REG.*\(deleted\)$/{printf ">/proc/%s/fd/%d\n", $2,$4}' command mean

This command will print files from lsof that need truncation.

(It actually does not remove or truncate any files).

lsof will return a list of open files (file descriptors) that is piped into the awk which processes it as follows.

gawk '$4~/txt/{next};/REG.*\(deleted\)$/{printf ">/proc/%s/fd/%d\n", $2,$4}'

The above expression contains two regular expressions separated by a semi colon ;

lets consider the first part gawk '$4~/txt/{next};

Here, if the 4th field contains txt then  the next line of text will be read, which the script will start processing from the start again.

The next statement forces awk to immediately stop processing the current record and go on to the next record. This means that no further rules are executed for the current record, and the rest of the current rule's action isn't executed.

Now lets consider the second part of the script  /REG.*\(deleted\)$/{printf ">/proc/%s/fd/%d\n", $2,$4}'

Here if the line matches the regular expression /REG.*\(deleted\)$ (the $ means that (deleted) should be the last word on the line), it just prints >/proc/%s/fd/%d\n", $2,$4.

In lsof command $4 is the file descriptor number (for example 53w, the w means the filer has been opened for writing) or filetype, depending on the file. The %d in the printf ensures that only the numbers will be printed, removing any text characters (like the w). $2 prints the process id of process which uses the file so it will print something like >/proc/3989/fd/53 and so on it will print all files that have been deleted but whose file descriptor remains open, in other words, file descriptors that can be truncated safely.


Disable Show Password in WiFi Network Connection

I think you may have answered your own question.

If you are at the lock screen, you cannot access the WIFI settings.

This means that an authorized user must be logged in before you can get to those settings.

Now, the problem sounds to me like you are worried about a security hole that all network admins no matter what platform have to worry about:

Users walking away and leaving their PCs unlocked.

The best answer here is to enforce a policy of users being reprimanded for not locking their PC when they leave their seats.

Just FYI, our Windows friends have the same issues.

https://www.microsoft.com/surface/en-us/support/networking-and-connectivity/how-to-find-your-wireless-network-password?os=windows-10

This article also covers PCs as well as older versions of Windows.

UPDATE

Then what you are really looking for is to request a feature, here is the best place to do that:

https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss

Based on reading this thread:

Where can I send feature requests?

Because as of now this is not a feature in any OS as far as I know, so you will need to start by requesting it as one first.

Chris


You have to try reinstalling both packages by:
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install --reinstall googletest libgtest-dev

and retry directory listing.


When should you push variables in quotes in boolean conditions?

In the test conditions, which is the same as [, you should always use double quotes, otherwise the test command might miss an argument if the variable is empty or undefined, or have too many arguments if the variable contains whitespace. In bash, though, it is safer to use the builtin [[ for conditions that does not need the quotes.


How do I run PulseAudio in a headless server installation?

Install ALSA

$ sudo apt-get install libasound2 libasound2-plugins alsa-utils alsa-oss

Install PulseAudio:

$ sudo apt-get install pulseaudio pulseaudio-utils

Set Group Memberships for PA:

$ sudo usermod -aG pulse,pulse-access <username>

Run the PulseaudioServer:

$ pulseaudio -D

Following command tells us if a sink is recognized by PulseAudio:

$ pacmd list-sinks

Remember sinkname for output below.

This command will play a sound file to a given sink:

$ pacmd play-file <filename> <sinkname>

We may need to unmute audio devices:

for ALSA: use alsamixer
for Pulseaudio: use pacmd set-sink-mute n 0 where n is the sink index (likely 0)

For further CLI commands see also the Pulse Audio Wiki

To configure Pulseaudio Server to our needs we may need to edit /etc/pulse/default.pa and /etc/pulse/daemon.conf that come with self-explanatory. notes.

For testing the soundsystem see alsoSound Troubleshooting Guide


Space problem with Sandisk 32 GB flash drive

Your flash drive is likely formatted in FAT32 format. This format has a maximum filesize of 4GB. If possible, I would recommend reformatting the flash drive in a "large filesize friendly" format, such as NTFS or exFat.

However, note that if you were planning on plugging this flash drive into a TV or receiver or Blu-ray player, the resulting device may not recognize it. Many devices, from my experience, do not recognize NTFS or exFat.

See this question for more detailed information and suggestions at a work around, such as a streaming, networked solution. If that's not an option you could look into splitting the .mov into two (or more) separate .mov's or reducing the quality of your .mov so that it fits into a ~4GB filesize.


Permissions on mounted drive not able to be changed


Installing a Web Browser in Linux Server

From my understanding of your question, I think you want a visual browser in linux server.  there are other several browsers for linux.
The easiest one would be

w3m -v http://www.google.com

There is another similar question here.


There is a way to apply the full update to Ubuntu: When you restart your computer and you think the booting process is done, press Ctrl+Alt+F1. You will be prompted for your username in text mode.

Log in with your username and password and make sure you have an Internet connection (e.g. ping google.com). If your WiFi isn't working, connect your computer to the router using an ethernet cable.

You can then simply type sudo apt-get update and your machine will download and install the missing packages. Restart your computer with sudo shutdown -r now and after rebooting, Gnome should be working just fine.


I would recommend to reinstall the Evince packages first with

sudo apt-get install --reinstall libevdocument3-4 evince-hwp evince

and then retry.


Install and share Canon Lide 110 on the network

I don't have a tested clean answer to collect your bounty but the following bread crumbs might help you get where you want be. Your fist problem will be to get this scanner to work with Ubuntu. Some past LiDE scanners weren't sane compatible and won't work. Follow these instructions for the 210 and I believe your LiDE 110 will with Ubuntu, at least comments in the thread indicate so http://www.bottomlesspit.org/2010/12/23/canon-lide-210-scanner-support-on-ubuntu-1010-maverick. As to sharing your scanner between Ubuntu and Mac the following forum post may be get you started http://ubuntuforums.org/showthread.php?t=1007177.


The reason why GfxTablet is not working is because you're trying to run a 64-bit binary on a 32-bit installation. Since no 32-bit binary is provided, you should compile the GfxTablet uinput driver with the following instructions from here:

  Clone the repository:    git clone git://github.com/rfc2822/GfxTablet.git
  Install gcc, make and linux kernel header includes (kernel-headers on Fedora)
  cd driver-uinput; make


Unable to resume if suspended for more than 20 minutes on a Dell Inspiron N5010

Ok I have solved this problem. The solution is to use tuxonice patched kernel. Its very simple, just follow these steps.

sudo add-apt-repository ppa:tuxonice/ppa
sudo apt-get update
sudo apt-get install tuxonice-userui linux-generic-tuxonice linux-headers-generic-tuxonice

Restart your system. Thats it.


Running the mate-panel --reset command in a terminal will sometimes fix this problem.


ubuntu 14.04.4 with kernel 4.2: black screen instead of the login screen after installing nvidia driver

I had the same issue.
Create file /usr/share/X11/xorg.conf.d/20-intel.conf with next content:

Section "Device"
 Identifier "Card0"
 Driver "Intel"
 Option "AccelMethod" "uxa"
EndSection

This solution helped me and I hope this will help you


Fixing application icon question mark when locking to launcher

For a downloaded program you can use Nautilus to access the executable's properties. First unlock the program from the launcher, then open the executables containing folder:

Program Folder

Right click on the executable and select Properties:

Properties Window

Left click the icon square and select the program's proper icon. Restart the program and lock it to the launcher.


Cron job - need script to start VPN if not already running for job

From Gnome's nmcli website:

$ nmcli con show --active
NAME                UUID                                  TYPE             DEVICE
TELUS1213-5G        a857583c-3f2a-4399-9fc6-3df74b0509f0  802-11-wireless  wlp60s0
Wired connection 1  f1d049d0-ad20-3201-ac70-5cb8cc06a6e5  802-3-ethernet   enp59s0

To test if a specific connection is active use:

nmcli con show --active <connection_name>


Starting errors - "The root file system on /dev/sda1 requires a manual fsck"

To manually perform a file system check on your Ubuntu disk...

For 17.10 or older...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type sudo fsck -f /
repeat the fsck command if there were errors
type reboot

For 18.04 or newer... (or if the above steps don't work for you)...

boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode
open a terminal window by pressing Ctrl+Alt+T
type sudo fdisk -l
identify the /dev/sdXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/sdXX, replacing sdXX with the number you found earlier
repeat the fsck command if there were errors
type reboot


You are doing nothing wrong. You just don't know how to use vim.

Vim is an editor that works differently from any other editor. If you want to understand how it works, open a terminal in full screen and type vimtutor. It will teach you how to use vim inside vim.


only one workspace after upgrade to 13.04

Go to System Settings > Appearance > Behavior Tab > Enable Workspaces


systemd-resolved does not query dns server for local domain

I believe this is by design.

Ubuntu 17.04 has switched to systemd-resolved for name resolution and it uses only LLMNR (multicast name lookup) for single-label names resolution. See this link for details: https://www.freedesktop.org/software/systemd/man/systemd-resolved.service.html

For the reasoning behind this decision check out poettering's reply in this bug report:
https://github.com/systemd/systemd/issues/2514

UPD: This issue can be worked around by using a domain for local network. If network interface is configured (either manually or by DHCP) to use a search domain then systemd-resolved will add this domain to single-label names and then look them up via unicast DNS.

Obviously the local DNS server should be reconfigured to recognise these domain. In case of dnsmasq that reads local host-to-IP pairs from /etc/hosts it can be accomplished by adding following instructions to dnsmasq.conf:

domain=mydomain.net
local=/mydomain.net/
expand-hosts

UPD2: Or you could just revert to dnsmasq as described here https://askubuntu.com/a/911432/692094


The files /etc/skel/.bashrc, /etc/skel/.bash_logout and /etc/skel/.profile are provided by package bash.

You need to get the bash package and extract the files from it and copy them back in /etc/skel.

Get the bash package's deb file.

apt-get download bash

Then extract the package to /

sudo dpkg-deb -x bash_4.3-14ubuntu1.1_amd64.deb /

Replace the actual package file name in the above command, if your deb file name isn't exactly same.


In ~/.config/lxpanel/Lubuntu/panels/panel set

network=1


Mounting a remote drive and setting user-id

Preseeding can be used with the Alternate CD to specify several parameters of the initial user, including the UID; this might work with the regular Desktop CD as well (GUI installer).

Concerning the ID matching between client and server, this really depends on the protocol  that is being used to share the files over the network: NFS usually requires matching UID on the client and server; SMB/CIFS does not (but it requires an additional "login" step when you mount the remote filesystem).  NFS is traditionally used in UNIX environments, while SMB/CIFS is the (only) network filesystem available on Windows hosts (by default).


How to add my manual creted .desktop app launcher to Frequent tab?

Use your custom application frequently enough, and it will move into the Frequent group.

Frequent Applications is populated automatically with the most frequently used applications on your system. There is no way, a.f.a.i.k., that the user can control what makes it there, apart from effectively launching the application frequently.

So have some patience: after a while, and quite soon, your application will make it in there. In the mean time, pin it as a favorite on your dash for easy access.


How to open a file with special character in their path?

I think you have to use a media player, like mplayer from console given the location as a parameter, for example

mplayer /home/user/myvideo.avi

Obviously changing the location of the video


keyboard shortcut to "Output volume" in sound control

Answers to your question exist here:

How can I reach over 100% volume with a keyboard shortcut?

Personally I prefer this way:

Open the sound settings and with sound settings opened , open also a terminal.

Then try the command below

pacmd set-sink-volume 0 80000

Probably you will see the sound increased further than 100%. Use other values than 80000 until find what serves you.

Now create the shortcuts that you need.


I haven't found a way to stop these errors but I have found some workarounds that give a nicely formatted output:
eLyXer
eLyXer is a program available in the software repositories as elyxer that converts a document in LyX format to a nicely formatted HTML document. This can be viewed by a web browser and converted to a PDF/PS via print to file.
View Source + pdflatex
To view the LaTeX source, select View->View Source. This displays a split-screen. To get the complete LaTeX document make sure the 'Complete Source' box is ticked. This text can then be copied and pasted into a text editor. The command line tool, pdflatex can be used to convert the LaTeX document to a PDF. The PDF file can be converted to other formats via the pdf2* and pdfto* sets of commands.
docbook-utils
The package docbook-utils can convert a file in docbook format to several other formats including PDF, PS and HTML.


Virtual Hosts on Ubuntu Server 12.04 Not Working

I assume, your example.com vhost-file is named with starting letter a,b,c or d. So it is alphabetically before the default vhost conf-file.

If that's the case, you can rename the default conf-file (for example) to 000-default

Also make shure, your default conf-file hasn't the same ServerName in it.


How to select mount points for Windows partitions?

The 2nd ext4 partition can be /home. It will contain your users' data such as photos and music, but it will not contain any Linux games. This is because Ubuntu has its own system of placing application or program files in special places within its system. There is no way to install games in `/home' or any other partitions or folders of your choice.  See Linux Filesystem Tree Overview for details.

You have three choices for the NTFS partitions:

One, Create two folders under /media such as /media/Win7 and /media/WinData and mount the partitions there. /media is where the partitions are mounted when you select them in the Nautilus. The advantage of mounting the Windows partitions in /media is that they remain available on the left panel of Nautilus as drive icons. However, if you don't want the Windows partitions to appear with drive icons in Nautilus, then consider option two below.

Two Create two folders under /mnt such as /mnt/Win7 and /mnt/WinData and mount the partitions there. If you do this, the partitions won't appear as special icons in Nautilus. Both these options are explained in more details at Mounting Windows Partitions.

Three This is essentially the free for all option. For example, you may create two folders /Win7 and /WinData under / and mount the partitions there.

In terms of functionality in Nautilus, two and three are the same. Two may be preferred for historical reasons and keeping the / root less cluttered. In both cases you can create bookmarks in Nautilus to easily access the mount points.

There seems to be a debate about which of this three is right. See Why have both /mnt and /media? for some answers.


No. You must either close the current shell and open a new one, or use env to start a new shell with no environment.


It is not so clear that the drive is OK. Linux will not mount, or mount read only, if a volume is not clean. Before attempting anything else, have the drive connected to Windows, run the Windows drive checking tool, and then properly disconnect from Windows (using the eject icon in the tray). Next time you connect to Ubuntu, the drive will mount properly.


An iso is like a program that only works when you BURN it to a disk or usb drive.

They have all the information you'll need to make a bootable usb drive at this link.

http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows


How do you reset/revert system menus back to defaults?

Right click the menu, click edit menus, click the "Revert" button. This is the screen you should see:


Functions defined as you described it are only stored temporarily in the RAM. As soon as you end a bash session, they're gone.

You can, however place them in a textfile (let's say you call it its-ah_me), then you can load it into a new bash session with . its-ah_me (mind the gap after the dot).

Alternatively, you can write the function into the file .bashrc in your home directory (create it, if it doesn't exist). The .bashrc file is automatically loaded ("sourced") when a bash session is started.


Add the disk to the fstab configuration file.

Check following page:

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


How to check if the swap partition is being used correctly in ubuntu 15.10

You ask Ubuntu Linux like this:

swapon -s

Then it displays (for me):

Filename  Type        Size    Used    Priority
/dev/sda1   partition 8388604 14056   -1

Here you can see where howmuch usage priority.
Do try the help with commands:  command --help

swapon --help
In linux just an H might mean Human readable or something else, or try the man pages!