Ubuntu 13.04 is unable to mount a disk drive from ex-windows system

This is the crucial part in your message ...

"The disk contains an unclean file system"
"The NTFS partition is in an unsafe state"

Remember... windows discs need to be checked for filesystem problems.

You can try to fix this from Ubuntu with ntfsprogs. If not installed ...

sudo apt-get install ntfsprogs

and this will try to clean the disc ...

sudo ntfsfix /dev/sda3

  ntfsfix is a utility that fixes some common NTFS problems. ntfsfix is NOT a Linux version of chkdsk. It only repairs some fundamental NTFS inconsistencies, resets the NTFS journal file and schedules an NTFS consistency check for the first boot into Windows.

  You may run ntfsfix on an NTFS volume if you think it was damaged by Windows or some other way and it cannot be mounted.

You can also follow the last remark: mount the disc in readonly. You can then extract the contents to another disc.
If the disc do not have anything important you can also format them and ditch ntfs altogether.

I also found this on the ntfs-3g page and is probably important too since it has the exact same message (caveat: the solution requires a working Windows 8...):

  "Metadata kept in Windows cache, refused to mount"

  When dual booting with Windows 8, trying to mount a partition that is visible to Windows may yield the following error:

 The disk contains an unclean file system (0, 0).
 Metadata kept in Windows cache, refused to mount.
 Failed to mount '/dev/sdc1': Operation not permitted
 The NTFS partition is in an unsafe state. Please resume and shutdown
 Windows fully (no hibernation or fast restarting), or mount the volume
 read-only with the 'ro' mount option.

  The problem is due to the new Windows 8 feature called "fast startup". When fast startup is enabled, part of the metadata of all mounted partitions are restored to the state they were at the previous closing down. As a consequence, changes made on Linux may be lost. This can happen on any partition of an internal disk when leaving Windows 8 by selecting "Shut down" or "Hibernate". Leaving Windows 8 by selecting "Restart", however, is apparently safe.

  To enable writing to the partitions on other operating systems, be sure the fast restarting of Windows 8 is disabled. This can be achieved by issuing as an administrator the command:

 powercfg /h off

  You can check the current settings on Control Panel > Hardware and Sound > Power Options > System Setting > Choose what the power buttons do. The box "Turn on fast startup" should either be disabled or missing.

Best course of action: re-install Windows 8. Fix the problem with the disc. Install Ubuntu.


sudo apt-get update giving error about duplicate

I went into synaptic ("Ubuntu Software Center") icon.

I went into the Ubuntu top bar indicator (not the winow, the one at the top of  your screen) and went into preferences and unchecked the second duplicate (shown here when both were still checked):

Then I was able to sudo apt-get update at the command line again.


Can private IP address be the same as public IP address?

You cannot have both private IPs and public IPs with a home network existing with more than one host on the network.  Once you have added a router into your network, the most common IP addresses you will get usually start with 192.168.1.x or 192.168.0.x.  The public IP is supplied by your ISP.  If your computer is getting the public IP address there is the possibility that your MAC address of your network card maybe exposed to their service via being located in a DMZ through the firewall of your router, or you have a modem that is connected directly to your computer that is doing bridging.

More information about Public vs Private IP Addresses:  https://technet.microsoft.com/en-us/library/cc958825.aspx

One thing that I mean by a modem being connected directly to your computer doing bridging, is that DSL Modems can support RFC 1483 Transparent bridging.  When the DSL modem is set to RFC 1483, the public IP is then passed to the next network device.  The DSL modem is now only used for the DSL handshake connection.  The login information is now handled by the next network device whether it be a router or the computer itself.


add a commandline synthesis engine to jovie (text to speech for KDE)

After some investigations, I found a way for that using command line. If Jovie is working correctly with espeak and libttspico-utils is installed.

on konsole type

~$ spd-conf

and answer the default answer for each question. This will create a conf file in ~/.config/speech-dispatcher/speechd.conf

edit this file and uncomment the line containing "pico-generic"

...
#AddModule "ibmtts"       "sd_ibmtts"    "ibmtts.conf"
#AddModule "cicero"        "sd_cicero"     "cicero.conf"
 AddModule "pico-generic" "sd_generic"     "pico-generic.conf"

 # DO NOT REMOVE the following line unless you have
 # a specific reason -- this is the fallback output module
 # that is only used when no other modules are in use
 #AddModule "dummy"         "sd_dummy"      ""
...

Then edit the file ~/.kde/share/config/kttsdrc, and change the outputModule of your talker from espeak to pico-generic

[Talkers]
Sam=<voice name="Sam" lang="en" outputModule="pico-generic" voiceName="" voiceType="1"><prosody volume="0" rate="0" pitch="0" /></voice>

Check that speech-dispatcher is in user mode, by checking the file /etc/defaults/speech-dispatcher it should say:

RUN=no

To be sure, restart the computer.

The first time I used TTS, I got an DBUS error message, but after it is working fine.

Hope it will help.


Ubuntu doesn't boot after Windows 7 installation?

Use  EasyBCD to edit the Microsoft boot manager, too add ubuntu on to it. Then boot up Ubuntu and install Boot-Repair and reinstall grub and that should take care of it and set the default boot manager back to grub.

Boot-Rair

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get
update sudo apt-get install -y boot-repair && (sudo boot-repair &)

From "https://help.ubuntu.com/community/Boot-Repair"

Just post a comment if you just need me to go into more detail on this.


Is it a good idea to scan external HDD with Ubuntu?

I have done this many times.  Have taken infected drives out of a physical computer and hooked them up to my Windows machine to clean the HDD.  As long as Antivirus application on your Windows machine is up to date you should be fine.  Before you access the external drive run a scan on it.  I would suggest both antivirus (I prefer AVG) and MalwareBytes.


Why doesn't this interfaces post-up script work?

Improvements to the scripts:

/etc/network/interfaces :

auto lo
iface lo inet loopback

iface eth0 inet static
 address 192.168.1.2/24
 gateway 192.168.1.1
 post-up /bin/myscript.sh

/bin/myscript.sh :

#!/bin/sh
echo "script run" > /home/user/ifuptest.txt

make executable:

chmod +x /bin/myscript.sh

Troubleshooting on setting down/up the interface:

Try this:

ip link set dev eth0 down
ip link set dev eth0 up

then:

ifconfig eth0 down
ifconfig eth0 up

and check the difference in behaviour.


tar: Refusing to read archive contents from terminal (missing -f option?)

Why the g in xvgf?
Based on the documentation:
`-g snapshot-file'
During a `--create' operation, specifies that the archive that tar creates is a
new GNU-format incremental backup, using snapshot-file to determine which files
to backup. With other operations, informs tar that the archive is in incremental
format.

It's not needed. Instead, do:
tar -xvf <filename>


Annoying click/popping sound on Ubuntu 20.04

It was happening because Ubuntu turned on the sound card power-saving capabilities.
Turning it off can be the only way to get rid of the annoying sound:

Verify how is your sound card's power_save parameter:

cat /sys/module/snd_hda_intel/parameters/power_save

If it returns 1, do the following to change it temporally:

echo "0" | sudo tee /sys/module/snd_hda_intel/parameters/power_save

If the previous step worked for you, persist that configuration (otherwise the problem will continue after reboot):

echo "options snd_hda_intel power_save=0" | sudo tee -a /etc/modprobe.d/audio_disable_powersave.conf

(Optional) You can also do the same for power_save_controller parameter following the steps 1, 2 and 3 replacing power_save by power_save_controller also changing 0 to N.

Note: using the first step will probably return Y for this parameter, instead of 1.


You don’t need fstrim on a spinning rust HDD. Disable the fstrim.service and fstrim.timer with the following.
rm /var/lib/systemd/timers/stamp-fstrim.timer
systemctl stop fstrim.service fstrim.timer
systemctl disable fstrim.service fstrim.timer
systemctl mask fstrim.service fstrim.timer


Package installation takes too long in Bash on Windows

Two days after release lots of people are seeing your problem and culprit is always the firewall/antivirus that is just not compatible with WSL yet.

Uninstalling the antivirus/firewall is the only thing that works by now.


indicator-cpufreq not working with kernel 3.17?

You are running by default, the Intel Pstate system in Ubuntu 14.10.  To use the older ACPI method, you need to edit the grub file and reboot:

Open a terminal alt+ctrl+t and enter the folowing lines:

sudo cp /etc/default/grub /etc/default/grub.backup

sudo nano /etc/default/grub

In the Nano editor, look for the line beginning with GRUB_CMDLINE_LINUX_DEFAULT   At the end of the line add intel_pstate=disable The whole line shoud now look like this

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_pstate=disable"

press the keys ctrl+o to write the file, and ctrl+x to exit Nano.  Then in the terminal, enter the following command to update Grub

sudo update-grub

You should now reboot your computer, and find that you are able to set the governors as you did in 14.04

This answer has been taken from here.


Gnome source code of fade out effect for inactivity

I don't think you're looking in the right way. The respective effect of fade out is realised by gnome-screensaver. Now, you can check (with which gnome-screensaver in terminal) that you have installed on your system gnome-screensaver, but the problem is that this is the compiled version, so no sources on your system in this sense.

But, don't worry, you can download gnome-screensaver source package from Launchpad: https://launchpad.net/ubuntu/raring/+source/gnome-screensaver. The source code of fade out effect can be found in gs-fade.c and gs-fade.h files from src directory:


KVM + Xenial Server. libvirt-bin won't configure

This seems to be caused by apparmor as you will find something similar to this in your syslog:

  kernel: [ 2386.130467] audit: type=1400 audit(1461767119.644:89): apparmor="DENIED" operation="create" profile="/usr/sbin/libvirtd" pid=21368 comm="libvirtd" family="netlink" sock_type="raw" protocol=0 requested_mask="create" denied_mask="create"

Until the bug is fixed, one insecure workaround is to temporarily disable apparmor for the installation:

sudo systemctl stop apparmor.service
sudo apt-get -f install
sudo systemctl start apparmor.service


How to install ccache version 3.2 on Ubuntu 14.04?

Download the latest version of ccache from cache.samba.org for better performance.

After downloading, follow the steps as mentioned below:

Extract the files using tar command:

tar -xvf ccache-3.2.4.tar.bz2

Go inside ccache-3.2.4 folder and run the following commands:

./configure
./make
sudo make install

Open ~/.bashrc file in your editor and insert the following lines at the end of it:

export CCACHE_DIR=/home/user_name/.ccache
export CCACHE_TEMPDIR=/home/user_name/.ccache

Note : fill user_name with your User name.
Save your .bashrc and source it as follows:

source ~/.bashrc

To check ccache is working or not type : ccache -s to see the statistics


can not install libpq-dev in ubuntu 14.04

Problem is solved!

I solved this with remove libpq5 :

sudo apt-get remove libpq5
sudo apt-get install libpq-dev


Cannot install MySQL - libaio.so.1: cannot open shared object file: No such file or directory - Live Installation with Persistence

After more many hours of research, i found that the problem wasn't the LiveUSB or the library itself. The problem was AppArmor, which blocked MySQL to use that library. So I disabled it:

sudo /etc/init.d/apparmor stop
sudo /etc/init.d/apparmor teardown
sudo update-rc.d -f apparmor remove

And a not-so-orthodox way, I completely removed AppArmor, to prevent future problems with:

sudo apt-get purge apparmor

Then I uninstalled and reinstalled MySQL Server flawlessy. It works!


Ubuntu freezes constantly, any way to fix?

This probably more of a hardware problem than a problem with Ubuntu. First thing to check is if your motherboard BIOS is up to date for the Ryzen 2200g.


As mentioned in the comments, the solution was to change the date and time to the correct values.

If anyone else is having the same issue as the question asker, and their date and time is correct, try installing ca-certificates


Dual boot with Windows 10, but with the wrong Windows 10

You've got a complex setup:

/dev/sda is partitioned using the old Master Boot Record (MBR) method, has a BIOS-mode Windows boot loader installed in its MBR, and appears to hold both Windows and Ubuntu installations. Based on its size, I'm guessing this is the HDD to which you referred.
/dev/sdb is partitioned using the new GUID Partition Table (GPT) system, has a BIOS-mode Windows boot loader in its MBR, has an EFI-mode Windows boot loader on its /dev/sdb2, has an EFI-mode GRUB (Ubuntu boot loader) on its /dev/sdb2, and seems to hold a Windows installation. Based on its size, I'm guessing this is your SSD.
/dev/sde looks like a bootable USB drive with an Ubuntu (or other Linux) installer on it. I'm therefore ignoring it.
/dev/sdf is partitioned using GPT and has what looks like an NTFS data partition with no OS installed on it. As it doesn't seem to be a boot disk, I'm ignoring it.

This is complex and complicated because Windows ties its boot mode to its partition table type: On MBR disks, Windows boots only in BIOS/CSM/legacy mode; and on GPT disks, Windows boots only in EFI/UEFI mode. You've also got both BIOS-mode and EFI-mode Windows boot loaders on your disks. This suggests a BIOS-mode Windows installation on /dev/sda and an EFI-mode Windows installation on /dev/sdb. (I'm guessing that the BIOS-mode Windows boot loader on your GPT /dev/sdb is either left over from a previous installation or was accidentally installed to the wrong disk.) There's no sign of a BIOS-mode GRUB, but there is an EFI-mode GRUB on /dev/sdb2; but the bulk of Ubuntu seems to be installed on /dev/sda. Ubuntu is much less rigid in its linkage of partition table types and boot-mode styles, so the Ubuntu configuration, although unconventional, is not puzzling.

Note that switching between OSes installed in the two boot modes (BIOS and EFI) is tricky. You must normally use the firmware's built-in boot manager, which is usually awkward. My suspicion is that this is what you were doing; but the update broke something; perhaps it got confused because of the mixture of MBR and GPT disks and the multi-boot configuration. Note that the EFI-mode GRUB cannot redirect the boot process to boot your BIOS-mode Windows installation, but it can redirect to boot your EFI-mode Windows installation.

One caveat to the preceding analysis is that I don't know if an EFI-mode Windows boot loader, installed to the ESP on a GPT disk, could boot a Windows installation on an MBR disk. If it can, then my analysis may be a bit off; you might have been booting both Windows installations through the EFI-mode Windows boot loader. If you're certain that you could once boot both Windows versions through GRUB, then this was probably happening, but the Windows boot loader update probably changed the Windows configuration in some way that broke the ability of the EFI-mode boot loader to boot the OS.

I have two suggestions for how to proceed with a repair. Neither is guaranteed to work; in fact, they're both long shots. Thus, I STRONGLY recommend you back up your important data and be prepared to do a full re-install of the non-working Windows installation. My two ideas are:

Use rEFInd to redirect to a BIOS-mode boot -- My rEFInd boot manager can redirect from an EFI-mode to a BIOS-mode boot. You could obtain the USB flash drive version from the rEFInd downloads page, prepare a medium with it, and edit EFI/BOOT/refind.conf on the USB drive: Uncomment the scanfor line and ensure that hdbios is among the options. This should enable rEFInd to boot Ubuntu, the Windows on the GPT disk (via the Windows icon), or the BIOS-mode Windows on the hard disk (via the gray diamond-shaped icon). If this works, you could install rEFInd to the hard disk by installing the Debian package or PPA, make the same change to /boot/efi/EFI/refind/refind.conf (in Ubuntu), and use rEFInd as your default boot program. This method is most likely to be helpful if you had been booting both Windows versions through a single Windows boot loader. In this scenario, the update changed the HDD Windows to expect to boot in BIOS mode, and rEFInd will do this.
Convert your HDD Windows install to GPT and EFI-mode booting -- This blog post describes how to convert Windows to boot in EFI mode from a GPT disk rather than in BIOS mode from an MBR disk. (The new Windows MBR2GPT program will do the same thing in an automated way, but I'm not at all sure how well it would work on your complex triple-boot setup.) If you apply this method to your existing setup, it might get Windows on the first disk booting again. Note, however, that the system will probably boot straight to that Windows. You'll need to use EasyUEFI to adjust the boot order to make GRUB (ubuntu) the default boot loader again; and after that, you may need to type sudo update-grub in Ubuntu to ensure that GRUB's menu has been suitably updated. This method is most likely to be helpful if you had been picking your Windows version through the firmware's built-in boot manager before you hit GRUB. In this scenario, you probably need to bring more consistency to the configuration, and that means converting everything to boot in EFI mode from GPT disks.

As I said, neither of these approaches is guaranteed to work, and either could make matters worse. Trying rEFInd on a USB flash drive is quite low in risk; and if it works, installing it to the hard disk is also unlikely to create new problems, although there are ways in which the rEFInd installation might fail. Converting Windows from BIOS-mode to EFI-mode booting is much riskier.


Kubuntu 18.0.4 How to install KDE Plasma version 5.17 and remove 5.12.9

Kubuntu 18.04 will remain on KDE Plasma 5.12.x. You will only get updates to 5.12.x.

If you want a higher version, an option is to use Kubuntu 19.10 which, unlike Kubuntu 18.04 LTS, is supported for only nine months from the date of its release in October 2019. The release notes are here: https://kubuntu.org/news/kubuntu-19-10-is-released-today/.

Another option is to wait for the release of Kubuntu 20.04 LTS scheduled for the second half of April 2020 with three years of support. That will come with KDE Plasma 5.18.x.

Yet another option is to use KDE neon but we don't support KDE neon here. Support for KDE neon is available at our related site Unix & Linux, Kubuntu Forums, KDE Community Forums, and reddit/kde.


Can't adjust screen brightness on Ubuntu 12.04LTS

Try using xbacklight.

Install it by running sudo apt-get install xbacklight in a terminal.
Change brightness by xbacklight -set <level>, where <level> is an integer ranging from 0 to 100 (lowest brightness to highest).

For example, to set medium brightness one would use

xbacklight -set 50


How do I stop Unity Dash truncating file names?

The answer appears to be No. Dash determines if you are using a desktop, laptop, or netbook, but after that the layout of the Dash results view is hardcoded. I saw no options available to change the layout or how it works.

Given the need to present a consistent appearance across platforms, especially phone and tablet, I can see how this is needed. I suspect such long file names would be a problem even for the equivalent of Nautilus compact view.

But you might file a bug report asking for the ability to see the full name in a tool tip or in the new preview view.

Another option would be to wrap a basic GUI, even something as simple as Zenity or Yad, or other GUI options using Python, Tcl/Tk, etc to create a simple way to browse and select these files.


How to fix issue with apt and sources.list.d to install Yandex browser?

All right, I just found the answer is that the two lines in yandex-browser.list should be one line: deb [arch=amd64] http://repo.yandex.ru/yandex-browser/deb beta main . That's all.

(I have very little experience editing these things by hand, usually use a PPA, so I wasn't aware it was that simple.)

I'll leave this question up, however, in case some other beginners are confused by the directions given at that website and encounter the same error.


Need to configure 4 Serial ports virtualbox guest win machine (my host is ubuntu 11.10)

I'm afraid it looks like you are not going to be able to use that application under VirtualBox:

If your app really requires access to the APCI-7500 card it won't work. VB doesn't emulate PCI devices. It does emulate serial ports, but it just connects them to linux ports.

If you just need lots of serial ports, it won't work. VB only supports up to two serial ports per virtual machine.

There are some workarounds, like tweaking the VB source, or emulating the serial ports with (virtual) usb devices that can work or not in your case.


Xubuntu 14.04 hangs while browsing using Chromium or Firefox

maybe disabling the adobe flash player can solve it.

in the chrome enter= chrome://plugins (i dont have chromium,so if dosent work

replace chrome vs chromium)and disable flash player or ppapi flash)

and for firefox go to addons and plugins.


Unbale to use Q(lowercase) key after a failed key-binding effort

After doing a lot of things that did not work, I finally purged Xbindkeys (which I had installed in between and may have created the conflict) and terminator. After a reboot, the 'q' key is working fine now.


Terminal periodically swarmed with kbuildsyscoca4 lines

According to this, you may be able to disable it with:

  Hmm, any and each of these may be enough. In order of neatness and
  effort needed;

  A. Start kdebugdialog and tick Disable all debug output.

  B. Open up that ~/.local/share/applications/mimeapps.list, look for lines including mplayer.desktop and redact it or remove the entire
  section including it.

  C. Start your programs with dolphin &>/dev/null. Or to fork and disown it; dolphin &>/dev/null & disown $!. Annoying workaround
  though.

With C, dolphin > /dev/null 2>&1 & disown may be better though.

The problem is probably caused by the kbuildsycoca4 executable, which is provided by the kdelibs-bin or kdelibs5-dbg packages, which were likely installed as a dependency of konqueror. So you may be able to fix your issue with one of these commands:

sudo apt-get remove kdelibs5-dbg
sudo apt-get remove kdelibs-bin

Note if you want other KDE apps they may be removed as well.


When you generated your keys, that is usually the dir that they will be in if you didn't specify a full path. Try this?

start at your ~/

cd
mkdir .ssh
chmod 700 .ssh
cd .ssh
ssh-keygen -t rsa -f id_rsa
ssh-copy-id <ip>


Gnome 3.24 shows no window border and mismatch full size windows

The suggestion here is to use themes that are best suited for the desktop-environment that you are running.

The default theme for Unity called Ambiance is the theme you should use for Unity itself.

When switching to GNOME-Shell, the default theme you should use is Adwaita.

Third-party themes can also be used - their support for various desktop-environments can vary.  Examples that you can use in both include Adapta and Arc-Theme (available in the 16.10/17.04 repo).

Its also worth double-checking that you have not got locally installed themes in ~/.themes - themes are GTK+ specific so if your theme is not compatible with the version of GTK+ you are running on, then odd stuff like you described can occur.

GNOME-Tweak-Tool (available from GNOME-Software) can be used to switch themes in GNOME-Shell; unity-tweak-tool can be used in Unity if you are using third-party themes.

How to install themes with GNOME tweak tool?


D'oh! After REALLY reading the descriptions in the build options, I realized how silly this question is! --build_dir is to store files needed for compiling, --installdir is the location to install wxWidgets, --wxpy_installdir is for wxPython binaries - each already mentioned very clearly in the build options! My inexperience with source-compiling is so apparent..


Mobile Internet Modem Olivetti Olicard 155 does not work in Ubuntu 12.10

Tested on my Ubuntu 12.04.1 LTS PC:

First, add the following lines to the /etc/udev/rules.d/14-olicardmodules.rules file (you will need superuser privileges to edit it):

ATTRS{idVendor}=="0b3c",ATTRS{idProduct}=="c004",RUN+="/sbin/modprobe usbserial vendor=0x0b3c product=0xc004"
KERNEL=="ttyUSB[23]",ACTION==”add”,ATTRS{idVendor}=="0b3c",ATTRS{idProduct}=="c004",RUN+ ="/bin/sleep 6"

Source (in Portuguese)

Now remove the USB modem and reattach it (no reboot was needed in my case). It might take a while, but a new entry will show up on the list of network connections as "Mobile Broadband". Click "enable mobile broadband", a checkmark will appear next to it:

You have successfully enabled mobile broadband networking, but you still need to set up the connection settings as per your ISP parameters. In order to do that, call your ISP tech support call center and get ready for long hours of waiting, because the tech support drones can't tell their left hand from the right and will enter kernel panic mode when you mention "Linux".
Just kidding. Click "edit connections", and on the "mobile broadband" tab click "add". Follow the dialog boxes filling your country and carrier names, and Ubuntu will provide the connection settings itself! No need for fiddling with settings, contacting tech support or installing third-party drivers. Ain't it beautiful?


Change to the installation script directory

cd /home/najam/Downloads/

Add execute permissions (this is the part you missed)

sudo chmod +x Anaconda2-4.2.0-Linux-x86_64.sh

Then install

./Anaconda2-4.2.0-Linux-x86_64.sh


You need to install the Adobe AIR Runtime before you can install the game.

The latest version for Linux is 2.6. Note that additional steps are required if you are running a 64-bit system, Ubuntu 12.04, or both. Instructions are included in the link above.

Once Adobe AIR is installed, double-click the Botanicula.air file to install the game. Select the default options. (The install can take a while.)

The application BotaAIRlinux will now appear as an application in your dash. Click on it to run.

(For detailed discussion of this procedure see http://amanita-design.net/forum/index.php/topic,3729.0.html - includes additional links, and instructions for other Linuxes.)


Linux icon appearing in rEFind even after uninstalling Linux

There are several ways to do what you want:

In refind.conf, uncomment the scanfor line and ensure that it does not include the hdbios option. This will also have the effect of removing any other BIOS-mode boot options from the menu (at least for your internal disk), so if you're dual-booting Windows, this option may be undesirable.
In refind.conf, use the dont_scan_volumes option, and specify any unique subset of the description you want to remove, such as dont_scan_volumes "whole disk", assuming no other entry you care about includes the string "whole disk".
Using a Linux emergency disk, wipe GRUB from the MBR of the hard disk by doing something like sudo dd if=/dev/zero of=/dev/sda bs=440 count=1. This command is potentially quite dangerous! If you get any of the options wrong, you could seriously damage your partition table or even permanently destroy data on your hard disk. This command should take a fraction of a second to execute. Also, you must NOT issue the equivalent of this command in OS X, since OS X's version of dd doesn't let you specify partial-sector block sizes (bs=440).

If you opt to edit refind.conf, you must locate it. If your rEFInd installation is an old one or if you used the option to install it to your OS X root (/) partition, it will be /EFI/refind/refind.conf. If your rEFInd installation is newer, it's more likely to be in that directory on your ESP, which you'll need to mount:

mkdir /Volumes/ESP
sudo mount -t msdos /dev/disk0s1 /Volumes/ESP

refind.conf will then probably be at /Volumes/ESP/EFI/refind/refind.conf.


Scheduling power off and on of my headless server

The first problem I decided to solve by specifying amount of seconds
for wake up time instead of explicit time.
The second problem can be
solved by specifying full path to the rtcwake.

30 23 * * * /usr/sbin/rtcwake -m off -s 25200


Create a custom syntax highlight in gedit

Create and open your fortune language file:

sudo touch /usr/share/gtksourceview-3.0/language-specs/fortune.lang
sudo -i gedit /usr/share/gtksourceview-3.0/language-specs/fortune.lang

Paste the following:

<?xml version="1.0" encoding="UTF-8"?>
<language id="fortune" _name="Fortune" version="2.0" _section="Markup">
  <metadata>
    <property name="mimetypes">text/plain</property>
    <property name="globs">*.</property>
  </metadata>

  <styles>
    <style id="at"      _name="@ sign"  map-to="def:constant" />
    <style id="percent" _name="percent sign"  map-to="def:comment" />
  </styles>
  <definitions>
    <context id="fortune">
      <include>
        <context id="at" style-ref="at">
          <start>@</start>
          <end>$</end>
        </context>
        <context id="percent" style-ref="percent">
          <start>%</start>
          <end>$</end>
        </context>
      </include>
    </context>
  </definitions>
</language>

Make sure it is accessible:

sudo chmod 0644 /usr/share/gtksourceview-2.0/language-specs/screenplay.lang

Restart gedit.

Reference - my source answer

My pronouns are He / Him


is it possible for the UK English upside-down option?

I don't believe what you are looking for is possible (well it's technically possible, as seen on Facebook, but I very much doubt the Ubuntu developers will implement it!)
You can however change the entire display to be upside down in System->Preferences->Monitors and change Rotation to Upside Down.

(Note my screenshot is a little diferent because I have two monitors.)


I think the "best" single command would be

cp -i /etc/cust_{order,name}s $HOME


Crontab opens as blank page, cannot save

The crontab -e command will check the environment variables $EDITOR and $VISUAL for an override of the default text editor, so...
Two of the many other possible ways can be applied:

1. Either: Run select-editor command on  terminal (you can get a terminal by pressing Ctrl+Alt+T) as below

$ select-editor

Select an editor.  To change later, run 'select-editor'.
  1. /bin/ed
  2. /bin/nano        <---- easiest
  3. /usr/bin/vim.basic
  4. /usr/bin/vim.tiny

Choose 1-4 [2]:

The default here is chosen as 2 mentioned in the square bracket. Your answer will take the default to run with crontab -e when run independently.

2. OR: (This is my personal fav.) Choose one of the following to override default editor:

$ export EDITOR=nano

or

$ export VISUAL=nano

Of course, this #2 choice you can make permanent by putting it on your .bashrc or .bash_profile.


Which ICC Profile should I use for my notebook screen (Toshiba Tecra)?

You can generate it yourself if you're willing to spend a bit of money and get a colorimeter.  Amazingly, there's one that's not only compatible with Linux, it's built for Linux!

ColorHug

Use it with the colorhug-client package available in the repos.

This is really the best way as the colour profile is generated based on your own individual screen and even compensates for room lighting.

Otherwise, as you've seen if you do a Google search, colour profiles for something very specific are very hard to find and often don't exist.


old Dell is giving me "No DEFAULT or UI configuration directive found!" when booting from usb

Go to BIOS settings and change the boot order to boot HD first and USB last. This happened to me awhile back and for some reason that fixed it for me.


rocommunity public default -V systemonly

Your read-only community string is public. default represents what traffic will be accepted, which is to say all traffic will be accepted. Change default to be a hostname or a network address and slash annotated subnet to restrict it further (e.g. 10.4.0.0/16). The read-only context will be restricted to the -V systemonly context which means only OIDS .1.3.6.1.2.1.1 and .1.3.6.1.2.1.25.1 will be visible.


Installation fails on HP Laptop (Windows OK)

I got it installed on my laptop same model using this... Courtesy of user boldos

Why won't my HP Envy x360 laptop with Ryzen 7 3700U boot Ubuntu live CD?

Upgrading to the 5.2.11 kernel after installation boots without mods.


Failed to start Apply Kernel Variables - Cannot connect to ethernet with sudo dhclient enp2s0

Checked the output again and booted a Live USB.
Ran:

sudo fsck -f /dev/sda3

Answered "yes" to "Fix all errors" (prompt pops up after manually entering y a few times)
Ran fsck again. Returned no errors. Rebooted and logged in with no errors!


How to hide "quodlibet wants to inhibit shortcuts" message

I've run into the same issue with Evolution (many others with other programs). The reason seems to be the new default display server in Ubuntu 17.10: Wayland. Switching back to XORG as described in this post resolves the problem handsomely:

Logout as user
On the login page, click on the gearwheel, choose "Ubuntu on Xorg"
Login again


How do I disable the touchpad while typing on Macbook?

Open a terminal and type the following command:

syndaemon -k -i 2 -d

Type some text in Gedit or LibreOffice to see if it works ok. It should completely disable your touchpad while typing. I'm using it myself on my Macbook Pro 5,3.

Now, you want it to start automatically when you log in: launch your start up utility (in french it's called "Applications au démarrage"), create a new entry, name it as you want, and copy/paste the following command:

syndaemon -k -i 2 -d &

Only drawback is that sometimes, I don't know why, I have to manually put the command in a terminal, like it hadn't work while the desktop was loading... If someone can help about it :)


Cannot run the Unity 8 openclipart scope example

Since Unity 8 (and unity-scope-tool by extension) are designed so they can run under both Mir and X11, there is some ambiguity in the dependencies.  The error you got indicates that it is trying to use the Mir backend.

You should be able to fix the problem by installing the unity8-fake-env package, which provides some of the needed APIs to run the tool under X:

sudo apt-get install unity8-fake-env


Why does terminal keep closing right after I open it?

It sounds like you may have modified the gnome-terminal profile itself, rather than any profile/resource file for your shell.

At least in 12.04 (and as far as I can tell in 14.04 - although gconf functionality seems to be transitioning to the dconf database with successive releases), you can essentially reset your gnome-terminal preferences to  their factory defaults using the gconftool command:

gconftool --recursive-unset /apps/gnome-terminal

In the absence of acurrently working gnome-terminal you will either need to use the desktop run dialog Alt+F2, or start an alternative terminal emulator such as a plain xterm from the dash, to run the command.


Find (and reinstall) packages with corrupted files (without breaking anything)

From the debsums man page:

apt-get install --reinstall $(dpkg -S $(debsums -c) | cut -d : -f 1 | sort -u)
       Reinstalls packages with changed files.

I just ran this on my system because the disk content was randomly corrupted while I was experimenting with a beta OS.  Here's what I did (and it seems to have worked well):

First, I installed 'debsums' and ran it to see if I had any corrupt files on my system:

$ sudo apt-get install debsums
$ sudo debsums_init
$ sudo debsums -cs
/usr/share/bash-completion/completions/ssh
/usr/share/icons/hicolor/scalable/actions/cheese-take-photo.svg
/usr/share/gnome/help/gnumeric/C/files-textopen.xml
/usr/share/dbus-1/services/indicator-sound.service
/lib/modules/3.11.0-12-generic/kernel/drivers/mtd/ubi/ubi.ko

As you can see, I have five corrupt files so I need to reinstall them.  This is how I found which packages contain the corrupt files:

$ sudo debsums -c | xargs -rd '\n' -- dpkg -S | cut -d : -f 1 | sort -u
bash-completion
cheese-common
gnumeric-doc
indicator-sound
linux-image-extra-3.11.0-12-generic

Then I repaired the corruption by reinstalling the damaged packages:

$ xargs -rd '\n' -a <(sudo debsums -c | xargs -rd '\n' -- dpkg -S | cut -d : -f 1 | sort -u) -- sudo apt-get install -f --reinstall --
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  linux-image-generic
Use 'apt-get autoremove' to remove it.
0 upgraded, 0 newly installed, 5 reinstalled, 0 to remove and 0 not upgraded.
Need to get 43.9 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ saucy/main bash-completion all 1:2.0-1ubuntu3 [173 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ saucy/main cheese-common all 3.8.3-0ubuntu1 [2,929 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ saucy/universe gnumeric-doc all 1.12.6-1 [7,295 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ saucy/main linux-image-extra-3.11.0-12-generic i386 3.11.0-12.19 [33.5 MB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ saucy/main indicator-sound i386 12.10.2+13.10.20131011-0ubuntu1 [55.7 kB]
Fetched 43.9 MB in 10min 23s (70.4 kB/s)
(Reading database ... 174913 files and directories currently installed.)
Preparing to replace bash-completion 1:2.0-1ubuntu3 (using .../bash-completion_1%3a2.0-1ubuntu3_all.deb) ...
Unpacking replacement bash-completion ...
Preparing to replace cheese-common 3.8.3-0ubuntu1 (using .../cheese-common_3.8.3-0ubuntu1_all.deb) ...
Unpacking replacement cheese-common ...
Preparing to replace gnumeric-doc 1.12.6-1 (using .../gnumeric-doc_1.12.6-1_all.deb) ...
Unpacking replacement gnumeric-doc ...
Preparing to replace linux-image-extra-3.11.0-12-generic 3.11.0-12.19 (using .../linux-image-extra-3.11.0-12-generic_3.11.0-12.19_i386.deb) ...
Unpacking replacement linux-image-extra-3.11.0-12-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.11.0-12-generic /boot/vmlinuz-3.11.0-12-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.11.0-12-generic /boot/vmlinuz-3.11.0-12-generic
Preparing to replace indicator-sound 12.10.2+13.10.20131011-0ubuntu1 (using .../indicator-sound_12.10.2+13.10.20131011-0ubuntu1_i386.deb) ...
Unpacking replacement indicator-sound ...
Processing triggers for man-db ...
Processing triggers for libglib2.0-0:i386 ...
No such key 'auto-launch' in schema 'com.ubuntu.update-notifier' as specified in override file '/usr/share/glib-2.0/schemas/20_xubuntu-default-settings.gschema.override'; ignoring override for this key.
Processing triggers for hicolor-icon-theme ...
Setting up bash-completion (1:2.0-1ubuntu3) ...
Setting up cheese-common (3.8.3-0ubuntu1) ...
Setting up gnumeric-doc (1.12.6-1) ...
Setting up linux-image-extra-3.11.0-12-generic (3.11.0-12.19) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Not updating initrd symbolic links since we are being updated/reinstalled
(3.11.0-12.19 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(3.11.0-12.19 was configured last, according to dpkg)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.11.0-12-generic /boot/vmlinuz-3.11.0-12-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.11.0-12-generic /boot/vmlinuz-3.11.0-12-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.11.0-12-generic /boot/vmlinuz-3.11.0-12-generic
update-initramfs: Generating /boot/initrd.img-3.11.0-12-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.11.0-12-generic /boot/vmlinuz-3.11.0-12-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.11.0-12-generic /boot/vmlinuz-3.11.0-12-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.11.0-12-generic /boot/vmlinuz-3.11.0-12-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.11.0-14-generic
Found initrd image: /boot/initrd.img-3.11.0-14-generic
Found linux image: /boot/vmlinuz-3.11.0-12-generic
Found initrd image: /boot/initrd.img-3.11.0-12-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done
Setting up indicator-sound (12.10.2+13.10.20131011-0ubuntu1) ...

Finally, I checked to make sure that no corrupt files remain:

$ sudo debsums -c

There was no output from this command, which means that no errors were found.  :-)

One final note: you should also check your packages' config files to make sure they're OK.  This can be more difficult because config files often change, and the changes are legitimate, so you'll need to manually inspect each changed config file to determine whether or not it's actually corrupt.  This is how you get a list of changed config files:

$ sudo debsums -as
debsums: changed file /etc/gnome/defaults.list (from desktop-file-utils package)
debsums: changed file /etc/default/rcS (from initscripts package)
debsums: changed file /etc/subuid (from login package)
debsums: changed file /etc/subgid (from login package)
debsums: changed file /etc/sudoers (from sudo package)


Gnome terminal misbehave - command typing in one row only

You customized your $PS1 in .bashrc (or profiles) and broke it ;-)
Add some brackets [ ] for each one of your characters.
You can find more here : https://unix.stackexchange.com/q/191004/419015


After reading this article, I realised the tips are just a fortune data file.

So you could:

Install indicator-fortune from my [PPA];(https://launchpad.net/~thebernmeister/+archive/ubuntu/ppa)
Install fortunes-ubuntu-server;
In the preferences for indicator-fortune either add the fortunes directory, /usr/share/games/fortunes which will add all installed fortunes, or specifically add the file /usr/share/games/fortunes/ubuntu-server-tips.dat.


There are 2 possibilities, namely between the EFI partition error because it is deleted or damaged so it must be formatted or not the boot file in it? Because the partition on Windows has an effect on EFI in virtualbox.


Uninstall grub2 when booting without secure boot (tried everything, nothing worked)

If UEFI boot, you should just be able to set Windows as first in UEFI boot order.

But you may want to remove ubuntu entries from UEFI NVRAM/menu and /EFI/ubuntu folder from ESP - efi system partition.

How do I remove "Ubuntu" in the bios boot menu? (UEFI)

OR:

Can I remove Windows Boot Manager from dedicated Ubuntu computer?


Install the package libapache2-mod-php7.0

sudo apt install libapache2-mod-php7.0

or disable the PHP7 module by running

sudo a2dismod php7.0


Fixed it by upgrading to 18.04. Luckily the upgrade succeeded.

Really had a horrible time with 17.10 most buggy build so far..


Problems mounting an encrypted volume on a different computer

It seems trouble around automount feature.
Try uncheck this option and mount/unmount drive after logout/login.
Just due to mount/unmount of encrypted drives requires a bit more time for this operation - with automount option it can bring such little confuse. Logically.
But in practice it can be also multiuser exploring of your drives, by edge case.
Refer to this tutorial about two types of partition mounting:

AutomaticallyMountPartitions

I recommend you read part called "Unmounting a partition to prevent unwanted access".

Post Updates

WebUpd8.org post around mount/unmount :
How to remove mounted drives from the Ubuntu Unity launcher

LUKS encryption related
Official LUKS project: http://code.google.com/p/cryptsetup
FAQ: LUKS Frequently Asked Questions
Obviously it seems can be Natty Narwhal specific bug.
Need to say what launchpad fix especially for natty won't be released.
However, bug fixes for other distributions is exist.
Links for you:
LUKS: General Questions: 1.3 System Specific warnings
LUKS: Common Problems
LUKS: Issues with Specific Versions of cryptsetup
As edge solution you can add new and then remove old LUKS encryption key:
   $ sudo cryptsetup luksAddKey /dev/sdb [key|keyfile]
   $ sudo cryptsetup luksRemoveKey /dev/sdb [key|keyfile]

From LUKS: Common Problems: 3.4 Unlocking a LUKS device takes very long. Why?

The iteration time for a key-slot (see Section 5 for an explanation what iteration does) is calculated when setting a passphrase. By default it is 1 second on the machine where the passphrase is set. If you set a passphrase on a fast machine and then unlock it on a slow machine, the unlocking time can be much longer. Also take into account that up to 8 key-slots have to be tried in order to find the right one.
If this is problem, you can add another key-slot using the slow machine with the same
passphrase and then remove the old key-slot. The new key-slot will have an iteration count adjusted to 1 second on the slow machine. Use luksKeyAdd and then luksKillSlot or luksRemoveKey.
However, this operation will not change volume key iteration count (MK iterations in output of "cryptsetup luksDump"). In order to change that, you will have to backup the data in the LUKS container (i.e. your encrypted data), luksFormat on the slow machine and restore the data. Note that in the original LUKS specification this value was fixed to 10, but it is now derived from the PBKDF2 benchmark as well and set to iterations in 0.125 sec or 1000, whichever is larger. Also note that MK iterations are not very security relevant. But as each key-slot already takes 1 second, spending the additional 0.125 seconds really does not matter.

Another LUKS tutorial:
HOWTO: Automatically Unlock LUKS Encrypted Drives With A Keyfile


Assigning unallocated partition to Ubuntu

During install choose custom partitioning. First create a swap-partiton 1 or 2 times the size of your RAM with that unallocated space. Tell the computer to use the swap-partition as swap. Then create a Ext4-partition, tell the computer to use that as / . If u use UEFI than the bootloader should be installed in the 500MB EFI System Partition.


how can i install new themes on Xubuntu?

1. Download X-Aero theme

Open your terminal and run following command :

wget http://xfce-look.org/CONTENT/content-files/170901-x-aero.zip

2. Extract the theme

cd Downloads/ && unzip 170901-x-aero.zip

3. Copy all theme folder to /usr/share/themes

First, open Thunar as root :

gksudo thunar

Select all X-Aero theme folder in Downloads/ Directory

Paste it to /usr/share/themes directory.

4. Open your theme setting

Go to Setting --> Appearance and you'll see many themes with X-Aeros name, click on one of them.


To create a new Documents folder

Open home folder
Right click and create new folder, name it Documents
Change icon by right click on the Documents folder and select properties. Click on the folder icon, this will bring up a select custom icon window.
Browse to File System > usr > share > icons > Humanity > places > 48 & select the 1st folder_documents.svg. This should restore the icon to your Downloads folder
Then execute gedit ~/.config/user-dirs.dirs in terminal (Press crtl+alt+T to open terminal) or browse to file. You'll see this line - XDG_DOCUMENTS_DIR="$HOME/ edit it to XDG_DOCUMENTS_DIR="$HOME/Documents"

Similarly for restoring Downloads folder repeat above steps but replace Documents with Downloads in each Step.


After last my update my Chrome now also tested cause Ubuntu logout trap :D
Ok, need to say also Gnome was logged into the Fallback session.

Then I go to restart, log into Recovery session.
First run point "dpkg repair " and wait for all my filesystems will be mounted.
Said yes for "mount" notification.

Next run point "Drop to Root Shell ".

Run (NVIDIA + GDM):

su username
wget <latest OR needed display driver href> OR cd <DOWNLOAD FOLDER>
sudo sh ./<DISPLAY-DRIVER-INSTALLER-NAME.run>
sudo dpkg-reconfigure gdm  ( a mostly Gnome fallback troubleshooter )
exit for usersession exit for root session and backing to Recovery menu.

Now run Resume Normal Boot OR exit and reboot the machine completely.
Have fun! :)


gnome3 - cannot replace window manager to metacity

The shortest way to get Metacity running is to install
GNOME FlashBack (Metacity) session with

sudo apt-get install gnome-panel

After installation select GNOME FlashBack (Metacity) on login screen.


Ubutun will ONLY install on my external HDD and when it does, I cannot boot

During reboot, can you enter a key to boot into Windows Recovery Mode to Repair Windows 10? If not, you need a Windows 10 Recovery DVD/USB. One from Windows 7 might also work. It you can't repair Windows, you have no option but to save your data via the Live CD to the external disk (or another).
Let me know if the repair was successful, then we can figure out why the install Ubuntu to the internal disk fails.
Good luck


Git 1.7.9.5 Upgrade to current release of GIT 2.x on ubuntu 12.04

There is a Git PPA at launchpad where the latest releases are made available as packages. Thus to get the latest stable version do as follows:

sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git

After that you will have Git 2.x installed and the 1.7.x version removed.


You could try by using Next Style function. For example, lets say you have a Header 1 followed by some Text body. When setting up a Header 1 style (right click on line and then choose Paragraph style), choose tab Organizer and in and then for Next Style choose Text body. Further on, after writing a line in Header 1 and pressing enter, LibreOffice Writer should by default switch itself to Text body. As far as I know, there are no MSWordish big icons for that purpose.


checking free memory by free -h command , here what is difference between available and free memory?

Free memory is memory that is currently unused. Available memory is memory that the system is using for caches, but the data that it holds can be discarded easily (so without swapping to disk) and used for other purposes. Modern systems try to keep free memory relatively small because free/unused memory is just wasted.


All subfolders and files (from Downloads) are inaccessible : Permission could not be determined

You are missing execution permission on your directories.

The x permission has a special meaning on directories, you need it to retrieve informations about its contained files and subdirectories.

To restore the x permission for all users on directories recrsively  inside the current directory, the command below will help you:

find . -type d -exec chmod +x {} \;


12.04 : Three finger gestures disappeared from touchpad?

I have solved this issue by setting the following configuration values (initial values were 0):

  synclient ClickFinger3=2
  synclient TapButton3=2


Installed pgadmin4-apache2 package post-installation script subprocess returned error exit status 1

Run this below command to avoid permission error:

chmod 777 -R /var/www/.pgadmin/sessions

If the directory is not exists, create it before set the permission:

mkdir -p /var/www/.pgadmin/sessions


Reinstalling the El Pais scope on Ubuntu phone

Go to Terminal and run this command

click info com.canonical.elpais

and see what version you have. Then,

click register com.canonical.elpais <version>

substitue <version> with yours.

It should work since you didn't remove it from the preinstalled system (you can find it in /custom/click/com.canonical.scopes.elpais).

Info about the click command: http://manpages.ubuntu.com/manpages/saucy/man1/click.1.html


Wireless connection issue on Ubuntu 20.04 LTS

UNCLAIMED means Ubuntu is recognizing the hardware, but it needs a driver for it to work. Thanks this card is really common and there is a driver on Github for it.

You will need an ethernet connection and follow this steps on your terminal:

sudo su
apt install -y dkms git
git clone https://github.com/tomaspinho/rtl8821ce.git
cd rtl8821ce
./dkms-install.sh
modprobe 8821ce

After completing that steps, you should be good to go, and your card should be working.


Cannot install Xubuntu 16.04 on Acer Aspire 5315 with Intel Celeron 530 (Laptop)

Maybe I have to use forcepae! I remember having to do that with the other Celeron M (although it was around 1.5 years older). I will try it out as soon as possible!


How to download skyrim from steam and play on ubuntu

There is a project called PlayOnLinux that works to automatically setup many games devloped for Windows, to be played on Linux with minimal hassle.

You can get the program via the repositories using the command sudo apt-get install playonlinux or from the website playonlinux.com.

Once PoL is installed you can run the program. To install a game, click the button on the right-hand sidebar that says "Install a program". Once in that menu just use the search bar to find "The Elder Scrolls V : Skyrim", click to install. This will automatically download the version of WINE that is known to work with Skyrim as well as install Steam on the virtual drive, if you so select.

The installation may throw an error, but they usually provide you with information on how to fix it, commonly in the form of a link to a "How to fix problem X" type page. Just follow the prompts and it should work.

Alternatively, you can download and install it from playonlinux.com.


Open terminal by tapping
Ctrl+Alt+T.
In terminal type command:

sudo apt-get install p7zip-full

press Enter.
After that in terminal type

7z x /path/to/your/file

press Enter.

I have not tried this, but with 7zip I extract different types of archives, which are not available on Archive Manager.


Ubuntu Server 18.04 -Configuring the Static Ip I had lost the dhcp entries generated by the system

Could you show your config enclosed in triple single quotes so that we can see the actual formatting? I think you are missing indent there but hard to judge from your output

It should be something like

network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s1:
      dhcp4: no
      addresses: [192.168.0.100/24]
      gateway4: 192.168.0.1
      nameservers:
        addresses: [8.8.8.8, 8.8.4.4]

Edit after Thomas's comment - if your formatting is as Thomas's edit shows, then you have an error in renderer line.


Thunderbird endlessly redownloading messages with Davmail

I don't think this is an issue with DavMail at heart, but a bad behavior of Thunderbird that DavMail exascerbates.

A poster on ubuntuforums theorizes as to the root cause, but their solution seems to work for me:

For each mailbox that's experiencing this problem, go to its Account Settings, choose the Server Settings page, click the Advanced button, and uncheck Show only subscribed folders.

It'll probably have to finish its current round of updating, but after that it should behave more rationally.


Sharing Zimbra local folders between Ubuntu and windows

Here's an idea - but this will only work if Zimbra allows you to set a custom location for its local folder. Install Dropbox on both Ubuntu and Windows 7, and then set your Zimbra local folder to a folder within your Dropbox folder. That way, regardless of which OS you're using, Dropbox will sync the local files and you'll have all your emails available.

The other way I can think of is creating an NTFS partition and then setting your Zimbra local folders to that location - that way, both Windows 7 and Ubuntu will be able to access it. Definitely more convoluted than the above though.


There is a bug in zsys here: https://bugs.launchpad.net/ubuntu/+source/zsys/+bug/1886214.
One solution is to do this:

Enable proposed branch in your repository and update.

$ echo "deb http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs)-proposed main" | sudo tee /etc/apt/sources.list.d/proposed-repositories.list
$ sudo apt update

Install zsys v0.4.7 (as of today, 10 Aug 2020) by:

$ sudo apt -t $(lsb_release -cs)-proposed install zsys

Remove the proposed branch if you don't want it to stay:

$ sudo rm /etc/apt/sources.list.d/proposed-repositories.list
$ sudo apt update


Upgrades can take a long time and it is best to wait.

The message "update manager is inhibiting shutdown" suggests the upgrade is still in process and interrupting the upgrade, by forcing a shutdown, can break Ubuntu.

I suggest waiting , but if the problem persists in a few hours you can force a reboot, but doing so may cause problems, and in that event you would have to debug (can be difficult or impossible) reinstall (faster, more reliable).


Do I need to reinstall OS if changing motherboard?

You do not need to reinstall the operating system if you are upgrading the Motherboard, and if you are using an MBR-style boot environment (for EFI/UEFI boot systems, please refer to the other answer on this question).

HOWEVER, you may need to go through and update some things afterwards:

First, your drivers for your graphics card (if an integrated card) will need updated.  This is to make sure you have the right grahpics drivers for your graphics card.
Network settings for the ethernet adapter, if it's integrated, may need to be changed.  If your network and ethernet settings require to be set up statically, you may need to update your settings after changing the motherboard, because the ethernet card might get a new identifier (like eth1 instead of eth0 or something).
Drivers for any peripheral devices in expansion slots.  If your motherboard has slots on it which have additional devices (such as a separate graphics card, wireless adapter card, etc.) you may want to verify the drivers are installed and identified correctly.  Especially if there's new items installed.

For (1) and (3), you can likely run through the 'Additional Drivers' tool, which would then check your hardware and the non-free proprietary packaging sets to identify non-free drivers you may need to work with your computer.

For (2), you'll have to manually reconfigure your settings if they're a static configuration defined in /etc/network/interfaces, or configured manually in Network Manager.


You are looking for apropos or man -k.

From man man:

man -k printf
           Search the short descriptions and manual page names for the
keyword printf as regular expression.  Print out any matches.
Equivalent to apropos -r printf.

From man apropos:

apropos - search the manual page names and descriptions

Check man apropos and man man for details.


What is the exact connection between linux version / kernel and later on to install flash player and other programs?

Adobe flashplayer for linux is no longer supported, so for most versions of Ubuntu the version of flash is stuck at 11.2.202.554 in the multiverse.

There is pepperflash though which is still updated. In general though the version that is available depends more on which version of Ubuntu you are running, than on the particular kernel version.


There can be different causes for an application icon, to show up with a question mark (or otherwise incorrectly) in the Unity launcher.

To start with: application icons are defined in the .desktop file of an application. These .desktop files are (normally) stored in /usr/share/applications, or ~/.local/share/applications

Common causes are:

The link to the icon, as defined in the .desktop file of the application, is broken; the icon does not exist or is in the wrong path. effect: the application shows up in the launcher with an incorrect icon (grey question mark).
The application is represented by more then one .desktop file. That is: there is more then one .desktop file on your system, with a command to run the application in its first Exec= line. effect: many times, Dash shows more than one (correct) icon, representing the same application. When the application is locked to the launcher, sometimes (or always) if the application runs, another icon appears (the same or slightly different).
For various reasons, sometimes the application and the launcher icon are not connected to each other. Although the application is started by the (command in) the .desktop file, the application is not recognized by the .desktop file as "his" application effect: If the application is locked to the launcher, it shows a correct icon, but another one appears when the application runs (grey question mark). If the application is not locked to the launcher, the application is represented by an incorrect icon in the launcher if it runs. (grey question mark, since the binary file has no icon of itself).

In the case of Xfig, the last is the case. You can fix the issue in by adding the following line to the .desktop file:

StartupWMClass=xfig

open the application's file (xfig.desktop) with gedit:

gksu gedit /usr/share/applications/xfig.desktop (you may have to install gksu first)

Add the line:

StartupWMClass=xfig

Now Xfig will run under its own icon:


Installation of both LibreOffice and OpenOffice on 14.10

So my question: Why does Ubuntu 14.10 not allow to having installed both programms LibreOffice Writer and OpenOffice Writer?

That is not true. It is perfectly possible to install both. See Is it possible to install OpenOffice and LibreOffice in parallel?

Both might want to use the symlink /usr/bin/soffice as a shortcut (and you can only have 1 of those at the same time) but that is easily solved by manually changing the target.

The development in the past year has been very high on Libre Office. Open Office was not maintained for about 3 years, got hardly any updates (if any) and when Libre Office got forked (due to licensing concerns) a group of volunteers started adding new code like crazy (see for instance Why is LibreOffice default instead of OpenOffice.org for a list of concerns). They probably made a mistake somewhere where it concerns these 2 fonts/the 2 unicode ranges.

  Or why is LibreOffice Writer not as unrestricted like OpenOffice Writer concerning fonts' display?

I do not understand this question. What is it you are asking?! I do not get what you mean with "unrestricted". To me this is a bug. Bugs happen. Well not in Open Office but that is due to the fact it does not get updates...

The link you point to concerns a possible bug filed today (it is not even yet accepted as a bug and is in the "need info" stage) and it is specifically targeted against 2 fonts ("Ahuramazdanew" and "AhuramazdaPlusTranslit") where 1 of them is not even released. Or in a broader view against unicodes ranges hex-10b00 to hex-10b3f
and from hex-10b78 to hex-10b7f (from the link). Seems a problem that has a rather low impact.

And seeing how quick a lot of things get picked up by the Libre Office maintainers I would expect this to be addressed quickly too.


I can't upgrade my ubuntu 12.04 to 12.10

12.10 reached end of live in 2014-04-30. Update Manager and do-release-update should offer you to upgrade to 14.04, as that's the only supported upgrade path for 12.04 now.


How to get screen back on ssh server after X forwarding

I haven't tried x11 forwarding yet, but maybe display manager configuration somehow influences it.

If you still able to send commands through ssh when graphics is freezing, you could restart display manager:

sudo systemctl restart lightdm

You could replace lightdm by gdm3, lxdm or whatever. You could even try to switch to different display manager:

sudo dpkg-reconfigure gdm3

and check if the issue appears again.

To check what display manager is used in your case, use the next command:

ps -A | grep dm


How do I install asterisk-13.7.5 in Ubuntu 16.04?

In Ubuntu 16.04, the package sources contain asterisk v13.1.0 and it can be install simply with sudo apt install asterisk. If for some reason you need a newer version, you can (roughly sorted from best to worst practice):

upgrade to Ubuntu 17.10 STS, whose sources provide asterisk v13.17.2
wait a bit and upgrade to Ubuntu 18.04 LTS, whose sources have asterisk v13.18.3
use a deb package from packages.ubuntu.com, e.g. the 18.04 amd64 one
download the latest version from asterisk.org and install it as explained in How do I install a .tar.gz (or .tar.bz2) file?


Failure in FFMPEG compilation on Ubuntu 16.04 - recipe for target 'libavcodec/libfdk-aacenc.o' failed

After some investigations, I found an answer on ffmpeg mailing list. As mentioned on this http://www.ffmpeg-archive.org/ffmpeg-compilation-error-on-libfdk-acc-ubuntu16-04-td4685096.html, the error is raised due to an update on libfdk APIs. There is no ffmpeg release which could match with this new version of API list.

The reasonable solution until ffmpeg team update their codes, is downgrading libfdk. For doing this, you could change the installation instructions of libfdk on the  https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu, as below:

cd ~/ffmpeg_sources && \
git -C fdk-aac pull 2> /dev/null || git clone --depth 11 https://github.com/mstorsjo/fdk-aac && \
cd fdk-aac && \
autoreconf -fiv && \
./configure --prefix="$HOME/ffmpeg_build" --disable-shared && \
make && \
make install

Note that we changed the depth parameter and set it to 11. This worked for current date of this answer. If any new commit or release package publish on the the future, you should increase the depth number to fit the proper version that you could compile ffmpeg with it.

Another solution which is reflected on https://github.com/mstorsjo/fdk-aac/issues/93 and also on http://www.ffmpeg-archive.org/ffmpeg-compilation-error-on-libfdk-acc-ubuntu16-04-td4685096.html is about applying a patch on the source code. The patch itself is accessible via https://github.com/libav/libav/commit/141c960e21d2860e354f9b90df136184dd00a9a8 . We have to manually open the source file in a text editor, go to the line number which is shown in the path and add the lines with + and delete the lines with -.


How can I force terminals to be at least a certain size?

Press the super key to open the search lens and look for: main menu
Once the "Main Menu" application is running select "Accessories" on
the left menu and then select "Terminal" on the second menu.
Once you have the "Terminal" options is selected press the
"Properties" button on the right. A new window will open with the
terminal Launcher properties.
Go to the "Command" entry and add this to the end of the entry:

--geometry=132x24

The finished entry should be:

gnome-terminal --geometry=132x24

That's it. Close the windows and next time you launch the terminal the window will be resized. You may have to logout and log back in to work properly.

(132x24 is just an example, you can use whatever resolution you want)


What should I do with a "Failed to apply Changes" when trying to upgrade packages of Kubuntu?

@Panther I ran the commands in a terminal. The first one give the following outcome with no error:

Atteint:1 http://repository.spotify.com stable InRelease
Atteint:2 http://ppa.launchpad.net/linrunner/tlp/ubuntu xenial InRelease
Atteint:3 http://ca.archive.ubuntu.com/ubuntu xenial InRelease
Réception de:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Réception de:6 http://ca.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Réception de:7 http://ca.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Réception de:8 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [67,7 kB]
Réception de:9 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [793 kB]
Réception de:10 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [68,0 kB]
Réception de:11 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [107 kB]
Atteint:5 https://typora.io:443 linux/ InRelease
Réception de:12 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [142 kB]
Réception de:13 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [725 kB]
Réception de:14 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [319 kB]
Réception de:15 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [229 kB]
Réception de:16 http://ca.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [634 kB]
Réception de:17 http://ca.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [579 kB]
Réception de:18 http://ca.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [246 kB]
Réception de:19 http://ca.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [334 kB]
Réception de:20 http://ca.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5 964 B]
Réception de:21 http://ca.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3 328 B]
Réception de:22 http://ca.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [5 100 B]
4 580 ko réceptionnés en 1s (2 645 ko/s)
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
132 packages can be upgraded. Run 'apt list --upgradable' to see them.

The second command generated a long list of things and it came up with the following errors:

insserv: warning: script 'K01smfpd' missing LSB tags and overrides
insserv: warning: script 'smfpd' missing LSB tags and overrides
insserv: There is a loop between service plymouth and procps if started
insserv:  loop involving service procps at depth 2
insserv:  loop involving service udev at depth 1
insserv: Starting smfpd depends on plymouth and therefore on system facility `$all' which can not be true!

and

insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: erreur de traitement du paquet util-linux (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
Des erreurs ont été rencontrées pendant l'exécution :
 util-linux
E: Sub-process /usr/bin/dpkg returned an error code (1)


The lag in Tetris is not going to be related to your colour depth, and changing colour depth is not going to make it any faster (and may just make it slower, particularly if you succeed in moving to a palette based colour mode).

Presuming that it's a Flash-based app in the browser, it'll have everything to do with Flash support.

There are several issues here:

Adobe no longer support Flash on linux, so you can't get a recent version.  Depending on your Ubuntu version you may be able to still get Flash 11.2, from the flashplugin-installer package in multiverse - otherwise follow instructions here for using the "pepper" support in Chrome.
If you don't use Adobe's own Flash plugin, you'll be using one of the open source alternatives, which are likely to have very poor, slow performance.


Cannot Install Google Chrome. How do I fix it?

You can fix this by installing missing dependencies.
Just run the following command
(after you have run sudo dpkg -i google-chrome-stable_current_i386.deb).

sudo apt-get install -f

This will install missing dependencies and configure Google Chrome for you.


possible put Ubuntu 18.04 Server to sleep with rtcwake and wake it up with Wake on Lan

Completely shutdown Ubuntu and wake it up remotely

Completely shutdown the server

This solution is different from the question as it shuts down the server completely. It does not put it to sleep / suspend or hibernate.

To shutdown the Ubuntu 18.04 the following has to be true:

The server must have ssh access from another (local) computer.

I use the following command to shutdown the server from the local computer:

ssh -t server.address "sudo /sbin/shutdown -h +1"

where server.address is either the IP address of the server or its domain name. The -h option powers the server off. The +1 option is a one minute delay.

Wake on Lan from the Raspberry Pi

Install etherwake in the Raspberry Pi. Make sure the Pi and the Ubuntu server are connected by Ethernet cables.

On the Ubuntu server find out the MAC address of the LAN port with the command:

ifconfig

It will look something like:

ether AA:BB:CC:DD:EE:FF   txqueuelen 1000  (Ethernet)

Use the following command from the Pi:

sudo etherwake -i eth0 AA:BB:CC:DD:EE:FF

where eth0 is the Ethernet port of Pi, and AA:BB:CC:DD:EE:FF is the MAC address of the Ethernet port of the Ubuntu server.

I wrote a small script to save some typing in the Pi:

#!/bin/bash
# wake.sh

if ping -c 1 10.42.0.1 &> /dev/null
then
  echo "Server is ON already!"
else
  echo "Turning Server ON now."
  etherwake -i eth0 AA:BB:CC:DD:EE:FF
fi

where 10.42.0.1 is the IP address of the Ubuntu server. To use this script:

Save the script on the Pi with the name wake.sh in Pi's Home folder.
Edit the IP address and the MAC address of the Ubuntu server in the saved script.
Make the script executable.

Finally, call the script with:

sudo ./wake.sh

Hope this helps


Use compiz on startup, compiz --replace bad?

Let me start off with telling that compiz is the default for Gnome-Classic in Ubuntu 12.04. So you might just want to upgrade. The Gnome-Classic session received lots of love in Ubuntu 12.04 and really works like the good old Ubuntu desktop.

On session configuration: The sessions are configured in /usr/share/xsessions where gnome.desktop is the default session. The .desktop session files usually run something like gnome-session --session=ubuntu or gnome-session --session=gnome-classic.

These refer to files located in /usr/share/gnome-session/sessions where you can tell the specific session which window-manager to use.


What is apt-get equivalent of "aptitude why"?

Instead of apt-get I would have a look at apt-cache, though not one on one the same but close will be:

apt-cache --installed rdepends firefox


Canon pixma ip 4850 driver problem on 14.04 64

To make the ip 4850 work on Ubuntu 14.04, you will need to install the following library:

http://archive.ubuntu.com/ubuntu/pool/universe/t/tiff3/libtiff4_3.9.7-2ubuntu1_amd64.deb

(64 bit)

or

http://archive.ubuntu.com/ubuntu/pool/universe/t/tiff3/libtiff4_3.9.7-2ubuntu1_i386.deb

(32 bit)


Can I use a newer ubuntu version with an OLDER kernel version?

We have used older kernels on newer userspace in some circumstances.  As long as the delta is not too great we might expect it to work fairly well.  It would of course not be supported in this combination.  If the application you have works with 10.04 and is likely to work with 12.04 then you are likely best off waiting until 12.04 support is available.


Firefox: How to open tabs from the history in the background?

I have "browser.search.context.loadinbackground" set to true on my Firefox (version 86.0b7).
In the Library->History menu, as well as the History sidebar, I can Middle-Click to have the URL open in the background.
For completeness, I also have these set to "true":
browser.tabs.loadBookmarksInBackground
browser.tabs.loadDivertedInBackground
browser.tabs.loadInBackground
browser.search.openintab
browser.urlbar.openintab
browser.tabs.opentabfor.middleclick
browser.urlbar.openintab
middlemouse.openNewWindow

Hope that helps you.
Regards,
Andi


PPA too slow, how to mirror? [Cache repository subset]

For future viewers, the solution was using apt-cacher-ng. Following this blog post I created an APT cache that I added as proxy on each machine to update. On first download, a packet would be stored in the cache which would make subsequent downloads as fast as the network/disk allowed.

Contrarily to the popular answer to make a full mirror, I didn't have to download any package not related to me, such as the full repository. Didn't have to worry about what was exactly needed since only what was requested would be cached.


What's Going Wrong Here (Erasing My Home Partition)

dd keeps writing until it fills the entire device, the error "No space left on device" means it's full. It wrote 298563141632 bytes (299 GB, 278 GiB) and you said your sda4 is 278 GiB, so you've already filled it with zeros, it worked and nothing went wrong.

Evidently dd doesn't care that much about writing full blocks, it writes out as much as it can and will report writing one less block than it read.

Just to double-check I tried this small experiment with a 1M loop device:

fallocate -l 1M file1
sudo losetup /dev/loop1 file1
sudo hd /dev/loop1
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00100000

my fallocate already zero fills, so ready for writing dd in 2M and 700,000 blocks to a 1,048,576 device

$ dd if=/dev/zero bs=2M |tr '\0' x | sudo dd of=/dev/loop1 bs=2M
dd: error writing '/dev/loop1': No space left on device
0+121 records in
0+120 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0274112 s, 38.3 MB/s

No space left error, but still wrote x's to every byte of /dev/loop1

$ sudo hd /dev/loop1
00000000  78 78 78 78 78 78 78 78  78 78 78 78 78 78 78 78  |xxxxxxxxxxxxxxxx|
*
00100000
$ sudo dd if=/dev/zero of=/dev/loop1 bs=700000
dd: error writing '/dev/loop1': No space left on device
2+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0148556 s, 70.6 MB/s

Again with a slightly smaller bs, still filled the device

$ sudo hd /dev/loop1
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00100000

Even matching the bs to the device size (in this example 1M) still gives the error

$ sudo dd if=/dev/zero bs=1M  of=/dev/loop1
dd: error writing '/dev/loop1': No space left on device
2+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0164516 s, 63.7 MB/s

Unless you match the size with bs & count (after filling with x's again)

$ sudo dd if=/dev/zero of=/dev/loop1 bs=1M count=1
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0213422 s, 49.1 MB/s


Rebuilding a Newer Version of a Deb Package

I don't know what is the best way, but i would do it by the easiest way. I think that the backporting is a bit easier than to build from the scratch.

The Precise (planned release April 26th 2012) repositories do have the tbb 4.0+r233: http://packages.ubuntu.com/search?keywords=tbb&searchon=names&suite=precise&section=all

The Debian has : http://packages.debian.org/search?keywords=tbb&searchon=names&suite=all&section=all


If I download Ubuntu, with CD, or Windows Installer, will it automatically dual-boot?

During the installation process for Ubuntu, you get to choose "alongside" the existing Windows system, or "something else" where you can manually set up individual disk partitions.  This usually requires shrinking the Windows partition and then creating a separate partition for Ubuntu in the (now) unallocated space.  See for example: http://techsultan.com/install-ubuntu-13-10-dual-boot-windows-7-8/


Just use ext4 filesystem with discard mount option.

RAID is designed for multiple disks (be it HDDs or SSDs) and is used on servers.

See also:

How do I optimize the OS for SSDs?


Running software-center from command line as root

You shouldn't be running software-center as root. You should simply launch it as your own user. Installing a package should prompt you with a policykit dialog box asking for your password. Is that not happening?


Cron has no idea where the current display is (from its point of view, there can be many running), so it cannot -- easily -- start a graphical terminal. If you are the only user of the machine with only one X session, you can try to define your DISPLAY variable

export DISPLAY=:0.0

in open-console.sh, but I'm not sure whether it will work.

The main purpose of cron is to start non-interactive services that run in the background at specified points of time. Other tasks should be handled with dbus and ConsoleKit, but this is a bit more complicated, see this question.


Cannot cmake mirall because Could NOT find Qt5Keychain (missing: QTKEYCHAIN_LIBRARY)

You should first of all download libqt5keychain and qtkeychain-dev packages in order to resume mirall compilation.

Use the wget command for each of these urls (it depends on your system architecture):

wget http://hr.archive.ubuntu.com/ubuntu/pool/universe/q/qtkeychain/libqt5keychain0_0.3.0-2_amd64.deb
wget http://hr.archive.ubuntu.com/ubuntu/pool/universe/q/qtkeychain/qtkeychain-dev_0.1.0-1ubuntu1_amd64.deb

Then, install with:

dpkg -i qt5keychain-dev_0.3.0-2_amd64.deb libqt5keychain0_0.3.0-2_amd64.deb


Ubuntu 16.04 boots to purple screen after installing GeForce GTX 960 Drivers

You could try installing the System76 driver. I have a Nvidia GeForce GTX970m graphics card on my laptop, and the regular Nvidia drivers also cause the purple screen you are describing. Sometimes Nvidia and Ubuntu do not get along well.

http://docs.system76.com/articles/upgrade/

sudo apt purge nvidia*

rm ~/.Xauthority ~/.ICEauthority ~/.config/monitors.xml

Reboot your machine, then:

sudo apt-add-repository ppa:system76-dev/stable

sudo apt update

sudo apt install system76-driver-nvidia

Reboot again, see if it works.


How do I force applications to use different internet connections?

That is not possible in the way you describe, but you can get somewhere by manually adding routes. Say you use archive.ubuntu.com, you can add a route for 91.189.92.0/24 to go via the wifi and leave the default route to be the dongle.


To be able to expand the /dev/sda11 partition, you need to have free space just after the partition and presently you have /dev/sda5 exactly after.

What you need to do if move the /dev/sda5 partition just before /dev/sda8, then trying increasing the /dev/sda11 partition again.


Which is the simplest QEMU compiling/execution setup for guest FHD resolution?

I had this working once, but it fell apart when I switched from Windows XP to Windows 10. Now I face the same problem, too. As far as my research went, this simply is not possible due to the unfortunate combination of OVMF EFI and Windows.

The list of resolutions available is generated in the virtual "std" graphics card BIOS. The official list of resolutions is fixed (see qemu bug 498421) but can be changed if you compile it yourself (see https://www.tablix.org/~avian/blog/archives/2013/05/custom_display_resolutions_in_qemu/).

This only works with the legacy BIOS boot procedure. As soon as I use EFI boot style with OVMF, Windows chooses to rely on monitor supplied EDID exclusively. Unfortunately, qemu does not emulate a virtual monitor. Windows 10 does not receive EDID and consequently falls back to 800x600. This behaviour is hardcoded and cannot be changed.

In theory, you could hack Microsoft's "Basic Display Driver" as done at https://github.com/ywjheart/basic_adapter_driver_modification, but this will fail for Windows 7 or later as driver signature checks are encouraged.

Within the guest, you can manually install a monitor with the desired resolution, but Windows will still wait for EDID.

I resorted to remote desktop. Using -vga qxl and appropriate guest drivers is an alternative, but -
 personally - I found no advantages.

UPDATE:
qemu v4.0.0 is out (seen at kraxel's). It now generates EDID information! I compiled it with

./configure --target-list=x86_64-softmmu --enable-sdl --enable-opengl

, run it with

qemu-system-x86_64 -enable-kvm -cpu host -smp 4 -drive if=virtio,format=raw,file=windows10 -display sdl,gl=on -device qemu-xhci,id=usb-bus -device usb-tablet -device VGA,edid=on,xres=1920,yres=1080

and lo and behold: Full resolution within the Windows 10 guest! The SDL UI is very responsive.


cat VTS_01_*.vob > output.vob

Improved version (this will show a progress bar):

cat VTS_O1_*.VOB | pv | dd of=output.vob

Similar to the 2nd:

 pv VTS_01_*.vob > output.vob

Oh and you could also mv the output.vob to .mpeg and have it play in VLC or another videoplayer.

Using ffmpeg:

ffmpeg -i "concat:VTS_01_1.VOB|VTS_01_2.VOB|VTS_01_3.VOB|VTS_01_4.VOB" -f mpeg -c copy output.mpeg

The methods using cat do NOT interpret the files and just add them together. 1 typical thing you will notice is a slight hickup when the player goes from 1 to the next VOB. Avidemux (GUI), for instance, will also demux(is that the correct word?) the files so it is a smoother experience.

If you receive the error message

  ac3 in MPEG-1 system streams is not widely supported, consider using the vob or the dvd muxer to force a MPEG-2 program stream

then you will need to specify DVD as the output format by adjusting the above ffmpeg command with ... -f dvd ....


You're not going to upgrade the graphic card of a laptop, unless you find a motherboard with the graphic card you need that fits the case.

This may happen only between products of the same vendor and of the same product line, because usually laptops motherboard are custom built for the specific product / product line. So you should look at motherboards (not graphic cards) of the same line of the HP Compaq 6910p.

That being said, it might be very easy to upgrade a desktop's graphic card, while the same is not true for laptops.

Laptops are not meant to be assembled / disassembled, and the internal parts (beside the HDD and the memory, and expecially the motherboard) are usually unaccessible prior to a complete disassembly of the laptop. So beware.


Cannot boot on Windows 7 after installing Ubuntu 14.04

First boot on your Windows Vista/7/8 installation DVD.

If you have one of the many OEM computers that didn't come with a Windows installation disk, you can get the same effect with a Windows repair disk, which you can download (eg Win7-32bit, Win7 64bit) or create from another Windows Vista/7/8 computer (see this page for Win7 and Make your own Windows repairCD, and Windows 8 UEFI repair USB must be FAT32, other Win8 guide). When you get to the Regional settings, select your Location/Keyboard setting then click next. On the next page, click on "Repair your computer." On the next page, if it finds your Windows installation, make sure it is UNSELECTED before clicking next. Then click on "Command prompt". From there, type in the following 2 commands:

bootrec.exe /fixboot

bootrec.exe /fixmbr

Now close the two windows and click "Restart." Take out your Windows DVD and hopefully, you will be left with your Windows bootloader.


transfer music/pictures to my lumia 710(windows 7.5 phone)

Install libmobiledevices package. If then if you are unable to mount use cloud services as Dropbox or skydrive.


I found the solution.

After changing the Management to Manage DHCP and DNS in the "Edit Cluster Interface" each node can reach the internet.

Here is the configuration:
MAAS-Web-UI -> Settings -> Cluster controllers -> Edit Cluster Controller -> edit Interfaces -> Management -> changin it from Manage DHCP to  Manage DHCP and DNS


How do I install Photoshop CS5 Extended from the CD?

Check out Wine's AppDB entry for Photoshop CS5

In the "Installs?" column it says "No, but has a workaround". Below you'll find some detailed instructions - try following them and see if it helps.


HP 15-ac089nl compatibility with Ubuntu 16.04.3

Running a live cd would give you a good idea if your hardware is compatible. This applies to GPUs as well at least for the open source drivers. If you want to test the closed source ones things get more tricky and you'd probably need to install.

However if you wanted to come back to Windows 10 as long as you're currently activated you're either active on SLP (which is embeded in the UEFI) or it uses your mobo serial number and Windows will activate again on the same machine.


Uninstall eclipse 3.8 which was already on my computer

You installed eclipse from the repository after downloading a newer one.
Remove the apt installed one :

sudo apt remove eclipse-platform

Check the answer  here to be able to start eclipse from command line.


To run Ubuntu from a USB stick, the first thing you need to do is insert a USB stick with at least 2GB of free space into your PC.

The easiest way to put Ubuntu onto your stick is to use the USB installer provided at pendrivelinux.com. You’ll need to download and install and follow the instructions.

Select Ubuntu Desktop Edition from the dropdown list.
Click 'Browse' and open the downloaded ISO file.
Choose the USB drive and click 'Create'.

Now ensure that you can boot from USB..

make the necessary edits in your bios to ensure that...

now you can boot and try...

enjoy


Ubuntu boots from USB but get GRUB rescue after installation

Boot into Ubuntu using Ubuntu live usb stick, choose Try Ubuntu, then connect to the internet and type the following commands in terminal to install boot-repair.

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

Click Recommended Repair

Reboot and you should get the GRUB menu with access to Ubuntu.


Why does Ubuntu start file checking on every reboot?

It appears as though your swap partition is missing and your /etc/fstab file is still looking for it.
Comment out the line for the swap and reboot the system
sudo sed -i 's/UUID=8c8e15fd-b638-4930-a664-ea326b6f3c23/#UUID=8c8e15fd-b638-4930-a664-ea326b6f3c23' /etc/fstab

The above line will add a # in front of that line so that the system doesn't try to mount a non-existing partition at boot.
Hope this helps!


Copy all files containing spaces inside filenames in the new files with the same name containing underscores instead of spaces from the current directory:

for f in *\ *; do cp -- "$f" "${f// /_}"; done

See BashFAQ 20 on how to handle filenames safely.


Ubuntu files are not accessible through Windows 8

By default, you will not be able to access Ubuntu's partitions from Windows because GNU/Linux uses the ext4 file system, which Windows does not understand. If you would like to access these files from Windows, there are a number of utilities which tell Windows how to deal with the ext file system family. Take a look at this page for some solutions.

This is one way of interpreting at your question. However, after reading your question again, it sounds like what you are trying to ask is this:

"When I use Ubuntu to save a file onto a file system Windows should understand, Windows cannot read this file. Help!"

I can't really answer this question, but I dimly remember experiencing a similar problem, and I think I solved the problem by using a different flash drive. Re-formatting the drive might also help.


Messed up inputrc file, can't type d to sudo to fix it

Super obvious solution, since I'm using the windows subsystem for linux, just go into the folder on windows and edit from there.


Execute a network script at wake-up with systemd (15.04)

Instead of having separate After and WantedBy, put them in a series like:

After=basic.target suspend.target hibernate.target
WantedBy=basic.target suspend.target hibernate.target

At least that worked for me. I'm not sure what the basic.target is, but I use the other two successfully like I've shown.


Can't install libqt4-dev on Focal - "Package not available" despite appearing in launchpad

Doth Debian and Ubuntu have dropped QT4 from new releases, superseded by QT5.

The libqt4-dev package was dropped from Ubuntu after 19.10 and is indeed not in the 20.04 repositories. QT4 remains in older releases of Ubuntu.

If Geant4 requires obsolete/dropped software like libqt4, consider filing a bug report with the upstream developers. Alternately, you can use Ubuntu 18.04 which still has a full QT4 stack in the repositories.


Option 1: Edit the hotspot configuration file.
This is done by going to the System menu and selecting: Wi-Fi Off > Turn On
Next, select Wi-Fi Settings
In the Wi-Fi Settings window, click on the Gnome menu icon from the window upper right-hand side corner, and select Turn On Wi-Fi Hotspot:

Option 2: NM Connection Editor.
You can start it by pressing Alt + F2
And type: nm-connection-editor

And then restart the service
sudo systemctl restart NetworkManager
How To Create A Wi-Fi Hotspot In Ubuntu 18.04 / Gnome (And Edit Its Settings)


"fatal error: GL/glfw.h: No such file or directory #include " - How to solve it?

I've seen here a nice solution:

Install apt-file and ask it to find in which package is that file:

apt-file search glfw.h

After that install the library via apt-get install...

Worked for mee :)


Environment variable blank inside application

If you launch the program from a terminal, the environment variable will be set; by default Linux desktop environments do not run ~/.profile while setting up the GUI, so settings from it are only available in terminals.  See How do I set an environment variable in a Unity session? for setting environment variables for the GUI environment (this is not specific to Unity, but works for any X11 session).


That can happen if your system has an ATI card.
Removing the libdrm.so.2 file from Genymotion directory or just rename like
  then just hit genymotion to run and it should be fixed.

Source


Trying to configure PrivateTunnel in Ubuntu 12.04 LTS 32-bit

I found my own answer in the same thread.

My problem had nothing to do with "Now move CA.pem, UC.pem, PK.pem, tls-auth.key, and client.ovpn to /etc/openvpn"

My problem was answered a little further down in someone's answer in the thread. Quoting from there reply

  Gateway: us.shieldexchange.com
  That gateway URL didn't work for me and gave me an error (something about incorrect VPN secrets), so I used the gateway URL listed in my .ovpn file, which happened to be us-ca-sj-001.privatetunnel.com

  Otherwise, it's working great! I'm posting over it now. Thanks again, z3r0-1! "

So, the solution is use the gateway that was defined in your .ovpn settings file.

Thank you to whoever answered that in the thread!


In short its an error reading something although what is a little hard to diagnose without a little more information.

I've seen it on my machine, at boot, if I've got a CD in my drive that can't be read. It also turns up on drives/ram that is failing.

Those examples are not exhaustive, however, so I wouldn't go worrying unless you've got any other evidence of hardware issues.


Shared folder shows different permissions between Windows host and Ubuntu guest when using VirtualBox

Short answer: You are using incompatible environments and software; Windows, Cygwin and VirtualBox all implement
  non-backwards-compatible implementations of POSIX standards, hence why changes in one are
  not reflected in the others.

In general: storing a group and a user of a file as a string would be way too wasteful. Not only would it take a bunch of additional disk space, but would also require O(n) of processing time in the worst case to check whether you have permissions to a single file!

Instead those attributes are stored as a number, which would always require just O(1) to check permissions. You can see them using e.g. stat command:

$ stat r600_state_common.c
  File: r600_state_common.c
  Size: 90718           Blocks: 184        IO Block: 4096   regular file
Device: 26h/38d Inode: 70588       Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/constantine)   Gid: ( 1000/constantine)
Access: 2017-09-08 00:18:26.243828226 +0300
Modify: 2017-09-07 10:52:33.387136858 +0300
Change: 2017-09-07 10:52:33.387136858 +0300
 Birth: -

So, in your system UID of the file matches user root. In the other system it's Domain.

In case of cross-working with Windows systems there's more to it. Despite that POSIX standard have not had any really fundamental changes, Microsoft programmers have always struggled with it. Over the course from Windows NT to Windows 10 there have been three non-backward compatible rewrites of the implementation. So for compatibility, Cygwin is using its own implementation of mapping Windows security descriptors to POSIX permissions.

On top of it you are trying to access a Windows file system through VirtualBox. VirtualBox of course have implemented its own mapping too, and this mapping doesn't work very well (as you can see by changing permissions through chmod, and not seeing the changes reflected).

So, right now, you have got 3 implementations on your system, incompatible with each other. This is the reason of you seeing the problems.

FTR: VirtualBox is open source, so if you're really feel keen to it, you could rewrite it to be compatible with Cygwin (as their implementation is the only back-compatible POSIX implementation on Windows as far as I know).

NB: using a system as a root is a very bad practice! Especially given you're a developer. Consider using a usual user instead.


File association to unlisted application

In GNOME3 when apps that show on the right click Open With Other Application context menu but not on the right click Properties menu do so because the Exec= line in the apps .desktop doesn't end with a %letter

That's the case with Kile. The 2 most likely letters would be f or U, I'd try U first.

gksudo gedit /usr/share/applications/kde4/kile.desktop

Make the Exec= line look like this

Exec=kile %U

Should then show (do a log out/in if needed)

Copied from my answer here.

Alternate method

An alternate method, (to set as default),  on a per user basis would be to edit ~/.local/share/applications/mimeapps.list

In the [Default Applications] section you'd look for this line for plain text, text/plain= and this line for LaTex files, text/x-tex=

You'd edit either or both to set Kile as default as such

text/plain=kile.desktop
text/x-tex=kile.desktop


Aptana Studio 3 as plugin fails to startup on Ubuntu 12.04

I found the solution here:

http://www.samclarke.com/2012/04/how-to-install-aptana-studio-3-on-ubuntu-12-04-lts-precise-pangolin/


Ubuntu installer can't find any disk on Dell XPS 13 9350

In Windows, run Command Prompt as admin
Invoke a Safe Mode boot with the command: bcdedit /set {current} safeboot minimal
Restart the PC and enter your BIOS during bootup.
Change from IDE to AHCI mode then Save & Exit.
Windows 10 will launch in Safe Mode.
Right click the Window icon and select to run the Command Prompt in Admin mode from among the various options.
Cancel Safe Mode booting with the command: bcdedit /deletevalue {current} safeboot
Restart your PC once more and this time it will boot up normally but with AHCI mode activated.

(Source)


Install Ubuntu 16.04 on a Raspberry Pi 2

I can't seem to comment, but you may consider this as such.

I have had a similar problem before and I solved it by getting a power supply with higher amperage. Usually you are told not to go above one amp, but if you have the device running in a cool environment or have small aftermarket heatsinks on it, it shouldn't be a problem, also because the new Pi's have built in voltage regulators.

TL;DR: try to find a power supply or phone charger that outputs 1.5A, 5V or more up to 2A.