There is really never any compelling reason to use init 6 instead of reboot, unless:

For some reason you are missing the reboot executable, or
You are deliberately trying to avoid notifying users that the system is going down.

reboot (so long as you don't run reboot --force) is actually the "softer" way to shut down.

Consider:

  init 6 will run all of the shutdown scripts in /etc/init/rc.* as it reduces system's runlevel

But the reboot command, called without the --force flag, only directly reboots the system (via the reboot system call) when one of these two situations applies:

The system is in runlevel 0 (single user mode), so there is no reduction of runlevel that can occur, so no shutdown scripts are automatically run.
The system is in runlevel 6. What init 6 does it to put the system in runlevel 6. Again, there's nothing running init 6 will do that running the reboot command won't do.

Otherwise, sudo reboot is equivalent to sudo shutdown -r now. This does all the nice things sudo init 6 does, but also:

notifies users that the system is going down.
prevents new logins (though they probably wouldn't succeed anyway).
is more intuitive and self-documenting than sudo init 6.

If you're on a system with only you logged in, and only local logins, there is nothing wrong with using init 6 to reboot. If that's how you prefer to reboot, then by all means, go ahead--you're not harming anything by doing so. But there's also nothing objectively preferable about doing it this way.

init's own documentation says it's not the normal way to shut down or reboot the system. Consider that when init is run by the user (like when you run sudo init 6), it actually runs telinit (see man init). telinit is what actually changes runlevels. And man telinit tells us:

  Normally  you  would  use  the  shutdown(8)  tool to halt or reboot
  the system, or to bring it down to single-user mode.


Not able to connect to Vmware ubuntu using Putty in Windows 7

I found the same issue with me.
Sometime your incompatible network adapter is the issue for connection failure.

If you are using WIFI - NAT/Bridge works better but if you are connected using Ethernet - Use only Bridge Adapter.

Vmware automatically defines network adapter configuration based on network adapter selection. To setup it manually-

Open VMware
File Menu --> Edit
Virtual Network Editor
Change setting
Add Network --> VMnet10 --> OK
Under VMnet information --> Bridged
Select Bridged to --> Automatic --> OK
Go to your VM and select the Network Adapter --> Bridge connection.

Hope this helps.
Thanks


This looks like you've hit this known bug:

https://bugs.launchpad.net/ubuntu/+source/heartbeat/+bug/567463

Its been in progress for over a year, so maybe Andres has forgotten about it. Please add your experience to the bug report, as it may help Andres figure it out.


Where can I find the power management settings?

The following answer is based on the assumption that values like five minutes or ten minutes will be suitable in-lieu-of your desired values of three or seven minutes.
Actually, the values can not be set to something like three minutes or seven minutes as you desired.

In my honest opinion, such small difference in values should not be an issue under the scenario you described.

Click on the wheel icon at top right of your screen. Select System Settings from the drop down menu that appears.

A new window for System Settings will appear. Click on Brightness and Lock.

The window changes as below. Select the appropriate time out value. Click on All Settings at top left.

You get the original window. Click on Power.

The window changes to  the tab for Power.

Again the select the appropriate time out value. Click on the cross to close the window.


ISO9660 is a type of file system used for optical discs.
This file system has roots that go back several decades.  In that time, the standards for ISO9660 have undergone several revisions.  These are also referred sometimes as versions, standards, or levels.
Your burning software already knows how to write different versions of the ISO9660 standard.  You are not being prompted to install anything.
This notification is warning you of two things:

If you intend to burn a disk containing any single file larger than 2GiB, the disc will be burned using the third version of ISO9660 (because earlier versions of the ISO9660 standard can't support files that large)

The third version of ISO9660 is not compatible with all operating systems.  This means that a disc written using this standard might not be readable on another computer. The notification informs you that a disc written using this standard will be readable on Linux and all versions of Windows, but the disc will not be readable on MacOS X.

By clicking "Never Add Such File", you acknowledge the notification and instruct your burning software to never add a file larger than 2GiB. All discs will be written with an earlier ISO9660 standard that has no compatibility issues (even w/ MacOS X).
By clicking "Always Add Such File", you acknowledge the notification and instruct the software to proceed even when you add files larger than 2GiB.  If you do add files larger than 2GiB, the disc might not be readable on another operating system.


PHP errors are not showing in browser only page goes blank

Initially, display errors in PHP are OFF. You have to turn it ON Manually.

Locate the following files.

/etc/php5/apache2/php.ini
/etc/php5/cli/php.ini

Now find display_errors in that page. It must be Off. You have to change it and make it On.

Now restart the server.

sudo /etc/init.d/apache2 restart

An error will display instead of a blank page.


gedit-r-plugin not showing up in plugin list in gedit

You are correct - the move to GTK3 has broken this plugin.

Fortunately - this has been resolved in the very latest code available in SourceForge.

If you want to compile this code, you will need to manually install the plugin as per the Linked Question below.

Unless this plugin gets a SRU - dont expect it to land in the Oneiric repo's.  Probably will though for Precise.

Until then - you could always try downloading the GTK3 deb file from the Debian Sid Repo's

to install

First install from synaptic the gedit-r-plugin available in synaptic.  This will ensure all dependent packages are also installed.

Then download the Debian Sid .deb (link above)

Install with the syntax:

sudo dpkg -i [filename.deb]

After installation - you should see it appear in the preferences - plugins screen:

Linked Question:

How do I install a plugin for gEdit v3?


Is there an application that is like "Time Machine" on the Mac OSX?

You could give a try to Back in Time. It is in repository.

In documentation he explains why he do it.

  Why did I write the application ? When I read about Apple’s TimeMachine I thought it’s nice tool to have. I searched for equivalent applications for Linux and I find TimeValut and FlyBack.

Since February I'm making backups with it, but never had tried a full or partial restore.

It uses rsync and not the mechanism like inotify used by Time Machine. So it is running every x time and not each time the file is wrote.


Does an ASUS pa* series display work with Ubuntu?

USB, color manage management, etc, will work out of the box, they are hardware / monitor dependent. Quick Fit seems to be built in to the monitor's firmware and wont depend on external software.

The automatic rotate screen feature will not work out of the box but with some small adjustments you can make you desktop rotate with a simple hot key shortcut, that is graphics card dependent but most new GPUs will be able to do that in Ubuntu.

If you are buying a screen like this I really doubt you are using an old graphics card, if that is an interesting feature that you need check if your graphics card is supported and works good in Linux.


How to determine what throttles my Ryzen 7 2700 system?

Somehow the ACPI is not wired up well. upowerd / UPower (https://en.wikipedia.org/wiki/UPower) and the GUI gadgets are misinformed as well, because they just probably feed from the info found in /sys/class/power_supply/*. These sys entries show that the laptop is not plugged into the power adapter and the battery is discharging - both of these claims are obviously false.

Follow up Questions: How can I make UPower and the power subsystem recognize that the power supply is plugged in?

# upower -d
Device: /org/freedesktop/UPower/devices/line_power_ACAD
  native-path:          ACAD
  power supply:         yes
  updated:              Sat 02 Mar 2019 10:30:41 AM PST (17633 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    online:             no

Device: /org/freedesktop/UPower/devices/battery_BAT1
  native-path:          BAT1
  vendor:               PANASONIC
  model:                AP17C5P
  serial:               1409
  power supply:         yes
  updated:              Sat 02 Mar 2019 03:24:16 PM PST (18 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    energy:              73.2424 Wh
    energy-empty:        0 Wh
    energy-full:         74.074 Wh
    energy-full-design:  74.074 Wh
    energy-rate:         0.0195243 W
    voltage:             17.385 V
    percentage:          98%
    capacity:            100%
    technology:          lithium-ion

Daemon:
  daemon-version:  0.9.23
  can-suspend:     yes
  can-hibernate:   no
  on-battery:      yes
  on-low-battery:  no
  lid-is-closed:   no
  lid-is-present:  yes
  is-docked:       yes

Additional verification:

# acpi -ab
Battery 0: Discharging, 98%, discharging at zero rate - will never fully discharge.
Adapter 0: off-line

That's also the reason why my screen dims after 120 seconds of inactivity. I'll open another question specifically for the problem.


Why is ksoftirqd/0 process using all of my CPU?

Your computer communicates with the devices attached to it through IRQs (interrupt requests). When an interrupt comes from a device, the operating system pauses what it was doing and starts addressing that interrupt.

In some situations IRQs come very very fast one after the other and the operating system cannot finish servicing one before another one arrives. This can happen when a high speed network card receives a very large number of packets in a short time frame.

Because the operating system cannot handle IRQs as they arrive (because they arrive too fast one after the other), the operating system queues them for later processing by a special internal process named ksoftirqd.

If ksoftirqd is taking more than a tiny percentage of CPU time, this indicates the machine is under heavy interrupt load.


Unmet dependencies (linux-headers, linux-image)

Seems like you have double sources in your plist.

To fix this issue:

sudo apt-get clean
sudo apt-get autoclean
sudo apt-get -f install

Then run :

sudo dpkg --configure -a
sudo apt-get -f install

Also you can comment out the double source in the sources.list

If you need help, print the output of the sources.list and show me.

Like this :

cat /etc/apt/sources.list > /home/user/sources.txt

If you wanne do it yourself just use nano or vim :

sudo nano /etc/apt/sources.list


If you want to hard block wifi (that means completely turn the wifi chip off) then you must do it from bios settings (my laptop has also an external switch).

If you want to soft block wifi (that means disable wifi from within the os) then you can do it with these 3 ways:

with a combination of Fn key and some other for example F8 if you have a laptop.
by right clicking on network manager indicator on your panel and uncheck the Enable Wi-Fi option.
Finally by the command sudo rfkill block wifi (use the command rfkill list to check it).


How to get a notification when computer is not charging?

Simple linear command:

[[ $(acpi -b | grep -o "Discharging") ]] && notify-send "Alert" "Battery is not charging.\n Please plug your AC adapter!"

From man acpi we have:

NAME
       acpi - Shows battery status and other ACPI information
SYNOPSIS
       acpi [options]
DESCRIPTION
       acpi Shows information from the /proc or the /sys filesystem, such as battery status or thermal information.
OPTIONS
       -b | --battery
                 show battery information

If you run acpi -b and you battery is charging mode, you will get this result of that:

Battery 0: Charging, 88%, 00:38:17 until charged

And if your battery isn't charging then the result would be like this:

Battery 0: Discharging, 87%, 03:46:06 remaining

Then We are looking "Discharging" in the result with this command:

acpi -b | grep -o "Discharging"

If battery was not in charging the result will "Discharging".

And finally we send an alert to notification if we got "Discharging" from above command:

[[ $(acpi -b | grep -o "Discharging") ]] && notify-send "Alert" "Battery is not charging.\n Please plug your AC adapter!"

Note: [[ Something ]] always true and [[ ! Something ]] always false.

Now it's easiest way that we run it in the background, inside a while loop. Then I put the command into a while loop and I check the battery status between X interval of time. Like this:

while true
 do
    # Our command
    sleep [number of seconds] # check the status every [number of seconds] seconds
 done

And if you want to run the script on startup and every 5 minutes, so the construction would be:

Save the script(I named it ChkCharge.sh in my home directory)
Add a line in /etc/rc.local to call your script (your ChkCharge.sh) + "&" to make it exit. like bash /home/USERNAME/ChkCharge.sh &.

Final Script

#!/bin/bash
while true
do
    [[ $(acpi -b | grep -o "Discharging") ]] && notify-send "Alert" "Battery is not charging.\n Please plug your AC adapter!"
    sleep 300 # 300 seconds or 5 minutes
done

Finish. Reboot and see the magic ;)


Multiple monitors are usually handled by the vendor proprietary drivers.  After you install those (check "additional drivers" under Dash or system/administration), you should have a vendor supplied control program.  Run this, and ensure that "clone" is unchecked, so you get two distinct desktops, select how the desktops are connected (right/left etc.) by moving the little screen images around.  By running the movie on one desktop for the external monitor, you can then use the other desktop for your work.


Check out the extremely detailed and well-written Wiki entry for Grub2. The setting GRUB_HIDDEN_TIMEOUT should be what you are looking for. But pay attention to the instructions on how to change settings.


RTL8187l Chipset with disconnects and slow speed. please help me

You can try these commands:

wget https://raw.github.com/gkaindl/beaglebone-ubuntu-scripts/master/bb-get-rcn-kernel-source.sh
chmod +x ./bb-get-rcn-kernel-source.sh
./bb-get-rcn-kernel-source.sh

OR

go to additional drivers. It will search for additional drivers needed.
If it shows any activated wifi driver, then try removing it and installing it again.
Note: If you remove wifi driver, u need working lan connection to install the wifi driver.

OR
Check this page:
http://www.janoweb.net/tutorials/install-drivers-rtl8187-r8187-rt2800usb-on-ubuntu-lucid-maverick.html#axzz2hOO46W57

OR

May be the distance between the router and your PC is more. If possible, then kindly reduce the distance little bit by moving the router.
Lastly, kindly avoid putting router inside any closed space. Keep it in open space.

Hope this helps.


How can I solve this Video Playback Problem In Xubuntu 16.10

I seem to have solved this problem by installing an alternative compositor called Compton.

I used the instructions here, but NB the PPA he uses no longer has the package. Not hard to find though.

http://duncanlock.net/blog/2013/06/07/how-to-switch-to-compton-for-beautiful-tear-free-compositing-in-xfce/


You can use the website alternativesto.net. They specify opensource and platform : https://alternativeto.net/software/goanimate/

Vyond looks nice at first glance, since it's web-based you can use it on anything including ubuntu (if you use google-chrome as a browser, not chromium).

since you were using paying software before I assume you have no problem switching to another paid solution?

there's also Explee and nawmalMAKE
https://alternativeto.net/software/plotagon/

out of all of them Vyond will probably suit your needs the most.

I would be remiss if I didn't mention the DIY approach : Blender. but I grasp that you don't wish to have to model and animate yourself.


This was solved after I removed sysstat utility but I couldn't justify why it happened so.


its normal for quotacheck to give these errors when reading an empty quota file for the first time. This should go away on checking after subsequent remounts.


speed up process to use more cpu for php script

Your script might be single threaded and is therefore not able to utilize more than 50% of your CPU, assuming you run a dualcore setup.


Get 'SteamUpdateUI: An X Error occurred' when trying to run steam

Yep, I've seen that today.

Running ~/.steam/steam.sh yields a more verbose output:

Running Steam on ubuntu 16.04 64-bit
STEAM_RUNTIME is enabled automatically
grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc
awk: /home/niklas/.steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libtinfo.so.5: no version information available (requ
grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc
grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc
[2016-06-14 18:24:28] Startup - updater built Jun  9 2016 20:55:22
Installing breakpad exception handler for appid(steam)/version(1465507923)
libGL error: unable to load driver: r600_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: r600
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
SteamUpdateUI: An X Error occurred
X Error of failed request:  BadValue (integer parameter out of range for operation)
^C

So - it's the old "Steam ships old versions of the libraries already existing on the system and they don't work"-problem.

It is fixable by running:

cd ~/.steam/ubuntu12_32/steam-runtime
rm amd64/lib/x86_64-linux-gnu/lib*
rm amd64/usr/lib/lib*
rm amd64/usr/lib/x86_64-linux-gnu/lib*
rm i386/lib/i386-linux-gnu/lib*
rm i386/usr/lib/lib*
rm i386/usr/lib/i386-linux-gnu/lib*
ldd steamclient.so
#install those that are missing:
sudo apt install libnm-glib4:i386

It works now - until the next update....

(see https://github.com/ValveSoftware/steam-for-linux/issues/172#issuecomment-225929024)


PyQt5: NameError: 'QtWidget' is not defined

Indeed it is something simple: QtWidgets , i.e. non-singular

>>> from PyQt5.GUI import QtWidget
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'PyQt5.GUI'
>>> from PyQt5 import QtWidgets
>>>

Also, ensure that you're calling correct interpreter. You've installed PyQt5 for Python3, so use python3:

$ python
Python 2.7.12 (default, Jul  1 2016, 15:12:24)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt5 import QtWidgets
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named PyQt5
>>>

$ python3
Python 3.5.2 (default, Sep 10 2016, 08:21:44)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt5 import QtWidgets
>>>


Add the option to not require the disk to be present at boot with the noauto flag.

reference this post: http://ubuntuforums.org/showthread.php?t=1803779

The relevant bits:

somthing along these lines in the stab would work;

/dev/udev-id /media/extern-drive-noauto ext4 user,noauto 0 0


All downloads, including torrents, can be found here.

I've added links to the most downloaded images:

Desktop: 32-bit, 64-bit, 64bit+Mac.
Server: 32-bit, 64-bit, 64bit+Mac.


Will it be possible to upgrade to the latest Ubuntu from an older version

As far as I know, upgrade only works from one version to the next, i.e. from 11.04 to 11.10 to 12.04. Also, it is possible to upgrade one LTS release to the next (10.04 to 12.04).

I think there are good reasons why upgrading works this way - the upgrade procedure is developed and tested against a system in a particular state (i.e. fully upgraded 11.04) so migration scripts have some idea what to expect.

It may be very tricky have a generic migration procedure which can upgrade from some arbitrary machine state without going through each intermediate step. I'm finding that even upgrading from a not fully upgraded Ubuntu N to Ubuntu N+1 tends not to work.


You have two possibilities:

Reconfigure LightDM

sudo dpkg-reconfigure lightdm

and select lightdm from the list
Uninstall GDM (GNOME Display Manager)

sudo apt-get purge gdm

What solution do you want to use depends on you. The first command only changes the configuration of your system. Both LoginManager remain installed.

The second command removes the GNOME Login Manager completely from your system.

From man dpkg-reconfigure

DESCRIPTION
    dpkg-reconfigure reconfigures packages after they have already been
    installed. Pass it the names of a package or packages to reconfigure.
    It will ask configuration questions, much like when the package was
    first installed.

From man apt-get

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


How to widen "Window List Item" boxes in (Cinnamon) Gnome Desktop to fit?

I was able to hack this functionality into the code of cinnamon 2.2 running on debian 8. This should also work on Ubuntu, maybe the path is a bit different.

open this file in an editor /usr/share/cinnamon/applets/window-list@cinnamon.org/applet.js
find function _getContentPreferredWidth: function(actor, forHeight, alloc)
change alloc.natural_size = 150 * global.ui_scale; to alloc.natural_size = 350 * global.ui_scale; where 350 is your desired width.

Good luck!


According to the kernel documentation, lines 221ff, the unit is "millidegree Celsius".
Since this is hard wired into the kernel, I don't think that you can change the unit to fahrenheit by changing the system locale.


gnome-contacts-search-provider using all resources

This is expected, unless the high CPU usage remains for a long time


connecting to wifi internet using TP-Link (TL-WN723N) usb adapter with Ubuntu 12.10

Download RTL8188CUS for Linux from Realtek.com

Extract the downloaded archive by right clicking, then selecting Extract Here.

Blacklist the original mudule:

echo 'blacklist rtl8192cu' | sudo tee -a /etc/modprobe.d/blacklist.conf

... then reboot.

Build the new module:

cd RTL8188C_8192C_USB_linux_v3.4.4_4749.20121105
sudo bash ./install.sh

It will take a minute to complete, and should start working right away.

PS: Keep the downloaded files, because you'll need to redo the last step after every kernel update.


No sound output, all sound setting greyed out

This worked:

https://github.com/plbossart/UCM/issues/13#issuecomment-399256736

Basically installing the driver, selecting the right output in alsamixer and waiting a moment.


After receiving the same error as you above, I was able to install Windows 8 by rebooting the computer with my Windows 8 install disk already in the DVD drive and then from the motherboard's bios boot menu selecting the DVD drive that started with "UEFI". My boot menu had the DVD drive listed twice in the menu; the second time without the UEFI. It was only by selecting the option with the UEFI prefix that I was able to install Windows 8.


Windows 7 can't find CUPS printer shared from Ubuntu

Well, I finally got it working. It turns out there are several parts that need to work together (of course). But here's a way that requires zero work in terminal:

1) Setup Samba:

Install "system-config-samba".
Launch "Samba" from the launcher.
Open "Preferences" > "Server Settings" and enter the workgroup name used in Windows.

2) Share printer:

Go to http://localhost:631/admin/ and check the box "Share printers connected to this system".
Go to http://localhost:631/printers/ and check that the expected printer is listed.
Click the printer and check that it is listed as "Idle, Accepting Jobs, Shared, Server Default".

3) Connect the printer:

Do either of these steps:

On the Windows computer, open Windows Explorer and go to the "Network" item. There's an icon for the Ubuntu computer; open it. There's an icon for the printer shared from Ubuntu. Right-click that one and select "Connect...".
On the Windows computer, select "Add new printer" then "Connect to a printer on the Internet or network" and specify the full path of "http://{computername}:631/printers/{printername}"

Then go to the printer properties and set it up with the desired defaults.


GParted doesn't start when I click the GParted icon

You can edit the desktop entry /usr/share/applications/gparted.desktop and substitute the entry gparted-pkexec with gksudo gparted. That should allow you to call the program from the Unity dash without problems.


The Ubuntu Install Disk is a 'Boot Disk' in the sense that you can get into a working environment to fix whatever is causing the system to not boot. Ubuntu can be installed from Optical media by burning the ISOs to a disk in any operating system. Live USB installers can be made from Ubuntu with the Startup Disk Creator program and an ISO image. USB installers can be made from Windows by following the guide here, called the Universal USB Installer.

If you want to actually be in the environment of your brokenn installation,  you can press 'c' for Command Line during the Grub menu and can manually setup a new entry or press 'e' for edit on any of the existing entries and change it so it will boot again.


How to jump to file in folder based on starting letter

If you are using Ubuntu 13.04 or Ubuntu 13.10, you won't be able to jump directly to the file when you type the first few characters of its name, instead it will search recursively to find files/folders similar to what you type.

This search feature came up in nautilus 3.8 and you would have an option of choosing between the recursive search and the earlier "type-ahead" search only in Ubuntu 14.04. [1]

Untill then if you want to enable the "type-ahead" feature, you may want to look at this answer:

Downgrade to Nautilus 3.4 from Ubuntu 13.10 / Nautilus 3.8


Application issues only on my user after upgrade from 16.04 to 18.04

Created a new user and manually bringing over data from old user to new.


If you know network address of your printer and there is no network problems accessing it, you can add a printer using CUPS web interface:

http://localhost:631

or:

http://your_server:631


As a workaround you can set menu to be shown always.
Use View → Menubar for this or programmatically:
gsettings set org.nemo.window-state start-with-menu-bar true

to revert use
gsettings set org.nemo.window-state start-with-menu-bar false


How to Pipe traffic from one NIC through Squid, dual nic system

What you want to implement is "Web Proxy Auto Discovery".
This question on StackOverflow has many informations about it.
https://stackoverflow.com/q/191023/3552972
And also this article on Wikipedia.
https://en.wikipedia.org/wiki/Web_Proxy_Auto-Discovery_Protocol

You will have to setup at least a DNS server and a simple Web server to make it work.


Reinstall ubuntu from scratch while keeping mdadm raid

Simple!

Do a full system backup before you start.  (Read the following article if you don't know how. You're user type 4)
Download the CD and do an upgrade using the CD instead of the Internet (Murpy's law etc)

What do you mean that your RAID5 is your back-up?  A RAID5 is just a protection against single drive failure! It is NOT a back-up!  Borrow, bribe, buy anything but make a back-up!
No! Really!  ;-)


How can I enable the SNA acceleration method for Intel cards, under Ubuntu 12.04 - 12.10?

Enable SNA under Ubuntu 12.04.0 or 12.04.1 LTS

Due to LTS version of 12.04 , the new point releases will have the HWE stack of the current stable release (right now 12.04.3 has HWE stack of 13.04).
The next point releases of 12.04 (12.04.2 and 12.04.3) have the HWE stack of 12.10 and 13.04 respectively. So the Intel driver is above 2.20 and the following procedure of upgrading the Intel driver is not needed.

Check the current Intel driver version. Apply
this command

 apt-cache policy xserver-xorg-video-intel* | grep Installed

If the results of Installed are under 2.20  e.g. 2:2.17.0-1ubuntu4 0 , then proceed with the procedure below to upgrade the driver.

Open a terminal (Ctrl + Alt+T) and apply the commands below to upgrade the Intel driver to the latest version

sudo add-apt-repository ppa:glasen/intel-driver
sudo apt-get update ; sudo apt-get dist-upgrade

Then activate the SNA acceleration method with the two commands below

sudo mkdir /etc/X11/xorg.conf.d/
echo -e 'Section "Device"\n Identifier "Card0"\n Driver "Intel"\n Option "AccelMethod" "sna"\nEndSection' | sudo tee /etc/X11/xorg.conf.d/20-intel.conf

Reboot your PC for changes to take effect.

Test if SNA acceleration method work with the command

cat /var/log/Xorg.0.log | grep -i sna

The results should be something like

(**) intel(0): Option "AccelMethod" "sna"
(II) intel(0): SNA initialized with Ironlake backend

Enable SNA under Ubuntu 12.10 and beyond

Well , is the same method as above , but you have to avoid the upgrade of the driver , because Ubuntu 12.10 has the 2.20 Intel driver by default. Also in newer versions of Ubuntu the SNA acceleration method is enabled by default.

Check if the SNA acceleration method is enabled and in use with the following command

cat /var/log/Xorg.0.log | grep -i sna

if results read something like

(II) intel(0): SNA compiled: xserver-xorg-video-intel-lts-raring
 2:2.21.6-0ubuntu4.1~precise1 (Maarten Lankhorst <maarten.lankhorst@ubuntu.com>)
(II) intel(0): SNA initialized with Ironlake backend

then you are OK. Above results are from Ubuntu 12.04.3 LTS.

If not, then execute the following commands to enable the SNA

sudo mkdir /etc/X11/xorg.conf.d/
echo -e 'Section "Device"\n Identifier "Card0"\n Driver "Intel"\n Option "AccelMethod" "sna"\nEndSection' | sudo tee /etc/X11/xorg.conf.d/20-intel.conf

In case of a problem.

To revert back to the default acceleration method , just delete the file you created.

sudo rm /etc/X11/xorg.conf.d/20-intel.conf

and restart X or your PC for the changes to take effect.

In case of a problem at Ubuntu 12.04.0 or 12.04.1 with the driver 2.20

Just remove the PPA with the appropriate commands .

sudo apt-get install ppa-purge
sudo ppa-purge ppa:glasen/intel-driver
sudo apt-get update

Reboot you PC.

In case of a problem if the default acceleration method is SNA (e.g. 12.04.3) and you want to use the UXA.

Execute the following commands

sudo mkdir /etc/X11/xorg.conf.d/
echo -e 'Section "Device"\n Identifier "Card0"\n Driver "Intel"\n Option "AccelMethod" "uxa"\nEndSection' | sudo tee /etc/X11/xorg.conf.d/20-intel.conf

Reboot your PC (or Display Manager) for changes to take effect.

Hope you see a difference in performance or/and graphics with the new AccelMethod SNA and if not, you know the way to revert back to UXA.


UbuntuOne fails with AttributeError on Windows7

That error message usually means SyncDaemon is failing to start. So yes, you need to file a bug or a support request.


Can I switch the OS installation order?

Yes.

You usually install Windows 1st because the last installed OS uses its bootloader to take presedence. And our grub adds Windows. Windows though does not add other operating systems.

But you could always install Windows last and use a tool like boot-repair to install Grub.

Nowadays we use (U)EFI. And there the boot is done by creating a little bit of room on the disk where you install a file that points to an operating system. So the order does not matter anymore: you tell inside the BIOS you want to install an OS and it will add your OS to the EFI.

So yes. Totally possible.


The apache controlling script on Ubuntu is apachectl, just use:

apachectl -S


How to disable microphone volume auto adjustment in Cisco Webex

I had a similar problem. Sometimes it is impossible to prevent applications from trying to adjust the microphone level. With Ubuntu, it is at least possible to prevent ALSA from responding to such requests.
In the configuration file /usr/share/pulseaudio/alsa-mixer/paths/analog-input-internal-mic.conf (you might have to look for the correct file for your microphone, see below), I changed to part
[Element Capture]
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right

to
[Element Capture]
switch = mute
volume = 40
override-map.1 = all
override-map.2 = all-left,all-right

and after a sudo alsa force-reload, applications don't magically change the microphone volume anymore.
Above, we use volume = 40, which corresponds to the numeric value shown in alsamixer below the green level control fader as shown here: .
If you want to set the volume to the "native" volume of your microphone (0dB of the hardware, without added "mic boost" that can add static noise), adjust this volume number until the top left of alsamixer shows db gain: 0.00, like so:

How to determine the .conf file for your microphone

Run pacmd list-sources.

In the output, search for the index: section listing the desired device, e.g.
  * index: 6
    name: <alsa_input.usb-Blue_Microphones_Yeti_Stereo_Microphone_REV8-00.analog-stereo>
    ...
    active port: <analog-input-mic>

The active port part at the end contains the file name you need to edit in /usr/share/pulseaudio/alsa-mixer/paths/.
In the above example, it is <analog-input-mic>, so we would edit /usr/share/pulseaudio/alsa-mixer/paths/analog-input-mic.conf for this mic.


What is the difference between libfreerdp-dev and freerdp-x11?

libfreerdp-dev (as the dev indicates) is for development - writing code that makes use of the FreeRDP library. freerdp-x11 is an RDP client (that is built on the FreeRDP library).

  Does installing libfreerdp-dev also install RDP server?

No.

  What is xrdp?

xrdp is an RDP server. If you want to install an RDP server, this is one.

In case you don't know what a package is for, run apt-cache show <package-name>, and read the Description. For example:

$ apt-cache show libfreerdp-dev xrdp
Package: libfreerdp-dev
Priority: optional
Section: libdevel
Installed-Size: 329
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Mike Gabriel <sunweaver@debian.org>
Architecture: amd64
Source: freerdp
Version: 1.0.2-2ubuntu1
Depends: libfreerdp1 (= 1.0.2-2ubuntu1), libfreerdp-plugins-standard (= 1.0.2-2ubuntu1)
Filename: pool/main/f/freerdp/libfreerdp-dev_1.0.2-2ubuntu1_amd64.deb
Size: 52978
MD5sum: d6c5168d4b415a5346fc2708667e81a2
SHA1: ebbff4b0d9804194f22500f9ec2b98745328c642
SHA256: fbf8ad8ef6a416fc14b85fa73e1a76bb96eb77bd896086d78111ff16cab1cf6b
Description: RDP client for Windows Terminal Services (development)
Description-md5: a097a02e403e05e19dd894fd2672c390
Homepage: http://www.freerdp.com/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 9m

Package: xrdp
Priority: optional
Section: universe/net
Installed-Size: 1565
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Vincent Bernat <bernat@debian.org>
Architecture: amd64
Version: 0.6.0-1
Depends: libc6 (>= 2.15), libpam0g (>= 0.99.7.1), libssl1.0.0 (>= 1.0.0), libx11-6, libxfixes3, adduser
Recommends: vnc4server | tightvncserver | vnc-server
Filename: pool/universe/x/xrdp/xrdp_0.6.0-1_amd64.deb
Size: 277112
MD5sum: 9e5534c9bfaae97b7955508a9d679d73
SHA1: 401725647f4eef969fba6cdc630dc5ef66481c32
SHA256: 272d93eb4d1256a0a4cb4eac75266f882da52e258565b349f9107b001f0cbb82
Description: Remote Desktop Protocol (RDP) server
Description-md5: b98c1889e17be6136503794b3491891b
Homepage: http://xrdp.sourceforge.net
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

The Descriptions for libfreerdp-dev reads:

RDP client for Windows Terminal Services (development)

And that of xrdp:

Remote Desktop Protocol (RDP) server


Installing Ubuntu across multiple hard drives

For quick booting, you would want it to boot from the SSD.

Usually /boot is 300 to 500MB, put this on the SSD at the beginning. I normally suggest / (root) of 20 or 25GB also on the SSD (After the /boot). Now you can add /home or data partition(s) onto the 2TB drive.

Hope this helps


Commands are available in the following places

I have forgotten to add :$PATH at the end of the line in ~/.bashrc. Adding it solved my problem. Before edit, it was like export PATH="/storage/IntelFPGA/q18.1/quartus/bin".


Error of first installation ubuntu 16.04.3 on ASUS TUF X299 MARK 2 ATX LGA2066 Motherboard

Boot option acpi=off for installation and kernel update for the system help with that error. But does your system hang in few seconds after successful launch?


Error loading operating system - Ubuntu 16.04

Please have a look here:
Cannot properly boot into Ubuntu after installation of Nvidia driver

If you cannot login to tty (alt+ctrl+f1), You may load you system by RecoveryMode


Another solution that I just attempted and it seems to work -

cd /usr/lib/x86_64-linux-gnu
sudo ln -s libass.so.5 libass.so.4
ffmpeg -formats (should now work)


Hold alt and right click the clock, then a menu will come up. Choose move, and move the applet until it hits the center. Done.


Dock settings missing in gnome-control-center after upgrade to Ubuntu 17.10

Ubuntu Dock doesn't seem to be installed, you can verify it by running

apt-cache policy gnome-shell-extension-ubuntu-dock

There should be an Installed: (none) line in the output. If so, you may install it by running the following command in Terminal:

sudo apt install gnome-shell-extension-ubuntu-dock

If Ubuntu Dock is installed and you still don't find the settings, see this: ubuntu-dock settings not accessible in gnome-control-center by default


How do I totally disable all forms of session management in Xubuntu?

Launch xfce4-settings-editor, find and uncheck xfce4-session -> general -> SaveOnExit.


How to fix access permissions for new partition

sudo chown -R $USER:$USER /path/to/partition

$USER will automatically change to the current active user.

-R means that it will operate on files and directories recursively.


How to know that my ubuntu system is clear from bad file?

You can use the open source anti virus program clamav to scan your computer

For a command line version

sudo apt-get install clamav

To scan your PC first update the data base

sudo freshclam

Then run a scan

sudo clamscam

If you prefer a gui install clamtk instead, it is the same anti virus but with a gui

sudo apt-get install clamtk

As pointed out by @ThomasW in the comments, there is no guaranteed way to find all opened backdoors, the recommended course of action to take, if you know you have been infected, is to "nuke it from orbit", meaning delete and reinstall Ubuntu to make sure it is gone.


The problem is caused by new gtkmm. Either vmplayer is using it incorrectly or there is a bug in gtkmm. VMplayer is prvoided with it's own (old) version of gtkmm . Making it use the old version solved the problem (in my case I just temporarily moved the system libraries and started vmware; since then it's using the old ones, even though I placed the system ones back on their place).


The problem solved

Every thing is okay just after I logout and login again

It looks like system should see it in the startup ... I don't know why but it is fine now


That worked for me.

To get the trackpad working I used i8042.reset just before quiet splash.


Synclient touchpad settings for ClickFinger3 constantly resetting


Yes, all three ways are doing the same thing, but in different. They will all have the same result.


I have been checking on our network and found that one of our new IP phones had been given the same IP address as this new server.

I changed the IP from DHCP to Static on the network and no longer have this problem.

Thank you for considering this question.
This issue has been resolved.


For the case you use the basic English (US) keyboard layout, there are no dead keys, and hence the <dead_grave> <a> method does not apply.

Instead you need to define a key as the compose key, which lets you use the next method - <Multi_key> <grave> <a> - to type à:

Compose followed by ` followed by A

(I don't know how you define a compose key on KDE, but there ought to be such an option among the keyboard settings.)


I have no idea if you are using the right gconf-keys, but you can configure this via gui:

If you are using Ubuntu without desktopeffects metacity is your windowmanager, then you should use System ▸ Preferences  ▸ Keyboard Shortcuts to add your command and set the keybinding.

If desktopeffects are activated, you are using compiz windowmanager.
Install compizconfig-settings-manager , run it and enter your script in the Commands preferences.


Ubuntu Server SSD primary OS, user data/home folders on secondary RAID1

You just mount the file system on the RAID array via UUID in /etc/fstab as /home. It's pretty straight forward, given that you RAID array is properly detected during boot when the kernel mounts the file systems from fstab.

See: Move home folder to second drive


Wired network not working after suspend in 14.10

I had the same problem. I solved it by creating a file /etc/pm/sleep.d/15_network-manager

with the following content:

#!/bin/sh

case "${1}" in
        hibernate)
                ;;
        resume|thaw)
                sleep 5s
                service network-manager restart
                ;;
esac


Can Ubuntu TRIM another (NTFS) partition?

TRIM is a filesystem level operation. It needs to know which sectors of the disk are free so that it can inform the hardware. Neither "Discard" nor "Trim" are documented features of the ntfs-3g driver so I would suggest that no, this probably isn't possible.

There have also been a few separate calls for this but it's a feature that would only really affect a few people.

My only real long-term solutions are:

Stick it in a Windows machine (or boot to Windows) once every few months (I'm not sure what your churn rate is).
Use a real filesystem. Nothing makes people jealous like a nicely formatted ext4 partition. You'll need to juggle the data though.


Libreoffice Calc won't show/hide selected rows/cols

Turns out you can, when the spreadsheet is in EDIT mode. When you download .ods from a Google spreadsheet it is read-only by default when you open it. (It's odd that in this case, the only right click row menu items are copy, and PASTE.)

Dragging the resizer with multiple rows selected works, or you can just click the "edit" button in toolbar.


How to setup luks encryption to ask for passphrase after suspend

I don't think that's possible, because when you boot up, everything will be decrypted and while you suspend your system, your files are still available in decrypted form and many of them are available on your memory.

While you are booting-up the system, a lot of tools will be get involved to decrypt your full encrypted device (Hard disk), things like GRUB and initramfs.

However, When your system is running, that means a lot of your resource are busy and you can't just encrypt all of them on the air; At the same time, if even it was possible, then you have no more tools available to decrypt your device again.

As we can see in cryptsetup's man page, there are two subcommand: luksResume and luksSuspend, these two are not related to system suspend, they suspend a device; And if we pay more attention we will find an warning:

  WARNING: never suspend the device on which the cryptsetup binary resides.

Which mean it's not capable of encrypting whole system while it's running, because as I already said, it's not capable of decrypting it again.

luks will protect you against cold boot attacks, you can use Ubuntu home encrypting in contrast of luks to protect your home directory when you are not logged in but your machine is running.

For luks, you can use hibernate feature, because everything will be stored on hard disk and your memory will be freed. it should do the job.


How do I disable unwanted iPXE boot attempt in Libvirt/qemu-kvm?

Short answer

Upgrade to libvirt 0.9.10+ (available in Quantal) and add the <rom bar='off'/> option to the interface configuration of the machine's XML definition.

Long answer

Now that I'm actually using the iPXE boot option I see that the delay occurring in the SeaBIOS screen is not an actual boot attempt. It's just loading the Virtio network option ROM and that takes a few annoying seconds, i.e. it's not yet doing an iPXE boot attempt. This lead me to read the libvirt documentation again, and I made an interesting discovery.

As far as I could find, since libvirt 0.9.7 the behaviour has changed to load interface's option ROMs by default. Ubuntu 11.10 shipped with 0.9.2, Ubuntu 12.04 comes with 0.9.8. This definitely makes sense as to why I see this happening since the upgrade to 12.04.

Moreover, this has become configurable in libvirt version 0.9.10 with the <rom bar='off'/> option in the XML! (see here) However, that version of libvirt is not available in Ubuntu 12.04 and I'll have to upgrade to 12.10 or backport it. This makes Ubuntu 12.04 fall between two stools.

Other workarounds are removing the option ROM files as pointed out by @A.H.' and changing the SeaBIOS 'filesystem' as pointed out by @NlightNFotis. However, both ways will basically disable iPXE completely and it's not configurable (if sticking to virtio network devices only). As I have a mixed setup of iPXE machines and non-PXE machines, I really need this to be configurable.


why Ubuntu 12.10 returns a "network is unreachable" no matter what IP I Ping after I edited the hosts file?

Below are the original contents of the hosts file, as shown in the image below:

127.0.0.1 localhost
127.0.1.1 ubuntu

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


Where to translate sudo advice on Terminal's first run

This question is related: Remove note about sudo that appears when opening the terminal
You could edit the /etc/bash.bashrc file and manually change the sudo hint text to whatever you like. The relevant section is the following:
# sudo hint
if [ ! -e "$HOME/.sudo_as_admin_successful" ] && [ ! -e "$HOME/.hushlogin" ] ; then
    case " $(groups) " in *\ admin\ *|*\ sudo\ *)
    if [ -x /usr/bin/sudo ]; then
    cat <<-EOF
    To run a command as administrator (user "root"), use "sudo <command>".
    See "man sudo_root" for details.

    EOF
    fi
    esac
fi


compiz, when I open windows, the title bar goes behind the menu bar

Finally!! i found a answer!!
Need the plugin **

  "Place Windows"

**
Thats plugin you can found in compiz config settings manager, only you need to do is enable it. if you do not have it installed:

sudo apt install compizconfig-settings-manager -y
ccsm


Link broken on desktop but work on nautilus file manger

Remove the executable mode from it by:
right-click > Properties > Permissions tab > Uncheck "Allow executing file as program"
It may be possible that you need to log out / log back in for the change to take effect.

One factor to why this may have behaved differently in Nautilus, is a relevant Nautilus setting:
Nautilus hamburger menu icon
  > Preferences
    > Behavior tab
      > Executable text files section
          [ Display them | Run them | Ask what to do ]

The default option is "Display them". This may be the reason the executable mode did not cause this surprise when clicked within Nautilus.


Will the Ubuntu tablet OS be flash-able from zip files?

Here's a list of current ports:

https://wiki.ubuntu.com/Touch/Devices


Trying to install Ubuntu mini.iso on Laptop

We ended up Burning Puppy Linux iso to USB. 32 bit. Worked Great.
We used https://universalusbinstaller.com/
It appears the DVD was not working well for some reason even though the burning software said 'success'.


Wireless in 13.10 and similar doesn't work

As you stated, it's obviously the hardware switch causing this issue.
0: phy0: Wireless LAN
     Soft blocked: no
     Hard blocked: **yes**

So my advice would be:

Try pressing Fn + ((i))
where Fn is the hardware switch key on laptop keyboards
and ((i)) one of the [F1]-[F12] keys for the wireless device.

Try disabling your wireless card in your BIOS, reboot your machine and re-enable the device again.

Finally check if the hard block is gone.


On older machine like this you would be better to use a lighter version of Ubuntu like Lubuntu or Kubuntu, these distributions will require less resources to run. I'm pretty sure your machine is a 32-bit machine so you would need a 32-bit ISO if it's a 64-bit then you would use a 64-bit ISO file to get things rolling

Here's a quick guide if you need help you with your installation
How to install Ubuntu 16.04 LTS


How to open a new tab via a button using the Ubuntu Touch Qt SDK?

I changed the Ubuntu-SDK tab-template to enable a password check.
I am also totally new to qml but maybe this is what you want:

Project->new->ubuntu->Ubuntu-UI-Tabs  as tabstest:
Here is my tabstest.qml

import QtQuick 2.0
import Ubuntu.Components 0.1

/*
   example : check password before changing/showing tab
*/

MainView {
// objectName for functional testing purposes (autopilot-qt5)
objectName: "mainView"
applicationName: "tabstest"

width: units.gu(100)
height: units.gu(75)

Tabs {
    id: tabs
    anchors.fill: parent

    // First tab begins here
    Tab {
        objectName: "Tab1"

        title: i18n.tr("Password-Entry-tab")

        // Tab content begins here
        page: Page {
            Column {
                anchors.centerIn: parent
                Label {
                    text: i18n.tr("this is the password check tab")
                }
            }
        }
        Column {
            id: pageLayout

            Label{
                id : labelX
                text : "Enter your paasword:"
            }

            TextField {
                id: inputFrom
                placeholderText: "password"
                echoMode: TextInput.Password
            }
            Button {
                objectName: "button"
                width: parent.width

                text: "Login"

                onClicked: {
                    console.debug("onclicked...");
                    if(inputFrom.text == "test" ){
                        labelX.text = "Succesful"
                        console.debug(tabs.selectedTab );
                        tabs.visible = false
                        tabs2.visible = true
                    } else {

                        labelX.text = "Wrong Username or Password"
                    }
                }
            }
        }
    }
}

Tabs {
    id: tabs2
    visible: false

    // Second tab begins here
    Tab {
        objectName: "Tab2"

        title: i18n.tr("..secured tab")
        page: Page {
            anchors.margins: units.gu(2)

            tools: ToolbarActions {
                Action {
                    objectName: "action"

                    iconSource: Qt.resolvedUrl("avatar.png")
                    text: i18n.tr("Tap me!")

                    onTriggered: {
                        label.text = i18n.tr("Toolbar tapped")
                    }
                }
            }

            Column {
                anchors.centerIn: parent
                Label {
                    id: label
                    objectName: "label"

                    text: i18n.tr("you are in secured tab.")
                }
            }
        }
    }        anchors.fill: parent
}
}

regards
Sascha


How do I configure my 2 RAID drives so I can use it as /home?

When you install, choose manual partitioning, select the raid array, and set it to be mounted at /home.


How to Restrict two users of ubuntu to see other's data

get a root-shell:

sudo -i

go to the home directory

cd /home

change permission of the folder you want by:

chmod 750 [USER_FOLDER_NAME]

this will give read/write/exec to owner read/exec for group and no permission for other users


Libreoffice Calc Today Function Date Format?

The TODAY() function really just returns an integer value - the initial format that's applied depends on the time format associated with the application's default locale setting.

You can set the default format in LO by going to the Tools --> Options --> Language settings - Language dialog. Choose a locale that uses the DD/MM/YYYY format, such as English (UK) or *English (Ireland):


How to install sumo on Ubuntu 14.04(Trusty Tahr)?

The package libgdal1 was available in saucy: http://packages.ubuntu.com/saucy/libgdal1

The package isn't in the trusty repos though.

You can add the (old) saucy repo to your sources.lst or try to download and install it manually.

Important: The package sumo from the trusty repo does not declare a dependency on libgdal1, but on libgdal1h, see here: http://packages.ubuntu.com/trusty/sumo


The script can't work in this way. The script is mostly fine, although you should make minor improvements (Use ShellCheck for that.)

The problem is, mpv uses an internal counter for the naming of the screenshot file (%n). And the counter is reseted at each pass of the loop.

The modified script below renames the file.

#!/usr/bin/env bash

### Global variables
filename="$1"

### Error handling
if [ -z "${filename}" ];
then
    echo "ERROR: No video file supplied. Please enter a video file as argument."
    exit 1;
fi

NUM_OF_SCREENSHOTS=9
if [ ! -z "$2" ];
then
  NUM_OF_SCREENSHOTS=$2
  echo "WARNING: Overwrite default number of screenshots to ${NUM_OF_SCREENSHOTS}."
  sleep 3s
fi

# Get the total length of the video in seconds.
#  Use mplayer to display the info of the video and then get the value of ID_LENGTH, the total number of seconds of the video.
total_length=$(mplayer -identify -frames 0 -vc null -vo null -ao null "$filename" | grep ID_LENGTH | sed 's/ID_LENGTH=//' | sed 's/\..*//')
# Reference https://github.com/mpv-player/mpv/blob/master/TOOLS/mpv_identify.sh

# Remove 4 seconds from the video so that it doesn't take screenshot at the ends.
let total_length-=4

# time_slice: At which time interval should mplayer take screenshots.
let time_slice=${total_length}/${NUM_OF_SCREENSHOTS}

# time_at: When should mplayer take screenshots.
time_at=${time_slice};

# Looping to take screenshots.
for ((i=1; i <= NUM_OF_SCREENSHOTS ; i++))
do

  # Take the screenshot.
  #mplayer -loop 1 -nosound -frames 1 -ss ${time_at} -vo png:z=9 ${filename}
  mpv --quiet --no-audio --vo=image --start=${time_at} --frames=1 "$filename"
  rename 's/^[0-9]+/out'"${time_at}"'/' 00000001.jpg

  # Increment to the next time slice.
  let time_at+=${time_slice}

done

exit 0


Can I change the look of the panel icons in XFCE?

A common problem when users change away from default settings is that something unintended could happen. In this particular instance, a change in the icon theme leads to poor contrast of some icons with the background of the panel.

The simplest option is to modify the panel background color to the extent required.

Or, if one is by and large happy with the icon theme and panel background, and also has other icon  themes available, a little searching in other icon themes may help find a replacement for the troublesome icon. Another option, depending on one's skills, is to modify the appearance of the truant icon using a graphics program or, if the icon is an svg file, one could even change colors using a text editor.


You are missing the browseable option. It needs to go like this if you want to see it with smbtree:

[shared_stuff]
   path = /home/main1/shared_stuff
   read only = No
   browseable = Yes

Then do sudo service smbd restart and now you can run smbtree and you will see it.


How do I install ubuntu on a laptop that has had its windows operating system removed?

Check out:
http://www.ubuntu.com/download/help/install-desktop-latest

Try booting with a cd/dvd and make sure that the boot priority of your devices is set correctly.

If you need step by step assistance with the installation of ubuntu, please checkout the "Installation & Upgrades" of the ubuntu forums at : http://ubuntuforums.org/forumdisplay.php?f=333


Using the example you gave, first we need to get the data from the webpage.  I copied the first table, pasted it into a spreadsheet (LibreCalc in my case), then exported it as a csv file to list.csv.  The resulting file looks like this:

1921,2:47:29.8,Florestano Benedetti (ITA),1921-09-20,Bologna,Italy
1922,2:46:26,Gabriel Ruotsalainen (FIN),1922-09-10,Helsinki,Finland
1923,2:40:47,Aksel Jensen (DEN),1923-06-16,Windsor,England
1924,2:36:10,Shizo Kanaguri (JPN),1924-04-12,Tokyo,Japan
...

Then we can use grep, sed, awk, or anything else to process the file.  For example, using awk:

$ cat list.csv | awk -F, '$3 !~ /[Dd]/ { print; }'
1921,2:47:29.8,Florestano Benedetti (ITA),1921-09-20,Bologna,Italy
1923,2:40:47,Aksel Jensen (DEN),1923-06-16,Windsor,England
1937,2:30:38,Manuel Dias (POR),1937-03-28,Lisbon,Portugal
1938,2:30:27.6,Pat Dengis (USA),1938-05-30,Salisbury,Massachusetts,USA
...

This prints out any line where the name (the third column, hence $3) does not contain either a D or a d.  See the awk, sed, or grep man pages for further details.


I had issues with systemd-resolved before. You can do the following:

Try disabling and stopping the systemd-resolved service:
sudo systemctl disable systemd-resolved
sudo systemctl stop systemd-resolved

In the [main] section of your /etc/NetworkManager/NetworkManager.conf:
dns=default

Delete the symlink /etc/resolv.conf:
rm /etc/resolv.conf

Restart NetworkManager:
sudo systemctl restart NetworkManager

Then you can create /etc/resolv.conf with your preferred DNS server specified in there.

Finally, test and check if you are getting a better performance out if it.


The easy solution is to use ubuntu 21.04 or later which properly integrates pipewire. Ubuntu 21.04 also defaults to wayland (intel and amd only) so pipewire screen sharing should work out of the box.
The reason is this ubuntu bug which seems to have been solved for 21.04. This issue is not caused by firefox or chromium/chrome.
You may also have some success backporting packages from 21.04 into 20.04 LTS. Unfortunately in this case the only easy solution cannot be used in ubuntu LTS until 2022 (when 22.04 LTS gets wayland and pipewire by default).
I got this info from a reddit comment where the same question is asked.


Finally i didn't managed to recover my system but i resqued my cryptographed files, using this tutorial

http://www.howtogeek.com/116297/how-to-recover-an-encrypted-home-directory-on-ubuntu/


How to Configure gdm3 to allow root login?

Ubuntu 18.04 comes with GDM (Gnome Display Manager) as a default Display Manager. For Security reason user can’t login with root user.
For development and advanced operation, some user may prefer to login as root.
Follow the steps to enable root login on Ubuntu 18.04 GDM display manager.
Step-1: Modify GDM conf file.
Before doing any changes take a back up:
$ sudo cp /etc/gdm3/custom.conf /etc/gdm3/custom.conf.original

Now open up  /etc/gdm3/custom.conf with vi editor as follows:
$ sudo vi /etc/gdm3/custom.conf

Copy and paste the following two lines below [Security] directive.
[Security]
AllowRoot = true
AllowRemoteRoot = true

Save and exit from the editor.
Step-2: Modify PAM conf file.
Now modify PAM (Pluggable Authentication Modules) configuration file.
Before doing any changes take a back up:
$ sudo cp /etc/pam.d/gdm-password /etc/pam.d/gdm-password.original

Now open up  /etc/pam.d/gdm-password with vi editor as follows:
$ sudo vi /etc/pam.d/gdm-password

In the file, search for the following line:
auth    required    pam_succeed_if.so user != root quiet_success

To comment the line just add # in front of the line as shown below:
#auth   required    pam_succeed_if.so user != root quiet_success

Save and exit from the editor.

Note: This step was incomplete in the youtube link provided in the post by the Questioner.

Step-3: Reboot
After reboot, you will reach login screen where there will be a display of  not listed? option just under username. If you click it, you will get another screen where you can enter root as username and then press next button. Now, the next screen appears which collects password. You enter root password.  After successful  authentication you will be logged in as root.
Conclusion:
Questioner @Rogério Dec attempts to look for username root  from lightdm login screen.

This procedure is for gnome GDM according to the youtube video.

If you have not installed gnome desktop, then install the same using the following command:
$ sudo apt install ubuntu-gnome-desktop

If you have already installed both lightdm as well as gdm3, then you need to switch to gdm through following command:
$ sudo dpkg-reconfigure gdm3

After switched to gdm3, follow step-3 to login as root.


How do I perform a command line install when the alternate cd boots to EFI and Grub2

You choose what packages to install in the text mode installer process, not from grub.  When you get to the task selection, simply uncheck the desktop option.


Can you open a terminal and give me the output from

aplay -l

I had this problem in the past. I know SMPlayer can select audio outputs, so it might be worth checking out that app to see if you can get anything at all from your HDMI audio.

On SMPlayer, start up a video, then on the menu select Tools -> Preferences. On the Audio tab go for the Output Driver and change it from Pulse to one of the alsa (0.x - HDA NVidia HDMI) options. See what works.

Installing pavucontrol will also give you much better control over your individual audio outputs. HDMI output may be muted by default.


I am struggling to get back into Windows. (Dual boot)

I was able to get back into Windows!

What I did:

1) I found my BitLocker key on my Microsoft account

2) I went into safemode, which needed the BitLocker key, and suspended BitLocker.

3) restarted computer, and I was back in Windows. Additionally, I turned off fast start up, but I don't know if that changed anything.


Can't reverse mouse scroll wheel on Ubuntu pc

You didn't indicate which DE you are using.  Some desktop environments offer more user customization than others...
If you are using KDE (Kubuntu), all you need to do is check "Reverse scroll direction".
You can find this system setting under the "General" tab in System Settings > Input Devices > Mouse


"Sender address rejected" error in Evolution

It gives you a good clue right there: you didn't configure evolution to log in before trying to send the mail. In the account settings for the relevant account, under "Sending Email", make sure you tick the "server requires authentication" box and fill in a username.


How to change the "page not found" page in a server

Add the following line to your .htaccess file

ErrorDocument 404 /404.html

where 404.html is the name of your html document which will show when handling 404 error.


Hello again an other solution is better than previous is try to an other profile to your computer for example create another user test1 and test it , maybe work that.


While you can't drag up any higher with the title bar, have you tried holding Alt while dragging the window itself with the first mouse button? Some games and applications (VirtualBox in particular) will break this, but in general it should work.

If that doesn't work to allow you to drag the window higher so you can click OK, you
will most likely have to use a command line option to the game, if it has one, or edit its configuration externally, if it stores that in a game.ini or similar somewhere. While it is possible to generically force most applications to a certain size with some tools such as devilspie, this doesn't generally work on games and such that may need to reload assets on resolution changes, or which require preserving an aspect ratio. Games do tend to have a config file, or a command line option, to specify the resolution to use, though.


Switching from Ubuntu to Windows 10 without losing session

I can do it the other way (Windows to Ubuntu) very easily, by going into Hibernate mode from Windows. This saves all active sessions on Windows (putting all logged in users in screen lock mode), and allows me to go to the OS selection screen when I wake up the computer.

There are two serious issues with that:

There is a guaranteed loss of data if you are capable of changing anything on your windows disk from outside windows. The hibernation file will overwrite ANY changes you made. Writing to a hibernated Windows has been made impossible from Ubuntu by the creators of the Linux driver for NTFS with 1 exception: you can delete your hibernation file yourself. Result will be a loss of data on your windows partition.

Anyone that comes in possession of your machine and/or has access to your machine can read out this hibernation file and/or access your information.

Is there a way to do the same on Ubuntu?

The method for sessions was removed from the defaults of Ubuntu (or Linux in general) as it is considered a security breach. With that said and with accepting this: gnome 3 uses extensions. One of those is called window session manager and it will do what you want.

Usage
After a successful setup you should see an "screen" icon at your top bar. Click on it to open the menu. To save your first window session click on the text input and enter a name for it. Click on the save icon to save it.
After this can either restore a previously saved session by clicking on the play icon, delete them by clicking on the x icon or update them by clicking on the save  .
The opened applications and windows are saved independently for each screen combination, which means that you can have a different set of applications and arrangements for each of them and also need to save them independently.


Lenovo ThinkPad X200 Tablet restarts randomly

Are the restarts truly "random"?

I generally avoid laptops because I tend to do CPU heavy things like compiling source code, transcoding video, or light gaming which can sometimes tax the ingrated video chipsets on many laptops.

In nearly all of my experience with laptops, I came to find that I could usually hear my fans spin on before the "random" poweroffs.

Systems are generally designed to power off when they reach high temperatures to avoid damaging the processors, the thermal paste on them, or the board they're seated on.


Actually i had eclipse installed along with android studio. There wasn't any need of android studio so i removed it and then afterwards eclipse was starting from dash.


Shell not handling escape character spaces


Reading apt-get man page answers you.

man apt-get

 update
           update is used to resynchronize the package index files from their
           sources. The indexes of available packages are fetched from the
           location(s) specified in /etc/apt/sources.list. For example, when
           using a Debian archive, this command retrieves and scans the
           Packages.gz files, so that information about new and updated
           packages is available. An update should always be performed before
           an upgrade or dist-upgrade. Please be aware that the overall
           progress meter will be incorrect as the size of the package files
           cannot be known in advance.

In simple words apt-get update fetches the package lists from all reposiotires founded in the /etc/apt/sources.lis file or /etc/apt/sources.list.d dir and updates them to get information on the newest versions of packages and their dependencies.


Samsung notebook spin 7 with ubuntu 18.04 keyboard backlight problem

Maybe you can check these posts

Cannot turn on keyboard backlight
How to automate keyboard backlight on at boot

Mostly running this command on terminal works:

xset led on

or

xset led 3


Restart network with a command without need to provide password

You can make a change to sudoers to allow your user account to execute the necessary commands without password.

Warning: Be sure to not delete anything from sudoers without exactly knowing what its for! You could potentially loose all admin privileges.

Open sudo visudo
In the section headed "Cmnd alias specification" add

Cmnd_Alias NETWORK = /usr/sbin/service network-manager restart

NETWORK is just an alias for a group of commands. Give it a different name if you prefer!
At the end of the file, append the statement

user_name ALL = (ALL) NOPASSWD: NETWORK

where you substitute your user account for user_name. Also replace NETWORK with whatever name you've given the alias. One could also do without the alias and simply replace it by the command, but I prefer it this way. I find it keeps things more organized.
Safe the file and exit the editor. Check with sudo -l that you are now indeed allowed to issue the command.

You still need to prepend the command with sudo, but you won't be prompted for a password anymore.


Can I upgrade my system to Focal Fossa Ubuntu 20.04 if I only have 3.9 GB of RAM?

You will be able to run Ubuntu with a system that reports slightly less than 4GiB.
The page you link uses jargon: In this case the "recommended minimum system requirements" are just recommended minimum system specifications. The term "requirement" is somewhat misleading but is the common term used.
This is hinted at in the line:

"A good "rule of thumb" is that machines that could run XP, Vista,
Windows 7 or x86 OS X will almost always be a lot faster with Ubuntu
even if they are lower-spec than described below."

Your system, if those specs are right, is what's known as 4GiB too, for what it's worth.
The links on this page https://help.ubuntu.com/community/MacBookAir5-2 may help, although they refer to older versions of the Ubuntu distro; if anything things should work better.


What to do about upstart in ubuntu 16.04

While Upstarted is deprecated on 16.04, it is also installed and supported. The Q&A SysV, Upstart and systemd init script coexistence explains the relationship between Upstart and Systemd on 16.04.

That said, using both systemd and upstart together causes extra complexity to debug, as you've just run into. If MythTV provides a systemd unit file that can be used to manage/stop/start the service, prefer that and delete the Upstart config file you found to avoid confusion. If MythTV does provide a systemd unit file, encourage them to do so.


How do I take a screenshot in Ubuntu with a chromebook?

The default command to take screenshot is actually gnome-screenshot, there's several command-line flags that you can provide in addition to that, such as gnome-screenshot -w for taking a window screenshot. Knowing this you can assign a custom keyboard shortcut via  System Settings -> Keyboard -> Shortcuts. I would suggest using AltShiftP  since I don't recall any other application using it, however you are free to choose among the myriad of other possible combinations.

See also: https://askubuntu.com/a/542185/295286


WARNING: The following packages cannot be authenticated. `apt-key update` doesn't work

You have to add the pub key manually.

The command is

sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com «key number»

where «key number» you must replace it with the missing key.

For example in this error you received

NO_PUBKEY 1F968B3903D886E7

you can do

sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com 1F968B3903D886E7
sudo apt-get update

That way you will download this key in your keyring from the keyserver (keyserver.ubuntu.com)

About the BADSIG error, check this answer here


"The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192"

Option 1

From here:

sudo apt-get install --reinstall ubuntu-extras-keyring

Option 2

See here.

Summary:

Open the terminal and run the following commands:

gpg --keyserver keyserver.ubuntu.com --recv 3E5C1192
gpg --export --armor 3E5C1192 | sudo apt-key add -
sudo apt-get update


Add console/text booting mode to grub menu

In my research, there are two ways to do this:
Method 1
Hack 10_linux script in /etc/grub.d/ and insert generation codes for text booting menuentry
Advantages:

Generates text booting menuentry for all installed kernel versions
Takes care of new or redundant menuentries when you install/purge
kernels

Downsides:

Requires deep understanding of shell scripting
The script source file may vary from one grub version to another
Edits need to be redone if grub package updates overwrite the modified script

Method 2
Use designated script for adding custom grub menuentry in /etc/grub.d
Advantages:

Easiest and least complicated
No chance of being overwritten so you do it only once

Downsides:

Only if you want each of your installed kernel versions to have text
booting menuentry:

Lots of work and harder to maintain
Leaving behind redundant menuentries when you purge old kernel versions

In this short step, I'm going with method #2 since it's the easiest to explain here and we'll be creating text booting menuentry only for the latest kernel image that you use.

The first thing that you need is the already generated menuentry for
your latest kernel. We are going to copy and use it as basis for our
custom menuentry, with a little alteration. For that, you need to
look in your /boot/grub/grub.cfg file. Locate the first menuentry
stanza that points to the latest kernel on your Ubuntu. If you're
dual booting with other linux distros, pay extra attention so you
wouldn't mix it up with their menuentries.

Once you found it, copy the entire menuentry stanza and paste it
into /etc/grub.d/40_custom file. It may look like one below. Let's
use this as example:
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-a4e6d610-122e-42e2-8497-39eae02816e8' {
  recordfail
  load_video
  gfxmode $linux_gfx_mode
  insmod gzio
  insmod part_gpt
  insmod ext2
  set root='hd0,gpt2'
  if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  a4e6d610-122e-42e2-8497-39eae02816e8
  else
    search --no-floppy --fs-uuid --set=root a4e6d610-122e-42e2-8497-39eae02816e8
  fi
  linux   /boot/vmlinuz-3.8.0-31-generic root=UUID=a4e6d610-122e-42e2-8497-39eae02816e8 ro   quiet splash $vt_handoff
  initrd  /boot/initrd.img-3.8.0-31-generic
}

Now here's few things that you need to edit in this stanza before you can save the file:

The menuentry title. Change 'Ubuntu' in menuentry line to 'Ubuntu (text mode)'
Path to vmlinuz file in linux line. Substitute /boot/vmlinuz-3.8.0-31-generic with /vmlinuz
grub boot parameter at the end of linux line. Substitute quiet splash with text
Path to initrd image in initrd line. Substitute /boot/initrd.img-3.8.0-31-generic with /initrd.img

Reason why we do the substitutions in both vmlinuz and initrd lines is to take advantages of the symlinks placed in / which points to their latest version in /boot dir so that our custom menuentry can always point to the most recent kernel and won't need to be changed if a new kernel is introduced.

That's it. Execute sudo update-grub to generate the custom menu and you're done.


For anyone else running into this problem I finally figured out that the libgfortran3 package is another requirement (see the list of requirements for Ubuntu 16.04 here: https://ibm.co/2ptyTQy). Installing that fixed it for me.


You can absolutely do this. There are a few things you'll want to do first:

Download ubuntu
Make a bootable usb of ubuntu
Shrink your HDD

Next, you'll want to insert your bootable usb and reboot into BIOS. If you don't know how to do that, EasyUEFI is a nice tool to boot into BIOS and edit the UEFI order (the free trial is fine). To use that tool, install it and click on Power -> Reboot into UEFI.

Once in your BIOS/UEFI, select BOOT and move select the usb or move it to the top and save and exit.

You should then load a screen that has a few options to either try out ubuntu, install it directly, or a few other things. You can do either of the first ones as the live cd version of ubuntu will have a desktop icon to install ubuntu.

Once you start installing you will be asked a variety of settings questions (timezone, name, password, etc). Select whatever settings you want for those, although you probably do want the 3rd party software as that will make your life a bit easier.

Important: don't simply select to install ubuntu alongside the windows bootloader. Instead select the last option to select the custom drive (your HDD). Double click the empty partition you made earlier and set the mount point option to be root (/). Then click install and you should be good to go.

Here's a similar guide with screenshots if you get stuck on that last bit.


There is no problem with the script or the command. But for your confirmation I am giving my log here

frank-Jai% wget https://anki.googlecode.com/files/anki-2.0.12.deb
--2013-08-02 19:09:12--  https://anki.googlecode.com/files/anki-2.0.12.deb
Resolving anki.googlecode.com (anki.googlecode.com)... 74.125.135.82, 2404:6800:4001:c01::52
Connecting to anki.googlecode.com (anki.googlecode.com)|74.125.135.82|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2958570 (2.8M) [application/x-debian-package]
Saving to: ‘anki-2.0.12.deb’

100%[======================================>] 29,58,570   52.0KB/s   in 53s

2013-08-02 19:10:07 (54.1 KB/s) - ‘anki-2.0.12.deb’ saved [2958570/2958570]

I have done the same thing by writing some script as you are trying to do. here is the log ,

frank-Jai% cat install.sh
#!/bin/zsh
wget https://anki.googlecode.com/files/anki-2.0.12.deb
done

output:

frank-Jai% chmod +x install.sh
frank-Jai% ./install.sh
--2013-08-02 19:15:08--  https://anki.googlecode.com/files/anki-2.0.12.deb
Resolving anki.googlecode.com (anki.googlecode.com)... 74.125.135.82, 2404:6800:4001:c01::52
Connecting to anki.googlecode.com (anki.googlecode.com)|74.125.135.82|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2958570 (2.8M) [application/x-debian-package]
Saving to: ‘anki-2.0.12.deb.1’

see and verify with your script to get the where mistake is.

hope that helps a bit.


how to use gparted and make space for windows 7.

Download gparted.iso (here http://gparted.org/download.php),

to make bootable usb drive i use https://unetbootin.github.io/

put it on USB Drive or CD, boot with your usb or cd.

I do your part with.

If you use gparted from your ubuntu you can't do it.
The HDD must be unmount.


Pulseaudio doesn't load settings on startup

I had the same problem as you. I'm using Ubuntu 20.04, and in my case the changes that I did to default.pa was the next ones:
load-module module-echo-cancel source_name=noechosource sink_name=noechosink
set-default-source noechosource
set-default-sink noechosink

Besides, these changes were also included in system.pa. Like in your case, every time I login, I had to execute pulseaudio -k to make pulseaudio load these settings. What I did to solve this problem was to modify the ~/.profile and add these lines at the end of the file:
chrome_open=$(pgrep chrome)
if [ -z "$chrome_open" ]
then
    pulseaudio -k
fi

So every time I login and if Chrome is not open, this command is executed. I use this if statement because if Chorme is open and pulseaudio -k is executed, it is necessary to reload it. I don't know if this is the best solution but it works for me and I hope this answer helps someone like us.


How to increase size of /boot partition using gparted

You need to boot from Ubuntu LiveUSB first.

Your sda5, sda6 and sda7 partitions are inside the extended sda4 partition.

You will need to extend sda4, then move sda5 and sda6 left, then extend sda7.

You will also need to re-install grub, because start sector of your /boot partition will change. It can be done from LiveUSB by

sudo mount /dev/sda5 /mnt
sudo mount /dev/sda7 /mnt/boot
sudo chroot /mnt
sudo grub-install /dev/sda
exit


How can I "install" fonts to use in Visual Studio Code?

To set this beautiful fonts up use the following steps

Download the fonts from here
Unzip and in the ttf folder double click each file and select install from the dialogue box that appears
Setup VSCode:

Open File -> Preferences -> Settings
Top right click on {} and the user settings (settings.json) will open up
Add the following lines:

"editor.fontFamily": "'Fira Code'",
"editor.fontLigatures": true,

Note: I had to comment out the normal font family entry which I can switch back to by reversing the process.

To change the font weight add any of the following lines but not all

"editor.fontWeight": "300" // Light
"editor.fontWeight": "400" // Regular
"editor.fontWeight": "500" // Medium
"editor.fontWeight": "600" // Bold

Restart and enjoy.

My sample user settings.json

{
    "files.autoSave": "onFocusChange",
    "editor.minimap.enabled": false,
    "workbench.iconTheme": "material-icon-theme",
    "vsicons.projectDetection.autoReload": true,
    "workbench.editor.enablePreview": false,
    "workbench.editor.enablePreviewFromQuickOpen": false,
    // "editor.fontFamily": "'Noto Mono', 'Droid Sans Mono', 'Courier New', monospace, 'Droid Sans Fallback'",
    "breadcrumbs.enabled": true,
    "typescript.updateImportsOnFileMove.enabled": "always",
    "git.enableSmartCommit": true,
    "java.home": "/usr/lib/jvm/java-8-oracle",
    // "editor.fontLigatures": true,
    "editor.fontFamily": "'Fira Code', 'Noto Mono', 'Droid Sans Mono', 'Courier New', monospace, 'Droid Sans Fallback'",
    "editor.fontLigatures": true,
    // "editor.fontWeight": "300", // Light
    // "editor.fontWeight": "400", // Regular
    // "editor.fontWeight": "500", // Medium
    // "editor.fontWeight": "600" // Bold
}


SMB/CIFS fail on boot after power outage. Ubuntu 14.04

I also have some problems with it (Starting SMB/CIFS File and Active Directory Server [fail]) and log of samba tell me this:

At this time the samba binary should be used for either: 'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'. You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks.

Not sure what's that means, but file share is working. Found an answear here - http://forums.whirlpool.net.au/archive/2345494 Take a look, may be that would help you 2.


why spelling checker and grammer checkers are not there in LibreOffice

Go to the Language Support menu in the System menu and add the languages you want to support. After that restart LibreOffice and you will see that the spellchecker for example will give you the option of using the newly installed languages.

You do have to select the correct language at the bottom of Writer (somewhere in the middle) or you can click right on an underlined word and select Spelling & Grammar


It was a mistake by Ubuntu GNOME Team, they will patch it as soon as possible. No need to worry, this has already been
reported on Launchpad. You can have look at the
Google+ Announcement.

Quoting the official Ubuntu GNOME Page:

  Ubuntu GNOME Team is aware of this issue. It was too late, due to the final freeze, to change that.

  This will be changed right after the final release of Ubuntu GNOME
  14.04 LTS and it should end up with the GNOME Logo and "Version 3.10" :)

  Thank you!

Update: 10th May This issue has been fixed. Take a look at Comment #11 of bugreport


Critical: Remap power key on Ubuntu 16.04

In a word, No.  When the computer is not on, there is no software running to decide what to do with the key.  The power key has to be hard wired to power on the machine.


Ubuntu does not start after installing tomcat

Press Ctrl+Alt+F1 to got to tty and log in, now run this

dconf reset -f /org/compiz/

then

setsid unity


What's the naming convention for ngettext short name?

I've seen P_ (I assume the letter P stands for plural) used sometimes, but it seems there is not a general agreement or a defined standard for a shortcut to plural strings for translations in gettext.

Generally these shortcuts or macros are used in C and come from GLib, so they are not standard shortcuts from Gettext, but they've become a de facto standard for programs that use GLib. They are generally defined in the /usr/include/glib-2.0/glib/gi18n.h file, and explained in detail on the Internationalization API docs for GLib.

There are definitions for _ (gettext), Q_ (context), C_ (context), N_ (mark for translation only) and NC_ (mark for translation only, with context), but no P_

In any case, in Python you'll need to define the shortcuts yourself, but it'd be goot to stick to the same naming convention, for consistency's sake.

However, I seem to remember intltool does not recognize the P_ shortcut by default, so since ngettext is not used as often as gettext, you might want to just use the actual name of the function and not a shortcut.

If you still want to use a shortcut, and it is not supported by intltool, you'll need to tell intltool to use it, IIRC through the XGETTEXT variable or through the use of a Makevars file.


First I would not advise you to use a repository which is not meant for that series (maverick, lucid, oneiric etc). It can result in lot of problems and cryptic problems.

Do you specifically need the PHP version 5.3.6? Will 5.3.2 work? Being a minor version it should not be of much problem

If yes then you should do an apt-get update

  sudo apt-get update

and then do an upgrade to install PHP 5.3 from the official repositories.

Since 10.04 is LTS, so it is supported even now.

The package php 5.3.2-1ubuntu4.9 was uploaded in Official repository on 2nd May 2011 by Steve Beattie.


Minimize currently focused window keyboard shortcut in Ubuntu 17.10

Press super+h to minimise the focussed window.


Firefox update fails with "not found" error

Seems like you are failing to contact the US mirror so your update is failing.

Open a terminal or press Alt+F2 and type gksu software-properties-gtk, from the small drop down list try to change server to another country or select Main Server from the list, close the tool after your are done.

Upgrade with sudo apt-get update && sudo apt-get upgrade.


Can't use my desktop on Ubuntu 19.10 after upgrading from 18.04

While booting, before login, press CTRL+ALT+F4. This opens a console and once you log in in the console, try the following commands:

sudo apt-get update && apt-get upgrade
sudo dpkg --configure -a

Once the execution is complete, reboot your system.


The Application Center section of Ubuntu Tweak does not add PPAs, the Source Center section does.


After upgrading to Kubuntu 12.10, machine boots directly to Memtest86

The GRUB menu timeout has been set to 0 (not a very good idea), which is why you never see the menu. However, you can hold Shift during booting to force the menu to appear.

I managed the boot the system by typing the following commands at the grub command line:

search --fs-uuid --set=root d6a0fd5a-96fb-4615-bf65-71904e36f947
linux /boot/vmlinuz-3.2.0-31-generic root=UUID=d6a0fd5a-96fb-4615-bf65-71904e36f947 ro
initrd /boot/initrd.img-3.2.0-31-generic
boot

The partition UUIDs are from the grub.cfg in the question.

After booting, I ran Boot-Repair, which fixed the problem.


How to remove windscribe public key in Ubuntu 18.04?

Remove the line in your /etc/apt/sources.list that contains the reference to the https://repo.windscribe.com/ubuntu or it can be in file in the /etc/apt/sources.d/ directory. Either way it needs to be removed for it to stop asking for the key.


Permission problem with SFTP in FileZilla

isn't sudo what you're looking for? In Ubuntu, when you want to get root privileges, you must run "sudo command"... or "sudo su" (there is also "sudo -s", and I think the difference is with environment variables, but I don't remember now) if you really want a root session. The password is your user password.

Try to check the owner of the directories... If I remember correctly, in ubuntu, apache creates a user and group of his own, and that only has access to it's own directories.

EDIT: I believe your only way to fix this is to boot with a Linux live disc and mount your Ubuntu file system there to fix the permissions and owner of the sudo binary (and maybe sudoers file). These commands should do it:

sudo chown root:root /mnt/yourfs/usr/bin/sudo
sudo chmod 4755 /mnt/yourfs/usr/bin/sudo
sudo chown root:root /mnt/yourfs/etc/sudoers
sudo chmod 440 /mnt/yourfs/etc/sudoers

The leading 4 in first chmod is to set the setuid special permission: http://docs.oracle.com/cd/E19683-01/816-4883/secfile-69/index.html


I can't find my user password or change it

Boot in recovery mode as root

perform these commands:

mount -o rw,remount /
nano /etc/sudoers

Look for a line containing root ALL=(ALL:ALL) ALL, below that add this line:

your_username_here ALL=(ALL:ALL) ALL

(change your_username_here to your actual username)

(Press Ctrl+X to exit nano, and answer 'y' to save the changes)

Enter passwd your_username_here and set a new password.

(change your_username_here to your actual username)

Reboot

(source)


Adding repository via terminal results in "add-apt: command not found" error

The command is add-apt-repository, you're missing the second hyphen.


Encoding problems with htmldoc, and similar programs to htmldoc?

There is no UTF-8 support for html2doc. Maybe in version 1.9.

Here is another option:

Install wkhtmltopdf: Command line utilities to convert html to pdf or image using WebKit.

sudo apt-get install wkhtmltopdf

And install poppler-utils:

sudo apt-get install poppler-utils

Go to your html files:

cd <your_html_path>

and start the conversion for single files with:

wkhtmltopdf 0010.html 0010.pdf
wkhtmltopdf 0099.html 0099.pdf

or for all files at once:

for f in *.html; do wkhtmltopdf "$f" "${f%%.*}.pdf"; done

Convert all single pdf files into one:

pdfunite *.pdf out.pdf

or as script:

#!/bin/bash
# Convert all html files in the current folder into one pdf
#
for f in *.html; do wkhtmltopdf "$f" "${f%%.*}.pdf"; done
pdfunite *.pdf out.pdf

More infos and options for wkhtmltopdf here.


What is the .Trash Folder on the NTFS partitions?

For every mountpoint Ubuntu creates .Trash directory when a file is deleted.

The 1000 is the UID of the user that created the bin, so every user can have their own.

  Is it necessary to keep this folder ?

I think it is your choice. It just a bin folder, If you need a bin folder for your mount HD you can keep it.

If you want Ubuntu prevent creating this directory:

Don't use the delete button only (Otherwise the .Trash-1000 folder will be created)
Press the key combination Shift+Delete together to delete, then Ubuntu won't create a .Trash-1000 folder.

Note for 12.04: Under 12.04 i noticed that .trash directory recreated even if you deleted with Shift+Delete

Note:  If you delete this directory files and folders this way they are gone forever


So, it's that simple, just install

sudo apt-get install openjdk-8-jdk

the latest version will be used, even if you have openjdk-7-jdk or any other.

I also installed openjdk-8-doc, openjdk-8-jre, openjdk-8-jre-headless, because they were installed for openjdk-7.


My experience:
with ubuntu 18.04 runnning on hardware amd ryzen7 and saphire radeon rx 560 45W.
amdgpu-pro-18.50-7084488 successfully installed with Linux-kernel 4.20 but did not work (black screen). With that kernel the resume from suspend also did not work (system freeze).
I return to the kernel 4.19.1 and all works perfectly.


How do I install Ubuntu on a separate SSD?

I first started with Linux myself not to long ago, but since I had a lot of problems and spend days on research, I'd say I have enough knowledge to help you out. I went through the same process: I installed Ubuntu on an additional SATA SSD.
GPT for Ubuntu. Windows should anyways also be on GPT drives. It depends on the way your Operating system is booting and windows and ubuntu both use EFI.
Follow this guide:
https://ubuntu.com/tutorials/install-ubuntu-desktop#1-overview
to install safely. Removing all other drives should not be necessary. At one point it should ask you, wether you want to replace your current OS with linux or install it parallel. Then choose parallel and select the SATA SSD. If this option is not showing up or it only lets you install Ubuntu on the same drive with windows, you should choose "other" and follow some video tutorials on how to set up dual boot with ubuntu and windows, where they teach you how you create the partitions yourself. If you dont find a good tutorial, I can give you a step by step instruction.
4. There are different ways to handle data on a drive and you can set up, which one of those protocols your partition uses (examples: NTFS, FAT-32, ext.4, swap or EFI) . The Partition from which you boot in this case requires EFI, while the root partition where you normally have your main data and programms should be ext.4 or ext.3 for Ubuntu. A USB stick f. ex. only has one big partition in NTFS or FAT-32. And this is also why you need GPT for Ubuntu: it's because you can't create EFI-Partitions on MDR drives. When installing, you normally don't have to worry about all this, because the installer handles this for you. If however you need to set this up manually as I described, it's worth to do the research and getting some basic knowledge. It's not necessary, you may just follow a simple tutorial, but I'd still recommend it.
5. Here I don't quite get your question. Is it about boot options in the BIOS setup or do you mean something else?
I hope my answers help you a little. If not you maybe find someone, who has more experience and is better at explaining.
Cheers!
[EDIT- Removing all other drives before installing is of course an option that would work, but I wouldn't recommend it, except you really dont want to bother with anything I mentioned]


Open a terminal (Ctrl+Alt+T).
Run the following command:

rm -rf ~/.config/Clementine

This will delete the configuration files of Clementine, which might have some corrupt or inappropriate content. Next time you launch it, clementine would reconfigure itself and would probably work properly.
Run clementine to check.


Minecraft launcher refuses to launch game in Ubuntu 17.04

If you want to just play, go to Edit Profile on the launch screen, and check Enable experimental development versions ("Snapshots"), Save Profile, and make sure that the use version Use Latest Version is selected in the drop down.

You will be able to play at least, even if it's not the latest stable.

This is a known issue, read more about it here: https://bugs.mojang.com/browse/MC-121292


You will need to use the full path in any cron executed script. So, don't do cd ~, give instead cd /home/jazuly

For further debugging, you can also redirect the output of the cron script to a file, with /home/jazuly/backup.sh 1> /home/jazuly/log.txt 2> /home/jazuly/err.txt

So the whole command:

# m h dom mon dow command
0 0 * * * /bin/bash /home/jazuly/backup.sh 1> /home/jazuly/log.txt 2> /home/jazuly/err.txt


Can't type a tilde from Mac running Ubuntu 16.04.1 destop

Please check your keyboard if any modifier-key (like Ctrl,Alt,AltGr etc) sticks down. If that point is cleared, open terminal:

mook@MookPC:~$ sudo showkey -s
kb mode was ?UNKNOWN?
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]

press any key (program terminates 10s after last keypress)...
0x9c
0x29 0xa9
0x29 0xa9
0x29 0xa9
mook@MookPC:~$

I ran the command and hit "~" key three times. You don't need to hold Shift-key pressed.

0x9c is a leftover from releasing the enter-key
0x29 is press ~
0xa9 is release ~

If you get the same scancode for the "~"-key, you have a problem with the  keyboard-model you choosed in system-settings.


Ubuntu Suspend issue with Self Encrypted Disk

Suspend locks the disks because the power is cut.  It is up to the computer's bios to unlock the drive again during resume.  If it fails to do so, it is a bug in your bios and you will have to hope ( don't hold your breath ) that your motherboard vendor fixes it.


How to install an Edimax EW-7833UAC in 19.10

To use the aircrack-ng module from github, in terminal do
sudo apt install git dkms
git clone https://github.com/aircrack-ng/rtl8812au.git
cd rtl8812au
sudo ./dkms-install.sh
Then check mokutil --sb-state as Secure Boot needs to be disabled if Ubuntu is installed in UEFI


sed command to replace a value in config file

Use sed:

sed -i 's/\(^Key2=\).*/\1Value4/' file

The -i flag activates seds in-place editing. It searches for a line that begins with Key2= and replaces the line with the key (\1) followed by the new value Value4.

Edit:

If you have slashes or other command characters used in sed, you have to escape them:

sed -i 's/\(^Key2=\).*/\1long\/value\'/with\$many\"strange\^characters/' /path/to/file

Edit 2: In your case:

sed -i  's/\(^TestT_STOA_TS1901=\).*/\1N/' /app/test/must/untuio.cf