12.04 64-bit Desktop - Nvidia drivers fail to startx

Dan, you don't say what version of Ubuntu you have installed.

I haven't run with nVidia drivers on Ubuntu for a couple of years now (though I'm itching to go back), but I did get the dreaded "no screens found" error on more than one occassion. It was usually because my /etc/X11/xorg.conf file was broken.

I've ratted through my backups to find this, from when I was running a Dell 2405FPW (wide screen), does your file look similar to the following?

Section "Monitor"
    Identifier     "Configured Monitor"
EndSection

Section "Screen"
    Identifier     "Default Screen"
    Device         "Configured Video Device"
    Monitor        "Configured Monitor"
    Option         "NoLogo" "True"
    DefaultDepth    24
    SubSection "Display"
        Depth       24
        Modes      "nvidia-auto-select"
    EndSubSection
EndSection

Section "Module"
    Load           "glx"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "keyboard"
EndSection

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen         "Default Screen" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Device"
    Identifier     "Configured Video Device"
    Driver  "nvidia"
    Option  "NoLogo"    "True"
EndSection

If it looks ok then, as per the error message, /var/log/Xorg.0.log may contain some useful pointers.

Good luck!


Starting from 9.10 Pulse Audio merges the sound mixing from ALSA. This has the side effect that you are able to increase the sound level to >100% if you need to. This of course goes on the cost of sound quality as pcm sound will get distorted when overamplified. You can disable this behaviour in PulseAudio if you want.

Or, on Ubuntu > 16.04, whether the Sound Settings control panel volume slider allows setting the volume above 100% is controlled by the following dconf key. Run the following command to disallow setting the volume above 100%. Change takes effect immediately.

dconf write com/ubuntu/sound/allow-amplified-volume false

This setting can also be done from the dconf-editor:


Window stuck on 'Force UEFI installation?' window

It turns out that the problem exists with the option presented in the first installation screen 'Download Updates while Installing'.

Nevertheless, given that this bug was reported in May 2015 - it should have been dealt with by now.

UPDATE: Based on a comment by ‘Nur’, he/she has noted that it might not only suffice to have the Download Updates option unchecked - you must also disconnect yourself from the internet.


13.10 login loop, multiple solutions failed

Maybe you changed permissions on your /home/user folder. Try running this in a terminal:

chmod 777 -R /home/user

It worked for me


Create a USB bootable Windows 8.1 from Ubuntu live USB

In your question you wrote:

  6) I CAN'T install program, because I'm in a live USB mode, anyway,
  I've tried to install (for using the programs that must be installed)
  Ubuntu on my SSD but at the end, it tells me that there is a problem
  with GRUB (my Ubuntu boot is in EFI mode), and I think that I can't
  install grub because I'm in a liveUSB...

Fortunately things are better than what you thought. It is possible to install a program in a live system, and it can be used.

The installed program will survive as long as the live system is running. If you shutdown or reboot the live system, the installed program will be gone (but can be installed again). In other words, this is a useful option, if you intend to do something once. So it is possible to install mkusb or some other tool and use it to create a USB install drive for Windows 8.1.

There is also an alternative, that should work without installing anything.

See the following link to a 'Do It Yourself' method,

https://help.ubuntu.com/community/Installation/iso2usb/diy

If there are problems with this 'diy' method, mkusb could still work, due to the copying method via a tarball, as described by @MichaelBay in a comment and at this link.


How to enable nvidia-settings and nvclock to set clock frequencies

Option "Coolbits" "1"

Should look like this, not sure whether quotes do it any good but seems to be working in my system with 9500gt.

Also be sure you added it in Section "Screen".


I also just found it was removed (grrrrrrr).

Turns out it can be built rather easily:

sudo apt install extra-cmake-modules
git clone -b maint https://github.com/j6t/kdbg.git
cd kdbg/
git tag -l
git checkout kdbg-3.0.1
cmake .
sudo make install

In fact, I had to install some missing packages (cmake . failed for me complaining about missing things) but they were not difficult to find. For example I saw some error about missing Kf5IconThemeSomething and Kf5XmlGuiSomething, where it helped to

sudo apt install libkf5iconthemes-dev libkf5xmlgui-dev

(and retry)

Depending on the system of course much more packages may be needed (starting from compiler and cmake) – but considering you need debugger you likely have them already.


Equivalent of Partition Magic for Ubuntu

Gparted is what you're looking for.  If you need to resize the partition of your current OS you'll need to use a live cd like the one Gparted provides here or you can use something like System Rescue CD which also has Gparted built in.

Good luck!


proliant dl380 g4 lm_sensors doesn't work

Unfortunately it seems the HP Proliant DL servers do not use the SMBus for the sensors that is why they are not detected, a bios update will not fix the issue either.

HP has a utility to read data from the Internal Lights Out Management board and the hplog utility is used to get the temp and fan speed values.

I found some correspondence confirming this here  this dates back to 2006 so it is likely HP have not done anything about it.


How to enable Empathy incoming message notifications?

In the Preferences window you can only disable/enable the visual notifications. There is a message notifier extension which is pretty customizable too

https://extensions.gnome.org/extension/150/message-notifier/

In case you are still not getting notification then you might try the method described in a previous question.

How to enable Empathy chat room notifications?


How to access Amazon EC2 instance from Ubuntu 13.10?

It is easy to connect to ec2 instance
you just need a .pem key (Public key)  username and public dns

for example sudo ssh -i "public key" username@public dns

sudo ssh -i "xyz.pem" ubuntu@ec2-public-ip.compute-1.amazonaws.com

after that select yes

That it now You can connect to EC2 instance through terminal.


Network-Manager causes it. It manages it own configuration for every connection and configures your adapter to suit its needs. If you want it to use eui64 on your network, configure the connection accordingly. You may also make it the default by editing /etc/NetworkManager/NetworkManager.conf, adding this:
[connection]
ipv6.addr-gen-mode=eui64


I own an Acer One 10 s1002. Managed to run Puppy Linux and Porteus, but do not get a working keyboard or wifi.
Strangely enough I get results if I burn a 32 ISO to USB stick with rufus (MBR) and create an EFI/boot map on the stick with bootia32.efi in it ...
The stick then boots to grub. With the commands set root=(hd0,msdos1) and Linux,initrd + boot I can run Puppy Linux 64, but no keyboard, no wifi.
Ubuntus whether 32 or 64 all boot to grub but following commmands to boot just end
in black screen and having to push the power button, as commented in other posts.


You need to install a proprietary AMD driver.

Run in terminal

sudo apt-get install fglrx

and reboot.


Ubuntu 17.04 Unity Keyboard Shortcut not working

Install gnome-tweak-tool:

sudo apt-get install gnome-tweak-tool

After installation run this command:

gnome-tweak-tool

Tap on Keyboard & Mouse --> Turn on Show Extended Input Sources --> Log Out --> Log On.


Broken dependencies while installing any software

Answer in progress

Downgrade the packages libc6 and libc6:i386

sudo apt-get install libc6=2.15-0ubuntu10.12
sudo apt-get install libc6:i386=2.15-0ubuntu10.12

You have installed version 2.19-18 and this version blocks the installation of libc-dev-bin

After that

sudo apt-get install -f


Power Management only has the option of "Do Nothing" for critically low battery in 17.10

Step 1: Check gsettings

There are two options you can check in the terminal:

$ gsettings get org.gnome.settings-daemon.plugins.power critical-battery-action
'suspend'
$ gsettings get org.gnome.settings-daemon.plugins.power percentage-low
'10'

Then to change them use:

$ gsettings set org.gnome.settings-daemon.plugins.power critical-battery-action suspend
$ gsettings set org.gnome.settings-daemon.plugins.power percentage-low 10

Note on my system they are just fine, so I changed them back to what they were in the first place for sake of example.

Step 2: Check upower

Gnome power management utilizes upower to do the heavy lifting. To ensure it is running and collecting battery statistics as it should, use:

$ upower -d
Device: /org/freedesktop/UPower/devices/line_power_ACAD
  native-path:          ACAD
  power supply:         yes
  updated:              Sun 18 Mar 2018 02:28:25 PM MDT (135878 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    warning-level:       none
    online:              yes
    icon-name:          'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/battery_BAT1
  native-path:          BAT1
  vendor:               COMPAL
  model:                PABAS0241231
  serial:               41167
  power supply:         yes
  updated:              Tue 20 Mar 2018 04:12:10 AM MDT (53 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               charging
    warning-level:       none
    energy:              48.2544 Wh
    energy-empty:        0 Wh
    energy-full:         93.3552 Wh
    energy-full-design:  96.48 Wh
    energy-rate:         0.0044914 W
    voltage:             14.76 V
    percentage:          51%
    capacity:            96.7612%
    technology:          lithium-ion
    icon-name:          'battery-good-charging-symbolic'

Device: /org/freedesktop/UPower/devices/mouse_0003o046Do101Ax0008
  native-path:          /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.2/0003:046D:C52B.0003/0003:046D:101A.0008
  vendor:               Logitech, Inc.
  model:                Performance MX
  serial:               E6CE4571
  power supply:         no
  updated:              Tue 20 Mar 2018 04:12:09 AM MDT (54 seconds ago)
  has history:          yes
  has statistics:       no
  mouse
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    percentage:          55%
    icon-name:          'battery-good-symbolic'

Device: /org/freedesktop/UPower/devices/keyboard_0003o046Do2010x0009
  native-path:          /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.2/0003:046D:C52B.0003/0003:046D:2010.0009
  vendor:               Logitech, Inc.
  model:                K800
  serial:               6DB54BFE
  power supply:         no
  updated:              Tue 20 Mar 2018 04:12:09 AM MDT (54 seconds ago)
  has history:          yes
  has statistics:       no
  keyboard
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    percentage:          90%
    icon-name:          'battery-full-symbolic'

Device: /org/freedesktop/UPower/devices/ups_hiddev3
  native-path:          /sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.4/1-1.4.4:1.0/usbmisc/hiddev3
  vendor:               CPS
  model:                CP550HGa
  serial:               BFBB104#BI1.g
  power supply:         yes
  updated:              Tue 20 Mar 2018 04:12:51 AM MDT (12 seconds ago)
  has history:          yes
  has statistics:       yes
  ups
    present:             yes
    state:               fully-charged
    warning-level:       none
    time to empty:       37.5 minutes
    percentage:          100%
    icon-name:          'battery-full-charged-symbolic'

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  updated:              Tue 20 Mar 2018 04:10:14 AM MDT (169 seconds ago)
  has history:          no
  has statistics:       no
  ups
    present:             yes
    state:               fully-charged
    warning-level:       none
    time to empty:       37.5 minutes
    percentage:          100%
    icon-name:          'battery-full-charged-symbolic'

Daemon:
  daemon-version:  0.99.4
  on-battery:      no
  lid-is-closed:   no
  lid-is-present:  yes
  critical-action: HybridSleep

First run this command when the laptop is plugged in. Then unplug the laptop and run the command after some time and ensure battery remaining time has reduced appropriately.

Last Step - Low level hibernation

This is the last step which would be taken after exhausting all other steps. This step doesn't require Ubuntu or Unity or Gnome or gsettings or upower. It only requires systemd, udev and cron which are built into almost all Linux Distros with or without GUI (Desktop).

From ArchLinux:

Hibernate on low battery level

If your battery sends events to udev whenever it (dis)charges by 1%, you can use this udev rule to automatically hibernate the system when battery level is critical, and thus prevent all unsaved work from being lost.
Note: Not all batteries report discharge events. Test by running udevadm monitor --property while on battery and see if any events are reported. You should wait at least 1% drop. If no events are reported and /sys/class/power_supply/BAT0/alarm is non-zero then the battery will likely trigger an event when BAT0/energy_now drops below the alarm value, and the udev rule will work as long as the percentage math works out. Some laptops have an option for this disabled in BIOS by default.

$ cat /etc/udev/rules.d/99-lowbat.rules

# Suspend the system when battery level drops to 5% or lower
SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", ATTR{capacity}=="[0-5]", RUN+="/usr/bin/systemctl hibernate"

This rule will be repeated whenever the condition is set. As such, when resuming from hibernate when the battery is critical, the computer will hibernate directly. Some laptops do not boot beyond a certain battery level, so the rule could be adjusted accordingly.

Batteries can jump to a lower value instead of discharging continuously, therefore a udev string matching pattern for all capacities 0 through 5 is used.

Other rules can be added to perform different actions depending on power supply status and/or capacity.

If your system has no or missing ACPI events, use cron with the following script:

#!/bin/sh
acpi -b | awk -F'[,:%]' '{print $2, $3}' | {
    read -r status capacity

    if [ "$status" = Discharging -a "$capacity" -lt 5 ]; then
        logger "Critical battery threshold"
        systemctl hibernate
    fi
}

Testing events

One way to test udev rules is to have them create a file when they are run. For example:

$ cat /etc/udev/rules.d/98-discharging.rules

SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", RUN+="/usr/bin/touch /home/example/discharging"

This creates a file at /home/example/discharging when the laptop charger is unplugged. You can test whether the rule worked by unplugging your laptop and looking for this file. For more advanced udev rule testing, see Udev#Testing rules before loading.

Summary

There are more steps to post between Step #2 and "Last Step" but these will be posted as OP reveals more details after testing. In the mean time the "Last Step" should reduce more half-way answers like simply reporting percentage remaining.


Why am getting booted straight to Ubuntu?

Ok fixed my issue i changed my storage boot option and other pci device ROM priority both to UEFI only and enabled LAN PXE Boot option ROM and then updated grub and rebooted my pc and it got fixed


Does the SoundBlasterX G5 work in Ubuntu?

Well, this thing works flawlessly in Ubuntu :D

Just plug and play. It does help to dual boot with windows though so you can use the software to set your three profiles.


This is apparently normal behavior for NFS. Mounted file systems are not re-exported automatically. You must explicitly export the mounted filesystem in /etc/exports on the server:

/location/disk           clientMachine(rw,sync,no_subtree_check,no_root_squash)

Don't forget to sudo exportfs -ra on the server, then unmount and re-mount /location on the client.

See also: this unix.stackexchange question


try adding
Option "ClickPad"         "true"
Option "EmulateMidButtonTime" "0"

in /usr/share/X11/xorg.conf.d/50-synaptics.conf
This worked for my dell 9343 running 14.10
more info
Right click on Synaptic Touchpad not working on Ubuntu 14.10


I'm answering the question myself. The GatewayPorts needed to be turned on.

sudo vi /etc/ssh/sshd_config

add GatewayPorts yes

sudo service ssh restart


I got the same problem ""Failed to load session Ubuntu"" when I was trying to login afer uninstall Compiz.

I tried to boot from USB with Live Ubuntu inside and others ways but it doensnt work.

At the end, it comes up with a simple solution.

Boot your Ubuntu as normal
When you see the log-in screen, try to Ctrl - Alt - F1
In my case (ubuntu 12.10), a blank screen appears. dont be panic, try Ctrl - Alt - F2
A login console shows up and ask you to login using your id and password.
After login. Run these commands. (tested)

sudo apt-get update
sudo apt-get install unity-2d
sudo apt-get install ubuntu-desktop
sudo apt-get install compizconfig-settings-manager
sudo apt-get install compiz-plugins-extra
sudo apt-get update

I got this above list of commands from How can I remove and re-install Unity?
but some doesnt work so I mentioned only good-running command in my case.
I highly recommend to restart your system before try to login again.

sudo shutdown -r now

Hope it helps you to solve your problem.

Linh


The Ubuntu for Android source code has not been released yet (and is non-trivial to integrate into an existing Android image, requiring some modifications to the graphics stack to share the HDMI port).

What you can play with right now is Ubuntu Touch, which is a full phone OS rather than something that coexists with Android.


Lubuntu 20.04- How do I disable the virtual keyboard on login screen?

To answer the second part of your question, yes essentially you would just add it to the file and it should look like this:
[General]
InputMethod=

For reference, a similar question has been asked on the Lubuntu forum as well. https://discourse.lubuntu.me/t/removing-keyboard-on-boot/1932/7


ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2)

I just figure out that this error is because I didn't install a mysql-server on my machine and since parrot sec dosen't support mysql anymore. I did install XAMPP and did run mysql using integrated mysql on XAMPP using the command mysql -h 127.0.0.1 -P 3306 -u root -p but you need to run first xampp and start mysql on it and everything should works


How to get the current GNOME terminal profile?

The question was modified in comments: How to get the background color? For this, the command xtermcontrol --get-bg can be used.

This particular command relies on the terminal emulator supporting the OSC 11 escape sequence, which usually goes together with OSC 12 (foreground; xtermcontrol --get-fg), OSC 4 (palette colors; xtermcontrol --get-color0 .. --get-color15) and a few others. Some popular terminal emulators implement these, some other popular ones don't, so these commands don't work everywhere. The VTE widget, and hence in turn VTE-based terminal emulators such as gnome-terminal do support these.

These escape sequences are quite tricky when they are used for querying the colors rather than setting them: The response is injected by the terminal emulator exactly as if it came from the keyboard, that is, as if the user typed it. xtermcontrol reads this input and then prints as output, hiding this technical detail. (And if you really wish to, you can fool xtermcontrol to report a wrong answer by manually typing one from the keyboard, haha.)

Back to the original question:

There is no way to query the current profile in gnome-terminal. Why?

Reading gsettings or dconf cannot work for two reasons:

They contain the static configuration (settings) of gnome-terminal, not runtime information. Even if they contained runtime information, they'd have to contain the information for all the open gnome-terminal windows and tabs, each of which might be using a separate profile. And then somehow we'd still need to be able to identify which one to look for.
They can only work locally, not across e.g. a su or ssh.

gnome-terminal could initialize an environment variable when a window or tab is opened, but there's no way to update it subsequently if the profile is changed. (See also the discussion about $COLORFGBG at https://bugzilla.gnome.org/show_bug.cgi?id=733423.)
It could report the current profile as a response to some escape sequence, as if the user typed it from the keyboard (similarly to the aforementioned OSC 4, 10, 11). However, there's no standard for this, and it would even have security implications (see https://bugzilla.gnome.org/show_bug.cgi?id=151260), plus presumably no support in the xtermcontrol utility for many years to come (heck it doesn't even support 256 colors yet).


non-PAE installer hangs after a brief flash 'Installing Release Files...' ; how do I get past this?

It is still installing when the purple screen is up. Just wait.

Thanks Tanel Mae, you could make this an answer yourself if you want the rep. I'm adding this as an accepted answer by me so that it doesn't come up on the 'Unanswered' questions list.


What is the similar command for "rpm -qp --queryformat"

apt-cache specificly show and showpkg  should meet most of your listed needs. The following code result is for a package that is not installed on my system but is available. apt-cache only reads from the APT's local package cache, and could be inaccurate if not recently updated.

apt-cache showpkg 0ad
Package: 0ad
Versions:
0.0.20-1 (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_xenial_universe_binary-amd64_Packages)
 Description Language:
                 File: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_xenial_universe_binary-amd64_Packages
                  MD5: d943033bedada21853d2ae54a2578a7b
 Description Language:
                 File: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_xenial_universe_binary-i386_Packages
                  MD5: d943033bedada21853d2ae54a2578a7b
 Description Language: en
                 File: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_xenial_universe_i18n_Translation-en
                  MD5: d943033bedada21853d2ae54a2578a7b

Reverse Depends:
  0ad-dbg,0ad 0.0.20-1
  0ad:i386,0ad
  games-strategy,0ad
  games-finest,0ad
  games-c++-dev,0ad
  0ad-data,0ad
  0ad-data-common,0ad
Dependencies:
0.0.20-1 - dpkg (2 1.15.6~) 0ad-data (2 0.0.20) 0ad-data (1 0.0.20-1) 0ad-data-common (2 0.0.20) 0ad-data-common (1 0.0.20-1) libboost-filesystem1.58.0 (0 (null)) libc6 (2 2.15) libcurl3-gnutls (2 7.16.2) libenet7 (0 (null)) libgcc1 (2 1:3.4) libgl1-mesa-glx (16 (null)) libgl1 (0 (null)) libgloox13v5 (0 (null)) libicu55 (2 55.1-1~) libminiupnpc10 (2 1.9.20140610) libnspr4 (2 2:4.9.2) libnvtt2 (0 (null)) libopenal1 (2 1.14) libpng12-0 (2 1.2.13-4) libsdl2-2.0-0 (2 2.0.4) libstdc++6 (2 5.2) libvorbisfile3 (2 1.1.2) libwxbase3.0-0v5 (2 3.0.2+dfsg) libwxgtk3.0-0v5 (2 3.0.2+dfsg) libx11-6 (0 (null)) libxcursor1 (4 1.1.2) libxml2 (2 2.9.0) zlib1g (2 1:1.2.0) 0ad:i386 (32 (null))
Provides:
0.0.20-1 -
Reverse Provides:

apt-cache show 0ad
Package: 0ad
Priority: optional
Section: universe/games
Installed-Size: 17865
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
Architecture: amd64
Version: 0.0.20-1
Depends: 0ad-data (>= 0.0.20), 0ad-data (<= 0.0.20-1), 0ad-data-common (>= 0.0.20), 0ad-data-common (<= 0.0.20-1), libboost-filesystem1.58.0, libc6 (>= 2.15), libcurl3-gnutls (>= 7.16.2), libenet7, libgcc1 (>= 1:3.4), libgl1-mesa-glx | libgl1, libgloox13v5, libicu55 (>= 55.1-1~), libminiupnpc10 (>= 1.9.20140610), libnspr4 (>= 2:4.9.2), libnvtt2, libopenal1 (>= 1.14), libpng12-0 (>= 1.2.13-4), libsdl2-2.0-0 (>= 2.0.4), libstdc++6 (>= 5.2), libvorbisfile3 (>= 1.1.2), libwxbase3.0-0v5 (>= 3.0.2+dfsg), libwxgtk3.0-0v5 (>= 3.0.2+dfsg), libx11-6, libxcursor1 (>> 1.1.2), libxml2 (>= 2.9.0), zlib1g (>= 1:1.2.0)
Pre-Depends: dpkg (>= 1.15.6~)
Filename: pool/universe/0/0ad/0ad_0.0.20-1_amd64.deb
Size: 5071640
MD5sum: 205c3197b2a807d2bf455e138f8332a5
SHA1: c64a2e29ebb7cec741c21b703b935ef5ff3c412f
SHA256: 006fa3e766cc601510d78861ac2f15d20de0373404ac26fb95a0e943ee38977f
Description-en: Real-time strategy game of ancient warfare
 0 A.D. (pronounced "zero ey-dee") is a free, open-source, cross-platform
 real-time strategy (RTS) game of ancient warfare. In short, it is a
 historically-based war/economy game that allows players to relive or rewrite
 the history of Western civilizations, focusing on the years between 500 B.C.
 and 500 A.D. The project is highly ambitious, involving state-of-the-art 3D
 graphics, detailed artwork, sound, and a flexible and powerful custom-built
 game engine.
Description-md5: d943033bedada21853d2ae54a2578a7b
Homepage: http://play0ad.com/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu


Yes I believe so when you get to the "Installation Type" select "Something Else".

When creating partitions declare the desired mount point. ie "/boot" and "/", etc

This seems to be a simple guide to the tool and how to get to it.
http://easyaosp.blogopogo.com/2013/04/28/obtain-and-compile-aosp-using-lubuntu-second-step-install-lubuntu/

HTH


Ubuntu in Acer will become idle while using

install your aspire's display graphic drivers


How to stop ClamAV/Clamscan from hogging the CPU/ draining the battery in Ubuntu 18.04?

If you've installed the Clam GUI clamTk and clamtk-gnome, (https://dave-theunsub.github.io/clamtk/), bring up the GUI, select the Scheduler icon, and set the desired scan frequency, or none at all.


Mercury Avatar (Elantech) touchpad multitouch and gesture are not supported?

Gestures such as pinch, zoom, rotate aren't support by the x.org. You may be able to get scrolling to work depends on how your touchpad interfaces with Ubuntu.

I'm assuming your touchpad is currently working. If so you should be able to configure it with Synaptics Touchpad software.

Alternatively your touchpad may only be recognized as a mouse input device, as happens occassionally with Elantech touchpads. To you check this by running xinput --list and checking whether your device is recognized as an Elantech touchpad or perhaps a generic mouse input device. If the device is only recognized as a generic mouse device you'll likely have to install the psmouse drivers to get your touchpad properly recognized.

Let me know how you go with the xinput and i'll help you troubleshoot


How to use ffmpeg to convert ape to mp3?

First make sure that you have the libavcodec-extra-53 package for encoding to mp3 installed.
sudo apt-get install libavcodec-extra-53

Try to convert the .ape file to .mp3 using ffmpeg and you will get the following message:
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release.
Please use avconv instead.

This is the same error message that you got in your question. So use avconv instead. The avconv program is provided by the libav-tools package from the Ubuntu Software Center. avconv, like ffmpeg, is run from the terminal.
This example uses 256kbps bitrate for the output.mp3 file and id3v2_version 3 for the metadata tags. First change directory using the cd command to the same directory where your input.ape file to be converted is located. Then run the command:
avconv -i 'input.ape' -id3v2_version 3 -codec:a libmp3lame -b 256k 'output.mp3'

Note: The command: ffmpeg -i '10 Make Peace.ape' -acodec libmp3lame -b 256k -id3v2_version 3 '10 Make Peace.mp3' will also do the conversion to mp3 using ffmpeg, but you will get the THIS PROGRAM IS DEPRECATED error message. The ffmpeg package is still available in Ubuntu 13.10 and earlier releases.
In Ubuntu 14.04, the Libav codec library (additional codecs) package (libavcodec-extra-53) has been updated to libavcodec-extra-54. In Ubuntu 14.10 and 15.04, the Libav codec library (additional codecs) package has been updated to libavcodec-extra-56.
Updates for Ubuntu 15.10 and later
In Ubuntu 15.10 and 16.04, the Libav codec library (additional codecs) package has been updated to libavcodec-ffmpeg-extra56.
In Ubuntu 16.10, 17.04, 17.10 and 18.04 the Libav codec library (additional codecs) package has been updated to libavcodec-extra57.
In Ubuntu 18.10 and 19.04 the Libav codec library (additional codecs) package has been updated to libavcodec-extra58.


Ressource difference between server and desktop

You ask two different questions, I'll address the 12.04 vs 12.10 here. In a very subjective way, because it is a subjective issue.

12.04 is the LTS (long term support) version. I have excellent experience with LTS Ubuntu; my main workstation runs 10.04 LTS and I still do not see a reason to upgrade. Personally, I opt for 12.04. I'm old, and the time flows very quickly; I remember installing 10.04 as if it was yesterday. I don't want to fiddle with installations too often.

12.10 will soon be replaced by another Ubuntu version, and will not be supported in the long run. However, it features all what is new and shiny, including web apps and commercials from Amazon.


upgrading Ubuntu from 14.04 to 16.04_ Update problem

You don't have to worry about the message. It is just a warning. SHA1 hashing algorithm is being deprecated. Below link has more information regarding this.

https://konklone.com/post/why-google-is-hurrying-the-web-to-kill-sha-1


How to restore my certificates at /etc/ssl/certs?

I did not found the reason for the weird issues, but reinstalling the core-utils

sudo apt install --reinstall coreutils

solved my issues.


Plymouthd crashes on startup in Ubuntu 18.10

If you did a0b1's answer, edit /etc/default/grub, then restore:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Then, in the same file, find:

#GRUB_GFXMODE=640x480

and change it to:

GRUB_GFXMODE=640x480

Save the file, and then:

sudo update-grub
reboot


Setting up Ubuntu 12.04 to be accessed remotely from anywhere

You have many options; I'll list some then you could choose what to apply and look for its detailed steps :

Install Teamviewer on Linux machine and setup unattended access; then you will be able to access it from anywhere
Set up your Internet gateway, router, modem... etc with port forwarding then connect to the real IP and the configured port.
On the Ubuntu machine; you may install VNC server, xRDP, FreeNX...etc


Bitcoin-qt: symbol lookup error: bitcoin-qt: undefined symbol: _ZN12QApplication10commitDataER15QSessionManager

Because I'm sure anyone using Bitcoin-qt on Ubuntu will inevitably face this issue since I have faced it 4 times without fail in a row:

Go to /usr/local/lib and you will find a bunch of libQt files there like libQtCore.so* and libQtGui, etc. Move EVERY libQt file out from /usr/local/lib and move it into /usr/.

For some reason, this will let Bitcoin-qt run again.

Before, clicking on it from the Search menu did nothing, clicking the executable in the /usr/bin/ folder did nothing, and running bitcoin-qt from a terminal window did nothing. Now it works fine again and everything will run.

Solved after 4 reinstallations of Ubuntu, breaking my system once (and losing some code I wrote), and many many hours of googling and trying everything there is.


Which is the most user-friendly installation of Ubuntu for Sony Vaio VGN-Z21WN?

I'll give my own experience:

1) I'm pretty sure the installation is equally trouble-free for all *ubuntu (ubuntu, xubuntu, kubuntu, etc.).

2) Maybe to be aware about the partitioning procedure, as you are asking to have a dual boot with Windows.

3) As mentioned in 2), you can have dual boot. You should look for tutorials on doing this (it's full of them...). I'd recommend to install win xp first, and then ubuntu. That's because of GRUB as a loader with which you can select the OS to boot (ubuntu, win xp). But if you first install ubuntu and then win, the win boot will re-write the MBR and GRUB will be erased. In consecuence, you won't be able to boot in ubuntu unless you repair GRUB... it's kind of messy.

4) I'm not sure, sorry I can't help with this one.


Realtek RTL8821AE Wifi driver/alternative

I suggest you to use this driver from iwfinger.
To install it, open a terminal and type the following commands:

Note:get Internet connection or download the drivers from another computer and move them to your current computer via the link below.

Download drivers:

sudo apt-get install build-essential git
git clone https://github.com/lwfinger/rtlwifi_new.git

Install drivers:

cd ./rtlwifi_new
make
sudo make install
sudo modprobe rtl8821ae

Replace rtl8821ae in last command with your chip model. To see your rtlwifi chip model use:

lspci | grep Wireless

or

lspci

This driver will make your rtlwifi card more stable and usable. I use it for my Asus E202S which had lot of bugs with wifi.


As regards Synaptic I think the 'secret' lies in this file:

/usr/share/polkit-1/actions/com.ubuntu.pkexec.synaptic.policy


Method 1 - using a script within /lib/systemd/system-sleep directory

Create a script in /lib/systemd/system-sleep that looks like this:

#!/bin/sh

case $1/$2 in
  pre/*)
    echo "Going to $2..."
    killall libinput-debug-events
    ;;
  post/*)
    echo "Waking up from $2..."
    # Place your post suspend (resume) commands here, or `exit 0` if no post suspend action required
    sleep 2
    libinput-gestures-setup start
    ;;
esac

To ensure the script is created with the right permissions, copy and existing script and then edit it:

cd /lib/systemd/system-sleep
sudo cp wpasupplicant tv_refresh
gksu gedit tv_refresh

The sleep 2 pause may be unnecessary for you but for my setup it was necessary restoring sound from laptop back to HDMI TV.

The echo lines are optional but are handy because they show up in /var/log/syslog.

Method 2 - using systemd services for root or user

From: (archlinux - Power Management) we get detailed instructions for suspending and resuming either under root powers or user powers.

Suspend/resume service files

Service files can be hooked into suspend.target, hibernate.target and sleep.target to execute actions before or after suspend/hibernate. Separate files should be created for user actions and root/system actions. Enable the suspend@user and resume@user services to have them started at boot. Examples:

Suspend

/etc/systemd/system/suspend@.service
[Unit]
Description=User suspend actions
Before=sleep.target

[Service]
User=%I
Type=simple
Environment=DISPLAY=:0
ExecStartPre= -/usr/bin/pkill -u %u unison ; /usr/local/bin/music.sh stop ; /usr/bin/mysql -e 'slave stop'
ExecStart=/usr/bin/sflock
ExecStartPost=/usr/bin/sleep 1

[Install]
WantedBy=sleep.target

Resume

/etc/systemd/system/resume@.service
[Unit]
Description=User resume actions
After=suspend.target

[Service]
User=%I
Type=simple
ExecStartPre=/usr/local/bin/ssh-connect.sh
ExecStart=/usr/bin/mysql -e 'slave start'

[Install]
WantedBy=suspend.target


Reinstall commercial software (e.g. oil rush, steelstorm etc.)

I had the same problem trying to reinstall Steel Storm: Burning Retribution.
Error 401 is an authentication error.
I just found out to get it back for my case I hope it will help.
First, you need to know that your authentication details for the PPA are stored in /etc/apt/auth.conf.
Second you need to verify that the details are correct by going to https://launchpad.net and connecting with the details you used to purchase the software.
Once logged in click on your name if the right top corner (next to the logout button).
In the "Personal package archives" section click on "View your private PPA subscriptions".
On the right side of the line corresponding to your purchase click on "view"
You should now see something that looks like this:
deb https://USERNAME:PASSWORD@private-ppa.launchpad.net/commercial-ppa-uploaders/PURCHASE/ubuntu YOUR_UBUNTU_VERSION_HERE main
Verify that USERNAME and PASSWORD respectively match login and password in your /etc/apt/auth.conf file.
Once /etc/apt/auth.conf is updated with the correct details, run as sudo apt-get update from the terminal and check if you still get error messages, if you don't you should now be able to re-install the game.
Another problem that you can have is if your game doesn't have a PRECISE version yet, in that case you need to go in /etc/apt/sources.list.d/ and modify the file containing the description of the private PPA (in my case /etc/apt/sources.list.d/private-ppa.launchpad.net_commercial-ppa-uploaders_steel-storm2_ubuntu.list).
Example in my case:
I had to replace this line:
deb https://private-ppa.launchpad.net/commercial-ppa-uploaders/steel-storm2/ubuntu precise main

...with this:
deb https://private-ppa.launchpad.net/commercial-ppa-uploaders/steel-storm2/ubuntu oneiric main


Can either Gnome 3 or Unity be customized to simulate a Gnome 2 style interface?

It is not really possible to change anything on unity.  The way it is set up is the default way whether you like it or not.

Gnome shell on the other hand is some what customizable, you can install things called extensions which can add some functionality that does not come with the shell.

To be honest it depends what aspect of Gnome 2 you want in gnome 3.

For example, if you want a normal menu in Gnome shell instead of the "activities" their are a few shell extensions that give you the normal menu back.  Here is just an example but my favorite one

Cardapio Menu Extension

Or if you want all the icons in the top panel like on Gnome 2:

Gnome 2 Notifcations

Or if you want a sound menu like the one on unity/all the other Ubuntu variations:

Gnome shell media player extension

So, as you can see if their is something in particular just search around for some extensions, Github is a great place to look.

Edit: Forgot to mention, I am using docky as I don't like going to the activities to see my open windows.  Almost all docks I have tried work on gnome shell, e.g. "docky, awn, cairo dock, plank", there are loads out their.


Wait Until VPN Connection is Made before Mounting

if you use the noauto option in the fstab line the filesystem will NOT be automatically mounted at start-up. You can then later mount the filesystem explicitly with a dispatcher script for NetworkManager which is automatically executed when the VPN is successfully connected.


Welcome to AskUbuntu!
To fix this, two configuration files need to be updated:

Open a terminal
Open the base configuration file:sudo vi /etc/modprobe.d/alsa-base.conf
Add this line to the bottom of the file:options snd-hda-intel dmic_detect=0
Save and close the file
Open the block configuration file:sudo vi /etc/modprobe.d/blacklist.conf
Add this to the bottom of the file:blacklist snd_soc_skl
Save and close the file
Reboot

This should solve your problem


Why the latest updates removes pycrypto-2.0.1

It does not look like pycrypto is a dependency of unity-control-center
so I do not think that this is what caused the package to be upgraded. Instead, I think that you had installed an older version of this package and when apt saw that there was a newer version available it installed if for you.

This is the nature of the apt package manager. If you wish to stay on a specific version of a package then I would suggest that you pin it. You can learn more about how to pin a package here.


You can use OpenVPN software to create a VPN server.

On Ubuntu, sudo apt-get install openvpn.

You have to create a configuration file in /etc/openvpn for the server :

port 1194
proto tcp
dev tun
pkcs12 openvpn.p12
dh dh1024.pem
server 192.168.10.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun

Just name this file server.conf for instance and start your OpenVPN instance :

sudo service openvpn start

This will start up a VPN server using a TUN device running on all IP's of the server on TCP port 1194. The VPN tunnels will be in the subnet 192.168.10.0/24, where the server receives the 192.168.10.1 address.
LZO compression is activated and a file, ipp.txt will be used to retain IP given to clients to gave them all the time the same IP.

Pointed by the dh parameter is a file that you will have to generate yourself using the following command :

openssl dhparam -out dh1024.pem 1024

The tricky part in this configuration is the use of certificates. Here I'm using a PKCS12 file which contain a private key and its certificate and the certificate of the CA.

To manage the keys and certificates, to export them easily, I've found the GUI tool tinyca2 that you can install on Ubuntu with sudo apt-get install tinyca2. This tool will create a local and standalone CA that you can use to generate and export private & public keys and X.509 certificates.

All files mentioned in the configuration that doesn't have an absolute path name are located into the /etc/openvpn directory.

Once your OpenVPN server is running, you will have to download the OpenVPN version for Windows (free of charge) and install it onto your Windows clients.

This information & software are available on the OpenVPN website.


Trying to set squid proxy password on ec2 instance

You don't have htpasswd installed on your system to manage HTTP users. You can use the one from the Apache HTTP Server utility programs  package. Even though it's meant for Apache and not Squid, the password file format is the same (according to your reports).


PAM unable to dlopen pam_sss.so pam_cap.so pam_systemd.so pam_pwquality.so

The solution was quiet easy. I found that the i386 packages were installed:

root@va-Q553:/etc# dpkg -l | grep pam
ii  libpam-cap:amd64                                  1:2.25-1.2                                      amd64        POSIX 1003.1e capabilities (PAM module)
ii  libpam-gnome-keyring:amd64                        3.28.0.2-1ubuntu1.18.04.1                       amd64        PAM module to unlock the GNOME keyring upon login
ii  libpam-modules:amd64                              1.1.8-3.6ubuntu2.18.04.1                        amd64        Pluggable Authentication Modules for PAM
ii  libpam-modules:i386                               1.1.8-3.6ubuntu2.18.04.1                        i386         Pluggable Authentication Modules for PAM
ii  libpam-modules-bin                                1.1.8-3.6ubuntu2.18.04.1                        amd64        Pluggable Authentication Modules for PAM - helper binaries
ii  libpam-pwquality:amd64                            1.4.0-2                                         amd64        PAM module to check password strength
ii  libpam-runtime                                    1.1.8-3.6ubuntu2.18.04.1                        all          Runtime support for the PAM library
ii  libpam-sss:amd64                                  1.16.1-1ubuntu1.5                               amd64        Pam module for the System Security Services Daemon
ii  libpam-systemd:amd64                              237-3ubuntu10.41                                amd64        system and service manager - PAM module
ii  libpam-systemd:i386                               237-3ubuntu10.41                                i386         system and service manager - PAM module
ii  libpam0g:amd64                                    1.1.8-3.6ubuntu2.18.04.1                        amd64        Pluggable Authentication Modules library
ii  libpam0g:i386                                     1.1.8-3.6ubuntu2.18.04.1                        i386         Pluggable Authentication Modules library
ii  thunderbird                                       1:68.4.1+build1-0ubuntu0.18.04.1                amd64        Email, RSS and newsgroup client with integrated spam filter

I removed them:

apt remove libpam0g:i386

Unfortunately, it triggered the removal of openssh, so I reinstalled it back:

apt install openssh-server

Now everything is fine


Systemd service remains inactive due to code=exited, status=1/FAILURE

systemd is not the right tool to run desktop apps like gnome-terminal in the foreground. Your systemd config will be running the app as root, which I presume you intend.  It will be unaware an unable to run an app in a particular user's foreground session.

Update your script to not use gnome-terminal and just make the app executable and run it directly.

To debug, you can have it log to STDOUT or STDERR and use journalctl -u app.service to review the logs. Reviewing nearby lines in the full journalctl output may also be helpful.

Also see this related post about running apps via the CLI vs with systemd:

Difference between systemd and terminal starting program


Open a terminal:

sudo visudo

Edit the line like so (and change wojox to your user):

Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/wojox/bin"


What in /home would benefit from being on an SSD?

Here's a list of other things that might be useful (I've made this a wiki post so anyone can add to it):

.cache - temporty cache files for browsers and other programs.
.config - config files for programs
.gconfd abd .gconf - GNOME configuration files
.gegl-0.0 – file for GIMP
.gimp-2.6 – files for GIMP
.gnome2 – used by some GNOME 2 applications
.gvfs – data folder for the GNOME virtual filesystem
.local – user specific data. You will lose the Nautilus Trash functionality if this directory is put on a different partition.
.macromedia – files for flash
.mozilla – where all your Mozilla Firefox cache is
.thumbnails – thumbnails for pictures, videos, etc (used by Nautilus)
.thunderbird – where all your Mozilla Thunderbird cache is


How to Load Ubuntu Core "Snap" as custom image on MAAS?

Snappy is an entirely new architecture. Currently, MAAS installs an ephemeral image on the node, which in turn installs the actual OS using curtin. We are working on integrating snappy semantics in curtin, so that curtin is able to lay down a snappy image. That's why you don't see any snappy images available in MAAS. Please stay tuned to the mailers!


can't install xampp-linux-5.5.30-6-installer.run in ubuntu 14.04

Go to download directory

  cd ~/Downloads

Change permission

  chmod 755 xampp-linux-*-installer.run

Run the installer

  sudo ./xampp-linux-*-installer.run

See more here


OK, I've at least found a temporary solution to this, I'll need to find a more permanent one at some point. But for now I've at least isolated it to a font issue.
I created a .gimvrc and for now only added one line: set guifont-*


In libreCalc how do you change who the file is created by?

In File->Properties you have the option to Apply or Reset User data, which you can edit under Tools->Options.


First you have to boot into Windows and disable hibernation and Fast Boot from within there.

To disable hibernation open command prompt as administrator and execute this command:

powercfg /h off

To disable Fast Boot open Control Panel go to Energy Settings, enable show hidden settings and uncheck Fast Boot. After these steps shutdown the machine (do NOT reboot) completely.

Then reinstall GRUB bootloader to your Ubuntu installation  in EFI mode
Boot from the Ubuntu install media - then  open a terminal and execute:

sudo mount /dev/sda8 /mnt
sudo mount /dev/sda2 /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sda
update-grub

Now you can choose which operating system you want to boot from the GRUB boot loader menu.

Note :

sda = disk | sda2 = efi partition | sda8 = system partition
disk and partition numbers taken from your pastebin output

To get sure - check the partition numbers, you can easily identify them with GParted.
The (Graphic User Interface) tool is already included in the Ubuntu installation media.


In the Launchpad user's page you mentioned - Panda Jim - you can find the "Upload to" column with several links. Clicking on each one takes you to the related PPA.


There is a way to do this with the mouse. On the overview screen you can move windows between workspaces by dragging them to the right where the workspaces are shown. If you drag a window between two workspaces, it will open up a new one there.

Unfortunately, I don't know whether this can be done with a hotkey as well (it would be great).


Ubuntu 12.04 connects to some wireless networks but not others

This link may help you: My Lenovo Ideapad u165 wireless doesn't work

Some other solution that I found on the web was to connect to your wireless network by typing its name directly, not waiting for the Ubuntu to find it. This solution worked on others operating systems too.

Source: http://forums.lenovo.com/t5/IdeaPad-S-series-Netbooks/can-t-connect-to-wireless-router/m-p/195364/highlight/true#M6930


How to get ssmtp to map local user to email address for the To: field

I have struggled a bit with ssmtp too. The first thing I learned is that the aliases mechanism does not work with the plain mail program; I have to use mailx from the package bsd-mailx — never knew why. So before starting to change configurations around check with it.

Anyway, as a reference, I have a working ssmtp setup like the following:

file  /etc/ssmtp/ssmtp.conf:

#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=romano@mymail.domain.com

# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=mymailserver.mymail.domain.com:25

# Where will the mail seem to come from?
rewriteDomain=mymail.domain.com

# The full hostname
hostname=myhostname.mymail.domain.com
# Use SSL/TLS before starting negotiation
UseTLS=No
#UseSTARTTLS=Yes
#
# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=NO

file /etc/ssmtp/revaliases/

# sSMTP aliases
#
# Format:   local_account:outgoing_address:mailhub
#
# Example: root:your_login@your.domain:mailhub.your.domain[:port]
# where [:port] is an optional port number that defaults to 25.
#
root:romano@mymail.domain.com
romano:romano@mymail.domain.com
postmaster:romano@mymail.domain.com

and now it works:

[romano:~] % mailx -v root
Subject: test
test
.
Cc:
[<-] 220 mymailserver.mymail.domain.com ESMTP my mail server
[->] HELO myhostname.mymail.domain.com
[<-] 250 mymailserver.mymail.domain.com
[->] MAIL FROM:<romano@mymail.domain.com>
[<-] 250 2.1.0 Ok
[->] RCPT TO:<romano@mymail.domain.com>
[<-] 250 2.1.5 Ok
[->] DATA
[<-] 354 End data with <CR><LF>.<CR><LF>
[->] Received: by myhostname.mymail.domain.com (sSMTP sendmail emulation); Fri, 03 Jul 2015 13:25:52 +0200
[->] From: "Romano Giannetti" <romano@mymail.domain.com>
[->] Date: Fri, 03 Jul 2015 13:25:52 +0200
[->] To: root
[->] Subject: test
[->]
[->] test
[->] .
[<-] 250 2.0.0 Ok: queued as BF1CB3BC050
[->] QUIT
[<-] 221 2.0.0 Bye

Notice that domains, hostnames etc. are scrambled for privacy here (so there can be typoes).


Since i have not used midori i cannot be sure, but from reviews, it is possible to change the user agent in midori. switch the user agent in Edit - preferencces -network to something like firefox and you issue may be fixed.


Calc formulas show up in English, how can I use them in my native language?

If the option to use formulas in English is disabled and you're still not seeing formulas in your language, it might be due to this bug.


18.04: After failed start of ubuntu live system (from DVD) BIOS can no longer be opened with F11

Probably not useful for you any more but I had the same issue on the same motherboard and I fixed it by clearing the bios.

I did this by unplugging the PSU and removing the onboard battery.  Left it for about 15 minutes and it booted up. Had nothing to do with the OS and the built in "Restore Defaults" in the bios did nothing for the issue.

Prior to the step above I tried unplugging all hardware except CPU/RAM and booting to USB. I still received the UEFI errors. The odd thing is that I think those are just cosmetic. After I fixed this and booted I still saw the UEFI errors but my PC booted past them.  I also think something else was the issue becaus when the PC would lock, my USB keyboard would lose backlight and nothing but a hard power off would do anything.


If you installed phpMyAdmin using apt-get, the files are usually installed into /usr/share/phpmyadmin. Hence, creating a new virtual host configuration and pointing the DocumentRoot directive to /usr/share/phpmyadmin should work.

Apache stores its per-site-configuration in /etc/apache2/sites-available.

Create /etc/apache2/sites-available/phpmyadmin.dbugger.com (as noted in the comments, if you're using Apache 2.4 on a later version of Ubuntu, a .conf extension is required for the name), then fill it up with the following contents:

<VirtualHost *:80>
    ServerName phpmyadmin.dbugger.com
    ServerAdmin webmaster@dbugger.com

    DocumentRoot /usr/share/phpmyadmin
    <Directory />
        Options FollowSymLinks
        DirectoryIndex index.php

        <IfModule mod_php5.c>
            AddType application/x-httpd-php .php
            php_flag magic_quotes_gpc Off
            php_flag track_vars On
            php_flag register_globals Off
            php_admin_flag allow_url_fopen Off
            php_value include_path .
            php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
            php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/
        </IfModule>
    </Directory>

    # Authorize for setup
    <Directory setup>
        <IfModule mod_authn_file.c>
            AuthType Basic
            AuthName "phpMyAdmin Setup"
            AuthUserFile /etc/phpmyadmin/htpasswd.setup
        </IfModule>

        Require valid-user
    </Directory>

    # Disallow web access to directories that don't need it
    <Directory libraries>
        Order Deny,Allow
        Deny from All
    </Directory>

    <Directory setup/lib>
        Order Deny,Allow
        Deny from All
    </Directory>
</VirtualHost>

Enable the virtual host:

sudo a2ensite phpmyadmin.dbugger.com

Then reload Apache:

sudo service apache2 reload


How to get all packages listed in a PPA at once?

This awk '$1 == "Package:" { if (a[$2]++ == 0) print $2; }' /var/lib/apt/lists/*ubuntu-toolchain-r*test*Packages > to_install.txt will put all the packages into a text file.

You can manually edit this file to remove anything unwanted and use that file to feed it to apt-get like for i in $(cat to_install.txt); do sudo apt-get install $i; done.  This last part will probably be a bad idea without confirming these packages are not conflicting with other packages in the PPA.

The normal way to do is write them out. So ...

sudo apt-get install gcc-5 g++-5 gfortran-5 gnat-5

after having a quick look at the packages to see if they might have conflicts.


Overall it should run fine.

I have an Asus UX303LA with quite similar specs and the things I had to tweak to make them work were the hotkeys for the display brightness and the keyboard back light (see this link for a workaround for the keyboard backlight issue if you experience it: https://askubuntu.com/a/701145/474849).

The gestures on the touch pad might also need some tweaking...

Hope this helps!


How I can make the text file to json file?

Quick and dirty perl:

perl -MJSON -F, -lane '
    print encode_json({
        domain => shift @F,
        emails => [map {{email => $_, First=>"xyz", Last=>"pqr"}} @F]
    })
' file

Or ugly ugly awk

awk -F, '{
    printf "{\"domain\":\"%s\",\"emails\":[", $1
    sep=""
    for (i=2; i<=NF; i++) {
        printf "%s{\"email\":\"%s\",\"First\":\"xyz\",\"Last\":\"pqr\"}", sep, $i
        sep=","
    }
    print "]}"
}' file


Can Ubuntu/Gnome prompt me to save unsaved documents during logout/restart/shutdown?

Seems like Gnome is doing their part.
https://discourse.gnome.org/t/can-ubuntu-prompt-me-to-save-unsaved-documents-during-logout-restart-shutdown/6393
So, applications need to add this feature.


Can i install distributions from within ubuntu? (to a different part of the drive, i mean)

I suggest VirtualBox.

  VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. Not only is VirtualBox an extremely feature rich, high performance product for enterprise customers, it is also the only professional solution that is freely available as Open Source Software under the terms of the GNU General Public License (GPL) version 2.

You can use it to make virtual drives for each operating systems or Linux distributions.


How to reinstall 18.04 lts after 19.04 with many problems. Is installed beside windows

That sounds like your system is really broken.

First of all, I recommend to try to start Ubuntu-Live-19.04 from an USB-Drive and then start the installation. If you haven't tried that before. (I'm not sure...) Just as in your second URL.

Otherwise, I recommend the following steps to downgrade:

Take an USB-Stick
Download the Ubuntu 18.04 ISO and put it on the stick
Start from the stick and during the installation try to Choose the Option Downgrade. (I believe it existed once, but I'm not sure if it's still) If it doesn't exist you can choose: Erase Ubuntu 19.04...

But don't forget to save all your data off the Ubuntu-Installation to an external drive. And as long as you don't make any errors, your Windows-Installation shouldn't be affected. From my own experience, I can say: Unfortunately errors happen too much.

A Downgrade is really risky and should only be made if there is no other option.


gzip: stdin: not in gzip format when gunzip is used with pipe

The issue is that echo file.gz just echoes a string "file.gz". Basically the difference between the commands is:

What you want:

gunzip /path/to/directory/file.gz

What you're giving it with the echo:

gunzip "file.gz"

However, even this isn't entirely correct. The true difference is that instead of a reference to the file file.gz you're sending in only the string "file.gz"

I guess the real question here is why are you trying to pipe to gunzip instead of just using it as gunzip file.gz?

EDIT: It seems that doing echo file.gz | xargs gunzip does the trick, as well.


What are the default passwords of these users: nobody, daemon, uucp, etc.?

what are default password of these users : root, daemon, bin, sys, sync, games, man, lp, mail, news, uucp, nobody.

You can check the status by looking in the shadow password file (/etc/shadow) at the second field. By default these accounts are locked (the password is set to *), which disables logins.

  Can anyone login through ssh or ftp by these users ??

Not unless you have set a password for them.


i recommend that you borrow a live pendrive of ubuntu (or your fav distro or any other os) from your friend and then try installing everything from scratch ... you can also make one for your own. Hope this helps


Get the Ubuntu live-dvd, live-cd (for version 12.04) or live-usb, then launch it. During installation, click "Install next to Windows 7". Ubuntu will be installed without removing Windows.

Depending on the chosen version, you may have to choose to change Windows 7's partition size (resizing the partition doesn't delete any data).


"NonExistentPath: Data directory /data/db not found., terminating" error occurs while running "mongod"

All I need was to create new folder in the root sudo mkdir -p /data/db/ then run this command
sudo chown `id -u` /data/db


I had the same problem with my laptop, I fixed it by finding the key on my laptop(esc in my case) that opened the boot menu(not the bios) during start up and then selecting to boot from the usb.

Hope it helps.


LibreOffice Writer is very laggy in 13.10

I have experienced LibreOffice Writer freezing or jumping around in both Ubuntu 12.04 and Windows XP. This answer addresses Ubuntu 12.04 as I am abandoning Windows for security reasons (CryptoLocker). I have resolved this problem in Ubuntu. I have no reason to suspect it is related to Java or any particular version of the powerful LibreOffice or OpenOffice. I am currently using this version of LibreOffice: 3.5.7.2 / Build ID: 350m1 (Build:2). But the problem lies with the universal Linux kernel setting for swappiness and is easy to fix. Configure swappiness by editing /etc/sysctl.conf
Log into Terminal as administrator.
Type: sudo gedit /etc/sysctl.conf
Add or reconfigure: vm.swappiness=100

Save.
You are done. Reboot. Your work now loads from the HDD, not memory.  There are no more conflicts resulting from file size or memory conflicts. This is a fix for serious work (such as my in-progress 1000+ page, profusely illustrated reference book).  For faster speed, use a lower number or a faster computer.  I am using an old Asus dual-core server reconfigured as a workstation. Hey, LibreOffice rocks!


How do I switch the Ubuntu Nexus 7 onscreen keyboard to show "()", "{}" characters?

Press Shift key (above left Ctrl key, at lower left of on-screen keyboard).

Then just press '{', '}', '(', or ')' as required.

This is close to the behavior for a normal ('tactile') keyboard, except that the Shift key is pressed first, instead of at the same time.


What does "sudo apt-get dist-upgrade" do?

See man apt-get:

 dist-upgrade
           dist-upgrade in addition to performing the function of upgrade, also intelligently handles changing
           dependencies with new versions of packages; apt-get has a "smart" conflict resolution system, and it will
           attempt to upgrade the most important packages at the expense of less important ones if necessary. The
           dist-upgrade command may therefore remove some packages. The /etc/apt/sources.list file contains a list of
           locations from which to retrieve desired package files. See also apt_preferences(5) for a mechanism for
           overriding the general settings for individual packages.


Disabling the Unity dash and dock in favor of Cairo-Dock and Synapse

If you are using Cairo-Dock 2.4.0 or later, a custom GNOME session for it should already be added to your login menu. You should be able to start into this session from the LightDM menu and get Cairo-Dock without Unity, no further fiddling necessary.

More detailed information for advanced configuration (if desired), as well as notes on common issues and how to get around them, can be found at this glx-dock.org post.


Wifi adapter not found both on Ubuntu and Windows 10

Sounds like a hardware failure. Unfortunately, the only way to solve this is by buying a new Wi-Fi adapter.


How to fix the "Connection failed with error: Failed sending banner ....." for ssh?

I've found a solution that worked for me. Since this question wasn't asked here, I've asked the question and am posting my solution to it too.

Since the problem is due to an open TCP connection (assumption) to the remote machine with the SSH connection closing without closing the TCP connection ; a fix would be to remove the TCP server and resetting configs.

The steps I followed are:

Kill the dhcp service (dnsmasq)
remove the dhcp lease (/var/lib/dhcp/dhclient.leases)
remove openssh-* with configs ($ sudo apt purge openssh-*)
reboot the machine ($ sudo reboot)
DHCP will automatically request a new IP, check the IP (tip: $ ifconfig | head -n2).
Update package cache ($ sudo apt update)
Install openssh-server ($ sudo apt install openssh-server : this will chain install all dependencies)
Verify ssh from any other machine with new IP.

you can use apt-get in place of apt if you are more accustomed to it.

Do comment/answer if you found a different solution!

[Edit 1]

You should lookup what your dhcp service is, it was dnsmasq for me. It could be isc-dhcp-server or maybe something else.


How to set the grub drive as first bootable device

Obviously the partition on your HDD is bootable. Otherwise you would not be able to boot from it by manually selecting it in the BIOS.

Check your BIOS and change the boot order, so that GRUB is the first partition to boot from. There you should configure all the other OS you want to boot to (like your Ubuntu and Windows). Trick: Ubuntu usually sets already the boot record in GRUB for windows partitions, which have been found during the installation. So you only need to change the boot order in BIOS, to make it work.


How do I enlarge the mouse pointer/cursor?

Due to a bug in compiz the mouse pointer size or pointer theme can be changed in Unity but may only work in some circumstances (e.g. Firefox).

For GNOME classic and Unity desktop the option to change the mouse pointer size or style is found in System Settings -> Appearance -> Theme -> Customize -> Pointer:

Push the slider at the bottom to the desired size.


I see what you mean. I guess what I am looking for is the plain markup with no other style information. Just the tags, as it were.
I think I found a solution that works for me: Seamonkey! The basic editor let's me save to HTML with nothing but the markup.


You might try adding a Shift to your commands, so Ctrl+Shift+C / V. That is how copy pasting is done in the terminal (Ctrl+C is used to abort terminal commands). Alternatively you can try pasting by pressing Enter or the middle mouse button.

In Ubuntu, you may wish to consider not using PuTTY at all: you can simply ssh using a terminal. For example, if you want to connect to test.server.com, you could simply type:

ssh test.server.com

If your username is different on the remote system, you can specify it by using this syntax:

ssh remote_username@remote_host

More advanced options are described in the man pages.


How to install package from newer distribution?

Current package versions
Unfortunately rrdtool 1.4.5 has still not been packed for Ubuntu. Even Ubuntu's Precise rrdtool version is still version 1.4.3.
That can of course change in the recent future so keep an eye open, probably the latest version can be applied before the release of Ubuntu 12.04.
In the mean while if you want to install Ubuntu's 12.04 version you can do so by changing the version package you want to install, for more information about this visit this page:

Ubuntu's general backports wiki
page

And for for information on how to install a single package visit this post

Get only one package from 11.10 to install on 11.04

It will give you an idea of the risks and guide you trough the installation of the package.
Compiling from source
You can of course still use version 1.4.5 from the rrdtool from it's official website and compile it for your system.
For that please refer to the documentation for compiling it, it is included on the rdtool website

How to compile rdtool for in your
system


Open ccsm and go to "Preferences" then select "Reset to defaults".


BCM 4312 LP-PHY card doesn't detect any wireless networks

Work in progress ..

Solves driver issue, but not in repeatable, stable manner.

Note: I have already tried all suggestions in: Installing Broadcom Wireless Drivers

Typically, after initial install of Ubuntu 12.04.4 LTS (latest update) you will get an error message briefly on screen suggesting the wireless card's firmware is out of date.

In other words:

dmesg | grep -e b43 -e Broadcom

returns: (or very similar)

[    8.091376] b43-phy0: Broadcom 4312 WLAN found (core revision 15)
[    8.136098] b43-phy0: Found PHY: Analog 6, Type 5 (LP), Revision 1
[    8.161222] Broadcom 43xx driver loaded [ Features: PNL ]
[    8.188507] b43-phy0 ERROR: Firmware file "b43/ucode15.fw" not found
[    8.188512] b43-phy0 ERROR: Firmware file "b43-open/ucode15.fw" not found
[    8.188516] b43-phy0 ERROR: You must go to http://wireless.kernel.org/en/users/Drivers/b43#devicefirmware and download the correct firmware for this driver version. Please carefully read all instructions on this website.

You need to install Non-Free drivers, then restart driver:

sudo apt-get install linux-firmware-nonfree

sudo modprobe -r b43 && sudo modprobe b43

Check the status:

dmesg | grep -e b43 -e Broadcom

should return: (or very similar)

[  306.159033] b43-phy0: Broadcom 4312 WLAN found (core revision 15)
[  306.200170] b43-phy0: Found PHY: Analog 6, Type 5 (LP), Revision 1
[  306.224407] Broadcom 43xx driver loaded [ Features: PNL ]
[  306.628157] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)

Note 1: If you instead did a full update (sudo apt-get update && sudo apt-get upgrade) to 12.04.4, this may change the b43 firmware loaded to 2008 (which is not the latest).

Note 2: IMHO, this step is required to support the BCM4312-LP card, regardless of what driver you end up using.

The BCM4312-LP card should now be working ..

Try shutting down, removing power and Ethernet cable, waiting a full 20 seconds, and re-starting laptop/netbook ..

Check the status:

dmesg | grep -e b43 -e Broadcom

should return: (or very similar)

[  438.442062] eth1: Broadcom BCM4315 802.11 Hybrid Wireless Controller 6.20.155.1 (r326264)

OR

[    7.663552] eth1: Broadcom BCM4315 802.11 Hybrid Wireless Controller 6.20.155.1 (r326264)
[  187.909055] Broadcom 43xx driver loaded [ Features: PNL ]

Remove any soft/hard kill flags

sudo rfkill unblock all

I have tried ALL the following:

Loading the Broadcom STA driver (from icon, on top bar)

This (of course) crashed before completing install. However, once it attempts to install, the driver problem is resolved.
Manually running 'Additional Drivers', to load STA driver

So far, always crashes, stalls, or fail to load ..
Manaually running 'Additional Drivers, from command line

jockey-gtk

So far, either stalls or eventually loads ..

Will keep you updated ..

Feb-27:

No useful update.

I have used these steps 5-6 times successfully, but not fully repeatable ..


Brightness keys F4 and F5 not working on Dell XPS 15.6 Laptop

Edit "/etc/default/grub" as root.

gksu gedit /etc/default/grub

Now, look for the line that looks like:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Append "acpi_backlight=vendor acpi_osi=Linux" to the end of that line, before the end quotes, so that the line now looks something like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor acpi_osi=Linux"

Save and close the file, and run the following command:

sudo update-grub

Now, reboot, and test out the brightness keys. They should be working correctly now.


A swap partition on your SSD will let you wake up faster from hibernation (aka "suspend to disk") as compared to swap on a hard drive. But given the incredibly fast boot time of Ubuntu when booting from SSD a wake up from hibernation may be slower than a reboot.

If you do not hibernate you may never need to swap at all.

Only in case you often have very many RAM intensive applications running in parallel, your system may eventually use swap. Then a swap on SSD will be somewhat faster than a swap on a hard drive. Still there is no need to worry about wearing of your SSD from extensive swapping.

If not used for hibernation you can alway add a swap partition or swap on file later:

How do I add a swap partition after system installation?
Adding a new swap file. How to edit fstab to enable swap after reboot?


Change permissions of windows mounted folder from linux

Is it possible to change permission on the mounted windows folder from
  Linux command(chmod)?

No. CIFS much like NTFS is a virtual filesystem so chmod has no affect. And changing the permission of the mount point before anything is mounted to it will have no affect either since the permissions after a mount always replace the permissions before the mount.

If the desired permissions is 777 change your mount command to include those permissions: dir_mode=0777,file_mode=0777. I would also get in the habit of adding the nounix option although for a Windows share it won't do much.

So try this instead:

mount -t cifs -o username=<share user>,password=<share password>,dir_mode=0777,file_mode=0777,nounix //WIN_PC_IP/<share name> /mnt

And I would agree that a better mount point would be something under /mnt rather than /mnt itself.


Resizing ext4 partition and applying it to an NTFS partition in Ubuntu 12.04.1?

sda6 is actually a logical partition sitting inside sda4, an extended partition, which means that what you actually need to do is shrink sda6, resize and move sda4, move sda3, and then extend sda2. I'm not actually sure if the changes you'll need to make to sda4 are doable without doing some number crunching and fdisk magic (unless gParted can do it for you). Most of these operations I would consider dangerous for a beginner or even intermediate user, so you probably don't want to do that.

So your safest and easiest choice is: get a spare hard drive, do the partitioning right this time, and then copy all your data over (use rsync for Linux partitions and ntfsclone for NTFS partitions). Finally copy over your MBR and you should be all set. A 320GB hard drive is pretty cheap nowadays anyways.

There's a good guide here on how to do the copy.


Your wireless may be dropping because of power management; that is, the feature where the wireless card partially powers down to save battery power during periods of inactivity and then, ideally, powers back up seamlessly when activity resumes. Let's disable power saving to see if it helps. From the terminal:
sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/*

Is there any improvement?


Is there any software solution for office ergonomics?

Workrave

Workrave is a program that assists in the recovery and prevention of Repetitive Strain Injury (RSI). The program frequently alerts you to take micro-pauses, rest breaks and restricts you to your daily limit. Please refer to the feature comparison for a complete list of features, and how the program performs with respect to other programs on the market. The program runs on GNU/Linux and Microsoft Windows.

RSIBreak

Repetitive Strain Injury (RSI) is an illness which can occur as a result of continuous work with a mouse and keyboard. The risk of suffering injury increases the longer users work without breaks. RSIBreak simply offers reminders to take a break now and then.
After the start it will show up in your system tray and will monitor your activity. Whenever it detects that you have been active for a certain amount of time (configurable) it will prompt you for a break. It has some settings so if you walk away from your keyboard, it can reset the timers, so you will not be bothered with a break right after you return from that coffee break.
You can setup RSIBreak to popup a tiny notification popup to remind you to take a break, but you can also configure it to black out your screen so you can not continue working. All to your liking.

Since this is a KDE app you should see this to make it look native in GNOME.


Solution:

You should remove the -i from the sudo command:

sudo -u USER2 cp file1 file2

Explanation:

The problem you are facing is that your sudo access is limited to /bin/cp and using sudo -i required extra sudo permissions which you don't have.

As specify in the the error:

  Sorry, user USER1 is not allowed to execute '/bin/bash -c cp file1 file2' as USER2 on SERVERNAME.

When using sudo -i -u USER2 cp The command you are running is /bin/bash -c cp  which you don't have sudo permissions for. As you are limited to the command which you have sudo permission for: /bin/cp.

More info: man sudo

  -i, --login
                 Run the shell specified by the target user's password
                 database entry as a login shell.  This means that login-
                 specific resource files such as .profile or .login will be
                 read by the shell.  If a command is specified, it is passed
                 to the shell for execution via the shell's -c option.  If no
                 command is specified, an interactive shell is executed.  sudo
                 attempts to change to that user's home directory before
                 running the shell.  The command is run with an environment
                 similar to the one a user would receive at log in.  The
                 Command environment section in the sudoers(5) manual
                 documents how the -i option affects the environment in which
                 a command is run when the sudoers policy is in use.


line 45 Syntax error: unexpected end of file

The error you get is because bash is looking for the end of the if block and can't find it before the end of the file, that's why the error is for line 45.

Now, you have various syntax errors, first of all, an if block looks like this:

if [ test something ]
then
    do something
fi

The keywords then and fi are needed. Then, you should quote the variables and strings inside the [ ] test construct, and you should also be aware that your script will break on spaces and unexpected input.

A working version of your script would be:

#!/bin/bash
clear

echo "Hello Sir How are you? These are some of my features
date
picture"

read word

if [ "$word" = "picture" ]
then
echo "These are the following pictures I have at my disposel:
Dog"
fi

if [ "$word" = "date" ]
then
    w
fi

read word

if [ "$word" = "dog" ]
then
echo "
     　__,-;;;＼
　　 　/;;;;;;;;;;;;;;;/ l ＼ヽ |　/＿__
　 　/;;;;;;;;;;;;;;/　　　　　 　 ヽ;;;;;;＼
　　ヽ;;;;;;;;;;;ノ　　　　　　 　　|;;;;;;;;;;;l
　　／￣~~　　　　　　 　 　 |;;;;;;;;;;;;l
　　フ　　○　　　　　　　 　 ＼;;;;;ノ
　,-~~　　　　　　　　　○　　　　ヽ,,,,,,,,,,,,,,､ 　 , , ,
　 ~/　　　　　　●　　　　　 　 ＼,;;;;;;;;;;;;;;;;;;,V;;;;;;;;;ﾞ,
　 l_,,,　　　　　　　　　　　　　 　>,;;;;;;;;;;;;;;;;;;;;;;ヽ;;;;;;;,ﾞ
　　　|/l　 /l　,　　　　　　ヽ　|ヽl,;;;;;;;;;;;;;;;;;;;;;;;;;;;;i- ''
　　　 　 Y　 V ヽlｌﾉ　ﾚ　ヽ）V;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;j
　　　　　 ﾞ,　　　　　　　　　　　　　　　' ' ' ' ' ' ,',,'
　　　　　　ﾞ,　　　　ヽ-,,,,,,,,ﾞ,　　　　ﾞ　　　　　　　ﾞ
　　　　　　 ﾞ,　　　　 ﾞ,　 ,ﾞ ﾞ　　　　ﾞ,ﾞﾞﾞﾞﾞ,　 　　.,ﾞ
　　　　　　　ﾞ,　　　　,ﾞ　 ﾞ,,,ﾞ,　　 　 ﾞ,　 ﾞ, 　 　 ,l
　　　　　　　 ﾞ' ' ' ' ' '　　　 ﾞ' ' ' ' ' '　　 ﾞ' ' ' ' '  "
fi

Note that you still have design problems, this is not a well written script, apart from not handling any errors, you also don't exit if any of the choices are entered which means that no matter what I do, I will eventually get to the dog printing. Even if I enter date, you might want to add some exit calls in there.


How to remove Recent Item bookmark from Gnome shell standard "save windows"

I've had a look around, but I can't obviously find a solution. Since you are running 12.04, this is presumably a GTK3 file chooser dialog.

The GTK3 global settings (/etc/gtk-3.0/settings.ini or $HOME/.config/gtk-3.0/settings.ini) should understand keys gtk-recent-files-limit and gtk-recent-files-max-age, which will allow you to empty the list (but this will only empty the list, not remove it as you ask for).

Gedit has a gsettings key org.gnome.gedit.preferences.ui max-recents but I think this only controls the number of recent files in the File menu. The gsettings schema for the GTK file dialog does not appear to contain any useful option.

The same issue is discussed here, which suggests recompiling GTK (note this is for GTK2 and might be a bit different for GTK3) with the behaviour disabled - I can't find any simpler solution for the moment.


How can I use a script to change the static IP address?

If you are using ifup to configure the interface then you can define multiple so-called logical interface definitions for the interface and switch among them using ifup and ifdown. For example, you can define "iface home" and "iface work" in /etc/network/interfaces and then bring up eth0 either with "ifup eth0=home" or "ifup eth0=eth0-work". See ifup(8). Example of doing this from a script follows.

#!/bin/sh
ifdown eth0
ifup eth0=home

If you are using NetworkManager to configure the interface then you can define multiple so-called connections and switch between them using the nmcli command.

#!/bin/sh
nmcli con down id  'Wired connection work'
nmcli con up id  'Wired connection home'

If you are using neither ifupdown nor NetworkManager and you don't want to use ifconfig then you can use the ip utility. See ip(8).

#!/bin/sh
ip link set dev eth0 ...


X crashes and GNOME loses all its configuration

It's a pretty simple deal. Run killall gnome-settings-daemon in a terminal (just to be sure it's really dead), then run gnome-settings-daemon & (or install grun and use grun gnome-settings-daemon).

This will cause gnome to regain it's settings unless you have a more serious issue.


Can I export Shotwell pictures database saving all the tags?

I'm the founder of Yorba, makers of Shotwell.  Thanks for your question.

Shotwell 0.7 writes metadata (such as tags and titles) to photos when you export them.  The metadata is written in EXIF, IPTC and/or XMP format (depending on which of these were present in the photo to begin with).  Most other photo programs can read these formats, so if you export your photos from Shotwell then other programs should be able to read their tags with no problem.

The upcoming Shotwell 0.8 can write metadata to photo files on the fly - to enable this, select the option "Write tags, titles and other metadata to photo files" in the preferences dialog.  Once this is selected, Shotwell will update metadata in photo files as soon as you tag them.  To use this feature, build the Shotwell trunk from source (see http://yorba.org/shotwell/install/#source), or just wait for Shotwell 0.8 (which we plan to release later in December).


How to Avoid Mouse Getting Stuck with Multiple Monitors of Different Sizes

I was running into the same issue and as others have pointed out Ubuntu sees your monitors looking something like this (maybe order is the other way around):

+----------++----------------+
|          ||                |
|          ||                |
+----------+|                |
            |                |
            +----------------+

In this example when your mouse is in the right monitor on the bottom and the mouse is moved straight left you hit a dead zone where you can't cross screens. I modified the bash file that cassm posted to have the mouse height be proportional when crossing so if you cross your mouse 3/4 the way up from the left monitor, the mouse appears 3/4 the way up on the right monitor.

To run the script I ran follow the instructions below:

1) Make sure to setup your monitors right with the picture in the script (ONE ABOVE IS DIFFERENT) in Ubuntu's Displays settings

2) Make a text file called "mousejumper.sh" or anything ending in .sh

3) Right click on file and change Properties to make it executable

4) Copy and paste the script into file

    #! /bin/bash
    # Cursor relocation script by Cass May <cass@cassm.net>

    # LEFTX and RIGHTX are the screen boundaries, which triggers cursor relocation
    # LEFTMONHEIGHT and LEFTMONHEIGHT are the heights in pixels of the left and right monitor
            # minus 1, because computers start counting at 0... so 1920 pixels heigh becomes 1919
    LEFTX="1919"
    LEFTMONHEIGHT="1080"

    RIGHTX="1920"
    RIGHTMONHEIGHT="2159"

    # Size in pixels to jump over the screens with when you hit the boundary (ex: if 5, jumps from x = 1919 to x=1924)
    BUFFER="5"

    # In Ubuntu Displays settings window the two monitors must be setup to look like this:
    #             +----------------+
    #             |                |
    # +----------+|                |
    # |          ||                |
    # |          ||                |
    # +----------++----------------+
    #
    # If the monitor setup is in a different order (ex: larger screen on left side)
    # or there are more than two monitors, then the script will need to be modified

    # Tip: Set "Sticky Edges" to On in the Displays settings window because
    # the script checks coordinates every 0.### seconds, and sticky edges
    # keeps your mouse there longer

    while true; do # keep loop going to run all the time, do a slight pause for performance

        # grab cursor position, and extract x and y position
        CURSORPOSITION="$(xdotool getmouselocation)"
        XPOS="$(grep -o '[0-9]\+' <<< "$CURSORPOSITION" | awk 'NR==1{print $1}')"
        YPOS="$(grep -o '[0-9]\+' <<< "$CURSORPOSITION" | awk 'NR==2{print $1}')"
        #echo "Mouse position is: ($XPOS, $YPOS)"

        # if XPOS is 1920 then on right 4k monitor
        if [ $XPOS = $RIGHTX ]
        then
            #echo "Starting jump function"
            # find % height then convert
            # Input is 0-2159, Output is 1080-2159
            NEWYPOS=$(echo "(($LEFTMONHEIGHT+$YPOS/$RIGHTMONHEIGHT*$LEFTMONHEIGHT))" | bc -l)
            #echo "YPOS with floats is: $NEWYPOS"
            NEWYPOS=$(echo "$NEWYPOS" | bc -l | xargs printf "%1.0f")
            NEWXPOS=$(($RIGHTX-$BUFFER))
            # Move Mouse to other screen with a few pixel buffer on the screen edge
            #echo "Mouse jumped from right to left from: ($XPOS, $YPOS) to ($NEWXPOS, $NEWYPOS)"
            xdotool mousemove "$NEWXPOS" "$NEWYPOS"

        # if XPOS is 1919 then on left 1080 monitor
        elif [ $XPOS = $LEFTX ]
        then
            #echo "Starting jump function"
            # find % height then convert
            # Input is 0-2159, Output is 1080-2159
            NEWYPOS=$(echo "((($YPOS-$LEFTMONHEIGHT)/$LEFTMONHEIGHT*$RIGHTMONHEIGHT))" | bc -l)
            #echo "YPOS with floats is: $NEWYPOS"
            NEWYPOS=$(echo "$NEWYPOS" | bc -l | xargs printf "%1.0f")
            NEWXPOS=$(($LEFTX+$BUFFER))
            # Move Mouse to other screen with a few pixel buffer on the screen edge
            #echo "Mouse jumped from left to right from: ($XPOS, $YPOS) to ($NEWXPOS, $NEWYPOS)"
            xdotool mousemove "$NEWXPOS" "$NEWYPOS"

        fi
        sleep 0.05
    done

5) Change these values in the script to match your monitor specs

LEFTX="1919"
LEFTMONHEIGHT="1080"

RIGHTX="1920"
RIGHTMONHEIGHT="2159"

My monitors were 1920x1080 on the left and 3840x2160 on the right.

If you need help finding your monitors values use this little bash script and move your mouse around:

#! /bin/bash
    while true; do # keep loop going to run all the time, do a slight pause for performance
            # grab cursor position, and extract x and y position
        CURSORPOSITION="$(xdotool getmouselocation)"
        XPOS="$(grep -o '[0-9]\+' <<< "$CURSORPOSITION" | awk 'NR==1{print $1}')"
        YPOS="$(grep -o '[0-9]\+' <<< "$CURSORPOSITION" | awk 'NR==2{print $1}')"
        echo "Mouse position is: ($XPOS, $YPOS)"

        sleep 0.1
done

6) Run it in terminal with ./mousejumper.sh

I don't want to have this running all the time so I'm not going to have the system launch it on startup. I have a little utility I wrote to toggle scripts like this on and off manually.


How do I set startup/ home page to a desired website?

Ubuntu's default web browser is Firefox, you can edit the home page by going into the Edit menu, then selecting preferences, then using this dialog box:

From there you can click the "Use current page" button to set your home page to whatever page you are on, or just type the url in the field.

See also:

https://support.mozilla.org/en-US/kb/How%20to%20set%20the%20home%20page


Changing background file can freeze 17.04. What's wrong with these?

Upgrade to 17.10 fixed it. No longer freezes when running script.


How to activate Nvidia settings - fan control?

Nevermind! The checkboxes are not rendering. Click in the vicinity where you think the checkbox would be and it will. Probably the default theme in Kubuntu 15.04.


Setting up automated ubuntu 15.10 installation using preseed and USB

while looking around for the 15.10 preseed entries..happened to land up at
https://github.com/RobertCNelson/netinstall/blob/master/lib/wily-preseed.cfg
hope this helps..
In the process of testing the suggestions in above link...


Ubuntu using i5 integrated card instead of R7

This is expected, given it's a hybrid solution. One has to use DRI_PPRIME=1 <command> to use it.


Move the bootloader to a new ESP partition by mounting it in /boot/efi in a working system

I think technically you may not have to unmount /boot/efi before mounting the new efi partition there (I believe the new mounting may be used, with the old still being there if the new is unmounted, but I'm not at all certain), but, when dealing with the same problem as you, I did unmount before mounting and all was well.
As an aside, I wouldn't remove the efi Ubuntu folder on the Windows drive until having confirmed the new efi Ubuntu folder on the Ubuntu drive is successfully being used after a reboot with sudo lsblk.


how to compare list of functions from 2 files?

Two options here:

if you need GUI solution - then you can use Meld Merge tool:

sudo apt install meld

meld <(grep -E "^function" file_A) <(grep -E "^function" file_B)

if you need terminal solution - use power of diff:

diff <(grep -E "^function" file_A) <(grep -E "^function" file_B)


Set a different passwords for unlock and sudo

Gnome/GDM (through PAM) normally use your user account info defined in  /etc/passwd and /etc/shadow.

You are (I am) correct that the configuration files in /etc/pam.d/* are how the configuration is done, but first, you need to create a new passwd file with your desired lock screen password.  This great answer by @AaronD (please do upvote him) has details on how to do that using htpasswd editor.

Once you have created that alternative passwords file, save it to /etc/gdm.passwd (or somewhere) and add this line to the beginning of /etc/pam.d/gdm-password:

auth     required  pam_pwdfile.so pwdfile /etc/gdm.passwd

where /etc/gdm.passwd is the path where you saved the passwd file.  And comment out the system-local-login line that follows.  This switches the required authentication from pulling from normal local account to your new configuration.

No restarting or anything should be required, just save that file and Super+L to test it out!

This is just a compliation of the procedure that worked out for me. All credit to @AaronD and @Amit.


How can I enable/disable desktop effects for the current window in KDE?

You can toggle desktop effects with Alt+Shift+F12.


Problems with drivers for ATI Radeon 4500 after upgraded to 14.04

The problem was solved by the OP (original poster). I'm posting it in order to keep site cleaner.

Well, I think I have fixed my problem right after pasting:
I did
sudo apt-get remove --purge xserver-xorg-*

followed by
apt-get install xserver-org

rebooted and was able to log in, even with full resolution.


Printer Drivers for the Epson XP-200 for ubuntu 14.04

Unfortunately, I can't comment just yet, so I'll post the link here:

  http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX

In the field under "Enter product name", if you type in your printer model (XP-200), then you should find a list of (four) drivers, two of which are printer drivers. (Remember to select "Linux" as the Operation System, though, or the correct drivers will not show up.)


Can't get video thumbnail previews working for a samba share (Dolphin/Nautilus/Nemo)

To get them working in Dolphin:

sudo apt install ffmpegthumbs

due to a bug in KDE5 you might have to

sudo ln -s /usr/lib/x86_64-linux-gnu/plugins/* /usr/lib/x86_64-linux-gnu/qt5/plugins/

Then open Dolphin

Control --> Configure Dolphin --> General --> Previews

Enable previews for Video Files and enter into the

Skip previews for remote Files above:

a sufficiently high value

Checked on Ubuntu 16.04 with KDE 5.6


You can keep the Alt+F4 shortcut if you define a new custom shortcut. Here are three possible solutions:

Using xbindkeys and xdotool

Install the packages by opening a terminal and type:

sudo apt-get install xdotool xbindkeys xbindkeys-config

Run xbindkeys-config from the terminal

Press New create a new key binding.
Write F1 in the Key field to the left or press Get Key to grab a key or key combinations. Note that this may create a lot of gibberish such as Mod2 + F1 | m:0x10 + c:67 but it still works.
Enter into the Action field to the left:

 xdotool getwindowfocus key alt+F4

.... or whatever other key combination you want to execute.
Press Apply. It works now.

Using Keyboard Settings and xdotool

Install the xdotool package, open a terminal and type:

sudo apt-get install xdotool

Now define a custom keyboard shortcut using the System Settings Menu:

Set the command to xdotool getwindowfocus key alt+F4
The next step requires to go back to the command line as you can't type F1 to define a new accelerator. So list all the defined custom shorcuts with:

$ dconf list /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/
custom0/
custom1/

The one you've just created should be the last one, here custom1.
Type the following command to assign F1 to close the active window:

dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/binding "'F1'"

Adjust the custom<id> to match yours.

Your new F1 shortcut is ready to use (needless to log out or restart your system) and Alt+F4 still works.

Using Keyboard Settings and xte

For keys without special meaning to the Keyboard-application (like F2), you don't have to go through command line to do the key binding:

Install xte:

sudo apt-get install xautomation

Create your new shortcut using the System Setting menu as explained for F1 just above but with the following command instead:

xte 'keydown Control_L' 'keydown w' 'keyup Control_L' 'keyup w'

Assign F2 to the shortcut, it works from the Shortcut window this time.


How to convert an mpeg2 to a streamable or fragmented mp4?

There is a bug filed with libav about this exact issue. Depressingly, is doesn't seem to be addressed. I think it's best to consider avconv a good encoding tool, but not a good encapsulating tool.

The best way to go about it is to use MP4Box from GPAC. It's a utility which seems to be primarily concerned with encapsulating media streams into mp4 files. It does not do en/de/transcoding, for instance. If you install GPAC on Ubuntu, you can say:

MP4Box -add non-streamable.mp4 new-shiny-streamable.mp4

MP4Box by default makes the mp4 files streamable:

  As of version 0.2.4, MP4Box always stores the file with 0.5 second interleaving and meta-data at the begining, making it suitable for HTTP streaming. (source)


Can't find my Ubuntu partition after laptop crashed

By installing Windows you erased the Ubuntu partition.

My guess to why it's asking to uninstall Ubuntu upon the installation, is that GRUB still lives on your hard disk.

So if you want to install Ubuntu just skip the uninstall question.


Make cursor visible after startup without moving the mouse

Hopefully you are still wanting a solution :-)

I got myself a micro PC for Kodi which is sitting behind my TV that is hanging on the wall, so no mouse and no keyboard, like you I use unified remote to control the pc and I ran to the same problem as you.

so, I tried many things and this worked for me:

gsettings set org.gnome.settings-daemon.plugins.cursor active false

run it in terminal and restart your PC, so far after every startup the cursor is there to see :-)


libdb: The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides embedded database support for both traditional and client/server applications. Berkeley DB is used by many applications, including Python and Perl, so this should be installed on all systems.

you can install it:

sudo apt-get install libdb5.1

But I assume it must be already installed, if so then I think your problem looks like the bug stated here.


"GNOME" is four things:

A development environment encompassing several desktop features, functions and processes, one example being GTK+.
A desktop environment using software based on the development framework.
A foundation that supports other software not neccessarily part of either of the first two (although usually using GNOME libraries).
A little ceramic man, often with a hat, occasionally with a fishing rod or a wheel barrow. A garden ornament.

All of these are collections of software although each has different organisational features and aims. The third is more of an organisational "umbrella" than a discrete set of software but the first two are fairly discrete and yes, could easily be called software. Garden ornaments are rarely thought to be software.

Hearing "GNOME", one would usually infer the person was talking about the desktop environment... But just as people get angry about people not calling Linux "GNU/Linux", they might prefer you to use the longhand.


Can't install/update/remove apps "trying to overwrite... which is also in..."

Remove the package zorinos-icons. It is not official and prevents cabextract from installing by providing the same file.


Failed installation prevents further installation

I duplicated the problem on the ubuntu forums at here. Long story short I was unable to get 18.10 to work but the 18.04 LTS image threw the same error but let me proceed with the installation. This would be my recommendation for anyone with the same problem.


How can I get a printer driver for Konica Minolta 165e?

if one looks for drivers on Open Printing;

On the Konica Minolta page, I can't see the bizhub 165e mentioned;

http://www.openprinting.org/printers/manufacturer/KONICA%20MINOLTA

However there are a lot of bizhubs that folks say work well;

eg http://www.openprinting.org/printer/KONICA%20MINOLTA/KONICA_MINOLTA-bizhub_1050

this page links to the postscript driver for Konica Minolta; and also links to a ppd file that one can download; I don't know how fluent you feel with all this; one can set up a driver by pointing Ubuntu to a ppd file; so I would suggest downloading the ppd file for bizhub 1050; then editing it; changing the references to bizhub1050 to bizhub 165e;

You can see in this link https://www.linuxquestions.org/questions/linux-software-2/where-are-ppd-files-stored-gentoo-ubuntu-337393/ that for ppd files

  The database is in /usr/share/ppd.

and

  installed ppds are in /etc/cups/ppd

so if you edited the ppd file; saved it to /usr/share/ppd (naming it 165e.ppd or such) then when you set up the printer; by going to ADD in the printers folder; and telling Ubuntu you want to use a ppd file; you point Ubuntu towards your 165e.ppd in /usr/share/ppd and .. it should work ..